From 5a39e7a8f5f2dc416c1d553acb831e18a3318588 Mon Sep 17 00:00:00 2001 From: Jigar Dafda Date: Mon, 12 Feb 2024 07:41:44 +0000 Subject: [PATCH] [Auto Generated] 1.4.2-beta.4 --- CHANGELOG.md | 5365 +-- README.md | 2 +- application.d.ts | 6 +- common.d.ts | 6 +- dist/application.js | 2 +- documentation/application/CART.md | 543 +- documentation/application/CATALOG.md | 39 +- documentation/application/CONFIGURATION.md | 17 - documentation/application/CONTENT.md | 1 + documentation/application/LEAD.md | 2 +- documentation/application/LOGISTIC.md | 315 + documentation/application/ORDER.md | 52 +- documentation/application/PAYMENT.md | 770 +- documentation/application/USER.md | 31 +- documentation/partner/LEAD.md | 11 +- documentation/partner/WEBHOOK.md | 371 - documentation/platform/BILLING.md | 887 +- documentation/platform/CART.md | 968 +- documentation/platform/CATALOG.md | 28888 ++++++---------- documentation/platform/COMMUNICATION.md | 9 +- documentation/platform/CONFIGURATION.md | 49 +- documentation/platform/CONTENT.md | 36 +- documentation/platform/DISCOUNT.md | 1 + documentation/platform/FILESTORAGE.md | 130 - documentation/platform/FINANCE.md | 2 +- documentation/platform/LEAD.md | 85 +- documentation/platform/ORDER.md | 6895 ++-- documentation/platform/PARTNER.md | 60 +- documentation/platform/PAYMENT.md | 1539 +- documentation/platform/SERVICEABILITY.md | 410 +- documentation/platform/WEBHOOK.md | 117 - documentation/public/BILLING.md | 172 - index.d.ts | 30 +- package-lock.json | 102 +- package.json | 2 +- partner.d.ts | 6 +- platform.d.ts | 6 +- public.d.ts | 4 +- sdk/application/ApplicationClient.d.ts | 34 +- .../Cart/CartApplicationClient.d.ts | 62 +- sdk/application/Cart/CartApplicationClient.js | 340 +- .../Cart/CartApplicationModel.d.ts | 181 +- sdk/application/Cart/CartApplicationModel.js | 187 - .../Cart/CartApplicationValidator.d.ts | 290 +- .../Cart/CartApplicationValidator.js | 138 +- .../Catalog/CatalogApplicationClient.d.ts | 10 +- .../Catalog/CatalogApplicationClient.js | 49 +- .../Catalog/CatalogApplicationModel.d.ts | 4 - .../Catalog/CatalogApplicationModel.js | 4 - .../Catalog/CatalogApplicationValidator.d.ts | 53 +- .../Catalog/CatalogApplicationValidator.js | 26 +- .../Common/CommonApplicationClient.d.ts | 4 +- .../CommunicationApplicationClient.d.ts | 4 +- .../CommunicationApplicationValidator.d.ts | 2 +- .../ConfigurationApplicationClient.d.ts | 6 +- .../ConfigurationApplicationModel.d.ts | 34 +- .../ConfigurationApplicationModel.js | 22 - .../ConfigurationApplicationValidator.d.ts | 2 +- .../Content/ContentApplicationClient.d.ts | 6 +- .../FileStorageApplicationClient.d.ts | 4 +- .../FileStorageApplicationValidator.d.ts | 2 +- .../Lead/LeadApplicationClient.d.ts | 4 +- .../Lead/LeadApplicationModel.d.ts | 4 +- sdk/application/Lead/LeadApplicationModel.js | 6 +- .../Lead/LeadApplicationValidator.d.ts | 2 +- .../Logistic/LogisticApplicationClient.d.ts | 26 +- .../Logistic/LogisticApplicationClient.js | 158 + .../LogisticApplicationValidator.d.ts | 25 +- .../Logistic/LogisticApplicationValidator.js | 24 + .../Order/OrderApplicationClient.d.ts | 4 +- .../Order/OrderApplicationModel.d.ts | 24 +- .../Order/OrderApplicationModel.js | 28 - .../Order/OrderApplicationValidator.d.ts | 2 +- .../Payment/PaymentApplicationClient.d.ts | 96 +- .../Payment/PaymentApplicationClient.js | 536 +- .../Payment/PaymentApplicationModel.d.ts | 566 +- .../Payment/PaymentApplicationModel.js | 365 +- .../Payment/PaymentApplicationValidator.d.ts | 109 +- .../Payment/PaymentApplicationValidator.js | 91 +- .../PosCart/PosCartApplicationClient.d.ts | 4 +- .../PosCart/PosCartApplicationValidator.d.ts | 2 +- .../Rewards/RewardsApplicationClient.d.ts | 6 +- .../Rewards/RewardsApplicationValidator.d.ts | 2 +- .../Share/ShareApplicationClient.d.ts | 4 +- .../Share/ShareApplicationValidator.d.ts | 2 +- .../Theme/ThemeApplicationClient.d.ts | 4 +- .../User/UserApplicationClient.d.ts | 8 +- sdk/application/User/UserApplicationClient.js | 11 +- .../User/UserApplicationModel.d.ts | 12 +- sdk/application/User/UserApplicationModel.js | 18 +- .../User/UserApplicationValidator.d.ts | 2 +- sdk/application/index.d.ts | 36 +- .../FileStorage/FileStoragePartnerClient.d.ts | 2 +- sdk/partner/Lead/LeadPartnerClient.d.ts | 4 +- sdk/partner/Lead/LeadPartnerModel.d.ts | 14 +- sdk/partner/Lead/LeadPartnerModel.js | 11 +- .../Logistics/LogisticsPartnerClient.d.ts | 2 +- sdk/partner/OAuthClient.d.ts | 2 +- sdk/partner/PartnerClient.d.ts | 12 +- sdk/partner/PartnerConfig.d.ts | 2 +- sdk/partner/Theme/ThemePartnerClient.d.ts | 2 +- sdk/partner/Webhook/WebhookPartnerClient.d.ts | 47 +- sdk/partner/Webhook/WebhookPartnerClient.js | 327 - sdk/partner/Webhook/WebhookPartnerModel.d.ts | 106 +- sdk/partner/Webhook/WebhookPartnerModel.js | 116 - .../Webhook/WebhookPartnerValidator.d.ts | 4 - .../Webhook/WebhookPartnerValidator.js | 27 - sdk/partner/index.d.ts | 14 +- .../AuditTrail/AuditTrailPlatformClient.d.ts | 4 +- .../AuditTrailPlatformValidator.d.ts | 2 +- .../Billing/BillingPlatformClient.d.ts | 85 +- sdk/platform/Billing/BillingPlatformClient.js | 742 +- .../Billing/BillingPlatformModel.d.ts | 406 +- sdk/platform/Billing/BillingPlatformModel.js | 482 +- .../Billing/BillingPlatformValidator.d.ts | 100 +- .../Billing/BillingPlatformValidator.js | 99 - .../Cart/CartPlatformApplicationClient.d.ts | 116 +- .../Cart/CartPlatformApplicationClient.js | 602 +- .../CartPlatformApplicationValidator.d.ts | 221 +- .../Cart/CartPlatformApplicationValidator.js | 141 +- sdk/platform/Cart/CartPlatformModel.d.ts | 287 +- sdk/platform/Cart/CartPlatformModel.js | 249 +- .../CatalogPlatformApplicationClient.d.ts | 618 +- .../CatalogPlatformApplicationClient.js | 6167 +--- .../CatalogPlatformApplicationValidator.d.ts | 880 +- .../CatalogPlatformApplicationValidator.js | 721 +- .../Catalog/CatalogPlatformClient.d.ts | 170 +- sdk/platform/Catalog/CatalogPlatformClient.js | 1039 +- .../Catalog/CatalogPlatformModel.d.ts | 3155 +- sdk/platform/Catalog/CatalogPlatformModel.js | 3570 +- .../Catalog/CatalogPlatformValidator.d.ts | 257 +- .../Catalog/CatalogPlatformValidator.js | 201 +- sdk/platform/Common/CommonPlatformClient.d.ts | 4 +- ...ommunicationPlatformApplicationClient.d.ts | 8 +- .../CommunicationPlatformApplicationClient.js | 5 +- ...unicationPlatformApplicationValidator.d.ts | 7 +- ...mmunicationPlatformApplicationValidator.js | 2 - .../CommunicationPlatformClient.d.ts | 6 +- .../CompanyProfilePlatformClient.d.ts | 6 +- .../CompanyProfilePlatformValidator.d.ts | 2 +- ...onfigurationPlatformApplicationClient.d.ts | 6 +- ...igurationPlatformApplicationValidator.d.ts | 2 +- .../ConfigurationPlatformClient.d.ts | 6 +- .../ConfigurationPlatformModel.d.ts | 57 +- .../ConfigurationPlatformModel.js | 41 - .../ConfigurationPlatformValidator.d.ts | 2 +- .../ContentPlatformApplicationClient.d.ts | 8 +- .../ContentPlatformApplicationClient.js | 14 +- .../ContentPlatformApplicationValidator.d.ts | 10 +- .../ContentPlatformApplicationValidator.js | 8 +- .../Content/ContentPlatformClient.d.ts | 6 +- sdk/platform/Content/ContentPlatformClient.js | 14 +- .../Content/ContentPlatformModel.d.ts | 15 +- sdk/platform/Content/ContentPlatformModel.js | 16 +- .../Content/ContentPlatformValidator.d.ts | 10 +- .../Content/ContentPlatformValidator.js | 8 +- .../Discount/DiscountPlatformClient.d.ts | 6 +- .../Discount/DiscountPlatformModel.d.ts | 2 + .../Discount/DiscountPlatformModel.js | 2 + .../Discount/DiscountPlatformValidator.d.ts | 2 +- .../FileStoragePlatformApplicationClient.d.ts | 28 +- .../FileStoragePlatformApplicationClient.js | 156 - ...leStoragePlatformApplicationValidator.d.ts | 22 +- ...FileStoragePlatformApplicationValidator.js | 24 - .../FileStoragePlatformClient.d.ts | 4 +- .../FileStoragePlatformValidator.d.ts | 2 +- .../Finance/FinancePlatformClient.d.ts | 4 +- .../Finance/FinancePlatformModel.d.ts | 4 +- sdk/platform/Finance/FinancePlatformModel.js | 12 +- .../Finance/FinancePlatformValidator.d.ts | 2 +- .../Inventory/InventoryPlatformClient.d.ts | 4 +- .../Inventory/InventoryPlatformValidator.d.ts | 2 +- .../Lead/LeadPlatformApplicationClient.d.ts | 4 +- .../LeadPlatformApplicationValidator.d.ts | 2 +- sdk/platform/Lead/LeadPlatformClient.d.ts | 10 +- sdk/platform/Lead/LeadPlatformClient.js | 4 +- sdk/platform/Lead/LeadPlatformModel.d.ts | 53 +- sdk/platform/Lead/LeadPlatformModel.js | 61 +- sdk/platform/Lead/LeadPlatformValidator.d.ts | 2 +- .../Order/OrderPlatformApplicationClient.d.ts | 95 +- .../Order/OrderPlatformApplicationClient.js | 781 +- .../OrderPlatformApplicationValidator.d.ts | 93 +- .../OrderPlatformApplicationValidator.js | 111 - sdk/platform/Order/OrderPlatformClient.d.ts | 127 +- sdk/platform/Order/OrderPlatformClient.js | 1274 +- sdk/platform/Order/OrderPlatformModel.d.ts | 898 +- sdk/platform/Order/OrderPlatformModel.js | 1006 +- .../Order/OrderPlatformValidator.d.ts | 113 +- sdk/platform/Order/OrderPlatformValidator.js | 130 +- .../PartnerPlatformApplicationClient.d.ts | 4 +- .../PartnerPlatformApplicationValidator.d.ts | 10 +- .../PartnerPlatformApplicationValidator.js | 4 +- .../PaymentPlatformApplicationClient.d.ts | 130 +- .../PaymentPlatformApplicationClient.js | 936 +- .../PaymentPlatformApplicationValidator.d.ts | 139 +- .../PaymentPlatformApplicationValidator.js | 126 +- .../Payment/PaymentPlatformClient.d.ts | 4 +- .../Payment/PaymentPlatformModel.d.ts | 893 +- sdk/platform/Payment/PaymentPlatformModel.js | 659 +- .../Payment/PaymentPlatformValidator.d.ts | 2 +- sdk/platform/PlatformApplicationClient.d.ts | 32 +- sdk/platform/PlatformClient.d.ts | 40 +- sdk/platform/PlatformConfig.d.ts | 2 +- .../RewardsPlatformApplicationClient.d.ts | 6 +- .../RewardsPlatformApplicationValidator.d.ts | 2 +- ...rviceabilityPlatformApplicationClient.d.ts | 22 +- ...ServiceabilityPlatformApplicationClient.js | 87 +- ...ceabilityPlatformApplicationValidator.d.ts | 13 +- ...viceabilityPlatformApplicationValidator.js | 12 - .../ServiceabilityPlatformClient.d.ts | 19 +- .../ServiceabilityPlatformClient.js | 36 +- .../ServiceabilityPlatformModel.d.ts | 350 +- .../ServiceabilityPlatformModel.js | 387 +- .../ServiceabilityPlatformValidator.d.ts | 15 +- .../ServiceabilityPlatformValidator.js | 10 +- .../Share/SharePlatformApplicationClient.d.ts | 4 +- .../SharePlatformApplicationValidator.d.ts | 2 +- .../Theme/ThemePlatformApplicationClient.d.ts | 4 +- .../ThemePlatformApplicationValidator.d.ts | 2 +- sdk/platform/Theme/ThemePlatformClient.d.ts | 4 +- .../Theme/ThemePlatformValidator.d.ts | 2 +- .../User/UserPlatformApplicationClient.d.ts | 4 +- .../UserPlatformApplicationValidator.d.ts | 2 +- sdk/platform/User/UserPlatformModel.js | 8 +- .../Webhook/WebhookPlatformClient.d.ts | 16 +- sdk/platform/Webhook/WebhookPlatformClient.js | 83 - .../Webhook/WebhookPlatformModel.d.ts | 44 +- sdk/platform/Webhook/WebhookPlatformModel.js | 48 - .../Webhook/WebhookPlatformValidator.d.ts | 13 +- .../Webhook/WebhookPlatformValidator.js | 12 - sdk/platform/index.d.ts | 50 +- sdk/public/Billing/BillingPublicClient.d.ts | 16 +- sdk/public/Billing/BillingPublicClient.js | 80 - sdk/public/Billing/BillingPublicModel.d.ts | 158 +- sdk/public/Billing/BillingPublicModel.js | 180 - .../Billing/BillingPublicValidator.d.ts | 14 +- sdk/public/Billing/BillingPublicValidator.js | 12 - .../ConfigurationPublicClient.d.ts | 4 +- sdk/public/Content/ContentPublicClient.d.ts | 4 +- .../Inventory/InventoryPublicClient.d.ts | 4 +- .../Inventory/InventoryPublicValidator.d.ts | 2 +- sdk/public/Partner/PartnerPublicClient.d.ts | 4 +- sdk/public/PublicClient.d.ts | 14 +- sdk/public/Webhook/WebhookPublicClient.d.ts | 4 +- .../Webhook/WebhookPublicValidator.d.ts | 2 +- sdk/public/index.d.ts | 16 +- 246 files changed, 19864 insertions(+), 62773 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bc9c988fb..bb34b688d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -# CHANGE LOG (1.4.2-beta.1) - v1001.0.0-prerelease-v1 +# CHANGE LOG (1.4.2-beta.4) - v1.9.1-prerelease-v4 ## Application Client @@ -8,574 +8,386 @@ -#### getCart +#### checkoutCart - ##### What's New - - [Added] `query` parameter `cartType` (type: `string`) - - - [Added] property `applied_promo_details[].custom_field_meta` of schema `AppliedPromotion` in response with status code 200 - - [Added] property `items[].article.product_name` of schema `ProductArticle` in response with status code 200 - - [Added] property `items[].promotions_applied[].custom_field_meta` of schema `AppliedPromotion` in response with status code 200 - - [Added] property `items[].seller_count` of schema `CartProductInfo` in response with status code 200 - - [Added] property `is_pan_received` of schema `CartDetailResponse` in response with status code 200 - - [Added] property `custom_cart` of schema `CartDetailResponse` in response with status code 200 + - [Added] property `iin` of schema `CartCheckoutDetailRequest` in request body + - [Added] property `network` of schema `CartCheckoutDetailRequest` in request body + - [Added] property `type` of schema `CartCheckoutDetailRequest` in request body + - [Added] property `card_id` of schema `CartCheckoutDetailRequest` in request body -#### addItems +#### checkoutCartV2 - ##### What's New - - [Added] `query` parameter `cartType` (type: `string`) - - - [Added] property `items[].price_factory_type_id` of schema `AddProductCart` in request body - - [Added] property `cart.applied_promo_details[].custom_field_meta` of schema `AppliedPromotion` in response with status code 200 - - [Added] property `cart.items[].article.product_name` of schema `ProductArticle` in response with status code 200 - - [Added] property `cart.items[].promotions_applied[].custom_field_meta` of schema `AppliedPromotion` in response with status code 200 - - [Added] property `cart.items[].seller_count` of schema `CartProductInfo` in response with status code 200 - - [Added] property `cart.is_pan_received` of schema `CartDetailResponse` in response with status code 200 - - [Added] property `cart.custom_cart` of schema `CartDetailResponse` in response with status code 200 - + - [Added] property `iin` of schema `CartCheckoutDetailV2Request` in request body + - [Added] property `network` of schema `CartCheckoutDetailV2Request` in request body + - [Added] property `type` of schema `CartCheckoutDetailV2Request` in request body + - [Added] property `card_id` of schema `CartCheckoutDetailV2Request` in request body -#### updateCart -- ##### What's New - - [Added] `query` parameter `cartType` (type: `string`) +### Order - - [Added] property `items[].price_factory_type_id` of schema `UpdateProductCart` in request body - - [Added] property `cart.applied_promo_details[].custom_field_meta` of schema `AppliedPromotion` in response with status code 200 - - [Added] property `cart.items[].article.product_name` of schema `ProductArticle` in response with status code 200 - - [Added] property `cart.items[].promotions_applied[].custom_field_meta` of schema `AppliedPromotion` in response with status code 200 - - [Added] property `cart.items[].seller_count` of schema `CartProductInfo` in response with status code 200 - - [Added] property `cart.is_pan_received` of schema `CartDetailResponse` in response with status code 200 - - [Added] property `cart.custom_cart` of schema `CartDetailResponse` in response with status code 200 -#### deleteCart +#### getOrders - ##### What's New - - [Added] `query` parameter `cartType` (type: `string`) - + - [Added] property `items[].shipments[].prices.amount_to_be_collected` of schema `Prices` in response with status code 200 + - [Added] property `items[].shipments[].bags[].prices.amount_to_be_collected` of schema `Prices` in response with status code 200 + - [Added] property `items[].shipments[].bags[].financial_breakup[].amount_to_be_collected` of schema `FinancialBreakup` in response with status code 200 + - [Added] property `items[].shipments[].payment_info` of schema `Shipments` in response with status code 200 -#### applyCoupon +#### getOrderById - ##### What's New - - [Added] `query` parameter `cartType` (type: `string`) - - - [Added] property `applied_promo_details[].custom_field_meta` of schema `AppliedPromotion` in response with status code 201 - - [Added] property `items[].article.product_name` of schema `ProductArticle` in response with status code 201 - - [Added] property `items[].promotions_applied[].custom_field_meta` of schema `AppliedPromotion` in response with status code 201 - - [Added] property `items[].seller_count` of schema `CartProductInfo` in response with status code 201 - - [Added] property `is_pan_received` of schema `CartDetailResponse` in response with status code 201 - - [Added] property `custom_cart` of schema `CartDetailResponse` in response with status code 201 + - [Added] property `order.shipments[].prices.amount_to_be_collected` of schema `Prices` in response with status code 200 + - [Added] property `order.shipments[].bags[].prices.amount_to_be_collected` of schema `Prices` in response with status code 200 + - [Added] property `order.shipments[].bags[].financial_breakup[].amount_to_be_collected` of schema `FinancialBreakup` in response with status code 200 + - [Added] property `order.shipments[].payment_info` of schema `Shipments` in response with status code 200 -#### removeCoupon +#### getPosOrderById - ##### What's New - - [Added] `query` parameter `cartType` (type: `string`) - - - [Added] property `applied_promo_details[].custom_field_meta` of schema `AppliedPromotion` in response with status code 200 - - [Added] property `items[].article.product_name` of schema `ProductArticle` in response with status code 200 - - [Added] property `items[].promotions_applied[].custom_field_meta` of schema `AppliedPromotion` in response with status code 200 - - [Added] property `items[].seller_count` of schema `CartProductInfo` in response with status code 200 - - [Added] property `is_pan_received` of schema `CartDetailResponse` in response with status code 200 - - [Added] property `custom_cart` of schema `CartDetailResponse` in response with status code 200 + - [Added] property `order.shipments[].prices.amount_to_be_collected` of schema `Prices` in response with status code 200 + - [Added] property `order.shipments[].bags[].prices.amount_to_be_collected` of schema `Prices` in response with status code 200 + - [Added] property `order.shipments[].bags[].financial_breakup[].amount_to_be_collected` of schema `FinancialBreakup` in response with status code 200 + - [Added] property `order.shipments[].payment_info` of schema `Shipments` in response with status code 200 -#### getBulkDiscountOffers +#### getShipmentById - ##### What's New - - [Added] `query` parameter `cartType` (type: `string`) - - + - [Added] property `shipment.prices.amount_to_be_collected` of schema `Prices` in response with status code 200 + - [Added] property `shipment.bags[].prices.amount_to_be_collected` of schema `Prices` in response with status code 200 + - [Added] property `shipment.bags[].financial_breakup[].amount_to_be_collected` of schema `FinancialBreakup` in response with status code 200 + - [Added] property `shipment.payment_info` of schema `Shipments` in response with status code 200 -#### applyRewardPoints -- ##### What's New - - [Added] `query` parameter `cartType` (type: `string`) +### Payment - - [Added] property `applied_promo_details[].custom_field_meta` of schema `AppliedPromotion` in response with status code 200 - - [Added] property `items[].article.product_name` of schema `ProductArticle` in response with status code 200 - - [Added] property `items[].promotions_applied[].custom_field_meta` of schema `AppliedPromotion` in response with status code 200 - - [Added] property `items[].seller_count` of schema `CartProductInfo` in response with status code 200 - - [Added] property `is_pan_received` of schema `CartDetailResponse` in response with status code 200 - - [Added] property `custom_cart` of schema `CartDetailResponse` in response with status code 200 -#### selectAddress +#### getPaymentModeRoutes - ##### What's New - - [Added] property `applied_promo_details[].custom_field_meta` of schema `AppliedPromotion` in response with status code 201 - - [Added] property `items[].article.product_name` of schema `ProductArticle` in response with status code 201 - - [Added] property `items[].promotions_applied[].custom_field_meta` of schema `AppliedPromotion` in response with status code 201 - - [Added] property `items[].seller_count` of schema `CartProductInfo` in response with status code 201 - - [Added] property `is_pan_received` of schema `CartDetailResponse` in response with status code 201 - - [Added] property `custom_cart` of schema `CartDetailResponse` in response with status code 201 + - [Added] property `payment_options.payment_default_selection` of schema `PaymentOptionAndFlow` in response with status code 200 -#### selectPaymentMode +#### getPosPaymentModeRoutes - ##### What's New - - [Added] property `applied_promo_details[].custom_field_meta` of schema `AppliedPromotion` in response with status code 200 - - [Added] property `items[].article.product_name` of schema `ProductArticle` in response with status code 200 - - [Added] property `items[].promotions_applied[].custom_field_meta` of schema `AppliedPromotion` in response with status code 200 - - [Added] property `items[].seller_count` of schema `CartProductInfo` in response with status code 200 - - [Added] property `is_pan_received` of schema `CartDetailResponse` in response with status code 200 - - [Added] property `custom_cart` of schema `CartDetailResponse` in response with status code 200 + - [Added] property `payment_options.payment_default_selection` of schema `PaymentOptionAndFlow` in response with status code 200 -#### validateCouponForPayment - -- ##### What's New - - [Added] `query` parameter `cartType` (type: `string`) +#### walletLinkInitate +- ##### What's Changed + - [Breaking] [Changed] operationId from `walletLinkInitate` to `walletLinkInitiate` -#### getShipments +#### validateVPA - ##### What's New - - [Added] property `shipments[].items[].article.product_name` of schema `ProductArticle` in response with status code 200 - - [Added] property `shipments[].items[].promotions_applied[].custom_field_meta` of schema `AppliedPromotion` in response with status code 200 - - [Added] property `shipments[].items[].seller_count` of schema `CartProductInfo` in response with status code 200 + - [Added] property `aggregator` of schema `ValidateVPARequest` in request body -#### checkoutCart +#### getPaymentModeRoutesPaymentLink - ##### What's New - - [Added] `query` parameter `cartType` (type: `string`) + - [Added] property `payment_options.payment_default_selection` of schema `PaymentOptionAndFlow` in response with status code 200 - - [Added] property `iin` of schema `CartCheckoutDetailRequest` in request body - - [Added] property `network` of schema `CartCheckoutDetailRequest` in request body - - [Added] property `type` of schema `CartCheckoutDetailRequest` in request body - - [Added] property `card_id` of schema `CartCheckoutDetailRequest` in request body - - [Added] property `cart.items[].article.product_name` of schema `ProductArticle` in response with status code 200 - - [Added] property `cart.items[].promotions_applied[].custom_field_meta` of schema `AppliedPromotion` in response with status code 200 - - [Added] property `cart.items[].seller_count` of schema `CartProductInfo` in response with status code 200 - - [Added] property `cart.custom_cart` of schema `CheckCart` in response with status code 200 +### User -#### getCartSharedItems + + +#### loginWithFacebook - ##### What's New - - [Added] property `cart.items[].article.product_name` of schema `ProductArticle` in response with status code 200 - - [Added] property `cart.items[].promotions_applied[].custom_field_meta` of schema `AppliedPromotion` in response with status code 200 - - [Added] property `cart.items[].seller_count` of schema `CartProductInfo` in response with status code 200 - - [Added] property `cart.items[].article.product_name` of schema `ProductArticle` in response with status code 404 - - [Added] property `cart.items[].promotions_applied[].custom_field_meta` of schema `AppliedPromotion` in response with status code 404 - - [Added] property `cart.items[].seller_count` of schema `CartProductInfo` in response with status code 404 + - [Added] Response with status 401 +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 4XX + - [Breaking] [Deleted] Response with status 5XX -#### updateCartWithSharedItems -- ##### What's New - - [Added] property `cart.items[].article.product_name` of schema `ProductArticle` in response with status code 200 - - [Added] property `cart.items[].promotions_applied[].custom_field_meta` of schema `AppliedPromotion` in response with status code 200 - - [Added] property `cart.items[].seller_count` of schema `CartProductInfo` in response with status code 200 +#### loginWithGoogle +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 4XX + - [Breaking] [Deleted] Response with status 5XX -#### getPromotionOffers -- ##### What's New - - [Added] `query` parameter `cartType` (type: `string`) +#### loginWithGoogleAndroid +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 4XX + - [Breaking] [Deleted] Response with status 5XX -#### checkoutCartV2 +#### loginWithGoogleIOS -- ##### What's New - - [Added] `query` parameter `cartType` (type: `string`) +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 4XX + - [Breaking] [Deleted] Response with status 5XX - - [Added] property `iin` of schema `CartCheckoutDetailV2Request` in request body - - [Added] property `network` of schema `CartCheckoutDetailV2Request` in request body - - [Added] property `type` of schema `CartCheckoutDetailV2Request` in request body - - [Added] property `card_id` of schema `CartCheckoutDetailV2Request` in request body - - [Added] property `cart.items[].article.product_name` of schema `ProductArticle` in response with status code 200 - - [Added] property `cart.items[].promotions_applied[].custom_field_meta` of schema `AppliedPromotion` in response with status code 200 - - [Added] property `cart.items[].seller_count` of schema `CartProductInfo` in response with status code 200 - - [Added] property `cart.custom_cart` of schema `CheckCart` in response with status code 200 + +#### loginWithAppleIOS + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 4XX + - [Breaking] [Deleted] Response with status 5XX -#### getItemCountV2 +#### loginWithOTP - ##### What's New - - [Added] method `getItemCountV2` + - [Added] property `encrypt_otp` of schema `SendOtpRequestSchema` in request body + - [Added] Response with status 400 +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 4XX + - [Breaking] [Deleted] Response with status 5XX -#### getCartMetaConfigs +#### loginWithEmailAndPassword - ##### What's New - - [Added] method `getCartMetaConfigs` + - [Added] Response with status 400 +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 4XX + - [Breaking] [Deleted] Response with status 5XX -#### getCartMetaConfig +#### sendResetPasswordEmail - ##### What's New - - [Added] method `getCartMetaConfig` + - [Added] Response with status 400 +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 4XX + - [Breaking] [Deleted] Response with status 5XX -### Catalog +#### sendResetPasswordMobile + +- ##### What's New + - [Added] Response with status 400 +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 200 + - [Breaking] [Deleted] Response with status 4XX + - [Breaking] [Deleted] Response with status 5XX -#### getProductDetailBySlug +#### forgotPassword - ##### What's New - - [Added] property `price.selling` of schema `ProductListingPrice` in response with status code 200 + - [Added] Response with status 400 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 4XX + - [Breaking] [Deleted] Response with status 5XX -#### getProductComparisonBySlugs +#### resetForgotPassword - ##### What's New - - [Added] property `items[].price.selling` of schema `ProductListingPrice` in response with status code 200 + - [Added] Response with status 400 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 4XX + - [Breaking] [Deleted] Response with status 5XX -#### getSimilarComparisonProductBySlug +#### sendResetToken - ##### What's New - - [Added] property `items[].price.selling` of schema `ProductListingPrice` in response with status code 200 + - [Added] Response with status 400 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 4XX + - [Breaking] [Deleted] Response with status 5XX -#### getComparedFrequentlyProductBySlug +#### loginWithToken - ##### What's New - - [Added] property `similars.items[].price.selling` of schema `ProductListingPrice` in response with status code 200 + - [Added] property `code` of schema `APIError` in response with status code 400 + - [Added] property `info` of schema `APIError` in response with status code 400 + - [Added] property `request_id` of schema `APIError` in response with status code 400 + - [Added] property `error` of schema `APIError` in response with status code 400 + - [Added] property `meta` of schema `APIError` in response with status code 400 + - [Added] property `authenticated` of schema `APIError` in response with status code 400 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 4XX + - [Breaking] [Deleted] Response with status 5XX -#### getProducts +#### registerWithForm - ##### What's New - - [Added] property `items[].price.selling` of schema `ProductListingPrice` in response with status code 200 - - [Added] property `items[].discount_meta` of schema `ProductListingDetail` in response with status code 200 + - [Added] Response with status 400 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 4XX + - [Breaking] [Deleted] Response with status 5XX -#### getHomeProducts +#### verifyEmail - ##### What's New - - [Added] property `items[].price.selling` of schema `ProductListingPrice` in response with status code 200 - - [Added] property `items[].discount_meta` of schema `ProductListingDetail` in response with status code 200 + - [Added] Response with status 400 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 4XX + - [Breaking] [Deleted] Response with status 5XX -#### getSearchResults +#### verifyMobile - ##### What's New - - [Added] `query` parameter `categorySuggestion` (type: `integer`) + - [Added] Response with status 400 - - [Added] `query` parameter `brandSuggestion` (type: `integer`) +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 4XX + - [Breaking] [Deleted] Response with status 5XX - - [Added] `query` parameter `collectionSuggestion` (type: `integer`) - - [Added] `query` parameter `productSuggestion` (type: `integer`) +#### hasPassword - - [Added] `query` parameter `querySuggestion` (type: `integer`) +- ##### What's New + - [Added] Response with status 401 +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 4XX + - [Breaking] [Deleted] Response with status 5XX - ##### What's Changed - - [Changed] Required status of query parameter `q` + - [Breaking] [Changed] Type from `boolean` to `integer` of property `result` of schema `HasPasswordSuccess` in response with status code 200 -#### getCollectionItemsBySlug +#### updatePassword - ##### What's New - - [Added] property `items[].price.selling` of schema `ProductListingPrice` in response with status code 200 - - [Added] property `items[].discount_meta` of schema `ProductListingDetail` in response with status code 200 + - [Added] Response with status 400 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + - [Breaking] [Deleted] Response with status 4XX -#### getFollowedListing +#### deleteUser - ##### What's New - - [Added] property `items[].price.selling` of schema `ProductListingPrice` in response with status code 200 - - [Added] property `items[].discount_meta` of schema `ProductListingDetail` in response with status code 200 + - [Added] Response with status 400 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + - [Breaking] [Deleted] Response with status 4XX -#### getProductPriceBySlug +#### logout - ##### What's New - - [Added] `query` parameter `exchangeSellerIdentifier` (type: `string`) + - [Added] Response with status 401 - - [Added] `query` parameter `sellerId` (type: `integer`) +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 4XX + - [Breaking] [Deleted] Response with status 5XX +#### sendOTPOnMobile -### Configuration +- ##### What's New + - [Added] property `encrypt_otp` of schema `SendMobileOtpRequestSchema` in request body + - [Added] Response with status 400 +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 4XX + - [Breaking] [Deleted] Response with status 5XX -#### getFeatures +#### sendForgotOTPOnMobile - ##### What's New - - [Added] property `feature.buybox` of schema `AppFeature` in response with status code 200 - + - [Added] Response with status 400 -### Content +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 4XX + - [Breaking] [Deleted] Response with status 5XX +#### verifyMobileOTP -#### getBlog +- ##### What's New + - [Added] Response with status 400 - ##### What's Deprecated - - [Breaking] [Deleted] property `seo.breadcrumb[].action.popup` of schema `Action` in response with status code 200 + - [Breaking] [Deleted] Response with status 4XX + - [Breaking] [Deleted] Response with status 5XX -#### getBlogs +#### verifyMobileForgotOTP + +- ##### What's New + - [Added] Response with status 400 - ##### What's Deprecated - - [Breaking] [Deleted] property `items[].seo.breadcrumb[].action.popup` of schema `Action` in response with status code 200 + - [Breaking] [Deleted] Response with status 4XX + - [Breaking] [Deleted] Response with status 5XX -#### getLandingPage +#### sendOTPOnEmail + +- ##### What's New + - [Added] property `resend_email_token` of schema `EmailOtpSuccess` in response with status code 200 + - [Added] Response with status 400 - ##### What's Deprecated - - [Breaking] [Deleted] property `action.popup` of schema `Action` in response with status code 200 + - [Breaking] [Deleted] Response with status 4XX + - [Breaking] [Deleted] Response with status 5XX -#### getNavigations +#### sendForgotOTPOnEmail + +- ##### What's New + - [Added] property `resend_email_token` of schema `EmailOtpSuccess` in response with status code 200 + - [Added] Response with status 400 - ##### What's Deprecated - - [Breaking] [Deleted] property `items[].navigation[].action.popup` of schema `Action` in response with status code 200 + - [Breaking] [Deleted] Response with status 4XX + - [Breaking] [Deleted] Response with status 5XX -#### getSlideshows +#### verifyEmailOTP + +- ##### What's New + - [Added] Response with status 400 - ##### What's Deprecated - - [Breaking] [Deleted] property `items[].media[].action.popup` of schema `Action` in response with status code 200 + - [Breaking] [Deleted] Response with status 4XX + - [Breaking] [Deleted] Response with status 5XX -#### getSlideshow +#### verifyEmailForgotOTP + +- ##### What's New + - [Added] Response with status 400 - ##### What's Deprecated - - [Breaking] [Deleted] property `media[].action.popup` of schema `Action` in response with status code 200 + - [Breaking] [Deleted] Response with status 4XX + - [Breaking] [Deleted] Response with status 5XX -#### getPage - -- ##### What's Deprecated - - [Breaking] [Deleted] property `seo.breadcrumb[].action.popup` of schema `Action` in response with status code 200 - - -#### getPages - -- ##### What's Deprecated - - [Breaking] [Deleted] property `items[].seo.breadcrumb[].action.popup` of schema `Action` in response with status code 200 - - -### Lead - - - -#### getTicket - -- ##### What's New - - [Breaking] [Added] Type `array` to property `category.sub_categories` of schema `TicketCategory` in response with status code 200 - - [Added] property `category.sub_categories[]` of schema `TicketCategory` in response with status code 200 - - -#### createTicket - -- ##### What's New - - [Breaking] [Added] Type `array` to property `category.sub_categories` of schema `TicketCategory` in response with status code 200 - - [Added] property `category.sub_categories[]` of schema `TicketCategory` in response with status code 200 - - -#### submitCustomForm - -- ##### What's New - - [Breaking] [Added] Type `array` to property `ticket.category.sub_categories` of schema `TicketCategory` in response with status code 200 - - [Added] property `ticket.category.sub_categories[]` of schema `TicketCategory` in response with status code 200 - - -### Logistic - - - -#### getPincodeCity - -- ##### What's Deprecated - - [Breaking] [Deleted] method `getPincodeCity` - - - -#### getTatProduct - -- ##### What's Deprecated - - [Breaking] [Deleted] method `getTatProduct` - - - -### Order - - - -#### getOrders - -- ##### What's New - - [Added] property `items[].shipments[].prices.amount_to_be_collected` of schema `Prices` in response with status code 200 - - [Added] property `items[].shipments[].bags[].prices.amount_to_be_collected` of schema `Prices` in response with status code 200 - - [Added] property `items[].shipments[].bags[].financial_breakup[].amount_to_be_collected` of schema `FinancialBreakup` in response with status code 200 - - [Added] property `items[].shipments[].bags[].article` of schema `Bags` in response with status code 200 - - [Added] property `items[].shipments[].payment_info` of schema `Shipments` in response with status code 200 - - [Added] property `items[].shipments[].order` of schema `Shipments` in response with status code 200 - - -#### getOrderById - -- ##### What's New - - [Added] property `order.shipments[].prices.amount_to_be_collected` of schema `Prices` in response with status code 200 - - [Added] property `order.shipments[].bags[].prices.amount_to_be_collected` of schema `Prices` in response with status code 200 - - [Added] property `order.shipments[].bags[].financial_breakup[].amount_to_be_collected` of schema `FinancialBreakup` in response with status code 200 - - [Added] property `order.shipments[].bags[].article` of schema `Bags` in response with status code 200 - - [Added] property `order.shipments[].payment_info` of schema `Shipments` in response with status code 200 - - [Added] property `order.shipments[].order` of schema `Shipments` in response with status code 200 - - -#### getPosOrderById - -- ##### What's New - - [Added] property `order.shipments[].prices.amount_to_be_collected` of schema `Prices` in response with status code 200 - - [Added] property `order.shipments[].bags[].prices.amount_to_be_collected` of schema `Prices` in response with status code 200 - - [Added] property `order.shipments[].bags[].financial_breakup[].amount_to_be_collected` of schema `FinancialBreakup` in response with status code 200 - - [Added] property `order.shipments[].bags[].article` of schema `Bags` in response with status code 200 - - [Added] property `order.shipments[].payment_info` of schema `Shipments` in response with status code 200 - - [Added] property `order.shipments[].order` of schema `Shipments` in response with status code 200 - - -#### getShipmentById - -- ##### What's New - - [Added] property `shipment.prices.amount_to_be_collected` of schema `Prices` in response with status code 200 - - [Added] property `shipment.bags[].prices.amount_to_be_collected` of schema `Prices` in response with status code 200 - - [Added] property `shipment.bags[].financial_breakup[].amount_to_be_collected` of schema `FinancialBreakup` in response with status code 200 - - [Added] property `shipment.bags[].article` of schema `Bags` in response with status code 200 - - [Added] property `shipment.payment_info` of schema `Shipments` in response with status code 200 - - [Added] property `shipment.order` of schema `Shipments` in response with status code 200 - - -### Payment - - - -#### getAggregatorsConfig - -- ##### What's Deprecated - - [Deleted] Required status from properties `razorpay.config_type`, `razorpay.key`, `razorpay.secret` in response with status code 200 - - [Deleted] Required status from properties `juspay.config_type`, `juspay.key`, `juspay.secret` in response with status code 200 - - [Deleted] Required status from properties `simpl.config_type`, `simpl.key`, `simpl.secret` in response with status code 200 - - [Deleted] Required status from properties `payumoney.config_type`, `payumoney.key`, `payumoney.secret` in response with status code 200 - - [Deleted] Required status from properties `rupifi.config_type`, `rupifi.key`, `rupifi.secret` in response with status code 200 - - [Deleted] Required status from properties `mswipe.config_type`, `mswipe.key`, `mswipe.secret` in response with status code 200 - - [Deleted] Required status from properties `stripe.config_type`, `stripe.key`, `stripe.secret` in response with status code 200 - - [Deleted] Required status from properties `ccavenue.config_type`, `ccavenue.key`, `ccavenue.secret` in response with status code 200 - - -#### getPaymentModeRoutes - -- ##### What's New - - [Added] property `payment_options.payment_option[]` of schema `PaymentOptionAndFlow` in response with status code 200 - -- ##### What's Deprecated - - [Deleted] properties `payment_options.payment_option.is_pay_by_card_pl`, `payment_options.payment_option.add_card_enabled`, `payment_options.payment_option.display_priority`, `payment_options.payment_option.display_name`, `payment_options.payment_option.list`, `payment_options.payment_option.save_card`, `payment_options.payment_option.aggregator_name`, `payment_options.payment_option.name`, `payment_options.payment_option.anonymous_enable` in response with status code 200 - - [Deleted] Required status from properties `payment_options.payment_option.display_name`, `payment_options.payment_option.display_priority`, `payment_options.payment_option.name` in response with status code 200 - -- ##### What's Changed - - [Breaking] [Changed] Type from `object` to `array` of property `payment_options.payment_option` of schema `RootPaymentMode` in response with status code 200 - - -#### getPosPaymentModeRoutes - -- ##### What's New - - [Added] property `payment_options.payment_option[]` of schema `PaymentOptionAndFlow` in response with status code 200 - -- ##### What's Deprecated - - [Deleted] properties `payment_options.payment_option.is_pay_by_card_pl`, `payment_options.payment_option.add_card_enabled`, `payment_options.payment_option.display_priority`, `payment_options.payment_option.display_name`, `payment_options.payment_option.list`, `payment_options.payment_option.save_card`, `payment_options.payment_option.aggregator_name`, `payment_options.payment_option.name`, `payment_options.payment_option.anonymous_enable` in response with status code 200 - - [Deleted] Required status from properties `payment_options.payment_option.display_name`, `payment_options.payment_option.display_priority`, `payment_options.payment_option.name` in response with status code 200 - -- ##### What's Changed - - [Breaking] [Changed] Type from `object` to `array` of property `payment_options.payment_option` of schema `RootPaymentMode` in response with status code 200 - - -#### addBeneficiaryDetails - -- ##### What's Deprecated - - [Deleted] Required status from property `delights` in request body - - -#### updateDefaultBeneficiary - -- ##### What's New - - [Added] property `shipment_id` of schema `SetDefaultBeneficiaryRequest` in request body - - -#### getPaymentModeRoutesPaymentLink - -- ##### What's New - - [Added] property `payment_options.payment_option[]` of schema `PaymentOptionAndFlow` in response with status code 200 - -- ##### What's Deprecated - - [Deleted] properties `payment_options.payment_option.is_pay_by_card_pl`, `payment_options.payment_option.add_card_enabled`, `payment_options.payment_option.display_priority`, `payment_options.payment_option.display_name`, `payment_options.payment_option.list`, `payment_options.payment_option.save_card`, `payment_options.payment_option.aggregator_name`, `payment_options.payment_option.name`, `payment_options.payment_option.anonymous_enable` in response with status code 200 - - [Deleted] Required status from properties `payment_options.payment_option.display_name`, `payment_options.payment_option.display_priority`, `payment_options.payment_option.name` in response with status code 200 - -- ##### What's Changed - - [Breaking] [Changed] Type from `object` to `array` of property `payment_options.payment_option` of schema `RootPaymentMode` in response with status code 200 - - -#### createPaymentOrder - -- ##### What's Deprecated - - [Deleted] Required status from property `success` in response with status code 200 - - -#### deleteBeneficiaryDetails - -- ##### What's New - - [Added] method `deleteBeneficiaryDetails` - - - -#### getRefundOptions - -- ##### What's New - - [Added] method `getRefundOptions` - - - -#### setRefundOptionforShipment - -- ##### What's New - - [Added] method `setRefundOptionforShipment` - - - -#### getSelectedRefundOption - -- ##### What's New - - [Added] method `getSelectedRefundOption` - - - -#### getUserBeneficiariesDetailV2 - -- ##### What's New - - [Added] method `getUserBeneficiariesDetailV2` - - - -#### validateBeneficiaryAddress - -- ##### What's New - - [Added] method `validateBeneficiaryAddress` - - - -### User - - - -#### loginWithFacebook +#### getLoggedInUser - ##### What's New - - [Breaking] [Added] Possible nullable value `true` to property `user.gender` of schema `UserSchema` in response with status code 200 - [Added] Response with status 401 - ##### What's Deprecated @@ -583,71 +395,36 @@ - [Breaking] [Deleted] Response with status 5XX -#### loginWithGoogle - -- ##### What's New - - [Breaking] [Added] Possible nullable value `true` to property `user.gender` of schema `UserSchema` in response with status code 200 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - - [Breaking] [Deleted] Response with status 5XX - - -#### loginWithGoogleAndroid - -- ##### What's New - - [Breaking] [Added] Possible nullable value `true` to property `user.gender` of schema `UserSchema` in response with status code 200 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - - [Breaking] [Deleted] Response with status 5XX - - -#### loginWithGoogleIOS - -- ##### What's New - - [Breaking] [Added] Possible nullable value `true` to property `user.gender` of schema `UserSchema` in response with status code 200 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - - [Breaking] [Deleted] Response with status 5XX - - -#### loginWithAppleIOS - -- ##### What's New - - [Breaking] [Added] Possible nullable value `true` to property `user.gender` of schema `UserSchema` in response with status code 200 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - - [Breaking] [Deleted] Response with status 5XX - - -#### loginWithOTP +#### getListOfActiveSessions - ##### What's New - - [Added] property `ci` of schema `SendOtpRequestSchema` in request body - - [Added] Response with status 400 + - [Added] Response with status 401 - ##### What's Deprecated - [Breaking] [Deleted] Response with status 4XX - [Breaking] [Deleted] Response with status 5XX -#### loginWithEmailAndPassword +#### getPlatformConfig - ##### What's New - - [Breaking] [Added] Possible nullable value `true` to property `user.gender` of schema `UserSchema` in response with status code 200 - - [Added] Response with status 400 + - [Added] property `social_tokens.accountkit` of schema `SocialTokens` in response with status code 200 + - [Breaking] [Added] properties `delete_account_consent.consent_text` in response with status code 200 + - [Breaking] [Added] properties `session_config.duration`, `session_config.type`, `session_config.is_rolling` in response with status code 200 + - [Added] property `__v` of schema `PlatformSchema` in response with status code 200 - ##### What's Deprecated + - [Breaking] [Deleted] property `social_tokens.account_kit` of schema `SocialTokens` in response with status code 200 + - [Breaking] [Deleted] property `delete_account_consent[]` of schema `PlatformSchema` in response with status code 200 + - [Breaking] [Deleted] property `session_config[]` of schema `PlatformSchema` in response with status code 200 - [Breaking] [Deleted] Response with status 4XX - [Breaking] [Deleted] Response with status 5XX -#### sendResetPasswordEmail +#### updateProfile - ##### What's New + - [Added] property `encrypt_otp` of schema `EditProfileRequestSchema` in request body - [Added] Response with status 400 - ##### What's Deprecated @@ -655,7 +432,7 @@ - [Breaking] [Deleted] Response with status 5XX -#### sendResetPasswordMobile +#### addMobileNumber - ##### What's New - [Added] Response with status 400 @@ -665,10 +442,9 @@ - [Breaking] [Deleted] Response with status 5XX -#### forgotPassword +#### deleteMobileNumber - ##### What's New - - [Breaking] [Added] Possible nullable value `true` to property `user.gender` of schema `UserSchema` in response with status code 200 - [Added] Response with status 400 - ##### What's Deprecated @@ -676,7 +452,7 @@ - [Breaking] [Deleted] Response with status 5XX -#### resetForgotPassword +#### setMobileNumberAsPrimary - ##### What's New - [Added] Response with status 400 @@ -686,7 +462,7 @@ - [Breaking] [Deleted] Response with status 5XX -#### sendResetToken +#### sendVerificationLinkToMobile - ##### What's New - [Added] Response with status 400 @@ -696,23 +472,7 @@ - [Breaking] [Deleted] Response with status 5XX -#### loginWithToken - -- ##### What's New - - [Breaking] [Added] Possible nullable value `true` to property `user.gender` of schema `UserSchema` in response with status code 200 - - [Added] property `code` of schema `APIError` in response with status code 400 - - [Added] property `info` of schema `APIError` in response with status code 400 - - [Added] property `request_id` of schema `APIError` in response with status code 400 - - [Added] property `error` of schema `APIError` in response with status code 400 - - [Added] property `meta` of schema `APIError` in response with status code 400 - - [Added] property `authenticated` of schema `APIError` in response with status code 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - - [Breaking] [Deleted] Response with status 5XX - - -#### registerWithForm +#### addEmail - ##### What's New - [Added] Response with status 400 @@ -722,4569 +482,379 @@ - [Breaking] [Deleted] Response with status 5XX -#### verifyEmail - -- ##### What's New - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - - [Breaking] [Deleted] Response with status 5XX - - -#### verifyMobile - -- ##### What's New - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - - [Breaking] [Deleted] Response with status 5XX - - -#### hasPassword - -- ##### What's New - - [Added] Response with status 401 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - - [Breaking] [Deleted] Response with status 5XX - -- ##### What's Changed - - [Breaking] [Changed] Type from `boolean` to `integer` of property `result` of schema `HasPasswordSuccess` in response with status code 200 - - -#### updatePassword - -- ##### What's New - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 500 - - [Breaking] [Deleted] Response with status 4XX - - -#### deleteUser - -- ##### What's New - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 500 - - [Breaking] [Deleted] Response with status 4XX - - -#### logout - -- ##### What's New - - [Added] Response with status 401 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - - [Breaking] [Deleted] Response with status 5XX - - -#### sendOTPOnMobile - -- ##### What's New - - [Added] property `ci` of schema `SendMobileOtpRequestSchema` in request body - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - - [Breaking] [Deleted] Response with status 5XX - - -#### sendForgotOTPOnMobile - -- ##### What's New - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - - [Breaking] [Deleted] Response with status 5XX - - -#### verifyMobileOTP - -- ##### What's New - - [Breaking] [Added] Possible nullable value `true` to property `user.gender` of schema `UserSchema` in response with status code 200 - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - - [Breaking] [Deleted] Response with status 5XX - - -#### verifyMobileForgotOTP - -- ##### What's New - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - - [Breaking] [Deleted] Response with status 5XX - - -#### sendOTPOnEmail - -- ##### What's New - - [Added] property `resend_email_token` of schema `EmailOtpSuccess` in response with status code 200 - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - - [Breaking] [Deleted] Response with status 5XX - - -#### sendForgotOTPOnEmail - -- ##### What's New - - [Added] property `resend_email_token` of schema `EmailOtpSuccess` in response with status code 200 - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - - [Breaking] [Deleted] Response with status 5XX - - -#### verifyEmailOTP - -- ##### What's New - - [Breaking] [Added] Possible nullable value `true` to property `user.gender` of schema `UserSchema` in response with status code 200 - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - - [Breaking] [Deleted] Response with status 5XX - - -#### verifyEmailForgotOTP - -- ##### What's New - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - - [Breaking] [Deleted] Response with status 5XX - - -#### getLoggedInUser - -- ##### What's New - - [Breaking] [Added] Possible nullable value `true` to property `user.gender` of schema `UserSchema` in response with status code 200 - - [Added] Response with status 401 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - - [Breaking] [Deleted] Response with status 5XX - - -#### getListOfActiveSessions - -- ##### What's New - - [Added] Response with status 401 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - - [Breaking] [Deleted] Response with status 5XX - - -#### getPlatformConfig - -- ##### What's New - - [Added] property `social_tokens.accountkit` of schema `SocialTokens` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `mobile_image` of schema `PlatformSchema` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `desktop_image` of schema `PlatformSchema` in response with status code 200 - - [Breaking] [Added] properties `delete_account_consent.consent_text` in response with status code 200 - - [Breaking] [Added] properties `session_config.duration`, `session_config.type`, `session_config.is_rolling` in response with status code 200 - - [Added] property `__v` of schema `PlatformSchema` in response with status code 200 - -- ##### What's Deprecated - - [Breaking] [Deleted] property `social_tokens.account_kit` of schema `SocialTokens` in response with status code 200 - - [Breaking] [Deleted] property `delete_account_consent[]` of schema `PlatformSchema` in response with status code 200 - - [Breaking] [Deleted] property `session_config[]` of schema `PlatformSchema` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - - [Breaking] [Deleted] Response with status 5XX - - -#### updateProfile - -- ##### What's New - - [Added] property `ci` of schema `EditProfileRequestSchema` in request body - - [Breaking] [Added] Possible nullable value `true` to property `user.gender` of schema `UserSchema` in response with status code 200 - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - - [Breaking] [Deleted] Response with status 5XX - - -#### addMobileNumber - -- ##### What's New - - [Breaking] [Added] Possible nullable value `true` to property `user.gender` of schema `UserSchema` in response with status code 200 - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - - [Breaking] [Deleted] Response with status 5XX - - -#### deleteMobileNumber - -- ##### What's New - - [Breaking] [Added] Possible nullable value `true` to property `user.gender` of schema `UserSchema` in response with status code 200 - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - - [Breaking] [Deleted] Response with status 5XX - - -#### setMobileNumberAsPrimary - -- ##### What's New - - [Breaking] [Added] Possible nullable value `true` to property `user.gender` of schema `UserSchema` in response with status code 200 - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - - [Breaking] [Deleted] Response with status 5XX - - -#### sendVerificationLinkToMobile - -- ##### What's New - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - - [Breaking] [Deleted] Response with status 5XX - - -#### addEmail - -- ##### What's New - - [Breaking] [Added] Possible nullable value `true` to property `user.gender` of schema `UserSchema` in response with status code 200 - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - - [Breaking] [Deleted] Response with status 5XX - - -#### deleteEmail - -- ##### What's New - - [Breaking] [Added] Possible nullable value `true` to property `user.gender` of schema `UserSchema` in response with status code 200 - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - - [Breaking] [Deleted] Response with status 5XX - - -#### setEmailAsPrimary - -- ##### What's New - - [Breaking] [Added] Possible nullable value `true` to property `user.gender` of schema `UserSchema` in response with status code 200 - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - - [Breaking] [Deleted] Response with status 5XX - - -#### sendVerificationLinkToEmail - -- ##### What's New - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - - [Breaking] [Deleted] Response with status 5XX - - -#### userExists - -- ##### What's New - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - - [Breaking] [Deleted] Response with status 5XX - - -#### getUserAttributes - -- ##### What's New - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - - [Breaking] [Deleted] Response with status 5XX - - -#### updateUserAttributes - -- ##### What's New - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - - [Breaking] [Deleted] Response with status 5XX - - -## Partner Client - - - -### Lead - - - -#### getTickets - -- ##### What's New - - [Breaking] [Added] Type `array` to property `items[].category.sub_categories` of schema `TicketCategory` in response with status code 200 - - [Added] property `items[].category.sub_categories[]` of schema `TicketCategory` in response with status code 200 - - [Breaking] [Added] Type `array` to property `filters.categories[].sub_categories` of schema `TicketCategory` in response with status code 200 - - [Added] property `filters.categories[].sub_categories[]` of schema `TicketCategory` in response with status code 200 - -- ##### What's Deprecated - - [Deleted] Required status from property `filters.assignees` in response with status code 200 - - -#### createTicket - -- ##### What's New - - [Breaking] [Added] Type `array` to property `category.sub_categories` of schema `TicketCategory` in response with status code 200 - - [Added] property `category.sub_categories[]` of schema `TicketCategory` in response with status code 200 - - -#### getTicket - -- ##### What's New - - [Breaking] [Added] Type `array` to property `category.sub_categories` of schema `TicketCategory` in response with status code 200 - - [Added] property `category.sub_categories[]` of schema `TicketCategory` in response with status code 200 - - -#### editTicket - -- ##### What's New - - [Breaking] [Added] Type `array` to property `category.sub_categories` of schema `TicketCategory` in response with status code 200 - - [Added] property `category.sub_categories[]` of schema `TicketCategory` in response with status code 200 - - -#### getGeneralConfig - -- ##### What's Deprecated - - [Breaking] [Deleted] property `support_communication[].value` of schema `SupportCommunicationSchema` in response with status code 200 - - -### Webhook - - - -#### fetchSubscribers - -- ##### What's New - - [Added] property `items[].event_configs[].subscriber_event_mapping.topic` of schema `SubscriberEventMapping` in response with status code 200 - - [Added] property `items[].provider` of schema `ItemSchema` in response with status code 200 - - -#### createKafkaConfiguration - -- ##### What's New - - [Added] method `createKafkaConfiguration` - - - -#### fetchKafkaConfiguration - -- ##### What's New - - [Added] method `fetchKafkaConfiguration` - - - -#### updateKafkaConfiguration - -- ##### What's New - - [Added] method `updateKafkaConfiguration` - - - -#### validateKafkaConfiguration - -- ##### What's New - - [Added] method `validateKafkaConfiguration` - - - -## Platform Client - - - -### Billing - - - -#### getSubscription - -- ##### What's Changed - - [Breaking] [Changed] Type from `string` to `number` of property `mandate_amount` of schema `SubscriptionStatus` in response with status code 200 - - -#### paymentOptions - -- ##### What's New - - [Added] method `paymentOptions` - - - -#### verifyPayment - -- ##### What's New - - [Added] method `verifyPayment` - - - -#### globalSettings - -- ##### What's New - - [Added] method `globalSettings` - - - -#### subscriptionMethods - -- ##### What's New - - [Added] method `subscriptionMethods` - - - -#### subscriptionConfigs - -- ##### What's New - - [Added] method `subscriptionConfigs` - - - -#### subscriptionPlanChange - -- ##### What's New - - [Added] method `subscriptionPlanChange` - - - -#### getPaymentTransaction - -- ##### What's New - - [Added] method `getPaymentTransaction` - - - -#### getPaymentOptions - -- ##### What's New - - [Added] method `getPaymentOptions` - - - -### Cart - - - -#### createCoupon - -- ##### What's New - - [Added] property `error` of schema `OperationErrorResponse` in response with status code 400 - - -#### getCouponById - -- ##### What's New - - [Added] property `error` of schema `OperationErrorResponse` in response with status code 404 - - -#### updateCoupon - -- ##### What's New - - [Added] property `error` of schema `OperationErrorResponse` in response with status code 404 - - -#### updateCouponPartially - -- ##### What's New - - [Added] property `error` of schema `OperationErrorResponse` in response with status code 404 - - -#### getPromotions - -- ##### What's New - - [Added] property `items[].tags` of schema `PromotionListItem` in response with status code 200 - - [Added] property `items[].custom_field_meta` of schema `PromotionListItem` in response with status code 200 - - -#### createPromotion - -- ##### What's New - - [Added] property `tags` of schema `PromotionAdd` in request body - - [Added] property `tags` of schema `PromotionAdd` in response with status code 201 - - [Added] property `error` of schema `OperationErrorResponse` in response with status code 400 - - -#### getPromotionById - -- ##### What's New - - [Added] property `tags` of schema `PromotionUpdate` in response with status code 200 - - [Added] property `custom_field_meta` of schema `PromotionUpdate` in response with status code 200 - - [Added] property `error` of schema `OperationErrorResponse` in response with status code 404 - - -#### updatePromotion - -- ##### What's New - - [Added] property `tags` of schema `PromotionUpdate` in request body - - [Added] property `custom_field_meta` of schema `PromotionUpdate` in request body - - [Added] property `tags` of schema `PromotionUpdate` in response with status code 200 - - [Added] property `custom_field_meta` of schema `PromotionUpdate` in response with status code 200 - - [Added] property `error` of schema `OperationErrorResponse` in response with status code 404 - - -#### updatePromotionPartially - -- ##### What's New - - [Added] property `error` of schema `OperationErrorResponse` in response with status code 404 - - -#### updateCartMetaConfig - -- ##### What's New - - [Added] property `max_cart_value` of schema `CartMetaConfigUpdate` in request body - - [Added] property `international_delivery_charges` of schema `CartMetaConfigUpdate` in request body - - [Added] property `is_active` of schema `CartMetaConfigUpdate` in request body - - [Added] property `order_placing` of schema `CartMetaConfigUpdate` in request body - - [Added] property `name` of schema `CartMetaConfigUpdate` in request body - - [Added] property `article_tags` of schema `CartMetaConfigUpdate` in request body - - [Added] property `allow_coupon_with_rewards` of schema `CartMetaConfigUpdate` in request body - - [Added] property `gst_input` of schema `CartMetaConfigUpdate` in request body - - [Added] property `staff_selection` of schema `CartMetaConfigUpdate` in request body - - [Added] property `placing_for_customer` of schema `CartMetaConfigUpdate` in request body - - [Added] property `pan_card` of schema `CartMetaConfigUpdate` in request body - - [Added] property `success` of schema `CartMetaConfigDetailResponse` in response with status code 200 - - [Added] property `data` of schema `CartMetaConfigDetailResponse` in response with status code 200 - - [Added] property `error` of schema `OperationErrorResponse` in response with status code 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] property `min_cart_value` of schema `CartMetaConfigUpdate` in response with status code 200 - - [Breaking] [Deleted] property `bulk_coupons` of schema `CartMetaConfigUpdate` in response with status code 200 - - [Breaking] [Deleted] property `max_cart_items` of schema `CartMetaConfigUpdate` in response with status code 200 - - [Breaking] [Deleted] property `gift_display_text` of schema `CartMetaConfigUpdate` in response with status code 200 - - [Breaking] [Deleted] property `delivery_charges` of schema `CartMetaConfigUpdate` in response with status code 200 - - [Breaking] [Deleted] property `revenue_engine_coupon` of schema `CartMetaConfigUpdate` in response with status code 200 - - [Breaking] [Deleted] property `gift_pricing` of schema `CartMetaConfigUpdate` in response with status code 200 - - [Breaking] [Deleted] property `enabled` of schema `CartMetaConfigUpdate` in response with status code 200 - - -#### fetchCartMetaConfig - -- ##### What's Deprecated - - [Breaking] [Deleted] property `min_cart_value` of schema `CartMetaConfigAdd` in response with status code 200 - - [Breaking] [Deleted] property `bulk_coupons` of schema `CartMetaConfigAdd` in response with status code 200 - - [Breaking] [Deleted] property `max_cart_items` of schema `CartMetaConfigAdd` in response with status code 200 - - [Breaking] [Deleted] property `gift_display_text` of schema `CartMetaConfigAdd` in response with status code 200 - - [Breaking] [Deleted] property `delivery_charges` of schema `CartMetaConfigAdd` in response with status code 200 - - [Breaking] [Deleted] property `revenue_engine_coupon` of schema `CartMetaConfigAdd` in response with status code 200 - - [Breaking] [Deleted] property `gift_pricing` of schema `CartMetaConfigAdd` in response with status code 200 - - [Breaking] [Deleted] property `enabled` of schema `CartMetaConfigAdd` in response with status code 200 - - [Breaking] [Deleted] Response with status 400 - -- ##### What's Changed - - [Breaking] [Changed] operationId from `fetchCartMetaConfig` to `getCartMetaConfigs` - - -#### createCartMetaConfig - -- ##### What's New - - [Added] property `max_cart_value` of schema `CartMetaConfigAdd` in request body - - [Added] property `international_delivery_charges` of schema `CartMetaConfigAdd` in request body - - [Added] property `is_active` of schema `CartMetaConfigAdd` in request body - - [Added] property `order_placing` of schema `CartMetaConfigAdd` in request body - - [Added] property `name` of schema `CartMetaConfigAdd` in request body - - [Added] property `slug` of schema `CartMetaConfigAdd` in request body - - [Added] property `article_tags` of schema `CartMetaConfigAdd` in request body - - [Added] property `allow_coupon_with_rewards` of schema `CartMetaConfigAdd` in request body - - [Added] property `gst_input` of schema `CartMetaConfigAdd` in request body - - [Added] property `staff_selection` of schema `CartMetaConfigAdd` in request body - - [Added] property `placing_for_customer` of schema `CartMetaConfigAdd` in request body - - [Added] property `pan_card` of schema `CartMetaConfigAdd` in request body - - [Breaking] [Added] Required status to properties `name`, `slug` in request body - - [Added] Response with status 200 - - [Added] property `error` of schema `OperationErrorResponse` in response with status code 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 201 - - -#### updatePriceAdjustment - -- ##### What's New - - [Added] property `remove_articles` of schema `PriceAdjustmentUpdate` in request body - - [Added] property `auto_remove` of schema `PriceAdjustmentUpdate` in request body - - [Added] property `data.remove_articles` of schema `PriceAdjustment` in response with status code 200 - - [Added] property `data.auto_remove` of schema `PriceAdjustment` in response with status code 200 - - [Added] property `data.distribution_level` of schema `PriceAdjustment` in response with status code 200 - - [Added] property `data.distribution_type` of schema `PriceAdjustment` in response with status code 200 - - [Added] property `error` of schema `OperationErrorResponse` in response with status code 400 - - -#### removePriceAdjustment - -- ##### What's New - - [Added] property `error` of schema `OperationErrorResponse` in response with status code 400 - - -#### addPriceAdjustment - -- ##### What's New - - [Added] property `remove_articles` of schema `PriceAdjustmentAdd` in request body - - [Added] property `auto_remove` of schema `PriceAdjustmentAdd` in request body - - [Added] property `distribution_level` of schema `PriceAdjustmentAdd` in request body - - [Added] property `distribution_type` of schema `PriceAdjustmentAdd` in request body - - [Added] property `data.remove_articles` of schema `PriceAdjustment` in response with status code 201 - - [Added] property `data.auto_remove` of schema `PriceAdjustment` in response with status code 201 - - [Added] property `data.distribution_level` of schema `PriceAdjustment` in response with status code 201 - - [Added] property `data.distribution_type` of schema `PriceAdjustment` in response with status code 201 - - [Added] property `error` of schema `OperationErrorResponse` in response with status code 400 - - -#### fetchAndvalidateCartItems - -- ##### What's New - - [Added] property `items[].article.product_name` of schema `ProductArticle` in response with status code 200 - - [Added] property `items[].promotions_applied[].custom_field_meta` of schema `AppliedPromotion` in response with status code 200 - - [Added] property `items[].seller_count` of schema `CartProductInfo` in response with status code 200 - - -#### checkCartServiceability - -- ##### What's New - - [Added] property `items[].article.product_name` of schema `ProductArticle` in response with status code 200 - - [Added] property `items[].promotions_applied[].custom_field_meta` of schema `AppliedPromotion` in response with status code 200 - - [Added] property `items[].seller_count` of schema `CartProductInfo` in response with status code 200 - - -#### getAbandonedCartDetails - -- ##### What's New - - [Added] property `items[].article.product_name` of schema `ProductArticle` in response with status code 200 - - [Added] property `items[].promotions_applied[].custom_field_meta` of schema `AppliedPromotion` in response with status code 200 - - [Added] property `items[].seller_count` of schema `CartProductInfo` in response with status code 200 - - [Added] property `applied_promo_details[].custom_field_meta` of schema `AppliedPromotion` in response with status code 200 - - [Added] property `is_pan_received` of schema `CartDetailResponse` in response with status code 200 - - [Added] property `custom_cart` of schema `CartDetailResponse` in response with status code 200 - - -#### addItems - -- ##### What's New - - [Added] property `items[].price_factory_type_id` of schema `AddProductCart` in request body - - [Added] property `cart.items[].article.product_name` of schema `ProductArticle` in response with status code 200 - - [Added] property `cart.items[].promotions_applied[].custom_field_meta` of schema `AppliedPromotion` in response with status code 200 - - [Added] property `cart.items[].seller_count` of schema `CartProductInfo` in response with status code 200 - - [Added] property `cart.applied_promo_details[].custom_field_meta` of schema `AppliedPromotion` in response with status code 200 - - [Added] property `cart.is_pan_received` of schema `CartDetailResponse` in response with status code 200 - - [Added] property `cart.custom_cart` of schema `CartDetailResponse` in response with status code 200 - - -#### updateCart - -- ##### What's New - - [Added] property `items[].price_factory_type_id` of schema `UpdateProductCart` in request body - - [Added] property `cart.items[].article.product_name` of schema `ProductArticle` in response with status code 200 - - [Added] property `cart.items[].promotions_applied[].custom_field_meta` of schema `AppliedPromotion` in response with status code 200 - - [Added] property `cart.items[].seller_count` of schema `CartProductInfo` in response with status code 200 - - [Added] property `cart.applied_promo_details[].custom_field_meta` of schema `AppliedPromotion` in response with status code 200 - - [Added] property `cart.is_pan_received` of schema `CartDetailResponse` in response with status code 200 - - [Added] property `cart.custom_cart` of schema `CartDetailResponse` in response with status code 200 - - -#### getCartSharedItems - -- ##### What's New - - [Added] property `cart.items[].article.product_name` of schema `ProductArticle` in response with status code 200 - - [Added] property `cart.items[].promotions_applied[].custom_field_meta` of schema `AppliedPromotion` in response with status code 200 - - [Added] property `cart.items[].seller_count` of schema `CartProductInfo` in response with status code 200 - - [Added] property `cart.items[].article.product_name` of schema `ProductArticle` in response with status code 404 - - [Added] property `cart.items[].promotions_applied[].custom_field_meta` of schema `AppliedPromotion` in response with status code 404 - - [Added] property `cart.items[].seller_count` of schema `CartProductInfo` in response with status code 404 - - -#### updateCartWithSharedItems - -- ##### What's New - - [Added] property `cart.items[].article.product_name` of schema `ProductArticle` in response with status code 200 - - [Added] property `cart.items[].promotions_applied[].custom_field_meta` of schema `AppliedPromotion` in response with status code 200 - - [Added] property `cart.items[].seller_count` of schema `CartProductInfo` in response with status code 200 - - -#### updateCartUser - -- ##### What's New - - [Added] property `items[].article.product_name` of schema `ProductArticle` in response with status code 200 - - [Added] property `items[].promotions_applied[].custom_field_meta` of schema `AppliedPromotion` in response with status code 200 - - [Added] property `items[].seller_count` of schema `CartProductInfo` in response with status code 200 - - [Added] property `applied_promo_details[].custom_field_meta` of schema `AppliedPromotion` in response with status code 200 - - [Added] property `is_pan_received` of schema `UserCartMappingResponse` in response with status code 200 - - -#### getCart - -- ##### What's New - - [Added] `query` parameter `cartType` (type: `string`) - - - [Added] property `items[].article.product_name` of schema `ProductArticle` in response with status code 200 - - [Added] property `items[].promotions_applied[].custom_field_meta` of schema `AppliedPromotion` in response with status code 200 - - [Added] property `items[].seller_count` of schema `CartProductInfo` in response with status code 200 - - [Added] property `applied_promo_details[].custom_field_meta` of schema `AppliedPromotion` in response with status code 200 - - [Added] property `is_pan_received` of schema `CartDetailResponse` in response with status code 200 - - [Added] property `custom_cart` of schema `CartDetailResponse` in response with status code 200 - - -#### platformAddItems - -- ##### What's New - - [Added] `query` parameter `cartType` (type: `string`) - - - [Added] property `items[].price_factory_type_id` of schema `AddProductCart` in request body - - [Added] property `cart.items[].article.product_name` of schema `ProductArticle` in response with status code 200 - - [Added] property `cart.items[].promotions_applied[].custom_field_meta` of schema `AppliedPromotion` in response with status code 200 - - [Added] property `cart.items[].seller_count` of schema `CartProductInfo` in response with status code 200 - - [Added] property `cart.applied_promo_details[].custom_field_meta` of schema `AppliedPromotion` in response with status code 200 - - [Added] property `cart.is_pan_received` of schema `CartDetailResponse` in response with status code 200 - - [Added] property `cart.custom_cart` of schema `CartDetailResponse` in response with status code 200 - - -#### platformUpdateCart - -- ##### What's New - - [Added] `query` parameter `cartType` (type: `string`) - - - [Added] property `items[].price_factory_type_id` of schema `UpdateProductCart` in request body - - [Added] property `cart.items[].article.product_name` of schema `ProductArticle` in response with status code 200 - - [Added] property `cart.items[].promotions_applied[].custom_field_meta` of schema `AppliedPromotion` in response with status code 200 - - [Added] property `cart.items[].seller_count` of schema `CartProductInfo` in response with status code 200 - - [Added] property `cart.applied_promo_details[].custom_field_meta` of schema `AppliedPromotion` in response with status code 200 - - [Added] property `cart.is_pan_received` of schema `CartDetailResponse` in response with status code 200 - - [Added] property `cart.custom_cart` of schema `CartDetailResponse` in response with status code 200 - - -#### deleteCart - -- ##### What's New - - [Added] `query` parameter `cartType` (type: `string`) - - - -#### getItemCount - -- ##### What's New - - [Added] `query` parameter `cartType` (type: `string`) - - - -#### applyCoupon - -- ##### What's New - - [Added] property `items[].article.product_name` of schema `ProductArticle` in response with status code 201 - - [Added] property `items[].promotions_applied[].custom_field_meta` of schema `AppliedPromotion` in response with status code 201 - - [Added] property `items[].seller_count` of schema `CartProductInfo` in response with status code 201 - - [Added] property `applied_promo_details[].custom_field_meta` of schema `AppliedPromotion` in response with status code 201 - - [Added] property `is_pan_received` of schema `CartDetailResponse` in response with status code 201 - - [Added] property `custom_cart` of schema `CartDetailResponse` in response with status code 201 - - -#### removeCoupon - -- ##### What's New - - [Added] property `items[].article.product_name` of schema `ProductArticle` in response with status code 200 - - [Added] property `items[].promotions_applied[].custom_field_meta` of schema `AppliedPromotion` in response with status code 200 - - [Added] property `items[].seller_count` of schema `CartProductInfo` in response with status code 200 - - [Added] property `applied_promo_details[].custom_field_meta` of schema `AppliedPromotion` in response with status code 200 - - [Added] property `is_pan_received` of schema `CartDetailResponse` in response with status code 200 - - [Added] property `custom_cart` of schema `CartDetailResponse` in response with status code 200 - - -#### selectAddress - -- ##### What's New - - [Added] property `items[].article.product_name` of schema `ProductArticle` in response with status code 201 - - [Added] property `items[].promotions_applied[].custom_field_meta` of schema `AppliedPromotion` in response with status code 201 - - [Added] property `items[].seller_count` of schema `CartProductInfo` in response with status code 201 - - [Added] property `applied_promo_details[].custom_field_meta` of schema `AppliedPromotion` in response with status code 201 - - [Added] property `is_pan_received` of schema `CartDetailResponse` in response with status code 201 - - [Added] property `custom_cart` of schema `CartDetailResponse` in response with status code 201 - - -#### getShipments - -- ##### What's New - - [Added] property `items[].article.product_name` of schema `ProductArticle` in response with status code 200 - - [Added] property `items[].promotions_applied[].custom_field_meta` of schema `AppliedPromotion` in response with status code 200 - - [Added] property `items[].seller_count` of schema `CartProductInfo` in response with status code 200 - - [Added] property `shipments[].items[].article.product_name` of schema `ProductArticle` in response with status code 200 - - [Added] property `shipments[].items[].promotions_applied[].custom_field_meta` of schema `AppliedPromotion` in response with status code 200 - - [Added] property `shipments[].items[].seller_count` of schema `CartProductInfo` in response with status code 200 - - [Added] property `applied_promo_details[].custom_field_meta` of schema `AppliedPromotion` in response with status code 200 - - [Added] property `is_pan_received` of schema `PlatformCartShipmentsResponse` in response with status code 200 - - -#### updateShipments - -- ##### What's New - - [Added] property `items[].article.product_name` of schema `ProductArticle` in response with status code 200 - - [Added] property `items[].promotions_applied[].custom_field_meta` of schema `AppliedPromotion` in response with status code 200 - - [Added] property `items[].seller_count` of schema `CartProductInfo` in response with status code 200 - - [Added] property `shipments[].items[].article.product_name` of schema `ProductArticle` in response with status code 200 - - [Added] property `shipments[].items[].promotions_applied[].custom_field_meta` of schema `AppliedPromotion` in response with status code 200 - - [Added] property `shipments[].items[].seller_count` of schema `CartProductInfo` in response with status code 200 - - [Added] property `applied_promo_details[].custom_field_meta` of schema `AppliedPromotion` in response with status code 200 - - [Added] property `is_pan_received` of schema `PlatformCartShipmentsResponse` in response with status code 200 - - -#### updateCartMeta - -- ##### What's New - - [Added] property `is_pan_received` of schema `PlatformCartMetaRequest` in request body - - -#### platformCheckoutCart - -- ##### What's New - - [Added] `query` parameter `cartType` (type: `string`) - - - [Added] property `iin` of schema `PlatformCartCheckoutDetailRequest` in request body - - [Added] property `network` of schema `PlatformCartCheckoutDetailRequest` in request body - - [Added] property `type` of schema `PlatformCartCheckoutDetailRequest` in request body - - [Added] property `card_id` of schema `PlatformCartCheckoutDetailRequest` in request body - - [Added] property `cart.items[].article.product_name` of schema `ProductArticle` in response with status code 200 - - [Added] property `cart.items[].promotions_applied[].custom_field_meta` of schema `AppliedPromotion` in response with status code 200 - - [Added] property `cart.items[].seller_count` of schema `CartProductInfo` in response with status code 200 - - [Added] property `cart.custom_cart` of schema `CheckCart` in response with status code 200 - -- ##### What's Deprecated - - [Deleted] Required status from property `user_id` in request body - - -#### selectPaymentMode - -- ##### What's New - - [Added] property `items[].article.product_name` of schema `ProductArticle` in response with status code 200 - - [Added] property `items[].promotions_applied[].custom_field_meta` of schema `AppliedPromotion` in response with status code 200 - - [Added] property `items[].seller_count` of schema `CartProductInfo` in response with status code 200 - - [Added] property `applied_promo_details[].custom_field_meta` of schema `AppliedPromotion` in response with status code 200 - - [Added] property `is_pan_received` of schema `CartDetailResponse` in response with status code 200 - - [Added] property `custom_cart` of schema `CartDetailResponse` in response with status code 200 - - -#### platformCheckoutCartV2 - -- ##### What's New - - [Added] `query` parameter `cartType` (type: `string`) - - - [Added] property `iin` of schema `PlatformCartCheckoutDetailV2Request` in request body - - [Added] property `network` of schema `PlatformCartCheckoutDetailV2Request` in request body - - [Added] property `type` of schema `PlatformCartCheckoutDetailV2Request` in request body - - [Added] property `card_id` of schema `PlatformCartCheckoutDetailV2Request` in request body - - [Added] property `cart.items[].article.product_name` of schema `ProductArticle` in response with status code 200 - - [Added] property `cart.items[].promotions_applied[].custom_field_meta` of schema `AppliedPromotion` in response with status code 200 - - [Added] property `cart.items[].seller_count` of schema `CartProductInfo` in response with status code 200 - - [Added] property `cart.custom_cart` of schema `CheckCart` in response with status code 200 - -- ##### What's Deprecated - - [Deleted] Required status from property `user_id` in request body - - -#### selectPaymentModeV2 - -- ##### What's New - - [Added] property `items[].article.product_name` of schema `ProductArticle` in response with status code 200 - - [Added] property `items[].promotions_applied[].custom_field_meta` of schema `AppliedPromotion` in response with status code 200 - - [Added] property `items[].seller_count` of schema `CartProductInfo` in response with status code 200 - - [Added] property `applied_promo_details[].custom_field_meta` of schema `AppliedPromotion` in response with status code 200 - - [Added] property `is_pan_received` of schema `CartDetailResponse` in response with status code 200 - - [Added] property `custom_cart` of schema `CartDetailResponse` in response with status code 200 - - -#### getCouponTags - -- ##### What's New - - [Added] method `getCouponTags` - - - -#### getPromotionTags - -- ##### What's New - - [Added] method `getPromotionTags` - - - -#### getCartMetaConfig - -- ##### What's New - - [Added] method `getCartMetaConfig` - - - -#### upateCartMetaActiveStatus - -- ##### What's New - - [Added] method `upateCartMetaActiveStatus` - - - -#### deleteCartMetaConfig - -- ##### What's New - - [Added] method `deleteCartMetaConfig` - - - -#### getPriceAdjustments - -- ##### What's New - - [Added] method `getPriceAdjustments` - - - -### Catalog - - - -#### getCatalogInsights - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/analytics/insights/` To `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/analytics/insights` - - -#### getApplicationBrandListing - -- ##### What's New - - [Breaking] [Added] properties `items[].action.page.query.collection` in response with status code 200 - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] property `items[].logo.aspect_ratio` of schema `Media2` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Breaking] [Changed] Type from `string` to `integer` of property `items[].departments[]` of schema `BrandItem` in response with status code 200 - - -#### updateAppBrand - -- ##### What's New - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - - -#### getApplicationBrands - -- ##### What's New - - [Breaking] [Added] properties `items[].action.page.query.collection` in response with status code 200 - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] property `items[].logo.aspect_ratio` of schema `Media2` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Breaking] [Changed] Type from `string` to `integer` of property `items[].departments[]` of schema `BrandItem` in response with status code 200 - - -#### getCategories - -- ##### What's New - - [Breaking] [Added] properties `data[].items[].action.page.query.collection` in response with status code 200 - - [Breaking] [Added] properties `data[].items[].childs[].action.page.query.collection` in response with status code 200 - - [Breaking] [Added] properties `data[].items[].childs[].childs[].action.page.query.collection` in response with status code 200 - - [Breaking] [Added] properties `data[].items[].childs[].childs[].childs[].action.page.query.collection` in response with status code 200 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - - -#### getApplicationCategoryListing - -- ##### What's New - - [Breaking] [Added] properties `items[].action.page.query.collection` in response with status code 200 - -- ##### What's Deprecated - - [Breaking] [Deleted] property `items[].logo.aspect_ratio` of schema `Media2` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Breaking] [Changed] Type from `string` to `integer` of property `items[].departments[]` of schema `BrandItem` in response with status code 200 - - -#### updateAppCategory - -- ##### What's New - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - - -#### getAllCollections - -- ##### What's New - - [Breaking] [Deleted] `query` parameter `tags` (type: `array`), - [Added] `query` parameter `tag` (type: `array`) - - [Breaking] [Added] properties `items[].action.page.query.collection` in response with status code 200 - - [Breaking] [Added] Type `string` to property `items[].query[].value[]` of schema `CollectionQuery` in response with status code 200 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/collections/` To `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/collections` - - -#### createCollection - -- ##### What's New - - [Added] property `banners.landscape.secure_url` of schema `CollectionImage` in request body - - [Added] property `banners.landscape.type` of schema `CollectionImage` in request body - - [Added] property `banners.portrait.secure_url` of schema `CollectionImage` in request body - - [Added] property `banners.portrait.type` of schema `CollectionImage` in request body - - [Added] property `logo.secure_url` of schema `CollectionImage` in request body - - [Added] property `logo.type` of schema `CollectionImage` in request body - - [Breaking] [Added] Type `string` to property `query[].value[]` of schema `CollectionQuery` in request body - - [Breaking] [Added] properties `seo.sitemap.priority`, `seo.sitemap.frequency` in request body - - [Breaking] [Added] properties `_schedule.cron`, `_schedule.duration`, `_schedule.end`, `_schedule.next_schedule`, `_schedule.start` in response with status code 200 - - [Breaking] [Added] properties `badge.color`, `badge.text` in response with status code 200 - - [Added] Default value `true` to property `is_active` of schema `CollectionCreateResponse` in response with status code 200 - - [Added] Default value to property `meta` of schema `CollectionCreateResponse` in response with status code 200 - - [Added] Default value `99999` to property `priority` of schema `CollectionCreateResponse` in response with status code 200 - - [Breaking] [Added] Type `string` to property `query[].value[]` of schema `CollectionQuery` in response with status code 200 - - [Added] Default value `` to property `query` of schema `CollectionCreateResponse` in response with status code 200 - - [Added] property `is_visible` of schema `CollectionCreateResponse` in response with status code 200 - - [Added] property `published` of schema `CollectionCreateResponse` in response with status code 200 - - [Added] property `seo` of schema `CollectionCreateResponse` in response with status code 200 - - [Added] property `_custom_json` of schema `CollectionCreateResponse` in response with status code 200 - - [Added] property `_locale_language` of schema `CollectionCreateResponse` in response with status code 200 - - [Added] property `action` of schema `CollectionCreateResponse` in response with status code 200 - - [Added] property `tags` of schema `CollectionCreateResponse` in response with status code 200 - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Deleted] Value format from `date-time` from property `_schedule.end` of schema `CollectionSchedule` in request body - - [Deleted] Value format from `date-time` from property `_schedule.next_schedule[].end` of schema `NextSchedule` in request body - - [Deleted] Value format from `date-time` from property `_schedule.next_schedule[].start` of schema `NextSchedule` in request body - - [Deleted] Value format from `date-time` from property `_schedule.start` of schema `CollectionSchedule` in request body - - [Deleted] Required status from properties `banners.landscape.aspect_ratio`, `banners.landscape.url` in request body - - [Deleted] Required status from properties `banners.portrait.aspect_ratio`, `banners.portrait.url` in request body - - [Deleted] Possible nullable value from `true` from property `created_by` of schema `CreateCollection` in request body - - [Deleted] Required status from properties `logo.aspect_ratio`, `logo.url` in request body - - [Deleted] Possible nullable value from `true` from property `modified_by` of schema `CreateCollection` in request body - - [Deleted] Type from `object` from property `seo.sitemap` of schema `SeoDetail` in request body - - [Deleted] Possible values from `items,query` from property `type` of schema `CreateCollection` in request body - - [Deleted] Required status from property `app_id` in request body - - [Breaking] [Deleted] property `banners.landscape.aspect_ratio` of schema `BannerImage` in response with status code 200 - - [Deleted] Value format from `url` from property `banners.landscape.url` of schema `BannerImage` in response with status code 200 - - [Breaking] [Deleted] property `banners.portrait.aspect_ratio` of schema `BannerImage` in response with status code 200 - - [Deleted] Value format from `url` from property `banners.portrait.url` of schema `BannerImage` in response with status code 200 - - [Breaking] [Deleted] property `cron` of schema `CollectionCreateResponse` in response with status code 200 - - [Breaking] [Deleted] property `logo.aspect_ratio` of schema `BannerImage` in response with status code 200 - - [Deleted] Value format from `url` from property `logo.url` of schema `BannerImage` in response with status code 200 - - [Breaking] [Deleted] property `tag` of schema `CollectionCreateResponse` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Breaking] [Changed] Type from `array` to `object` of property `seo.breadcrumbs[].action` of schema `ApplicationItemSeoBreadcrumbs` in request body - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/collections/` To `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/collections` - - -#### getQueryFilters - -- ##### What's New - - [Breaking] [Added] Type `string` to property `filters[].values[].value` of schema `ProductFiltersValue` in response with status code 200 - - [Added] property `sort_on[].display` of schema `ProductSortOn` in response with status code 200 - - [Added] property `sort_on[].logo` of schema `ProductSortOn` in response with status code 200 - -- ##### What's Deprecated - - [Deleted] Required status from property `operators` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/collections/query-options/` To `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/collections/query-options` - - -#### deleteCollection - -- ##### What's New - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/collections/{id}/` To `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/collections/{id}` - - -#### updateCollection - -- ##### What's New - - [Added] property `banners.landscape.secure_url` of schema `CollectionImage` in request body - - [Added] property `banners.landscape.type` of schema `CollectionImage` in request body - - [Added] property `banners.portrait.secure_url` of schema `CollectionImage` in request body - - [Added] property `banners.portrait.type` of schema `CollectionImage` in request body - - [Added] property `logo.secure_url` of schema `CollectionImage` in request body - - [Added] property `logo.type` of schema `CollectionImage` in request body - - [Breaking] [Added] Type `string` to property `query[].value[]` of schema `CollectionQuery` in request body - - [Breaking] [Added] properties `seo.sitemap.priority`, `seo.sitemap.frequency` in request body - - [Added] property `action` of schema `UpdateCollection` in request body - - [Added] property `uid` of schema `UpdateCollection` in request body - - [Added] property `app_id` of schema `UpdateCollection` in request body - - [Added] property `banners.landscape.secure_url` of schema `CollectionImage` in response with status code 200 - - [Added] property `banners.landscape.type` of schema `CollectionImage` in response with status code 200 - - [Added] property `banners.portrait.secure_url` of schema `CollectionImage` in response with status code 200 - - [Added] property `banners.portrait.type` of schema `CollectionImage` in response with status code 200 - - [Added] property `logo.secure_url` of schema `CollectionImage` in response with status code 200 - - [Added] property `logo.type` of schema `CollectionImage` in response with status code 200 - - [Breaking] [Added] Type `string` to property `query[].value[]` of schema `CollectionQuery` in response with status code 200 - - [Breaking] [Added] properties `seo.sitemap.priority`, `seo.sitemap.frequency` in response with status code 200 - - [Added] property `action` of schema `UpdateCollection` in response with status code 200 - - [Added] property `uid` of schema `UpdateCollection` in response with status code 200 - - [Added] property `app_id` of schema `UpdateCollection` in response with status code 200 - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Deleted] Value format from `date-time` from property `_schedule.end` of schema `CollectionSchedule` in request body - - [Deleted] Value format from `date-time` from property `_schedule.next_schedule[].end` of schema `NextSchedule` in request body - - [Deleted] Value format from `date-time` from property `_schedule.next_schedule[].start` of schema `NextSchedule` in request body - - [Deleted] Value format from `date-time` from property `_schedule.start` of schema `CollectionSchedule` in request body - - [Deleted] Required status from properties `banners.landscape.aspect_ratio`, `banners.landscape.url` in request body - - [Deleted] Required status from properties `banners.portrait.aspect_ratio`, `banners.portrait.url` in request body - - [Deleted] Required status from properties `logo.aspect_ratio`, `logo.url` in request body - - [Deleted] Type from `object` from property `seo.sitemap` of schema `SeoDetail` in request body - - [Deleted] Value format from `date-time` from property `_schedule.end` of schema `CollectionSchedule` in response with status code 200 - - [Deleted] Value format from `date-time` from property `_schedule.next_schedule[].end` of schema `NextSchedule` in response with status code 200 - - [Deleted] Value format from `date-time` from property `_schedule.next_schedule[].start` of schema `NextSchedule` in response with status code 200 - - [Deleted] Value format from `date-time` from property `_schedule.start` of schema `CollectionSchedule` in response with status code 200 - - [Deleted] Required status from properties `banners.landscape.aspect_ratio`, `banners.landscape.url` in response with status code 200 - - [Deleted] Required status from properties `banners.portrait.aspect_ratio`, `banners.portrait.url` in response with status code 200 - - [Deleted] Required status from properties `logo.aspect_ratio`, `logo.url` in response with status code 200 - - [Deleted] Type from `object` from property `seo.sitemap` of schema `SeoDetail` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Breaking] [Changed] Type from `array` to `object` of property `seo.breadcrumbs[].action` of schema `ApplicationItemSeoBreadcrumbs` in request body - - [Breaking] [Changed] Type from `array` to `object` of property `seo.breadcrumbs[].action` of schema `ApplicationItemSeoBreadcrumbs` in response with status code 200 - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/collections/{id}/` To `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/collections/{id}` - - -#### getCollectionItems - -- ##### What's Deprecated - - [Breaking] [Deleted] method `getCollectionItems` - - - -#### addCollectionItems - -- ##### What's New - - [Breaking] [Added] Type `string` to property `query[].value[]` of schema `CollectionQuerySchemaV2` in request body - - [Added] property `reset_items` of schema `CollectionItemUpdateSchema` in request body - - [Breaking] [Added] Required status to property `type` in request body - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] property `items_not_updated` of schema `UpdatedResponse` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/collections/{id}/items/` To `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/collections/{id}/items` - - -#### getCollectionDetail - -- ##### What's New - - [Breaking] [Added] Type `string` to property `query[].value[]` of schema `CollectionQuery` in response with status code 200 - - [Breaking] [Added] properties `seo.sitemap.priority`, `seo.sitemap.frequency` in response with status code 200 - -- ##### What's Deprecated - - [Deleted] Value format from `date-time` from property `_schedule.end` of schema `CollectionSchedule` in response with status code 200 - - [Deleted] Value format from `date-time` from property `_schedule.next_schedule[].end` of schema `NextSchedule` in response with status code 200 - - [Deleted] Value format from `date-time` from property `_schedule.next_schedule[].start` of schema `NextSchedule` in response with status code 200 - - [Deleted] Value format from `date-time` from property `_schedule.start` of schema `CollectionSchedule` in response with status code 200 - - [Deleted] Type from `object` from property `seo.sitemap` of schema `SeoDetail` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Breaking] [Changed] Type from `array` to `object` of property `seo.breadcrumbs[].action` of schema `ApplicationItemSeoBreadcrumbs` in response with status code 200 - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/collections/{slug}/` To `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/collections/{slug}` - - -#### getApplicationDepartmentListing - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - - -#### updateAppDepartment - -- ##### What's New - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - - -#### getDepartments - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - - -#### getAppInventory - -- ##### What's New - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/inventory/` To `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/inventory` - - -#### getAppLocations - -- ##### What's New - - [Added] `query` parameter `companyUids` (type: `array`) - - - [Added] property `filters` of schema `LocationListSerializer` in response with status code 200 - -- ##### What's Deprecated - - [Deleted] Value format from `date-time` from property `items[].created_on` of schema `GetLocationSerializer` in response with status code 200 - - [Deleted] Value format from `date-time` from property `items[].modified_on` of schema `GetLocationSerializer` in response with status code 200 - - [Deleted] Value format from `date-time` from property `items[].verified_on` of schema `GetLocationSerializer` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - - -#### getConfigurations - -- ##### What's New - - [Added] property `data.product.details_groups` of schema `ConfigurationProduct` in response with status code 200 - -- ##### What's Deprecated - - [Deleted] Type from `object` from property `data.created_by` of schema `AppCatalogConfiguration` in response with status code 200 - - [Deleted] Value format from `date-time` from property `data.created_on` of schema `AppCatalogConfiguration` in response with status code 200 - - [Deleted] Required status from properties `data.listing.filter`, `data.listing.sort` in response with status code 200 - - [Deleted] Type from `object` from property `data.modified_by` of schema `AppCatalogConfiguration` in response with status code 200 - - [Deleted] Value format from `date-time` from property `data.modified_on` of schema `AppCatalogConfiguration` in response with status code 200 - - [Deleted] Required status from properties `data.product.similar`, `data.product.variant` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/product-configuration/` To `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/product-configuration` - - -#### createConfigurationProductListing - -- ##### What's New - - [Added] property `product.details_groups` of schema `ConfigurationProduct` in request body - - [Added] property `data.product.details_groups` of schema `ConfigurationProduct` in response with status code 200 - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Deleted] Value format from `date-time` from property `created_on` of schema `AppConfiguration` in request body - - [Deleted] Required status from properties `listing.filter`, `listing.sort` in request body - - [Deleted] Value format from `date-time` from property `modified_on` of schema `AppConfiguration` in request body - - [Deleted] Required status from properties `product.similar`, `product.variant` in request body - - [Deleted] Type from `object` from property `data.created_by` of schema `AppCatalogConfiguration` in response with status code 200 - - [Deleted] Value format from `date-time` from property `data.created_on` of schema `AppCatalogConfiguration` in response with status code 200 - - [Deleted] Required status from properties `data.listing.filter`, `data.listing.sort` in response with status code 200 - - [Deleted] Type from `object` from property `data.modified_by` of schema `AppCatalogConfiguration` in response with status code 200 - - [Deleted] Value format from `date-time` from property `data.modified_on` of schema `AppCatalogConfiguration` in response with status code 200 - - [Deleted] Required status from properties `data.product.similar`, `data.product.variant` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/product-configuration/` To `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/product-configuration` - - -#### getCatalogConfiguration - -- ##### What's New - - [Breaking] [Added] properties `product.compare.data` in response with status code 200 - - [Breaking] [Added] properties `product.detail.data`, `product.detail.values` in response with status code 200 - - [Breaking] [Added] properties `product.similar.data` in response with status code 200 - - [Breaking] [Added] properties `product.variant.data` in response with status code 200 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/product-configuration/metadata/` To `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/product-configuration/metadata` - - -#### getConfigurationByType - -- ##### What's New - - [Breaking] [Added] properties `data.product.compare.data` in response with status code 200 - - [Breaking] [Added] properties `data.product.detail.data`, `data.product.detail.values` in response with status code 200 - - [Breaking] [Added] properties `data.product.similar.data` in response with status code 200 - - [Breaking] [Added] properties `data.product.variant.data` in response with status code 200 - -- ##### What's Deprecated - - [Deleted] Required status from properties `data.app_id`, `data.config_type` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/product-configuration/{type}/` To `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/product-configuration/{type}` - - -#### createConfigurationByType - -- ##### What's New - - [Added] property `product.details_groups` of schema `ConfigurationProduct` in request body - - [Added] property `data.product.details_groups` of schema `ConfigurationProduct` in response with status code 200 - -- ##### What's Deprecated - - [Deleted] Value format from `date-time` from property `created_on` of schema `AppConfiguration` in request body - - [Deleted] Required status from properties `listing.filter`, `listing.sort` in request body - - [Deleted] Value format from `date-time` from property `modified_on` of schema `AppConfiguration` in request body - - [Deleted] Required status from properties `product.similar`, `product.variant` in request body - - [Deleted] Type from `object` from property `data.created_by` of schema `AppCatalogConfiguration` in response with status code 200 - - [Deleted] Value format from `date-time` from property `data.created_on` of schema `AppCatalogConfiguration` in response with status code 200 - - [Deleted] Required status from properties `data.listing.filter`, `data.listing.sort` in response with status code 200 - - [Deleted] Type from `object` from property `data.modified_by` of schema `AppCatalogConfiguration` in response with status code 200 - - [Deleted] Value format from `date-time` from property `data.modified_on` of schema `AppCatalogConfiguration` in response with status code 200 - - [Deleted] Required status from properties `data.product.similar`, `data.product.variant` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/product-configuration/{type}/` To `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/product-configuration/{type}` - - -#### getAppProduct - -- ##### What's New - - [Added] property `size_promotion_threshold` of schema `OwnerAppItemResponse` in response with status code 200 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/product/{item_id}/` To `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/product/{item_id}` - - -#### updateAppProduct - -- ##### What's New - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/product/{item_id}/` To `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/product/{item_id}` - - -#### getAppicationProducts - -- ##### What's New - - [Breaking] [Added] Type `string` to property `filters[].values[].value` of schema `ProductFiltersValue` in response with status code 200 - - [Added] property `items[].brand.type` of schema `ProductBrand` in response with status code 200 - - [Added] property `items[].brand._custom_json` of schema `ProductBrand` in response with status code 200 - - [Added] property `items[].categories` of schema `ProductListingDetail` in response with status code 200 - - [Added] property `items[]._custom_meta` of schema `ProductListingDetail` in response with status code 200 - - [Added] property `items[].action` of schema `ProductListingDetail` in response with status code 200 - - [Added] property `items[].is_tryout` of schema `ProductListingDetail` in response with status code 200 - - [Added] property `items[].all_company_ids` of schema `ProductListingDetail` in response with status code 200 - - [Added] property `items[].is_custom_order` of schema `ProductListingDetail` in response with status code 200 - - [Added] property `items[].collections` of schema `ProductListingDetail` in response with status code 200 - - [Breaking] [Added] properties `operators.btw`, `operators.lte`, `operators.gte`, `operators.gt`, `operators.lt`, `operators.nin` in response with status code 200 - - [Added] property `sort_on[].display` of schema `ProductSortOn` in response with status code 200 - - [Added] property `sort_on[].logo` of schema `ProductSortOn` in response with status code 200 - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Deleted] properties `items[].brand.logo.meta`, `items[].brand.logo.type`, `items[].brand.logo.url` in response with status code 200 - - [Deleted] Required status from property `items[].brand.logo.url` in response with status code 200 - - [Deleted] Value format from `date-time` from property `items[].product_online_date` of schema `ProductListingDetail` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - - -#### getDiscountedInventoryBySizeIdentifier - -- ##### What's Deprecated - - [Breaking] [Deleted] `query` parameter `q` (type: `string`) - - - [Deleted] Value format from `date-time` from property `items[].added_on_store` of schema `InventorySellerResponse` in response with status code 200 - - [Deleted] Value format from `date-time` from property `items[].expiration_date` of schema `InventorySellerResponse` in response with status code 200 - - [Deleted] Value format from `date-time` from property `items[].quantities.damaged.updated_at` of schema `QuantityBase` in response with status code 200 - - [Deleted] Value format from `date-time` from property `items[].quantities.not_available.updated_at` of schema `QuantityBase` in response with status code 200 - - [Deleted] Value format from `date-time` from property `items[].quantities.order_committed.updated_at` of schema `QuantityBase` in response with status code 200 - - [Deleted] Value format from `date-time` from property `items[].quantities.sellable.updated_at` of schema `QuantityBase` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - - -#### getProductDetailBySlug - -- ##### What's New - - [Added] property `brand.type` of schema `ProductBrand` in response with status code 200 - - [Added] property `brand._custom_json` of schema `ProductBrand` in response with status code 200 - - [Added] Response with status 404 - -- ##### What's Deprecated - - [Deleted] properties `brand.logo.meta`, `brand.logo.type`, `brand.logo.url` in response with status code 200 - - [Deleted] Required status from property `brand.logo.url` in response with status code 200 - - [Deleted] Value format from `date-time` from property `product_online_date` of schema `ProductDetail` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - - -#### getAppProducts - -- ##### What's Deprecated - - [Deleted] Value format from `date-time` from property `items[].created_on` of schema `RawProduct` in response with status code 200 - - [Deleted] Value format from `date-time` from property `items[].modified_on` of schema `RawProduct` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/raw-products/` To `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/raw-products` - - -#### getAppReturnConfiguration - -- ##### What's Deprecated - - [Deleted] Type from `object` from property `created_by` of schema `AppReturnConfigResponse` in response with status code 200 - - [Deleted] Type from `object` from property `modified_by` of schema `AppReturnConfigResponse` in response with status code 200 - - [Deleted] Value format from `date-time` from property `modified_on` of schema `AppReturnConfigResponse` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - - -#### createAppReturnConfiguration - -- ##### What's New - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - - -#### updateAppReturnConfiguration - -- ##### What's New - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - - -#### deleteAppCategoryReturnConfiguration - -- ##### What's New - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - - -#### getAppCategoryReturnConfig - -- ##### What's New - - [Added] property `page.type` of schema `PageResponse1` in response with status code 200 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Breaking] [Changed] Type from `string` to `integer` of property `page.current` of schema `PageResponse` in response with status code 200 - - -#### createAppCategoryReturnConfiguration - -- ##### What's New - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - - -#### updateAppCategoryReturnConfiguration - -- ##### What's New - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - - -#### getAutocompleteConfig - -- ##### What's New - - [Added] `query` parameter `pageNo` (type: `integer`) - - - [Added] `query` parameter `pageSize` (type: `integer`) - - - [Added] `query` parameter `q` (type: `string`) - - - [Added] `query` parameter `isActive` (type: `boolean`) - - - [Breaking] [Added] properties `items[].results[]._custom_json`, `items[].results[].action`, `items[].results[].display`, `items[].results[].logo` in response with status code 200 - - [Added] property `items[].is_active` of schema `GetAutocompleteWordsData` in response with status code 200 - -- ##### What's Deprecated - - [Breaking] [Deleted] property `items[]._custom_json` of schema `GetAutocompleteWordsData` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/search/autocomplete/` To `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/search/autocomplete` - - -#### createCustomAutocompleteRule - -- ##### What's New - - [Added] property `action` of schema `CreateAutocompleteKeyword` in request body - - [Breaking] [Added] properties `results[]._custom_json`, `results[].action`, `results[].display`, `results[].logo` in response with status code 200 - - [Added] property `uid` of schema `CreateAutocompleteWordsResponse` in response with status code 200 - - [Added] property `is_active` of schema `CreateAutocompleteWordsResponse` in response with status code 200 - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/search/autocomplete/` To `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/search/autocomplete` - - -#### deleteAutocompleteKeyword - -- ##### What's New - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/search/autocomplete/{id}/` To `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/search/autocomplete/{id}` - - -#### getAutocompleteKeywordDetail - -- ##### What's New - - [Added] property `results` of schema `GetAutocompleteWordsData` in response with status code 200 - - [Added] property `app_id` of schema `GetAutocompleteWordsData` in response with status code 200 - - [Added] property `words` of schema `GetAutocompleteWordsData` in response with status code 200 - - [Added] property `is_active` of schema `GetAutocompleteWordsData` in response with status code 200 - - [Added] property `uid` of schema `GetAutocompleteWordsData` in response with status code 200 - -- ##### What's Deprecated - - [Breaking] [Deleted] property `items` of schema `GetAutocompleteWordsResponse` in response with status code 200 - - [Breaking] [Deleted] property `page` of schema `GetAutocompleteWordsResponse` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/search/autocomplete/{id}/` To `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/search/autocomplete/{id}` - - -#### updateAutocompleteKeyword - -- ##### What's New - - [Added] property `action` of schema `CreateAutocompleteKeyword` in request body - - [Added] property `results` of schema `GetAutocompleteWordsData` in response with status code 200 - - [Added] property `app_id` of schema `GetAutocompleteWordsData` in response with status code 200 - - [Added] property `words` of schema `GetAutocompleteWordsData` in response with status code 200 - - [Added] property `is_active` of schema `GetAutocompleteWordsData` in response with status code 200 - - [Added] property `uid` of schema `GetAutocompleteWordsData` in response with status code 200 - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] property `items` of schema `GetAutocompleteWordsResponse` in response with status code 200 - - [Breaking] [Deleted] property `page` of schema `GetAutocompleteWordsResponse` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/search/autocomplete/{id}/` To `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/search/autocomplete/{id}` - - -#### deleteSearchConfiguration - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/search/configuration/` To `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/search/configuration` - - -#### getSearchConfiguration - -- ##### What's New - - [Added] property `_id` of schema `GetSearchConfigurationResponse` in response with status code 200 - -- ##### What's Deprecated - - [Deleted] Value format from `date-time` from property `created_on` of schema `GetSearchConfigurationResponse` in response with status code 200 - - [Deleted] Value format from `date-time` from property `modified_on` of schema `GetSearchConfigurationResponse` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/search/configuration/` To `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/search/configuration` - - -#### createSearchConfiguration - -- ##### What's Deprecated - - [Deleted] Value format from `date-time` from property `created_on` of schema `CreateSearchConfigurationRequest` in request body - - [Deleted] Value format from `date-time` from property `modified_on` of schema `CreateSearchConfigurationRequest` in request body - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/search/configuration/` To `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/search/configuration` - - -#### updateSearchConfiguration - -- ##### What's Deprecated - - [Deleted] Value format from `date-time` from property `created_on` of schema `UpdateSearchConfigurationRequest` in request body - - [Deleted] Value format from `date-time` from property `modified_on` of schema `UpdateSearchConfigurationRequest` in request body - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/search/configuration/` To `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/search/configuration` - - -#### getAllSearchKeyword - -- ##### What's New - - [Added] `query` parameter `pageNo` (type: `integer`) - - - [Added] `query` parameter `pageSize` (type: `integer`) - - - [Added] `query` parameter `q` (type: `string`) - - - [Added] `query` parameter `isActive` (type: `boolean`) - - - [Added] property `items[].query` of schema `GetSearchWordsData` in response with status code 200 - - [Added] property `items[].sort_on` of schema `GetSearchWordsData` in response with status code 200 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/search/keyword/` To `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/search/keyword` - - -#### createCustomKeyword - -- ##### What's New - - [Added] property `query` of schema `GetSearchWordsData` in response with status code 200 - - [Added] property `sort_on` of schema `GetSearchWordsData` in response with status code 200 - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/search/keyword/` To `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/search/keyword` - - -#### deleteSearchKeywords - -- ##### What's New - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/search/keyword/{id}/` To `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/search/keyword/{id}` - - -#### getSearchKeywords - -- ##### What's New - - [Added] property `query` of schema `GetSearchWordsData` in response with status code 200 - - [Added] property `sort_on` of schema `GetSearchWordsData` in response with status code 200 - - [Added] property `_custom_json` of schema `GetSearchWordsData` in response with status code 200 - - [Added] property `app_id` of schema `GetSearchWordsData` in response with status code 200 - - [Added] property `is_active` of schema `GetSearchWordsData` in response with status code 200 - - [Added] property `result` of schema `GetSearchWordsData` in response with status code 200 - - [Added] property `uid` of schema `GetSearchWordsData` in response with status code 200 - - [Added] property `words` of schema `GetSearchWordsData` in response with status code 200 - -- ##### What's Deprecated - - [Breaking] [Deleted] property `items` of schema `GetSearchWordsDetailResponse` in response with status code 200 - - [Breaking] [Deleted] property `page` of schema `GetSearchWordsDetailResponse` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/search/keyword/{id}/` To `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/search/keyword/{id}` - - -#### updateSearchKeywords - -- ##### What's New - - [Added] property `query` of schema `GetSearchWordsData` in response with status code 200 - - [Added] property `sort_on` of schema `GetSearchWordsData` in response with status code 200 - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/search/keyword/{id}/` To `/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/search/keyword/{id}` - - -#### updateAppLocation - -- ##### What's New - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - - -#### listCategories - -- ##### What's New - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] `query` parameter `slug` (type: `string`) - - - [Deleted] Value format from `date-time` from property `items[].created_on` of schema `Category` in response with status code 200 - - [Deleted] Value format from `date-time` from property `items[].modified_on` of schema `Category` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/category/` To `/service/platform/catalog/v1.0/company/{company_id}/category` - - -#### createCategories - -- ##### What's New - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/category/` To `/service/platform/catalog/v1.0/company/{company_id}/category` - - -#### getCategoryData - -- ##### What's New - - [Added] Response with status 422 - -- ##### What's Deprecated - - [Deleted] Value format from `date-time` from property `data.created_on` of schema `Category` in response with status code 200 - - [Deleted] Value format from `date-time` from property `data.modified_on` of schema `Category` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/category/{uid}/` To `/service/platform/catalog/v1.0/company/{company_id}/category/{uid}` - - -#### updateCategory - -- ##### What's New - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/category/{uid}/` To `/service/platform/catalog/v1.0/company/{company_id}/category/{uid}` - - -#### getSellerInsights - -- ##### What's New - - [Added] property `articles` of schema `CrossSellingResponse` in response with status code 200 - - [Added] property `products` of schema `CrossSellingResponse` in response with status code 200 - -- ##### What's Deprecated - - [Breaking] [Deleted] property `brand_distribution` of schema `CrossSellingResponse` in response with status code 200 - - [Breaking] [Deleted] property `data` of schema `CrossSellingResponse` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/cross-selling/{seller_app_id}/analytics/insights/` To `/service/platform/catalog/v1.0/company/{company_id}/cross-selling/{seller_app_id}/analytics/insights` - - -#### listDepartmentsData - -- ##### What's New - - [Breaking] [Deleted] `query` parameter `slug` (type: `string`), - [Added] `query` parameter `uids` (type: `array`) - -- ##### What's Deprecated - - [Deleted] Value format from `date-time` from property `items[].created_on` of schema `GetDepartment` in response with status code 200 - - [Deleted] Value format from `date-time` from property `items[].modified_on` of schema `GetDepartment` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/departments/` To `/service/platform/catalog/v1.0/company/{company_id}/departments` - - -#### createDepartments - -- ##### What's New - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/departments/` To `/service/platform/catalog/v1.0/company/{company_id}/departments` - - -#### getDepartmentData - -- ##### What's New - - [Added] Response with status 422 - -- ##### What's Deprecated - - [Deleted] Value format from `date-time` from property `items[].created_on` of schema `GetDepartment` in response with status code 200 - - [Deleted] Value format from `date-time` from property `items[].modified_on` of schema `GetDepartment` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/departments/{uid}/` To `/service/platform/catalog/v1.0/company/{company_id}/departments/{uid}` - - -#### updateDepartment - -- ##### What's New - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] property `created_on` of schema `DepartmentModel` in response with status code 200 - - [Breaking] [Deleted] property `modified_on` of schema `DepartmentModel` in response with status code 200 - - [Deleted] Value format from `date-time` from property `verified_on` of schema `DepartmentModel` in response with status code 200 - - [Deleted] Required status from property `created_on` in response with status code 200 - - [Deleted] Required status from property `modified_on` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/departments/{uid}/` To `/service/platform/catalog/v1.0/company/{company_id}/departments/{uid}` - - -#### listTemplateBrandTypeValues - -- ##### What's New - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/downloads/configuration/` To `/service/platform/catalog/v1.0/company/{company_id}/downloads/configuration` - - -#### bulkHsnCode - -- ##### What's New - - [Added] property `data` of schema `BulkHsnResponse` in response with status code 200 - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] property `success` of schema `BulkHsnResponse` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/hsn/bulk/` To `/service/platform/catalog/v1.0/company/{company_id}/hsn/bulk` - - -#### getHsnCode - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/hsn/{id}/` To `/service/platform/catalog/v1.0/company/{company_id}/hsn/{id}` - - -#### updateHsnCode - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/hsn/{id}/` To `/service/platform/catalog/v1.0/company/{company_id}/hsn/{id}` - - -#### getInventories - -- ##### What's New - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Deleted] Value format from `date-time` from property `items[].date_meta.added_on_store` of schema `DateMeta` in response with status code 200 - - [Deleted] Value format from `date-time` from property `items[].date_meta.created_on` of schema `DateMeta` in response with status code 200 - - [Deleted] Value format from `date-time` from property `items[].date_meta.inventory_updated_on` of schema `DateMeta` in response with status code 200 - - [Deleted] Value format from `date-time` from property `items[].date_meta.modified_on` of schema `DateMeta` in response with status code 200 - - [Deleted] Value format from `date-time` from property `items[].expiration_date` of schema `GetInventories` in response with status code 200 - - [Deleted] Value format from `date-time` from property `items[].inventory_updated_on` of schema `GetInventories` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - - -#### getInventoryBulkUploadHistory - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - - -#### createBulkInventoryJob - -- ##### What's Deprecated - - [Breaking] [Deleted] property `cancelled` of schema `BulkJob` in request body - - [Breaking] [Deleted] property `cancelled_records` of schema `BulkJob` in request body - - [Breaking] [Deleted] property `created_by` of schema `BulkJob` in request body - - [Breaking] [Deleted] property `created_on` of schema `BulkJob` in request body - - [Breaking] [Deleted] property `custom_template_tag` of schema `BulkJob` in request body - - [Breaking] [Deleted] property `failed` of schema `BulkJob` in request body - - [Breaking] [Deleted] property `failed_records` of schema `BulkJob` in request body - - [Breaking] [Deleted] property `is_active` of schema `BulkJob` in request body - - [Breaking] [Deleted] property `modified_by` of schema `BulkJob` in request body - - [Breaking] [Deleted] property `modified_on` of schema `BulkJob` in request body - - [Breaking] [Deleted] property `stage` of schema `BulkJob` in request body - - [Breaking] [Deleted] property `succeed` of schema `BulkJob` in request body - - [Breaking] [Deleted] property `template_tag` of schema `BulkJob` in request body - - [Breaking] [Deleted] property `total` of schema `BulkJob` in request body - - [Breaking] [Deleted] property `tracking_url` of schema `BulkJob` in request body - - [Deleted] Required status from properties `company_id`, `created_on` in request body - - [Deleted] Type from `object` from property `` of schema `BulkJob` in request body - - [Breaking] [Deleted] property `created_by` of schema `BulkResponse` in response with status code 200 - - [Breaking] [Deleted] property `created_on` of schema `BulkResponse` in response with status code 200 - - [Breaking] [Deleted] property `is_active` of schema `BulkResponse` in response with status code 200 - - [Breaking] [Deleted] property `modified_by` of schema `BulkResponse` in response with status code 200 - - [Breaking] [Deleted] property `modified_on` of schema `BulkResponse` in response with status code 200 - - [Deleted] Required status from properties `batch_id`, `created_on` in response with status code 200 - - [Deleted] Type from `object` from property `` of schema `BulkResponse` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Breaking] [Changed] Type from `integer` to `string` of property `company_id` of schema `BulkJob` in request body - - -#### deleteBulkInventoryJob - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/inventory/bulk/{batch_id}/` To `/service/platform/catalog/v1.0/company/{company_id}/inventory/bulk/{batch_id}` - - -#### createBulkInventory - -- ##### What's New - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Deleted] Value format from `date-time` from property `sizes[].expiration_date` of schema `InventoryJobPayload` in request body - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/inventory/bulk/{batch_id}/` To `/service/platform/catalog/v1.0/company/{company_id}/inventory/bulk/{batch_id}` - - -#### getInventoryExport - -- ##### What's New - - [Added] property `items` of schema `InventoryExportJobResponse` in response with status code 200 - -- ##### What's Deprecated - - [Breaking] [Deleted] property `completed_on` of schema `InventoryExportJob` in response with status code 200 - - [Breaking] [Deleted] property `filters` of schema `InventoryExportJob` in response with status code 200 - - [Breaking] [Deleted] property `notification_emails` of schema `InventoryExportJob` in response with status code 200 - - [Breaking] [Deleted] property `seller_id` of schema `InventoryExportJob` in response with status code 200 - - [Breaking] [Deleted] property `status` of schema `InventoryExportJob` in response with status code 200 - - [Breaking] [Deleted] property `task_id` of schema `InventoryExportJob` in response with status code 200 - - [Breaking] [Deleted] property `type` of schema `InventoryExportJob` in response with status code 200 - - [Breaking] [Deleted] property `url` of schema `InventoryExportJob` in response with status code 200 - - [Deleted] Required status from properties `seller_id`, `task_id`, `type` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/inventory/download/` To `/service/platform/catalog/v1.0/company/{company_id}/inventory/download` - - -#### createInventoryExportJob - -- ##### What's New - - [Breaking] [Added] properties `filters.brand_ids`, `filters.store_ids` in response with status code 200 - - [Added] property `stats` of schema `InventoryExportResponse` in response with status code 200 - - [Added] property `_id` of schema `InventoryExportResponse` in response with status code 200 - - [Added] property `trigger_on` of schema `InventoryExportResponse` in response with status code 200 - - [Added] property `brand` of schema `InventoryExportResponse` in response with status code 200 - - [Added] property `store` of schema `InventoryExportResponse` in response with status code 200 - -- ##### What's Deprecated - - [Deleted] Possible nullable value from `true` from property `type` of schema `InventoryExportRequest` in request body - - [Deleted] Value format from `date-time` from property `created_by` of schema `InventoryExportResponse` in response with status code 200 - - [Deleted] Type from `string` from property `created_by` of schema `InventoryExportResponse` in response with status code 200 - - [Deleted] Value format from `date-time` from property `created_on` of schema `InventoryExportResponse` in response with status code 200 - - [Deleted] Value format from `date-time` from property `modified_on` of schema `InventoryExportResponse` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/inventory/download/` To `/service/platform/catalog/v1.0/company/{company_id}/inventory/download` - - -#### exportInventoryConfig - -- ##### What's New - - [Breaking] [Deleted] `query` parameter `filterType` (type: `string`), - [Breaking] [Added] Required `query` parameter `filter` (type: `string`) - - [Added] property `multivalue` of schema `InventoryConfig` in response with status code 200 - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] property `multivalues` of schema `InventoryConfig` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/inventory/download/configuration/` To `/service/platform/catalog/v1.0/company/{company_id}/inventory/download/configuration` - - -#### downloadInventoryTemplateView - -- ##### What's New - - [Breaking] [Deleted] Required `query` parameter `itemType` (type: `string`), - [Breaking] [Added] Required `query` parameter `type` (type: `string`) - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/inventory/templates/download/` To `/service/platform/catalog/v1.0/company/{company_id}/inventory/templates/download` - - -#### validateProductTemplateSchema - -- ##### What's New - - [Breaking] [Added] Required `query` parameter `bulk` (type: `boolean`) - - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/inventory/templates/validation/schema/` To `/service/platform/catalog/v1.0/company/{company_id}/inventory/templates/validation/schema` - - -#### getOptimalLocations - -- ##### What's New - - [Added] property `success` of schema `StoreAssignResponse` in response with status code 200 - - [Added] property `items` of schema `StoreAssignResponse` in response with status code 200 - -- ##### What's Deprecated - - [Breaking] [Deleted] property `_id` of schema `StoreAssignResponse` in response with status code 200 - - [Breaking] [Deleted] property `article_assignment` of schema `StoreAssignResponse` in response with status code 200 - - [Breaking] [Deleted] property `company_id` of schema `StoreAssignResponse` in response with status code 200 - - [Breaking] [Deleted] property `group_id` of schema `StoreAssignResponse` in response with status code 200 - - [Breaking] [Deleted] property `index` of schema `StoreAssignResponse` in response with status code 200 - - [Breaking] [Deleted] property `item_id` of schema `StoreAssignResponse` in response with status code 200 - - [Breaking] [Deleted] property `meta` of schema `StoreAssignResponse` in response with status code 200 - - [Breaking] [Deleted] property `price_effective` of schema `StoreAssignResponse` in response with status code 200 - - [Breaking] [Deleted] property `price_marked` of schema `StoreAssignResponse` in response with status code 200 - - [Breaking] [Deleted] property `quantity` of schema `StoreAssignResponse` in response with status code 200 - - [Breaking] [Deleted] property `s_city` of schema `StoreAssignResponse` in response with status code 200 - - [Breaking] [Deleted] property `size` of schema `StoreAssignResponse` in response with status code 200 - - [Breaking] [Deleted] property `status` of schema `StoreAssignResponse` in response with status code 200 - - [Breaking] [Deleted] property `store_id` of schema `StoreAssignResponse` in response with status code 200 - - [Breaking] [Deleted] property `store_pincode` of schema `StoreAssignResponse` in response with status code 200 - - [Breaking] [Deleted] property `strategy_wise_listing` of schema `StoreAssignResponse` in response with status code 200 - - [Breaking] [Deleted] property `uid` of schema `StoreAssignResponse` in response with status code 200 - - [Deleted] Required status from properties `article_assignment`, `item_id`, `quantity`, `size`, `status` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/location/reassign/` To `/service/platform/catalog/v1.0/company/{company_id}/location/reassign` - - -#### getMarketplaceOptinDetail - -- ##### What's Deprecated - - [Breaking] [Deleted] method `getMarketplaceOptinDetail` - - - -#### getCompanyBrandDetail - -- ##### What's New - - [Added] property `items[].logo` of schema `CompanyBrandDetail` in response with status code 200 - - [Added] property `items[].name` of schema `CompanyBrandDetail` in response with status code 200 - - [Added] property `items[].id` of schema `CompanyBrandDetail` in response with status code 200 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/marketplaces/company-brand-details/` To `/service/platform/catalog/v1.0/company/{company_id}/marketplaces/company-brand-details` - - -#### getCompanyDetail - -- ##### What's New - - [Added] property `business_info` of schema `OptinCompanyDetail` in response with status code 200 - - [Added] property `business_country_info` of schema `OptinCompanyDetail` in response with status code 200 - - [Added] property `address` of schema `OptinCompanyDetail` in response with status code 200 - - [Added] property `document` of schema `OptinCompanyDetail` in response with status code 200 - - [Added] property `brands` of schema `OptinCompanyDetail` in response with status code 200 - - [Added] property `notification_emails` of schema `OptinCompanyDetail` in response with status code 200 - - [Added] property `warnings` of schema `OptinCompanyDetail` in response with status code 200 - - [Added] property `stage` of schema `OptinCompanyDetail` in response with status code 200 - -- ##### What's Deprecated - - [Breaking] [Deleted] property `company_type` of schema `OptinCompanyDetail` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/marketplaces/company-details/` To `/service/platform/catalog/v1.0/company/{company_id}/marketplaces/company-details` - - -#### getCompanyMetrics - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/marketplaces/company-metrics/` To `/service/platform/catalog/v1.0/company/{company_id}/marketplaces/company-metrics` - - -#### getStoreDetail - -- ##### What's New - - [Breaking] [Added] properties `items[].address.country_code`, `items[].address.address1`, `items[].address.city`, `items[].address.address2`, `items[].address.country`, `items[].address.pincode`, `items[].address.landmark`, `items[].address.state` in response with status code 200 - - [Breaking] [Added] properties `items[].documents[].legal_name`, `items[].documents[].type`, `items[].documents[].url`, `items[].documents[].value`, `items[].documents[].verified` in response with status code 200 - - [Breaking] [Added] Required status to properties `items[].documents[].type`, `items[].documents[].value` in response with status code 200 - - [Breaking] [Added] properties `items[].manager.name`, `items[].manager.email`, `items[].manager.mobile_no` in response with status code 200 - - [Added] property `items[].timing[]` of schema `StoreDetail` in response with status code 200 - - [Added] property `items[].stage` of schema `StoreDetail` in response with status code 200 - - [Added] property `items[].modified_by` of schema `StoreDetail` in response with status code 200 - - [Added] property `items[].notification_emails` of schema `StoreDetail` in response with status code 200 - - [Added] property `items[].verified_on` of schema `StoreDetail` in response with status code 200 - - [Added] property `items[].verified_by` of schema `StoreDetail` in response with status code 200 - - [Added] property `items[].integration_type` of schema `StoreDetail` in response with status code 200 - - [Added] property `items[].created_by` of schema `StoreDetail` in response with status code 200 - - [Added] property `items[]._custom_json` of schema `StoreDetail` in response with status code 200 - -- ##### What's Deprecated - - [Deleted] Value format from `date-time` from property `items[].created_on` of schema `StoreDetail` in response with status code 200 - - [Deleted] Value format from `date-time` from property `items[].modified_on` of schema `StoreDetail` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Breaking] [Changed] Type from `object` to `array` of property `items[].timing` of schema `StoreDetail` in response with status code 200 - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/marketplaces/location-details/` To `/service/platform/catalog/v1.0/company/{company_id}/marketplaces/location-details` - - -#### createMarketplaceOptin - -- ##### What's New - - [Added] Response with status 201 - -- ##### What's Deprecated - - [Breaking] [Deleted] Default value from `true` from property `enabled` of schema `OptInPostRequest` in request body - - [Deleted] Required status from property `opt_level` in request body - - [Deleted] Type from `object` from property `` of schema `OptInPostRequest` in request body - - [Breaking] [Deleted] Response with status 200 - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Breaking] [Changed] Type from `string` to `integer` of property `opt_level` of schema `OptInPostRequest` in request body - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/marketplaces/{marketplace}/optin/` To `/service/platform/catalog/v1.0/company/{company_id}/channel/{marketplace}/opt-in` - - -#### getProductAttributes - -- ##### What's Deprecated - - [Deleted] Value format from `date-time` from property `items[].created_on` of schema `AttributeMasterSerializer` in response with status code 200 - - [Deleted] Value format from `date-time` from property `items[].modified_on` of schema `AttributeMasterSerializer` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/product-attributes/` To `/service/platform/catalog/v1.0/company/{company_id}/product-attributes` - - -#### getGenderAttribute - -- ##### What's New - - [Added] property `created_on` of schema `GenderDetail` in response with status code 200 - - [Added] property `modified_on` of schema `GenderDetail` in response with status code 200 - - [Added] property `created_by` of schema `GenderDetail` in response with status code 200 - - [Added] property `modified_by` of schema `GenderDetail` in response with status code 200 - - [Added] property `_id` of schema `GenderDetail` in response with status code 200 - - [Added] property `variant` of schema `GenderDetail` in response with status code 200 - -- ##### What's Deprecated - - [Breaking] [Deleted] property `id` of schema `GenderDetail` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - - -#### getProductBundle - -- ##### What's New - - [Added] `query` parameter `pageNo` (type: `integer`) - - - [Added] `query` parameter `pageSize` (type: `integer`) - - -- ##### What's Deprecated - - [Deleted] Type from `object` from property `items[].created_by` of schema `GetProductBundleCreateResponse` in response with status code 200 - - [Deleted] Value format from `date-time` from property `items[].created_on` of schema `GetProductBundleCreateResponse` in response with status code 200 - - [Deleted] Type from `object` from property `items[].modified_by` of schema `GetProductBundleCreateResponse` in response with status code 200 - - [Deleted] Value format from `date-time` from property `items[].modified_on` of schema `GetProductBundleCreateResponse` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/product-bundle/` To `/service/platform/catalog/v1.0/company/{company_id}/product-bundle` - - -#### createProductBundle - -- ##### What's New - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Deleted] Value format from `date-time` from property `created_on` of schema `ProductBundleRequest` in request body - - [Deleted] Value format from `date-time` from property `modified_on` of schema `ProductBundleRequest` in request body - - [Deleted] Type from `object` from property `created_by` of schema `GetProductBundleCreateResponse` in response with status code 200 - - [Deleted] Value format from `date-time` from property `created_on` of schema `GetProductBundleCreateResponse` in response with status code 200 - - [Deleted] Type from `object` from property `modified_by` of schema `GetProductBundleCreateResponse` in response with status code 200 - - [Deleted] Value format from `date-time` from property `modified_on` of schema `GetProductBundleCreateResponse` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Breaking] [Changed] Type from `integer` to `string` of property `company_id` of schema `ProductBundleRequest` in request body - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/product-bundle/` To `/service/platform/catalog/v1.0/company/{company_id}/product-bundle` - - -#### getProductBundleDetail - -- ##### What's New - - [Breaking] [Added] properties `products[].product_details.price.effective`, `products[].product_details.price.marked`, `products[].product_details.price.currency` in response with status code 200 - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/product-bundle/{id}/` To `/service/platform/catalog/v1.0/company/{company_id}/product-bundle/{id}` - - -#### updateProductBundle - -- ##### What's New - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Deleted] Value format from `date-time` from property `modified_on` of schema `ProductBundleUpdateRequest` in request body - - [Deleted] Type from `object` from property `created_by` of schema `GetProductBundleCreateResponse` in response with status code 200 - - [Deleted] Value format from `date-time` from property `created_on` of schema `GetProductBundleCreateResponse` in response with status code 200 - - [Deleted] Type from `object` from property `modified_by` of schema `GetProductBundleCreateResponse` in response with status code 200 - - [Deleted] Value format from `date-time` from property `modified_on` of schema `GetProductBundleCreateResponse` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Breaking] [Changed] Type from `integer` to `string` of property `company_id` of schema `ProductBundleUpdateRequest` in request body - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/product-bundle/{id}/` To `/service/platform/catalog/v1.0/company/{company_id}/product-bundle/{id}` - - -#### getProductAssetsInBulk - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/products/assets/bulk/` To `/service/platform/catalog/v1.0/company/{company_id}/products/assets/bulk` - - -#### createProductAssetsInBulk - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/products/assets/bulk/` To `/service/platform/catalog/v1.0/company/{company_id}/products/assets/bulk` - - -#### getProductBulkUploadHistory - -- ##### What's New - - [Added] property `items[].template.id` of schema `ProductTemplate` in response with status code 200 - -- ##### What's Deprecated - - [Deleted] Value format from `date-time` from property `items[].created_on` of schema `ProductBulkRequest` in response with status code 200 - - [Deleted] Value format from `date-time` from property `items[].modified_on` of schema `ProductBulkRequest` in response with status code 200 - - [Deleted] Type from `object` from property `items[].template.created_by` of schema `ProductTemplate` in response with status code 200 - - [Deleted] Value format from `date-time` from property `items[].template.created_on` of schema `ProductTemplate` in response with status code 200 - - [Deleted] Type from `object` from property `items[].template.modified_by` of schema `ProductTemplate` in response with status code 200 - - [Deleted] Value format from `date-time` from property `items[].template.modified_on` of schema `ProductTemplate` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - - -#### createBulkProductUploadJob - -- ##### What's Deprecated - - [Breaking] [Deleted] property `cancelled` of schema `BulkJob` in request body - - [Breaking] [Deleted] property `cancelled_records` of schema `BulkJob` in request body - - [Breaking] [Deleted] property `created_by` of schema `BulkJob` in request body - - [Breaking] [Deleted] property `created_on` of schema `BulkJob` in request body - - [Breaking] [Deleted] property `custom_template_tag` of schema `BulkJob` in request body - - [Breaking] [Deleted] property `failed` of schema `BulkJob` in request body - - [Breaking] [Deleted] property `failed_records` of schema `BulkJob` in request body - - [Breaking] [Deleted] property `is_active` of schema `BulkJob` in request body - - [Breaking] [Deleted] property `modified_by` of schema `BulkJob` in request body - - [Breaking] [Deleted] property `modified_on` of schema `BulkJob` in request body - - [Breaking] [Deleted] Default value from `pending` from property `stage` of schema `BulkJob` in request body - - [Deleted] Possible values from `pending,completed,terminated,cancelled,failed,partial,running` from property `stage` of schema `BulkJob` in request body - - [Breaking] [Deleted] Default value from property `succeed` of schema `BulkJob` in request body - - [Breaking] [Deleted] Default value from property `total` of schema `BulkJob` in request body - - [Deleted] Value format from `url` from property `tracking_url` of schema `BulkJob` in request body - - [Deleted] Required status from properties `company_id`, `created_on` in request body - - [Breaking] [Deleted] property `created_by` of schema `BulkResponse` in response with status code 200 - - [Breaking] [Deleted] property `created_on` of schema `BulkResponse` in response with status code 200 - - [Breaking] [Deleted] property `is_active` of schema `BulkResponse` in response with status code 200 - - [Breaking] [Deleted] property `modified_by` of schema `BulkResponse` in response with status code 200 - - [Breaking] [Deleted] property `modified_on` of schema `BulkResponse` in response with status code 200 - - [Deleted] Required status from properties `batch_id`, `created_on` in response with status code 200 - - [Deleted] Type from `object` from property `` of schema `BulkResponse` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - - -#### deleteProductBulkJob - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - - -#### createProductsInBulk - -- ##### What's New - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - - -#### listProductTemplateExportDetails - -- ##### What's New - - [Added] property `items[].trigger_on` of schema `ProductTemplateExportResponse` in response with status code 200 - - [Added] property `items[].id` of schema `ProductTemplateExportResponse` in response with status code 200 - - [Added] property `items[].template_tags` of schema `ProductTemplateExportResponse` in response with status code 200 - -- ##### What's Deprecated - - [Deleted] Value format from `date-time` from property `items[].completed_on` of schema `ProductTemplateExportResponse` in response with status code 200 - - [Deleted] Value format from `date-time` from property `items[].modified_on` of schema `ProductTemplateExportResponse` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/products/downloads/` To `/service/platform/catalog/v1.0/company/{company_id}/products/downloads` - - -#### listHSNCodes - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/products/hsn/` To `/service/platform/catalog/v1.0/company/{company_id}/products/hsn` - - -#### getProductTags - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - - -#### listProductTemplate - -- ##### What's New - - [Added] property `items[]` of schema `TemplatesResponse` in response with status code 200 - -- ##### What's Deprecated - - [Deleted] properties `items.attributes`, `items.categories`, `items.created_by`, `items.created_on`, `items.departments`, `items.description`, `items.is_active`, `items.is_archived`, `items.is_expirable`, `items.is_physical`, `items.logo`, `items.modified_by`, `items.modified_on`, `items.name`, `items.slug`, `items.tag` in response with status code 200 - - [Deleted] Required status from properties `items.is_expirable`, `items.is_physical`, `items.slug` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Breaking] [Changed] Type from `object` to `array` of property `items` of schema `ProductTemplate` in response with status code 200 - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/products/templates/` To `/service/platform/catalog/v1.0/company/{company_id}/products/templates` - - -#### listProductTemplateCategories - -- ##### What's New - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/products/templates/categories/` To `/service/platform/catalog/v1.0/company/{company_id}/products/templates/categories` - - -#### downloadProductTemplateViews - -- ##### What's New - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/products/templates/{slug}/download/` To `/service/platform/catalog/v1.0/company/{company_id}/products/templates/{slug}/download` - - -#### validateProductTemplate - -- ##### What's New - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/products/templates/{slug}/validation/schema/` To `/service/platform/catalog/v1.0/company/{company_id}/products/templates/{slug}/validation/schema` - - -#### getProductValidation - -- ##### What's New - - [Breaking] [Added] Required `query` parameter `type` (type: `string`) - - - [Breaking] [Added] Required `query` parameter `slug` (type: `string`) - - - [Added] property `message` of schema `ValidateProduct` in response with status code 200 - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/products/validation/` To `/service/platform/catalog/v1.0/company/{company_id}/products/validation` - - -#### getInventoryBySizeIdentifier - -- ##### What's Deprecated - - [Deleted] Value format from `date-time` from property `items[].added_on_store` of schema `InventorySellerResponse` in response with status code 200 - - [Deleted] Value format from `date-time` from property `items[].expiration_date` of schema `InventorySellerResponse` in response with status code 200 - - [Deleted] Value format from `date-time` from property `items[].quantities.damaged.updated_at` of schema `QuantityBase` in response with status code 200 - - [Deleted] Value format from `date-time` from property `items[].quantities.not_available.updated_at` of schema `QuantityBase` in response with status code 200 - - [Deleted] Value format from `date-time` from property `items[].quantities.order_committed.updated_at` of schema `QuantityBase` in response with status code 200 - - [Deleted] Value format from `date-time` from property `items[].quantities.sellable.updated_at` of schema `QuantityBase` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - - -#### getProductSize - -- ##### What's New - - [Added] property `_custom_json` of schema `Product` in response with status code 200 - - [Added] property `all_company_ids` of schema `Product` in response with status code 200 - - [Added] property `all_identifiers` of schema `Product` in response with status code 200 - - [Added] property `all_sizes` of schema `Product` in response with status code 200 - - [Added] property `attributes` of schema `Product` in response with status code 200 - - [Added] property `brand` of schema `Product` in response with status code 200 - - [Added] property `brand_uid` of schema `Product` in response with status code 200 - - [Added] property `category` of schema `Product` in response with status code 200 - - [Added] property `category_slug` of schema `Product` in response with status code 200 - - [Added] property `category_uid` of schema `Product` in response with status code 200 - - [Added] property `color` of schema `Product` in response with status code 200 - - [Added] property `company_id` of schema `Product` in response with status code 200 - - [Added] property `country_of_origin` of schema `Product` in response with status code 200 - - [Added] property `created_by` of schema `Product` in response with status code 200 - - [Added] property `created_on` of schema `Product` in response with status code 200 - - [Added] property `currency` of schema `Product` in response with status code 200 - - [Added] property `custom_order` of schema `Product` in response with status code 200 - - [Added] property `departments` of schema `Product` in response with status code 200 - - [Added] property `description` of schema `Product` in response with status code 200 - - [Added] property `highlights` of schema `Product` in response with status code 200 - - [Added] property `hsn_code` of schema `Product` in response with status code 200 - - [Added] property `id` of schema `Product` in response with status code 200 - - [Added] property `image_nature` of schema `Product` in response with status code 200 - - [Added] property `images` of schema `Product` in response with status code 200 - - [Added] property `is_active` of schema `Product` in response with status code 200 - - [Added] property `is_dependent` of schema `Product` in response with status code 200 - - [Added] property `is_expirable` of schema `Product` in response with status code 200 - - [Added] property `is_image_less_product` of schema `Product` in response with status code 200 - - [Added] property `is_physical` of schema `Product` in response with status code 200 - - [Added] property `is_set` of schema `Product` in response with status code 200 - - [Added] property `item_code` of schema `Product` in response with status code 200 - - [Added] property `item_type` of schema `Product` in response with status code 200 - - [Added] property `l3_mapping` of schema `Product` in response with status code 200 - - [Added] property `media` of schema `Product` in response with status code 200 - - [Added] property `modified_by` of schema `Product` in response with status code 200 - - [Added] property `modified_on` of schema `Product` in response with status code 200 - - [Added] property `moq` of schema `Product` in response with status code 200 - - [Added] property `multi_size` of schema `Product` in response with status code 200 - - [Added] property `name` of schema `Product` in response with status code 200 - - [Added] property `net_quantity` of schema `Product` in response with status code 200 - - [Added] property `no_of_boxes` of schema `Product` in response with status code 200 - - [Added] property `pending` of schema `Product` in response with status code 200 - - [Added] property `primary_color` of schema `Product` in response with status code 200 - - [Added] property `product_group_tag` of schema `Product` in response with status code 200 - - [Added] property `product_publish` of schema `Product` in response with status code 200 - - [Added] property `return_config` of schema `Product` in response with status code 200 - - [Added] property `short_description` of schema `Product` in response with status code 200 - - [Added] property `size_guide` of schema `Product` in response with status code 200 - - [Added] property `sizes` of schema `Product` in response with status code 200 - - [Added] property `slug` of schema `Product` in response with status code 200 - - [Added] property `stage` of schema `Product` in response with status code 200 - - [Added] property `tags` of schema `Product` in response with status code 200 - - [Added] property `tax_identifier` of schema `Product` in response with status code 200 - - [Added] property `teaser_tag` of schema `Product` in response with status code 200 - - [Added] property `template_tag` of schema `Product` in response with status code 200 - - [Added] property `trader` of schema `Product` in response with status code 200 - - [Added] property `uid` of schema `Product` in response with status code 200 - - [Added] property `variant_group` of schema `Product` in response with status code 200 - - [Added] property `variant_media` of schema `Product` in response with status code 200 - - [Added] property `variants` of schema `Product` in response with status code 200 - - [Added] property `verified_by` of schema `Product` in response with status code 200 - - [Added] property `verified_on` of schema `Product` in response with status code 200 - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] `query` parameter `itemCode` (type: `string`) - - - [Breaking] [Deleted] `query` parameter `brandUid` (type: `integer`) - - - [Breaking] [Deleted] `query` parameter `uid` (type: `integer`) - - - [Breaking] [Deleted] property `items` of schema `ProductListingResponse` in response with status code 200 - - [Breaking] [Deleted] property `page` of schema `ProductListingResponse` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/products/{item_id}/sizes/` To `/service/platform/catalog/v1.0/company/{company_id}/products/{item_id}/sizes` - - -#### deleteSize - -- ##### What's New - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - - -#### getInventoryBySize - -- ##### What's New - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - - -#### addInventory - -- ##### What's Deprecated - - [Breaking] [Deleted] method `addInventory` - - - -#### getVariantsOfProducts - -- ##### What's New - - [Added] Response with status 404 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - - -#### getSizeGuides - -- ##### What's New - - [Breaking] [Added] properties `items[].image`, `items[].created_by`, `items[].modified_by`, `items[].active`, `items[].brand_id`, `items[].company_id`, `items[].created_on`, `items[].guide`, `items[].id`, `items[].modified_on`, `items[].name`, `items[].subtitle`, `items[].tag`, `items[].title` in response with status code 200 - - [Breaking] [Added] properties `page.current`, `page.has_next`, `page.has_previous`, `page.item_total`, `page.next_id`, `page.size`, `page.type` in response with status code 200 - - [Breaking] [Added] Required status to property `page.type` in response with status code 200 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - - -#### createSizeGuide - -- ##### What's New - - [Breaking] [Added] properties `guide.meta.headers.col_1`, `guide.meta.headers.col_2` in request body - - [Breaking] [Added] properties `guide.meta.values[].col_1`, `guide.meta.values[].col_2` in request body - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Deleted] Value format from `date-time` from property `created_on` of schema `ValidateSizeGuide` in request body - - [Deleted] Value format from `date-time` from property `modified_on` of schema `ValidateSizeGuide` in request body - - [Breaking] [Deleted] Response with status 4XX - - -#### getSizeGuide - -- ##### What's New - - [Added] property `image` of schema `SizeGuideResponse` in response with status code 200 - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Deleted] Type from `object` from property `created_by` of schema `SizeGuideResponse` in response with status code 200 - - [Deleted] Type from `object` from property `modified_by` of schema `SizeGuideResponse` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/sizeguide/{id}/` To `/service/platform/catalog/v1.0/company/{company_id}/sizeguide/{id}` - - -#### updateSizeGuide - -- ##### What's New - - [Breaking] [Added] properties `guide.meta.headers.col_1`, `guide.meta.headers.col_2` in request body - - [Breaking] [Added] properties `guide.meta.values[].col_1`, `guide.meta.values[].col_2` in request body - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Deleted] Value format from `date-time` from property `created_on` of schema `ValidateSizeGuide` in request body - - [Deleted] Value format from `date-time` from property `modified_on` of schema `ValidateSizeGuide` in request body - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v1.0/company/{company_id}/sizeguide/{id}/` To `/service/platform/catalog/v1.0/company/{company_id}/sizeguide/{id}` - - -#### updateAllowSingle - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - - -#### updateDefaultSort - -- ##### What's New - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - - -#### getListingConfigurations - -- ##### What's New - - [Added] `query` parameter `uids` (type: `array`) - - - [Breaking] [Added] properties `data[].app_id`, `data[].allow_single`, `data[].id`, `data[].is_active`, `data[].key`, `data[].name`, `data[].is_default`, `data[].priority`, `data[].logo`, `data[].value_config`, `data[].type` in response with status code 200 - -- ##### What's Deprecated - - [Deleted] Required status from properties `data`, `page` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v2.0/company/{company_id}/application/{application_id}/product-configuration/{config_type}/` To `/service/platform/catalog/v2.0/company/{company_id}/application/{application_id}/product-configuration/{config_type}` - - -#### createListingConfiguration - -- ##### What's New - - [Added] property `allow_single` of schema `AppConfigurationsFilter` in request body - - [Added] property `attribute_name` of schema `AppConfigurationsFilter` in request body - - [Added] property `value_config` of schema `AppConfigurationsFilter` in request body - - [Added] property `type` of schema `AppConfigurationsFilter` in request body - - [Added] property `id` of schema `AppConfigurationsFilterResponse` in response with status code 200 - - [Added] property `allow_single` of schema `AppConfigurationsFilterResponse` in response with status code 200 - - [Added] property `attribute_name` of schema `AppConfigurationsFilterResponse` in response with status code 200 - - [Added] property `value_config` of schema `AppConfigurationsFilterResponse` in response with status code 200 - - [Added] property `type` of schema `AppConfigurationsFilterResponse` in response with status code 200 - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] property `default_key` of schema `AppConfigurationsSort` in request body - - [Deleted] Required status from property `default_key` in request body - - [Breaking] [Deleted] property `default_key` of schema `AppConfigurationsSort` in response with status code 200 - - [Deleted] Required status from properties `app_id`, `default_key`, `is_active`, `is_default`, `key`, `priority` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v2.0/company/{company_id}/application/{application_id}/product-configuration/{config_type}/` To `/service/platform/catalog/v2.0/company/{company_id}/application/{application_id}/product-configuration/{config_type}` - - -#### getGroupConfigurations - -- ##### What's New - - [Breaking] [Added] properties `data[].app_id`, `data[].is_default`, `data[].priority`, `data[].name`, `data[].attributes`, `data[].is_active`, `data[].slug`, `data[].id` in response with status code 200 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - - -#### createGroupConfiguration - -- ##### What's New - - [Added] property `id` of schema `AppConfigurationDetail` in response with status code 200 - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Deleted] Required status from property `app_id` in request body - - [Deleted] Required status from property `app_id` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - - -#### deleteGroupConfiguration - -- ##### What's New - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - - -#### updateGroupConfiguration - -- ##### What's New - - [Added] property `id` of schema `AppConfigurationDetail` in request body - - [Added] property `id` of schema `AppConfigurationDetail` in response with status code 200 - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Deleted] Required status from property `app_id` in request body - - [Deleted] Required status from property `app_id` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - - -#### deleteListingConfiguration - -- ##### What's New - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v2.0/company/{company_id}/application/{application_id}/product-configuration/{config_type}/item/{config_id}/` To `/service/platform/catalog/v2.0/company/{company_id}/application/{application_id}/product-configuration/{config_type}/item/{config_id}` - - -#### updateListingConfiguration - -- ##### What's New - - [Added] property `id` of schema `AppConfigurationsFilterResponse` in request body - - [Added] property `allow_single` of schema `AppConfigurationsFilterResponse` in request body - - [Added] property `attribute_name` of schema `AppConfigurationsFilterResponse` in request body - - [Added] property `value_config` of schema `AppConfigurationsFilterResponse` in request body - - [Added] property `type` of schema `AppConfigurationsFilterResponse` in request body - - [Added] property `id` of schema `AppConfigurationsFilterResponse` in response with status code 200 - - [Added] property `allow_single` of schema `AppConfigurationsFilterResponse` in response with status code 200 - - [Added] property `attribute_name` of schema `AppConfigurationsFilterResponse` in response with status code 200 - - [Added] property `value_config` of schema `AppConfigurationsFilterResponse` in response with status code 200 - - [Added] property `type` of schema `AppConfigurationsFilterResponse` in response with status code 200 - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] property `default_key` of schema `AppConfigurationsSort` in request body - - [Deleted] Required status from properties `app_id`, `default_key`, `is_active`, `is_default`, `key`, `priority` in request body - - [Breaking] [Deleted] property `default_key` of schema `AppConfigurationsSort` in response with status code 200 - - [Deleted] Required status from properties `app_id`, `default_key`, `is_active`, `is_default`, `key`, `priority` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v2.0/company/{company_id}/application/{application_id}/product-configuration/{config_type}/item/{config_id}/` To `/service/platform/catalog/v2.0/company/{company_id}/application/{application_id}/product-configuration/{config_type}/item/{config_id}` - - -#### getConfigurationMetadata - -- ##### What's New - - [Breaking] [Added] properties `condition[].key`, `condition[].display` in response with status code 200 - - [Breaking] [Added] properties `data[].key`, `data[].display`, `data[].filter_types`, `data[].compatible_units` in response with status code 200 - - [Breaking] [Added] properties `values.type`, `values.sort` in response with status code 200 - -- ##### What's Deprecated - - [Breaking] [Deleted] `query` parameter `pageNo` (type: `integer`) - - - [Breaking] [Deleted] `query` parameter `pageSize` (type: `integer`) - - - [Breaking] [Deleted] `query` parameter `q` (type: `string`) - - - [Breaking] [Deleted] property `values[]` of schema `GetConfigMetadataResponse` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Breaking] [Changed] Type from `array` to `object` of property `values` of schema `GetConfigMetadataResponse` in response with status code 200 - - [Changed] Path From `/service/platform/catalog/v2.0/company/{company_id}/application/{application_id}/product-configuration/{config_type}/metadata/` To `/service/platform/catalog/v2.0/company/{company_id}/application/{application_id}/product-configuration/{config_type}/metadata` - - -#### getAllProductHsnCodes - -- ##### What's New - - [Added] property `items[].id` of schema `HSNDataInsertV2` in response with status code 200 - - [Added] property `page.type` of schema `PageResponse1` in response with status code 200 - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Deleted] Type from `object` from property `items[].created_by` of schema `HSNDataInsertV2` in response with status code 200 - - [Deleted] Value format from `date-time` from property `items[].created_on` of schema `HSNDataInsertV2` in response with status code 200 - - [Deleted] Type from `object` from property `items[].modified_by` of schema `HSNDataInsertV2` in response with status code 200 - - [Deleted] Value format from `date-time` from property `items[].modified_on` of schema `HSNDataInsertV2` in response with status code 200 - - [Deleted] Value format from `date-time` from property `items[].taxes[].effective_date` of schema `TaxSlab` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Breaking] [Changed] Type from `string` to `integer` of property `page.current` of schema `PageResponse` in response with status code 200 - - [Changed] Path From `/service/platform/catalog/v2.0/company/{company_id}/hsn/` To `/service/platform/catalog/v2.0/company/{company_id}/hsn` - - -#### getSingleProductHSNCode - -- ##### What's New - - [Added] property `id` of schema `HSNDataInsertV2` in response with status code 200 - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Deleted] Type from `object` from property `created_by` of schema `HSNDataInsertV2` in response with status code 200 - - [Deleted] Value format from `date-time` from property `created_on` of schema `HSNDataInsertV2` in response with status code 200 - - [Deleted] Type from `object` from property `modified_by` of schema `HSNDataInsertV2` in response with status code 200 - - [Deleted] Value format from `date-time` from property `modified_on` of schema `HSNDataInsertV2` in response with status code 200 - - [Deleted] Value format from `date-time` from property `taxes[].effective_date` of schema `TaxSlab` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - - -#### updateInventories - -- ##### What's New - - [Added] property `items[].reason.reason_code` of schema `InventoryFailedReason` in response with status code 200 - - [Added] property `success` of schema `InventoryUpdateResponse` in response with status code 200 - - [Added] property `items[].reason.reason_code` of schema `InventoryFailedReason` in response with status code 400 - - [Added] property `success` of schema `InventoryUpdateResponse` in response with status code 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] property `company_id` of schema `InventoryRequestSchemaV2` in request body - - [Deleted] Value format from `date-time` from property `payload[].expiration_date` of schema `InventoryPayload` in request body - - [Deleted] Required status from property `company_id` in request body - - [Deleted] Value format from `date-time` from property `items[].data.expiration_date` of schema `InventoryPayload` in response with status code 200 - - [Deleted] Required status from property `message` in response with status code 200 - - [Deleted] Value format from `date-time` from property `items[].data.expiration_date` of schema `InventoryPayload` in response with status code 400 - - [Deleted] Required status from property `message` in response with status code 400 - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v2.0/company/{company_id}/inventory/` To `/service/platform/catalog/v2.0/company/{company_id}/inventory` - - -#### listInventoryExport - -- ##### What's New - - [Breaking] [Added] Type `array` to property `items` of schema `InventoryExportJobListResponse` in response with status code 200 - - [Added] property `items[]` of schema `InventoryExportJobListResponse` in response with status code 200 - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Deleted] Required status from property `items` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v2.0/company/{company_id}/inventory/download/` To `/service/platform/catalog/v2.0/company/{company_id}/inventory/download` - - -#### createInventoryExport - -- ##### What's New - - [Breaking] [Added] properties `filters.brand_ids`, `filters.store_ids` in response with status code 200 - - [Added] property `stats` of schema `InventoryExportResponse` in response with status code 200 - - [Added] property `_id` of schema `InventoryExportResponse` in response with status code 200 - - [Added] property `trigger_on` of schema `InventoryExportResponse` in response with status code 200 - - [Added] property `brand` of schema `InventoryExportResponse` in response with status code 200 - - [Added] property `store` of schema `InventoryExportResponse` in response with status code 200 - -- ##### What's Deprecated - - [Deleted] Possible nullable value from `true` from property `type` of schema `InventoryCreateRequest` in request body - - [Deleted] Value format from `date-time` from property `created_by` of schema `InventoryExportResponse` in response with status code 200 - - [Deleted] Type from `string` from property `created_by` of schema `InventoryExportResponse` in response with status code 200 - - [Deleted] Value format from `date-time` from property `created_on` of schema `InventoryExportResponse` in response with status code 200 - - [Deleted] Value format from `date-time` from property `modified_on` of schema `InventoryExportResponse` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v2.0/company/{company_id}/inventory/download/` To `/service/platform/catalog/v2.0/company/{company_id}/inventory/download` - - -#### getProducts - -- ##### What's New - - [Breaking] [Added] properties `items[].category.l3`, `items[].category.l1`, `items[].category.l2` in response with status code 200 - -- ##### What's Deprecated - - [Deleted] Value format from `date-time` from property `items[].created_on` of schema `ProductSchemaV2` in response with status code 200 - - [Deleted] Value format from `date-time` from property `items[].modified_on` of schema `ProductSchemaV2` in response with status code 200 - - [Deleted] Value format from `date-time` from property `items[].product_publish.product_online_date` of schema `ProductPublish` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v2.0/company/{company_id}/products/` To `/service/platform/catalog/v2.0/company/{company_id}/products` - - -#### createProduct - -- ##### What's New - - [Breaking] [Added] properties `sizes[].size`, `sizes[].price`, `sizes[].price_effective`, `sizes[].price_transfer`, `sizes[].currency`, `sizes[].item_length`, `sizes[].item_width`, `sizes[].item_height`, `sizes[].item_weight`, `sizes[].item_dimensions_unit_of_measure`, `sizes[].item_weight_unit_of_measure`, `sizes[].track_inventory`, `sizes[].identifiers`, `sizes[]._custom_json`, `sizes[].name` in request body - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Deleted] Value format from `date-time` from property `product_publish.product_online_date` of schema `ProductPublish1` in request body - - [Deleted] Required status from property `return_config.time` in request body - - [Deleted] Required status from property `return_config.unit` in request body - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v2.0/company/{company_id}/products/` To `/service/platform/catalog/v2.0/company/{company_id}/products` - - -#### uploadBulkProducts - -- ##### What's New - - [Added] property `product_type` of schema `BulkProductJob` in request body - - [Added] property `department` of schema `BulkProductJob` in request body - -- ##### What's Deprecated - - [Breaking] [Deleted] property `cancelled` of schema `BulkJob` in request body - - [Breaking] [Deleted] property `cancelled_records` of schema `BulkJob` in request body - - [Breaking] [Deleted] property `created_by` of schema `BulkJob` in request body - - [Breaking] [Deleted] property `created_on` of schema `BulkJob` in request body - - [Breaking] [Deleted] property `custom_template_tag` of schema `BulkJob` in request body - - [Breaking] [Deleted] property `failed` of schema `BulkJob` in request body - - [Breaking] [Deleted] property `failed_records` of schema `BulkJob` in request body - - [Breaking] [Deleted] property `is_active` of schema `BulkJob` in request body - - [Breaking] [Deleted] property `modified_by` of schema `BulkJob` in request body - - [Breaking] [Deleted] property `modified_on` of schema `BulkJob` in request body - - [Breaking] [Deleted] property `stage` of schema `BulkJob` in request body - - [Breaking] [Deleted] property `succeed` of schema `BulkJob` in request body - - [Breaking] [Deleted] property `total` of schema `BulkJob` in request body - - [Breaking] [Deleted] property `tracking_url` of schema `BulkJob` in request body - - [Deleted] Required status from properties `company_id`, `created_on` in request body - - [Breaking] [Deleted] property `created_by` of schema `BulkResponse` in response with status code 200 - - [Breaking] [Deleted] property `created_on` of schema `BulkResponse` in response with status code 200 - - [Breaking] [Deleted] property `is_active` of schema `BulkResponse` in response with status code 200 - - [Breaking] [Deleted] property `modified_by` of schema `BulkResponse` in response with status code 200 - - [Breaking] [Deleted] property `modified_on` of schema `BulkResponse` in response with status code 200 - - [Deleted] Required status from properties `batch_id`, `created_on` in response with status code 200 - - [Deleted] Type from `object` from property `` of schema `BulkResponse` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Breaking] [Changed] Type from `integer` to `string` of property `company_id` of schema `BulkJob` in request body - - -#### getProductExportJobs - -- ##### What's New - - [Added] property `items[].trigger_on` of schema `ProductTemplateExportResponse` in response with status code 200 - - [Added] property `items[].id` of schema `ProductTemplateExportResponse` in response with status code 200 - - [Added] property `items[].template_tags` of schema `ProductTemplateExportResponse` in response with status code 200 - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Deleted] Value format from `date-time` from property `items[].completed_on` of schema `ProductTemplateExportResponse` in response with status code 200 - - [Deleted] Value format from `date-time` from property `items[].modified_on` of schema `ProductTemplateExportResponse` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v2.0/company/{company_id}/products/downloads/` To `/service/platform/catalog/v2.0/company/{company_id}/products/downloads` - - -#### createProductExportJob - -- ##### What's New - - [Added] property `data` of schema `CreateProductDownloadsResponse` in response with status code 200 - -- ##### What's Deprecated - - [Breaking] [Deleted] property `items` of schema `ProductDownloadsResponse` in response with status code 200 - - [Deleted] Type from `object` from property `` of schema `ProductDownloadsResponse` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v2.0/company/{company_id}/products/downloads/` To `/service/platform/catalog/v2.0/company/{company_id}/products/downloads` - - -#### deleteProduct - -- ##### What's New - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v2.0/company/{company_id}/products/{item_id}/` To `/service/platform/catalog/v2.0/company/{company_id}/products/{item_id}` - - -#### getProduct - -- ##### What's New - - [Breaking] [Added] properties `data.category.l3`, `data.category.l1`, `data.category.l2` in response with status code 200 - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Deleted] Value format from `date-time` from property `data.created_on` of schema `ProductSchemaV2` in response with status code 200 - - [Deleted] Value format from `date-time` from property `data.modified_on` of schema `ProductSchemaV2` in response with status code 200 - - [Deleted] Value format from `date-time` from property `data.product_publish.product_online_date` of schema `ProductPublish` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v2.0/company/{company_id}/products/{item_id}/` To `/service/platform/catalog/v2.0/company/{company_id}/products/{item_id}` - - -#### editProduct - -- ##### What's New - - [Breaking] [Added] properties `sizes[].size`, `sizes[].price`, `sizes[].price_effective`, `sizes[].price_transfer`, `sizes[].currency`, `sizes[].item_length`, `sizes[].item_width`, `sizes[].item_height`, `sizes[].item_weight`, `sizes[].item_dimensions_unit_of_measure`, `sizes[].item_weight_unit_of_measure`, `sizes[].track_inventory`, `sizes[].identifiers`, `sizes[]._custom_json`, `sizes[].name` in request body - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Deleted] Value format from `date-time` from property `product_publish.product_online_date` of schema `ProductPublish1` in request body - - [Deleted] Required status from property `return_config.time` in request body - - [Deleted] Required status from property `return_config.unit` in request body - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Changed] Path From `/service/platform/catalog/v2.0/company/{company_id}/products/{item_id}/` To `/service/platform/catalog/v2.0/company/{company_id}/products/{item_id}` - - -#### allSizes - -- ##### What's New - - [Added] Response with status 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - - -#### deleteRealtimeInventory - -- ##### What's New - - [Added] property `items[].reason.reason_code` of schema `InventoryFailedReason` in response with status code 200 - - [Added] property `success` of schema `InventoryUpdateResponse` in response with status code 200 - - [Added] property `items[].reason.reason_code` of schema `InventoryFailedReason` in response with status code 400 - - [Added] property `success` of schema `InventoryUpdateResponse` in response with status code 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] property `company_id` of schema `InventoryRequestSchemaV2` in request body - - [Deleted] Value format from `date-time` from property `payload[].expiration_date` of schema `InventoryPayload` in request body - - [Deleted] Required status from property `company_id` in request body - - [Deleted] Value format from `date-time` from property `items[].data.expiration_date` of schema `InventoryPayload` in response with status code 200 - - [Deleted] Required status from property `message` in response with status code 200 - - [Deleted] Value format from `date-time` from property `items[].data.expiration_date` of schema `InventoryPayload` in response with status code 400 - - [Deleted] Required status from property `message` in response with status code 400 - - -#### updateRealtimeInventory - -- ##### What's New - - [Added] property `items[].reason.reason_code` of schema `InventoryFailedReason` in response with status code 200 - - [Added] property `success` of schema `InventoryUpdateResponse` in response with status code 200 - - [Added] property `items[].reason.reason_code` of schema `InventoryFailedReason` in response with status code 400 - - [Added] property `success` of schema `InventoryUpdateResponse` in response with status code 400 - -- ##### What's Deprecated - - [Breaking] [Deleted] property `company_id` of schema `InventoryRequestSchemaV2` in request body - - [Deleted] Value format from `date-time` from property `payload[].expiration_date` of schema `InventoryPayload` in request body - - [Deleted] Required status from property `company_id` in request body - - [Deleted] Value format from `date-time` from property `items[].data.expiration_date` of schema `InventoryPayload` in response with status code 200 - - [Deleted] Required status from property `message` in response with status code 200 - - [Deleted] Value format from `date-time` from property `items[].data.expiration_date` of schema `InventoryPayload` in response with status code 400 - - [Deleted] Required status from property `message` in response with status code 400 - - -#### getMarketplaces - -- ##### What's New - - [Breaking] [Added] Type `string` to property `items[].created_on` of schema `Marketplaces` in response with status code 200 - - [Breaking] [Added] Type `string` to property `items[].modified_on` of schema `Marketplaces` in response with status code 200 - -- ##### What's Deprecated - - [Deleted] Value format from `date-time` from property `items[].created_on` of schema `Marketplaces` in response with status code 200 - - [Deleted] Value format from `date-time` from property `items[].modified_on` of schema `Marketplaces` in response with status code 200 - - [Breaking] [Deleted] Response with status 4XX - - -#### updateMarketplaceOptin - -- ##### What's Deprecated - - [Breaking] [Deleted] Response with status 4XX - -- ##### What's Changed - - [Breaking] [Changed] Type from `string` to `integer` of property `opt_level` of schema `UpdateMarketplaceOptinRequest` in request body - - -#### getConfigurationsFilterMetadata - -- ##### What's New - - [Added] method `getConfigurationsFilterMetadata` - - - -#### createSearchRerank - -- ##### What's New - - [Added] method `createSearchRerank` - - - -#### getSearchRerank - -- ##### What's New - - [Added] method `getSearchRerank` - - - -#### getSearchRerankDetail - -- ##### What's New - - [Added] method `getSearchRerankDetail` - - - -#### updateSearchRerankConfiguration - -- ##### What's New - - [Added] method `updateSearchRerankConfiguration` - - - -#### deleteSearchRerankConfiguration - -- ##### What's New - - [Added] method `deleteSearchRerankConfiguration` - - - -#### patchProductExportDetail - -- ##### What's New - - [Added] method `patchProductExportDetail` - - - -#### getProductExportDetail - -- ##### What's New - - [Added] method `getProductExportDetail` - - - -#### patchInventoryExportDetail - -- ##### What's New - - [Added] method `patchInventoryExportDetail` - - - -#### getInventoryExportDetail - -- ##### What's New - - [Added] method `getInventoryExportDetail` - - - -#### getCompanyVerification - -- ##### What's New - - [Added] method `getCompanyVerification` - - - -#### getProductVerificationDetails - -- ##### What's New - - [Added] method `getProductVerificationDetails` - - - -#### getVariantTypes - -- ##### What's New - - [Added] method `getVariantTypes` - - - -#### getProductTemplateBySlug - -- ##### What's New - - [Added] method `getProductTemplateBySlug` - - - -#### createAutocompleteSettings - -- ##### What's New - - [Added] method `createAutocompleteSettings` - - - -#### getAutocompleteSettings - -- ##### What's New - - [Added] method `getAutocompleteSettings` - - - -#### updateAutocompleteSettings - -- ##### What's New - - [Added] method `updateAutocompleteSettings` - - - -#### getAutocompletePreview - -- ##### What's New - - [Added] method `getAutocompletePreview` - - - -#### getMerchandisingRulePinAction - -- ##### What's New - - [Added] method `getMerchandisingRulePinAction` - - - -#### createMerchandisingRulePinAction - -- ##### What's New - - [Added] method `createMerchandisingRulePinAction` - - - -#### updateMerchandisingRulePinAction - -- ##### What's New - - [Added] method `updateMerchandisingRulePinAction` - - - -#### getMerchandisingRuleHideAction - -- ##### What's New - - [Added] method `getMerchandisingRuleHideAction` - - - -#### createMerchandisingRuleHideAction - -- ##### What's New - - [Added] method `createMerchandisingRuleHideAction` - - - -#### updateMerchandisingRuleHideAction - -- ##### What's New - - [Added] method `updateMerchandisingRuleHideAction` - - - -#### getMerchandisingRuleBoostAction - -- ##### What's New - - [Added] method `getMerchandisingRuleBoostAction` - - - -#### createMerchandisingRuleBoostAction - -- ##### What's New - - [Added] method `createMerchandisingRuleBoostAction` - - - -#### updateMerchandisingRuleBoostAction - -- ##### What's New - - [Added] method `updateMerchandisingRuleBoostAction` - - - -#### getMerchandisingRuleBuryAction - -- ##### What's New - - [Added] method `getMerchandisingRuleBuryAction` - - - -#### createMerchandisingRuleBuryAction - -- ##### What's New - - [Added] method `createMerchandisingRuleBuryAction` - - - -#### updateMerchandisingRuleBuryAction - -- ##### What's New - - [Added] method `updateMerchandisingRuleBuryAction` - - - -#### createMerchandisingRuleQuery - -- ##### What's New - - [Added] method `createMerchandisingRuleQuery` - - - -#### getMerchandisingQuery - -- ##### What's New - - [Added] method `getMerchandisingQuery` - - - -#### updateMerchandisingRuleQuery - -- ##### What's New - - [Added] method `updateMerchandisingRuleQuery` - - - -#### getMerchandisingRules - -- ##### What's New - - [Added] method `getMerchandisingRules` - - - -#### getLivePreview - -- ##### What's New - - [Added] method `getLivePreview` - - - -#### createAppPriceFactory - -- ##### What's New - - [Added] method `createAppPriceFactory` - - - -#### getAppPriceFactories - -- ##### What's New - - [Added] method `getAppPriceFactories` - - - -#### getAppPriceFactory - -- ##### What's New - - [Added] method `getAppPriceFactory` - - - -#### editAppPriceFactory - -- ##### What's New - - [Added] method `editAppPriceFactory` - - - -#### addProductsInPriceFactoryByZoneId - -- ##### What's New - - [Added] method `addProductsInPriceFactoryByZoneId` - - - -#### getProductsInPriceFactoryByZoneId - -- ##### What's New - - [Added] method `getProductsInPriceFactoryByZoneId` - - - -#### updateProductPriceByZoneInPriceFactory - -- ##### What's New - - [Added] method `updateProductPriceByZoneInPriceFactory` - - - -#### createProductPriceFactoryBulkJob - -- ##### What's New - - [Added] method `createProductPriceFactoryBulkJob` - - - -#### pollProductPriceFactoryBulkJob - -- ##### What's New - - [Added] method `pollProductPriceFactoryBulkJob` - - - -#### validateProductPriceFactoryBulkJob - -- ##### What's New - - [Added] method `validateProductPriceFactoryBulkJob` - - - -#### processProductPriceFactoryBulkJob - -- ##### What's New - - [Added] method `processProductPriceFactoryBulkJob` - - - -### CompanyProfile - - - -#### updateCompany - -- ##### What's Changed - - [Breaking] [Changed] pattern validator for business_info in request body - - -### Configuration - - - -#### getAppFeatures - -- ##### What's New - - [Added] property `feature.buybox` of schema `AppFeature` in response with status code 200 - - -#### updateAppFeatures - -- ##### What's New - - [Added] property `feature.buybox` of schema `AppFeature` in request body - - [Added] property `buybox` of schema `AppFeature` in response with status code 200 - - -#### modifyAppFeatures - -- ##### What's New - - [Added] property `feature.buybox` of schema `AppFeature` in request body - - [Added] property `buybox` of schema `AppFeature` in response with status code 200 - - -#### getInventoryConfig - -- ##### What's New - - [Added] property `inventory.pricing_strategy` of schema `AppInventoryConfig` in response with status code 200 - - -#### updateInventoryConfig - -- ##### What's New - - [Added] property `inventory.pricing_strategy` of schema `AppInventoryConfig` in request body - - [Added] property `inventory.pricing_strategy` of schema `AppInventoryConfig` in response with status code 200 - - -#### partiallyUpdateInventoryConfig - -- ##### What's New - - [Added] property `inventory.pricing_strategy` of schema `AppInventoryConfig` in response with status code 200 - - -#### createApplication - -- ##### What's New - - [Added] property `configuration.inventory.pricing_strategy` of schema `AppInventoryConfig` in request body - - [Added] property `configuration.inventory.pricing_strategy` of schema `AppInventoryConfig` in response with status code 200 - - -### Content - - - -#### createBlog - -- ##### What's Deprecated - - [Breaking] [Deleted] property `seo.breadcrumb[].action.popup` of schema `Action` in request body - - [Breaking] [Deleted] property `seo.breadcrumb[].action.popup` of schema `Action` in response with status code 200 - - -#### getBlogs - -- ##### What's Deprecated - - [Breaking] [Deleted] property `items[].seo.breadcrumb[].action.popup` of schema `Action` in response with status code 200 - - -#### updateBlog - -- ##### What's Deprecated - - [Breaking] [Deleted] property `seo.breadcrumb[].action.popup` of schema `Action` in request body - - [Breaking] [Deleted] property `seo.breadcrumb[].action.popup` of schema `Action` in response with status code 200 - - -#### deleteBlog - -- ##### What's Deprecated - - [Breaking] [Deleted] property `seo.breadcrumb[].action.popup` of schema `Action` in response with status code 200 - - -#### getComponentById - -- ##### What's Deprecated - - [Breaking] [Deleted] property `seo.breadcrumb[].action.popup` of schema `Action` in response with status code 200 - - -#### getLandingPages - -- ##### What's Deprecated - - [Breaking] [Deleted] property `items[].action.popup` of schema `Action` in response with status code 200 - - -#### createLandingPage - -- ##### What's Deprecated - - [Breaking] [Deleted] property `action.popup` of schema `Action` in request body - - [Breaking] [Deleted] property `action.popup` of schema `Action` in response with status code 200 - - -#### updateLandingPage - -- ##### What's Deprecated - - [Breaking] [Deleted] property `action.popup` of schema `Action` in request body - - [Breaking] [Deleted] property `action.popup` of schema `Action` in response with status code 200 - - -#### deleteLandingPage - -- ##### What's Deprecated - - [Breaking] [Deleted] property `action.popup` of schema `Action` in response with status code 200 - - -#### getNavigations - -- ##### What's New - - [Added] property `items[].navigation[].schedule` of schema `NavigationReference` in response with status code 200 - -- ##### What's Deprecated - - [Breaking] [Deleted] property `items[].navigation[].action.popup` of schema `Action` in response with status code 200 - - -#### createNavigation - -- ##### What's New - - [Added] property `navigation[].schedule` of schema `NavigationReference` in request body - - [Added] property `navigation[].schedule` of schema `NavigationReference` in response with status code 200 - -- ##### What's Deprecated - - [Breaking] [Deleted] property `navigation[].action.popup` of schema `Action` in request body - - [Breaking] [Deleted] property `navigation[].action.popup` of schema `Action` in response with status code 200 - - -#### getDefaultNavigations - -- ##### What's New - - [Added] property `items[].navigation[].schedule` of schema `NavigationReference` in response with status code 200 - -- ##### What's Deprecated - - [Breaking] [Deleted] property `items[].navigation[].action.popup` of schema `Action` in response with status code 200 - - -#### getNavigationBySlug - -- ##### What's New - - [Added] property `navigation[].schedule` of schema `NavigationReference` in response with status code 200 - -- ##### What's Deprecated - - [Breaking] [Deleted] property `navigation[].action.popup` of schema `Action` in response with status code 200 - - -#### updateNavigation - -- ##### What's New - - [Added] property `navigation[].schedule` of schema `NavigationReference` in request body - - [Added] property `navigation[].schedule` of schema `NavigationReference` in response with status code 200 - -- ##### What's Deprecated - - [Breaking] [Deleted] property `navigation[].action.popup` of schema `Action` in request body - - [Breaking] [Deleted] property `navigation[].action.popup` of schema `Action` in response with status code 200 - - -#### deleteNavigation - -- ##### What's New - - [Added] property `navigation[].schedule` of schema `NavigationReference` in response with status code 200 - -- ##### What's Deprecated - - [Breaking] [Deleted] property `navigation[].action.popup` of schema `Action` in response with status code 200 - - -#### getPageMeta - -- ##### What's New - - [Added] property `system_pages[].navigation[].schedule` of schema `NavigationReference` in response with status code 200 - -- ##### What's Deprecated - - [Breaking] [Deleted] property `system_pages[].navigation[].action.popup` of schema `Action` in response with status code 200 - - [Breaking] [Deleted] property `custom_pages[].seo.breadcrumb[].action.popup` of schema `Action` in response with status code 200 - - -#### createPagePreview - -- ##### What's Deprecated - - [Breaking] [Deleted] property `seo.breadcrumb[].action.popup` of schema `Action` in request body - - [Breaking] [Deleted] property `seo.breadcrumb[].action.popup` of schema `Action` in response with status code 200 - - -#### updatePagePreview - -- ##### What's Deprecated - - [Breaking] [Deleted] property `seo.breadcrumb[].action.popup` of schema `Action` in response with status code 200 - - -#### deletePage - -- ##### What's Deprecated - - [Breaking] [Deleted] property `seo.breadcrumb[].action.popup` of schema `Action` in response with status code 200 - - -#### getSlideshows - -- ##### What's Deprecated - - [Breaking] [Deleted] property `items[].media[].action.popup` of schema `Action` in response with status code 200 - - -#### createSlideshow - -- ##### What's Deprecated - - [Breaking] [Deleted] property `media.action.popup` of schema `Action` in request body - - [Breaking] [Deleted] property `media[].action.popup` of schema `Action` in response with status code 200 - - -#### getSlideshowBySlug - -- ##### What's Deprecated - - [Breaking] [Deleted] property `media[].action.popup` of schema `Action` in response with status code 200 - - -#### updateSlideshow - -- ##### What's Deprecated - - [Breaking] [Deleted] property `media.action.popup` of schema `Action` in request body - - [Breaking] [Deleted] property `media[].action.popup` of schema `Action` in response with status code 200 - - -#### deleteSlideshow - -- ##### What's Deprecated - - [Breaking] [Deleted] property `media[].action.popup` of schema `Action` in response with status code 200 - - -#### getBlogBySlug - -- ##### What's Deprecated - - [Breaking] [Deleted] property `seo.breadcrumb[].action.popup` of schema `Action` in response with status code 200 - - -#### createPage - -- ##### What's Deprecated - - [Breaking] [Deleted] property `seo.breadcrumb[].action.popup` of schema `Action` in request body - - [Breaking] [Deleted] property `seo.breadcrumb[].action.popup` of schema `Action` in response with status code 200 - - -#### getPages - -- ##### What's Deprecated - - [Breaking] [Deleted] property `items[].seo.breadcrumb[].action.popup` of schema `Action` in response with status code 200 - - -#### updatePage - -- ##### What's Deprecated - - [Breaking] [Deleted] property `seo.breadcrumb[].action.popup` of schema `Action` in request body - - [Breaking] [Deleted] property `seo.breadcrumb[].action.popup` of schema `Action` in response with status code 200 - - -#### getPageBySlug - -- ##### What's Deprecated - - [Breaking] [Deleted] property `seo.breadcrumb[].action.popup` of schema `Action` in response with status code 200 - - -#### getCustomFields - -- ##### What's Deprecated - - [Deleted] Type from `object` from property `items[].value[]` of schema `CustomFieldValue` in response with status code 200 - - [Deleted] properties `items[].value[].value` in response with status code 200 - - -#### getCustomFieldsByResourceId - -- ##### What's Deprecated - - [Deleted] Type from `object` from property `items[].value[]` of schema `CustomFieldValue` in response with status code 200 - - [Deleted] properties `items[].value[].value` in response with status code 200 - - -#### createCustomFieldByResourceId - -- ##### What's Deprecated - - [Deleted] Type from `object` from property `items[].value[]` of schema `CustomFieldValue` in response with status code 200 - - [Deleted] properties `items[].value[].value` in response with status code 200 - - -#### createCustomObject - -- ##### What's Deprecated - - [Deleted] Type from `object` from property `fields[].value[]` of schema `CustomFieldValue` in response with status code 200 - - [Deleted] properties `fields[].value[].value` in response with status code 200 - - -#### getAppCustomFields - -- ##### What's Deprecated - - [Deleted] Type from `object` from property `items[].value[]` of schema `CustomFieldValue` in response with status code 200 - - [Deleted] properties `items[].value[].value` in response with status code 200 - - -#### getAppCustomFieldsByResourceId - -- ##### What's Deprecated - - [Deleted] Type from `object` from property `items[].value[]` of schema `CustomFieldValue` in response with status code 200 - - [Deleted] properties `items[].value[].value` in response with status code 200 - - -#### createAppCustomFieldByResourceId - -- ##### What's Deprecated - - [Deleted] Type from `object` from property `items[].value[]` of schema `CustomFieldValue` in response with status code 200 - - [Deleted] properties `items[].value[].value` in response with status code 200 - - -#### createAppCustomObject - -- ##### What's Deprecated - - [Deleted] Type from `object` from property `fields[].value[]` of schema `CustomFieldValue` in response with status code 200 - - [Deleted] properties `fields[].value[].value` in response with status code 200 - - -### Discount - - - -#### createDiscount - -- ##### What's Deprecated - - [Breaking] [Deleted] property `zone_ids` of schema `CreateUpdateDiscount` in request body - - -#### updateDiscount - -- ##### What's Deprecated - - [Breaking] [Deleted] property `zone_ids` of schema `CreateUpdateDiscount` in request body - - -### FileStorage - - - -#### proxy - -- ##### What's New - - [Breaking] [Added] properties `data`, `support` in response with status code 200 - -- ##### What's Deprecated - - [Deleted] Value format from `binary` from property `` of schema `` in response with status code 200 - -- ##### What's Changed - - [Breaking] [Changed] Type from `string` to `object` of property `` of schema `` in response with status code 200 - - -#### getPdfTypes - -- ##### What's New - - [Breaking] [Added] Required status to property `data[].store_os` in response with status code 200 - - [Added] property `data[].store_os` of schema `InvoiceTypesDataResponse` in response with status code 200 - - -#### deletePdfType - -- ##### What's New - - [Added] method `deletePdfType` - - - -#### deletePdfConfigTemplate - -- ##### What's New - - [Added] method `deletePdfConfigTemplate` - - - -### Finance - - - -#### invoiceListing - -- ##### What's Changed - - [Breaking] [Changed] Type from `string` to `number` of property `items[].amount` of schema `InvoiceListingResponseItems` in response with status code 200 - - -#### getCnConfig - -- ##### What's New - - [Breaking] [Added] Possible nullable value `true` to property `data.meta.reason` of schema `GetCnConfigResponseMeta` in response with status code 200 - - -#### invoiceActivityLogs - -- ##### What's New - - [Breaking] [Added] Possible nullable value `true` to property `data[].performed_by` of schema `InvoiceActivityLogsResponseData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `data[].reason` of schema `InvoiceActivityLogsResponseData` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `data[].max_retry_attempts` of schema `InvoiceActivityLogsResponseData` in response with status code 200 - - -### Lead - - - -#### getPlatformTickets - -- ##### What's New - - [Breaking] [Added] Type `array` to property `items[].category.sub_categories` of schema `TicketCategory` in response with status code 200 - - [Added] property `items[].category.sub_categories[]` of schema `TicketCategory` in response with status code 200 - - [Breaking] [Added] Type `array` to property `filters.categories[].sub_categories` of schema `TicketCategory` in response with status code 200 - - [Added] property `filters.categories[].sub_categories[]` of schema `TicketCategory` in response with status code 200 - -- ##### What's Deprecated - - [Deleted] Required status from property `filters.assignees` in response with status code 200 - - -#### createTicket - -- ##### What's New - - [Breaking] [Added] Type `array` to property `category.sub_categories` of schema `TicketCategory` in response with status code 200 - - [Added] property `category.sub_categories[]` of schema `TicketCategory` in response with status code 200 - - -#### getNewTickets - -- ##### What's New - - [Breaking] [Added] Type `array` to property `items[].category.sub_categories` of schema `TicketCategory` in response with status code 200 - - [Added] property `items[].category.sub_categories[]` of schema `TicketCategory` in response with status code 200 - - [Breaking] [Added] Type `array` to property `filters.categories[].sub_categories` of schema `TicketCategory` in response with status code 200 - - [Added] property `filters.categories[].sub_categories[]` of schema `TicketCategory` in response with status code 200 - -- ##### What's Deprecated - - [Deleted] Required status from property `filters.assignees` in response with status code 200 - - -#### getPlatformTicket - -- ##### What's New - - [Breaking] [Added] Type `array` to property `category.sub_categories` of schema `TicketCategory` in response with status code 200 - - [Added] property `category.sub_categories[]` of schema `TicketCategory` in response with status code 200 - - -#### editPlatformTicket - -- ##### What's New - - [Breaking] [Added] Type `array` to property `category.sub_categories` of schema `TicketCategory` in response with status code 200 - - [Added] property `category.sub_categories[]` of schema `TicketCategory` in response with status code 200 - - -#### getNewTicket - -- ##### What's New - - [Breaking] [Added] Type `array` to property `category.sub_categories` of schema `TicketCategory` in response with status code 200 - - [Added] property `category.sub_categories[]` of schema `TicketCategory` in response with status code 200 - - -#### editNewTicket - -- ##### What's New - - [Breaking] [Added] Type `array` to property `category.sub_categories` of schema `TicketCategory` in response with status code 200 - - [Added] property `category.sub_categories[]` of schema `TicketCategory` in response with status code 200 - - -#### getGeneralConfig - -- ##### What's New - - [Added] property `support_communication` of schema `GeneralConfigResponse` in response with status code 200 - - [Added] property `type` of schema `GeneralConfigResponse` in response with status code 200 - - [Added] property `integration` of schema `GeneralConfigResponse` in response with status code 200 - - [Added] property `available_integration` of schema `GeneralConfigResponse` in response with status code 200 - -- ##### What's Deprecated - - [Deleted] Required status from property `success` in response with status code 200 - - [Breaking] [Deleted] property `success` of schema `CloseVideoRoomResponse` in response with status code 200 - - -### Serviceability - - - -#### getZones - -- ##### What's New - - [Breaking] [Added] properties `page.has_next`, `page.item_total`, `page.size`, `page.current`, `page.type` in response with status code 200 - - [Breaking] [Added] Required status to properties `page.current`, `page.has_next`, `page.item_total`, `page.size`, `page.type` in response with status code 200 - - [Added] property `items[].channels[]` of schema `ListViewItems` in response with status code 200 - -- ##### What's Deprecated - - [Breaking] [Deleted] property `page[]` of schema `ListViewResponse` in response with status code 200 - - [Breaking] [Deleted] property `items[].product` of schema `ListViewItems` in response with status code 200 - - [Deleted] properties `items[].channels.channel_id`, `items[].channels.channel_type` in response with status code 200 - - [Deleted] Required status from properties `items[].channels.channel_id`, `items[].channels.channel_type` in response with status code 200 - - [Deleted] Required status from property `items[].product` in response with status code 200 - - [Deleted] Required status from property `summary` in response with status code 200 - -- ##### What's Changed - - [Breaking] [Changed] Type from `array` to `object` of property `page` of schema `ListViewResponse` in response with status code 200 - - [Breaking] [Changed] Type from `object` to `array` of property `items[].channels` of schema `ListViewChannels` in response with status code 200 - - -#### getCourierPartnerAccounts - -- ##### What's New - - [Added] `query` parameter `accountIds` (type: `array`) - - - -#### updateCourierRule - -- ##### What's New - - [Added] property `manual_priority` of schema `CourierPartnerRule` in request body - - [Added] property `manual_priority` of schema `CourierPartnerRule` in response with status code 200 - - -#### getCourierPartnerRule - -- ##### What's New - - [Added] property `manual_priority` of schema `CourierPartnerRule` in response with status code 200 - - -#### createCourierPartnerRule - -- ##### What's New - - [Added] property `manual_priority` of schema `CourierPartnerRule` in request body - - [Added] property `manual_priority` of schema `CourierPartnerRule` in response with status code 200 - - -#### getCourierPartnerRules - -- ##### What's New - - [Added] property `items[].manual_priority` of schema `CourierPartnerRule` in response with status code 200 - - -#### updateApplicationConfiguration - -- ##### What's New - - [Added] property `application_id` of schema `ApplicationConfig` in request body - - [Added] property `company_id` of schema `ApplicationConfig` in request body - - [Added] property `manual_priority` of schema `ApplicationConfig` in request body - - [Added] property `buybox_config` of schema `ApplicationConfig` in request body - - [Added] property `buybox_rule_config` of schema `ApplicationConfig` in request body - - [Added] property `promise_types` of schema `ApplicationConfig` in request body - - [Added] property `promise_config` of schema `ApplicationConfig` in request body - - [Added] property `application_id` of schema `ApplicationConfig` in response with status code 200 - - [Added] property `company_id` of schema `ApplicationConfig` in response with status code 200 - - [Added] property `manual_priority` of schema `ApplicationConfig` in response with status code 200 - - [Added] property `buybox_config` of schema `ApplicationConfig` in response with status code 200 - - [Added] property `buybox_rule_config` of schema `ApplicationConfig` in response with status code 200 - - [Added] property `promise_types` of schema `ApplicationConfig` in response with status code 200 - - [Added] property `promise_config` of schema `ApplicationConfig` in response with status code 200 - - -#### getApplicationConfiguration - -- ##### What's New - - [Added] property `application_id` of schema `ApplicationConfig` in response with status code 200 - - [Added] property `company_id` of schema `ApplicationConfig` in response with status code 200 - - [Added] property `manual_priority` of schema `ApplicationConfig` in response with status code 200 - - [Added] property `buybox_config` of schema `ApplicationConfig` in response with status code 200 - - [Added] property `buybox_rule_config` of schema `ApplicationConfig` in response with status code 200 - - [Added] property `promise_types` of schema `ApplicationConfig` in response with status code 200 - - [Added] property `promise_config` of schema `ApplicationConfig` in response with status code 200 - - -#### getApplicationConfig - -- ##### What's New - - [Added] property `manual_priority` of schema `StoreRuleConfigData` in response with status code 200 - - -#### insertApplicationConfig - -- ##### What's New - - [Added] property `manual_priority` of schema `StoreRuleConfigData` in request body - - [Added] property `manual_priority` of schema `StoreRuleConfigData` in response with status code 200 - - -#### updateStoreRulesConfig - -- ##### What's New - - [Added] property `manual_priority` of schema `StoreRuleConfigData` in request body - - [Added] property `manual_priority` of schema `StoreRuleConfigData` in response with status code 200 - - -#### getStoreRules - -- ##### What's New - - [Added] property `items[].manual_priority` of schema `StoreRuleDataSchema` in response with status code 200 - - -#### createStoreRules - -- ##### What's New - - [Added] property `manual_priority` of schema `CreateStoreRuleRequestSchema` in request body - - [Added] property `manual_priority` of schema `StoreRuleResponseSchema` in response with status code 200 - - -#### getStoreRule - -- ##### What's New - - [Added] property `manual_priority` of schema `StoreRuleDataSchema` in response with status code 200 - - -#### updateStoreRules - -- ##### What's New - - [Added] property `manual_priority` of schema `CreateStoreRuleRequestSchema` in request body - - [Added] property `manual_priority` of schema `StoreRuleUpdateResponseSchema` in response with status code 200 - - -#### patchApplicationConfiguration - -- ##### What's New - - [Added] method `patchApplicationConfiguration` - - - -### Order - - - -#### sendSmsNinja - -- ##### What's New - - [Added] property `result[].order_details.prices.amount_to_be_collected` of schema `Prices` in response with status code 200 - - -#### createOrder - -- ##### What's New - - [Added] property `shipments[].price.amount_to_be_collected` of schema `Prices` in request body - -- ##### What's Deprecated - - [Breaking] [Deleted] property `shipping_info.country_iso_code` of schema `ShippingInfo` in request body - - [Breaking] [Deleted] property `billing_info.country_iso_code` of schema `BillingInfo` in request body - -- ##### What's Changed - - [Breaking] [Changed] Type from `number` to `string` of property `shipments[].gst.gstin_code` of schema `ShipmentGstDetails` in request body - - -#### checkOrderStatus - -- ##### What's New - - [Added] property `result[].order_details.prices.amount_to_be_collected` of schema `Prices` in response with status code 200 - - -#### generateInvoiceID - -- ##### What's Deprecated - - [Breaking] [Deleted] method `generateInvoiceID` - - - -#### getShipmentBagReasons - -- ##### What's New - - [Added] property `type` of schema `Error` in response with status code 4XX - - [Added] property `value` of schema `Error` in response with status code 4XX - - [Added] property `type` of schema `Error` in response with status code 5XX - - [Added] property `value` of schema `Error` in response with status code 5XX - - -#### getShipments - -- ##### What's New - - [Added] property `items[].bags[].financial_breakup[].amount_to_be_collected` of schema `FinancialBreakup` in response with status code 200 - - [Added] property `items[].bags[].article.tags` of schema `Article` in response with status code 200 - - [Added] property `items[].bags[].prices.amount_to_be_collected` of schema `Prices` in response with status code 200 - - [Added] property `items[].prices.amount_to_be_collected` of schema `Prices` in response with status code 200 - - [Added] property `items[].payment_info` of schema `ShipmentItem` in response with status code 200 - - [Added] property `type` of schema `Error` in response with status code 4XX - - [Added] property `value` of schema `Error` in response with status code 4XX - - -#### getShipmentById - -- ##### What's New - - [Added] property `shipments[].order.affiliate_order_id` of schema `OrderDetailsData` in response with status code 200 - - [Added] property `shipments[].bags[].financial_breakup.amount_to_be_collected` of schema `FinancialBreakup` in response with status code 200 - - [Added] property `shipments[].bags[].article.tags` of schema `OrderBagArticle` in response with status code 200 - - [Added] property `shipments[].bags[].prices.amount_to_be_collected` of schema `Prices` in response with status code 200 - - [Added] property `shipments[].bags[].payment_info` of schema `OrderBags` in response with status code 200 - - [Added] property `shipments[].prices.amount_to_be_collected` of schema `Prices` in response with status code 200 - - [Added] property `shipments[].payment_info` of schema `PlatformShipment` in response with status code 200 - - [Added] property `type` of schema `Error` in response with status code 4XX - - [Added] property `value` of schema `Error` in response with status code 4XX - - -#### getOrderById - -- ##### What's New - - [Added] property `order.prices.amount_to_be_collected` of schema `Prices` in response with status code 200 - - [Added] property `order.payment_info` of schema `OrderData` in response with status code 200 - - [Added] property `shipments[].order.affiliate_order_id` of schema `OrderDetailsData` in response with status code 200 - - [Added] property `shipments[].bags[].financial_breakup.amount_to_be_collected` of schema `FinancialBreakup` in response with status code 200 - - [Added] property `shipments[].bags[].article.tags` of schema `OrderBagArticle` in response with status code 200 - - [Added] property `shipments[].bags[].prices.amount_to_be_collected` of schema `Prices` in response with status code 200 - - [Added] property `shipments[].bags[].payment_info` of schema `OrderBags` in response with status code 200 - - [Added] property `shipments[].prices.amount_to_be_collected` of schema `Prices` in response with status code 200 - - [Added] property `shipments[].payment_info` of schema `PlatformShipment` in response with status code 200 - - [Added] property `type` of schema `Error` in response with status code 4XX - - [Added] property `value` of schema `Error` in response with status code 4XX - - -#### getLaneConfig - -- ##### What's New - - [Added] property `type` of schema `Error` in response with status code 4XX - - [Added] property `value` of schema `Error` in response with status code 4XX - - -#### getOrders - -- ##### What's New - - [Added] property `items[].shipments[].order.affiliate_order_id` of schema `OrderDetailsData` in response with status code 200 - - [Added] property `items[].shipments[].bags[].financial_breakup.amount_to_be_collected` of schema `FinancialBreakup` in response with status code 200 - - [Added] property `items[].shipments[].bags[].article.tags` of schema `OrderBagArticle` in response with status code 200 - - [Added] property `items[].shipments[].bags[].prices.amount_to_be_collected` of schema `Prices` in response with status code 200 - - [Added] property `items[].shipments[].bags[].payment_info` of schema `OrderBags` in response with status code 200 - - [Added] property `items[].shipments[].prices.amount_to_be_collected` of schema `Prices` in response with status code 200 - - [Added] property `items[].shipments[].payment_info` of schema `PlatformShipment` in response with status code 200 - - [Added] property `type` of schema `Error` in response with status code 4XX - - [Added] property `value` of schema `Error` in response with status code 4XX - - -#### getApplicationShipments - -- ##### What's New - - [Added] property `items[].bags[].financial_breakup[].amount_to_be_collected` of schema `FinancialBreakup` in response with status code 200 - - [Added] property `items[].bags[].article.tags` of schema `Article` in response with status code 200 - - [Added] property `items[].bags[].prices.amount_to_be_collected` of schema `Prices` in response with status code 200 - - [Added] property `items[].prices.amount_to_be_collected` of schema `Prices` in response with status code 200 - - [Added] property `items[].payment_info` of schema `ShipmentItem` in response with status code 200 - - [Added] property `type` of schema `Error` in response with status code 4XX - - [Added] property `value` of schema `Error` in response with status code 4XX - - -#### trackShipmentPlatform - -- ##### What's New - - [Added] property `type` of schema `Error` in response with status code 4XX - - [Added] property `value` of schema `Error` in response with status code 4XX - - [Added] property `type` of schema `Error` in response with status code 5XX - - [Added] property `value` of schema `Error` in response with status code 5XX - - -#### getfilters - -- ##### What's New - - [Added] property `type` of schema `Error` in response with status code 4XX - - [Added] property `value` of schema `Error` in response with status code 4XX - - -#### getBulkShipmentExcelFile - -- ##### What's New - - [Added] property `type` of schema `Error` in response with status code 4XX - - [Added] property `value` of schema `Error` in response with status code 4XX - - -#### getBulkActionTemplate - -- ##### What's New - - [Added] property `type` of schema `Error` in response with status code 4XX - - [Added] property `value` of schema `Error` in response with status code 4XX - - -#### downloadBulkActionTemplate - -- ##### What's New - - [Added] property `type` of schema `Error` in response with status code 4XX - - [Added] property `value` of schema `Error` in response with status code 4XX - - -#### getShipmentReasons - -- ##### What's New - - [Added] property `reasons[].remark_required` of schema `Reason` in response with status code 200 - - [Added] property `reasons[].meta` of schema `Reason` in response with status code 200 - - [Added] property `reasons[].is_active` of schema `Reason` in response with status code 200 - - [Added] property `reasons[].is_deleted` of schema `Reason` in response with status code 200 - - [Breaking] [Added] Required status to properties `reasons[].id`, `reasons[].display_name`, `reasons[].remark_required`, `reasons[].qc_type`, `reasons[].question_set`, `reasons[].meta`, `reasons[].is_active`, `reasons[].is_deleted` in response with status code 200 - - [Added] property `type` of schema `Error` in response with status code 4XX - - [Added] property `value` of schema `Error` in response with status code 4XX - - [Added] property `type` of schema `Error` in response with status code 5XX - - [Added] property `value` of schema `Error` in response with status code 5XX - - -#### getPlatformShipmentReasons - -- ##### What's New - - [Added] property `type` of schema `Error` in response with status code 4XX - - [Added] property `value` of schema `Error` in response with status code 4XX - - [Added] property `type` of schema `Error` in response with status code 5XX - - [Added] property `value` of schema `Error` in response with status code 5XX - - -#### getBagById - -- ##### What's New - - [Added] property `data.article.tags` of schema `Article` in response with status code 200 - - [Added] property `data.financial_breakup[].amount_to_be_collected` of schema `FinancialBreakup` in response with status code 200 - - [Added] property `data.order.prices.amount_to_be_collected` of schema `Prices` in response with status code 200 - - [Added] property `data.prices.amount_to_be_collected` of schema `Prices` in response with status code 200 - - [Added] property `data.shipment.price.amount_to_be_collected` of schema `Prices` in response with status code 200 - -- ##### What's Changed - - [Breaking] [Changed] Type from `integer` to `string` of property `data.brand.modified_on` of schema `Brand` in response with status code 200 - - [Breaking] [Changed] Type from `integer` to `string` of property `data.fulfilling_store.phone` of schema `Store` in response with status code 200 - - [Breaking] [Changed] Type from `integer` to `string` of property `data.ordering_store.phone` of schema `Store` in response with status code 200 - - [Breaking] [Changed] Type from `number` to `string` of property `data.shipment.gst.gstin_code` of schema `ShipmentGstDetails` in response with status code 200 - - [Breaking] [Changed] Type from `number` to `string` of property `data.shipment_gst.gstin_code` of schema `ShipmentGstDetails` in response with status code 200 - - -#### getBags - -- ##### What's New - - [Added] property `data.items[].article.tags` of schema `Article` in response with status code 200 - - [Added] property `data.items[].financial_breakup[].amount_to_be_collected` of schema `FinancialBreakup` in response with status code 200 - - [Added] property `data.items[].order.prices.amount_to_be_collected` of schema `Prices` in response with status code 200 - - [Added] property `data.items[].prices.amount_to_be_collected` of schema `Prices` in response with status code 200 - - [Added] property `data.items[].shipment.price.amount_to_be_collected` of schema `Prices` in response with status code 200 - -- ##### What's Changed - - [Breaking] [Changed] Type from `integer` to `string` of property `data.items[].brand.modified_on` of schema `Brand` in response with status code 200 - - [Breaking] [Changed] Type from `integer` to `string` of property `data.items[].fulfilling_store.phone` of schema `Store` in response with status code 200 - - [Breaking] [Changed] Type from `integer` to `string` of property `data.items[].ordering_store.phone` of schema `Store` in response with status code 200 - - [Breaking] [Changed] Type from `number` to `string` of property `data.items[].shipment.gst.gstin_code` of schema `ShipmentGstDetails` in response with status code 200 - - [Breaking] [Changed] Type from `number` to `string` of property `data.items[].shipment_gst.gstin_code` of schema `ShipmentGstDetails` in response with status code 200 - - -#### generatePOSReceiptByOrderId +#### deleteEmail - ##### What's New - - [Added] property `type` of schema `Error` in response with status code 4XX - - [Added] property `value` of schema `Error` in response with status code 4XX + - [Added] Response with status 400 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 4XX + - [Breaking] [Deleted] Response with status 5XX -#### postRefundStateConfiguration +#### setEmailAsPrimary - ##### What's New - - [Added] method `postRefundStateConfiguration` + - [Added] Response with status 400 +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 4XX + - [Breaking] [Deleted] Response with status 5XX -#### getRefundStateConfiguration +#### sendVerificationLinkToEmail - ##### What's New - - [Added] method `getRefundStateConfiguration` + - [Added] Response with status 400 +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 4XX + - [Breaking] [Deleted] Response with status 5XX -#### getRefundEnableStateList +#### userExists - ##### What's New - - [Added] method `getRefundEnableStateList` + - [Added] Response with status 400 +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 4XX + - [Breaking] [Deleted] Response with status 5XX -#### postRefundConfiguration +#### getUserAttributes - ##### What's New - - [Added] method `postRefundConfiguration` + - [Added] Response with status 400 +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 4XX + - [Breaking] [Deleted] Response with status 5XX -#### getRefundConfiguration +#### updateUserAttributes - ##### What's New - - [Added] method `getRefundConfiguration` - - + - [Added] Response with status 400 -#### getQuestions +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 4XX + - [Breaking] [Deleted] Response with status 5XX -- ##### What's New - - [Added] method `getQuestions` +## Platform Client -#### getRuleLaneConfig -- ##### What's New - - [Added] method `getRuleLaneConfig` +### Cart -#### createRule +#### platformCheckoutCart - ##### What's New - - [Added] method `createRule` - + - [Added] property `iin` of schema `PlatformCartCheckoutDetailRequest` in request body + - [Added] property `network` of schema `PlatformCartCheckoutDetailRequest` in request body + - [Added] property `type` of schema `PlatformCartCheckoutDetailRequest` in request body + - [Added] property `card_id` of schema `PlatformCartCheckoutDetailRequest` in request body -#### getRuleById +#### platformCheckoutCartV2 - ##### What's New - - [Added] method `getRuleById` + - [Added] property `iin` of schema `PlatformCartCheckoutDetailV2Request` in request body + - [Added] property `network` of schema `PlatformCartCheckoutDetailV2Request` in request body + - [Added] property `type` of schema `PlatformCartCheckoutDetailV2Request` in request body + - [Added] property `card_id` of schema `PlatformCartCheckoutDetailV2Request` in request body + + +### Catalog -#### updateRule +#### getApplicationFilterValues - ##### What's New - - [Added] method `updateRule` + - [Added] method `getApplicationFilterValues` -#### deleteRule +#### getApplicationFilterKeys - ##### What's New - - [Added] method `deleteRule` + - [Added] method `getApplicationFilterKeys` -#### updateRulePosition - -- ##### What's New - - [Added] method `updateRulePosition` +### Content -#### getRuleParameters +#### getNavigations - ##### What's New - - [Added] method `getRuleParameters` - + - [Added] property `items[].navigation[].schedule` of schema `NavigationReference` in response with status code 200 -#### getRuleList +#### createNavigation - ##### What's New - - [Added] method `getRuleList` - + - [Added] property `navigation[].schedule` of schema `NavigationReference` in request body + - [Added] property `navigation[].schedule` of schema `NavigationReference` in response with status code 200 -#### getuserviews +#### getDefaultNavigations - ##### What's New - - [Added] method `getuserviews` - + - [Added] property `items[].navigation[].schedule` of schema `NavigationReference` in response with status code 200 -#### postuserviews +#### getNavigationBySlug - ##### What's New - - [Added] method `postuserviews` - + - [Added] property `navigation[].schedule` of schema `NavigationReference` in response with status code 200 -#### updateuserviews +#### updateNavigation - ##### What's New - - [Added] method `updateuserviews` - + - [Added] property `navigation[].schedule` of schema `NavigationReference` in request body + - [Added] property `navigation[].schedule` of schema `NavigationReference` in response with status code 200 -#### deleteuserviews +#### deleteNavigation - ##### What's New - - [Added] method `deleteuserviews` - + - [Added] property `navigation[].schedule` of schema `NavigationReference` in response with status code 200 -#### globalfilters +#### getPageMeta - ##### What's New - - [Added] method `globalfilters` - + - [Added] property `system_pages[].navigation[].schedule` of schema `NavigationReference` in response with status code 200 -### Payment +### FileStorage -#### saveBrandPaymentGatewayConfig +#### proxy - ##### What's New - - [Added] property `aggregator` of schema `PaymentGatewayConfigRequest` in request body - - [Added] property `aggregators` of schema `PaymentGatewayToBeReviewed` in response with status code 200 + - [Breaking] [Added] properties `data`, `support` in response with status code 200 - ##### What's Deprecated - - [Breaking] [Deleted] property `aggregator_name` of schema `PaymentGatewayConfigRequest` in request body - - [Breaking] [Deleted] property `aggregator` of schema `PaymentGatewayToBeReviewed` in response with status code 200 + - [Deleted] Value format from `binary` from property `` of schema `` in response with status code 200 +- ##### What's Changed + - [Breaking] [Changed] Type from `string` to `object` of property `` of schema `` in response with status code 200 -#### updatePayout -- ##### What's Deprecated - - [Deleted] Required status from property `is_default` in response with status code 200 +#### getPdfTypes +- ##### What's New + - [Breaking] [Added] Required status to property `data[].store_os` in response with status code 200 + - [Added] property `data[].store_os` of schema `InvoiceTypesDataResponse` in response with status code 200 -#### activateAndDectivatePayout -- ##### What's Deprecated - - [Deleted] Required status from property `is_default` in response with status code 200 +### Serviceability + -#### deletePayout +#### getZones - ##### What's New - - [Added] property `delete` of schema `DeletePayoutResponse` in response with status code 200 - - [Added] property `unique_transfer_no` of schema `DeletePayoutResponse` in response with status code 200 + - [Breaking] [Deleted] `query` parameter `country` (type: `string`) + +- [Added] `query` parameter `countryIsoCode` (type: `string`) + - [Breaking] [Added] properties `page.has_next`, `page.item_total`, `page.size`, `page.current`, `page.type` in response with status code 200 + - [Breaking] [Added] Required status to properties `page.current`, `page.has_next`, `page.item_total`, `page.size`, `page.type` in response with status code 200 + - [Added] property `items[].channels[]` of schema `ListViewItems` in response with status code 200 - ##### What's Deprecated - - [Breaking] [Deleted] property `success` of schema `DeletePayoutResponse` in response with status code 200 + - [Breaking] [Deleted] property `page[]` of schema `ListViewResponse` in response with status code 200 + - [Breaking] [Deleted] property `items[].product` of schema `ListViewItems` in response with status code 200 + - [Deleted] properties `items[].channels.channel_id`, `items[].channels.channel_type` in response with status code 200 + - [Deleted] Required status from properties `items[].channels.channel_id`, `items[].channels.channel_type` in response with status code 200 + - [Deleted] Required status from property `items[].product` in response with status code 200 + - [Deleted] Required status from property `summary` in response with status code 200 + +- ##### What's Changed + - [Breaking] [Changed] Type from `array` to `object` of property `page` of schema `ListViewResponse` in response with status code 200 + - [Breaking] [Changed] Type from `object` to `array` of property `items[].channels` of schema `ListViewChannels` in response with status code 200 -#### getUserCODlimitRoutes +#### getOptimalLocations - ##### What's New - - [Added] property `message` of schema `GetUserCODLimitResponse` in response with status code 200 - - [Added] property `items` of schema `GetUserCODLimitResponse` in response with status code 200 + - [Added] property `channel_id` of schema `OptimlLocationsRequestSchema` in request body + - [Added] property `channel_type` of schema `OptimlLocationsRequestSchema` in request body + - [Added] property `to_serviceability` of schema `OptimlLocationsRequestSchema` in request body + - [Added] property `article` of schema `OptimlLocationsRequestSchema` in request body + - [Added] property `assigned_stores` of schema `OptimalLocationsResponse` in response with status code 200 + - [Added] Response with status 400 - ##### What's Deprecated - - [Breaking] [Deleted] property `user_cod_data` of schema `GetUserCODLimitResponse` in response with status code 200 - - [Deleted] Required status from properties `success`, `user_cod_data` in response with status code 200 - + - [Breaking] [Deleted] property `to_pincode` of schema `ReAssignStoreRequest` in request body + - [Breaking] [Deleted] property `identifier` of schema `ReAssignStoreRequest` in request body + - [Breaking] [Deleted] property `configuration` of schema `ReAssignStoreRequest` in request body + - [Breaking] [Deleted] property `ignored_locations` of schema `ReAssignStoreRequest` in request body + - [Breaking] [Deleted] property `articles` of schema `ReAssignStoreRequest` in request body + - [Deleted] Required status from property `to_pincode` in request body + - [Breaking] [Deleted] property `to_pincode` of schema `ReAssignStoreResponse` in response with status code 200 + - [Breaking] [Deleted] property `success` of schema `ReAssignStoreResponse` in response with status code 200 + - [Breaking] [Deleted] property `error` of schema `ReAssignStoreResponse` in response with status code 200 + - [Breaking] [Deleted] property `articles` of schema `ReAssignStoreResponse` in response with status code 200 + - [Deleted] Required status from property `success` in response with status code 200 + - [Deleted] Required status from property `to_pincode` in response with status code 200 -#### setUserCODlimitRoutes +- ##### What's Changed + - [Breaking] [Changed] Required status of property `configuration` in request body + - [Breaking] [Changed] Required status of property `identifier` in request body + - [Breaking] [Changed] Required status of property `ignored_locations` in request body + - [Breaking] [Changed] Required status of property `error` in response with status code 200 + - [Changed] Path From `/service/platform/logistics/v1.0/company/{company_id}/reassign` To `/service/platform/logistics/v1.0/company/{company_id}/optimal-locations` -- ##### What's New - - [Added] property `mobile_no` of schema `SetCODForUserRequest` in request body - - [Added] property `items` of schema `SetCODForUserRequest` in request body - - [Added] property `items` of schema `GetUserCODLimitResponse` in response with status code 200 -- ##### What's Deprecated - - [Breaking] [Deleted] property `mobileno` of schema `SetCODForUserRequest` in request body - - [Breaking] [Deleted] property `is_active` of schema `SetCODForUserRequest` in request body - - [Deleted] Required status from properties `message`, `success` in response with status code 200 +### Order -- ##### What's Changed - - [Breaking] [Changed] Required status of property `mobileno` in request body -#### getPaymentSession +#### updateShipmentLock - ##### What's New - - [Added] property `cart_details.seller_company_id` of schema `CartDetailsSerializer` in response with status code 200 + - [Added] property `resume_tasks_after_unlock` of schema `UpdateShipmentLockPayload` in request body -#### updatePaymentSession +#### sendSmsNinja - ##### What's New - - [Added] property `applied_payment_offers` of schema `PaymentSessionRequestSerializer` in request body + - [Added] property `result[].order_details.prices.amount_to_be_collected` of schema `Prices` in response with status code 200 -#### getMerchantPaymentOption +#### createOrder - ##### What's New - - [Added] `query` parameter `paymentOptionType` (type: `string`) - + - [Added] property `shipments[].price.amount_to_be_collected` of schema `Prices` in request body - ##### What's Changed - - [Breaking] [Changed] Type from `array` to `object` of property `items` of schema `PlatformPaymentModeResponse` in response with status code 200 + - [Breaking] [Changed] Type from `number` to `string` of property `shipments[].gst.gstin_code` of schema `ShipmentGstDetails` in request body -#### getMerchantAggregatorAppVersion +#### checkOrderStatus - ##### What's New - - [Added] property `items[]` of schema `AggregatorVersionResponse` in response with status code 200 + - [Added] property `result[].order_details.prices.amount_to_be_collected` of schema `Prices` in response with status code 200 -- ##### What's Deprecated - - [Deleted] properties `items.is_equal_to`, `items.is_less_than`, `items.is_greater_than` in response with status code 200 -- ##### What's Changed - - [Breaking] [Changed] Type from `object` to `array` of property `items` of schema `AggregatorVersionItemSchema` in response with status code 200 +#### getShipments +- ##### What's New + - [Added] property `items[].bags[].financial_breakup[].amount_to_be_collected` of schema `FinancialBreakup` in response with status code 200 + - [Added] property `items[].bags[].prices.amount_to_be_collected` of schema `Prices` in response with status code 200 + - [Added] property `items[].prices.amount_to_be_collected` of schema `Prices` in response with status code 200 + - [Added] property `items[].payment_info` of schema `ShipmentItem` in response with status code 200 -#### deleteBeneficiaryDetails -- ##### What's New - - [Added] method `deleteBeneficiaryDetails` +#### getShipmentById +- ##### What's New + - [Added] property `shipments[].order.affiliate_order_id` of schema `OrderDetailsData` in response with status code 200 + - [Added] property `shipments[].bags[].financial_breakup.amount_to_be_collected` of schema `FinancialBreakup` in response with status code 200 + - [Added] property `shipments[].bags[].prices.amount_to_be_collected` of schema `Prices` in response with status code 200 + - [Added] property `shipments[].bags[].payment_info` of schema `OrderBags` in response with status code 200 + - [Added] property `shipments[].prices.amount_to_be_collected` of schema `Prices` in response with status code 200 + - [Added] property `shipments[].payment_info` of schema `PlatformShipment` in response with status code 200 -#### getRefundOptions +#### getOrderById - ##### What's New - - [Added] method `getRefundOptions` - + - [Added] property `order.prices.amount_to_be_collected` of schema `Prices` in response with status code 200 + - [Added] property `order.payment_info` of schema `OrderData` in response with status code 200 + - [Added] property `shipments[].order.affiliate_order_id` of schema `OrderDetailsData` in response with status code 200 + - [Added] property `shipments[].bags[].financial_breakup.amount_to_be_collected` of schema `FinancialBreakup` in response with status code 200 + - [Added] property `shipments[].bags[].prices.amount_to_be_collected` of schema `Prices` in response with status code 200 + - [Added] property `shipments[].bags[].payment_info` of schema `OrderBags` in response with status code 200 + - [Added] property `shipments[].prices.amount_to_be_collected` of schema `Prices` in response with status code 200 + - [Added] property `shipments[].payment_info` of schema `PlatformShipment` in response with status code 200 -#### setRefundOptionforShipment +#### getOrders - ##### What's New - - [Added] method `setRefundOptionforShipment` - + - [Added] property `items[].shipments[].order.affiliate_order_id` of schema `OrderDetailsData` in response with status code 200 + - [Added] property `items[].shipments[].bags[].financial_breakup.amount_to_be_collected` of schema `FinancialBreakup` in response with status code 200 + - [Added] property `items[].shipments[].bags[].prices.amount_to_be_collected` of schema `Prices` in response with status code 200 + - [Added] property `items[].shipments[].bags[].payment_info` of schema `OrderBags` in response with status code 200 + - [Added] property `items[].shipments[].prices.amount_to_be_collected` of schema `Prices` in response with status code 200 + - [Added] property `items[].shipments[].payment_info` of schema `PlatformShipment` in response with status code 200 -#### getSelectedRefundOption +#### getApplicationShipments - ##### What's New - - [Added] method `getSelectedRefundOption` - + - [Added] property `items[].bags[].financial_breakup[].amount_to_be_collected` of schema `FinancialBreakup` in response with status code 200 + - [Added] property `items[].bags[].prices.amount_to_be_collected` of schema `Prices` in response with status code 200 + - [Added] property `items[].prices.amount_to_be_collected` of schema `Prices` in response with status code 200 + - [Added] property `items[].payment_info` of schema `ShipmentItem` in response with status code 200 -#### getUserBeneficiariesDetailV2 +#### getBagById - ##### What's New - - [Added] method `getUserBeneficiariesDetailV2` + - [Added] property `data.financial_breakup[].amount_to_be_collected` of schema `FinancialBreakup` in response with status code 200 + - [Added] property `data.order.prices.amount_to_be_collected` of schema `Prices` in response with status code 200 + - [Added] property `data.prices.amount_to_be_collected` of schema `Prices` in response with status code 200 + - [Added] property `data.shipment.price.amount_to_be_collected` of schema `Prices` in response with status code 200 +- ##### What's Changed + - [Breaking] [Changed] Type from `integer` to `string` of property `data.brand.modified_on` of schema `Brand` in response with status code 200 + - [Breaking] [Changed] Type from `integer` to `string` of property `data.fulfilling_store.phone` of schema `Store` in response with status code 200 + - [Breaking] [Changed] Type from `integer` to `string` of property `data.ordering_store.phone` of schema `Store` in response with status code 200 + - [Breaking] [Changed] Type from `number` to `string` of property `data.shipment.gst.gstin_code` of schema `ShipmentGstDetails` in response with status code 200 + - [Breaking] [Changed] Type from `number` to `string` of property `data.shipment_gst.gstin_code` of schema `ShipmentGstDetails` in response with status code 200 -#### validateBeneficiaryAddress +#### getBags - ##### What's New - - [Added] method `validateBeneficiaryAddress` - + - [Added] property `data.items[].financial_breakup[].amount_to_be_collected` of schema `FinancialBreakup` in response with status code 200 + - [Added] property `data.items[].order.prices.amount_to_be_collected` of schema `Prices` in response with status code 200 + - [Added] property `data.items[].prices.amount_to_be_collected` of schema `Prices` in response with status code 200 + - [Added] property `data.items[].shipment.price.amount_to_be_collected` of schema `Prices` in response with status code 200 +- ##### What's Changed + - [Breaking] [Changed] Type from `integer` to `string` of property `data.items[].brand.modified_on` of schema `Brand` in response with status code 200 + - [Breaking] [Changed] Type from `integer` to `string` of property `data.items[].fulfilling_store.phone` of schema `Store` in response with status code 200 + - [Breaking] [Changed] Type from `integer` to `string` of property `data.items[].ordering_store.phone` of schema `Store` in response with status code 200 + - [Breaking] [Changed] Type from `number` to `string` of property `data.items[].shipment.gst.gstin_code` of schema `ShipmentGstDetails` in response with status code 200 + - [Breaking] [Changed] Type from `number` to `string` of property `data.items[].shipment_gst.gstin_code` of schema `ShipmentGstDetails` in response with status code 200 -#### updateDefaultBeneficiary -- ##### What's New - - [Added] method `updateDefaultBeneficiary` +### Payment -#### getPennyDropValidation +#### getPosPaymentModeRoutes - ##### What's New - - [Added] method `getPennyDropValidation` - + - [Added] property `payment_options.payment_default_selection` of schema `PaymentOptionAndFlow` in response with status code 200 -#### updatePennyDropValidation +#### updatePaymentSession - ##### What's New - - [Added] method `updatePennyDropValidation` + - [Added] property `checksum` of schema `PaymentSessionRequestSerializer` in request body + - [Breaking] [Added] Required status to property `checksum` in request body + +#### updateRefundSession + +- ##### What's New + - [Added] property `checksum` of schema `RefundSessionRequestSerializer` in request body + - [Breaking] [Added] Required status to property `total_amount` in request body + - [Breaking] [Added] Required status to property `checksum` in request body ### Share @@ -5294,8 +864,9 @@ #### getShortLinks - ##### What's New - - [Breaking] [Deleted] `query` parameter `q` (type: `string`), - [Added] `query` parameter `shortUrl` (type: `string`) + - [Breaking] [Deleted] `query` parameter `q` (type: `string`) + +- [Added] `query` parameter `shortUrl` (type: `string`) - [Added] `query` parameter `originalUrl` (type: `string`) - [Added] `query` parameter `title` (type: `string`) @@ -5309,7 +880,6 @@ #### getCustomers - ##### What's New - - [Breaking] [Added] Possible nullable value `true` to property `items[].gender` of schema `UserSchema` in response with status code 200 - [Added] Response with status 400 - ##### What's Deprecated @@ -5320,7 +890,6 @@ #### searchUsers - ##### What's New - - [Breaking] [Added] Possible nullable value `true` to property `users[].gender` of schema `UserSearchSchema` in response with status code 200 - [Added] property `users[].archive` of schema `UserSearchSchema` in response with status code 200 - [Added] property `users[].status` of schema `UserSearchSchema` in response with status code 200 @@ -5332,7 +901,6 @@ #### createUser - ##### What's New - - [Breaking] [Added] Possible nullable value `true` to property `user.gender` of schema `UserSchema` in response with status code 200 - [Added] Response with status 400 - ##### What's Deprecated @@ -5373,7 +941,6 @@ #### updateUser - ##### What's New - - [Breaking] [Added] Possible nullable value `true` to property `user.gender` of schema `UserSchema` in response with status code 200 - [Added] Response with status 400 - ##### What's Deprecated @@ -5428,8 +995,6 @@ - [Added] property `social_tokens.facebook.app_secret` of schema `Facebook` in response with status code 200 - [Added] property `social_tokens.google.app_secret` of schema `Google` in response with status code 200 - [Added] property `social_tokens.accountkit` of schema `SocialTokens` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `mobile_image` of schema `PlatformSchema` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `desktop_image` of schema `PlatformSchema` in response with status code 200 - [Breaking] [Added] properties `delete_account_consent.consent_text` in response with status code 200 - [Breaking] [Added] properties `session_config.duration`, `session_config.type`, `session_config.is_rolling` in response with status code 200 - [Added] property `__v` of schema `PlatformSchema` in response with status code 200 @@ -5448,16 +1013,12 @@ - [Added] property `social_tokens.facebook.app_secret` of schema `Facebook` in request body - [Added] property `social_tokens.google.app_secret` of schema `Google` in request body - [Added] property `social_tokens.accountkit` of schema `SocialTokens` in request body - - [Breaking] [Added] Possible nullable value `true` to property `mobile_image` of schema `PlatformSchema` in request body - - [Breaking] [Added] Possible nullable value `true` to property `desktop_image` of schema `PlatformSchema` in request body - [Breaking] [Added] properties `delete_account_consent.consent_text` in request body - [Breaking] [Added] properties `session_config.duration`, `session_config.type`, `session_config.is_rolling` in request body - [Added] property `__v` of schema `PlatformSchema` in request body - [Added] property `social_tokens.facebook.app_secret` of schema `Facebook` in response with status code 200 - [Added] property `social_tokens.google.app_secret` of schema `Google` in response with status code 200 - [Added] property `social_tokens.accountkit` of schema `SocialTokens` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `mobile_image` of schema `PlatformSchema` in response with status code 200 - - [Breaking] [Added] Possible nullable value `true` to property `desktop_image` of schema `PlatformSchema` in response with status code 200 - [Breaking] [Added] properties `delete_account_consent.consent_text` in response with status code 200 - [Breaking] [Added] properties `session_config.duration`, `session_config.type`, `session_config.is_rolling` in response with status code 200 - [Added] property `__v` of schema `PlatformSchema` in response with status code 200 @@ -5607,62 +1168,6 @@ - [Breaking] [Deleted] Response with status 5XX -### Webhook - - - -#### registerSubscriberToEvent - -- ##### What's New - - [Added] property `provider` of schema `SubscriberConfigResponse` in response with status code 200 - - -#### getSubscribersByCompany - -- ##### What's New - - [Added] property `items[].provider` of schema `SubscriberResponse` in response with status code 200 - - -#### updateSubscriberConfig - -- ##### What's New - - [Added] property `provider` of schema `SubscriberConfigResponse` in response with status code 200 - - -#### getSubscriberById - -- ##### What's New - - [Added] property `provider` of schema `SubscriberResponse` in response with status code 200 - - -#### getSubscribersByExtensionId - -- ##### What's New - - [Added] property `items[].provider` of schema `SubscriberResponse` in response with status code 200 - - -#### registerSubscriberToEventV2 - -- ##### What's New - - [Added] method `registerSubscriberToEventV2` - - - -## Public Client - - - -### Billing - - - -#### getPlanDetails - -- ##### What's New - - [Added] method `getPlanDetails` - - - # CHANGE LOG (1.4.1) - fp-v1.9.0 ## Application Client diff --git a/README.md b/README.md index 8af951399..9a75255df 100644 --- a/README.md +++ b/README.md @@ -214,7 +214,7 @@ console.log("Active Theme: ", response.information.name); The above code will log the curl command in the console ```bash -curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer ' --header 'x-fp-sdk-version: 1.4.2-beta.1' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8' +curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer ' --header 'x-fp-sdk-version: 1.4.2-beta.4' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8' Active Theme: Emerge ``` diff --git a/application.d.ts b/application.d.ts index d59d928ea..f9b8738d3 100644 --- a/application.d.ts +++ b/application.d.ts @@ -1,4 +1,4 @@ -import { ApplicationConfig } from "sdk/output/javascript/code/sdk/application"; -import { ApplicationClient } from "sdk/output/javascript/code/sdk/application"; -import { ApplicationModel } from "sdk/output/javascript/code/sdk/application"; +import { ApplicationConfig } from "./sdk/application"; +import { ApplicationClient } from "./sdk/application"; +import { ApplicationModel } from "./sdk/application"; export { ApplicationConfig, ApplicationClient, ApplicationModel }; diff --git a/common.d.ts b/common.d.ts index cb4f209b0..d6fb9c2d2 100644 --- a/common.d.ts +++ b/common.d.ts @@ -1,4 +1,4 @@ -import { fdkAxios } from "sdk/output/javascript/code/sdk/common/AxiosHelper"; -import Utility = require("sdk/output/javascript/code/sdk/common/Utility"); -import Constant = require("sdk/output/javascript/code/sdk/common/Constant"); +import { fdkAxios } from "./sdk/common/AxiosHelper"; +import Utility = require("./sdk/common/Utility"); +import Constant = require("./sdk/common/Constant"); export { fdkAxios as FdkAxios, Utility, Constant }; diff --git a/dist/application.js b/dist/application.js index 0783eb823..02e622e53 100644 --- a/dist/application.js +++ b/dist/application.js @@ -1 +1 @@ -(()=>{var e={2492:(e,t,r)=>{const{ApplicationConfig:a,ApplicationClient:n,ApplicationModel:o}=r(4848);e.exports={ApplicationConfig:a,ApplicationClient:n,ApplicationModel:o}},5044:function(e){var t;"undefined"!=typeof self&&self,t=()=>(()=>{var e={249:function(e,t,r){var a;e.exports=(a=a||function(e,t){var a;if("undefined"!=typeof window&&window.crypto&&(a=window.crypto),"undefined"!=typeof self&&self.crypto&&(a=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(a=globalThis.crypto),!a&&"undefined"!=typeof window&&window.msCrypto&&(a=window.msCrypto),!a&&void 0!==r.g&&r.g.crypto&&(a=r.g.crypto),!a)try{a=r(480)}catch(e){}var n=function(){if(a){if("function"==typeof a.getRandomValues)try{return a.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof a.randomBytes)try{return a.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),s={},i=s.lib={},l=i.Base={extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=i.WordArray=l.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||d).stringify(this)},concat:function(e){var t=this.words,r=e.words,a=this.sigBytes,n=e.sigBytes;if(this.clamp(),a%4)for(var o=0;o>>2]>>>24-o%4*8&255;t[a+o>>>2]|=s<<24-(a+o)%4*8}else for(var i=0;i>>2]=r[i>>>2];return this.sigBytes+=n,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=l.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r>>2]>>>24-n%4*8&255;a.push((o>>>4).toString(16)),a.push((15&o).toString(16))}return a.join("")},parse:function(e){for(var t=e.length,r=[],a=0;a>>3]|=parseInt(e.substr(a,2),16)<<24-a%8*4;return new c.init(r,t/2)}},p=u.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,a=[],n=0;n>>2]>>>24-n%4*8&255;a.push(String.fromCharCode(o))}return a.join("")},parse:function(e){for(var t=e.length,r=[],a=0;a>>2]|=(255&e.charCodeAt(a))<<24-a%4*8;return new c.init(r,t)}},g=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(p.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return p.parse(unescape(encodeURIComponent(e)))}},m=i.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=g.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r,a=this._data,n=a.words,o=a.sigBytes,s=this.blockSize,i=o/(4*s),l=(i=t?e.ceil(i):e.max((0|i)-this._minBufferSize,0))*s,u=e.min(4*l,o);if(l){for(var d=0;da&&(t=e.finalize(t)),t.clamp();for(var n=this._oKey=t.clone(),s=this._iKey=t.clone(),i=n.words,l=s.words,c=0;c>>7)^(m<<14|m>>>18)^m>>>3,f=c[g-2],y=(f<<15|f>>>17)^(f<<13|f>>>19)^f>>>10;c[g]=w+c[g-7]+y+c[g-16]}var b=a&n^a&o^n&o,h=(a<<30|a>>>2)^(a<<19|a>>>13)^(a<<10|a>>>22),_=p+((i<<26|i>>>6)^(i<<21|i>>>11)^(i<<7|i>>>25))+(i&u^~i&d)+l[g]+c[g];p=d,d=u,u=i,i=s+_|0,s=o,o=n,n=a,a=_+(h+b)|0}r[0]=r[0]+a|0,r[1]=r[1]+n|0,r[2]=r[2]+o|0,r[3]=r[3]+s|0,r[4]=r[4]+i|0,r[5]=r[5]+u|0,r[6]=r[6]+d|0,r[7]=r[7]+p|0},_doFinalize:function(){var t=this._data,r=t.words,a=8*this._nDataBytes,n=8*t.sigBytes;return r[n>>>5]|=128<<24-n%32,r[14+(n+64>>>9<<4)]=e.floor(a/4294967296),r[15+(n+64>>>9<<4)]=a,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(u),t.HmacSHA256=o._createHmacHelper(u)}(Math),a.SHA256)},335:e=>{"use strict";function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,a,n,o){a=a||"&",n=n||"=";var s={};if("string"!=typeof e||0===e.length)return s;var i=/\+/g;e=e.split(a);var l=1e3;o&&"number"==typeof o.maxKeys&&(l=o.maxKeys);var c=e.length;l>0&&c>l&&(c=l);for(var u=0;u=0?(d=w.substr(0,f),p=w.substr(f+1)):(d=w,p=""),g=decodeURIComponent(d),m=decodeURIComponent(p),t(s,g)?r(s[g])?s[g].push(m):s[g]=[s[g],m]:s[g]=m}return s};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},795:e=>{"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,o,s,i){return o=o||"&",s=s||"=",null===e&&(e=void 0),"object"==typeof e?a(n(e),(function(n){var i=encodeURIComponent(t(n))+s;return r(e[n])?a(e[n],(function(e){return i+encodeURIComponent(t(e))})).join(o):i+encodeURIComponent(t(e[n]))})).join(o):i?encodeURIComponent(t(i))+s+encodeURIComponent(t(e)):""};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function a(e,t){if(e.map)return e.map(t);for(var r=[],a=0;a{"use strict";t.decode=t.parse=r(335),t.encode=t.stringify=r(795)},832:function(e,t,r){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var n=a(r(735)),o=r(601),s=r(593),i=function(){function e(e,t){if(!t)throw new Error("Signature secrete cannot be null, pass secret parameter in constructor.");this.secret=t,this.request=e;var r=this.request.headers=this.request.headers||{};!this.request.method&&this.request.body&&(this.request.method="POST"),r.Host||r.host||(r.Host=this.request.host,this.request.port&&(r.Host+=":"+this.request.port)),this.request.host||(this.request.host=r.Host||r.host)}return e.prototype.prepareRequest=function(){this.parsePath();var e,t=this.request,r=t.headers;t.signQuery?(this.parsedPath.query=e=this.parsedPath.query||{},e["x-fp-date"]?this.datetime=e["x-fp-date"]:e["x-fp-date"]=this.getDateTime()):(t.doNotModifyHeaders||(r["x-fp-date"]?this.datetime=r["x-fp-date"]||r["x-fp-date"]:r["x-fp-date"]=this.getDateTime()),delete r["x-fp-signature"],delete r["X-Fp-Signature"])},e.prototype.sign=function(){return this.request.signQuery=!1,this.parsedPath||this.prepareRequest(),this.request.headers["x-fp-signature"]=this.signature(),{"x-fp-signature":this.request.headers["x-fp-signature"],"x-fp-date":this.request.headers["x-fp-date"]}},e.prototype.signQuery=function(){return this.request.signQuery=!0,this.parsedPath||this.prepareRequest(),this.parsedPath.query["x-fp-signature"]=this.signature(),this.request.path=this.formatPath(),{"x-fp-signature":this.parsedPath.query["x-fp-signature"],"x-fp-date":this.parsedPath.query["x-fp-date"]}},e.prototype.getDateTime=function(){if(!this.datetime){var e=this.request.headers,t=new Date(e.Date||e.date||new Date);this.datetime=t.toISOString().replace(/[:\-]|\.\d{3}/g,"")}return this.datetime},e.prototype.signature=function(){var e=this.stringToSign();return"v1.1:".concat((0,s.hmac)(this.secret,e,"hex"))},e.prototype.stringToSign=function(){return[this.getDateTime(),(0,s.hash)(this.canonicalString(),"hex")].join("\n")},e.prototype.canonicalString=function(){this.parsedPath||this.prepareRequest();var e=this.parsedPath.path,t=this.parsedPath.query,r=(this.request.headers,""),a=this.request.doNotEncodePath,n=(0,s.hash)(this.request.body||"","hex");if(t){var o=Object.keys(t).reduce((function(e,r){return r?(e[(0,s.encodeRfc3986Full)(r)]=(Array.isArray(t[r]),t[r]),e):e}),{}),i=[];Object.keys(o).sort().forEach((function(e){Array.isArray(o[e])?o[e].map(s.encodeRfc3986Full).sort().forEach((function(t){i.push(e+"="+t)})):i.push(e+"="+(0,s.encodeRfc3986Full)(o[e]))})),r=i.join("&")}return"/"!==e&&"/"!==(e=(e=e.replace(/\/{2,}/g,"/")).split("/").reduce((function(e,t){return".."===t?e.pop():"."!==t&&(a&&(t=decodeURIComponent(t.replace(/\+/g," "))),e.push((0,s.encodeRfc3986Full)(t))),e}),[]).join("/"))[0]&&(e="/"+e),[this.request.method||"GET",e,r,this.canonicalHeaders()+"\n",this.signedHeaders(),n].join("\n")},e.prototype.canonicalHeaders=function(){var e=this.request.headers;return Object.keys(e).filter((function(e){if(null==o.HEADERS_TO_IGNORE[e.toLowerCase()]){var t=!1;for(var r in o.HEADERS_TO_INCLUDE)t=t||new RegExp(o.HEADERS_TO_INCLUDE[r],"ig").test(e);return t}return!1})).sort((function(e,t){return e.toLowerCase()=0&&(delete(r=n.default.parse(e.slice(t+1)))["x-fp-signature"],delete r["X-Fp-Signature"],e=e.slice(0,t)),e=e.split("/").map((function(e){return encodeURIComponent(decodeURIComponent(e))})).join("/"),this.parsedPath={path:e,query:r}},e.prototype.formatPath=function(){var e=this.parsedPath.path,t=this.parsedPath.query;return t?(null!=t[""]&&delete t[""],e+"?"+(0,s.encodeRfc3986)(n.default.stringify(t))):e},e}();t.default=i},601:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HEADERS_TO_INCLUDE=t.HEADERS_TO_IGNORE=void 0,t.HEADERS_TO_IGNORE={authorization:!0,connection:!0,"x-amzn-trace-id":!0,"user-agent":!0,expect:!0,"presigned-expires":!0,range:!0},t.HEADERS_TO_INCLUDE=["x-fp-.*","host"]},607:function(e,t,r){"use strict";var a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,r=1,a=arguments.length;r{}},t={};function r(a){var n=t[a];if(void 0!==n)return n.exports;var o=t[a]={exports:{}};return e[a].call(o.exports,o,o.exports,r),o.exports}return r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r(607)})(),e.exports=t()},9899:(e,t,r)=>{e.exports=r(2860)},1816:(e,t,r)=>{"use strict";var a=r(2652),n=r(1776),o=r(2484),s=r(3640),i=r(6784),l=r(320),c=r(8104),u=r(288),d=r(3568),p=r(3992),g=r(4392);e.exports=function(e){return new Promise((function(t,r){var m,w=e.data,f=e.headers,y=e.responseType;function b(){e.cancelToken&&e.cancelToken.unsubscribe(m),e.signal&&e.signal.removeEventListener("abort",m)}a.isFormData(w)&&a.isStandardBrowserEnv()&&delete f["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var _=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";f.Authorization="Basic "+btoa(_+":"+v)}var R=i(e.baseURL,e.url);function k(){if(h){var a="getAllResponseHeaders"in h?l(h.getAllResponseHeaders()):null,o={data:y&&"text"!==y&&"json"!==y?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:a,config:e,request:h};n((function(e){t(e),b()}),(function(e){r(e),b()}),o),h=null}}if(h.open(e.method.toUpperCase(),s(R,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,"onloadend"in h?h.onloadend=k:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(k)},h.onabort=function(){h&&(r(new d("Request aborted",d.ECONNABORTED,e,h)),h=null)},h.onerror=function(){r(new d("Network Error",d.ERR_NETWORK,e,h,h)),h=null},h.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",a=e.transitional||u;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new d(t,a.clarifyTimeoutError?d.ETIMEDOUT:d.ECONNABORTED,e,h)),h=null},a.isStandardBrowserEnv()){var P=(e.withCredentials||c(R))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;P&&(f[e.xsrfHeaderName]=P)}"setRequestHeader"in h&&a.forEach(f,(function(e,t){void 0===w&&"content-type"===t.toLowerCase()?delete f[t]:h.setRequestHeader(t,e)})),a.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),y&&"json"!==y&&(h.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(m=function(e){h&&(r(!e||e&&e.type?new p:e),h.abort(),h=null)},e.cancelToken&&e.cancelToken.subscribe(m),e.signal&&(e.signal.aborted?m():e.signal.addEventListener("abort",m))),w||(w=null);var j=g(R);j&&-1===["http","https","file"].indexOf(j)?r(new d("Unsupported protocol "+j+":",d.ERR_BAD_REQUEST,e)):h.send(w)}))}},2860:(e,t,r)=>{"use strict";var a=r(2652),n=r(9504),o=r(2508),s=r(6183),i=function e(t){var r=new o(t),i=n(o.prototype.request,r);return a.extend(i,o.prototype,r),a.extend(i,r),i.create=function(r){return e(s(t,r))},i}(r(5260));i.Axios=o,i.CanceledError=r(3992),i.CancelToken=r(6312),i.isCancel=r(9864),i.VERSION=r(8340).version,i.toFormData=r(2740),i.AxiosError=r(3568),i.Cancel=i.CanceledError,i.all=function(e){return Promise.all(e)},i.spread=r(6711),i.isAxiosError=r(6288),e.exports=i,e.exports.default=i},6312:(e,t,r)=>{"use strict";var a=r(3992);function n(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;this.promise.then((function(e){if(r._listeners){var t,a=r._listeners.length;for(t=0;t{"use strict";var a=r(3568);function n(e){a.call(this,null==e?"canceled":e,a.ERR_CANCELED),this.name="CanceledError"}r(2652).inherits(n,a,{__CANCEL__:!0}),e.exports=n},9864:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},2508:(e,t,r)=>{"use strict";var a=r(2652),n=r(3640),o=r(2747),s=r(9088),i=r(6183),l=r(6784),c=r(5984),u=c.validators;function d(e){this.defaults=e,this.interceptors={request:new o,response:new o}}d.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=i(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;void 0!==r&&c.assertOptions(r,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var a=[],n=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(n=n&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));var o,l=[];if(this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)})),!n){var d=[s,void 0];for(Array.prototype.unshift.apply(d,a),d=d.concat(l),o=Promise.resolve(t);d.length;)o=o.then(d.shift(),d.shift());return o}for(var p=t;a.length;){var g=a.shift(),m=a.shift();try{p=g(p)}catch(e){m(e);break}}try{o=s(p)}catch(e){return Promise.reject(e)}for(;l.length;)o=o.then(l.shift(),l.shift());return o},d.prototype.getUri=function(e){e=i(this.defaults,e);var t=l(e.baseURL,e.url);return n(t,e.params,e.paramsSerializer)},a.forEach(["delete","get","head","options"],(function(e){d.prototype[e]=function(t,r){return this.request(i(r||{},{method:e,url:t,data:(r||{}).data}))}})),a.forEach(["post","put","patch"],(function(e){function t(t){return function(r,a,n){return this.request(i(n||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:a}))}}d.prototype[e]=t(),d.prototype[e+"Form"]=t(!0)})),e.exports=d},3568:(e,t,r)=>{"use strict";var a=r(2652);function n(e,t,r,a,n){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),a&&(this.request=a),n&&(this.response=n)}a.inherits(n,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var o=n.prototype,s={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){s[e]={value:e}})),Object.defineProperties(n,s),Object.defineProperty(o,"isAxiosError",{value:!0}),n.from=function(e,t,r,s,i,l){var c=Object.create(o);return a.toFlatObject(e,c,(function(e){return e!==Error.prototype})),n.call(c,e.message,t,r,s,i),c.name=e.name,l&&Object.assign(c,l),c},e.exports=n},2747:(e,t,r)=>{"use strict";var a=r(2652);function n(){this.handlers=[]}n.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},n.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},n.prototype.forEach=function(e){a.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=n},6784:(e,t,r)=>{"use strict";var a=r(7992),n=r(344);e.exports=function(e,t){return e&&!a(t)?n(e,t):t}},9088:(e,t,r)=>{"use strict";var a=r(2652),n=r(712),o=r(9864),s=r(5260),i=r(3992);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new i}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=n.call(e,e.data,e.headers,e.transformRequest),e.headers=a.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),a.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||s.adapter)(e).then((function(t){return l(e),t.data=n.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(l(e),t&&t.response&&(t.response.data=n.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},6183:(e,t,r)=>{"use strict";var a=r(2652);e.exports=function(e,t){t=t||{};var r={};function n(e,t){return a.isPlainObject(e)&&a.isPlainObject(t)?a.merge(e,t):a.isPlainObject(t)?a.merge({},t):a.isArray(t)?t.slice():t}function o(r){return a.isUndefined(t[r])?a.isUndefined(e[r])?void 0:n(void 0,e[r]):n(e[r],t[r])}function s(e){if(!a.isUndefined(t[e]))return n(void 0,t[e])}function i(r){return a.isUndefined(t[r])?a.isUndefined(e[r])?void 0:n(void 0,e[r]):n(void 0,t[r])}function l(r){return r in t?n(e[r],t[r]):r in e?n(void 0,e[r]):void 0}var c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l};return a.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||o,n=t(e);a.isUndefined(n)&&t!==l||(r[e]=n)})),r}},1776:(e,t,r)=>{"use strict";var a=r(3568);e.exports=function(e,t,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new a("Request failed with status code "+r.status,[a.ERR_BAD_REQUEST,a.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}},712:(e,t,r)=>{"use strict";var a=r(2652),n=r(5260);e.exports=function(e,t,r){var o=this||n;return a.forEach(r,(function(r){e=r.call(o,e,t)})),e}},5260:(e,t,r)=>{"use strict";var a=r(2652),n=r(7700),o=r(3568),s=r(288),i=r(2740),l={"Content-Type":"application/x-www-form-urlencoded"};function c(e,t){!a.isUndefined(e)&&a.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var u,d={transitional:s,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(u=r(1816)),u),transformRequest:[function(e,t){if(n(t,"Accept"),n(t,"Content-Type"),a.isFormData(e)||a.isArrayBuffer(e)||a.isBuffer(e)||a.isStream(e)||a.isFile(e)||a.isBlob(e))return e;if(a.isArrayBufferView(e))return e.buffer;if(a.isURLSearchParams(e))return c(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var r,o=a.isObject(e),s=t&&t["Content-Type"];if((r=a.isFileList(e))||o&&"multipart/form-data"===s){var l=this.env&&this.env.FormData;return i(r?{"files[]":e}:e,l&&new l)}return o||"application/json"===s?(c(t,"application/json"),function(e,t,r){if(a.isString(e))try{return(0,JSON.parse)(e),a.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||d.transitional,r=t&&t.silentJSONParsing,n=t&&t.forcedJSONParsing,s=!r&&"json"===this.responseType;if(s||n&&a.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(s){if("SyntaxError"===e.name)throw o.from(e,o.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:r(9092)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};a.forEach(["delete","get","head"],(function(e){d.headers[e]={}})),a.forEach(["post","put","patch"],(function(e){d.headers[e]=a.merge(l)})),e.exports=d},288:e=>{"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},8340:e=>{e.exports={version:"0.27.2"}},9504:e=>{"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),a=0;a{"use strict";var a=r(2652);function n(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;var o;if(r)o=r(t);else if(a.isURLSearchParams(t))o=t.toString();else{var s=[];a.forEach(t,(function(e,t){null!=e&&(a.isArray(e)?t+="[]":e=[e],a.forEach(e,(function(e){a.isDate(e)?e=e.toISOString():a.isObject(e)&&(e=JSON.stringify(e)),s.push(n(t)+"="+n(e))})))})),o=s.join("&")}if(o){var i=e.indexOf("#");-1!==i&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},344:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},2484:(e,t,r)=>{"use strict";var a=r(2652);e.exports=a.isStandardBrowserEnv()?{write:function(e,t,r,n,o,s){var i=[];i.push(e+"="+encodeURIComponent(t)),a.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),a.isString(n)&&i.push("path="+n),a.isString(o)&&i.push("domain="+o),!0===s&&i.push("secure"),document.cookie=i.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},7992:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},6288:(e,t,r)=>{"use strict";var a=r(2652);e.exports=function(e){return a.isObject(e)&&!0===e.isAxiosError}},8104:(e,t,r)=>{"use strict";var a=r(2652);e.exports=a.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(e){var a=e;return t&&(r.setAttribute("href",a),a=r.href),r.setAttribute("href",a),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=n(window.location.href),function(t){var r=a.isString(t)?n(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},7700:(e,t,r)=>{"use strict";var a=r(2652);e.exports=function(e,t){a.forEach(e,(function(r,a){a!==t&&a.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[a])}))}},9092:e=>{e.exports=null},320:(e,t,r)=>{"use strict";var a=r(2652),n=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,o,s={};return e?(a.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=a.trim(e.substr(0,o)).toLowerCase(),r=a.trim(e.substr(o+1)),t){if(s[t]&&n.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([r]):s[t]?s[t]+", "+r:r}})),s):s}},4392:e=>{"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},6711:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},2740:(e,t,r)=>{"use strict";var a=r(2652);e.exports=function(e,t){t=t||new FormData;var r=[];function n(e){return null===e?"":a.isDate(e)?e.toISOString():a.isArrayBuffer(e)||a.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}return function e(o,s){if(a.isPlainObject(o)||a.isArray(o)){if(-1!==r.indexOf(o))throw Error("Circular reference detected in "+s);r.push(o),a.forEach(o,(function(r,o){if(!a.isUndefined(r)){var i,l=s?s+"."+o:o;if(r&&!s&&"object"==typeof r)if(a.endsWith(o,"{}"))r=JSON.stringify(r);else if(a.endsWith(o,"[]")&&(i=a.toArray(r)))return void i.forEach((function(e){!a.isUndefined(e)&&t.append(l,n(e))}));e(r,l)}})),r.pop()}else t.append(s,n(o))}(e),t}},5984:(e,t,r)=>{"use strict";var a=r(8340).version,n=r(3568),o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var s={};o.transitional=function(e,t,r){function o(e,t){return"[Axios v"+a+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,a,i){if(!1===e)throw new n(o(a," has been removed"+(t?" in "+t:"")),n.ERR_DEPRECATED);return t&&!s[a]&&(s[a]=!0,console.warn(o(a," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,a,i)}},e.exports={assertOptions:function(e,t,r){if("object"!=typeof e)throw new n("options must be an object",n.ERR_BAD_OPTION_VALUE);for(var a=Object.keys(e),o=a.length;o-- >0;){var s=a[o],i=t[s];if(i){var l=e[s],c=void 0===l||i(l,s,e);if(!0!==c)throw new n("option "+s+" must be "+c,n.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new n("Unknown option "+s,n.ERR_BAD_OPTION)}},validators:o}},2652:(e,t,r)=>{"use strict";var a,n=r(9504),o=Object.prototype.toString,s=(a=Object.create(null),function(e){var t=o.call(e);return a[t]||(a[t]=t.slice(8,-1).toLowerCase())});function i(e){return e=e.toLowerCase(),function(t){return s(t)===e}}function l(e){return Array.isArray(e)}function c(e){return void 0===e}var u=i("ArrayBuffer");function d(e){return null!==e&&"object"==typeof e}function p(e){if("object"!==s(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var g=i("Date"),m=i("File"),w=i("Blob"),f=i("FileList");function y(e){return"[object Function]"===o.call(e)}var b=i("URLSearchParams");function h(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),l(e))for(var r=0,a=e.length;r0;)s[o=a[n]]||(t[o]=e[o],s[o]=!0);e=Object.getPrototypeOf(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:i,endsWith:function(e,t,r){e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;var a=e.indexOf(t,r);return-1!==a&&a===r},toArray:function(e){if(!e)return null;var t=e.length;if(c(t))return null;for(var r=new Array(t);t-- >0;)r[t]=e[t];return r},isTypedArray:v,isFileList:f}},2012:e=>{"use strict";const t=/[\p{Lu}]/u,r=/[\p{Ll}]/u,a=/^[\p{Lu}](?![\p{Lu}])/gu,n=/([\p{Alpha}\p{N}_]|$)/u,o=/[_.\- ]+/,s=new RegExp("^"+o.source),i=new RegExp(o.source+n.source,"gu"),l=new RegExp("\\d+"+n.source,"gu"),c=(e,n)=>{if("string"!=typeof e&&!Array.isArray(e))throw new TypeError("Expected the input to be `string | string[]`");if(n={pascalCase:!1,preserveConsecutiveUppercase:!1,...n},0===(e=Array.isArray(e)?e.map((e=>e.trim())).filter((e=>e.length)).join("-"):e.trim()).length)return"";const o=!1===n.locale?e=>e.toLowerCase():e=>e.toLocaleLowerCase(n.locale),c=!1===n.locale?e=>e.toUpperCase():e=>e.toLocaleUpperCase(n.locale);return 1===e.length?n.pascalCase?c(e):o(e):(e!==o(e)&&(e=((e,a,n)=>{let o=!1,s=!1,i=!1;for(let l=0;l(a.lastIndex=0,e.replace(a,(e=>t(e)))))(e,o):o(e),n.pascalCase&&(e=c(e.charAt(0))+e.slice(1)),((e,t)=>(i.lastIndex=0,l.lastIndex=0,e.replace(i,((e,r)=>t(r))).replace(l,(e=>t(e)))))(e,c))};e.exports=c,e.exports.default=c},7140:e=>{"use strict";var t="%[a-f0-9]{2}",r=new RegExp("("+t+")|([^%]+?)","gi"),a=new RegExp("("+t+")+","gi");function n(e,t){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(1===e.length)return e;t=t||1;var r=e.slice(0,t),a=e.slice(t);return Array.prototype.concat.call([],n(r),n(a))}function o(e){try{return decodeURIComponent(e)}catch(o){for(var t=e.match(r)||[],a=1;a{"use strict";e.exports=function(e,t){for(var r={},a=Object.keys(e),n=Array.isArray(t),o=0;o{var t;self,t=()=>{return e={7629:(e,t,r)=>{"use strict";const a=r(375),n=r(8571),o=r(9474),s=r(1687),i=r(8652),l=r(8160),c=r(3292),u=r(6354),d=r(8901),p=r(9708),g=r(6914),m=r(2294),w=r(6133),f=r(1152),y=r(8863),b=r(2036),h={Base:class{constructor(e){this.type=e,this.$_root=null,this._definition={},this._reset()}_reset(){this._ids=new m.Ids,this._preferences=null,this._refs=new w.Manager,this._cache=null,this._valids=null,this._invalids=null,this._flags={},this._rules=[],this._singleRules=new Map,this.$_terms={},this.$_temp={ruleset:null,whens:{}}}describe(){return a("function"==typeof p.describe,"Manifest functionality disabled"),p.describe(this)}allow(...e){return l.verifyFlat(e,"allow"),this._values(e,"_valids")}alter(e){a(e&&"object"==typeof e&&!Array.isArray(e),"Invalid targets argument"),a(!this._inRuleset(),"Cannot set alterations inside a ruleset");const t=this.clone();t.$_terms.alterations=t.$_terms.alterations||[];for(const r in e){const n=e[r];a("function"==typeof n,"Alteration adjuster for",r,"must be a function"),t.$_terms.alterations.push({target:r,adjuster:n})}return t.$_temp.ruleset=!1,t}artifact(e){return a(void 0!==e,"Artifact cannot be undefined"),a(!this._cache,"Cannot set an artifact with a rule cache"),this.$_setFlag("artifact",e)}cast(e){return a(!1===e||"string"==typeof e,"Invalid to value"),a(!1===e||this._definition.cast[e],"Type",this.type,"does not support casting to",e),this.$_setFlag("cast",!1===e?void 0:e)}default(e,t){return this._default("default",e,t)}description(e){return a(e&&"string"==typeof e,"Description must be a non-empty string"),this.$_setFlag("description",e)}empty(e){const t=this.clone();return void 0!==e&&(e=t.$_compile(e,{override:!1})),t.$_setFlag("empty",e,{clone:!1})}error(e){return a(e,"Missing error"),a(e instanceof Error||"function"==typeof e,"Must provide a valid Error object or a function"),this.$_setFlag("error",e)}example(e,t={}){return a(void 0!==e,"Missing example"),l.assertOptions(t,["override"]),this._inner("examples",e,{single:!0,override:t.override})}external(e,t){return"object"==typeof e&&(a(!t,"Cannot combine options with description"),t=e.description,e=e.method),a("function"==typeof e,"Method must be a function"),a(void 0===t||t&&"string"==typeof t,"Description must be a non-empty string"),this._inner("externals",{method:e,description:t},{single:!0})}failover(e,t){return this._default("failover",e,t)}forbidden(){return this.presence("forbidden")}id(e){return e?(a("string"==typeof e,"id must be a non-empty string"),a(/^[^\.]+$/.test(e),"id cannot contain period character"),this.$_setFlag("id",e)):this.$_setFlag("id",void 0)}invalid(...e){return this._values(e,"_invalids")}label(e){return a(e&&"string"==typeof e,"Label name must be a non-empty string"),this.$_setFlag("label",e)}meta(e){return a(void 0!==e,"Meta cannot be undefined"),this._inner("metas",e,{single:!0})}note(...e){a(e.length,"Missing notes");for(const t of e)a(t&&"string"==typeof t,"Notes must be non-empty strings");return this._inner("notes",e)}only(e=!0){return a("boolean"==typeof e,"Invalid mode:",e),this.$_setFlag("only",e)}optional(){return this.presence("optional")}prefs(e){a(e,"Missing preferences"),a(void 0===e.context,"Cannot override context"),a(void 0===e.externals,"Cannot override externals"),a(void 0===e.warnings,"Cannot override warnings"),a(void 0===e.debug,"Cannot override debug"),l.checkPreferences(e);const t=this.clone();return t._preferences=l.preferences(t._preferences,e),t}presence(e){return a(["optional","required","forbidden"].includes(e),"Unknown presence mode",e),this.$_setFlag("presence",e)}raw(e=!0){return this.$_setFlag("result",e?"raw":void 0)}result(e){return a(["raw","strip"].includes(e),"Unknown result mode",e),this.$_setFlag("result",e)}required(){return this.presence("required")}strict(e){const t=this.clone(),r=void 0!==e&&!e;return t._preferences=l.preferences(t._preferences,{convert:r}),t}strip(e=!0){return this.$_setFlag("result",e?"strip":void 0)}tag(...e){a(e.length,"Missing tags");for(const t of e)a(t&&"string"==typeof t,"Tags must be non-empty strings");return this._inner("tags",e)}unit(e){return a(e&&"string"==typeof e,"Unit name must be a non-empty string"),this.$_setFlag("unit",e)}valid(...e){l.verifyFlat(e,"valid");const t=this.allow(...e);return t.$_setFlag("only",!!t._valids,{clone:!1}),t}when(e,t){const r=this.clone();r.$_terms.whens||(r.$_terms.whens=[]);const n=c.when(r,e,t);if(!["any","link"].includes(r.type)){const e=n.is?[n]:n.switch;for(const t of e)a(!t.then||"any"===t.then.type||t.then.type===r.type,"Cannot combine",r.type,"with",t.then&&t.then.type),a(!t.otherwise||"any"===t.otherwise.type||t.otherwise.type===r.type,"Cannot combine",r.type,"with",t.otherwise&&t.otherwise.type)}return r.$_terms.whens.push(n),r.$_mutateRebuild()}cache(e){a(!this._inRuleset(),"Cannot set caching inside a ruleset"),a(!this._cache,"Cannot override schema cache"),a(void 0===this._flags.artifact,"Cannot cache a rule with an artifact");const t=this.clone();return t._cache=e||i.provider.provision(),t.$_temp.ruleset=!1,t}clone(){const e=Object.create(Object.getPrototypeOf(this));return this._assign(e)}concat(e){a(l.isSchema(e),"Invalid schema object"),a("any"===this.type||"any"===e.type||e.type===this.type,"Cannot merge type",this.type,"with another type:",e.type),a(!this._inRuleset(),"Cannot concatenate onto a schema with open ruleset"),a(!e._inRuleset(),"Cannot concatenate a schema with open ruleset");let t=this.clone();if("any"===this.type&&"any"!==e.type){const r=e.clone();for(const e of Object.keys(t))"type"!==e&&(r[e]=t[e]);t=r}t._ids.concat(e._ids),t._refs.register(e,w.toSibling),t._preferences=t._preferences?l.preferences(t._preferences,e._preferences):e._preferences,t._valids=b.merge(t._valids,e._valids,e._invalids),t._invalids=b.merge(t._invalids,e._invalids,e._valids);for(const r of e._singleRules.keys())t._singleRules.has(r)&&(t._rules=t._rules.filter((e=>e.keep||e.name!==r)),t._singleRules.delete(r));for(const r of e._rules)e._definition.rules[r.method].multi||t._singleRules.set(r.name,r),t._rules.push(r);if(t._flags.empty&&e._flags.empty){t._flags.empty=t._flags.empty.concat(e._flags.empty);const r=Object.assign({},e._flags);delete r.empty,s(t._flags,r)}else if(e._flags.empty){t._flags.empty=e._flags.empty;const r=Object.assign({},e._flags);delete r.empty,s(t._flags,r)}else s(t._flags,e._flags);for(const r in e.$_terms){const a=e.$_terms[r];a?t.$_terms[r]?t.$_terms[r]=t.$_terms[r].concat(a):t.$_terms[r]=a.slice():t.$_terms[r]||(t.$_terms[r]=a)}return this.$_root._tracer&&this.$_root._tracer._combine(t,[this,e]),t.$_mutateRebuild()}extend(e){return a(!e.base,"Cannot extend type with another base"),d.type(this,e)}extract(e){return e=Array.isArray(e)?e:e.split("."),this._ids.reach(e)}fork(e,t){a(!this._inRuleset(),"Cannot fork inside a ruleset");let r=this;for(let a of[].concat(e))a=Array.isArray(a)?a:a.split("."),r=r._ids.fork(a,t,r);return r.$_temp.ruleset=!1,r}rule(e){const t=this._definition;l.assertOptions(e,Object.keys(t.modifiers)),a(!1!==this.$_temp.ruleset,"Cannot apply rules to empty ruleset or the last rule added does not support rule properties");const r=null===this.$_temp.ruleset?this._rules.length-1:this.$_temp.ruleset;a(r>=0&&rt.tailor(e),ref:!1}),t.$_temp.ruleset=!1,t.$_mutateRebuild()}tracer(){return f.location?f.location(this):this}validate(e,t){return y.entry(e,this,t)}validateAsync(e,t){return y.entryAsync(e,this,t)}$_addRule(e){"string"==typeof e&&(e={name:e}),a(e&&"object"==typeof e,"Invalid options"),a(e.name&&"string"==typeof e.name,"Invalid rule name");for(const t in e)a("_"!==t[0],"Cannot set private rule properties");const t=Object.assign({},e);t._resolve=[],t.method=t.method||t.name;const r=this._definition.rules[t.method],n=t.args;a(r,"Unknown rule",t.method);const o=this.clone();if(n){a(1===Object.keys(n).length||Object.keys(n).length===this._definition.rules[t.name].args.length,"Invalid rule definition for",this.type,t.name);for(const e in n){let s=n[e];if(r.argsByName){const i=r.argsByName.get(e);if(i.ref&&l.isResolvable(s))t._resolve.push(e),o.$_mutateRegister(s);else if(i.normalize&&(s=i.normalize(s),n[e]=s),i.assert){const t=l.validateArg(s,e,i);a(!t,t,"or reference")}}void 0!==s?n[e]=s:delete n[e]}}return r.multi||(o._ruleRemove(t.name,{clone:!1}),o._singleRules.set(t.name,t)),!1===o.$_temp.ruleset&&(o.$_temp.ruleset=null),r.priority?o._rules.unshift(t):o._rules.push(t),o}$_compile(e,t){return c.schema(this.$_root,e,t)}$_createError(e,t,r,a,n,o={}){const s=!1!==o.flags?this._flags:{},i=o.messages?g.merge(this._definition.messages,o.messages):this._definition.messages;return new u.Report(e,t,r,s,i,a,n)}$_getFlag(e){return this._flags[e]}$_getRule(e){return this._singleRules.get(e)}$_mapLabels(e){return e=Array.isArray(e)?e:e.split("."),this._ids.labels(e)}$_match(e,t,r,a){(r=Object.assign({},r)).abortEarly=!0,r._externals=!1,t.snapshot();const n=!y.validate(e,this,t,r,a).errors;return t.restore(),n}$_modify(e){return l.assertOptions(e,["each","once","ref","schema"]),m.schema(this,e)||this}$_mutateRebuild(){return a(!this._inRuleset(),"Cannot add this rule inside a ruleset"),this._refs.reset(),this._ids.reset(),this.$_modify({each:(e,{source:t,name:r,path:a,key:n})=>{const o=this._definition[t][r]&&this._definition[t][r].register;!1!==o&&this.$_mutateRegister(e,{family:o,key:n})}}),this._definition.rebuild&&this._definition.rebuild(this),this.$_temp.ruleset=!1,this}$_mutateRegister(e,{family:t,key:r}={}){this._refs.register(e,t),this._ids.register(e,{key:r})}$_property(e){return this._definition.properties[e]}$_reach(e){return this._ids.reach(e)}$_rootReferences(){return this._refs.roots()}$_setFlag(e,t,r={}){a("_"===e[0]||!this._inRuleset(),"Cannot set flag inside a ruleset");const n=this._definition.flags[e]||{};if(o(t,n.default)&&(t=void 0),o(t,this._flags[e]))return this;const s=!1!==r.clone?this.clone():this;return void 0!==t?(s._flags[e]=t,s.$_mutateRegister(t)):delete s._flags[e],"_"!==e[0]&&(s.$_temp.ruleset=!1),s}$_parent(e,...t){return this[e][l.symbols.parent].call(this,...t)}$_validate(e,t,r){return y.validate(e,this,t,r)}_assign(e){e.type=this.type,e.$_root=this.$_root,e.$_temp=Object.assign({},this.$_temp),e.$_temp.whens={},e._ids=this._ids.clone(),e._preferences=this._preferences,e._valids=this._valids&&this._valids.clone(),e._invalids=this._invalids&&this._invalids.clone(),e._rules=this._rules.slice(),e._singleRules=n(this._singleRules,{shallow:!0}),e._refs=this._refs.clone(),e._flags=Object.assign({},this._flags),e._cache=null,e.$_terms={};for(const t in this.$_terms)e.$_terms[t]=this.$_terms[t]?this.$_terms[t].slice():null;e.$_super={};for(const t in this.$_super)e.$_super[t]=this._super[t].bind(e);return e}_bare(){const e=this.clone();e._reset();const t=e._definition.terms;for(const r in t){const a=t[r];e.$_terms[r]=a.init}return e.$_mutateRebuild()}_default(e,t,r={}){return l.assertOptions(r,"literal"),a(void 0!==t,"Missing",e,"value"),a("function"==typeof t||!r.literal,"Only function value supports literal option"),"function"==typeof t&&r.literal&&(t={[l.symbols.literal]:!0,literal:t}),this.$_setFlag(e,t)}_generate(e,t,r){if(!this.$_terms.whens)return{schema:this};const a=[],n=[];for(let o=0;oc)break}const o=n.join(", ");if(t.mainstay.tracer.debug(t,"rule","when",o),!o)return{schema:this};if(!t.mainstay.tracer.active&&this.$_temp.whens[o])return{schema:this.$_temp.whens[o],id:o};let s=this;this._definition.generate&&(s=this._definition.generate(this,e,t,r));for(const e of a)s=s.concat(e);return this.$_root._tracer&&this.$_root._tracer._combine(s,[this,...a]),this.$_temp.whens[o]=s,{schema:s,id:o}}_inner(e,t,r={}){a(!this._inRuleset(),`Cannot set ${e} inside a ruleset`);const n=this.clone();return n.$_terms[e]&&!r.override||(n.$_terms[e]=[]),r.single?n.$_terms[e].push(t):n.$_terms[e].push(...t),n.$_temp.ruleset=!1,n}_inRuleset(){return null!==this.$_temp.ruleset&&!1!==this.$_temp.ruleset}_ruleRemove(e,t={}){if(!this._singleRules.has(e))return this;const r=!1!==t.clone?this.clone():this;r._singleRules.delete(e);const a=[];for(let t=0;t{"use strict";const a=r(375),n=r(8571),o=r(8160),s={max:1e3,supported:new Set(["undefined","boolean","number","string"])};t.provider={provision:e=>new s.Cache(e)},s.Cache=class{constructor(e={}){o.assertOptions(e,["max"]),a(void 0===e.max||e.max&&e.max>0&&isFinite(e.max),"Invalid max cache size"),this._max=e.max||s.max,this._map=new Map,this._list=new s.List}get length(){return this._map.size}set(e,t){if(null!==e&&!s.supported.has(typeof e))return;let r=this._map.get(e);if(r)return r.value=t,void this._list.first(r);r=this._list.unshift({key:e,value:t}),this._map.set(e,r),this._compact()}get(e){const t=this._map.get(e);if(t)return this._list.first(t),n(t.value)}_compact(){if(this._map.size>this._max){const e=this._list.pop();this._map.delete(e.key)}}},s.List=class{constructor(){this.tail=null,this.head=null}unshift(e){return e.next=null,e.prev=this.head,this.head&&(this.head.next=e),this.head=e,this.tail||(this.tail=e),e}first(e){e!==this.head&&(this._remove(e),this.unshift(e))}pop(){return this._remove(this.tail)}_remove(e){const{next:t,prev:r}=e;return t.prev=r,r&&(r.next=t),e===this.tail&&(this.tail=t),e.prev=null,e.next=null,e}}},8160:(e,t,r)=>{"use strict";const a=r(375),n=r(7916),o=r(5934);let s,i;const l={isoDate:/^(?:[-+]\d{2})?(?:\d{4}(?!\d{2}\b))(?:(-?)(?:(?:0[1-9]|1[0-2])(?:\1(?:[12]\d|0[1-9]|3[01]))?|W(?:[0-4]\d|5[0-2])(?:-?[1-7])?|(?:00[1-9]|0[1-9]\d|[12]\d{2}|3(?:[0-5]\d|6[1-6])))(?![T]$|[T][\d]+Z$)(?:[T\s](?:(?:(?:[01]\d|2[0-3])(?:(:?)[0-5]\d)?|24\:?00)(?:[.,]\d+(?!:))?)(?:\2[0-5]\d(?:[.,]\d+)?)?(?:[Z]|(?:[+-])(?:[01]\d|2[0-3])(?::?[0-5]\d)?)?)?)?$/};t.version=o.version,t.defaults={abortEarly:!0,allowUnknown:!1,artifacts:!1,cache:!0,context:null,convert:!0,dateFormat:"iso",errors:{escapeHtml:!1,label:"path",language:null,render:!0,stack:!1,wrap:{label:'"',array:"[]"}},externals:!0,messages:{},nonEnumerables:!1,noDefaults:!1,presence:"optional",skipFunctions:!1,stripUnknown:!1,warnings:!1},t.symbols={any:Symbol.for("@hapi/joi/schema"),arraySingle:Symbol("arraySingle"),deepDefault:Symbol("deepDefault"),errors:Symbol("errors"),literal:Symbol("literal"),override:Symbol("override"),parent:Symbol("parent"),prefs:Symbol("prefs"),ref:Symbol("ref"),template:Symbol("template"),values:Symbol("values")},t.assertOptions=function(e,t,r="Options"){a(e&&"object"==typeof e&&!Array.isArray(e),"Options must be of type object");const n=Object.keys(e).filter((e=>!t.includes(e)));a(0===n.length,`${r} contain unknown keys: ${n}`)},t.checkPreferences=function(e){i=i||r(3378);const t=i.preferences.validate(e);if(t.error)throw new n([t.error.details[0].message])},t.compare=function(e,t,r){switch(r){case"=":return e===t;case">":return e>t;case"<":return e=":return e>=t;case"<=":return e<=t}},t.default=function(e,t){return void 0===e?t:e},t.isIsoDate=function(e){return l.isoDate.test(e)},t.isNumber=function(e){return"number"==typeof e&&!isNaN(e)},t.isResolvable=function(e){return!!e&&(e[t.symbols.ref]||e[t.symbols.template])},t.isSchema=function(e,r={}){const n=e&&e[t.symbols.any];return!!n&&(a(r.legacy||n.version===t.version,"Cannot mix different versions of joi schemas"),!0)},t.isValues=function(e){return e[t.symbols.values]},t.limit=function(e){return Number.isSafeInteger(e)&&e>=0},t.preferences=function(e,a){s=s||r(6914),e=e||{},a=a||{};const n=Object.assign({},e,a);return a.errors&&e.errors&&(n.errors=Object.assign({},e.errors,a.errors),n.errors.wrap=Object.assign({},e.errors.wrap,a.errors.wrap)),a.messages&&(n.messages=s.compile(a.messages,e.messages)),delete n[t.symbols.prefs],n},t.tryWithPath=function(e,t,r={}){try{return e()}catch(e){throw void 0!==e.path?e.path=t+"."+e.path:e.path=t,r.append&&(e.message=`${e.message} (${e.path})`),e}},t.validateArg=function(e,r,{assert:a,message:n}){if(t.isSchema(a)){const t=a.validate(e);if(!t.error)return;return t.error.message}if(!a(e))return r?`${r} ${n}`:n},t.verifyFlat=function(e,t){for(const r of e)a(!Array.isArray(r),"Method no longer accepts array arguments:",t)}},3292:(e,t,r)=>{"use strict";const a=r(375),n=r(8160),o=r(6133),s={};t.schema=function(e,t,r={}){n.assertOptions(r,["appendPath","override"]);try{return s.schema(e,t,r)}catch(e){throw r.appendPath&&void 0!==e.path&&(e.message=`${e.message} (${e.path})`),e}},s.schema=function(e,t,r){a(void 0!==t,"Invalid undefined schema"),Array.isArray(t)&&(a(t.length,"Invalid empty array schema"),1===t.length&&(t=t[0]));const o=(t,...a)=>!1!==r.override?t.valid(e.override,...a):t.valid(...a);if(s.simple(t))return o(e,t);if("function"==typeof t)return e.custom(t);if(a("object"==typeof t,"Invalid schema content:",typeof t),n.isResolvable(t))return o(e,t);if(n.isSchema(t))return t;if(Array.isArray(t)){for(const r of t)if(!s.simple(r))return e.alternatives().try(...t);return o(e,...t)}return t instanceof RegExp?e.string().regex(t):t instanceof Date?o(e.date(),t):(a(Object.getPrototypeOf(t)===Object.getPrototypeOf({}),"Schema can only contain plain objects"),e.object().keys(t))},t.ref=function(e,t){return o.isRef(e)?e:o.create(e,t)},t.compile=function(e,r,o={}){n.assertOptions(o,["legacy"]);const i=r&&r[n.symbols.any];if(i)return a(o.legacy||i.version===n.version,"Cannot mix different versions of joi schemas:",i.version,n.version),r;if("object"!=typeof r||!o.legacy)return t.schema(e,r,{appendPath:!0});const l=s.walk(r);return l?l.compile(l.root,r):t.schema(e,r,{appendPath:!0})},s.walk=function(e){if("object"!=typeof e)return null;if(Array.isArray(e)){for(const t of e){const e=s.walk(t);if(e)return e}return null}const t=e[n.symbols.any];if(t)return{root:e[t.root],compile:t.compile};a(Object.getPrototypeOf(e)===Object.getPrototypeOf({}),"Schema can only contain plain objects");for(const t in e){const r=s.walk(e[t]);if(r)return r}return null},s.simple=function(e){return null===e||["boolean","string","number"].includes(typeof e)},t.when=function(e,r,i){if(void 0===i&&(a(r&&"object"==typeof r,"Missing options"),i=r,r=o.create(".")),Array.isArray(i)&&(i={switch:i}),n.assertOptions(i,["is","not","then","otherwise","switch","break"]),n.isSchema(r))return a(void 0===i.is,'"is" can not be used with a schema condition'),a(void 0===i.not,'"not" can not be used with a schema condition'),a(void 0===i.switch,'"switch" can not be used with a schema condition'),s.condition(e,{is:r,then:i.then,otherwise:i.otherwise,break:i.break});if(a(o.isRef(r)||"string"==typeof r,"Invalid condition:",r),a(void 0===i.not||void 0===i.is,'Cannot combine "is" with "not"'),void 0===i.switch){let l=i;void 0!==i.not&&(l={is:i.not,then:i.otherwise,otherwise:i.then,break:i.break});let c=void 0!==l.is?e.$_compile(l.is):e.$_root.invalid(null,!1,0,"").required();return a(void 0!==l.then||void 0!==l.otherwise,'options must have at least one of "then", "otherwise", or "switch"'),a(void 0===l.break||void 0===l.then||void 0===l.otherwise,"Cannot specify then, otherwise, and break all together"),void 0===i.is||o.isRef(i.is)||n.isSchema(i.is)||(c=c.required()),s.condition(e,{ref:t.ref(r),is:c,then:l.then,otherwise:l.otherwise,break:l.break})}a(Array.isArray(i.switch),'"switch" must be an array'),a(void 0===i.is,'Cannot combine "switch" with "is"'),a(void 0===i.not,'Cannot combine "switch" with "not"'),a(void 0===i.then,'Cannot combine "switch" with "then"');const l={ref:t.ref(r),switch:[],break:i.break};for(let t=0;t{"use strict";const a=r(5688),n=r(8160),o=r(3328);t.Report=class{constructor(e,r,a,n,o,s,i){if(this.code=e,this.flags=n,this.messages=o,this.path=s.path,this.prefs=i,this.state=s,this.value=r,this.message=null,this.template=null,this.local=a||{},this.local.label=t.label(this.flags,this.state,this.prefs,this.messages),void 0===this.value||this.local.hasOwnProperty("value")||(this.local.value=this.value),this.path.length){const e=this.path[this.path.length-1];"object"!=typeof e&&(this.local.key=e)}}_setTemplate(e){if(this.template=e,!this.flags.label&&0===this.path.length){const e=this._template(this.template,"root");e&&(this.local.label=e)}}toString(){if(this.message)return this.message;const e=this.code;if(!this.prefs.errors.render)return this.code;const t=this._template(this.template)||this._template(this.prefs.messages)||this._template(this.messages);return void 0===t?`Error code "${e}" is not defined, your custom type is missing the correct messages definition`:(this.message=t.render(this.value,this.state,this.prefs,this.local,{errors:this.prefs.errors,messages:[this.prefs.messages,this.messages]}),this.prefs.errors.label||(this.message=this.message.replace(/^"" /,"").trim()),this.message)}_template(e,r){return t.template(this.value,e,r||this.code,this.state,this.prefs)}},t.path=function(e){let t="";for(const r of e)"object"!=typeof r&&("string"==typeof r?(t&&(t+="."),t+=r):t+=`[${r}]`);return t},t.template=function(e,t,r,a,s){if(!t)return;if(o.isTemplate(t))return"root"!==r?t:null;let i=s.errors.language;if(n.isResolvable(i)&&(i=i.resolve(e,a,s)),i&&t[i]){if(void 0!==t[i][r])return t[i][r];if(void 0!==t[i]["*"])return t[i]["*"]}return t[r]?t[r]:t["*"]},t.label=function(e,r,a,n){if(e.label)return e.label;if(!a.errors.label)return"";let o=r.path;return"key"===a.errors.label&&r.path.length>1&&(o=r.path.slice(-1)),t.path(o)||t.template(null,a.messages,"root",r,a)||n&&t.template(null,n,"root",r,a)||"value"},t.process=function(e,r,a){if(!e)return null;const{override:n,message:o,details:s}=t.details(e);if(n)return n;if(a.errors.stack)return new t.ValidationError(o,s,r);const i=Error.stackTraceLimit;Error.stackTraceLimit=0;const l=new t.ValidationError(o,s,r);return Error.stackTraceLimit=i,l},t.details=function(e,t={}){let r=[];const a=[];for(const n of e){if(n instanceof Error){if(!1!==t.override)return{override:n};const e=n.toString();r.push(e),a.push({message:e,type:"override",context:{error:n}});continue}const e=n.toString();r.push(e),a.push({message:e,path:n.path.filter((e=>"object"!=typeof e)),type:n.code,context:n.local})}return r.length>1&&(r=[...new Set(r)]),{message:r.join(". "),details:a}},t.ValidationError=class extends Error{constructor(e,t,r){super(e),this._original=r,this.details=t}static isError(e){return e instanceof t.ValidationError}},t.ValidationError.prototype.isJoi=!0,t.ValidationError.prototype.name="ValidationError",t.ValidationError.prototype.annotate=a.error},8901:(e,t,r)=>{"use strict";const a=r(375),n=r(8571),o=r(8160),s=r(6914),i={};t.type=function(e,t){const r=Object.getPrototypeOf(e),l=n(r),c=e._assign(Object.create(l)),u=Object.assign({},t);delete u.base,l._definition=u;const d=r._definition||{};u.messages=s.merge(d.messages,u.messages),u.properties=Object.assign({},d.properties,u.properties),c.type=u.type,u.flags=Object.assign({},d.flags,u.flags);const p=Object.assign({},d.terms);if(u.terms)for(const e in u.terms){const t=u.terms[e];a(void 0===c.$_terms[e],"Invalid term override for",u.type,e),c.$_terms[e]=t.init,p[e]=t}u.terms=p,u.args||(u.args=d.args),u.prepare=i.prepare(u.prepare,d.prepare),u.coerce&&("function"==typeof u.coerce&&(u.coerce={method:u.coerce}),u.coerce.from&&!Array.isArray(u.coerce.from)&&(u.coerce={method:u.coerce.method,from:[].concat(u.coerce.from)})),u.coerce=i.coerce(u.coerce,d.coerce),u.validate=i.validate(u.validate,d.validate);const g=Object.assign({},d.rules);if(u.rules)for(const e in u.rules){const t=u.rules[e];a("object"==typeof t,"Invalid rule definition for",u.type,e);let r=t.method;if(void 0===r&&(r=function(){return this.$_addRule(e)}),r&&(a(!l[e],"Rule conflict in",u.type,e),l[e]=r),a(!g[e],"Rule conflict in",u.type,e),g[e]=t,t.alias){const e=[].concat(t.alias);for(const r of e)l[r]=t.method}t.args&&(t.argsByName=new Map,t.args=t.args.map((e=>("string"==typeof e&&(e={name:e}),a(!t.argsByName.has(e.name),"Duplicated argument name",e.name),o.isSchema(e.assert)&&(e.assert=e.assert.strict().label(e.name)),t.argsByName.set(e.name,e),e))))}u.rules=g;const m=Object.assign({},d.modifiers);if(u.modifiers)for(const e in u.modifiers){a(!l[e],"Rule conflict in",u.type,e);const t=u.modifiers[e];a("function"==typeof t,"Invalid modifier definition for",u.type,e);const r=function(t){return this.rule({[e]:t})};l[e]=r,m[e]=t}if(u.modifiers=m,u.overrides){l._super=r,c.$_super={};for(const e in u.overrides)a(r[e],"Cannot override missing",e),u.overrides[e][o.symbols.parent]=r[e],c.$_super[e]=r[e].bind(c);Object.assign(l,u.overrides)}u.cast=Object.assign({},d.cast,u.cast);const w=Object.assign({},d.manifest,u.manifest);return w.build=i.build(u.manifest&&u.manifest.build,d.manifest&&d.manifest.build),u.manifest=w,u.rebuild=i.rebuild(u.rebuild,d.rebuild),c},i.build=function(e,t){return e&&t?function(r,a){return t(e(r,a),a)}:e||t},i.coerce=function(e,t){return e&&t?{from:e.from&&t.from?[...new Set([...e.from,...t.from])]:null,method(r,a){let n;if((!t.from||t.from.includes(typeof r))&&(n=t.method(r,a),n)){if(n.errors||void 0===n.value)return n;r=n.value}if(!e.from||e.from.includes(typeof r)){const t=e.method(r,a);if(t)return t}return n}}:e||t},i.prepare=function(e,t){return e&&t?function(r,a){const n=e(r,a);if(n){if(n.errors||void 0===n.value)return n;r=n.value}return t(r,a)||n}:e||t},i.rebuild=function(e,t){return e&&t?function(r){t(r),e(r)}:e||t},i.validate=function(e,t){return e&&t?function(r,a){const n=t(r,a);if(n){if(n.errors&&(!Array.isArray(n.errors)||n.errors.length))return n;r=n.value}return e(r,a)||n}:e||t}},5107:(e,t,r)=>{"use strict";const a=r(375),n=r(8571),o=r(8652),s=r(8160),i=r(3292),l=r(6354),c=r(8901),u=r(9708),d=r(6133),p=r(3328),g=r(1152);let m;const w={types:{alternatives:r(4946),any:r(8068),array:r(546),boolean:r(4937),date:r(7500),function:r(390),link:r(8785),number:r(3832),object:r(8966),string:r(7417),symbol:r(8826)},aliases:{alt:"alternatives",bool:"boolean",func:"function"},root:function(){const e={_types:new Set(Object.keys(w.types))};for(const t of e._types)e[t]=function(...e){return a(!e.length||["alternatives","link","object"].includes(t),"The",t,"type does not allow arguments"),w.generate(this,w.types[t],e)};for(const t of["allow","custom","disallow","equal","exist","forbidden","invalid","not","only","optional","options","prefs","preferences","required","strip","valid","when"])e[t]=function(...e){return this.any()[t](...e)};Object.assign(e,w.methods);for(const t in w.aliases){const r=w.aliases[t];e[t]=e[r]}return e.x=e.expression,g.setup&&g.setup(e),e}};w.methods={ValidationError:l.ValidationError,version:s.version,cache:o.provider,assert(e,t,...r){w.assert(e,t,!0,r)},attempt:(e,t,...r)=>w.assert(e,t,!1,r),build(e){return a("function"==typeof u.build,"Manifest functionality disabled"),u.build(this,e)},checkPreferences(e){s.checkPreferences(e)},compile(e,t){return i.compile(this,e,t)},defaults(e){a("function"==typeof e,"modifier must be a function");const t=Object.assign({},this);for(const r of t._types){const n=e(t[r]());a(s.isSchema(n),"modifier must return a valid schema object"),t[r]=function(...e){return w.generate(this,n,e)}}return t},expression:(...e)=>new p(...e),extend(...e){s.verifyFlat(e,"extend"),m=m||r(3378),a(e.length,"You need to provide at least one extension"),this.assert(e,m.extensions);const t=Object.assign({},this);t._types=new Set(t._types);for(let r of e){"function"==typeof r&&(r=r(t)),this.assert(r,m.extension);const e=w.expandExtension(r,t);for(const r of e){a(void 0===t[r.type]||t._types.has(r.type),"Cannot override name",r.type);const e=r.base||this.any(),n=c.type(e,r);t._types.add(r.type),t[r.type]=function(...e){return w.generate(this,n,e)}}}return t},isError:l.ValidationError.isError,isExpression:p.isTemplate,isRef:d.isRef,isSchema:s.isSchema,in:(...e)=>d.in(...e),override:s.symbols.override,ref:(...e)=>d.create(...e),types(){const e={};for(const t of this._types)e[t]=this[t]();for(const t in w.aliases)e[t]=this[t]();return e}},w.assert=function(e,t,r,a){const o=a[0]instanceof Error||"string"==typeof a[0]?a[0]:null,i=null!==o?a[1]:a[0],c=t.validate(e,s.preferences({errors:{stack:!0}},i||{}));let u=c.error;if(!u)return c.value;if(o instanceof Error)throw o;const d=r&&"function"==typeof u.annotate?u.annotate():u.message;throw u instanceof l.ValidationError==0&&(u=n(u)),u.message=o?`${o} ${d}`:d,u},w.generate=function(e,t,r){return a(e,"Must be invoked on a Joi instance."),t.$_root=e,t._definition.args&&r.length?t._definition.args(t,...r):t},w.expandExtension=function(e,t){if("string"==typeof e.type)return[e];const r=[];for(const a of t._types)if(e.type.test(a)){const n=Object.assign({},e);n.type=a,n.base=t[a](),r.push(n)}return r},e.exports=w.root()},6914:(e,t,r)=>{"use strict";const a=r(375),n=r(8571),o=r(3328);t.compile=function(e,t){if("string"==typeof e)return a(!t,"Cannot set single message string"),new o(e);if(o.isTemplate(e))return a(!t,"Cannot set single message template"),e;a("object"==typeof e&&!Array.isArray(e),"Invalid message options"),t=t?n(t):{};for(let r in e){const n=e[r];if("root"===r||o.isTemplate(n)){t[r]=n;continue}if("string"==typeof n){t[r]=new o(n);continue}a("object"==typeof n&&!Array.isArray(n),"Invalid message for",r);const s=r;for(r in t[s]=t[s]||{},n){const e=n[r];"root"===r||o.isTemplate(e)?t[s][r]=e:(a("string"==typeof e,"Invalid message for",r,"in",s),t[s][r]=new o(e))}}return t},t.decompile=function(e){const t={};for(let r in e){const a=e[r];if("root"===r){t.root=a;continue}if(o.isTemplate(a)){t[r]=a.describe({compact:!0});continue}const n=r;for(r in t[n]={},a){const e=a[r];"root"!==r?t[n][r]=e.describe({compact:!0}):t[n].root=e}}return t},t.merge=function(e,r){if(!e)return t.compile(r);if(!r)return e;if("string"==typeof r)return new o(r);if(o.isTemplate(r))return r;const s=n(e);for(let e in r){const t=r[e];if("root"===e||o.isTemplate(t)){s[e]=t;continue}if("string"==typeof t){s[e]=new o(t);continue}a("object"==typeof t&&!Array.isArray(t),"Invalid message for",e);const n=e;for(e in s[n]=s[n]||{},t){const r=t[e];"root"===e||o.isTemplate(r)?s[n][e]=r:(a("string"==typeof r,"Invalid message for",e,"in",n),s[n][e]=new o(r))}}return s}},2294:(e,t,r)=>{"use strict";const a=r(375),n=r(8160),o=r(6133),s={};t.Ids=s.Ids=class{constructor(){this._byId=new Map,this._byKey=new Map,this._schemaChain=!1}clone(){const e=new s.Ids;return e._byId=new Map(this._byId),e._byKey=new Map(this._byKey),e._schemaChain=this._schemaChain,e}concat(e){e._schemaChain&&(this._schemaChain=!0);for(const[t,r]of e._byId.entries())a(!this._byKey.has(t),"Schema id conflicts with existing key:",t),this._byId.set(t,r);for(const[t,r]of e._byKey.entries())a(!this._byId.has(t),"Schema key conflicts with existing id:",t),this._byKey.set(t,r)}fork(e,t,r){const o=this._collect(e);o.push({schema:r});const i=o.shift();let l={id:i.id,schema:t(i.schema)};a(n.isSchema(l.schema),"adjuster function failed to return a joi schema type");for(const e of o)l={id:e.id,schema:s.fork(e.schema,l.id,l.schema)};return l.schema}labels(e,t=[]){const r=e[0],a=this._get(r);if(!a)return[...t,...e].join(".");const n=e.slice(1);return t=[...t,a.schema._flags.label||r],n.length?a.schema._ids.labels(n,t):t.join(".")}reach(e,t=[]){const r=e[0],n=this._get(r);a(n,"Schema does not contain path",[...t,...e].join("."));const o=e.slice(1);return o.length?n.schema._ids.reach(o,[...t,r]):n.schema}register(e,{key:t}={}){if(!e||!n.isSchema(e))return;(e.$_property("schemaChain")||e._ids._schemaChain)&&(this._schemaChain=!0);const r=e._flags.id;if(r){const t=this._byId.get(r);a(!t||t.schema===e,"Cannot add different schemas with the same id:",r),a(!this._byKey.has(r),"Schema id conflicts with existing key:",r),this._byId.set(r,{schema:e,id:r})}t&&(a(!this._byKey.has(t),"Schema already contains key:",t),a(!this._byId.has(t),"Schema key conflicts with existing id:",t),this._byKey.set(t,{schema:e,id:t}))}reset(){this._byId=new Map,this._byKey=new Map,this._schemaChain=!1}_collect(e,t=[],r=[]){const n=e[0],o=this._get(n);a(o,"Schema does not contain path",[...t,...e].join(".")),r=[o,...r];const s=e.slice(1);return s.length?o.schema._ids._collect(s,[...t,n],r):r}_get(e){return this._byId.get(e)||this._byKey.get(e)}},s.fork=function(e,r,a){const n=t.schema(e,{each:(e,{key:t})=>{if(r===(e._flags.id||t))return a},ref:!1});return n?n.$_mutateRebuild():e},t.schema=function(e,t){let r;for(const a in e._flags){if("_"===a[0])continue;const n=s.scan(e._flags[a],{source:"flags",name:a},t);void 0!==n&&(r=r||e.clone(),r._flags[a]=n)}for(let a=0;a{"use strict";const a=r(375),n=r(8571),o=r(9621),s=r(8160);let i;const l={symbol:Symbol("ref"),defaults:{adjust:null,in:!1,iterables:null,map:null,separator:".",type:"value"}};t.create=function(e,t={}){a("string"==typeof e,"Invalid reference key:",e),s.assertOptions(t,["adjust","ancestor","in","iterables","map","prefix","render","separator"]),a(!t.prefix||"object"==typeof t.prefix,"options.prefix must be of type object");const r=Object.assign({},l.defaults,t);delete r.prefix;const n=r.separator,o=l.context(e,n,t.prefix);if(r.type=o.type,e=o.key,"value"===r.type)if(o.root&&(a(!n||e[0]!==n,"Cannot specify relative path with root prefix"),r.ancestor="root",e||(e=null)),n&&n===e)e=null,r.ancestor=0;else if(void 0!==r.ancestor)a(!n||!e||e[0]!==n,"Cannot combine prefix with ancestor option");else{const[t,a]=l.ancestor(e,n);a&&""===(e=e.slice(a))&&(e=null),r.ancestor=t}return r.path=n?null===e?[]:e.split(n):[e],new l.Ref(r)},t.in=function(e,r={}){return t.create(e,{...r,in:!0})},t.isRef=function(e){return!!e&&!!e[s.symbols.ref]},l.Ref=class{constructor(e){a("object"==typeof e,"Invalid reference construction"),s.assertOptions(e,["adjust","ancestor","in","iterables","map","path","render","separator","type","depth","key","root","display"]),a([!1,void 0].includes(e.separator)||"string"==typeof e.separator&&1===e.separator.length,"Invalid separator"),a(!e.adjust||"function"==typeof e.adjust,"options.adjust must be a function"),a(!e.map||Array.isArray(e.map),"options.map must be an array"),a(!e.map||!e.adjust,"Cannot set both map and adjust options"),Object.assign(this,l.defaults,e),a("value"===this.type||void 0===this.ancestor,"Non-value references cannot reference ancestors"),Array.isArray(this.map)&&(this.map=new Map(this.map)),this.depth=this.path.length,this.key=this.path.length?this.path.join(this.separator):null,this.root=this.path[0],this.updateDisplay()}resolve(e,t,r,n,o={}){return a(!this.in||o.in,"Invalid in() reference usage"),"global"===this.type?this._resolve(r.context,t,o):"local"===this.type?this._resolve(n,t,o):this.ancestor?"root"===this.ancestor?this._resolve(t.ancestors[t.ancestors.length-1],t,o):(a(this.ancestor<=t.ancestors.length,"Invalid reference exceeds the schema root:",this.display),this._resolve(t.ancestors[this.ancestor-1],t,o)):this._resolve(e,t,o)}_resolve(e,t,r){let a;if("value"===this.type&&t.mainstay.shadow&&!1!==r.shadow&&(a=t.mainstay.shadow.get(this.absolute(t))),void 0===a&&(a=o(e,this.path,{iterables:this.iterables,functions:!0})),this.adjust&&(a=this.adjust(a)),this.map){const e=this.map.get(a);void 0!==e&&(a=e)}return t.mainstay&&t.mainstay.tracer.resolve(t,this,a),a}toString(){return this.display}absolute(e){return[...e.path.slice(0,-this.ancestor),...this.path]}clone(){return new l.Ref(this)}describe(){const e={path:this.path};"value"!==this.type&&(e.type=this.type),"."!==this.separator&&(e.separator=this.separator),"value"===this.type&&1!==this.ancestor&&(e.ancestor=this.ancestor),this.map&&(e.map=[...this.map]);for(const t of["adjust","iterables","render"])null!==this[t]&&void 0!==this[t]&&(e[t]=this[t]);return!1!==this.in&&(e.in=!0),{ref:e}}updateDisplay(){const e=null!==this.key?this.key:"";if("value"!==this.type)return void(this.display=`ref:${this.type}:${e}`);if(!this.separator)return void(this.display=`ref:${e}`);if(!this.ancestor)return void(this.display=`ref:${this.separator}${e}`);if("root"===this.ancestor)return void(this.display=`ref:root:${e}`);if(1===this.ancestor)return void(this.display=`ref:${e||".."}`);const t=new Array(this.ancestor+1).fill(this.separator).join("");this.display=`ref:${t}${e||""}`}},l.Ref.prototype[s.symbols.ref]=!0,t.build=function(e){return"value"===(e=Object.assign({},l.defaults,e)).type&&void 0===e.ancestor&&(e.ancestor=1),new l.Ref(e)},l.context=function(e,t,r={}){if(e=e.trim(),r){const a=void 0===r.global?"$":r.global;if(a!==t&&e.startsWith(a))return{key:e.slice(a.length),type:"global"};const n=void 0===r.local?"#":r.local;if(n!==t&&e.startsWith(n))return{key:e.slice(n.length),type:"local"};const o=void 0===r.root?"/":r.root;if(o!==t&&e.startsWith(o))return{key:e.slice(o.length),type:"value",root:!0}}return{key:e,type:"value"}},l.ancestor=function(e,t){if(!t)return[1,0];if(e[0]!==t)return[1,0];if(e[1]!==t)return[0,1];let r=2;for(;e[r]===t;)++r;return[r-1,r]},t.toSibling=0,t.toParent=1,t.Manager=class{constructor(){this.refs=[]}register(e,a){if(e)if(a=void 0===a?t.toParent:a,Array.isArray(e))for(const t of e)this.register(t,a);else if(s.isSchema(e))for(const t of e._refs.refs)t.ancestor-a>=0&&this.refs.push({ancestor:t.ancestor-a,root:t.root});else t.isRef(e)&&"value"===e.type&&e.ancestor-a>=0&&this.refs.push({ancestor:e.ancestor-a,root:e.root}),i=i||r(3328),i.isTemplate(e)&&this.register(e.refs(),a)}get length(){return this.refs.length}clone(){const e=new t.Manager;return e.refs=n(this.refs),e}reset(){this.refs=[]}roots(){return this.refs.filter((e=>!e.ancestor)).map((e=>e.root))}}},3378:(e,t,r)=>{"use strict";const a=r(5107),n={};n.wrap=a.string().min(1).max(2).allow(!1),t.preferences=a.object({allowUnknown:a.boolean(),abortEarly:a.boolean(),artifacts:a.boolean(),cache:a.boolean(),context:a.object(),convert:a.boolean(),dateFormat:a.valid("date","iso","string","time","utc"),debug:a.boolean(),errors:{escapeHtml:a.boolean(),label:a.valid("path","key",!1),language:[a.string(),a.object().ref()],render:a.boolean(),stack:a.boolean(),wrap:{label:n.wrap,array:n.wrap,string:n.wrap}},externals:a.boolean(),messages:a.object(),noDefaults:a.boolean(),nonEnumerables:a.boolean(),presence:a.valid("required","optional","forbidden"),skipFunctions:a.boolean(),stripUnknown:a.object({arrays:a.boolean(),objects:a.boolean()}).or("arrays","objects").allow(!0,!1),warnings:a.boolean()}).strict(),n.nameRx=/^[a-zA-Z0-9]\w*$/,n.rule=a.object({alias:a.array().items(a.string().pattern(n.nameRx)).single(),args:a.array().items(a.string(),a.object({name:a.string().pattern(n.nameRx).required(),ref:a.boolean(),assert:a.alternatives([a.function(),a.object().schema()]).conditional("ref",{is:!0,then:a.required()}),normalize:a.function(),message:a.string().when("assert",{is:a.function(),then:a.required()})})),convert:a.boolean(),manifest:a.boolean(),method:a.function().allow(!1),multi:a.boolean(),validate:a.function()}),t.extension=a.object({type:a.alternatives([a.string(),a.object().regex()]).required(),args:a.function(),cast:a.object().pattern(n.nameRx,a.object({from:a.function().maxArity(1).required(),to:a.function().minArity(1).maxArity(2).required()})),base:a.object().schema().when("type",{is:a.object().regex(),then:a.forbidden()}),coerce:[a.function().maxArity(3),a.object({method:a.function().maxArity(3).required(),from:a.array().items(a.string()).single()})],flags:a.object().pattern(n.nameRx,a.object({setter:a.string(),default:a.any()})),manifest:{build:a.function().arity(2)},messages:[a.object(),a.string()],modifiers:a.object().pattern(n.nameRx,a.function().minArity(1).maxArity(2)),overrides:a.object().pattern(n.nameRx,a.function()),prepare:a.function().maxArity(3),rebuild:a.function().arity(1),rules:a.object().pattern(n.nameRx,n.rule),terms:a.object().pattern(n.nameRx,a.object({init:a.array().allow(null).required(),manifest:a.object().pattern(/.+/,[a.valid("schema","single"),a.object({mapped:a.object({from:a.string().required(),to:a.string().required()}).required()})])})),validate:a.function().maxArity(3)}).strict(),t.extensions=a.array().items(a.object(),a.function().arity(1)).strict(),n.desc={buffer:a.object({buffer:a.string()}),func:a.object({function:a.function().required(),options:{literal:!0}}),override:a.object({override:!0}),ref:a.object({ref:a.object({type:a.valid("value","global","local"),path:a.array().required(),separator:a.string().length(1).allow(!1),ancestor:a.number().min(0).integer().allow("root"),map:a.array().items(a.array().length(2)).min(1),adjust:a.function(),iterables:a.boolean(),in:a.boolean(),render:a.boolean()}).required()}),regex:a.object({regex:a.string().min(3)}),special:a.object({special:a.valid("deep").required()}),template:a.object({template:a.string().required(),options:a.object()}),value:a.object({value:a.alternatives([a.object(),a.array()]).required()})},n.desc.entity=a.alternatives([a.array().items(a.link("...")),a.boolean(),a.function(),a.number(),a.string(),n.desc.buffer,n.desc.func,n.desc.ref,n.desc.regex,n.desc.special,n.desc.template,n.desc.value,a.link("/")]),n.desc.values=a.array().items(null,a.boolean(),a.function(),a.number().allow(1/0,-1/0),a.string().allow(""),a.symbol(),n.desc.buffer,n.desc.func,n.desc.override,n.desc.ref,n.desc.regex,n.desc.template,n.desc.value),n.desc.messages=a.object().pattern(/.+/,[a.string(),n.desc.template,a.object().pattern(/.+/,[a.string(),n.desc.template])]),t.description=a.object({type:a.string().required(),flags:a.object({cast:a.string(),default:a.any(),description:a.string(),empty:a.link("/"),failover:n.desc.entity,id:a.string(),label:a.string(),only:!0,presence:["optional","required","forbidden"],result:["raw","strip"],strip:a.boolean(),unit:a.string()}).unknown(),preferences:{allowUnknown:a.boolean(),abortEarly:a.boolean(),artifacts:a.boolean(),cache:a.boolean(),convert:a.boolean(),dateFormat:["date","iso","string","time","utc"],errors:{escapeHtml:a.boolean(),label:["path","key"],language:[a.string(),n.desc.ref],wrap:{label:n.wrap,array:n.wrap}},externals:a.boolean(),messages:n.desc.messages,noDefaults:a.boolean(),nonEnumerables:a.boolean(),presence:["required","optional","forbidden"],skipFunctions:a.boolean(),stripUnknown:a.object({arrays:a.boolean(),objects:a.boolean()}).or("arrays","objects").allow(!0,!1),warnings:a.boolean()},allow:n.desc.values,invalid:n.desc.values,rules:a.array().min(1).items({name:a.string().required(),args:a.object().min(1),keep:a.boolean(),message:[a.string(),n.desc.messages],warn:a.boolean()}),keys:a.object().pattern(/.*/,a.link("/")),link:n.desc.ref}).pattern(/^[a-z]\w*$/,a.any())},493:(e,t,r)=>{"use strict";const a=r(8571),n=r(9621),o=r(8160),s={value:Symbol("value")};e.exports=s.State=class{constructor(e,t,r){this.path=e,this.ancestors=t,this.mainstay=r.mainstay,this.schemas=r.schemas,this.debug=null}localize(e,t=null,r=null){const a=new s.State(e,t,this);return r&&a.schemas&&(a.schemas=[s.schemas(r),...a.schemas]),a}nest(e,t){const r=new s.State(this.path,this.ancestors,this);return r.schemas=r.schemas&&[s.schemas(e),...r.schemas],r.debug=t,r}shadow(e,t){this.mainstay.shadow=this.mainstay.shadow||new s.Shadow,this.mainstay.shadow.set(this.path,e,t)}snapshot(){this.mainstay.shadow&&(this._snapshot=a(this.mainstay.shadow.node(this.path))),this.mainstay.snapshot()}restore(){this.mainstay.shadow&&(this.mainstay.shadow.override(this.path,this._snapshot),this._snapshot=void 0),this.mainstay.restore()}commit(){this.mainstay.shadow&&(this.mainstay.shadow.override(this.path,this._snapshot),this._snapshot=void 0),this.mainstay.commit()}},s.schemas=function(e){return o.isSchema(e)?{schema:e}:e},s.Shadow=class{constructor(){this._values=null}set(e,t,r){if(!e.length)return;if("strip"===r&&"number"==typeof e[e.length-1])return;this._values=this._values||new Map;let a=this._values;for(let t=0;t{"use strict";const a=r(375),n=r(8571),o=r(5277),s=r(1447),i=r(8160),l=r(6354),c=r(6133),u={symbol:Symbol("template"),opens:new Array(1e3).join("\0"),closes:new Array(1e3).join(""),dateFormat:{date:Date.prototype.toDateString,iso:Date.prototype.toISOString,string:Date.prototype.toString,time:Date.prototype.toTimeString,utc:Date.prototype.toUTCString}};e.exports=u.Template=class{constructor(e,t){if(a("string"==typeof e,"Template source must be a string"),a(!e.includes("\0")&&!e.includes(""),"Template source cannot contain reserved control characters"),this.source=e,this.rendered=e,this._template=null,t){const{functions:e,...r}=t;this._settings=Object.keys(r).length?n(r):void 0,this._functions=e,this._functions&&(a(Object.keys(this._functions).every((e=>"string"==typeof e)),"Functions keys must be strings"),a(Object.values(this._functions).every((e=>"function"==typeof e)),"Functions values must be functions"))}else this._settings=void 0,this._functions=void 0;this._parse()}_parse(){if(!this.source.includes("{"))return;const e=u.encode(this.source),t=u.split(e);let r=!1;const a=[],n=t.shift();n&&a.push(n);for(const e of t){const t="{"!==e[0],n=t?"}":"}}",o=e.indexOf(n);if(-1===o||"{"===e[1]){a.push(`{${u.decode(e)}`);continue}let s=e.slice(t?0:1,o);const i=":"===s[0];i&&(s=s.slice(1));const l=this._ref(u.decode(s),{raw:t,wrapped:i});a.push(l),"string"!=typeof l&&(r=!0);const c=e.slice(o+n.length);c&&a.push(u.decode(c))}r?this._template=a:this.rendered=a.join("")}static date(e,t){return u.dateFormat[t.dateFormat].call(e)}describe(e={}){if(!this._settings&&e.compact)return this.source;const t={template:this.source};return this._settings&&(t.options=this._settings),this._functions&&(t.functions=this._functions),t}static build(e){return new u.Template(e.template,e.options||e.functions?{...e.options,functions:e.functions}:void 0)}isDynamic(){return!!this._template}static isTemplate(e){return!!e&&!!e[i.symbols.template]}refs(){if(!this._template)return;const e=[];for(const t of this._template)"string"!=typeof t&&e.push(...t.refs);return e}resolve(e,t,r,a){return this._template&&1===this._template.length?this._part(this._template[0],e,t,r,a,{}):this.render(e,t,r,a)}_part(e,...t){return e.ref?e.ref.resolve(...t):e.formula.evaluate(t)}render(e,t,r,a,n={}){if(!this.isDynamic())return this.rendered;const s=[];for(const i of this._template)if("string"==typeof i)s.push(i);else{const l=this._part(i,e,t,r,a,n),c=u.stringify(l,e,t,r,a,n);if(void 0!==c){const e=i.raw||!1===(n.errors&&n.errors.escapeHtml)?c:o(c);s.push(u.wrap(e,i.wrapped&&r.errors.wrap.label))}}return s.join("")}_ref(e,{raw:t,wrapped:r}){const a=[],n=e=>{const t=c.create(e,this._settings);return a.push(t),e=>{const r=t.resolve(...e);return void 0!==r?r:null}};try{const t=this._functions?{...u.functions,...this._functions}:u.functions;var o=new s.Parser(e,{reference:n,functions:t,constants:u.constants})}catch(t){throw t.message=`Invalid template variable "${e}" fails due to: ${t.message}`,t}if(o.single){if("reference"===o.single.type){const e=a[0];return{ref:e,raw:t,refs:a,wrapped:r||"local"===e.type&&"label"===e.key}}return u.stringify(o.single.value)}return{formula:o,raw:t,refs:a}}toString(){return this.source}},u.Template.prototype[i.symbols.template]=!0,u.Template.prototype.isImmutable=!0,u.encode=function(e){return e.replace(/\\(\{+)/g,((e,t)=>u.opens.slice(0,t.length))).replace(/\\(\}+)/g,((e,t)=>u.closes.slice(0,t.length)))},u.decode=function(e){return e.replace(/\u0000/g,"{").replace(/\u0001/g,"}")},u.split=function(e){const t=[];let r="";for(let a=0;a ${a.toString()}`);e=t}if(!Array.isArray(e))return e.toString();const d=[];for(const s of e)d.push(u.stringify(s,t,r,a,n,{arrayItems:!0,...o}));return u.wrap(d.join(", "),!l&&i.array)},u.constants={true:!0,false:!1,null:null,second:1e3,minute:6e4,hour:36e5,day:864e5},u.functions={if:(e,t,r)=>e?t:r,length:e=>"string"==typeof e?e.length:e&&"object"==typeof e?Array.isArray(e)?e.length:Object.keys(e).length:null,msg(e){const[t,r,a,n,o]=this,s=o.messages;if(!s)return"";const i=l.template(t,s[0],e,r,a)||l.template(t,s[1],e,r,a);return i?i.render(t,r,a,n,o):""},number:e=>"number"==typeof e?e:"string"==typeof e?parseFloat(e):"boolean"==typeof e?e?1:0:e instanceof Date?e.getTime():null}},4946:(e,t,r)=>{"use strict";const a=r(375),n=r(1687),o=r(8068),s=r(8160),i=r(3292),l=r(6354),c=r(6133),u={};e.exports=o.extend({type:"alternatives",flags:{match:{default:"any"}},terms:{matches:{init:[],register:c.toSibling}},args:(e,...t)=>1===t.length&&Array.isArray(t[0])?e.try(...t[0]):e.try(...t),validate(e,t){const{schema:r,error:a,state:o,prefs:s}=t;if(r._flags.match){const t=[],i=[];for(let a=0;al.details(e,{override:!1})))})};if("one"===r._flags.match)return 1===t.length?{value:t[0]}:{errors:a("alternatives.one")};if(t.length!==r.$_terms.matches.length)return{errors:a("alternatives.all",{details:i.map((e=>l.details(e,{override:!1})))})};const c=e=>e.$_terms.matches.some((e=>"object"===e.schema.type||"alternatives"===e.schema.type&&c(e.schema)));return c(r)?{value:t.reduce(((e,t)=>n(e,t,{mergeArrays:!1})))}:{value:t[t.length-1]}}const i=[];for(let t=0;t"is"!==r.path[0]&&"string"!=typeof t._flags.label?t.label(e):void 0,ref:!1})}},rebuild(e){e.$_modify({each:t=>{s.isSchema(t)&&"array"===t.type&&e.$_setFlag("_arrayItems",!0,{clone:!1})}})},manifest:{build(e,t){if(t.matches)for(const r of t.matches){const{schema:t,ref:a,is:n,not:o,then:s,otherwise:i}=r;e=t?e.try(t):a?e.conditional(a,{is:n,then:s,not:o,otherwise:i,switch:r.switch}):e.conditional(n,{then:s,otherwise:i})}return e}},messages:{"alternatives.all":"{{#label}} does not match all of the required types","alternatives.any":"{{#label}} does not match any of the allowed types","alternatives.match":"{{#label}} does not match any of the allowed types","alternatives.one":"{{#label}} matches more than one allowed type","alternatives.types":"{{#label}} must be one of {{#types}}"}}),u.errors=function(e,{error:t,state:r}){if(!e.length)return{errors:t("alternatives.any")};if(1===e.length)return{errors:e[0].reports};const a=new Set,n=[];for(const{reports:o,schema:s}of e){if(o.length>1)return u.unmatched(e,t);const i=o[0];if(i instanceof l.Report==0)return u.unmatched(e,t);if(i.state.path.length!==r.path.length){n.push({type:s.type,report:i});continue}if("any.only"===i.code){for(const e of i.local.valids)a.add(e);continue}const[c,d]=i.code.split(".");"base"===d?a.add(c):n.push({type:s.type,report:i})}return n.length?1===n.length?{errors:n[0].report}:u.unmatched(e,t):{errors:t("alternatives.types",{types:[...a]})}},u.unmatched=function(e,t){const r=[];for(const t of e)r.push(...t.reports);return{errors:t("alternatives.match",l.details(r,{override:!1}))}}},8068:(e,t,r)=>{"use strict";const a=r(375),n=r(7629),o=r(8160),s=r(6914);e.exports=n.extend({type:"any",flags:{only:{default:!1}},terms:{alterations:{init:null},examples:{init:null},externals:{init:null},metas:{init:[]},notes:{init:[]},shared:{init:null},tags:{init:[]},whens:{init:null}},rules:{custom:{method(e,t){return a("function"==typeof e,"Method must be a function"),a(void 0===t||t&&"string"==typeof t,"Description must be a non-empty string"),this.$_addRule({name:"custom",args:{method:e,description:t}})},validate(e,t,{method:r}){try{return r(e,t)}catch(e){return t.error("any.custom",{error:e})}},args:["method","description"],multi:!0},messages:{method(e){return this.prefs({messages:e})}},shared:{method(e){a(o.isSchema(e)&&e._flags.id,"Schema must be a schema with an id");const t=this.clone();return t.$_terms.shared=t.$_terms.shared||[],t.$_terms.shared.push(e),t.$_mutateRegister(e),t}},warning:{method(e,t){return a(e&&"string"==typeof e,"Invalid warning code"),this.$_addRule({name:"warning",args:{code:e,local:t},warn:!0})},validate:(e,t,{code:r,local:a})=>t.error(r,a),args:["code","local"],multi:!0}},modifiers:{keep(e,t=!0){e.keep=t},message(e,t){e.message=s.compile(t)},warn(e,t=!0){e.warn=t}},manifest:{build(e,t){for(const r in t){const a=t[r];if(["examples","externals","metas","notes","tags"].includes(r))for(const t of a)e=e[r.slice(0,-1)](t);else if("alterations"!==r)if("whens"!==r){if("shared"===r)for(const t of a)e=e.shared(t)}else for(const t of a){const{ref:r,is:a,not:n,then:o,otherwise:s,concat:i}=t;e=i?e.concat(i):r?e.when(r,{is:a,not:n,then:o,otherwise:s,switch:t.switch,break:t.break}):e.when(a,{then:o,otherwise:s,break:t.break})}else{const t={};for(const{target:e,adjuster:r}of a)t[e]=r;e=e.alter(t)}}return e}},messages:{"any.custom":"{{#label}} failed custom validation because {{#error.message}}","any.default":"{{#label}} threw an error when running default method","any.failover":"{{#label}} threw an error when running failover method","any.invalid":"{{#label}} contains an invalid value","any.only":'{{#label}} must be {if(#valids.length == 1, "", "one of ")}{{#valids}}',"any.ref":"{{#label}} {{#arg}} references {{:#ref}} which {{#reason}}","any.required":"{{#label}} is required","any.unknown":"{{#label}} is not allowed"}})},546:(e,t,r)=>{"use strict";const a=r(375),n=r(9474),o=r(9621),s=r(8068),i=r(8160),l=r(3292),c={};e.exports=s.extend({type:"array",flags:{single:{default:!1},sparse:{default:!1}},terms:{items:{init:[],manifest:"schema"},ordered:{init:[],manifest:"schema"},_exclusions:{init:[]},_inclusions:{init:[]},_requireds:{init:[]}},coerce:{from:"object",method(e,{schema:t,state:r,prefs:a}){if(!Array.isArray(e))return;const n=t.$_getRule("sort");return n?c.sort(t,e,n.args.options,r,a):void 0}},validate(e,{schema:t,error:r}){if(!Array.isArray(e)){if(t._flags.single){const t=[e];return t[i.symbols.arraySingle]=!0,{value:t}}return{errors:r("array.base")}}if(t.$_getRule("items")||t.$_terms.externals)return{value:e.slice()}},rules:{has:{method(e){e=this.$_compile(e,{appendPath:!0});const t=this.$_addRule({name:"has",args:{schema:e}});return t.$_mutateRegister(e),t},validate(e,{state:t,prefs:r,error:a},{schema:n}){const o=[e,...t.ancestors];for(let a=0;athis.$_compile(e[r])),r,{append:!0});t.$_terms.items.push(a)}return t.$_mutateRebuild()},validate(e,{schema:t,error:r,state:a,prefs:n,errorsArray:o}){const s=t.$_terms._requireds.slice(),l=t.$_terms.ordered.slice(),u=[...t.$_terms._inclusions,...s],d=!e[i.symbols.arraySingle];delete e[i.symbols.arraySingle];const p=o();let g=e.length;for(let o=0;o="})}},ordered:{method(...e){i.verifyFlat(e,"ordered");const t=this.$_addRule("items");for(let r=0;rthis.$_compile(e[r])),r,{append:!0});c.validateSingle(a,t),t.$_mutateRegister(a),t.$_terms.ordered.push(a)}return t.$_mutateRebuild()}},single:{method(e){const t=void 0===e||!!e;return a(!t||!this._flags._arrayItems,"Cannot specify single rule when array has array items"),this.$_setFlag("single",t)}},sort:{method(e={}){i.assertOptions(e,["by","order"]);const t={order:e.order||"ascending"};return e.by&&(t.by=l.ref(e.by,{ancestor:0}),a(!t.by.ancestor,"Cannot sort by ancestor")),this.$_addRule({name:"sort",args:{options:t}})},validate(e,{error:t,state:r,prefs:a,schema:n},{options:o}){const{value:s,errors:i}=c.sort(n,e,o,r,a);if(i)return i;for(let r=0;rnew Set(e)}},rebuild(e){e.$_terms._inclusions=[],e.$_terms._exclusions=[],e.$_terms._requireds=[];for(const t of e.$_terms.items)c.validateSingle(t,e),"required"===t._flags.presence?e.$_terms._requireds.push(t):"forbidden"===t._flags.presence?e.$_terms._exclusions.push(t):e.$_terms._inclusions.push(t);for(const t of e.$_terms.ordered)c.validateSingle(t,e)},manifest:{build:(e,t)=>(t.items&&(e=e.items(...t.items)),t.ordered&&(e=e.ordered(...t.ordered)),e)},messages:{"array.base":"{{#label}} must be an array","array.excludes":"{{#label}} contains an excluded value","array.hasKnown":"{{#label}} does not contain at least one required match for type {:#patternLabel}","array.hasUnknown":"{{#label}} does not contain at least one required match","array.includes":"{{#label}} does not match any of the allowed types","array.includesRequiredBoth":"{{#label}} does not contain {{#knownMisses}} and {{#unknownMisses}} other required value(s)","array.includesRequiredKnowns":"{{#label}} does not contain {{#knownMisses}}","array.includesRequiredUnknowns":"{{#label}} does not contain {{#unknownMisses}} required value(s)","array.length":"{{#label}} must contain {{#limit}} items","array.max":"{{#label}} must contain less than or equal to {{#limit}} items","array.min":"{{#label}} must contain at least {{#limit}} items","array.orderedLength":"{{#label}} must contain at most {{#limit}} items","array.sort":"{{#label}} must be sorted in {#order} order by {{#by}}","array.sort.mismatching":"{{#label}} cannot be sorted due to mismatching types","array.sort.unsupported":"{{#label}} cannot be sorted due to unsupported type {#type}","array.sparse":"{{#label}} must not be a sparse array item","array.unique":"{{#label}} contains a duplicate value"}}),c.fillMissedErrors=function(e,t,r,a,n,o){const s=[];let i=0;for(const e of r){const t=e._flags.label;t?s.push(t):++i}s.length?i?t.push(e.$_createError("array.includesRequiredBoth",a,{knownMisses:s,unknownMisses:i},n,o)):t.push(e.$_createError("array.includesRequiredKnowns",a,{knownMisses:s},n,o)):t.push(e.$_createError("array.includesRequiredUnknowns",a,{unknownMisses:i},n,o))},c.fillOrderedErrors=function(e,t,r,a,n,o){const s=[];for(const e of r)"required"===e._flags.presence&&s.push(e);s.length&&c.fillMissedErrors(e,t,s,a,n,o)},c.fillDefault=function(e,t,r,a){const n=[];let o=!0;for(let s=e.length-1;s>=0;--s){const i=e[s],l=[t,...r.ancestors],c=i.$_validate(void 0,r.localize(r.path,l,i),a).value;if(o){if(void 0===c)continue;o=!1}n.unshift(c)}n.length&&t.push(...n)},c.fastSplice=function(e,t){let r=t;for(;r{let d=c.compare(l,u,s,i);if(null!==d)return d;if(r.by&&(l=r.by.resolve(l,a,n),u=r.by.resolve(u,a,n)),d=c.compare(l,u,s,i),null!==d)return d;const p=typeof l;if(p!==typeof u)throw e.$_createError("array.sort.mismatching",t,null,a,n);if("number"!==p&&"string"!==p)throw e.$_createError("array.sort.unsupported",t,{type:p},a,n);return"number"===p?(l-u)*o:l{"use strict";const a=r(375),n=r(8068),o=r(8160),s=r(2036),i={isBool:function(e){return"boolean"==typeof e}};e.exports=n.extend({type:"boolean",flags:{sensitive:{default:!1}},terms:{falsy:{init:null,manifest:"values"},truthy:{init:null,manifest:"values"}},coerce(e,{schema:t}){if("boolean"!=typeof e){if("string"==typeof e){const r=t._flags.sensitive?e:e.toLowerCase();e="true"===r||"false"!==r&&e}return"boolean"!=typeof e&&(e=t.$_terms.truthy&&t.$_terms.truthy.has(e,null,null,!t._flags.sensitive)||(!t.$_terms.falsy||!t.$_terms.falsy.has(e,null,null,!t._flags.sensitive))&&e),{value:e}}},validate(e,{error:t}){if("boolean"!=typeof e)return{value:e,errors:t("boolean.base")}},rules:{truthy:{method(...e){o.verifyFlat(e,"truthy");const t=this.clone();t.$_terms.truthy=t.$_terms.truthy||new s;for(let r=0;re?1:0},string:{from:i.isBool,to:(e,t)=>e?"true":"false"}},manifest:{build:(e,t)=>(t.truthy&&(e=e.truthy(...t.truthy)),t.falsy&&(e=e.falsy(...t.falsy)),e)},messages:{"boolean.base":"{{#label}} must be a boolean"}})},7500:(e,t,r)=>{"use strict";const a=r(375),n=r(8068),o=r(8160),s=r(3328),i={isDate:function(e){return e instanceof Date}};e.exports=n.extend({type:"date",coerce:{from:["number","string"],method:(e,{schema:t})=>({value:i.parse(e,t._flags.format)||e})},validate(e,{schema:t,error:r,prefs:a}){if(e instanceof Date&&!isNaN(e.getTime()))return;const n=t._flags.format;return a.convert&&n&&"string"==typeof e?{value:e,errors:r("date.format",{format:n})}:{value:e,errors:r("date.base")}},rules:{compare:{method:!1,validate(e,t,{date:r},{name:a,operator:n,args:s}){const i="now"===r?Date.now():r.getTime();return o.compare(e.getTime(),i,n)?e:t.error("date."+a,{limit:s.date,value:e})},args:[{name:"date",ref:!0,normalize:e=>"now"===e?e:i.parse(e),assert:e=>null!==e,message:"must have a valid date format"}]},format:{method(e){return a(["iso","javascript","unix"].includes(e),"Unknown date format",e),this.$_setFlag("format",e)}},greater:{method(e){return this.$_addRule({name:"greater",method:"compare",args:{date:e},operator:">"})}},iso:{method(){return this.format("iso")}},less:{method(e){return this.$_addRule({name:"less",method:"compare",args:{date:e},operator:"<"})}},max:{method(e){return this.$_addRule({name:"max",method:"compare",args:{date:e},operator:"<="})}},min:{method(e){return this.$_addRule({name:"min",method:"compare",args:{date:e},operator:">="})}},timestamp:{method(e="javascript"){return a(["javascript","unix"].includes(e),'"type" must be one of "javascript, unix"'),this.format(e)}}},cast:{number:{from:i.isDate,to:(e,t)=>e.getTime()},string:{from:i.isDate,to:(e,{prefs:t})=>s.date(e,t)}},messages:{"date.base":"{{#label}} must be a valid date","date.format":'{{#label}} must be in {msg("date.format." + #format) || #format} format',"date.greater":"{{#label}} must be greater than {{:#limit}}","date.less":"{{#label}} must be less than {{:#limit}}","date.max":"{{#label}} must be less than or equal to {{:#limit}}","date.min":"{{#label}} must be greater than or equal to {{:#limit}}","date.format.iso":"ISO 8601 date","date.format.javascript":"timestamp or number of milliseconds","date.format.unix":"timestamp or number of seconds"}}),i.parse=function(e,t){if(e instanceof Date)return e;if("string"!=typeof e&&(isNaN(e)||!isFinite(e)))return null;if(/^\s*$/.test(e))return null;if("iso"===t)return o.isIsoDate(e)?i.date(e.toString()):null;const r=e;if("string"==typeof e&&/^[+-]?\d+(\.\d+)?$/.test(e)&&(e=parseFloat(e)),t){if("javascript"===t)return i.date(1*e);if("unix"===t)return i.date(1e3*e);if("string"==typeof r)return null}return i.date(e)},i.date=function(e){const t=new Date(e);return isNaN(t.getTime())?null:t}},390:(e,t,r)=>{"use strict";const a=r(375),n=r(7824);e.exports=n.extend({type:"function",properties:{typeof:"function"},rules:{arity:{method(e){return a(Number.isSafeInteger(e)&&e>=0,"n must be a positive integer"),this.$_addRule({name:"arity",args:{n:e}})},validate:(e,t,{n:r})=>e.length===r?e:t.error("function.arity",{n:r})},class:{method(){return this.$_addRule("class")},validate:(e,t)=>/^\s*class\s/.test(e.toString())?e:t.error("function.class",{value:e})},minArity:{method(e){return a(Number.isSafeInteger(e)&&e>0,"n must be a strict positive integer"),this.$_addRule({name:"minArity",args:{n:e}})},validate:(e,t,{n:r})=>e.length>=r?e:t.error("function.minArity",{n:r})},maxArity:{method(e){return a(Number.isSafeInteger(e)&&e>=0,"n must be a positive integer"),this.$_addRule({name:"maxArity",args:{n:e}})},validate:(e,t,{n:r})=>e.length<=r?e:t.error("function.maxArity",{n:r})}},messages:{"function.arity":"{{#label}} must have an arity of {{#n}}","function.class":"{{#label}} must be a class","function.maxArity":"{{#label}} must have an arity lesser or equal to {{#n}}","function.minArity":"{{#label}} must have an arity greater or equal to {{#n}}"}})},7824:(e,t,r)=>{"use strict";const a=r(978),n=r(375),o=r(8571),s=r(3652),i=r(8068),l=r(8160),c=r(3292),u=r(6354),d=r(6133),p=r(3328),g={renameDefaults:{alias:!1,multiple:!1,override:!1}};e.exports=i.extend({type:"_keys",properties:{typeof:"object"},flags:{unknown:{default:!1}},terms:{dependencies:{init:null},keys:{init:null,manifest:{mapped:{from:"schema",to:"key"}}},patterns:{init:null},renames:{init:null}},args:(e,t)=>e.keys(t),validate(e,{schema:t,error:r,state:a,prefs:n}){if(!e||typeof e!==t.$_property("typeof")||Array.isArray(e))return{value:e,errors:r("object.base",{type:t.$_property("typeof")})};if(!(t.$_terms.renames||t.$_terms.dependencies||t.$_terms.keys||t.$_terms.patterns||t.$_terms.externals))return;e=g.clone(e,n);const o=[];if(t.$_terms.renames&&!g.rename(t,e,a,n,o))return{value:e,errors:o};if(!t.$_terms.keys&&!t.$_terms.patterns&&!t.$_terms.dependencies)return{value:e,errors:o};const s=new Set(Object.keys(e));if(t.$_terms.keys){const r=[e,...a.ancestors];for(const i of t.$_terms.keys){const t=i.key,l=e[t];s.delete(t);const c=a.localize([...a.path,t],r,i),u=i.schema.$_validate(l,c,n);if(u.errors){if(n.abortEarly)return{value:e,errors:u.errors};void 0!==u.value&&(e[t]=u.value),o.push(...u.errors)}else"strip"===i.schema._flags.result||void 0===u.value&&void 0!==l?delete e[t]:void 0!==u.value&&(e[t]=u.value)}}if(s.size||t._flags._hasPatternMatch){const r=g.unknown(t,e,s,o,a,n);if(r)return r}if(t.$_terms.dependencies)for(const r of t.$_terms.dependencies){if(null!==r.key&&!1===g.isPresent(r.options)(r.key.resolve(e,a,n,null,{shadow:!1})))continue;const s=g.dependencies[r.rel](t,r,e,a,n);if(s){const r=t.$_createError(s.code,e,s.context,a,n);if(n.abortEarly)return{value:e,errors:r};o.push(r)}}return{value:e,errors:o}},rules:{and:{method(...e){return l.verifyFlat(e,"and"),g.dependency(this,"and",null,e)}},append:{method(e){return null==e||0===Object.keys(e).length?this:this.keys(e)}},assert:{method(e,t,r){p.isTemplate(e)||(e=c.ref(e)),n(void 0===r||"string"==typeof r,"Message must be a string"),t=this.$_compile(t,{appendPath:!0});const a=this.$_addRule({name:"assert",args:{subject:e,schema:t,message:r}});return a.$_mutateRegister(e),a.$_mutateRegister(t),a},validate(e,{error:t,prefs:r,state:a},{subject:n,schema:o,message:s}){const i=n.resolve(e,a,r),l=d.isRef(n)?n.absolute(a):[];return o.$_match(i,a.localize(l,[e,...a.ancestors],o),r)?e:t("object.assert",{subject:n,message:s})},args:["subject","schema","message"],multi:!0},instance:{method(e,t){return n("function"==typeof e,"constructor must be a function"),t=t||e.name,this.$_addRule({name:"instance",args:{constructor:e,name:t}})},validate:(e,t,{constructor:r,name:a})=>e instanceof r?e:t.error("object.instance",{type:a,value:e}),args:["constructor","name"]},keys:{method(e){n(void 0===e||"object"==typeof e,"Object schema must be a valid object"),n(!l.isSchema(e),"Object schema cannot be a joi schema");const t=this.clone();if(e)if(Object.keys(e).length){t.$_terms.keys=t.$_terms.keys?t.$_terms.keys.filter((t=>!e.hasOwnProperty(t.key))):new g.Keys;for(const r in e)l.tryWithPath((()=>t.$_terms.keys.push({key:r,schema:this.$_compile(e[r])})),r)}else t.$_terms.keys=new g.Keys;else t.$_terms.keys=null;return t.$_mutateRebuild()}},length:{method(e){return this.$_addRule({name:"length",args:{limit:e},operator:"="})},validate:(e,t,{limit:r},{name:a,operator:n,args:o})=>l.compare(Object.keys(e).length,r,n)?e:t.error("object."+a,{limit:o.limit,value:e}),args:[{name:"limit",ref:!0,assert:l.limit,message:"must be a positive integer"}]},max:{method(e){return this.$_addRule({name:"max",method:"length",args:{limit:e},operator:"<="})}},min:{method(e){return this.$_addRule({name:"min",method:"length",args:{limit:e},operator:">="})}},nand:{method(...e){return l.verifyFlat(e,"nand"),g.dependency(this,"nand",null,e)}},or:{method(...e){return l.verifyFlat(e,"or"),g.dependency(this,"or",null,e)}},oxor:{method(...e){return g.dependency(this,"oxor",null,e)}},pattern:{method(e,t,r={}){const a=e instanceof RegExp;a||(e=this.$_compile(e,{appendPath:!0})),n(void 0!==t,"Invalid rule"),l.assertOptions(r,["fallthrough","matches"]),a&&n(!e.flags.includes("g")&&!e.flags.includes("y"),"pattern should not use global or sticky mode"),t=this.$_compile(t,{appendPath:!0});const o=this.clone();o.$_terms.patterns=o.$_terms.patterns||[];const s={[a?"regex":"schema"]:e,rule:t};return r.matches&&(s.matches=this.$_compile(r.matches),"array"!==s.matches.type&&(s.matches=s.matches.$_root.array().items(s.matches)),o.$_mutateRegister(s.matches),o.$_setFlag("_hasPatternMatch",!0,{clone:!1})),r.fallthrough&&(s.fallthrough=!0),o.$_terms.patterns.push(s),o.$_mutateRegister(t),o}},ref:{method(){return this.$_addRule("ref")},validate:(e,t)=>d.isRef(e)?e:t.error("object.refType",{value:e})},regex:{method(){return this.$_addRule("regex")},validate:(e,t)=>e instanceof RegExp?e:t.error("object.regex",{value:e})},rename:{method(e,t,r={}){n("string"==typeof e||e instanceof RegExp,"Rename missing the from argument"),n("string"==typeof t||t instanceof p,"Invalid rename to argument"),n(t!==e,"Cannot rename key to same name:",e),l.assertOptions(r,["alias","ignoreUndefined","override","multiple"]);const o=this.clone();o.$_terms.renames=o.$_terms.renames||[];for(const t of o.$_terms.renames)n(t.from!==e,"Cannot rename the same key multiple times");return t instanceof p&&o.$_mutateRegister(t),o.$_terms.renames.push({from:e,to:t,options:a(g.renameDefaults,r)}),o}},schema:{method(e="any"){return this.$_addRule({name:"schema",args:{type:e}})},validate:(e,t,{type:r})=>!l.isSchema(e)||"any"!==r&&e.type!==r?t.error("object.schema",{type:r}):e},unknown:{method(e){return this.$_setFlag("unknown",!1!==e)}},with:{method(e,t,r={}){return g.dependency(this,"with",e,t,r)}},without:{method(e,t,r={}){return g.dependency(this,"without",e,t,r)}},xor:{method(...e){return l.verifyFlat(e,"xor"),g.dependency(this,"xor",null,e)}}},overrides:{default(e,t){return void 0===e&&(e=l.symbols.deepDefault),this.$_parent("default",e,t)}},rebuild(e){if(e.$_terms.keys){const t=new s.Sorter;for(const r of e.$_terms.keys)l.tryWithPath((()=>t.add(r,{after:r.schema.$_rootReferences(),group:r.key})),r.key);e.$_terms.keys=new g.Keys(...t.nodes)}},manifest:{build(e,t){if(t.keys&&(e=e.keys(t.keys)),t.dependencies)for(const{rel:r,key:a=null,peers:n,options:o}of t.dependencies)e=g.dependency(e,r,a,n,o);if(t.patterns)for(const{regex:r,schema:a,rule:n,fallthrough:o,matches:s}of t.patterns)e=e.pattern(r||a,n,{fallthrough:o,matches:s});if(t.renames)for(const{from:r,to:a,options:n}of t.renames)e=e.rename(r,a,n);return e}},messages:{"object.and":"{{#label}} contains {{#presentWithLabels}} without its required peers {{#missingWithLabels}}","object.assert":'{{#label}} is invalid because {if(#subject.key, `"` + #subject.key + `" failed to ` + (#message || "pass the assertion test"), #message || "the assertion failed")}',"object.base":"{{#label}} must be of type {{#type}}","object.instance":"{{#label}} must be an instance of {{:#type}}","object.length":'{{#label}} must have {{#limit}} key{if(#limit == 1, "", "s")}',"object.max":'{{#label}} must have less than or equal to {{#limit}} key{if(#limit == 1, "", "s")}',"object.min":'{{#label}} must have at least {{#limit}} key{if(#limit == 1, "", "s")}',"object.missing":"{{#label}} must contain at least one of {{#peersWithLabels}}","object.nand":"{{:#mainWithLabel}} must not exist simultaneously with {{#peersWithLabels}}","object.oxor":"{{#label}} contains a conflict between optional exclusive peers {{#peersWithLabels}}","object.pattern.match":"{{#label}} keys failed to match pattern requirements","object.refType":"{{#label}} must be a Joi reference","object.regex":"{{#label}} must be a RegExp object","object.rename.multiple":"{{#label}} cannot rename {{:#from}} because multiple renames are disabled and another key was already renamed to {{:#to}}","object.rename.override":"{{#label}} cannot rename {{:#from}} because override is disabled and target {{:#to}} exists","object.schema":"{{#label}} must be a Joi schema of {{#type}} type","object.unknown":"{{#label}} is not allowed","object.with":"{{:#mainWithLabel}} missing required peer {{:#peerWithLabel}}","object.without":"{{:#mainWithLabel}} conflict with forbidden peer {{:#peerWithLabel}}","object.xor":"{{#label}} contains a conflict between exclusive peers {{#peersWithLabels}}"}}),g.clone=function(e,t){if("object"==typeof e){if(t.nonEnumerables)return o(e,{shallow:!0});const r=Object.create(Object.getPrototypeOf(e));return Object.assign(r,e),r}const r=function(...t){return e.apply(this,t)};return r.prototype=o(e.prototype),Object.defineProperty(r,"name",{value:e.name,writable:!1}),Object.defineProperty(r,"length",{value:e.length,writable:!1}),Object.assign(r,e),r},g.dependency=function(e,t,r,a,o){n(null===r||"string"==typeof r,t,"key must be a strings"),o||(o=a.length>1&&"object"==typeof a[a.length-1]?a.pop():{}),l.assertOptions(o,["separator","isPresent"]),a=[].concat(a);const s=l.default(o.separator,"."),i=[];for(const e of a)n("string"==typeof e,t,"peers must be strings"),i.push(c.ref(e,{separator:s,ancestor:0,prefix:!1}));null!==r&&(r=c.ref(r,{separator:s,ancestor:0,prefix:!1}));const u=e.clone();return u.$_terms.dependencies=u.$_terms.dependencies||[],u.$_terms.dependencies.push(new g.Dependency(t,r,i,a,o)),u},g.dependencies={and(e,t,r,a,n){const o=[],s=[],i=t.peers.length,l=g.isPresent(t.options);for(const e of t.peers)!1===l(e.resolve(r,a,n,null,{shadow:!1}))?o.push(e.key):s.push(e.key);if(o.length!==i&&s.length!==i)return{code:"object.and",context:{present:s,presentWithLabels:g.keysToLabels(e,s),missing:o,missingWithLabels:g.keysToLabels(e,o)}}},nand(e,t,r,a,n){const o=[],s=g.isPresent(t.options);for(const e of t.peers)s(e.resolve(r,a,n,null,{shadow:!1}))&&o.push(e.key);if(o.length!==t.peers.length)return;const i=t.paths[0],l=t.paths.slice(1);return{code:"object.nand",context:{main:i,mainWithLabel:g.keysToLabels(e,i),peers:l,peersWithLabels:g.keysToLabels(e,l)}}},or(e,t,r,a,n){const o=g.isPresent(t.options);for(const e of t.peers)if(o(e.resolve(r,a,n,null,{shadow:!1})))return;return{code:"object.missing",context:{peers:t.paths,peersWithLabels:g.keysToLabels(e,t.paths)}}},oxor(e,t,r,a,n){const o=[],s=g.isPresent(t.options);for(const e of t.peers)s(e.resolve(r,a,n,null,{shadow:!1}))&&o.push(e.key);if(!o.length||1===o.length)return;const i={peers:t.paths,peersWithLabels:g.keysToLabels(e,t.paths)};return i.present=o,i.presentWithLabels=g.keysToLabels(e,o),{code:"object.oxor",context:i}},with(e,t,r,a,n){const o=g.isPresent(t.options);for(const s of t.peers)if(!1===o(s.resolve(r,a,n,null,{shadow:!1})))return{code:"object.with",context:{main:t.key.key,mainWithLabel:g.keysToLabels(e,t.key.key),peer:s.key,peerWithLabel:g.keysToLabels(e,s.key)}}},without(e,t,r,a,n){const o=g.isPresent(t.options);for(const s of t.peers)if(o(s.resolve(r,a,n,null,{shadow:!1})))return{code:"object.without",context:{main:t.key.key,mainWithLabel:g.keysToLabels(e,t.key.key),peer:s.key,peerWithLabel:g.keysToLabels(e,s.key)}}},xor(e,t,r,a,n){const o=[],s=g.isPresent(t.options);for(const e of t.peers)s(e.resolve(r,a,n,null,{shadow:!1}))&&o.push(e.key);if(1===o.length)return;const i={peers:t.paths,peersWithLabels:g.keysToLabels(e,t.paths)};return 0===o.length?{code:"object.missing",context:i}:(i.present=o,i.presentWithLabels=g.keysToLabels(e,o),{code:"object.xor",context:i})}},g.keysToLabels=function(e,t){return Array.isArray(t)?t.map((t=>e.$_mapLabels(t))):e.$_mapLabels(t)},g.isPresent=function(e){return"function"==typeof e.isPresent?e.isPresent:e=>void 0!==e},g.rename=function(e,t,r,a,n){const o={};for(const s of e.$_terms.renames){const i=[],l="string"!=typeof s.from;if(l)for(const e in t){if(void 0===t[e]&&s.options.ignoreUndefined)continue;if(e===s.to)continue;const r=s.from.exec(e);r&&i.push({from:e,to:s.to,match:r})}else!Object.prototype.hasOwnProperty.call(t,s.from)||void 0===t[s.from]&&s.options.ignoreUndefined||i.push(s);for(const c of i){const i=c.from;let u=c.to;if(u instanceof p&&(u=u.render(t,r,a,c.match)),i!==u){if(!s.options.multiple&&o[u]&&(n.push(e.$_createError("object.rename.multiple",t,{from:i,to:u,pattern:l},r,a)),a.abortEarly))return!1;if(Object.prototype.hasOwnProperty.call(t,u)&&!s.options.override&&!o[u]&&(n.push(e.$_createError("object.rename.override",t,{from:i,to:u,pattern:l},r,a)),a.abortEarly))return!1;void 0===t[i]?delete t[u]:t[u]=t[i],o[u]=!0,s.options.alias||delete t[i]}}}return!0},g.unknown=function(e,t,r,a,n,o){if(e.$_terms.patterns){let s=!1;const i=e.$_terms.patterns.map((e=>{if(e.matches)return s=!0,[]})),l=[t,...n.ancestors];for(const s of r){const c=t[s],u=[...n.path,s];for(let d=0;d{"use strict";const a=r(375),n=r(8068),o=r(8160),s=r(3292),i=r(6354),l={};e.exports=n.extend({type:"link",properties:{schemaChain:!0},terms:{link:{init:null,manifest:"single",register:!1}},args:(e,t)=>e.ref(t),validate(e,{schema:t,state:r,prefs:n}){a(t.$_terms.link,"Uninitialized link schema");const o=l.generate(t,e,r,n),s=t.$_terms.link[0].ref;return o.$_validate(e,r.nest(o,`link:${s.display}:${o.type}`),n)},generate:(e,t,r,a)=>l.generate(e,t,r,a),rules:{ref:{method(e){a(!this.$_terms.link,"Cannot reinitialize schema"),e=s.ref(e),a("value"===e.type||"local"===e.type,"Invalid reference type:",e.type),a("local"===e.type||"root"===e.ancestor||e.ancestor>0,"Link cannot reference itself");const t=this.clone();return t.$_terms.link=[{ref:e}],t}},relative:{method(e=!0){return this.$_setFlag("relative",e)}}},overrides:{concat(e){a(this.$_terms.link,"Uninitialized link schema"),a(o.isSchema(e),"Invalid schema object"),a("link"!==e.type,"Cannot merge type link with another link");const t=this.clone();return t.$_terms.whens||(t.$_terms.whens=[]),t.$_terms.whens.push({concat:e}),t.$_mutateRebuild()}},manifest:{build:(e,t)=>(a(t.link,"Invalid link description missing link"),e.ref(t.link))}}),l.generate=function(e,t,r,a){let n=r.mainstay.links.get(e);if(n)return n._generate(t,r,a).schema;const o=e.$_terms.link[0].ref,{perspective:s,path:i}=l.perspective(o,r);l.assert(s,"which is outside of schema boundaries",o,e,r,a);try{n=i.length?s.$_reach(i):s}catch(t){l.assert(!1,"to non-existing schema",o,e,r,a)}return l.assert("link"!==n.type,"which is another link",o,e,r,a),e._flags.relative||r.mainstay.links.set(e,n),n._generate(t,r,a).schema},l.perspective=function(e,t){if("local"===e.type){for(const{schema:r,key:a}of t.schemas){if((r._flags.id||a)===e.path[0])return{perspective:r,path:e.path.slice(1)};if(r.$_terms.shared)for(const t of r.$_terms.shared)if(t._flags.id===e.path[0])return{perspective:t,path:e.path.slice(1)}}return{perspective:null,path:null}}return"root"===e.ancestor?{perspective:t.schemas[t.schemas.length-1].schema,path:e.path}:{perspective:t.schemas[e.ancestor]&&t.schemas[e.ancestor].schema,path:e.path}},l.assert=function(e,t,r,n,o,s){e||a(!1,`"${i.label(n._flags,o,s)}" contains link reference "${r.display}" ${t}`)}},3832:(e,t,r)=>{"use strict";const a=r(375),n=r(8068),o=r(8160),s={numberRx:/^\s*[+-]?(?:(?:\d+(?:\.\d*)?)|(?:\.\d+))(?:e([+-]?\d+))?\s*$/i,precisionRx:/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/,exponentialPartRegex:/[eE][+-]?\d+$/,leadingSignAndZerosRegex:/^[+-]?(0*)?/,dotRegex:/\./,trailingZerosRegex:/0+$/,decimalPlaces(e){const t=e.toString(),r=t.indexOf("."),a=t.indexOf("e");return(r<0?0:(a<0?t.length:a)-r-1)+(a<0?0:Math.max(0,-parseInt(t.slice(a+1))))}};e.exports=n.extend({type:"number",flags:{unsafe:{default:!1}},coerce:{from:"string",method(e,{schema:t,error:r}){if(!e.match(s.numberRx))return;e=e.trim();const a={value:parseFloat(e)};if(0===a.value&&(a.value=0),!t._flags.unsafe)if(e.match(/e/i)){if(s.extractSignificantDigits(e)!==s.extractSignificantDigits(String(a.value)))return a.errors=r("number.unsafe"),a}else{const t=a.value.toString();if(t.match(/e/i))return a;if(t!==s.normalizeDecimal(e))return a.errors=r("number.unsafe"),a}return a}},validate(e,{schema:t,error:r,prefs:a}){if(e===1/0||e===-1/0)return{value:e,errors:r("number.infinity")};if(!o.isNumber(e))return{value:e,errors:r("number.base")};const n={value:e};if(a.convert){const e=t.$_getRule("precision");if(e){const t=Math.pow(10,e.args.limit);n.value=Math.round(n.value*t)/t}}return 0===n.value&&(n.value=0),!t._flags.unsafe&&(e>Number.MAX_SAFE_INTEGER||eo.compare(e,r,n)?e:t.error("number."+a,{limit:s.limit,value:e}),args:[{name:"limit",ref:!0,assert:o.isNumber,message:"must be a number"}]},greater:{method(e){return this.$_addRule({name:"greater",method:"compare",args:{limit:e},operator:">"})}},integer:{method(){return this.$_addRule("integer")},validate:(e,t)=>Math.trunc(e)-e==0?e:t.error("number.integer")},less:{method(e){return this.$_addRule({name:"less",method:"compare",args:{limit:e},operator:"<"})}},max:{method(e){return this.$_addRule({name:"max",method:"compare",args:{limit:e},operator:"<="})}},min:{method(e){return this.$_addRule({name:"min",method:"compare",args:{limit:e},operator:">="})}},multiple:{method(e){const t="number"==typeof e?s.decimalPlaces(e):null,r=Math.pow(10,t);return this.$_addRule({name:"multiple",args:{base:e,baseDecimalPlace:t,pfactor:r}})},validate:(e,t,{base:r,baseDecimalPlace:a,pfactor:n},o)=>s.decimalPlaces(e)>a?t.error("number.multiple",{multiple:o.args.base,value:e}):Math.round(n*e)%Math.round(n*r)==0?e:t.error("number.multiple",{multiple:o.args.base,value:e}),args:[{name:"base",ref:!0,assert:e=>"number"==typeof e&&isFinite(e)&&e>0,message:"must be a positive number"},"baseDecimalPlace","pfactor"],multi:!0},negative:{method(){return this.sign("negative")}},port:{method(){return this.$_addRule("port")},validate:(e,t)=>Number.isSafeInteger(e)&&e>=0&&e<=65535?e:t.error("number.port")},positive:{method(){return this.sign("positive")}},precision:{method(e){return a(Number.isSafeInteger(e),"limit must be an integer"),this.$_addRule({name:"precision",args:{limit:e}})},validate(e,t,{limit:r}){const a=e.toString().match(s.precisionRx);return Math.max((a[1]?a[1].length:0)-(a[2]?parseInt(a[2],10):0),0)<=r?e:t.error("number.precision",{limit:r,value:e})},convert:!0},sign:{method(e){return a(["negative","positive"].includes(e),"Invalid sign",e),this.$_addRule({name:"sign",args:{sign:e}})},validate:(e,t,{sign:r})=>"negative"===r&&e<0||"positive"===r&&e>0?e:t.error(`number.${r}`)},unsafe:{method(e=!0){return a("boolean"==typeof e,"enabled must be a boolean"),this.$_setFlag("unsafe",e)}}},cast:{string:{from:e=>"number"==typeof e,to:(e,t)=>e.toString()}},messages:{"number.base":"{{#label}} must be a number","number.greater":"{{#label}} must be greater than {{#limit}}","number.infinity":"{{#label}} cannot be infinity","number.integer":"{{#label}} must be an integer","number.less":"{{#label}} must be less than {{#limit}}","number.max":"{{#label}} must be less than or equal to {{#limit}}","number.min":"{{#label}} must be greater than or equal to {{#limit}}","number.multiple":"{{#label}} must be a multiple of {{#multiple}}","number.negative":"{{#label}} must be a negative number","number.port":"{{#label}} must be a valid port","number.positive":"{{#label}} must be a positive number","number.precision":"{{#label}} must have no more than {{#limit}} decimal places","number.unsafe":"{{#label}} must be a safe number"}}),s.extractSignificantDigits=function(e){return e.replace(s.exponentialPartRegex,"").replace(s.dotRegex,"").replace(s.trailingZerosRegex,"").replace(s.leadingSignAndZerosRegex,"")},s.normalizeDecimal=function(e){return(e=e.replace(/^\+/,"").replace(/\.0*$/,"").replace(/^(-?)\.([^\.]*)$/,"$10.$2").replace(/^(-?)0+([0-9])/,"$1$2")).includes(".")&&e.endsWith("0")&&(e=e.replace(/0+$/,"")),"-0"===e?"0":e}},8966:(e,t,r)=>{"use strict";const a=r(7824);e.exports=a.extend({type:"object",cast:{map:{from:e=>e&&"object"==typeof e,to:(e,t)=>new Map(Object.entries(e))}}})},7417:(e,t,r)=>{"use strict";const a=r(375),n=r(5380),o=r(1745),s=r(9959),i=r(6064),l=r(9926),c=r(5752),u=r(8068),d=r(8160),p={tlds:l instanceof Set&&{tlds:{allow:l,deny:null}},base64Regex:{true:{true:/^(?:[\w\-]{2}[\w\-]{2})*(?:[\w\-]{2}==|[\w\-]{3}=)?$/,false:/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/},false:{true:/^(?:[\w\-]{2}[\w\-]{2})*(?:[\w\-]{2}(==)?|[\w\-]{3}=?)?$/,false:/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}(==)?|[A-Za-z0-9+\/]{3}=?)?$/}},dataUriRegex:/^data:[\w+.-]+\/[\w+.-]+;((charset=[\w-]+|base64),)?(.*)$/,hexRegex:{withPrefix:/^0x[0-9a-f]+$/i,withOptionalPrefix:/^(?:0x)?[0-9a-f]+$/i,withoutPrefix:/^[0-9a-f]+$/i},ipRegex:s.regex({cidr:"forbidden"}).regex,isoDurationRegex:/^P(?!$)(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?$/,guidBrackets:{"{":"}","[":"]","(":")","":""},guidVersions:{uuidv1:"1",uuidv2:"2",uuidv3:"3",uuidv4:"4",uuidv5:"5",uuidv6:"6",uuidv7:"7",uuidv8:"8"},guidSeparators:new Set([void 0,!0,!1,"-",":"]),normalizationForms:["NFC","NFD","NFKC","NFKD"]};e.exports=u.extend({type:"string",flags:{insensitive:{default:!1},truncate:{default:!1}},terms:{replacements:{init:null}},coerce:{from:"string",method(e,{schema:t,state:r,prefs:a}){const n=t.$_getRule("normalize");n&&(e=e.normalize(n.args.form));const o=t.$_getRule("case");o&&(e="upper"===o.args.direction?e.toLocaleUpperCase():e.toLocaleLowerCase());const s=t.$_getRule("trim");if(s&&s.args.enabled&&(e=e.trim()),t.$_terms.replacements)for(const r of t.$_terms.replacements)e=e.replace(r.pattern,r.replacement);const i=t.$_getRule("hex");if(i&&i.args.options.byteAligned&&e.length%2!=0&&(e=`0${e}`),t.$_getRule("isoDate")){const t=p.isoDate(e);t&&(e=t)}if(t._flags.truncate){const n=t.$_getRule("max");if(n){let o=n.args.limit;if(d.isResolvable(o)&&(o=o.resolve(e,r,a),!d.limit(o)))return{value:e,errors:t.$_createError("any.ref",o,{ref:n.args.limit,arg:"limit",reason:"must be a positive integer"},r,a)};e=e.slice(0,o)}}return{value:e}}},validate(e,{schema:t,error:r}){if("string"!=typeof e)return{value:e,errors:r("string.base")};if(""===e){const a=t.$_getRule("min");if(a&&0===a.args.limit)return;return{value:e,errors:r("string.empty")}}},rules:{alphanum:{method(){return this.$_addRule("alphanum")},validate:(e,t)=>/^[a-zA-Z0-9]+$/.test(e)?e:t.error("string.alphanum")},base64:{method(e={}){return d.assertOptions(e,["paddingRequired","urlSafe"]),e={urlSafe:!1,paddingRequired:!0,...e},a("boolean"==typeof e.paddingRequired,"paddingRequired must be boolean"),a("boolean"==typeof e.urlSafe,"urlSafe must be boolean"),this.$_addRule({name:"base64",args:{options:e}})},validate:(e,t,{options:r})=>p.base64Regex[r.paddingRequired][r.urlSafe].test(e)?e:t.error("string.base64")},case:{method(e){return a(["lower","upper"].includes(e),"Invalid case:",e),this.$_addRule({name:"case",args:{direction:e}})},validate:(e,t,{direction:r})=>"lower"===r&&e===e.toLocaleLowerCase()||"upper"===r&&e===e.toLocaleUpperCase()?e:t.error(`string.${r}case`),convert:!0},creditCard:{method(){return this.$_addRule("creditCard")},validate(e,t){let r=e.length,a=0,n=1;for(;r--;){const t=e.charAt(r)*n;a+=t-9*(t>9),n^=3}return a>0&&a%10==0?e:t.error("string.creditCard")}},dataUri:{method(e={}){return d.assertOptions(e,["paddingRequired"]),e={paddingRequired:!0,...e},a("boolean"==typeof e.paddingRequired,"paddingRequired must be boolean"),this.$_addRule({name:"dataUri",args:{options:e}})},validate(e,t,{options:r}){const a=e.match(p.dataUriRegex);if(a){if(!a[2])return e;if("base64"!==a[2])return e;if(p.base64Regex[r.paddingRequired].false.test(a[3]))return e}return t.error("string.dataUri")}},domain:{method(e){e&&d.assertOptions(e,["allowFullyQualified","allowUnicode","maxDomainSegments","minDomainSegments","tlds"]);const t=p.addressOptions(e);return this.$_addRule({name:"domain",args:{options:e},address:t})},validate:(e,t,r,{address:a})=>n.isValid(e,a)?e:t.error("string.domain")},email:{method(e={}){d.assertOptions(e,["allowFullyQualified","allowUnicode","ignoreLength","maxDomainSegments","minDomainSegments","multiple","separator","tlds"]),a(void 0===e.multiple||"boolean"==typeof e.multiple,"multiple option must be an boolean");const t=p.addressOptions(e),r=new RegExp(`\\s*[${e.separator?i(e.separator):","}]\\s*`);return this.$_addRule({name:"email",args:{options:e},regex:r,address:t})},validate(e,t,{options:r},{regex:a,address:n}){const s=r.multiple?e.split(a):[e],i=[];for(const e of s)o.isValid(e,n)||i.push(e);return i.length?t.error("string.email",{value:e,invalids:i}):e}},guid:{alias:"uuid",method(e={}){d.assertOptions(e,["version","separator"]);let t="";if(e.version){const r=[].concat(e.version);a(r.length>=1,"version must have at least 1 valid version specified");const n=new Set;for(let e=0;e("optional"===r.prefix?p.hexRegex.withOptionalPrefix:!0===r.prefix?p.hexRegex.withPrefix:p.hexRegex.withoutPrefix).test(e)?r.byteAligned&&e.length%2!=0?t.error("string.hexAlign"):e:t.error("string.hex")},hostname:{method(){return this.$_addRule("hostname")},validate:(e,t)=>n.isValid(e,{minDomainSegments:1})||p.ipRegex.test(e)?e:t.error("string.hostname")},insensitive:{method(){return this.$_setFlag("insensitive",!0)}},ip:{method(e={}){d.assertOptions(e,["cidr","version"]);const{cidr:t,versions:r,regex:a}=s.regex(e),n=e.version?r:void 0;return this.$_addRule({name:"ip",args:{options:{cidr:t,version:n}},regex:a})},validate:(e,t,{options:r},{regex:a})=>a.test(e)?e:r.version?t.error("string.ipVersion",{value:e,cidr:r.cidr,version:r.version}):t.error("string.ip",{value:e,cidr:r.cidr})},isoDate:{method(){return this.$_addRule("isoDate")},validate:(e,{error:t})=>p.isoDate(e)?e:t("string.isoDate")},isoDuration:{method(){return this.$_addRule("isoDuration")},validate:(e,t)=>p.isoDurationRegex.test(e)?e:t.error("string.isoDuration")},length:{method(e,t){return p.length(this,"length",e,"=",t)},validate(e,t,{limit:r,encoding:a},{name:n,operator:o,args:s}){const i=!a&&e.length;return d.compare(i,r,o)?e:t.error("string."+n,{limit:s.limit,value:e,encoding:a})},args:[{name:"limit",ref:!0,assert:d.limit,message:"must be a positive integer"},"encoding"]},lowercase:{method(){return this.case("lower")}},max:{method(e,t){return p.length(this,"max",e,"<=",t)},args:["limit","encoding"]},min:{method(e,t){return p.length(this,"min",e,">=",t)},args:["limit","encoding"]},normalize:{method(e="NFC"){return a(p.normalizationForms.includes(e),"normalization form must be one of "+p.normalizationForms.join(", ")),this.$_addRule({name:"normalize",args:{form:e}})},validate:(e,{error:t},{form:r})=>e===e.normalize(r)?e:t("string.normalize",{value:e,form:r}),convert:!0},pattern:{alias:"regex",method(e,t={}){a(e instanceof RegExp,"regex must be a RegExp"),a(!e.flags.includes("g")&&!e.flags.includes("y"),"regex should not use global or sticky mode"),"string"==typeof t&&(t={name:t}),d.assertOptions(t,["invert","name"]);const r=["string.pattern",t.invert?".invert":"",t.name?".name":".base"].join("");return this.$_addRule({name:"pattern",args:{regex:e,options:t},errorCode:r})},validate:(e,t,{regex:r,options:a},{errorCode:n})=>r.test(e)^a.invert?e:t.error(n,{name:a.name,regex:r,value:e}),args:["regex","options"],multi:!0},replace:{method(e,t){"string"==typeof e&&(e=new RegExp(i(e),"g")),a(e instanceof RegExp,"pattern must be a RegExp"),a("string"==typeof t,"replacement must be a String");const r=this.clone();return r.$_terms.replacements||(r.$_terms.replacements=[]),r.$_terms.replacements.push({pattern:e,replacement:t}),r}},token:{method(){return this.$_addRule("token")},validate:(e,t)=>/^\w+$/.test(e)?e:t.error("string.token")},trim:{method(e=!0){return a("boolean"==typeof e,"enabled must be a boolean"),this.$_addRule({name:"trim",args:{enabled:e}})},validate:(e,t,{enabled:r})=>r&&e!==e.trim()?t.error("string.trim"):e,convert:!0},truncate:{method(e=!0){return a("boolean"==typeof e,"enabled must be a boolean"),this.$_setFlag("truncate",e)}},uppercase:{method(){return this.case("upper")}},uri:{method(e={}){d.assertOptions(e,["allowRelative","allowQuerySquareBrackets","domain","relativeOnly","scheme"]),e.domain&&d.assertOptions(e.domain,["allowFullyQualified","allowUnicode","maxDomainSegments","minDomainSegments","tlds"]);const{regex:t,scheme:r}=c.regex(e),a=e.domain?p.addressOptions(e.domain):null;return this.$_addRule({name:"uri",args:{options:e},regex:t,domain:a,scheme:r})},validate(e,t,{options:r},{regex:a,domain:o,scheme:s}){if(["http:/","https:/"].includes(e))return t.error("string.uri");const i=a.exec(e);if(i){const a=i[1]||i[2];return!o||r.allowRelative&&!a||n.isValid(a,o)?e:t.error("string.domain",{value:a})}return r.relativeOnly?t.error("string.uriRelativeOnly"):r.scheme?t.error("string.uriCustomScheme",{scheme:s,value:e}):t.error("string.uri")}}},manifest:{build(e,t){if(t.replacements)for(const{pattern:r,replacement:a}of t.replacements)e=e.replace(r,a);return e}},messages:{"string.alphanum":"{{#label}} must only contain alpha-numeric characters","string.base":"{{#label}} must be a string","string.base64":"{{#label}} must be a valid base64 string","string.creditCard":"{{#label}} must be a credit card","string.dataUri":"{{#label}} must be a valid dataUri string","string.domain":"{{#label}} must contain a valid domain name","string.email":"{{#label}} must be a valid email","string.empty":"{{#label}} is not allowed to be empty","string.guid":"{{#label}} must be a valid GUID","string.hex":"{{#label}} must only contain hexadecimal characters","string.hexAlign":"{{#label}} hex decoded representation must be byte aligned","string.hostname":"{{#label}} must be a valid hostname","string.ip":"{{#label}} must be a valid ip address with a {{#cidr}} CIDR","string.ipVersion":"{{#label}} must be a valid ip address of one of the following versions {{#version}} with a {{#cidr}} CIDR","string.isoDate":"{{#label}} must be in iso format","string.isoDuration":"{{#label}} must be a valid ISO 8601 duration","string.length":"{{#label}} length must be {{#limit}} characters long","string.lowercase":"{{#label}} must only contain lowercase characters","string.max":"{{#label}} length must be less than or equal to {{#limit}} characters long","string.min":"{{#label}} length must be at least {{#limit}} characters long","string.normalize":"{{#label}} must be unicode normalized in the {{#form}} form","string.token":"{{#label}} must only contain alpha-numeric and underscore characters","string.pattern.base":"{{#label}} with value {:[.]} fails to match the required pattern: {{#regex}}","string.pattern.name":"{{#label}} with value {:[.]} fails to match the {{#name}} pattern","string.pattern.invert.base":"{{#label}} with value {:[.]} matches the inverted pattern: {{#regex}}","string.pattern.invert.name":"{{#label}} with value {:[.]} matches the inverted {{#name}} pattern","string.trim":"{{#label}} must not have leading or trailing whitespace","string.uri":"{{#label}} must be a valid uri","string.uriCustomScheme":"{{#label}} must be a valid uri with a scheme matching the {{#scheme}} pattern","string.uriRelativeOnly":"{{#label}} must be a valid relative uri","string.uppercase":"{{#label}} must only contain uppercase characters"}}),p.addressOptions=function(e){if(!e)return p.tlds||e;if(a(void 0===e.minDomainSegments||Number.isSafeInteger(e.minDomainSegments)&&e.minDomainSegments>0,"minDomainSegments must be a positive integer"),a(void 0===e.maxDomainSegments||Number.isSafeInteger(e.maxDomainSegments)&&e.maxDomainSegments>0,"maxDomainSegments must be a positive integer"),!1===e.tlds)return e;if(!0===e.tlds||void 0===e.tlds)return a(p.tlds,"Built-in TLD list disabled"),Object.assign({},e,p.tlds);a("object"==typeof e.tlds,"tlds must be true, false, or an object");const t=e.tlds.deny;if(t)return Array.isArray(t)&&(e=Object.assign({},e,{tlds:{deny:new Set(t)}})),a(e.tlds.deny instanceof Set,"tlds.deny must be an array, Set, or boolean"),a(!e.tlds.allow,"Cannot specify both tlds.allow and tlds.deny lists"),p.validateTlds(e.tlds.deny,"tlds.deny"),e;const r=e.tlds.allow;return r?!0===r?(a(p.tlds,"Built-in TLD list disabled"),Object.assign({},e,p.tlds)):(Array.isArray(r)&&(e=Object.assign({},e,{tlds:{allow:new Set(r)}})),a(e.tlds.allow instanceof Set,"tlds.allow must be an array, Set, or boolean"),p.validateTlds(e.tlds.allow,"tlds.allow"),e):e},p.validateTlds=function(e,t){for(const r of e)a(n.isValid(r,{minDomainSegments:1,maxDomainSegments:1}),`${t} must contain valid top level domain names`)},p.isoDate=function(e){if(!d.isIsoDate(e))return null;/.*T.*[+-]\d\d$/.test(e)&&(e+="00");const t=new Date(e);return isNaN(t.getTime())?null:t.toISOString()},p.length=function(e,t,r,n,o){return a(!o||!1,"Invalid encoding:",o),e.$_addRule({name:t,method:"length",args:{limit:r,encoding:o},operator:n})}},8826:(e,t,r)=>{"use strict";const a=r(375),n=r(8068),o={};o.Map=class extends Map{slice(){return new o.Map(this)}},e.exports=n.extend({type:"symbol",terms:{map:{init:new o.Map}},coerce:{method(e,{schema:t,error:r}){const a=t.$_terms.map.get(e);return a&&(e=a),t._flags.only&&"symbol"!=typeof e?{value:e,errors:r("symbol.map",{map:t.$_terms.map})}:{value:e}}},validate(e,{error:t}){if("symbol"!=typeof e)return{value:e,errors:t("symbol.base")}},rules:{map:{method(e){e&&!e[Symbol.iterator]&&"object"==typeof e&&(e=Object.entries(e)),a(e&&e[Symbol.iterator],"Iterable must be an iterable or object");const t=this.clone(),r=[];for(const n of e){a(n&&n[Symbol.iterator],"Entry must be an iterable");const[e,o]=n;a("object"!=typeof e&&"function"!=typeof e&&"symbol"!=typeof e,"Key must not be of type object, function, or Symbol"),a("symbol"==typeof o,"Value must be a Symbol"),t.$_terms.map.set(e,o),r.push(o)}return t.valid(...r)}}},manifest:{build:(e,t)=>(t.map&&(e=e.map(t.map)),e)},messages:{"symbol.base":"{{#label}} must be a symbol","symbol.map":"{{#label}} must be one of {{#map}}"}})},8863:(e,t,r)=>{"use strict";const a=r(375),n=r(8571),o=r(738),s=r(9621),i=r(8160),l=r(6354),c=r(493),u={result:Symbol("result")};t.entry=function(e,t,r){let n=i.defaults;r&&(a(void 0===r.warnings,"Cannot override warnings preference in synchronous validation"),a(void 0===r.artifacts,"Cannot override artifacts preference in synchronous validation"),n=i.preferences(i.defaults,r));const o=u.entry(e,t,n);a(!o.mainstay.externals.length,"Schema with external rules must use validateAsync()");const s={value:o.value};return o.error&&(s.error=o.error),o.mainstay.warnings.length&&(s.warning=l.details(o.mainstay.warnings)),o.mainstay.debug&&(s.debug=o.mainstay.debug),o.mainstay.artifacts&&(s.artifacts=o.mainstay.artifacts),s},t.entryAsync=async function(e,t,r){let a=i.defaults;r&&(a=i.preferences(i.defaults,r));const n=u.entry(e,t,a),o=n.mainstay;if(n.error)throw o.debug&&(n.error.debug=o.debug),n.error;if(o.externals.length){let t=n.value;const c=[];for(const n of o.externals){const d=n.state.path,p="link"===n.schema.type?o.links.get(n.schema):null;let g,m,w=t;const f=d.length?[t]:[],y=d.length?s(e,d):e;if(d.length){g=d[d.length-1];let e=t;for(const t of d.slice(0,-1))e=e[t],f.unshift(e);m=f[0],w=m[g]}try{const e=(e,t)=>(p||n.schema).$_createError(e,w,t,n.state,a),s=await n.method(w,{schema:n.schema,linked:p,state:n.state,prefs:r,original:y,error:e,errorsArray:u.errorsArray,warn:(e,t)=>o.warnings.push((p||n.schema).$_createError(e,w,t,n.state,a)),message:(e,t)=>(p||n.schema).$_createError("external",w,t,n.state,a,{messages:e})});if(void 0===s||s===w)continue;if(s instanceof l.Report){if(o.tracer.log(n.schema,n.state,"rule","external","error"),c.push(s),a.abortEarly)break;continue}if(Array.isArray(s)&&s[i.symbols.errors]){if(o.tracer.log(n.schema,n.state,"rule","external","error"),c.push(...s),a.abortEarly)break;continue}m?(o.tracer.value(n.state,"rule",w,s,"external"),m[g]=s):(o.tracer.value(n.state,"rule",t,s,"external"),t=s)}catch(e){throw a.errors.label&&(e.message+=` (${n.label})`),e}}if(n.value=t,c.length)throw n.error=l.process(c,e,a),o.debug&&(n.error.debug=o.debug),n.error}if(!a.warnings&&!a.debug&&!a.artifacts)return n.value;const c={value:n.value};return o.warnings.length&&(c.warning=l.details(o.warnings)),o.debug&&(c.debug=o.debug),o.artifacts&&(c.artifacts=o.artifacts),c},u.Mainstay=class{constructor(e,t,r){this.externals=[],this.warnings=[],this.tracer=e,this.debug=t,this.links=r,this.shadow=null,this.artifacts=null,this._snapshots=[]}snapshot(){this._snapshots.push({externals:this.externals.slice(),warnings:this.warnings.slice()})}restore(){const e=this._snapshots.pop();this.externals=e.externals,this.warnings=e.warnings}commit(){this._snapshots.pop()}},u.entry=function(e,r,a){const{tracer:n,cleanup:o}=u.tracer(r,a),s=a.debug?[]:null,i=r._ids._schemaChain?new Map:null,d=new u.Mainstay(n,s,i),p=r._ids._schemaChain?[{schema:r}]:null,g=new c([],[],{mainstay:d,schemas:p}),m=t.validate(e,r,g,a);o&&r.$_root.untrace();const w=l.process(m.errors,e,a);return{value:m.value,error:w,mainstay:d}},u.tracer=function(e,t){return e.$_root._tracer?{tracer:e.$_root._tracer._register(e)}:t.debug?(a(e.$_root.trace,"Debug mode not supported"),{tracer:e.$_root.trace()._register(e),cleanup:!0}):{tracer:u.ignore}},t.validate=function(e,t,r,a,n={}){if(t.$_terms.whens&&(t=t._generate(e,r,a).schema),t._preferences&&(a=u.prefs(t,a)),t._cache&&a.cache){const a=t._cache.get(e);if(r.mainstay.tracer.debug(r,"validate","cached",!!a),a)return a}const o=(n,o,s)=>t.$_createError(n,e,o,s||r,a),s={original:e,prefs:a,schema:t,state:r,error:o,errorsArray:u.errorsArray,warn:(e,t,a)=>r.mainstay.warnings.push(o(e,t,a)),message:(n,o)=>t.$_createError("custom",e,o,r,a,{messages:n})};r.mainstay.tracer.entry(t,r);const l=t._definition;if(l.prepare&&void 0!==e&&a.convert){const t=l.prepare(e,s);if(t){if(r.mainstay.tracer.value(r,"prepare",e,t.value),t.errors)return u.finalize(t.value,[].concat(t.errors),s);e=t.value}}if(l.coerce&&void 0!==e&&a.convert&&(!l.coerce.from||l.coerce.from.includes(typeof e))){const t=l.coerce.method(e,s);if(t){if(r.mainstay.tracer.value(r,"coerced",e,t.value),t.errors)return u.finalize(t.value,[].concat(t.errors),s);e=t.value}}const c=t._flags.empty;c&&c.$_match(u.trim(e,t),r.nest(c),i.defaults)&&(r.mainstay.tracer.value(r,"empty",e,void 0),e=void 0);const d=n.presence||t._flags.presence||(t._flags._endedSwitch?null:a.presence);if(void 0===e){if("forbidden"===d)return u.finalize(e,null,s);if("required"===d)return u.finalize(e,[t.$_createError("any.required",e,null,r,a)],s);if("optional"===d){if(t._flags.default!==i.symbols.deepDefault)return u.finalize(e,null,s);r.mainstay.tracer.value(r,"default",e,{}),e={}}}else if("forbidden"===d)return u.finalize(e,[t.$_createError("any.unknown",e,null,r,a)],s);const p=[];if(t._valids){const n=t._valids.get(e,r,a,t._flags.insensitive);if(n)return a.convert&&(r.mainstay.tracer.value(r,"valids",e,n.value),e=n.value),r.mainstay.tracer.filter(t,r,"valid",n),u.finalize(e,null,s);if(t._flags.only){const n=t.$_createError("any.only",e,{valids:t._valids.values({display:!0})},r,a);if(a.abortEarly)return u.finalize(e,[n],s);p.push(n)}}if(t._invalids){const n=t._invalids.get(e,r,a,t._flags.insensitive);if(n){r.mainstay.tracer.filter(t,r,"invalid",n);const o=t.$_createError("any.invalid",e,{invalids:t._invalids.values({display:!0})},r,a);if(a.abortEarly)return u.finalize(e,[o],s);p.push(o)}}if(l.validate){const t=l.validate(e,s);if(t&&(r.mainstay.tracer.value(r,"base",e,t.value),e=t.value,t.errors)){if(!Array.isArray(t.errors))return p.push(t.errors),u.finalize(e,p,s);if(t.errors.length)return p.push(...t.errors),u.finalize(e,p,s)}}return t._rules.length?u.rules(e,p,s):u.finalize(e,p,s)},u.rules=function(e,t,r){const{schema:a,state:n,prefs:o}=r;for(const s of a._rules){const l=a._definition.rules[s.method];if(l.convert&&o.convert){n.mainstay.tracer.log(a,n,"rule",s.name,"full");continue}let c,d=s.args;if(s._resolve.length){d=Object.assign({},d);for(const t of s._resolve){const r=l.argsByName.get(t),s=d[t].resolve(e,n,o),u=r.normalize?r.normalize(s):s,p=i.validateArg(u,null,r);if(p){c=a.$_createError("any.ref",s,{arg:t,ref:d[t],reason:p},n,o);break}d[t]=u}}c=c||l.validate(e,r,d,s);const p=u.rule(c,s);if(p.errors){if(n.mainstay.tracer.log(a,n,"rule",s.name,"error"),s.warn){n.mainstay.warnings.push(...p.errors);continue}if(o.abortEarly)return u.finalize(e,p.errors,r);t.push(...p.errors)}else n.mainstay.tracer.log(a,n,"rule",s.name,"pass"),n.mainstay.tracer.value(n,"rule",e,p.value,s.name),e=p.value}return u.finalize(e,t,r)},u.rule=function(e,t){return e instanceof l.Report?(u.error(e,t),{errors:[e],value:null}):Array.isArray(e)&&e[i.symbols.errors]?(e.forEach((e=>u.error(e,t))),{errors:e,value:null}):{errors:null,value:e}},u.error=function(e,t){return t.message&&e._setTemplate(t.message),e},u.finalize=function(e,t,r){t=t||[];const{schema:n,state:o,prefs:s}=r;if(t.length){const a=u.default("failover",void 0,t,r);void 0!==a&&(o.mainstay.tracer.value(o,"failover",e,a),e=a,t=[])}if(t.length&&n._flags.error)if("function"==typeof n._flags.error){t=n._flags.error(t),Array.isArray(t)||(t=[t]);for(const e of t)a(e instanceof Error||e instanceof l.Report,"error() must return an Error object")}else t=[n._flags.error];if(void 0===e){const a=u.default("default",e,t,r);o.mainstay.tracer.value(o,"default",e,a),e=a}if(n._flags.cast&&void 0!==e){const t=n._definition.cast[n._flags.cast];if(t.from(e)){const a=t.to(e,r);o.mainstay.tracer.value(o,"cast",e,a,n._flags.cast),e=a}}if(n.$_terms.externals&&s.externals&&!1!==s._externals)for(const{method:e}of n.$_terms.externals)o.mainstay.externals.push({method:e,schema:n,state:o,label:l.label(n._flags,o,s)});const i={value:e,errors:t.length?t:null};return n._flags.result&&(i.value="strip"===n._flags.result?void 0:r.original,o.mainstay.tracer.value(o,n._flags.result,e,i.value),o.shadow(e,n._flags.result)),n._cache&&!1!==s.cache&&!n._refs.length&&n._cache.set(r.original,i),void 0===e||i.errors||void 0===n._flags.artifact||(o.mainstay.artifacts=o.mainstay.artifacts||new Map,o.mainstay.artifacts.has(n._flags.artifact)||o.mainstay.artifacts.set(n._flags.artifact,[]),o.mainstay.artifacts.get(n._flags.artifact).push(o.path)),i},u.prefs=function(e,t){const r=t===i.defaults;return r&&e._preferences[i.symbols.prefs]?e._preferences[i.symbols.prefs]:(t=i.preferences(t,e._preferences),r&&(e._preferences[i.symbols.prefs]=t),t)},u.default=function(e,t,r,a){const{schema:o,state:s,prefs:l}=a,c=o._flags[e];if(l.noDefaults||void 0===c)return t;if(s.mainstay.tracer.log(o,s,"rule",e,"full"),!c)return c;if("function"==typeof c){const i=c.length?[n(s.ancestors[0]),a]:[];try{return c(...i)}catch(t){return void r.push(o.$_createError(`any.${e}`,null,{error:t},s,l))}}return"object"!=typeof c?c:c[i.symbols.literal]?c.literal:i.isResolvable(c)?c.resolve(t,s,l):n(c)},u.trim=function(e,t){if("string"!=typeof e)return e;const r=t.$_getRule("trim");return r&&r.args.enabled?e.trim():e},u.ignore={active:!1,debug:o,entry:o,filter:o,log:o,resolve:o,value:o},u.errorsArray=function(){const e=[];return e[i.symbols.errors]=!0,e}},2036:(e,t,r)=>{"use strict";const a=r(375),n=r(9474),o=r(8160),s={};e.exports=s.Values=class{constructor(e,t){this._values=new Set(e),this._refs=new Set(t),this._lowercase=s.lowercases(e),this._override=!1}get length(){return this._values.size+this._refs.size}add(e,t){o.isResolvable(e)?this._refs.has(e)||(this._refs.add(e),t&&t.register(e)):this.has(e,null,null,!1)||(this._values.add(e),"string"==typeof e&&this._lowercase.set(e.toLowerCase(),e))}static merge(e,t,r){if(e=e||new s.Values,t){if(t._override)return t.clone();for(const r of[...t._values,...t._refs])e.add(r)}if(r)for(const t of[...r._values,...r._refs])e.remove(t);return e.length?e:null}remove(e){o.isResolvable(e)?this._refs.delete(e):(this._values.delete(e),"string"==typeof e&&this._lowercase.delete(e.toLowerCase()))}has(e,t,r,a){return!!this.get(e,t,r,a)}get(e,t,r,a){if(!this.length)return!1;if(this._values.has(e))return{value:e};if("string"==typeof e&&e&&a){const t=this._lowercase.get(e.toLowerCase());if(t)return{value:t}}if(!this._refs.size&&"object"!=typeof e)return!1;if("object"==typeof e)for(const t of this._values)if(n(t,e))return{value:t};if(t)for(const o of this._refs){const s=o.resolve(e,t,r,null,{in:!0});if(void 0===s)continue;const i=o.in&&"object"==typeof s?Array.isArray(s)?s:Object.keys(s):[s];for(const t of i)if(typeof t==typeof e)if(a&&e&&"string"==typeof e){if(t.toLowerCase()===e.toLowerCase())return{value:t,ref:o}}else if(n(t,e))return{value:t,ref:o}}return!1}override(){this._override=!0}values(e){if(e&&e.display){const e=[];for(const t of[...this._values,...this._refs])void 0!==t&&e.push(t);return e}return Array.from([...this._values,...this._refs])}clone(){const e=new s.Values(this._values,this._refs);return e._override=this._override,e}concat(e){a(!e._override,"Cannot concat override set of values");const t=new s.Values([...this._values,...e._values],[...this._refs,...e._refs]);return t._override=this._override,t}describe(){const e=[];this._override&&e.push({override:!0});for(const t of this._values.values())e.push(t&&"object"==typeof t?{value:t}:t);for(const t of this._refs.values())e.push(t.describe());return e}},s.Values.prototype[o.symbols.values]=!0,s.Values.prototype.slice=s.Values.prototype.clone,s.lowercases=function(e){const t=new Map;if(e)for(const r of e)"string"==typeof r&&t.set(r.toLowerCase(),r);return t}},978:(e,t,r)=>{"use strict";const a=r(375),n=r(8571),o=r(1687),s=r(9621),i={};e.exports=function(e,t,r={}){if(a(e&&"object"==typeof e,"Invalid defaults value: must be an object"),a(!t||!0===t||"object"==typeof t,"Invalid source value: must be true, falsy or an object"),a("object"==typeof r,"Invalid options: must be an object"),!t)return null;if(r.shallow)return i.applyToDefaultsWithShallow(e,t,r);const s=n(e);if(!0===t)return s;const l=void 0!==r.nullOverride&&r.nullOverride;return o(s,t,{nullOverride:l,mergeArrays:!1})},i.applyToDefaultsWithShallow=function(e,t,r){const l=r.shallow;a(Array.isArray(l),"Invalid keys");const c=new Map,u=!0===t?null:new Set;for(let r of l){r=Array.isArray(r)?r:r.split(".");const a=s(e,r);a&&"object"==typeof a?c.set(a,u&&s(t,r)||a):u&&u.add(r)}const d=n(e,{},c);if(!u)return d;for(const e of u)i.reachCopy(d,t,e);const p=void 0!==r.nullOverride&&r.nullOverride;return o(d,t,{nullOverride:p,mergeArrays:!1})},i.reachCopy=function(e,t,r){for(const e of r){if(!(e in t))return;const r=t[e];if("object"!=typeof r||null===r)return;t=r}const a=t;let n=e;for(let e=0;e{"use strict";const a=r(7916);e.exports=function(e,...t){if(!e){if(1===t.length&&t[0]instanceof Error)throw t[0];throw new a(t)}}},8571:(e,t,r)=>{"use strict";const a=r(9621),n=r(4277),o=r(7043),s={needsProtoHack:new Set([n.set,n.map,n.weakSet,n.weakMap])};e.exports=s.clone=function(e,t={},r=null){if("object"!=typeof e||null===e)return e;let a=s.clone,i=r;if(t.shallow){if(!0!==t.shallow)return s.cloneWithShallow(e,t);a=e=>e}else if(i){const t=i.get(e);if(t)return t}else i=new Map;const l=n.getInternalProto(e);if(l===n.buffer)return!1;if(l===n.date)return new Date(e.getTime());if(l===n.regex)return new RegExp(e);const c=s.base(e,l,t);if(c===e)return e;if(i&&i.set(e,c),l===n.set)for(const r of e)c.add(a(r,t,i));else if(l===n.map)for(const[r,n]of e)c.set(r,a(n,t,i));const u=o.keys(e,t);for(const r of u){if("__proto__"===r)continue;if(l===n.array&&"length"===r){c.length=e.length;continue}const o=Object.getOwnPropertyDescriptor(e,r);o?o.get||o.set?Object.defineProperty(c,r,o):o.enumerable?c[r]=a(e[r],t,i):Object.defineProperty(c,r,{enumerable:!1,writable:!0,configurable:!0,value:a(e[r],t,i)}):Object.defineProperty(c,r,{enumerable:!0,writable:!0,configurable:!0,value:a(e[r],t,i)})}return c},s.cloneWithShallow=function(e,t){const r=t.shallow;(t=Object.assign({},t)).shallow=!1;const n=new Map;for(const t of r){const r=a(e,t);"object"!=typeof r&&"function"!=typeof r||n.set(r,r)}return s.clone(e,t,n)},s.base=function(e,t,r){if(!1===r.prototype)return s.needsProtoHack.has(t)?new t.constructor:t===n.array?[]:{};const a=Object.getPrototypeOf(e);if(a&&a.isImmutable)return e;if(t===n.array){const e=[];return a!==t&&Object.setPrototypeOf(e,a),e}if(s.needsProtoHack.has(t)){const e=new a.constructor;return a!==t&&Object.setPrototypeOf(e,a),e}return Object.create(a)}},9474:(e,t,r)=>{"use strict";const a=r(4277),n={mismatched:null};e.exports=function(e,t,r){return r=Object.assign({prototype:!0},r),!!n.isDeepEqual(e,t,r,[])},n.isDeepEqual=function(e,t,r,o){if(e===t)return 0!==e||1/e==1/t;const s=typeof e;if(s!==typeof t)return!1;if(null===e||null===t)return!1;if("function"===s){if(!r.deepFunction||e.toString()!==t.toString())return!1}else if("object"!==s)return e!=e&&t!=t;const i=n.getSharedType(e,t,!!r.prototype);switch(i){case a.buffer:return!1;case a.promise:return e===t;case a.regex:return e.toString()===t.toString();case n.mismatched:return!1}for(let r=o.length-1;r>=0;--r)if(o[r].isSame(e,t))return!0;o.push(new n.SeenEntry(e,t));try{return!!n.isDeepEqualObj(i,e,t,r,o)}finally{o.pop()}},n.getSharedType=function(e,t,r){if(r)return Object.getPrototypeOf(e)!==Object.getPrototypeOf(t)?n.mismatched:a.getInternalProto(e);const o=a.getInternalProto(e);return o!==a.getInternalProto(t)?n.mismatched:o},n.valueOf=function(e){const t=e.valueOf;if(void 0===t)return e;try{return t.call(e)}catch(e){return e}},n.hasOwnEnumerableProperty=function(e,t){return Object.prototype.propertyIsEnumerable.call(e,t)},n.isSetSimpleEqual=function(e,t){for(const r of Set.prototype.values.call(e))if(!Set.prototype.has.call(t,r))return!1;return!0},n.isDeepEqualObj=function(e,t,r,o,s){const{isDeepEqual:i,valueOf:l,hasOwnEnumerableProperty:c}=n,{keys:u,getOwnPropertySymbols:d}=Object;if(e===a.array){if(!o.part){if(t.length!==r.length)return!1;for(let e=0;e{"use strict";const a=r(8761);e.exports=class extends Error{constructor(e){super(e.filter((e=>""!==e)).map((e=>"string"==typeof e?e:e instanceof Error?e.message:a(e))).join(" ")||"Unknown error"),"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,t.assert)}}},5277:e=>{"use strict";const t={};e.exports=function(e){if(!e)return"";let r="";for(let a=0;a=256?"&#"+e+";":`&#x${e.toString(16).padStart(2,"0")};`)},t.isSafe=function(e){return t.safeCharCodes.has(e)},t.namedHtml=new Map([[38,"&"],[60,"<"],[62,">"],[34,"""],[160," "],[162,"¢"],[163,"£"],[164,"¤"],[169,"©"],[174,"®"]]),t.safeCharCodes=function(){const e=new Set;for(let t=32;t<123;++t)(t>=97||t>=65&&t<=90||t>=48&&t<=57||32===t||46===t||44===t||45===t||58===t||95===t)&&e.add(t);return e}()},6064:e=>{"use strict";e.exports=function(e){return e.replace(/[\^\$\.\*\+\-\?\=\!\:\|\\\/\(\)\[\]\{\}\,]/g,"\\$&")}},738:e=>{"use strict";e.exports=function(){}},1687:(e,t,r)=>{"use strict";const a=r(375),n=r(8571),o=r(7043),s={};e.exports=s.merge=function(e,t,r){if(a(e&&"object"==typeof e,"Invalid target value: must be an object"),a(null==t||"object"==typeof t,"Invalid source value: must be null, undefined, or an object"),!t)return e;if(r=Object.assign({nullOverride:!0,mergeArrays:!0},r),Array.isArray(t)){a(Array.isArray(e),"Cannot merge array onto an object"),r.mergeArrays||(e.length=0);for(let a=0;a{"use strict";const a=r(375),n={};e.exports=function(e,t,r){if(!1===t||null==t)return e;"string"==typeof(r=r||{})&&(r={separator:r});const o=Array.isArray(t);a(!o||!r.separator,"Separator option is not valid for array-based chain");const s=o?t:t.split(r.separator||".");let i=e;for(let e=0;e{"use strict";e.exports=function(...e){try{return JSON.stringify(...e)}catch(e){return"[Cannot display object: "+e.message+"]"}}},4277:(e,t)=>{"use strict";const r={};t=e.exports={array:Array.prototype,buffer:!1,date:Date.prototype,error:Error.prototype,generic:Object.prototype,map:Map.prototype,promise:Promise.prototype,regex:RegExp.prototype,set:Set.prototype,weakMap:WeakMap.prototype,weakSet:WeakSet.prototype},r.typeMap=new Map([["[object Error]",t.error],["[object Map]",t.map],["[object Promise]",t.promise],["[object Set]",t.set],["[object WeakMap]",t.weakMap],["[object WeakSet]",t.weakSet]]),t.getInternalProto=function(e){if(Array.isArray(e))return t.array;if(e instanceof Date)return t.date;if(e instanceof RegExp)return t.regex;if(e instanceof Error)return t.error;const a=Object.prototype.toString.call(e);return r.typeMap.get(a)||t.generic}},7043:(e,t)=>{"use strict";t.keys=function(e,t={}){return!1!==t.symbols?Reflect.ownKeys(e):Object.getOwnPropertyNames(e)}},3652:(e,t,r)=>{"use strict";const a=r(375),n={};t.Sorter=class{constructor(){this._items=[],this.nodes=[]}add(e,t){const r=[].concat((t=t||{}).before||[]),n=[].concat(t.after||[]),o=t.group||"?",s=t.sort||0;a(!r.includes(o),`Item cannot come before itself: ${o}`),a(!r.includes("?"),"Item cannot come before unassociated items"),a(!n.includes(o),`Item cannot come after itself: ${o}`),a(!n.includes("?"),"Item cannot come after unassociated items"),Array.isArray(e)||(e=[e]);for(const t of e){const e={seq:this._items.length,sort:s,before:r,after:n,group:o,node:t};this._items.push(e)}if(!t.manual){const e=this._sort();a(e,"item","?"!==o?`added into group ${o}`:"","created a dependencies error")}return this.nodes}merge(e){Array.isArray(e)||(e=[e]);for(const t of e)if(t)for(const e of t._items)this._items.push(Object.assign({},e));this._items.sort(n.mergeSort);for(let e=0;ee.sort===t.sort?0:e.sort{"use strict";const a=r(443),n=r(2178),o={minDomainSegments:2,nonAsciiRx:/[^\x00-\x7f]/,domainControlRx:/[\x00-\x20@\:\/\\#!\$&\'\(\)\*\+,;=\?]/,tldSegmentRx:/^[a-zA-Z](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,domainSegmentRx:/^[a-zA-Z0-9](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,URL:a.URL||URL};t.analyze=function(e,t={}){if(!e)return n.code("DOMAIN_NON_EMPTY_STRING");if("string"!=typeof e)throw new Error("Invalid input: domain must be a string");if(e.length>256)return n.code("DOMAIN_TOO_LONG");if(o.nonAsciiRx.test(e)){if(!1===t.allowUnicode)return n.code("DOMAIN_INVALID_UNICODE_CHARS");e=e.normalize("NFC")}if(o.domainControlRx.test(e))return n.code("DOMAIN_INVALID_CHARS");e=o.punycode(e),t.allowFullyQualified&&"."===e[e.length-1]&&(e=e.slice(0,-1));const r=t.minDomainSegments||o.minDomainSegments,a=e.split(".");if(a.lengtht.maxDomainSegments)return n.code("DOMAIN_SEGMENTS_COUNT_MAX");const s=t.tlds;if(s){const e=a[a.length-1].toLowerCase();if(s.deny&&s.deny.has(e)||s.allow&&!s.allow.has(e))return n.code("DOMAIN_FORBIDDEN_TLDS")}for(let e=0;e63)return n.code("DOMAIN_LONG_SEGMENT");if(e{"use strict";const a=r(9848),n=r(5380),o=r(2178),s={nonAsciiRx:/[^\x00-\x7f]/,encoder:new(a.TextEncoder||TextEncoder)};t.analyze=function(e,t){return s.email(e,t)},t.isValid=function(e,t){return!s.email(e,t)},s.email=function(e,t={}){if("string"!=typeof e)throw new Error("Invalid input: email must be a string");if(!e)return o.code("EMPTY_STRING");const r=!s.nonAsciiRx.test(e);if(!r){if(!1===t.allowUnicode)return o.code("FORBIDDEN_UNICODE");e=e.normalize("NFC")}const a=e.split("@");if(2!==a.length)return a.length>2?o.code("MULTIPLE_AT_CHAR"):o.code("MISSING_AT_CHAR");const[i,l]=a;if(!i)return o.code("EMPTY_LOCAL");if(!t.ignoreLength){if(e.length>254)return o.code("ADDRESS_TOO_LONG");if(s.encoder.encode(i).length>64)return o.code("LOCAL_TOO_LONG")}return s.local(i,r)||n.analyze(l,t)},s.local=function(e,t){const r=e.split(".");for(const e of r){if(!e.length)return o.code("EMPTY_LOCAL_SEGMENT");if(t){if(!s.atextRx.test(e))return o.code("INVALID_LOCAL_CHARS")}else for(const t of e){if(s.atextRx.test(t))continue;const e=s.binary(t);if(!s.atomRx.test(e))return o.code("INVALID_LOCAL_CHARS")}}},s.binary=function(e){return Array.from(s.encoder.encode(e)).map((e=>String.fromCharCode(e))).join("")},s.atextRx=/^[\w!#\$%&'\*\+\-/=\?\^`\{\|\}~]+$/,s.atomRx=new RegExp(["(?:[\\xc2-\\xdf][\\x80-\\xbf])","(?:\\xe0[\\xa0-\\xbf][\\x80-\\xbf])|(?:[\\xe1-\\xec][\\x80-\\xbf]{2})|(?:\\xed[\\x80-\\x9f][\\x80-\\xbf])|(?:[\\xee-\\xef][\\x80-\\xbf]{2})","(?:\\xf0[\\x90-\\xbf][\\x80-\\xbf]{2})|(?:[\\xf1-\\xf3][\\x80-\\xbf]{3})|(?:\\xf4[\\x80-\\x8f][\\x80-\\xbf]{2})"].join("|"))},2178:(e,t)=>{"use strict";t.codes={EMPTY_STRING:"Address must be a non-empty string",FORBIDDEN_UNICODE:"Address contains forbidden Unicode characters",MULTIPLE_AT_CHAR:"Address cannot contain more than one @ character",MISSING_AT_CHAR:"Address must contain one @ character",EMPTY_LOCAL:"Address local part cannot be empty",ADDRESS_TOO_LONG:"Address too long",LOCAL_TOO_LONG:"Address local part too long",EMPTY_LOCAL_SEGMENT:"Address local part contains empty dot-separated segment",INVALID_LOCAL_CHARS:"Address local part contains invalid character",DOMAIN_NON_EMPTY_STRING:"Domain must be a non-empty string",DOMAIN_TOO_LONG:"Domain too long",DOMAIN_INVALID_UNICODE_CHARS:"Domain contains forbidden Unicode characters",DOMAIN_INVALID_CHARS:"Domain contains invalid character",DOMAIN_INVALID_TLDS_CHARS:"Domain contains invalid tld character",DOMAIN_SEGMENTS_COUNT:"Domain lacks the minimum required number of segments",DOMAIN_SEGMENTS_COUNT_MAX:"Domain contains too many segments",DOMAIN_FORBIDDEN_TLDS:"Domain uses forbidden TLD",DOMAIN_EMPTY_SEGMENT:"Domain contains empty dot-separated segment",DOMAIN_LONG_SEGMENT:"Domain contains dot-separated segment that is too long"},t.code=function(e){return{code:e,error:t.codes[e]}}},9959:(e,t,r)=>{"use strict";const a=r(375),n=r(5752);t.regex=function(e={}){a(void 0===e.cidr||"string"==typeof e.cidr,"options.cidr must be a string");const t=e.cidr?e.cidr.toLowerCase():"optional";a(["required","optional","forbidden"].includes(t),"options.cidr must be one of required, optional, forbidden"),a(void 0===e.version||"string"==typeof e.version||Array.isArray(e.version),"options.version must be a string or an array of string");let r=e.version||["ipv4","ipv6","ipvfuture"];Array.isArray(r)||(r=[r]),a(r.length>=1,"options.version must have at least 1 version specified");for(let e=0;e{if("forbidden"===t)return n.ip[e];const r=`\\/${"ipv4"===e?n.ip.v4Cidr:n.ip.v6Cidr}`;return"required"===t?`${n.ip[e]}${r}`:`${n.ip[e]}(?:${r})?`})).join("|")})`,s=new RegExp(`^${o}$`);return{cidr:t,versions:r,regex:s,raw:o}}},5752:(e,t,r)=>{"use strict";const a=r(375),n=r(6064),o={generate:function(){const e={},t="\\dA-Fa-f",r="["+t+"]",a="\\w-\\.~",n="!\\$&'\\(\\)\\*\\+,;=",o="%"+t,s=a+o+n+":@",i="["+s+"]",l="(?:0{0,2}\\d|0?[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])";e.ipv4address="(?:"+l+"\\.){3}"+l;const c=r+"{1,4}",u="(?:"+c+":"+c+"|"+e.ipv4address+")",d="(?:"+c+":){6}"+u,p="::(?:"+c+":){5}"+u,g="(?:"+c+")?::(?:"+c+":){4}"+u,m="(?:(?:"+c+":){0,1}"+c+")?::(?:"+c+":){3}"+u,w="(?:(?:"+c+":){0,2}"+c+")?::(?:"+c+":){2}"+u,f="(?:(?:"+c+":){0,3}"+c+")?::"+c+":"+u,y="(?:(?:"+c+":){0,4}"+c+")?::"+u,b="(?:(?:"+c+":){0,5}"+c+")?::"+c,h="(?:(?:"+c+":){0,6}"+c+")?::";e.ipv4Cidr="(?:\\d|[1-2]\\d|3[0-2])",e.ipv6Cidr="(?:0{0,2}\\d|0?[1-9]\\d|1[01]\\d|12[0-8])",e.ipv6address="(?:"+d+"|"+p+"|"+g+"|"+m+"|"+w+"|"+f+"|"+y+"|"+b+"|"+h+")",e.ipvFuture="v"+r+"+\\.["+a+n+":]+",e.scheme="[a-zA-Z][a-zA-Z\\d+-\\.]*",e.schemeRegex=new RegExp(e.scheme);const _="["+a+o+n+":]*",v="["+a+o+n+"]{1,255}",R="(?:\\[(?:"+e.ipv6address+"|"+e.ipvFuture+")\\]|"+e.ipv4address+"|"+v+")",k="(?:"+_+"@)?"+R+"(?::\\d*)?",P="(?:"+_+"@)?("+R+")(?::\\d*)?",j=i+"*",C=i+"+",q="(?:\\/"+j+")*",S="\\/(?:"+C+q+")?",A=C+q,E="["+a+o+n+"@]+"+q,H="(?:\\/\\/\\/"+j+q+")";return e.hierPart="(?:(?:\\/\\/"+k+q+")|"+S+"|"+A+"|"+H+")",e.hierPartCapture="(?:(?:\\/\\/"+P+q+")|"+S+"|"+A+")",e.relativeRef="(?:(?:\\/\\/"+k+q+")|"+S+"|"+E+"|)",e.relativeRefCapture="(?:(?:\\/\\/"+P+q+")|"+S+"|"+E+"|)",e.query="["+s+"\\/\\?]*(?=#|$)",e.queryWithSquareBrackets="["+s+"\\[\\]\\/\\?]*(?=#|$)",e.fragment="["+s+"\\/\\?]*",e}};o.rfc3986=o.generate(),t.ip={v4Cidr:o.rfc3986.ipv4Cidr,v6Cidr:o.rfc3986.ipv6Cidr,ipv4:o.rfc3986.ipv4address,ipv6:o.rfc3986.ipv6address,ipvfuture:o.rfc3986.ipvFuture},o.createRegex=function(e){const t=o.rfc3986,r="(?:\\?"+(e.allowQuerySquareBrackets?t.queryWithSquareBrackets:t.query)+")?(?:#"+t.fragment+")?",s=e.domain?t.relativeRefCapture:t.relativeRef;if(e.relativeOnly)return o.wrap(s+r);let i="";if(e.scheme){a(e.scheme instanceof RegExp||"string"==typeof e.scheme||Array.isArray(e.scheme),"scheme must be a RegExp, String, or Array");const r=[].concat(e.scheme);a(r.length>=1,"scheme must have at least 1 scheme specified");const o=[];for(let e=0;e{"use strict";const r={operators:["!","^","*","/","%","+","-","<","<=",">",">=","==","!=","&&","||","??"],operatorCharacters:["!","^","*","/","%","+","-","<","=",">","&","|","?"],operatorsOrder:[["^"],["*","/","%"],["+","-"],["<","<=",">",">="],["==","!="],["&&"],["||","??"]],operatorsPrefix:["!","n"],literals:{'"':'"',"`":"`","'":"'","[":"]"},numberRx:/^(?:[0-9]*(\.[0-9]*)?){1}$/,tokenRx:/^[\w\$\#\.\@\:\{\}]+$/,symbol:Symbol("formula"),settings:Symbol("settings")};t.Parser=class{constructor(e,t={}){if(!t[r.settings]&&t.constants)for(const e in t.constants){const r=t.constants[e];if(null!==r&&!["boolean","number","string"].includes(typeof r))throw new Error(`Formula constant ${e} contains invalid ${typeof r} value type`)}this.settings=t[r.settings]?t:Object.assign({[r.settings]:!0,constants:{},functions:{}},t),this.single=null,this._parts=null,this._parse(e)}_parse(e){let a=[],n="",o=0,s=!1;const i=e=>{if(o)throw new Error("Formula missing closing parenthesis");const i=a.length?a[a.length-1]:null;if(s||n||e){if(i&&"reference"===i.type&&")"===e)return i.type="function",i.value=this._subFormula(n,i.value),void(n="");if(")"===e){const e=new t.Parser(n,this.settings);a.push({type:"segment",value:e})}else if(s){if("]"===s)return a.push({type:"reference",value:n}),void(n="");a.push({type:"literal",value:n})}else if(r.operatorCharacters.includes(n))i&&"operator"===i.type&&r.operators.includes(i.value+n)?i.value+=n:a.push({type:"operator",value:n});else if(n.match(r.numberRx))a.push({type:"constant",value:parseFloat(n)});else if(void 0!==this.settings.constants[n])a.push({type:"constant",value:this.settings.constants[n]});else{if(!n.match(r.tokenRx))throw new Error(`Formula contains invalid token: ${n}`);a.push({type:"reference",value:n})}n=""}};for(const t of e)s?t===s?(i(),s=!1):n+=t:o?"("===t?(n+=t,++o):")"===t?(--o,o?n+=t:i(t)):n+=t:t in r.literals?s=r.literals[t]:"("===t?(i(),++o):r.operatorCharacters.includes(t)?(i(),n=t,i()):" "!==t?n+=t:i();i(),a=a.map(((e,t)=>"operator"!==e.type||"-"!==e.value||t&&"operator"!==a[t-1].type?e:{type:"operator",value:"n"}));let l=!1;for(const e of a){if("operator"===e.type){if(r.operatorsPrefix.includes(e.value))continue;if(!l)throw new Error("Formula contains an operator in invalid position");if(!r.operators.includes(e.value))throw new Error(`Formula contains an unknown operator ${e.value}`)}else if(l)throw new Error("Formula missing expected operator");l=!l}if(!l)throw new Error("Formula contains invalid trailing operator");1===a.length&&["reference","literal","constant"].includes(a[0].type)&&(this.single={type:"reference"===a[0].type?"reference":"value",value:a[0].value}),this._parts=a.map((e=>{if("operator"===e.type)return r.operatorsPrefix.includes(e.value)?e:e.value;if("reference"!==e.type)return e.value;if(this.settings.tokenRx&&!this.settings.tokenRx.test(e.value))throw new Error(`Formula contains invalid reference ${e.value}`);return this.settings.reference?this.settings.reference(e.value):r.reference(e.value)}))}_subFormula(e,a){const n=this.settings.functions[a];if("function"!=typeof n)throw new Error(`Formula contains unknown function ${a}`);let o=[];if(e){let t="",n=0,s=!1;const i=()=>{if(!t)throw new Error(`Formula contains function ${a} with invalid arguments ${e}`);o.push(t),t=""};for(let a=0;anew t.Parser(e,this.settings))),function(e){const t=[];for(const r of o)t.push(r.evaluate(e));return n.call(e,...t)}}evaluate(e){const t=this._parts.slice();for(let a=t.length-2;a>=0;--a){const n=t[a];if(n&&"operator"===n.type){const o=t[a+1];t.splice(a+1,1);const s=r.evaluate(o,e);t[a]=r.single(n.value,s)}}return r.operatorsOrder.forEach((a=>{for(let n=1;n":return t>a;case">=":return t>=a;case"==":return t===a;case"!=":return t!==a;case"&&":return t&&a;case"||":return t||a}return null},r.exists=function(e){return null!=e}},9926:()=>{},5688:()=>{},9708:()=>{},1152:()=>{},443:()=>{},9848:()=>{},5934:e=>{"use strict";e.exports=JSON.parse('{"version":"17.12.1"}')}},t={},function r(a){var n=t[a];if(void 0!==n)return n.exports;var o=t[a]={exports:{}};return e[a](o,o.exports,r),o.exports}(5107);var e,t},e.exports=t()},6220:function(e,t,r){var a,n;!function(o,s){"use strict";a=function(){var e=function(){},t="undefined",r=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),a=["trace","debug","info","warn","error"],n={},o=null;function s(e,t){var r=e[t];if("function"==typeof r.bind)return r.bind(e);try{return Function.prototype.bind.call(r,e)}catch(t){return function(){return Function.prototype.apply.apply(r,[e,arguments])}}}function i(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function l(){for(var r=this.getLevel(),n=0;n=0&&t<=d.levels.SILENT)return t;throw new TypeError("log.setLevel() called with invalid level: "+e)}"string"==typeof e?p+=":"+e:"symbol"==typeof e&&(p=void 0),d.name=e,d.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},d.methodFactory=r||u,d.getLevel=function(){return null!=c?c:null!=i?i:s},d.setLevel=function(e,r){return c=m(e),!1!==r&&function(e){var r=(a[e]||"silent").toUpperCase();if(typeof window!==t&&p){try{return void(window.localStorage[p]=r)}catch(e){}try{window.document.cookie=encodeURIComponent(p)+"="+r+";"}catch(e){}}}(c),l.call(d)},d.setDefaultLevel=function(e){i=m(e),g()||d.setLevel(e,!1)},d.resetLevel=function(){c=null,function(){if(typeof window!==t&&p){try{window.localStorage.removeItem(p)}catch(e){}try{window.document.cookie=encodeURIComponent(p)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}(),l.call(d)},d.enableAll=function(e){d.setLevel(d.levels.TRACE,e)},d.disableAll=function(e){d.setLevel(d.levels.SILENT,e)},d.rebuild=function(){if(o!==d&&(s=m(o.getLevel())),l.call(d),o===d)for(var e in n)n[e].rebuild()},s=m(o?o.getLevel():"WARN");var w=g();null!=w&&(c=m(w)),l.call(d)}(o=new d).getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=n[e];return t||(t=n[e]=new d(e,o.methodFactory)),t};var p=typeof window!==t?window.log:void 0;return o.noConflict=function(){return typeof window!==t&&window.log===o&&(window.log=p),o},o.getLoggers=function(){return n},o.default=o,o},void 0===(n=a.call(t,r,t,e))||(e.exports=n)}()},3660:(e,t,r)=>{"use strict";const a=r(4312),n=r(7140),o=r(444),s=r(9600),i=Symbol("encodeFragmentIdentifier");function l(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function c(e,t){return t.encode?t.strict?a(e):encodeURIComponent(e):e}function u(e,t){return t.decode?n(e):e}function d(e){return Array.isArray(e)?e.sort():"object"==typeof e?d(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function p(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function g(e){const t=(e=p(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function m(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function w(e,t){l((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const r=function(e){let t;switch(e.arrayFormat){case"index":return(e,r,a)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===a[e]&&(a[e]={}),a[e][t[1]]=r):a[e]=r};case"bracket":return(e,r,a)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==a[e]?a[e]=[].concat(a[e],r):a[e]=[r]:a[e]=r};case"colon-list-separator":return(e,r,a)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==a[e]?a[e]=[].concat(a[e],r):a[e]=[r]:a[e]=r};case"comma":case"separator":return(t,r,a)=>{const n="string"==typeof r&&r.includes(e.arrayFormatSeparator),o="string"==typeof r&&!n&&u(r,e).includes(e.arrayFormatSeparator);r=o?u(r,e):r;const s=n||o?r.split(e.arrayFormatSeparator).map((t=>u(t,e))):null===r?r:u(r,e);a[t]=s};case"bracket-separator":return(t,r,a)=>{const n=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!n)return void(a[t]=r?u(r,e):r);const o=null===r?[]:r.split(e.arrayFormatSeparator).map((t=>u(t,e)));void 0!==a[t]?a[t]=[].concat(a[t],o):a[t]=o};default:return(e,t,r)=>{void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=t}}}(t),a=Object.create(null);if("string"!=typeof e)return a;if(!(e=e.trim().replace(/^[?#&]/,"")))return a;for(const n of e.split("&")){if(""===n)continue;let[e,s]=o(t.decode?n.replace(/\+/g," "):n,"=");s=void 0===s?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?s:u(s,t),r(u(e,t),s,a)}for(const e of Object.keys(a)){const r=a[e];if("object"==typeof r&&null!==r)for(const e of Object.keys(r))r[e]=m(r[e],t);else a[e]=m(r,t)}return!1===t.sort?a:(!0===t.sort?Object.keys(a).sort():Object.keys(a).sort(t.sort)).reduce(((e,t)=>{const r=a[t];return Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?e[t]=d(r):e[t]=r,e}),Object.create(null))}t.extract=g,t.parse=w,t.stringify=(e,t)=>{if(!e)return"";l((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const r=r=>t.skipNull&&null==e[r]||t.skipEmptyString&&""===e[r],a=function(e){switch(e.arrayFormat){case"index":return t=>(r,a)=>{const n=r.length;return void 0===a||e.skipNull&&null===a||e.skipEmptyString&&""===a?r:null===a?[...r,[c(t,e),"[",n,"]"].join("")]:[...r,[c(t,e),"[",c(n,e),"]=",c(a,e)].join("")]};case"bracket":return t=>(r,a)=>void 0===a||e.skipNull&&null===a||e.skipEmptyString&&""===a?r:null===a?[...r,[c(t,e),"[]"].join("")]:[...r,[c(t,e),"[]=",c(a,e)].join("")];case"colon-list-separator":return t=>(r,a)=>void 0===a||e.skipNull&&null===a||e.skipEmptyString&&""===a?r:null===a?[...r,[c(t,e),":list="].join("")]:[...r,[c(t,e),":list=",c(a,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return r=>(a,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?a:(n=null===n?"":n,0===a.length?[[c(r,e),t,c(n,e)].join("")]:[[a,c(n,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,a)=>void 0===a||e.skipNull&&null===a||e.skipEmptyString&&""===a?r:null===a?[...r,c(t,e)]:[...r,[c(t,e),"=",c(a,e)].join("")]}}(t),n={};for(const t of Object.keys(e))r(t)||(n[t]=e[t]);const o=Object.keys(n);return!1!==t.sort&&o.sort(t.sort),o.map((r=>{const n=e[r];return void 0===n?"":null===n?c(r,t):Array.isArray(n)?0===n.length&&"bracket-separator"===t.arrayFormat?c(r,t)+"[]":n.reduce(a(r),[]).join("&"):c(r,t)+"="+c(n,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[r,a]=o(e,"#");return Object.assign({url:r.split("?")[0]||"",query:w(g(e),t)},t&&t.parseFragmentIdentifier&&a?{fragmentIdentifier:u(a,t)}:{})},t.stringifyUrl=(e,r)=>{r=Object.assign({encode:!0,strict:!0,[i]:!0},r);const a=p(e.url).split("?")[0]||"",n=t.extract(e.url),o=t.parse(n,{sort:!1}),s=Object.assign(o,e.query);let l=t.stringify(s,r);l&&(l=`?${l}`);let u=function(e){let t="";const r=e.indexOf("#");return-1!==r&&(t=e.slice(r)),t}(e.url);return e.fragmentIdentifier&&(u=`#${r[i]?c(e.fragmentIdentifier,r):e.fragmentIdentifier}`),`${a}${l}${u}`},t.pick=(e,r,a)=>{a=Object.assign({parseFragmentIdentifier:!0,[i]:!1},a);const{url:n,query:o,fragmentIdentifier:l}=t.parseUrl(e,a);return t.stringifyUrl({url:n,query:s(o,r),fragmentIdentifier:l},a)},t.exclude=(e,r,a)=>{const n=Array.isArray(r)?e=>!r.includes(e):(e,t)=>!r(e,t);return t.pick(e,n,a)}},444:e=>{"use strict";e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const r=e.indexOf(t);return-1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}},4312:e=>{"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},8336:(e,t,r)=>{const{fdkAxios:a}=r(4233),{convertStringToBase64:n}=r(3748);e.exports=class{static execute(e,t,r,o,s,i,l){let c={Authorization:"Bearer "+n(`${e.applicationID}:${e.applicationToken}`)};e.cookie&&(c={...c,cookie:e.cookie}),e.locationDetails&&(c={...c,"x-location-detail":JSON.stringify(e.locationDetails)}),e.currencyCode&&(c={...c,"x-currency-code":e.currencyCode});const u=e.extraHeaders.reduce(((e,t)=>({...e,...t})),{});let d={method:t,url:r,params:o,data:s,headers:{...c,...u,...i},responseHeaders:l.responseHeaders};return d=JSON.parse(JSON.stringify(d)),a.request(d)}}},8464:(e,t,r)=>{const a=r(5020),n=r(9844),o=r(4080),s=r(4064),i=r(2192),l=r(6900),c=r(6904),u=r(3580),d=r(1564),p=r(3032),g=r(396),m=r(2336),w=r(7044),f=r(7960),y=r(4236),b=r(8408),{FDKClientValidationError:h}=r(9916);e.exports=class{constructor(e){this.config=e,this.cart=new a(e),this.catalog=new n(e),this.common=new o(e),this.communication=new s(e),this.configuration=new i(e),this.content=new l(e),this.fileStorage=new c(e),this.lead=new u(e),this.logistic=new d(e),this.order=new p(e),this.payment=new g(e),this.posCart=new m(e),this.rewards=new w(e),this.share=new f(e),this.theme=new y(e),this.user=new b(e)}setCookie(e){this.config.cookie=e}setLocationDetails(e,t=!1){this.config.locationDetails=!0===t?e:{...this.config.locationDetails,...e}}setCurrencyCode(e){if("string"!=typeof e)throw new h("Currency code should be string only");this.config.currencyCode=e}setExtraHeaders(e){if("object"!=typeof e)throw new h("Context value should be an object");this.config.extraHeaders.push(e)}}},2288:(e,t,r)=>{const{FDKInvalidCredentialError:a}=r(9916),{Logger:n,setLoggerLevel:o}=r(1544);e.exports=class{constructor(e,t){this.applicationID=e.applicationID||"",this.applicationToken=e.applicationToken||"",this.options={strictResponseCheck:!1,...t},this.domain=e.domain||"https://api.fynd.com",this.logLevel=e.logLevel||"ERROR",this.setLogLevel(this.logLevel),this.extraHeaders=[],this.locationDetails=e.locationDetails,this.currencyCode=e.currencyCode||"INR",this.validate()}setLogLevel(e){o(e.toUpperCase()),this.logLevel=e.toUpperCase()}setCookie(e){this.cookie=e}validate(){if(!this.applicationID)throw n({level:"ERROR",message:"No Application ID Present"}),new a("No Application ID Present");if(!this.applicationToken)throw n({level:"ERROR",message:"No Application Token Present"}),new a("No Application Token Present");if(this.applicationToken.length<5)throw n({level:"ERROR",message:"Invalid Application Token"}),new a("Invalid Application Token");if("boolean"!=typeof this.options.strictResponseCheck)throw n({level:"ERROR",message:"Invalid Application Token"}),n({level:"ERROR",message:"Invalid Value for options.strictResponseCheck, provide boolean value"}),new a("Invalid Value for options.strictResponseCheck, provide boolean value")}}},5020:(e,t,r)=>{const a=r(8336),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(9916),s=r(4776),i=(r(3768),r(3556)),l=r(2108),{Logger:c}=r(1544),u=r(9955);e.exports=class{constructor(e){this._conf=e,this._relativeUrls={addAddress:"/service/application/cart/v1.0/address",addItems:"/service/application/cart/v1.0/detail",applyCoupon:"/service/application/cart/v1.0/coupon",applyRewardPoints:"/service/application/cart/v1.0/redeem/points/",checkoutCart:"/service/application/cart/v1.0/checkout",checkoutCartV2:"/service/application/cart/v2.0/checkout",deleteCart:"/service/application/cart/v1.0/cart_archive",getAddressById:"/service/application/cart/v1.0/address/{id}",getAddresses:"/service/application/cart/v1.0/address",getBulkDiscountOffers:"/service/application/cart/v1.0/bulk-price",getCart:"/service/application/cart/v1.0/detail",getCartLastModified:"/service/application/cart/v1.0/detail",getCartMetaConfig:"/service/application/cart/v1.0/cart/configuration/{cart_meta_id}",getCartMetaConfigs:"/service/application/cart/v1.0/cart/configuration",getCartShareLink:"/service/application/cart/v1.0/share-cart",getCartSharedItems:"/service/application/cart/v1.0/share-cart/{token}",getCoupons:"/service/application/cart/v1.0/coupon",getItemCount:"/service/application/cart/v1.0/basic",getItemCountV2:"/service/application/cart/v2.0/basic",getLadderOffers:"/service/application/cart/v1.0/available-ladder-prices",getPromotionOffers:"/service/application/cart/v1.0/available-promotions",getShipments:"/service/application/cart/v1.0/shipment",removeAddress:"/service/application/cart/v1.0/address/{id}",removeCoupon:"/service/application/cart/v1.0/coupon",selectAddress:"/service/application/cart/v1.0/select-address",selectPaymentMode:"/service/application/cart/v1.0/payment",updateAddress:"/service/application/cart/v1.0/address/{id}",updateCart:"/service/application/cart/v1.0/detail",updateCartMeta:"/service/application/cart/v1.0/meta",updateCartWithSharedItems:"/service/application/cart/v1.0/share-cart/{token}/{action}",validateCouponForPayment:"/service/application/cart/v1.0/payment/validate/"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async addAddress({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.addAddress().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.addAddress().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > addAddress \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.addAddress,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.SaveAddressResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Cart > addAddress \n ${m}`})}return p}async addItems({body:e,i:t,b:r,areaCode:u,buyNow:d,id:p,cartType:g,requestHeaders:m}={requestHeaders:{}},{responseHeaders:w}={responseHeaders:!1}){const{error:f}=i.addItems().validate({body:e,i:t,b:r,areaCode:u,buyNow:d,id:p,cartType:g},{abortEarly:!1,allowUnknown:!0});if(f)return Promise.reject(new n(f));const{error:y}=i.addItems().validate({body:e,i:t,b:r,areaCode:u,buyNow:d,id:p,cartType:g},{abortEarly:!1,allowUnknown:!1});y&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > addItems \n ${y}`});const b={};b.i=t,b.b=r,b.area_code=u,b.buy_now=d,b.id=p,b.cart_type=g;const h=await a.execute(this._conf,"post",s({url:this._urls.addItems,params:{}}),b,e,{...m},{responseHeaders:w});let _=h;w&&(_=h[0]);const{error:v}=l.AddCartDetailResponse().validate(_,{abortEarly:!1,allowUnknown:!0});if(v){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(v));c({level:"WARN",message:`Response Validation Warnings for application > Cart > addItems \n ${v}`})}return h}async applyCoupon({body:e,i:t,b:r,p:u,id:d,buyNow:p,cartType:g,requestHeaders:m}={requestHeaders:{}},{responseHeaders:w}={responseHeaders:!1}){const{error:f}=i.applyCoupon().validate({body:e,i:t,b:r,p:u,id:d,buyNow:p,cartType:g},{abortEarly:!1,allowUnknown:!0});if(f)return Promise.reject(new n(f));const{error:y}=i.applyCoupon().validate({body:e,i:t,b:r,p:u,id:d,buyNow:p,cartType:g},{abortEarly:!1,allowUnknown:!1});y&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > applyCoupon \n ${y}`});const b={};b.i=t,b.b=r,b.p=u,b.id=d,b.buy_now=p,b.cart_type=g;const h=await a.execute(this._conf,"post",s({url:this._urls.applyCoupon,params:{}}),b,e,{...m},{responseHeaders:w});let _=h;w&&(_=h[0]);const{error:v}=l.CartDetailResponse().validate(_,{abortEarly:!1,allowUnknown:!0});if(v){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(v));c({level:"WARN",message:`Response Validation Warnings for application > Cart > applyCoupon \n ${v}`})}return h}async applyRewardPoints({body:e,id:t,i:r,b:u,buyNow:d,cartType:p,requestHeaders:g}={requestHeaders:{}},{responseHeaders:m}={responseHeaders:!1}){const{error:w}=i.applyRewardPoints().validate({body:e,id:t,i:r,b:u,buyNow:d,cartType:p},{abortEarly:!1,allowUnknown:!0});if(w)return Promise.reject(new n(w));const{error:f}=i.applyRewardPoints().validate({body:e,id:t,i:r,b:u,buyNow:d,cartType:p},{abortEarly:!1,allowUnknown:!1});f&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > applyRewardPoints \n ${f}`});const y={};y.id=t,y.i=r,y.b=u,y.buy_now=d,y.cart_type=p;const b=await a.execute(this._conf,"post",s({url:this._urls.applyRewardPoints,params:{}}),y,e,{...g},{responseHeaders:m});let h=b;m&&(h=b[0]);const{error:_}=l.CartDetailResponse().validate(h,{abortEarly:!1,allowUnknown:!0});if(_){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(_));c({level:"WARN",message:`Response Validation Warnings for application > Cart > applyRewardPoints \n ${_}`})}return b}async checkoutCart({body:e,buyNow:t,cartType:r,requestHeaders:u}={requestHeaders:{}},{responseHeaders:d}={responseHeaders:!1}){const{error:p}=i.checkoutCart().validate({body:e,buyNow:t,cartType:r},{abortEarly:!1,allowUnknown:!0});if(p)return Promise.reject(new n(p));const{error:g}=i.checkoutCart().validate({body:e,buyNow:t,cartType:r},{abortEarly:!1,allowUnknown:!1});g&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > checkoutCart \n ${g}`});const m={};m.buy_now=t,m.cart_type=r;const w=await a.execute(this._conf,"post",s({url:this._urls.checkoutCart,params:{}}),m,e,{...u},{responseHeaders:d});let f=w;d&&(f=w[0]);const{error:y}=l.CartCheckoutResponse().validate(f,{abortEarly:!1,allowUnknown:!0});if(y){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(y));c({level:"WARN",message:`Response Validation Warnings for application > Cart > checkoutCart \n ${y}`})}return w}async checkoutCartV2({body:e,buyNow:t,cartType:r,requestHeaders:u}={requestHeaders:{}},{responseHeaders:d}={responseHeaders:!1}){const{error:p}=i.checkoutCartV2().validate({body:e,buyNow:t,cartType:r},{abortEarly:!1,allowUnknown:!0});if(p)return Promise.reject(new n(p));const{error:g}=i.checkoutCartV2().validate({body:e,buyNow:t,cartType:r},{abortEarly:!1,allowUnknown:!1});g&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > checkoutCartV2 \n ${g}`});const m={};m.buy_now=t,m.cart_type=r;const w=await a.execute(this._conf,"post",s({url:this._urls.checkoutCartV2,params:{}}),m,e,{...u},{responseHeaders:d});let f=w;d&&(f=w[0]);const{error:y}=l.CartCheckoutResponse().validate(f,{abortEarly:!1,allowUnknown:!0});if(y){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(y));c({level:"WARN",message:`Response Validation Warnings for application > Cart > checkoutCartV2 \n ${y}`})}return w}async deleteCart({id:e,cartType:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.deleteCart().validate({id:e,cartType:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.deleteCart().validate({id:e,cartType:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > deleteCart \n ${p}`});const g={};g.id=e,g.cart_type=t;const m=await a.execute(this._conf,"put",s({url:this._urls.deleteCart,params:{}}),g,void 0,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.DeleteCartDetailResponse().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > Cart > deleteCart \n ${f}`})}return m}async getAddressById({id:e,cartId:t,buyNow:r,mobileNo:u,checkoutMode:d,tags:p,isDefault:g,requestHeaders:m}={requestHeaders:{}},{responseHeaders:w}={responseHeaders:!1}){const{error:f}=i.getAddressById().validate({id:e,cartId:t,buyNow:r,mobileNo:u,checkoutMode:d,tags:p,isDefault:g},{abortEarly:!1,allowUnknown:!0});if(f)return Promise.reject(new n(f));const{error:y}=i.getAddressById().validate({id:e,cartId:t,buyNow:r,mobileNo:u,checkoutMode:d,tags:p,isDefault:g},{abortEarly:!1,allowUnknown:!1});y&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getAddressById \n ${y}`});const b={};b.cart_id=t,b.buy_now=r,b.mobile_no=u,b.checkout_mode=d,b.tags=p,b.is_default=g;const h=await a.execute(this._conf,"get",s({url:this._urls.getAddressById,params:{id:e}}),b,void 0,{...m},{responseHeaders:w});let _=h;w&&(_=h[0]);const{error:v}=l.Address().validate(_,{abortEarly:!1,allowUnknown:!0});if(v){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(v));c({level:"WARN",message:`Response Validation Warnings for application > Cart > getAddressById \n ${v}`})}return h}async getAddresses({cartId:e,buyNow:t,mobileNo:r,checkoutMode:u,tags:d,isDefault:p,requestHeaders:g}={requestHeaders:{}},{responseHeaders:m}={responseHeaders:!1}){const{error:w}=i.getAddresses().validate({cartId:e,buyNow:t,mobileNo:r,checkoutMode:u,tags:d,isDefault:p},{abortEarly:!1,allowUnknown:!0});if(w)return Promise.reject(new n(w));const{error:f}=i.getAddresses().validate({cartId:e,buyNow:t,mobileNo:r,checkoutMode:u,tags:d,isDefault:p},{abortEarly:!1,allowUnknown:!1});f&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getAddresses \n ${f}`});const y={};y.cart_id=e,y.buy_now=t,y.mobile_no=r,y.checkout_mode=u,y.tags=d,y.is_default=p;const b=await a.execute(this._conf,"get",s({url:this._urls.getAddresses,params:{}}),y,void 0,{...g},{responseHeaders:m});let h=b;m&&(h=b[0]);const{error:_}=l.GetAddressesResponse().validate(h,{abortEarly:!1,allowUnknown:!0});if(_){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(_));c({level:"WARN",message:`Response Validation Warnings for application > Cart > getAddresses \n ${_}`})}return b}async getBulkDiscountOffers({itemId:e,articleId:t,uid:r,slug:u,cartType:d,requestHeaders:p}={requestHeaders:{}},{responseHeaders:g}={responseHeaders:!1}){const{error:m}=i.getBulkDiscountOffers().validate({itemId:e,articleId:t,uid:r,slug:u,cartType:d},{abortEarly:!1,allowUnknown:!0});if(m)return Promise.reject(new n(m));const{error:w}=i.getBulkDiscountOffers().validate({itemId:e,articleId:t,uid:r,slug:u,cartType:d},{abortEarly:!1,allowUnknown:!1});w&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getBulkDiscountOffers \n ${w}`});const f={};f.item_id=e,f.article_id=t,f.uid=r,f.slug=u,f.cart_type=d;const y=await a.execute(this._conf,"get",s({url:this._urls.getBulkDiscountOffers,params:{}}),f,void 0,{...p},{responseHeaders:g});let b=y;g&&(b=y[0]);const{error:h}=l.BulkPriceResponse().validate(b,{abortEarly:!1,allowUnknown:!0});if(h){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(h));c({level:"WARN",message:`Response Validation Warnings for application > Cart > getBulkDiscountOffers \n ${h}`})}return y}async getCart({id:e,i:t,b:r,c:u,assignCardId:d,areaCode:p,buyNow:g,cartType:m,requestHeaders:w}={requestHeaders:{}},{responseHeaders:f}={responseHeaders:!1}){const{error:y}=i.getCart().validate({id:e,i:t,b:r,c:u,assignCardId:d,areaCode:p,buyNow:g,cartType:m},{abortEarly:!1,allowUnknown:!0});if(y)return Promise.reject(new n(y));const{error:b}=i.getCart().validate({id:e,i:t,b:r,c:u,assignCardId:d,areaCode:p,buyNow:g,cartType:m},{abortEarly:!1,allowUnknown:!1});b&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getCart \n ${b}`});const h={};h.id=e,h.i=t,h.b=r,h.c=u,h.assign_card_id=d,h.area_code=p,h.buy_now=g,h.cart_type=m;const _=await a.execute(this._conf,"get",s({url:this._urls.getCart,params:{}}),h,void 0,{...w},{responseHeaders:f});let v=_;f&&(v=_[0]);const{error:R}=l.CartDetailResponse().validate(v,{abortEarly:!1,allowUnknown:!0});if(R){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(R));c({level:"WARN",message:`Response Validation Warnings for application > Cart > getCart \n ${R}`})}return _}async getCartLastModified({id:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:l}=i.getCartLastModified().validate({id:e},{abortEarly:!1,allowUnknown:!0});if(l)return Promise.reject(new n(l));const{error:d}=i.getCartLastModified().validate({id:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getCartLastModified \n ${d}`});const p={};p.id=e;const g=await a.execute(this._conf,"head",s({url:this._urls.getCartLastModified,params:{}}),p,void 0,{...t},{responseHeaders:r});let m=g;r&&(m=g[0]);const{error:w}=u.string().allow("").validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > Cart > getCartLastModified \n ${w}`})}return g}async getCartMetaConfig({cartMetaId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getCartMetaConfig().validate({cartMetaId:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getCartMetaConfig().validate({cartMetaId:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getCartMetaConfig \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getCartMetaConfig,params:{cartMetaId:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.CartConfigDetailResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Cart > getCartMetaConfig \n ${m}`})}return p}async getCartMetaConfigs({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getCartMetaConfigs().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:u}=i.getCartMetaConfigs().validate({},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getCartMetaConfigs \n ${u}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getCartMetaConfigs,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=l.CartConfigListResponse().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));c({level:"WARN",message:`Response Validation Warnings for application > Cart > getCartMetaConfigs \n ${g}`})}return d}async getCartShareLink({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getCartShareLink().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getCartShareLink().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getCartShareLink \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.getCartShareLink,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.GetShareCartLinkResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Cart > getCartShareLink \n ${m}`})}return p}async getCartSharedItems({token:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getCartSharedItems().validate({token:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getCartSharedItems().validate({token:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getCartSharedItems \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getCartSharedItems,params:{token:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.SharedCartResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Cart > getCartSharedItems \n ${m}`})}return p}async getCoupons({id:e,buyNow:t,slug:r,storeId:u,requestHeaders:d}={requestHeaders:{}},{responseHeaders:p}={responseHeaders:!1}){const{error:g}=i.getCoupons().validate({id:e,buyNow:t,slug:r,storeId:u},{abortEarly:!1,allowUnknown:!0});if(g)return Promise.reject(new n(g));const{error:m}=i.getCoupons().validate({id:e,buyNow:t,slug:r,storeId:u},{abortEarly:!1,allowUnknown:!1});m&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getCoupons \n ${m}`});const w={};w.id=e,w.buy_now=t,w.slug=r,w.store_id=u;const f=await a.execute(this._conf,"get",s({url:this._urls.getCoupons,params:{}}),w,void 0,{...d},{responseHeaders:p});let y=f;p&&(y=f[0]);const{error:b}=l.GetCouponResponse().validate(y,{abortEarly:!1,allowUnknown:!0});if(b){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(b));c({level:"WARN",message:`Response Validation Warnings for application > Cart > getCoupons \n ${b}`})}return f}async getItemCount({id:e,buyNow:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.getItemCount().validate({id:e,buyNow:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.getItemCount().validate({id:e,buyNow:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getItemCount \n ${p}`});const g={};g.id=e,g.buy_now=t;const m=await a.execute(this._conf,"get",s({url:this._urls.getItemCount,params:{}}),g,void 0,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.CartItemCountResponse().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > Cart > getItemCount \n ${f}`})}return m}async getItemCountV2({id:e,buyNow:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.getItemCountV2().validate({id:e,buyNow:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.getItemCountV2().validate({id:e,buyNow:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getItemCountV2 \n ${p}`});const g={};g.id=e,g.buy_now=t;const m=await a.execute(this._conf,"get",s({url:this._urls.getItemCountV2,params:{}}),g,void 0,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.CartItemCountResponseV2().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > Cart > getItemCountV2 \n ${f}`})}return m}async getLadderOffers({slug:e,storeId:t,promotionId:r,pageSize:u,requestHeaders:d}={requestHeaders:{}},{responseHeaders:p}={responseHeaders:!1}){const{error:g}=i.getLadderOffers().validate({slug:e,storeId:t,promotionId:r,pageSize:u},{abortEarly:!1,allowUnknown:!0});if(g)return Promise.reject(new n(g));const{error:m}=i.getLadderOffers().validate({slug:e,storeId:t,promotionId:r,pageSize:u},{abortEarly:!1,allowUnknown:!1});m&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getLadderOffers \n ${m}`});const w={};w.slug=e,w.store_id=t,w.promotion_id=r,w.page_size=u;const f=await a.execute(this._conf,"get",s({url:this._urls.getLadderOffers,params:{}}),w,void 0,{...d},{responseHeaders:p});let y=f;p&&(y=f[0]);const{error:b}=l.LadderPriceOffers().validate(y,{abortEarly:!1,allowUnknown:!0});if(b){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(b));c({level:"WARN",message:`Response Validation Warnings for application > Cart > getLadderOffers \n ${b}`})}return f}async getPromotionOffers({slug:e,pageSize:t,promotionGroup:r,storeId:u,cartType:d,requestHeaders:p}={requestHeaders:{}},{responseHeaders:g}={responseHeaders:!1}){const{error:m}=i.getPromotionOffers().validate({slug:e,pageSize:t,promotionGroup:r,storeId:u,cartType:d},{abortEarly:!1,allowUnknown:!0});if(m)return Promise.reject(new n(m));const{error:w}=i.getPromotionOffers().validate({slug:e,pageSize:t,promotionGroup:r,storeId:u,cartType:d},{abortEarly:!1,allowUnknown:!1});w&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getPromotionOffers \n ${w}`});const f={};f.slug=e,f.page_size=t,f.promotion_group=r,f.store_id=u,f.cart_type=d;const y=await a.execute(this._conf,"get",s({url:this._urls.getPromotionOffers,params:{}}),f,void 0,{...p},{responseHeaders:g});let b=y;g&&(b=y[0]);const{error:h}=l.PromotionOffersResponse().validate(b,{abortEarly:!1,allowUnknown:!0});if(h){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(h));c({level:"WARN",message:`Response Validation Warnings for application > Cart > getPromotionOffers \n ${h}`})}return y}async getShipments({p:e,id:t,buyNow:r,addressId:u,areaCode:d,orderType:p,requestHeaders:g}={requestHeaders:{}},{responseHeaders:m}={responseHeaders:!1}){const{error:w}=i.getShipments().validate({p:e,id:t,buyNow:r,addressId:u,areaCode:d,orderType:p},{abortEarly:!1,allowUnknown:!0});if(w)return Promise.reject(new n(w));const{error:f}=i.getShipments().validate({p:e,id:t,buyNow:r,addressId:u,areaCode:d,orderType:p},{abortEarly:!1,allowUnknown:!1});f&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getShipments \n ${f}`});const y={};y.p=e,y.id=t,y.buy_now=r,y.address_id=u,y.area_code=d,y.order_type=p;const b=await a.execute(this._conf,"get",s({url:this._urls.getShipments,params:{}}),y,void 0,{...g},{responseHeaders:m});let h=b;m&&(h=b[0]);const{error:_}=l.CartShipmentsResponse().validate(h,{abortEarly:!1,allowUnknown:!0});if(_){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(_));c({level:"WARN",message:`Response Validation Warnings for application > Cart > getShipments \n ${_}`})}return b}async removeAddress({id:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.removeAddress().validate({id:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.removeAddress().validate({id:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > removeAddress \n ${d}`});const p=await a.execute(this._conf,"delete",s({url:this._urls.removeAddress,params:{id:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.DeleteAddressResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Cart > removeAddress \n ${m}`})}return p}async removeCoupon({id:e,buyNow:t,cartType:r,requestHeaders:u}={requestHeaders:{}},{responseHeaders:d}={responseHeaders:!1}){const{error:p}=i.removeCoupon().validate({id:e,buyNow:t,cartType:r},{abortEarly:!1,allowUnknown:!0});if(p)return Promise.reject(new n(p));const{error:g}=i.removeCoupon().validate({id:e,buyNow:t,cartType:r},{abortEarly:!1,allowUnknown:!1});g&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > removeCoupon \n ${g}`});const m={};m.id=e,m.buy_now=t,m.cart_type=r;const w=await a.execute(this._conf,"delete",s({url:this._urls.removeCoupon,params:{}}),m,void 0,{...u},{responseHeaders:d});let f=w;d&&(f=w[0]);const{error:y}=l.CartDetailResponse().validate(f,{abortEarly:!1,allowUnknown:!0});if(y){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(y));c({level:"WARN",message:`Response Validation Warnings for application > Cart > removeCoupon \n ${y}`})}return w}async selectAddress({body:e,cartId:t,buyNow:r,i:u,b:d,requestHeaders:p}={requestHeaders:{}},{responseHeaders:g}={responseHeaders:!1}){const{error:m}=i.selectAddress().validate({body:e,cartId:t,buyNow:r,i:u,b:d},{abortEarly:!1,allowUnknown:!0});if(m)return Promise.reject(new n(m));const{error:w}=i.selectAddress().validate({body:e,cartId:t,buyNow:r,i:u,b:d},{abortEarly:!1,allowUnknown:!1});w&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > selectAddress \n ${w}`});const f={};f.cart_id=t,f.buy_now=r,f.i=u,f.b=d;const y=await a.execute(this._conf,"post",s({url:this._urls.selectAddress,params:{}}),f,e,{...p},{responseHeaders:g});let b=y;g&&(b=y[0]);const{error:h}=l.CartDetailResponse().validate(b,{abortEarly:!1,allowUnknown:!0});if(h){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(h));c({level:"WARN",message:`Response Validation Warnings for application > Cart > selectAddress \n ${h}`})}return y}async selectPaymentMode({body:e,id:t,buyNow:r,requestHeaders:u}={requestHeaders:{}},{responseHeaders:d}={responseHeaders:!1}){const{error:p}=i.selectPaymentMode().validate({body:e,id:t,buyNow:r},{abortEarly:!1,allowUnknown:!0});if(p)return Promise.reject(new n(p));const{error:g}=i.selectPaymentMode().validate({body:e,id:t,buyNow:r},{abortEarly:!1,allowUnknown:!1});g&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > selectPaymentMode \n ${g}`});const m={};m.id=t,m.buy_now=r;const w=await a.execute(this._conf,"put",s({url:this._urls.selectPaymentMode,params:{}}),m,e,{...u},{responseHeaders:d});let f=w;d&&(f=w[0]);const{error:y}=l.CartDetailResponse().validate(f,{abortEarly:!1,allowUnknown:!0});if(y){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(y));c({level:"WARN",message:`Response Validation Warnings for application > Cart > selectPaymentMode \n ${y}`})}return w}async updateAddress({id:e,body:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.updateAddress().validate({id:e,body:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.updateAddress().validate({id:e,body:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > updateAddress \n ${p}`});const g=await a.execute(this._conf,"put",s({url:this._urls.updateAddress,params:{id:e}}),{},t,{...r},{responseHeaders:u});let m=g;u&&(m=g[0]);const{error:w}=l.UpdateAddressResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > Cart > updateAddress \n ${w}`})}return g}async updateCart({body:e,id:t,i:r,b:u,areaCode:d,buyNow:p,cartType:g,requestHeaders:m}={requestHeaders:{}},{responseHeaders:w}={responseHeaders:!1}){const{error:f}=i.updateCart().validate({body:e,id:t,i:r,b:u,areaCode:d,buyNow:p,cartType:g},{abortEarly:!1,allowUnknown:!0});if(f)return Promise.reject(new n(f));const{error:y}=i.updateCart().validate({body:e,id:t,i:r,b:u,areaCode:d,buyNow:p,cartType:g},{abortEarly:!1,allowUnknown:!1});y&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > updateCart \n ${y}`});const b={};b.id=t,b.i=r,b.b=u,b.area_code=d,b.buy_now=p,b.cart_type=g;const h=await a.execute(this._conf,"put",s({url:this._urls.updateCart,params:{}}),b,e,{...m},{responseHeaders:w});let _=h;w&&(_=h[0]);const{error:v}=l.UpdateCartDetailResponse().validate(_,{abortEarly:!1,allowUnknown:!0});if(v){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(v));c({level:"WARN",message:`Response Validation Warnings for application > Cart > updateCart \n ${v}`})}return h}async updateCartMeta({body:e,id:t,buyNow:r,requestHeaders:u}={requestHeaders:{}},{responseHeaders:d}={responseHeaders:!1}){const{error:p}=i.updateCartMeta().validate({body:e,id:t,buyNow:r},{abortEarly:!1,allowUnknown:!0});if(p)return Promise.reject(new n(p));const{error:g}=i.updateCartMeta().validate({body:e,id:t,buyNow:r},{abortEarly:!1,allowUnknown:!1});g&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > updateCartMeta \n ${g}`});const m={};m.id=t,m.buy_now=r;const w=await a.execute(this._conf,"put",s({url:this._urls.updateCartMeta,params:{}}),m,e,{...u},{responseHeaders:d});let f=w;d&&(f=w[0]);const{error:y}=l.CartMetaResponse().validate(f,{abortEarly:!1,allowUnknown:!0});if(y){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(y));c({level:"WARN",message:`Response Validation Warnings for application > Cart > updateCartMeta \n ${y}`})}return w}async updateCartWithSharedItems({token:e,action:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.updateCartWithSharedItems().validate({token:e,action:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.updateCartWithSharedItems().validate({token:e,action:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > updateCartWithSharedItems \n ${p}`});const g=await a.execute(this._conf,"post",s({url:this._urls.updateCartWithSharedItems,params:{token:e,action:t}}),{},void 0,{...r},{responseHeaders:u});let m=g;u&&(m=g[0]);const{error:w}=l.SharedCartResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > Cart > updateCartWithSharedItems \n ${w}`})}return g}async validateCouponForPayment({id:e,buyNow:t,addressId:r,paymentMode:u,paymentIdentifier:d,aggregatorName:p,merchantCode:g,iin:m,network:w,type:f,cardId:y,cartType:b,requestHeaders:h}={requestHeaders:{}},{responseHeaders:_}={responseHeaders:!1}){const{error:v}=i.validateCouponForPayment().validate({id:e,buyNow:t,addressId:r,paymentMode:u,paymentIdentifier:d,aggregatorName:p,merchantCode:g,iin:m,network:w,type:f,cardId:y,cartType:b},{abortEarly:!1,allowUnknown:!0});if(v)return Promise.reject(new n(v));const{error:R}=i.validateCouponForPayment().validate({id:e,buyNow:t,addressId:r,paymentMode:u,paymentIdentifier:d,aggregatorName:p,merchantCode:g,iin:m,network:w,type:f,cardId:y,cartType:b},{abortEarly:!1,allowUnknown:!1});R&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > validateCouponForPayment \n ${R}`});const k={};k.id=e,k.buy_now=t,k.address_id=r,k.payment_mode=u,k.payment_identifier=d,k.aggregator_name=p,k.merchant_code=g,k.iin=m,k.network=w,k.type=f,k.card_id=y,k.cart_type=b;const P=await a.execute(this._conf,"get",s({url:this._urls.validateCouponForPayment,params:{}}),k,void 0,{...h},{responseHeaders:_});let j=P;_&&(j=P[0]);const{error:C}=l.PaymentCouponValidate().validate(j,{abortEarly:!1,allowUnknown:!0});if(C){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(C));c({level:"WARN",message:`Response Validation Warnings for application > Cart > validateCouponForPayment \n ${C}`})}return P}}},2108:(e,t,r)=>{const a=r(9955);class n{static BuyRules(){return a.object({item_criteria:a.any(),cart_conditions:a.any()})}static DiscountRulesApp(){return a.object({matched_buy_rules:a.array().items(a.string().allow("")),raw_offer:a.any(),offer:a.any(),item_criteria:a.any()})}static Ownership(){return a.object({payable_category:a.string().allow(""),payable_by:a.string().allow("")})}static FreeGiftItem(){return a.object({item_slug:a.string().allow(""),item_name:a.string().allow(""),item_price_details:a.any(),item_brand_name:a.string().allow(""),item_id:a.number(),item_images_url:a.array().items(a.string().allow(""))})}static AppliedFreeArticles(){return a.object({free_gift_item_details:n.FreeGiftItem(),parent_item_identifier:a.string().allow(""),quantity:a.number(),article_id:a.string().allow("")})}static AppliedPromotion(){return a.object({promo_id:a.string().allow(""),buy_rules:a.array().items(n.BuyRules()),offer_text:a.string().allow(""),promotion_group:a.string().allow(""),mrp_promotion:a.boolean(),promotion_name:a.string().allow(""),amount:a.number(),discount_rules:a.array().items(n.DiscountRulesApp()),ownership:n.Ownership(),article_quantity:a.number(),applied_free_articles:a.array().items(n.AppliedFreeArticles()),promotion_type:a.string().allow(""),custom_field_meta:a.array().items(a.any()),meta:a.any(),code:a.string().allow("").allow(null)})}static PaymentSelectionLock(){return a.object({enabled:a.boolean(),default_options:a.string().allow(""),payment_identifier:a.string().allow("")})}static PromiseFormatted(){return a.object({max:a.string().allow(""),min:a.string().allow("")})}static PromiseISOFormat(){return a.object({max:a.string().allow(""),min:a.string().allow("")})}static PromiseTimestamp(){return a.object({max:a.number(),min:a.number()})}static ShipmentPromise(){return a.object({formatted:n.PromiseFormatted(),timestamp:n.PromiseTimestamp(),iso:n.PromiseISOFormat()})}static BasePrice(){return a.object({effective:a.number(),currency_symbol:a.string().allow(""),marked:a.number(),currency_code:a.string().allow("")})}static ArticlePriceInfo(){return a.object({base:n.BasePrice(),converted:n.BasePrice()})}static BaseInfo(){return a.object({uid:a.number(),name:a.string().allow("")})}static StoreInfo(){return a.object({store_code:a.string().allow(""),uid:a.number(),name:a.string().allow("")})}static ProductArticle(){return a.object({price:n.ArticlePriceInfo(),product_group_tags:a.array().items(a.string().allow("")),extra_meta:a.any(),quantity:a.number(),_custom_json:a.any(),meta:a.any(),size:a.string().allow(""),mto_quantity:a.number(),seller:n.BaseInfo(),product_name:a.string().allow(""),seller_identifier:a.string().allow(""),parent_item_identifiers:a.any(),identifier:a.any(),store:n.StoreInfo(),cart_item_meta:a.any(),uid:a.string().allow(""),gift_card:a.any(),is_gift_visible:a.boolean(),type:a.string().allow(""),tags:a.array().items(a.string().allow(""))})}static CartProductIdentifer(){return a.object({identifier:a.string().allow("")})}static PromoMeta(){return a.object({message:a.string().allow("")})}static ChargesAmount(){return a.object({value:a.number(),currency:a.string().allow("")})}static Charges(){return a.object({meta:a.any(),amount:n.ChargesAmount(),name:a.string().allow(""),allow_refund:a.boolean(),code:a.string().allow(""),type:a.string().allow("")})}static ProductPrice(){return a.object({currency_symbol:a.string().allow(""),selling:a.number(),currency_code:a.string().allow(""),add_on:a.number(),effective:a.number(),marked:a.number()})}static ProductPriceInfo(){return a.object({base:n.ProductPrice(),converted:n.ProductPrice()})}static ProductPricePerUnit(){return a.object({currency_symbol:a.string().allow(""),selling_price:a.number(),currency_code:a.string().allow(""),add_on:a.number(),effective:a.number(),marked:a.number()})}static ProductPricePerUnitInfo(){return a.object({base:n.ProductPricePerUnit(),converted:n.ProductPricePerUnit()})}static ProductAvailabilitySize(){return a.object({display:a.string().allow(""),value:a.string().allow(""),is_available:a.boolean()})}static ProductAvailability(){return a.object({out_of_stock:a.boolean(),deliverable:a.boolean(),available_sizes:a.array().items(n.ProductAvailabilitySize()),is_valid:a.boolean(),other_store_quantity:a.number(),sizes:a.array().items(a.string().allow(""))})}static ActionQuery(){return a.object({product_slug:a.array().items(a.string().allow(""))})}static ProductAction(){return a.object({query:n.ActionQuery(),url:a.string().allow(""),type:a.string().allow("")})}static Tags(){return a.object({tags:a.any()})}static ProductImage(){return a.object({secure_url:a.string().allow(""),aspect_ratio:a.string().allow(""),url:a.string().allow("")})}static CategoryInfo(){return a.object({uid:a.number(),name:a.string().allow("")})}static CartProduct(){return a.object({_custom_json:a.any(),brand:n.BaseInfo(),action:n.ProductAction(),teaser_tag:n.Tags(),slug:a.string().allow(""),images:a.array().items(n.ProductImage()),uid:a.number(),name:a.string().allow(""),item_code:a.string().allow("").allow(null),categories:a.array().items(n.CategoryInfo()),tags:a.array().items(a.string().allow("")),type:a.string().allow(""),attributes:a.any()})}static CouponDetails(){return a.object({discount_single_quantity:a.number(),code:a.string().allow(""),discount_total_quantity:a.number()})}static CartProductInfo(){return a.object({article:n.ProductArticle(),moq:a.any(),identifiers:n.CartProductIdentifer().required(),promo_meta:n.PromoMeta(),price:n.ProductPriceInfo(),quantity:a.number(),charges:a.array().items(n.Charges()),discount:a.string().allow(""),availability:n.ProductAvailability(),delivery_promise:n.ShipmentPromise(),product:n.CartProduct(),product_ean_id:a.string().allow(""),bulk_offer:a.any(),parent_item_identifiers:a.any(),coupon:n.CouponDetails(),custom_order:a.any(),coupon_message:a.string().allow(""),key:a.string().allow(""),message:a.string().allow(""),is_set:a.boolean(),seller_count:a.number(),price_per_unit:n.ProductPricePerUnitInfo(),promotions_applied:a.array().items(n.AppliedPromotion())})}static DisplayBreakup(){return a.object({currency_symbol:a.string().allow(""),key:a.string().allow(""),display:a.string().allow(""),message:a.array().items(a.string().allow("")),currency_code:a.string().allow(""),value:a.number(),preset:a.number()})}static RawBreakup(){return a.object({vog:a.number(),subtotal:a.number(),fynd_cash:a.number(),discount:a.number(),convenience_fee:a.number(),delivery_charge:a.number(),gst_charges:a.number(),mrp_total:a.number(),mop_total:a.number(),total_charge:a.number(),coupon:a.number(),total:a.number(),gift_card:a.number(),you_saved:a.number(),cod_charge:a.number()})}static CouponBreakup(){return a.object({coupon_value:a.number(),title:a.string().allow("").allow(null),sub_title:a.string().allow("").allow(null),minimum_cart_value:a.number(),message:a.string().allow(""),coupon_type:a.string().allow("").allow(null),uid:a.string().allow(""),value:a.number(),max_discount_value:a.number(),is_applied:a.boolean(),description:a.string().allow("").allow(null),code:a.string().allow(""),type:a.string().allow("")})}static LoyaltyPoints(){return a.object({total:a.number(),description:a.string().allow(""),applicable:a.number(),is_applied:a.boolean()})}static CartBreakup(){return a.object({display:a.array().items(n.DisplayBreakup()),raw:n.RawBreakup(),coupon:n.CouponBreakup(),loyalty_points:n.LoyaltyPoints()})}static CartCurrency(){return a.object({code:a.string().allow(""),symbol:a.string().allow("")})}static CartDetailCoupon(){return a.object({cashback_amount:a.number(),cashback_message_primary:a.string().allow(""),cashback_message_secondary:a.string().allow(""),coupon_code:a.string().allow(""),coupon_description:a.string().allow(""),coupon_id:a.string().allow(""),coupon_subtitle:a.string().allow(""),coupon_title:a.string().allow(""),coupon_type:a.string().allow(""),coupon_value:a.number(),discount:a.number(),is_applied:a.boolean(),is_valid:a.boolean(),maximum_discount_value:a.number(),message:a.string().allow(""),minimum_cart_value:a.number()})}static ChargesThreshold(){return a.object({charges:a.number(),threshold:a.number()})}static DeliveryChargesConfig(){return a.object({enabled:a.boolean(),charges:a.array().items(n.ChargesThreshold())})}static CartCommonConfig(){return a.object({delivery_charges_config:n.DeliveryChargesConfig()})}static CustomCart(){return a.object({id:a.string().allow(""),cart_name:a.string().allow(""),cart_type:a.string().allow(""),is_universal:a.boolean()})}static CartDetailResponse(){return a.object({cart_id:a.number(),uid:a.string().allow(""),applied_promo_details:a.array().items(n.AppliedPromotion()),checkout_mode:a.string().allow(""),pan_no:a.string().allow(""),is_pan_received:a.boolean(),is_valid:a.boolean(),id:a.string().allow(""),payment_selection_lock:n.PaymentSelectionLock(),delivery_promise:n.ShipmentPromise(),comment:a.string().allow(""),items:a.array().items(n.CartProductInfo()),delivery_charge_info:a.string().allow(""),common_config:n.CartCommonConfig(),coupon:n.CartDetailCoupon(),message:a.string().allow(""),notification:a.any(),staff_user_id:a.string().allow(""),success:a.boolean(),gstin:a.string().allow(""),restrict_checkout:a.boolean(),last_modified:a.string().allow(""),breakup_values:n.CartBreakup(),currency:n.CartCurrency(),coupon_text:a.string().allow(""),buy_now:a.boolean(),pan_config:a.any(),custom_cart:n.CustomCart()})}static AddProductCart(){return a.object({article_assignment:a.any(),product_group_tags:a.array().items(a.string().allow("").allow(null)),extra_meta:a.any(),quantity:a.number(),_custom_json:a.any(),item_size:a.string().allow(""),store_id:a.number(),display:a.string().allow(""),article_id:a.string().allow(""),price_factory_type_id:a.string().allow(""),parent_item_identifiers:a.array().items(a.object().pattern(/\S/,a.string().allow(""))),seller_id:a.number(),pos:a.boolean(),item_id:a.number(),meta:a.any(),seller_identifier:a.string().allow("")})}static AddCartRequest(){return a.object({items:a.array().items(n.AddProductCart()),new_cart:a.boolean()})}static AddCartDetailResponse(){return a.object({message:a.string().allow(""),partial:a.boolean(),cart:n.CartDetailResponse(),success:a.boolean()})}static UpdateProductCart(){return a.object({extra_meta:a.any(),_custom_json:a.any(),quantity:a.number(),item_size:a.string().allow(""),item_index:a.number(),identifiers:n.CartProductIdentifer().required(),article_id:a.string().allow(""),parent_item_identifiers:a.any(),price_factory_type_id:a.string().allow(""),item_id:a.number(),meta:a.any()})}static UpdateCartRequest(){return a.object({items:a.array().items(n.UpdateProductCart()),operation:a.string().allow("").required()})}static UpdateCartDetailResponse(){return a.object({message:a.string().allow(""),cart:n.CartDetailResponse(),success:a.boolean()})}static DeleteCartDetailResponse(){return a.object({message:a.string().allow(""),success:a.boolean()})}static CartItemCountResponse(){return a.object({user_cart_items_count:a.number()})}static CartItemCountResponseV2(){return a.object({user_all_cart_articles_quantity_count:a.number(),user_all_cart_article_count:a.number(),custom_cart_count:a.any()})}static PageCoupon(){return a.object({total_item_count:a.number(),has_next:a.boolean(),total:a.number(),current:a.number(),has_previous:a.boolean()})}static Coupon(){return a.object({coupon_amount:a.number(),coupon_value:a.number(),title:a.string().allow(""),minimum_cart_value:a.number(),sub_title:a.string().allow(""),expires_on:a.string().allow(""),message:a.string().allow(""),coupon_type:a.string().allow("").allow(null),max_discount_value:a.number(),coupon_code:a.string().allow(""),is_applicable:a.boolean(),description:a.string().allow("").allow(null),is_applied:a.boolean(),start_date:a.string().allow("").allow(null),end_date:a.string().allow("").allow(null),coupon_applicable_message:a.string().allow("")})}static GetCouponResponse(){return a.object({page:n.PageCoupon(),available_coupon_list:a.array().items(n.Coupon())})}static ApplyCouponRequest(){return a.object({coupon_code:a.string().allow("").required()})}static OfferPrice(){return a.object({currency_symbol:a.string().allow(""),bulk_effective:a.number(),currency_code:a.string().allow(""),effective:a.number(),marked:a.number()})}static OfferItem(){return a.object({price:n.OfferPrice(),margin:a.number(),quantity:a.number(),best:a.boolean(),total:a.number(),auto_applied:a.boolean(),type:a.string().allow("")})}static OfferSeller(){return a.object({uid:a.number(),name:a.string().allow("")})}static BulkPriceOffer(){return a.object({offers:a.array().items(n.OfferItem()),seller:n.OfferSeller()})}static BulkPriceResponse(){return a.object({data:a.array().items(n.BulkPriceOffer())})}static RewardPointRequest(){return a.object({points:a.boolean().required()})}static GeoLocation(){return a.object({latitude:a.number(),longitude:a.number()})}static Address(){return a.object({country_iso_code:a.string().allow(""),area:a.string().allow(""),phone:a.string().allow(""),country_phone_code:a.string().allow(""),checkout_mode:a.string().allow(""),address:a.string().allow(""),area_code_slug:a.string().allow(""),geo_location:n.GeoLocation(),id:a.string().allow(""),_custom_json:a.any(),city:a.string().allow(""),sector:a.string().allow(""),state_code:a.string().allow(""),created_by_user_id:a.string().allow(""),landmark:a.string().allow(""),user_id:a.string().allow(""),name:a.string().allow(""),google_map_point:a.any(),is_active:a.boolean(),tags:a.array().items(a.string().allow("")),country_code:a.string().allow(""),address_type:a.string().allow(""),country:a.string().allow(""),is_default_address:a.boolean(),area_code:a.string().allow(""),email:a.string().allow(""),state:a.string().allow(""),meta:a.any()})}static GetAddressesResponse(){return a.object({pii_masking:a.boolean(),address:a.array().items(n.Address())})}static SaveAddressResponse(){return a.object({id:a.string().allow(""),success:a.boolean(),is_default_address:a.boolean()})}static UpdateAddressResponse(){return a.object({is_updated:a.boolean(),id:a.string().allow(""),success:a.boolean(),is_default_address:a.boolean()})}static DeleteAddressResponse(){return a.object({id:a.string().allow(""),is_deleted:a.boolean()})}static SelectCartAddressRequest(){return a.object({id:a.string().allow(""),billing_address_id:a.string().allow(""),cart_id:a.string().allow("")})}static UpdateCartPaymentRequest(){return a.object({id:a.string().allow(""),payment_identifier:a.string().allow("").allow(null),address_id:a.string().allow(""),merchant_code:a.string().allow(""),aggregator_name:a.string().allow(""),payment_mode:a.string().allow("")})}static CouponValidity(){return a.object({title:a.string().allow(""),discount:a.number(),next_validation_required:a.boolean().allow(null),valid:a.boolean(),display_message_en:a.string().allow("").allow(null),code:a.string().allow("").allow(null)})}static PaymentCouponValidate(){return a.object({message:a.string().allow(""),coupon_validity:n.CouponValidity(),success:a.boolean().required()})}static ShipmentResponse(){return a.object({shipments:a.number(),promise:n.ShipmentPromise(),order_type:a.string().allow(""),box_type:a.string().allow("").allow(null),shipment_type:a.string().allow(""),dp_options:a.any().allow(null),dp_id:a.string().allow("").allow(null),items:a.array().items(n.CartProductInfo()),fulfillment_type:a.string().allow(""),fulfillment_id:a.number()})}static CartShipmentsResponse(){return a.object({delivery_charge_info:a.string().allow(""),checkout_mode:a.string().allow(""),message:a.string().allow(""),gstin:a.string().allow(""),restrict_checkout:a.boolean(),last_modified:a.string().allow(""),cart_id:a.number(),is_valid:a.boolean(),breakup_values:n.CartBreakup(),currency:n.CartCurrency(),id:a.string().allow(""),shipments:a.array().items(n.ShipmentResponse()),payment_selection_lock:n.PaymentSelectionLock(),coupon_text:a.string().allow(""),delivery_promise:n.ShipmentPromise(),error:a.boolean(),comment:a.string().allow(""),buy_now:a.boolean(),uid:a.string().allow("")})}static CartCheckoutCustomMeta(){return a.object({key:a.string().allow("").required(),value:a.string().allow("").required()})}static CustomerDetails(){return a.object({email:a.string().allow(""),mobile:a.string().allow("").required(),name:a.string().allow("")})}static StaffCheckout(){return a.object({employee_code:a.string().allow(""),user:a.string().allow("").required(),last_name:a.string().allow("").required(),first_name:a.string().allow("").required(),_id:a.string().allow("").required()})}static CartCheckoutDetailRequest(){return a.object({custom_meta:a.array().items(n.CartCheckoutCustomMeta()),customer_details:a.any(),merchant_code:a.string().allow(""),id:a.string().allow(""),payment_auto_confirm:a.boolean(),payment_mode:a.string().allow("").required(),aggregator:a.string().allow(""),address_id:a.string().allow(""),callback_url:a.string().allow(""),delivery_address:a.any(),staff:n.StaffCheckout(),order_type:a.string().allow(""),ordering_store:a.number(),extra_meta:a.any(),payment_identifier:a.string().allow(""),billing_address:a.any(),payment_params:a.any(),billing_address_id:a.string().allow(""),meta:a.any(),payment_extra_identifiers:a.any(),iin:a.string().allow(""),network:a.string().allow(""),type:a.string().allow(""),card_id:a.string().allow("")})}static CheckCart(){return a.object({checkout_mode:a.string().allow(""),user_type:a.string().allow(""),cod_message:a.string().allow(""),cart_id:a.number(),is_valid:a.boolean(),delivery_charges:a.number(),id:a.string().allow(""),payment_selection_lock:n.PaymentSelectionLock(),error_message:a.string().allow(""),delivery_promise:n.ShipmentPromise(),comment:a.string().allow(""),items:a.array().items(n.CartProductInfo()),uid:a.string().allow(""),delivery_charge_order_value:a.number(),delivery_charge_info:a.string().allow(""),cod_available:a.boolean(),success:a.boolean(),store_code:a.string().allow(""),message:a.string().allow(""),gstin:a.string().allow(""),restrict_checkout:a.boolean(),last_modified:a.string().allow(""),order_id:a.string().allow(""),breakup_values:n.CartBreakup(),currency:n.CartCurrency(),store_emps:a.array().items(a.any()),coupon_text:a.string().allow(""),buy_now:a.boolean(),cod_charges:a.number(),custom_cart:n.CustomCart()})}static CartCheckoutResponse(){return a.object({payment_confirm_url:a.string().allow(""),app_intercept_url:a.string().allow(""),success:a.boolean(),callback_url:a.string().allow(""),message:a.string().allow(""),data:a.any(),order_id:a.string().allow(""),cart:n.CheckCart()})}static GiftDetail(){return a.object({is_gift_applied:a.boolean(),gift_message:a.string().allow("")})}static ArticleGiftDetail(){return a.object({article_id:n.GiftDetail()})}static CartMetaRequest(){return a.object({delivery_slots:a.any(),gift_details:n.ArticleGiftDetail(),pick_up_customer_details:a.any(),checkout_mode:a.string().allow(""),comment:a.string().allow(""),gstin:a.string().allow("")})}static CartMetaResponse(){return a.object({message:a.string().allow(""),is_valid:a.boolean()})}static CartMetaMissingResponse(){return a.object({errors:a.array().items(a.string().allow(""))})}static GetShareCartLinkRequest(){return a.object({id:a.string().allow(""),meta:a.any()})}static GetShareCartLinkResponse(){return a.object({token:a.string().allow(""),share_url:a.string().allow("")})}static SharedCartDetails(){return a.object({token:a.string().allow(""),user:a.any(),created_on:a.string().allow(""),source:a.any(),meta:a.any()})}static SharedCart(){return a.object({checkout_mode:a.string().allow(""),cart_id:a.number(),is_valid:a.boolean(),id:a.string().allow(""),payment_selection_lock:n.PaymentSelectionLock(),delivery_promise:n.ShipmentPromise(),comment:a.string().allow(""),items:a.array().items(n.CartProductInfo()),uid:a.string().allow(""),delivery_charge_info:a.string().allow(""),message:a.string().allow(""),gstin:a.string().allow(""),shared_cart_details:n.SharedCartDetails(),restrict_checkout:a.boolean(),last_modified:a.string().allow(""),breakup_values:n.CartBreakup(),currency:n.CartCurrency(),coupon_text:a.string().allow(""),buy_now:a.boolean()})}static SharedCartResponse(){return a.object({error:a.string().allow(""),cart:n.SharedCart()})}static FreeGiftItems(){return a.object({item_slug:a.string().allow(""),item_name:a.string().allow(""),item_price_details:a.any(),item_brand_name:a.string().allow(""),item_id:a.number(),item_images_url:a.array().items(a.string().allow(""))})}static PromotionOffer(){return a.object({id:a.string().allow(""),buy_rules:a.any(),offer_text:a.string().allow(""),promotion_group:a.string().allow(""),valid_till:a.string().allow(""),discount_rules:a.array().items(a.any()),free_gift_items:a.array().items(n.FreeGiftItems()),description:a.string().allow("")})}static PromotionOffersResponse(){return a.object({available_promotions:a.array().items(n.PromotionOffer())})}static OperationErrorResponse(){return a.object({message:a.string().allow(""),success:a.boolean()})}static LadderPrice(){return a.object({currency_symbol:a.string().allow(""),offer_price:a.number(),currency_code:a.string().allow(""),effective:a.number(),marked:a.number()})}static LadderOfferItem(){return a.object({price:n.LadderPrice(),margin:a.number(),max_quantity:a.number(),min_quantity:a.number(),type:a.string().allow("")})}static LadderPriceOffer(){return a.object({id:a.string().allow(""),buy_rules:a.any(),calculate_on:a.string().allow(""),offer_text:a.string().allow(""),promotion_group:a.string().allow(""),valid_till:a.string().allow(""),discount_rules:a.array().items(a.any()),offer_prices:a.array().items(n.LadderOfferItem()),free_gift_items:a.array().items(n.FreeGiftItems()),description:a.string().allow("")})}static CurrencyInfo(){return a.object({code:a.string().allow(""),symbol:a.string().allow("")})}static LadderPriceOffers(){return a.object({available_offers:a.array().items(n.LadderPriceOffer()),currency:n.CurrencyInfo()})}static PaymentMeta(){return a.object({merchant_code:a.string().allow(""),type:a.string().allow(""),payment_gateway:a.string().allow(""),payment_identifier:a.string().allow("").allow(null)})}static PaymentMethod(){return a.object({payment_meta:n.PaymentMeta().required(),mode:a.string().allow("").required(),payment:a.string().allow(""),amount:a.number().allow(null),name:a.string().allow(""),payment_extra_identifiers:a.any()})}static CartCheckoutDetailV2Request(){return a.object({custom_meta:a.any(),customer_details:a.any().allow(null),merchant_code:a.string().allow(""),cart_id:a.string().allow(""),id:a.string().allow("").allow(null),payment_auto_confirm:a.boolean(),payment_methods:a.array().items(n.PaymentMethod()).required(),payment_mode:a.string().allow("").required(),aggregator:a.string().allow(""),address_id:a.string().allow(""),callback_url:a.string().allow("").allow(null),delivery_address:a.any(),staff:n.StaffCheckout(),order_type:a.string().allow(""),ordering_store:a.number().allow(null),extra_meta:a.any(),payment_identifier:a.string().allow("").allow(null),billing_address:a.any(),payment_params:a.any().allow(null),billing_address_id:a.string().allow(""),meta:a.any(),iin:a.string().allow(""),network:a.string().allow(""),type:a.string().allow(""),card_id:a.string().allow("")})}static CartConfigListObj(){return a.object({id:a.string().allow(""),name:a.string().allow(""),slug:a.string().allow(""),article_tags:a.array().items(a.string().allow("")),created_on:a.string().allow("")})}static CartConfigListResponse(){return a.object({success:a.boolean(),data:a.array().items(n.CartConfigListObj())})}static OrderPlacing(){return a.object({enabled:a.boolean(),message:a.string().allow("")})}static PanCard(){return a.object({enabled:a.boolean(),cod_threshold_amount:a.number(),online_threshold_amount:a.number()})}static CartConfigDetailObj(){return a.object({id:a.string().allow(""),app_id:a.string().allow(""),company_id:a.number(),created_on:a.string().allow(""),updated_on:a.string().allow(""),last_modified_by:a.string().allow(""),min_cart_value:a.number(),max_cart_value:a.number(),bulk_coupons:a.boolean(),max_cart_items:a.number(),gift_display_text:a.string().allow(""),delivery_charges:n.DeliveryChargesConfig(),revenue_engine_coupon:a.boolean(),gift_pricing:a.number(),enabled:a.boolean(),is_active:a.boolean(),order_placing:n.OrderPlacing(),name:a.string().allow(""),article_tags:a.array().items(a.string().allow("")),allow_coupon_with_rewards:a.boolean(),gst_input:a.boolean(),staff_selection:a.boolean(),placing_for_customer:a.boolean(),pan_card:n.PanCard()})}static CartConfigDetailResponse(){return a.object({success:a.boolean(),data:n.CartConfigDetailObj()})}}e.exports=n},3556:(e,t,r)=>{const a=r(9955),n=r(2108);e.exports=class{static addAddress(){return a.object({body:n.Address().required()}).required()}static addItems(){return a.object({i:a.boolean(),b:a.boolean(),areaCode:a.string().allow(""),buyNow:a.boolean(),id:a.string().allow(""),cartType:a.string().allow(""),body:n.AddCartRequest().required()}).required()}static applyCoupon(){return a.object({i:a.boolean(),b:a.boolean(),p:a.boolean(),id:a.string().allow(""),buyNow:a.boolean(),cartType:a.string().allow(""),body:n.ApplyCouponRequest().required()}).required()}static applyRewardPoints(){return a.object({id:a.string().allow(""),i:a.boolean(),b:a.boolean(),buyNow:a.boolean(),cartType:a.string().allow(""),body:n.RewardPointRequest().required()}).required()}static checkoutCart(){return a.object({buyNow:a.boolean(),cartType:a.string().allow(""),body:n.CartCheckoutDetailRequest().required()}).required()}static checkoutCartV2(){return a.object({buyNow:a.boolean(),cartType:a.string().allow(""),body:n.CartCheckoutDetailV2Request().required()}).required()}static deleteCart(){return a.object({id:a.string().allow(""),cartType:a.string().allow("")})}static getAddressById(){return a.object({id:a.string().allow("").required(),cartId:a.string().allow(""),buyNow:a.boolean(),mobileNo:a.string().allow(""),checkoutMode:a.string().allow(""),tags:a.string().allow(""),isDefault:a.boolean()}).required()}static getAddresses(){return a.object({cartId:a.string().allow(""),buyNow:a.boolean(),mobileNo:a.string().allow(""),checkoutMode:a.string().allow(""),tags:a.string().allow(""),isDefault:a.boolean()})}static getBulkDiscountOffers(){return a.object({itemId:a.number(),articleId:a.string().allow(""),uid:a.number(),slug:a.string().allow(""),cartType:a.string().allow("")})}static getCart(){return a.object({id:a.string().allow(""),i:a.boolean(),b:a.boolean(),c:a.boolean(),assignCardId:a.number(),areaCode:a.string().allow(""),buyNow:a.boolean(),cartType:a.string().allow("")})}static getCartLastModified(){return a.object({id:a.string().allow("")})}static getCartMetaConfig(){return a.object({cartMetaId:a.string().allow("").required()}).required()}static getCartMetaConfigs(){return a.object({})}static getCartShareLink(){return a.object({body:n.GetShareCartLinkRequest().required()}).required()}static getCartSharedItems(){return a.object({token:a.string().allow("").required()}).required()}static getCoupons(){return a.object({id:a.string().allow(""),buyNow:a.boolean(),slug:a.string().allow(""),storeId:a.string().allow("")})}static getItemCount(){return a.object({id:a.string().allow(""),buyNow:a.boolean()})}static getItemCountV2(){return a.object({id:a.string().allow(""),buyNow:a.boolean()})}static getLadderOffers(){return a.object({slug:a.string().allow("").required(),storeId:a.string().allow(""),promotionId:a.string().allow(""),pageSize:a.number()}).required()}static getPromotionOffers(){return a.object({slug:a.string().allow(""),pageSize:a.number(),promotionGroup:a.string().allow(""),storeId:a.number(),cartType:a.string().allow("")})}static getShipments(){return a.object({p:a.boolean(),id:a.string().allow(""),buyNow:a.boolean(),addressId:a.string().allow(""),areaCode:a.string().allow(""),orderType:a.string().allow("")})}static removeAddress(){return a.object({id:a.string().allow("").required()}).required()}static removeCoupon(){return a.object({id:a.string().allow(""),buyNow:a.boolean(),cartType:a.string().allow("")})}static selectAddress(){return a.object({cartId:a.string().allow(""),buyNow:a.boolean(),i:a.boolean(),b:a.boolean(),body:n.SelectCartAddressRequest().required()}).required()}static selectPaymentMode(){return a.object({id:a.string().allow(""),buyNow:a.boolean(),body:n.UpdateCartPaymentRequest().required()}).required()}static updateAddress(){return a.object({id:a.string().allow("").required(),body:n.Address().required()}).required()}static updateCart(){return a.object({id:a.string().allow(""),i:a.boolean(),b:a.boolean(),areaCode:a.string().allow(""),buyNow:a.boolean(),cartType:a.string().allow(""),body:n.UpdateCartRequest().required()}).required()}static updateCartMeta(){return a.object({id:a.string().allow(""),buyNow:a.boolean(),body:n.CartMetaRequest().required()}).required()}static updateCartWithSharedItems(){return a.object({token:a.string().allow("").required(),action:a.string().allow("").required()}).required()}static validateCouponForPayment(){return a.object({id:a.string().allow(""),buyNow:a.boolean(),addressId:a.string().allow(""),paymentMode:a.string().allow(""),paymentIdentifier:a.string().allow(""),aggregatorName:a.string().allow(""),merchantCode:a.string().allow(""),iin:a.string().allow(""),network:a.string().allow(""),type:a.string().allow(""),cardId:a.string().allow(""),cartType:a.string().allow("")})}}},9844:(e,t,r)=>{const a=r(8336),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(9916),s=r(4776),i=r(3768),l=r(3080),c=r(5104),{Logger:u}=r(1544);r(9955),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={followById:"/service/application/catalog/v1.0/follow/{collection_type}/{collection_id}/",getBrandDetailBySlug:"/service/application/catalog/v1.0/brands/{slug}/",getBrands:"/service/application/catalog/v1.0/brands/",getCategories:"/service/application/catalog/v1.0/categories/",getCategoryDetailBySlug:"/service/application/catalog/v1.0/categories/{slug}/",getCollectionDetailBySlug:"/service/application/catalog/v1.0/collections/{slug}/",getCollectionItemsBySlug:"/service/application/catalog/v1.0/collections/{slug}/items/",getCollections:"/service/application/catalog/v1.0/collections/",getComparedFrequentlyProductBySlug:"/service/application/catalog/v1.0/products/{slug}/similar/compared-frequently/",getDepartments:"/service/application/catalog/v1.0/departments/",getFollowIds:"/service/application/catalog/v1.0/follow/ids/",getFollowedListing:"/service/application/catalog/v1.0/follow/{collection_type}/",getFollowerCountById:"/service/application/catalog/v1.0/follow/{collection_type}/{collection_id}/count/",getHomeProducts:"/service/application/catalog/v1.0/home/listing/",getInStockLocations:"/service/application/catalog/v1.0/in-stock/locations/",getLocationDetailsById:"/service/application/catalog/v1.0/locations/{location_id}/",getProductBundlesBySlug:"/service/application/catalog/v1.0/product-grouping/",getProductComparisonBySlugs:"/service/application/catalog/v1.0/products/compare/",getProductDetailBySlug:"/service/application/catalog/v1.0/products/{slug}/",getProductPriceBySlug:"/service/application/catalog/v3.0/products/{slug}/sizes/{size}/price/",getProductSellersBySlug:"/service/application/catalog/v3.0/products/{slug}/sizes/{size}/sellers/",getProductSizesBySlug:"/service/application/catalog/v1.0/products/{slug}/sizes/",getProductStockByIds:"/service/application/catalog/v1.0/products/stock-status/",getProductStockForTimeByIds:"/service/application/catalog/v1.0/products/stock-status/poll/",getProductVariantsBySlug:"/service/application/catalog/v1.0/products/{slug}/variants/",getProducts:"/service/application/catalog/v1.0/products/",getSearchResults:"/service/application/catalog/v1.0/auto-complete/",getSimilarComparisonProductBySlug:"/service/application/catalog/v1.0/products/{slug}/similar/compare/",getStores:"/service/application/catalog/v1.0/locations/",unfollowById:"/service/application/catalog/v1.0/follow/{collection_type}/{collection_id}/"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async followById({collectionType:e,collectionId:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:i}={responseHeaders:!1}){const{error:d}=l.followById().validate({collectionType:e,collectionId:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=l.followById().validate({collectionType:e,collectionId:t},{abortEarly:!1,allowUnknown:!1});p&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > followById \n ${p}`});const g=await a.execute(this._conf,"post",s({url:this._urls.followById,params:{collectionType:e,collectionId:t}}),{},void 0,{...r},{responseHeaders:i});let m=g;i&&(m=g[0]);const{error:w}=c.FollowPostResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > followById \n ${w}`})}return g}async getBrandDetailBySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:i}=l.getBrandDetailBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(i)return Promise.reject(new n(i));const{error:d}=l.getBrandDetailBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!1});d&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getBrandDetailBySlug \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getBrandDetailBySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=c.BrandDetailResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > getBrandDetailBySlug \n ${m}`})}return p}async getBrands({department:e,pageNo:t,pageSize:r,requestHeaders:i}={requestHeaders:{}},{responseHeaders:d}={responseHeaders:!1}){const{error:p}=l.getBrands().validate({department:e,pageNo:t,pageSize:r},{abortEarly:!1,allowUnknown:!0});if(p)return Promise.reject(new n(p));const{error:g}=l.getBrands().validate({department:e,pageNo:t,pageSize:r},{abortEarly:!1,allowUnknown:!1});g&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getBrands \n ${g}`});const m={};m.department=e,m.page_no=t,m.page_size=r;const w=await a.execute(this._conf,"get",s({url:this._urls.getBrands,params:{}}),m,void 0,{...i},{responseHeaders:d});let f=w;d&&(f=w[0]);const{error:y}=c.BrandListingResponse().validate(f,{abortEarly:!1,allowUnknown:!0});if(y){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(y));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > getBrands \n ${y}`})}return w}getBrandsPaginator({department:e,pageSize:t}={}){const r=new i;return r.setCallback((async()=>{r.nextId;const a=r.pageNo,n=await this.getBrands({department:e,pageNo:a,pageSize:t});return r.setPaginator({hasNext:!!n.page.has_next,nextId:n.page.next_id}),n}).bind(this)),r}async getCategories({department:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:i}=l.getCategories().validate({department:e},{abortEarly:!1,allowUnknown:!0});if(i)return Promise.reject(new n(i));const{error:d}=l.getCategories().validate({department:e},{abortEarly:!1,allowUnknown:!1});d&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getCategories \n ${d}`});const p={};p.department=e;const g=await a.execute(this._conf,"get",s({url:this._urls.getCategories,params:{}}),p,void 0,{...t},{responseHeaders:r});let m=g;r&&(m=g[0]);const{error:w}=c.CategoryListingResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > getCategories \n ${w}`})}return g}async getCategoryDetailBySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:i}=l.getCategoryDetailBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(i)return Promise.reject(new n(i));const{error:d}=l.getCategoryDetailBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!1});d&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getCategoryDetailBySlug \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getCategoryDetailBySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=c.CategoryMetaResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > getCategoryDetailBySlug \n ${m}`})}return p}async getCollectionDetailBySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:i}=l.getCollectionDetailBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(i)return Promise.reject(new n(i));const{error:d}=l.getCollectionDetailBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!1});d&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getCollectionDetailBySlug \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getCollectionDetailBySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=c.CollectionDetailResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > getCollectionDetailBySlug \n ${m}`})}return p}async getCollectionItemsBySlug({slug:e,f:t,q:r,filters:i,sortOn:d,pageId:p,pageSize:g,pageNo:m,pageType:w,requestHeaders:f}={requestHeaders:{}},{responseHeaders:y}={responseHeaders:!1}){const{error:b}=l.getCollectionItemsBySlug().validate({slug:e,f:t,q:r,filters:i,sortOn:d,pageId:p,pageSize:g,pageNo:m,pageType:w},{abortEarly:!1,allowUnknown:!0});if(b)return Promise.reject(new n(b));const{error:h}=l.getCollectionItemsBySlug().validate({slug:e,f:t,q:r,filters:i,sortOn:d,pageId:p,pageSize:g,pageNo:m,pageType:w},{abortEarly:!1,allowUnknown:!1});h&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getCollectionItemsBySlug \n ${h}`});const _={};_.f=t,_.q=r,_.filters=i,_.sort_on=d,_.page_id=p,_.page_size=g,_.page_no=m,_.page_type=w;const v=await a.execute(this._conf,"get",s({url:this._urls.getCollectionItemsBySlug,params:{slug:e}}),_,void 0,{...f},{responseHeaders:y});let R=v;y&&(R=v[0]);const{error:k}=c.ProductListingResponse().validate(R,{abortEarly:!1,allowUnknown:!0});if(k){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(k));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > getCollectionItemsBySlug \n ${k}`})}return v}getCollectionItemsBySlugPaginator({slug:e,f:t,q:r,filters:a,sortOn:n,pageSize:o}={}){const s=new i;return s.setCallback((async()=>{const i=s.nextId,l=s.pageNo,c=await this.getCollectionItemsBySlug({slug:e,f:t,q:r,filters:a,sortOn:n,pageId:i,pageSize:o,pageNo:l,pageType:"cursor"});return s.setPaginator({hasNext:!!c.page.has_next,nextId:c.page.next_id}),c}).bind(this)),s}async getCollections({pageNo:e,pageSize:t,tag:r,q:i,requestHeaders:d}={requestHeaders:{}},{responseHeaders:p}={responseHeaders:!1}){const{error:g}=l.getCollections().validate({pageNo:e,pageSize:t,tag:r,q:i},{abortEarly:!1,allowUnknown:!0});if(g)return Promise.reject(new n(g));const{error:m}=l.getCollections().validate({pageNo:e,pageSize:t,tag:r,q:i},{abortEarly:!1,allowUnknown:!1});m&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getCollections \n ${m}`});const w={};w.page_no=e,w.page_size=t,w.tag=r,w.q=i;const f=await a.execute(this._conf,"get",s({url:this._urls.getCollections,params:{}}),w,void 0,{...d},{responseHeaders:p});let y=f;p&&(y=f[0]);const{error:b}=c.GetCollectionListingResponse().validate(y,{abortEarly:!1,allowUnknown:!0});if(b){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(b));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > getCollections \n ${b}`})}return f}getCollectionsPaginator({pageSize:e,tag:t,q:r}={}){const a=new i;return a.setCallback((async()=>{a.nextId;const n=a.pageNo,o=await this.getCollections({pageNo:n,pageSize:e,tag:t,q:r});return a.setPaginator({hasNext:!!o.page.has_next,nextId:o.page.next_id}),o}).bind(this)),a}async getComparedFrequentlyProductBySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:i}=l.getComparedFrequentlyProductBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(i)return Promise.reject(new n(i));const{error:d}=l.getComparedFrequentlyProductBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!1});d&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getComparedFrequentlyProductBySlug \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getComparedFrequentlyProductBySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=c.ProductFrequentlyComparedSimilarResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > getComparedFrequentlyProductBySlug \n ${m}`})}return p}async getDepartments({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=l.getDepartments().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:i}=l.getDepartments().validate({},{abortEarly:!1,allowUnknown:!1});i&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getDepartments \n ${i}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getDepartments,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=c.DepartmentResponse().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > getDepartments \n ${g}`})}return d}async getFollowIds({collectionType:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:i}=l.getFollowIds().validate({collectionType:e},{abortEarly:!1,allowUnknown:!0});if(i)return Promise.reject(new n(i));const{error:d}=l.getFollowIds().validate({collectionType:e},{abortEarly:!1,allowUnknown:!1});d&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getFollowIds \n ${d}`});const p={};p.collection_type=e;const g=await a.execute(this._conf,"get",s({url:this._urls.getFollowIds,params:{}}),p,void 0,{...t},{responseHeaders:r});let m=g;r&&(m=g[0]);const{error:w}=c.FollowIdsResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > getFollowIds \n ${w}`})}return g}async getFollowedListing({collectionType:e,pageId:t,pageSize:r,requestHeaders:i}={requestHeaders:{}},{responseHeaders:d}={responseHeaders:!1}){const{error:p}=l.getFollowedListing().validate({collectionType:e,pageId:t,pageSize:r},{abortEarly:!1,allowUnknown:!0});if(p)return Promise.reject(new n(p));const{error:g}=l.getFollowedListing().validate({collectionType:e,pageId:t,pageSize:r},{abortEarly:!1,allowUnknown:!1});g&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getFollowedListing \n ${g}`});const m={};m.page_id=t,m.page_size=r;const w=await a.execute(this._conf,"get",s({url:this._urls.getFollowedListing,params:{collectionType:e}}),m,void 0,{...i},{responseHeaders:d});let f=w;d&&(f=w[0]);const{error:y}=c.GetFollowListingResponse().validate(f,{abortEarly:!1,allowUnknown:!0});if(y){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(y));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > getFollowedListing \n ${y}`})}return w}getFollowedListingPaginator({collectionType:e,pageSize:t}={}){const r=new i;return r.setCallback((async()=>{const a=r.nextId,n=(r.pageNo,await this.getFollowedListing({collectionType:e,pageId:a,pageSize:t}));return r.setPaginator({hasNext:!!n.page.has_next,nextId:n.page.next_id}),n}).bind(this)),r}async getFollowerCountById({collectionType:e,collectionId:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:i}={responseHeaders:!1}){const{error:d}=l.getFollowerCountById().validate({collectionType:e,collectionId:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=l.getFollowerCountById().validate({collectionType:e,collectionId:t},{abortEarly:!1,allowUnknown:!1});p&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getFollowerCountById \n ${p}`});const g=await a.execute(this._conf,"get",s({url:this._urls.getFollowerCountById,params:{collectionType:e,collectionId:t}}),{},void 0,{...r},{responseHeaders:i});let m=g;i&&(m=g[0]);const{error:w}=c.FollowerCountResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > getFollowerCountById \n ${w}`})}return g}async getHomeProducts({sortOn:e,pageId:t,pageSize:r,requestHeaders:i}={requestHeaders:{}},{responseHeaders:d}={responseHeaders:!1}){const{error:p}=l.getHomeProducts().validate({sortOn:e,pageId:t,pageSize:r},{abortEarly:!1,allowUnknown:!0});if(p)return Promise.reject(new n(p));const{error:g}=l.getHomeProducts().validate({sortOn:e,pageId:t,pageSize:r},{abortEarly:!1,allowUnknown:!1});g&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getHomeProducts \n ${g}`});const m={};m.sort_on=e,m.page_id=t,m.page_size=r;const w=await a.execute(this._conf,"get",s({url:this._urls.getHomeProducts,params:{}}),m,void 0,{...i},{responseHeaders:d});let f=w;d&&(f=w[0]);const{error:y}=c.HomeListingResponse().validate(f,{abortEarly:!1,allowUnknown:!0});if(y){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(y));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > getHomeProducts \n ${y}`})}return w}getHomeProductsPaginator({sortOn:e,pageSize:t}={}){const r=new i;return r.setCallback((async()=>{const a=r.nextId,n=(r.pageNo,await this.getHomeProducts({sortOn:e,pageId:a,pageSize:t}));return r.setPaginator({hasNext:!!n.page.has_next,nextId:n.page.next_id}),n}).bind(this)),r}async getInStockLocations({pageNo:e,pageSize:t,q:r,city:i,range:d,latitude:p,longitude:g,requestHeaders:m}={requestHeaders:{}},{responseHeaders:w}={responseHeaders:!1}){const{error:f}=l.getInStockLocations().validate({pageNo:e,pageSize:t,q:r,city:i,range:d,latitude:p,longitude:g},{abortEarly:!1,allowUnknown:!0});if(f)return Promise.reject(new n(f));const{error:y}=l.getInStockLocations().validate({pageNo:e,pageSize:t,q:r,city:i,range:d,latitude:p,longitude:g},{abortEarly:!1,allowUnknown:!1});y&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getInStockLocations \n ${y}`});const b={};b.page_no=e,b.page_size=t,b.q=r,b.city=i,b.range=d,b.latitude=p,b.longitude=g;const h=await a.execute(this._conf,"get",s({url:this._urls.getInStockLocations,params:{}}),b,void 0,{...m},{responseHeaders:w});let _=h;w&&(_=h[0]);const{error:v}=c.ApplicationStoreListing().validate(_,{abortEarly:!1,allowUnknown:!0});if(v){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(v));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > getInStockLocations \n ${v}`})}return h}getInStockLocationsPaginator({pageSize:e,q:t,city:r,range:a,latitude:n,longitude:o}={}){const s=new i;return s.setCallback((async()=>{s.nextId;const i=s.pageNo,l=await this.getInStockLocations({pageNo:i,pageSize:e,q:t,city:r,range:a,latitude:n,longitude:o});return s.setPaginator({hasNext:!!l.page.has_next,nextId:l.page.next_id}),l}).bind(this)),s}async getLocationDetailsById({locationId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:i}=l.getLocationDetailsById().validate({locationId:e},{abortEarly:!1,allowUnknown:!0});if(i)return Promise.reject(new n(i));const{error:d}=l.getLocationDetailsById().validate({locationId:e},{abortEarly:!1,allowUnknown:!1});d&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getLocationDetailsById \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getLocationDetailsById,params:{locationId:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=c.StoreDetails().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > getLocationDetailsById \n ${m}`})}return p}async getProductBundlesBySlug({slug:e,id:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:i}={responseHeaders:!1}){const{error:d}=l.getProductBundlesBySlug().validate({slug:e,id:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=l.getProductBundlesBySlug().validate({slug:e,id:t},{abortEarly:!1,allowUnknown:!1});p&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getProductBundlesBySlug \n ${p}`});const g={};g.slug=e,g.id=t;const m=await a.execute(this._conf,"get",s({url:this._urls.getProductBundlesBySlug,params:{}}),g,void 0,{...r},{responseHeaders:i});let w=m;i&&(w=m[0]);const{error:f}=c.ProductBundle().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > getProductBundlesBySlug \n ${f}`})}return m}async getProductComparisonBySlugs({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:i}=l.getProductComparisonBySlugs().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(i)return Promise.reject(new n(i));const{error:d}=l.getProductComparisonBySlugs().validate({slug:e},{abortEarly:!1,allowUnknown:!1});d&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getProductComparisonBySlugs \n ${d}`});const p={};p.slug=e;const g=await a.execute(this._conf,"get",s({url:this._urls.getProductComparisonBySlugs,params:{}}),p,void 0,{...t},{responseHeaders:r});let m=g;r&&(m=g[0]);const{error:w}=c.ProductsComparisonResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > getProductComparisonBySlugs \n ${w}`})}return g}async getProductDetailBySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:i}=l.getProductDetailBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(i)return Promise.reject(new n(i));const{error:d}=l.getProductDetailBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!1});d&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getProductDetailBySlug \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getProductDetailBySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=c.ProductDetail().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > getProductDetailBySlug \n ${m}`})}return p}async getProductPriceBySlug({slug:e,size:t,storeId:r,exchangeSellerIdentifier:i,moq:d,sellerId:p,requestHeaders:g}={requestHeaders:{}},{responseHeaders:m}={responseHeaders:!1}){const{error:w}=l.getProductPriceBySlug().validate({slug:e,size:t,storeId:r,exchangeSellerIdentifier:i,moq:d,sellerId:p},{abortEarly:!1,allowUnknown:!0});if(w)return Promise.reject(new n(w));const{error:f}=l.getProductPriceBySlug().validate({slug:e,size:t,storeId:r,exchangeSellerIdentifier:i,moq:d,sellerId:p},{abortEarly:!1,allowUnknown:!1});f&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getProductPriceBySlug \n ${f}`});const y={};y.store_id=r,y.exchange_seller_identifier=i,y.moq=d,y.seller_id=p;const b=await a.execute(this._conf,"get",s({url:this._urls.getProductPriceBySlug,params:{slug:e,size:t}}),y,void 0,{...g},{responseHeaders:m});let h=b;m&&(h=b[0]);const{error:_}=c.ProductSizePriceResponseV3().validate(h,{abortEarly:!1,allowUnknown:!0});if(_){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(_));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > getProductPriceBySlug \n ${_}`})}return b}async getProductSellersBySlug({slug:e,size:t,strategy:r,pageNo:i,pageSize:d,requestHeaders:p}={requestHeaders:{}},{responseHeaders:g}={responseHeaders:!1}){const{error:m}=l.getProductSellersBySlug().validate({slug:e,size:t,strategy:r,pageNo:i,pageSize:d},{abortEarly:!1,allowUnknown:!0});if(m)return Promise.reject(new n(m));const{error:w}=l.getProductSellersBySlug().validate({slug:e,size:t,strategy:r,pageNo:i,pageSize:d},{abortEarly:!1,allowUnknown:!1});w&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getProductSellersBySlug \n ${w}`});const f={};f.strategy=r,f.page_no=i,f.page_size=d;const y=await a.execute(this._conf,"get",s({url:this._urls.getProductSellersBySlug,params:{slug:e,size:t}}),f,void 0,{...p},{responseHeaders:g});let b=y;g&&(b=y[0]);const{error:h}=c.ProductSizeSellersResponseV3().validate(b,{abortEarly:!1,allowUnknown:!0});if(h){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(h));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > getProductSellersBySlug \n ${h}`})}return y}getProductSellersBySlugPaginator({slug:e,size:t,strategy:r,pageSize:a}={}){const n=new i;return n.setCallback((async()=>{n.nextId;const o=n.pageNo,s=await this.getProductSellersBySlug({slug:e,size:t,strategy:r,pageNo:o,pageSize:a});return n.setPaginator({hasNext:!!s.page.has_next,nextId:s.page.next_id}),s}).bind(this)),n}async getProductSizesBySlug({slug:e,storeId:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:i}={responseHeaders:!1}){const{error:d}=l.getProductSizesBySlug().validate({slug:e,storeId:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=l.getProductSizesBySlug().validate({slug:e,storeId:t},{abortEarly:!1,allowUnknown:!1});p&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getProductSizesBySlug \n ${p}`});const g={};g.store_id=t;const m=await a.execute(this._conf,"get",s({url:this._urls.getProductSizesBySlug,params:{slug:e}}),g,void 0,{...r},{responseHeaders:i});let w=m;i&&(w=m[0]);const{error:f}=c.ProductSizes().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > getProductSizesBySlug \n ${f}`})}return m}async getProductStockByIds({itemId:e,alu:t,skuCode:r,ean:i,upc:d,requestHeaders:p}={requestHeaders:{}},{responseHeaders:g}={responseHeaders:!1}){const{error:m}=l.getProductStockByIds().validate({itemId:e,alu:t,skuCode:r,ean:i,upc:d},{abortEarly:!1,allowUnknown:!0});if(m)return Promise.reject(new n(m));const{error:w}=l.getProductStockByIds().validate({itemId:e,alu:t,skuCode:r,ean:i,upc:d},{abortEarly:!1,allowUnknown:!1});w&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getProductStockByIds \n ${w}`});const f={};f.item_id=e,f.alu=t,f.sku_code=r,f.ean=i,f.upc=d;const y=await a.execute(this._conf,"get",s({url:this._urls.getProductStockByIds,params:{}}),f,void 0,{...p},{responseHeaders:g});let b=y;g&&(b=y[0]);const{error:h}=c.ProductStockStatusResponse().validate(b,{abortEarly:!1,allowUnknown:!0});if(h){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(h));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > getProductStockByIds \n ${h}`})}return y}async getProductStockForTimeByIds({timestamp:e,pageSize:t,pageId:r,requestHeaders:i}={requestHeaders:{}},{responseHeaders:d}={responseHeaders:!1}){const{error:p}=l.getProductStockForTimeByIds().validate({timestamp:e,pageSize:t,pageId:r},{abortEarly:!1,allowUnknown:!0});if(p)return Promise.reject(new n(p));const{error:g}=l.getProductStockForTimeByIds().validate({timestamp:e,pageSize:t,pageId:r},{abortEarly:!1,allowUnknown:!1});g&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getProductStockForTimeByIds \n ${g}`});const m={};m.timestamp=e,m.page_size=t,m.page_id=r;const w=await a.execute(this._conf,"get",s({url:this._urls.getProductStockForTimeByIds,params:{}}),m,void 0,{...i},{responseHeaders:d});let f=w;d&&(f=w[0]);const{error:y}=c.ProductStockPolling().validate(f,{abortEarly:!1,allowUnknown:!0});if(y){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(y));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > getProductStockForTimeByIds \n ${y}`})}return w}getProductStockForTimeByIdsPaginator({timestamp:e,pageSize:t}={}){const r=new i;return r.setCallback((async()=>{const a=r.nextId,n=(r.pageNo,await this.getProductStockForTimeByIds({timestamp:e,pageSize:t,pageId:a}));return r.setPaginator({hasNext:!!n.page.has_next,nextId:n.page.next_id}),n}).bind(this)),r}async getProductVariantsBySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:i}=l.getProductVariantsBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(i)return Promise.reject(new n(i));const{error:d}=l.getProductVariantsBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!1});d&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getProductVariantsBySlug \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getProductVariantsBySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=c.ProductVariantsResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > getProductVariantsBySlug \n ${m}`})}return p}async getProducts({q:e,f:t,filters:r,sortOn:i,pageId:d,pageSize:p,pageNo:g,pageType:m,requestHeaders:w}={requestHeaders:{}},{responseHeaders:f}={responseHeaders:!1}){const{error:y}=l.getProducts().validate({q:e,f:t,filters:r,sortOn:i,pageId:d,pageSize:p,pageNo:g,pageType:m},{abortEarly:!1,allowUnknown:!0});if(y)return Promise.reject(new n(y));const{error:b}=l.getProducts().validate({q:e,f:t,filters:r,sortOn:i,pageId:d,pageSize:p,pageNo:g,pageType:m},{abortEarly:!1,allowUnknown:!1});b&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getProducts \n ${b}`});const h={};h.q=e,h.f=t,h.filters=r,h.sort_on=i,h.page_id=d,h.page_size=p,h.page_no=g,h.page_type=m;const _=await a.execute(this._conf,"get",s({url:this._urls.getProducts,params:{}}),h,void 0,{...w},{responseHeaders:f});let v=_;f&&(v=_[0]);const{error:R}=c.ProductListingResponse().validate(v,{abortEarly:!1,allowUnknown:!0});if(R){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(R));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > getProducts \n ${R}`})}return _}getProductsPaginator({q:e,f:t,filters:r,sortOn:a,pageSize:n}={}){const o=new i;return o.setCallback((async()=>{const s=o.nextId,i=o.pageNo,l=await this.getProducts({q:e,f:t,filters:r,sortOn:a,pageId:s,pageSize:n,pageNo:i,pageType:"cursor"});return o.setPaginator({hasNext:!!l.page.has_next,nextId:l.page.next_id}),l}).bind(this)),o}async getSearchResults({q:e,categorySuggestion:t,brandSuggestion:r,collectionSuggestion:i,productSuggestion:d,querySuggestion:p,requestHeaders:g}={requestHeaders:{}},{responseHeaders:m}={responseHeaders:!1}){const{error:w}=l.getSearchResults().validate({q:e,categorySuggestion:t,brandSuggestion:r,collectionSuggestion:i,productSuggestion:d,querySuggestion:p},{abortEarly:!1,allowUnknown:!0});if(w)return Promise.reject(new n(w));const{error:f}=l.getSearchResults().validate({q:e,categorySuggestion:t,brandSuggestion:r,collectionSuggestion:i,productSuggestion:d,querySuggestion:p},{abortEarly:!1,allowUnknown:!1});f&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getSearchResults \n ${f}`});const y={};y.q=e,y.category_suggestion=t,y.brand_suggestion=r,y.collection_suggestion=i,y.product_suggestion=d,y.query_suggestion=p;const b=await a.execute(this._conf,"get",s({url:this._urls.getSearchResults,params:{}}),y,void 0,{...g},{responseHeaders:m});let h=b;m&&(h=b[0]);const{error:_}=c.AutoCompleteResponse().validate(h,{abortEarly:!1,allowUnknown:!0});if(_){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(_));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > getSearchResults \n ${_}`})}return b}async getSimilarComparisonProductBySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:i}=l.getSimilarComparisonProductBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(i)return Promise.reject(new n(i));const{error:d}=l.getSimilarComparisonProductBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!1});d&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getSimilarComparisonProductBySlug \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getSimilarComparisonProductBySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=c.ProductCompareResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > getSimilarComparisonProductBySlug \n ${m}`})}return p}async getStores({pageNo:e,pageSize:t,q:r,city:i,range:d,latitude:p,longitude:g,tags:m,requestHeaders:w}={requestHeaders:{}},{responseHeaders:f}={responseHeaders:!1}){const{error:y}=l.getStores().validate({pageNo:e,pageSize:t,q:r,city:i,range:d,latitude:p,longitude:g,tags:m},{abortEarly:!1,allowUnknown:!0});if(y)return Promise.reject(new n(y));const{error:b}=l.getStores().validate({pageNo:e,pageSize:t,q:r,city:i,range:d,latitude:p,longitude:g,tags:m},{abortEarly:!1,allowUnknown:!1});b&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getStores \n ${b}`});const h={};h.page_no=e,h.page_size=t,h.q=r,h.city=i,h.range=d,h.latitude=p,h.longitude=g,h.tags=m;const _=await a.execute(this._conf,"get",s({url:this._urls.getStores,params:{}}),h,void 0,{...w},{responseHeaders:f});let v=_;f&&(v=_[0]);const{error:R}=c.StoreListingResponse().validate(v,{abortEarly:!1,allowUnknown:!0});if(R){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(R));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > getStores \n ${R}`})}return _}getStoresPaginator({pageSize:e,q:t,city:r,range:a,latitude:n,longitude:o,tags:s}={}){const l=new i;return l.setCallback((async()=>{l.nextId;const i=l.pageNo,c=await this.getStores({pageNo:i,pageSize:e,q:t,city:r,range:a,latitude:n,longitude:o,tags:s});return l.setPaginator({hasNext:!!c.page.has_next,nextId:c.page.next_id}),c}).bind(this)),l}async unfollowById({collectionType:e,collectionId:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:i}={responseHeaders:!1}){const{error:d}=l.unfollowById().validate({collectionType:e,collectionId:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=l.unfollowById().validate({collectionType:e,collectionId:t},{abortEarly:!1,allowUnknown:!1});p&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > unfollowById \n ${p}`});const g=await a.execute(this._conf,"delete",s({url:this._urls.unfollowById,params:{collectionType:e,collectionId:t}}),{},void 0,{...r},{responseHeaders:i});let m=g;i&&(m=g[0]);const{error:w}=c.FollowPostResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > unfollowById \n ${w}`})}return g}}},5104:(e,t,r)=>{const a=r(9955);class n{static ProductDetailCustomOrder(){return a.object({manufacturing_time:a.number(),manufacturing_time_unit:a.string().allow(""),is_custom_order:a.boolean()})}static Meta(){return a.object({source:a.string().allow("")})}static Media(){return a.object({url:a.string().allow(""),type:a.string().allow(""),meta:n.Meta(),alt:a.string().allow("")})}static ProductListingActionPage(){return a.object({type:a.string().allow(""),query:a.any(),params:a.any()})}static ProductListingAction(){return a.object({type:a.string().allow(""),page:n.ProductListingActionPage()})}static ProductBrand(){return a.object({uid:a.number(),logo:n.Media(),description:a.string().allow(""),name:a.string().allow(""),action:n.ProductListingAction()})}static ProductDepartment(){return a.object({uid:a.number(),logo:n.Media(),slug:a.string().allow(""),name:a.string().allow("")})}static ProductCategoryMap(){return a.object({l1:n.ProductBrand(),l2:n.ProductBrand(),l3:n.ProductBrand()})}static NetQuantity(){return a.object({unit:a.any(),value:a.number()})}static CustomMetaFields(){return a.object({value:a.string().allow("").required(),key:a.string().allow("").required()})}static ApplicationItemSEO(){return a.object({title:a.any(),description:a.any()})}static ProductDetailAttribute(){return a.object({value:a.string().allow(""),type:a.string().allow(""),key:a.string().allow("")})}static ProductDetailGroupedAttribute(){return a.object({title:a.string().allow(""),details:a.array().items(n.ProductDetailAttribute())})}static ApplicationItemMOQ(){return a.object({minimum:a.number(),maximum:a.number(),increment_unit:a.number()})}static Price(){return a.object({min:a.number(),currency_symbol:a.string().allow(""),currency_code:a.string().allow(""),max:a.number()})}static ProductListingPrice(){return a.object({effective:n.Price(),marked:n.Price(),selling:n.Price()})}static ProductSizesPrice(){return a.object({effective:n.Price(),marked:n.Price(),selling:n.Price()})}static ProductDetail(){return a.object({uid:a.number(),custom_order:n.ProductDetailCustomOrder(),category_map:n.ProductCategoryMap(),net_quantity:n.NetQuantity(),rating_count:a.number(),_custom_meta:a.array().items(n.CustomMetaFields()),similars:a.array().items(a.string().allow("")),tags:a.array().items(a.string().allow("")),seo:n.ApplicationItemSEO(),image_nature:a.string().allow(""),has_variant:a.boolean(),item_type:a.string().allow(""),description:a.string().allow(""),grouped_attributes:a.array().items(n.ProductDetailGroupedAttribute()),medias:a.array().items(n.Media()),color:a.string().allow(""),type:a.string().allow(""),product_online_date:a.string().allow(""),_custom_json:a.any(),item_code:a.string().allow(""),name:a.string().allow(""),moq:n.ApplicationItemMOQ(),short_description:a.string().allow(""),categories:a.array().items(n.ProductBrand()),attributes:a.any(),discount:a.string().allow(""),tryouts:a.array().items(a.string().allow("")),slug:a.string().allow("").required(),action:n.ProductListingAction(),rating:a.number(),is_dependent:a.boolean(),product_group_tag:a.array().items(a.string().allow("")),highlights:a.array().items(a.string().allow("")),price:n.ProductListingPrice(),brand:n.ProductBrand(),department:n.ProductDepartment(),teaser_tag:a.string().allow("")})}static ErrorResponse(){return a.object({error:a.string().allow("")})}static Dimension(){return a.object({unit:a.string().allow("").required(),height:a.number().required(),length:a.number().required(),width:a.number().required(),is_default:a.boolean().required()})}static Weight(){return a.object({unit:a.string().allow("").required(),shipping:a.number().required(),is_default:a.boolean().required()})}static DiscountMeta(){return a.object({timer:a.boolean().required(),start_timer_in_minutes:a.number(),start:a.string().allow(""),end:a.string().allow("")})}static ProductSize(){return a.object({quantity:a.number(),dimension:n.Dimension(),weight:n.Weight(),is_available:a.boolean(),seller_identifiers:a.array().items(a.string().allow("")),value:a.string().allow(""),display:a.string().allow("")})}static SizeChartValues(){return a.object({col_3:a.string().allow(""),col_6:a.string().allow(""),col_2:a.string().allow(""),col_4:a.string().allow(""),col_1:a.string().allow(""),col_5:a.string().allow("")})}static ColumnHeader(){return a.object({convertable:a.boolean(),value:a.string().allow("")})}static ColumnHeaders(){return a.object({col_3:n.ColumnHeader(),col_6:n.ColumnHeader(),col_2:n.ColumnHeader(),col_4:n.ColumnHeader(),col_1:n.ColumnHeader(),col_5:n.ColumnHeader()})}static SizeChart(){return a.object({unit:a.string().allow(""),image:a.string().allow(""),size_tip:a.string().allow(""),sizes:a.array().items(n.SizeChartValues()),description:a.string().allow(""),title:a.string().allow(""),headers:n.ColumnHeaders()})}static ProductSizeStores(){return a.object({count:a.number()})}static ProductSizes(){return a.object({sizes:a.array().items(n.ProductSize()),price:n.ProductSizesPrice(),size_chart:n.SizeChart(),sellable:a.boolean(),multi_size:a.boolean(),discount:a.string().allow(""),stores:n.ProductSizeStores(),discount_meta:n.DiscountMeta()})}static AttributeDetail(){return a.object({logo:a.string().allow(""),description:a.string().allow(""),display:a.string().allow(""),key:a.string().allow("")})}static AttributeMetadata(){return a.object({title:a.string().allow(""),details:a.array().items(n.AttributeDetail())})}static ProductsComparisonResponse(){return a.object({items:a.array().items(n.ProductDetail()),attributes_metadata:a.array().items(n.AttributeMetadata())})}static ProductCompareResponse(){return a.object({title:a.string().allow(""),items:a.array().items(n.ProductDetail()),attributes_metadata:a.array().items(n.AttributeMetadata()),subtitle:a.string().allow("")})}static ProductFrequentlyComparedSimilarResponse(){return a.object({similars:n.ProductCompareResponse()})}static ProductVariantItemResponse(){return a.object({uid:a.number(),color_name:a.string().allow(""),color:a.string().allow(""),medias:a.array().items(n.Media()),is_available:a.boolean(),_custom_meta:a.array().items(n.CustomMetaFields()),name:a.string().allow(""),value:a.string().allow(""),slug:a.string().allow(""),action:n.ProductListingAction()})}static ProductVariantResponse(){return a.object({display_type:a.string().allow(""),header:a.string().allow(""),items:a.array().items(n.ProductVariantItemResponse()),key:a.string().allow("")})}static ProductVariantsResponse(){return a.object({variants:a.array().items(n.ProductVariantResponse())})}static StoreDetail(){return a.object({name:a.string().allow(""),city:a.string().allow(""),id:a.number(),code:a.string().allow("")})}static ProductStockPrice(){return a.object({effective:a.number(),currency:a.string().allow(""),marked:a.number()})}static CompanyDetail(){return a.object({name:a.string().allow(""),id:a.number()})}static Seller(){return a.object({uid:a.number(),name:a.string().allow(""),count:a.number()})}static ProductStockStatusItem(){return a.object({uid:a.string().allow(""),quantity:a.number(),store:n.StoreDetail(),size:a.string().allow(""),price:n.ProductStockPrice(),company:n.CompanyDetail(),item_id:a.number(),seller:n.Seller(),identifier:a.any()})}static ProductStockStatusResponse(){return a.object({items:a.array().items(n.ProductStockStatusItem())})}static Page(){return a.object({item_total:a.number(),next_id:a.string().allow(""),has_previous:a.boolean(),has_next:a.boolean(),current:a.number(),type:a.string().allow("").required(),size:a.number()})}static ProductStockPolling(){return a.object({items:a.array().items(n.ProductStockStatusItem()),page:n.Page().required()})}static ProductVariantListingResponse(){return a.object({header:a.string().allow(""),items:a.array().items(n.ProductVariantItemResponse()),total:a.number(),key:a.string().allow(""),display_type:a.string().allow("")})}static ProductListingDetail(){return a.object({uid:a.number(),custom_order:n.ProductDetailCustomOrder(),sizes:a.array().items(a.string().allow("")),category_map:n.ProductCategoryMap(),net_quantity:n.NetQuantity(),rating_count:a.number(),_custom_meta:a.array().items(n.CustomMetaFields()),similars:a.array().items(a.string().allow("")),tags:a.array().items(a.string().allow("")),seo:n.ApplicationItemSEO(),discount_meta:n.DiscountMeta(),image_nature:a.string().allow(""),has_variant:a.boolean(),item_type:a.string().allow(""),description:a.string().allow(""),grouped_attributes:a.array().items(n.ProductDetailGroupedAttribute()),medias:a.array().items(n.Media()),color:a.string().allow(""),type:a.string().allow(""),product_online_date:a.string().allow(""),_custom_json:a.any(),item_code:a.string().allow(""),name:a.string().allow(""),moq:n.ApplicationItemMOQ(),short_description:a.string().allow(""),categories:a.array().items(n.ProductBrand()),sellable:a.boolean(),attributes:a.any(),variants:a.array().items(n.ProductVariantListingResponse()),discount:a.string().allow(""),tryouts:a.array().items(a.string().allow("")),identifiers:a.array().items(a.string().allow("")),slug:a.string().allow("").required(),action:n.ProductListingAction(),rating:a.number(),is_dependent:a.boolean(),product_group_tag:a.array().items(a.string().allow("")),highlights:a.array().items(a.string().allow("")),price:n.ProductListingPrice(),brand:n.ProductBrand(),teaser_tag:a.string().allow("")})}static ProductFiltersValue(){return a.object({min:a.number(),display_format:a.string().allow(""),selected_max:a.number(),value:a.string().allow(""),query_format:a.string().allow(""),currency_symbol:a.string().allow(""),selected_min:a.number(),currency_code:a.string().allow(""),is_selected:a.boolean().required(),display:a.string().allow("").required(),count:a.number(),max:a.number()})}static ProductFiltersKey(){return a.object({logo:a.string().allow(""),name:a.string().allow("").required(),kind:a.string().allow(""),display:a.string().allow("").required()})}static ProductFilters(){return a.object({values:a.array().items(n.ProductFiltersValue()).required(),key:n.ProductFiltersKey().required()})}static ProductSortOn(){return a.object({logo:a.string().allow(""),is_selected:a.boolean(),name:a.string().allow(""),value:a.string().allow(""),display:a.string().allow("")})}static ProductListingResponse(){return a.object({items:a.array().items(n.ProductListingDetail()),filters:a.array().items(n.ProductFilters()),page:n.Page().required(),sort_on:a.array().items(n.ProductSortOn())})}static ImageUrls(){return a.object({portrait:n.Media(),landscape:n.Media()})}static BrandItem(){return a.object({uid:a.number(),logo:n.Media(),description:a.string().allow(""),banners:n.ImageUrls(),departments:a.array().items(a.string().allow("")),discount:a.string().allow(""),name:a.string().allow(""),slug:a.string().allow(""),action:n.ProductListingAction()})}static BrandListingResponse(){return a.object({items:a.array().items(n.BrandItem()),page:n.Page().required()})}static BrandDetailResponse(){return a.object({logo:n.Media(),uid:a.number(),description:a.string().allow(""),banners:n.ImageUrls(),_custom_json:a.any(),name:a.string().allow("")})}static CategoryBanner(){return a.object({portrait:n.Media().required(),landscape:n.Media().required()})}static ThirdLevelChild(){return a.object({uid:a.number(),banners:n.ImageUrls(),childs:a.array().items(a.any()),_custom_json:a.any(),name:a.string().allow(""),slug:a.string().allow(""),action:n.ProductListingAction()})}static SecondLevelChild(){return a.object({uid:a.number(),banners:n.ImageUrls(),childs:a.array().items(n.ThirdLevelChild()),_custom_json:a.any(),name:a.string().allow(""),slug:a.string().allow(""),action:n.ProductListingAction()})}static Child(){return a.object({uid:a.number(),banners:n.ImageUrls(),childs:a.array().items(n.SecondLevelChild()),_custom_json:a.any(),name:a.string().allow(""),slug:a.string().allow(""),action:n.ProductListingAction()})}static CategoryItems(){return a.object({uid:a.number().required(),banners:n.CategoryBanner().required(),childs:a.array().items(n.Child()),name:a.string().allow("").required(),slug:a.string().allow("").required(),action:n.ProductListingAction().required()})}static DepartmentCategoryTree(){return a.object({items:a.array().items(n.CategoryItems()),department:a.string().allow("").required()})}static DepartmentIdentifier(){return a.object({uid:a.number(),slug:a.string().allow("")})}static CategoryListingResponse(){return a.object({data:a.array().items(n.DepartmentCategoryTree()),departments:a.array().items(n.DepartmentIdentifier())})}static CategoryMetaResponse(){return a.object({logo:n.Media(),uid:a.number(),banners:n.ImageUrls(),_custom_json:a.any(),name:a.string().allow("")})}static HomeListingResponse(){return a.object({items:a.array().items(n.ProductListingDetail()),page:n.Page().required(),message:a.string().allow("")})}static Department(){return a.object({uid:a.number(),logo:n.Media(),priority_order:a.number(),name:a.string().allow(""),slug:a.string().allow("")})}static DepartmentResponse(){return a.object({items:a.array().items(n.Department())})}static AutocompleteItem(){return a.object({logo:n.Media(),display:a.string().allow(""),type:a.string().allow(""),_custom_json:a.any(),action:n.ProductListingAction()})}static AutoCompleteResponse(){return a.object({items:a.array().items(n.AutocompleteItem())})}static CollectionQuery(){return a.object({op:a.string().allow("").required(),value:a.array().items(a.any()).required(),attribute:a.string().allow("").required()})}static GetCollectionDetailNest(){return a.object({is_active:a.boolean(),uid:a.string().allow(""),sort_on:a.string().allow(""),meta:a.any(),banners:n.ImageUrls(),cron:a.any(),_schedule:a.any(),query:a.array().items(n.CollectionQuery()),description:a.string().allow(""),type:a.string().allow(""),_custom_json:a.any(),name:a.string().allow(""),allow_sort:a.boolean(),visible_facets_keys:a.array().items(a.string().allow("")),badge:a.any(),slug:a.string().allow(""),action:n.ProductListingAction(),allow_facets:a.boolean(),logo:n.Media(),priority:a.number(),tags:a.array().items(a.string().allow("")),app_id:a.string().allow("")})}static CollectionListingFilterTag(){return a.object({name:a.string().allow(""),is_selected:a.boolean(),display:a.string().allow("")})}static CollectionListingFilterType(){return a.object({name:a.string().allow(""),is_selected:a.boolean(),display:a.string().allow("")})}static CollectionListingFilter(){return a.object({tags:a.array().items(n.CollectionListingFilterTag()),type:a.array().items(n.CollectionListingFilterType())})}static GetCollectionListingResponse(){return a.object({items:a.array().items(n.GetCollectionDetailNest()),filters:n.CollectionListingFilter(),page:n.Page().required()})}static CollectionDetailResponse(){return a.object({is_active:a.boolean(),sort_on:a.string().allow(""),meta:a.any(),banners:n.ImageUrls(),cron:a.any(),_schedule:a.any(),query:a.array().items(n.CollectionQuery()),description:a.string().allow(""),type:a.string().allow(""),_custom_json:a.any(),name:a.string().allow(""),allow_sort:a.boolean(),visible_facets_keys:a.array().items(a.string().allow("")),badge:a.any(),slug:a.string().allow(""),allow_facets:a.boolean(),logo:n.Media(),priority:a.number(),tag:a.array().items(a.string().allow("")),app_id:a.string().allow("")})}static GetFollowListingResponse(){return a.object({items:a.array().items(n.ProductListingDetail()).required(),page:n.Page().required()})}static FollowPostResponse(){return a.object({message:a.string().allow("").required(),id:a.string().allow("").required()})}static FollowerCountResponse(){return a.object({count:a.number()})}static FollowIdsData(){return a.object({products:a.array().items(a.number()),collections:a.array().items(a.number()),brands:a.array().items(a.number())})}static FollowIdsResponse(){return a.object({data:n.FollowIdsData()})}static LatLong(){return a.object({coordinates:a.array().items(a.number()),type:a.string().allow("")})}static Store(){return a.object({uid:a.number(),store_email:a.string().allow(""),state:a.string().allow(""),country:a.string().allow(""),pincode:a.number(),city:a.string().allow(""),address:a.string().allow(""),store_code:a.string().allow(""),lat_long:n.LatLong(),name:a.string().allow(""),tags:a.array().items(a.string().allow(""))})}static StoreListingResponse(){return a.object({items:a.array().items(n.Store()).required(),page:n.Page().required()})}static StoreDepartments(){return a.object({uid:a.number(),logo:a.any(),priority_order:a.number(),name:a.string().allow(""),slug:a.string().allow("")})}static CompanyStore(){return a.object({uid:a.number(),name:a.string().allow(""),company_type:a.string().allow(""),business_type:a.string().allow("")})}static SellerPhoneNumber(){return a.object({country_code:a.number().required(),number:a.string().allow("").required()})}static StoreManagerSerializer(){return a.object({name:a.string().allow(""),email:a.string().allow(""),mobile_no:n.SellerPhoneNumber()})}static StoreAddressSerializer(){return a.object({latitude:a.number(),state:a.string().allow(""),country:a.string().allow(""),landmark:a.string().allow(""),address1:a.string().allow(""),pincode:a.number(),city:a.string().allow(""),longitude:a.number(),address2:a.string().allow("")})}static AppStore(){return a.object({uid:a.number(),departments:a.array().items(n.StoreDepartments()),company:n.CompanyStore(),manager:n.StoreManagerSerializer(),store_code:a.string().allow(""),address:n.StoreAddressSerializer(),name:a.string().allow(""),contact_numbers:a.array().items(n.SellerPhoneNumber())})}static ApplicationStoreListing(){return a.object({filters:a.array().items(a.any()),items:a.array().items(n.AppStore()),page:n.Page()})}static Time(){return a.object({hour:a.number(),minute:a.number()})}static StoreTiming(){return a.object({open:a.boolean(),closing:n.Time(),weekday:a.string().allow(""),opening:n.Time()})}static StoreDetails(){return a.object({uid:a.number(),departments:a.array().items(n.StoreDepartments()),company:n.CompanyStore(),manager:n.StoreManagerSerializer(),store_code:a.string().allow(""),timing:a.array().items(n.StoreTiming()),address:n.StoreAddressSerializer(),_custom_json:a.any(),name:a.string().allow(""),contact_numbers:a.array().items(n.SellerPhoneNumber())})}static UserDetail(){return a.object({super_user:a.boolean(),contact:a.string().allow(""),username:a.string().allow("").required(),user_id:a.string().allow("").required()})}static Size(){return a.object({quantity:a.number(),value:a.any(),display:a.any(),is_available:a.boolean()})}static ProductGroupPrice(){return a.object({max_effective:a.number(),min_effective:a.number(),min_marked:a.number(),currency:a.any(),max_marked:a.number()})}static ProductDetails(){return a.object({template_tag:a.any(),rating_count:a.number(),image_nature:a.any(),has_variant:a.boolean(),description:a.any(),out_of_stock:a.boolean(),hsn_code:a.number(),grouped_attributes:a.any(),item_code:a.any(),name:a.any(),country_of_origin:a.any(),short_description:a.any(),media:a.array().items(a.any()),attributes:a.any(),is_set:a.boolean(),images:a.array().items(a.any()),slug:a.any(),rating:a.number(),identifier:a.any(),highlights:a.array().items(a.any()),brand_uid:a.number()})}static ProductInGroup(){return a.object({auto_add_to_cart:a.boolean(),max_quantity:a.number().required(),sizes:a.array().items(n.Size()),price:n.ProductGroupPrice(),auto_select:a.boolean(),product_details:n.ProductDetails(),min_quantity:a.number(),allow_remove:a.boolean(),product_uid:a.number().required()})}static ProductGroupingModel(){return a.object({logo:a.string().allow("").allow(null),is_active:a.boolean(),meta:a.any(),verified_by:n.UserDetail(),created_on:a.string().allow("").required(),company_id:a.number(),page_visibility:a.array().items(a.any()),modified_on:a.string().allow("").required(),created_by:n.UserDetail(),modified_by:n.UserDetail(),products:a.array().items(n.ProductInGroup()).required(),same_store_assignment:a.boolean(),_id:a.any(),name:a.any().required(),choice:a.any(),slug:a.any(),verified_on:a.string().allow("")})}static ProductBundle(){return a.object({items:a.array().items(n.ProductGroupingModel())})}static StoreV3(){return a.object({uid:a.number(),name:a.string().allow(""),count:a.number()})}static ArticleAssignmentV3(){return a.object({strategy:a.string().allow(""),level:a.string().allow("")})}static StrategyWiseListingSchemaV3(){return a.object({distance:a.number(),pincode:a.number(),tat:a.number(),quantity:a.number()})}static DetailsSchemaV3(){return a.object({value:a.string().allow(""),type:a.string().allow(""),key:a.string().allow("")})}static SellerGroupAttributes(){return a.object({title:a.string().allow(""),details:a.array().items(n.DetailsSchemaV3())})}static ReturnConfigSchemaV3(){return a.object({unit:a.string().allow(""),returnable:a.boolean(),time:a.number()})}static ProductSetDistributionSizeV3(){return a.object({pieces:a.number(),size:a.string().allow("")})}static ProductSetDistributionV3(){return a.object({sizes:a.array().items(n.ProductSetDistributionSizeV3())})}static ProductSetV3(){return a.object({quantity:a.number(),size_distribution:n.ProductSetDistributionV3()})}static ProductStockPriceV3(){return a.object({effective:a.number(),currency_code:a.string().allow(""),currency_symbol:a.string().allow(""),marked:a.number(),selling:a.number()})}static ProductStockUnitPriceV3(){return a.object({unit:a.string().allow(""),currency_symbol:a.string().allow(""),currency_code:a.string().allow(""),price:a.number()})}static MarketPlaceSttributesSchemaV3(){return a.object({title:a.string().allow(""),details:a.array().items(n.DetailsSchemaV3())})}static SellerV3(){return a.object({uid:a.number(),name:a.string().allow(""),count:a.number()})}static PromiseSchema(){return a.object({min:a.string().allow(""),max:a.string().allow("")})}static ProductSizePriceResponseV3(){return a.object({store:n.StoreV3(),article_assignment:n.ArticleAssignmentV3(),is_cod:a.boolean(),strategy_wise_listing:a.array().items(n.StrategyWiseListingSchemaV3()),quantity:a.number(),item_type:a.string().allow(""),grouped_attributes:a.array().items(n.SellerGroupAttributes()),return_config:n.ReturnConfigSchemaV3(),article_id:a.string().allow(""),is_gift:a.boolean(),set:n.ProductSetV3(),seller_count:a.number(),price_per_piece:n.ProductStockPriceV3(),discount_meta:n.DiscountMeta(),discount:a.string().allow(""),long_lat:a.array().items(a.number()),special_badge:a.string().allow(""),price:n.ProductStockPriceV3(),price_per_unit:n.ProductStockUnitPriceV3(),pincode:a.number(),marketplace_attributes:a.array().items(n.MarketPlaceSttributesSchemaV3()),seller:n.SellerV3(),delivery_promise:n.PromiseSchema()})}static ProductSizeSellerFilterSchemaV3(){return a.object({name:a.string().allow(""),is_selected:a.boolean(),value:a.string().allow("")})}static ProductSizeSellersResponseV3(){return a.object({items:a.array().items(n.ProductSizePriceResponseV3()),page:n.Page().required(),sort_on:a.array().items(n.ProductSizeSellerFilterSchemaV3())})}}e.exports=n},3080:(e,t,r)=>{const a=r(9955);r(5104),e.exports=class{static followById(){return a.object({collectionType:a.string().allow("").required(),collectionId:a.string().allow("").required()}).required()}static getBrandDetailBySlug(){return a.object({slug:a.string().allow("").required()}).required()}static getBrands(){return a.object({department:a.string().allow(""),pageNo:a.number(),pageSize:a.number()})}static getCategories(){return a.object({department:a.string().allow("")})}static getCategoryDetailBySlug(){return a.object({slug:a.string().allow("").required()}).required()}static getCollectionDetailBySlug(){return a.object({slug:a.string().allow("").required()}).required()}static getCollectionItemsBySlug(){return a.object({slug:a.string().allow("").required(),f:a.string().allow(""),q:a.string().allow(""),filters:a.boolean(),sortOn:a.string().allow(""),pageId:a.string().allow(""),pageSize:a.number(),pageNo:a.number(),pageType:a.string().allow("")}).required()}static getCollections(){return a.object({pageNo:a.number(),pageSize:a.number(),tag:a.array().items(a.string().allow("")),q:a.string().allow("")})}static getComparedFrequentlyProductBySlug(){return a.object({slug:a.string().allow("").required()}).required()}static getDepartments(){return a.object({})}static getFollowIds(){return a.object({collectionType:a.string().allow("")})}static getFollowedListing(){return a.object({collectionType:a.string().allow("").required(),pageId:a.string().allow(""),pageSize:a.number()}).required()}static getFollowerCountById(){return a.object({collectionType:a.string().allow("").required(),collectionId:a.string().allow("").required()}).required()}static getHomeProducts(){return a.object({sortOn:a.string().allow(""),pageId:a.string().allow(""),pageSize:a.number()})}static getInStockLocations(){return a.object({pageNo:a.number(),pageSize:a.number(),q:a.string().allow(""),city:a.string().allow(""),range:a.number(),latitude:a.number(),longitude:a.number()})}static getLocationDetailsById(){return a.object({locationId:a.number().required()}).required()}static getProductBundlesBySlug(){return a.object({slug:a.string().allow(""),id:a.string().allow("")})}static getProductComparisonBySlugs(){return a.object({slug:a.array().items(a.string().allow("")).required()}).required()}static getProductDetailBySlug(){return a.object({slug:a.string().allow("").required()}).required()}static getProductPriceBySlug(){return a.object({slug:a.string().allow("").required(),size:a.string().allow("").required(),storeId:a.number(),exchangeSellerIdentifier:a.string().allow(""),moq:a.number(),sellerId:a.number()}).required()}static getProductSellersBySlug(){return a.object({slug:a.string().allow("").required(),size:a.string().allow("").required(),strategy:a.string().allow(""),pageNo:a.number(),pageSize:a.number()}).required()}static getProductSizesBySlug(){return a.object({slug:a.string().allow("").required(),storeId:a.number()}).required()}static getProductStockByIds(){return a.object({itemId:a.string().allow(""),alu:a.string().allow(""),skuCode:a.string().allow(""),ean:a.string().allow(""),upc:a.string().allow("")})}static getProductStockForTimeByIds(){return a.object({timestamp:a.string().allow("").required(),pageSize:a.number(),pageId:a.string().allow("")}).required()}static getProductVariantsBySlug(){return a.object({slug:a.string().allow("").required()}).required()}static getProducts(){return a.object({q:a.string().allow(""),f:a.string().allow(""),filters:a.boolean(),sortOn:a.string().allow(""),pageId:a.string().allow(""),pageSize:a.number(),pageNo:a.number(),pageType:a.string().allow("")})}static getSearchResults(){return a.object({q:a.string().allow(""),categorySuggestion:a.number(),brandSuggestion:a.number(),collectionSuggestion:a.number(),productSuggestion:a.number(),querySuggestion:a.number()})}static getSimilarComparisonProductBySlug(){return a.object({slug:a.string().allow("").required()}).required()}static getStores(){return a.object({pageNo:a.number(),pageSize:a.number(),q:a.string().allow(""),city:a.string().allow(""),range:a.number(),latitude:a.number(),longitude:a.number(),tags:a.string().allow("")})}static unfollowById(){return a.object({collectionType:a.string().allow("").required(),collectionId:a.string().allow("").required()}).required()}}},4080:(e,t,r)=>{const a=r(8336),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(9916),s=r(4776),i=(r(3768),r(9012)),l=r(3548),{Logger:c}=r(1544);r(9955),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={getLocations:"/service/common/configuration/v1.0/location",searchApplication:"/service/common/configuration/v1.0/application/search-application"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async getLocations({locationType:e,id:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.getLocations().validate({locationType:e,id:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.getLocations().validate({locationType:e,id:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > Common > getLocations \n ${p}`});const g={};g.location_type=e,g.id=t;const m=await a.execute(this._conf,"get",s({url:this._urls.getLocations,params:{}}),g,void 0,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.Locations().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > Common > getLocations \n ${f}`})}return m}async searchApplication({authorization:e,query:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.searchApplication().validate({authorization:e,query:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.searchApplication().validate({authorization:e,query:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > Common > searchApplication \n ${p}`});const g={};g.query=t;const m={};m.authorization=e;const w=await a.execute(this._conf,"get",s({url:this._urls.searchApplication,params:{}}),g,void 0,{...m,...r},{responseHeaders:u});let f=w;u&&(f=w[0]);const{error:y}=l.ApplicationResponse().validate(f,{abortEarly:!1,allowUnknown:!0});if(y){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(y));c({level:"WARN",message:`Response Validation Warnings for application > Common > searchApplication \n ${y}`})}return w}}},3548:(e,t,r)=>{const a=r(9955);class n{static ApplicationResponse(){return a.object({application:n.Application()})}static Domain(){return a.object({verified:a.boolean(),is_primary:a.boolean(),is_shortlink:a.boolean(),_id:a.string().allow(""),name:a.string().allow(""),is_predefined:a.boolean()})}static ApplicationWebsite(){return a.object({enabled:a.boolean(),basepath:a.string().allow("")})}static ApplicationCors(){return a.object({domains:a.array().items(a.string().allow(""))})}static ApplicationAuth(){return a.object({enabled:a.boolean()})}static ApplicationRedirections(){return a.object({redirect_from:a.string().allow(""),redirect_to:a.string().allow(""),type:a.string().allow("")})}static ApplicationMeta(){return a.object({name:a.string().allow(""),value:a.string().allow("")})}static SecureUrl(){return a.object({secure_url:a.string().allow("")})}static Application(){return a.object({website:n.ApplicationWebsite(),cors:n.ApplicationCors(),auth:n.ApplicationAuth(),description:a.string().allow(""),channel_type:a.string().allow(""),cache_ttl:a.number(),is_internal:a.boolean(),is_active:a.boolean(),_id:a.string().allow(""),name:a.string().allow(""),owner:a.string().allow(""),company_id:a.number(),token:a.string().allow(""),redirections:a.array().items(n.ApplicationRedirections()),meta:a.array().items(n.ApplicationMeta()),created_at:a.string().allow(""),updated_at:a.string().allow(""),__v:a.number(),banner:n.SecureUrl(),logo:n.SecureUrl(),favicon:n.SecureUrl(),domains:a.array().items(n.Domain()),app_type:a.string().allow(""),mobile_logo:n.SecureUrl(),domain:n.Domain()})}static NotFound(){return a.object({message:a.string().allow("")})}static BadRequest(){return a.object({message:a.string().allow("")})}static LocationDefaultLanguage(){return a.object({name:a.string().allow(""),code:a.string().allow("")})}static LocationDefaultCurrency(){return a.object({name:a.string().allow(""),symbol:a.string().allow(""),code:a.string().allow("")})}static LocationCountry(){return a.object({capital:a.string().allow(""),currency:a.string().allow(""),iso2:a.string().allow(""),iso3:a.string().allow(""),name:a.string().allow(""),parent:a.string().allow(""),phone_code:a.string().allow(""),type:a.string().allow(""),uid:a.number(),__v:a.number(),_id:a.string().allow(""),default_currency:n.LocationDefaultCurrency(),default_language:n.LocationDefaultLanguage(),state_code:a.string().allow(""),country_code:a.string().allow(""),latitude:a.string().allow(""),longitude:a.string().allow("")})}static Locations(){return a.object({items:a.array().items(n.LocationCountry())})}}e.exports=n},9012:(e,t,r)=>{const a=r(9955);r(3548),e.exports=class{static getLocations(){return a.object({locationType:a.string().allow(""),id:a.string().allow("")})}static searchApplication(){return a.object({authorization:a.string().allow(""),query:a.string().allow("")})}}},4064:(e,t,r)=>{const a=r(8336),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(9916),s=r(4776),i=(r(3768),r(4464)),l=r(1839),{Logger:c}=r(1544);r(9955),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={getCommunicationConsent:"/service/application/communication/v1.0/consent",upsertAppPushtoken:"/service/application/communication/v1.0/pn-token",upsertCommunicationConsent:"/service/application/communication/v1.0/consent"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async getCommunicationConsent({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getCommunicationConsent().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:u}=i.getCommunicationConsent().validate({},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Communication > getCommunicationConsent \n ${u}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getCommunicationConsent,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=l.CommunicationConsent().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));c({level:"WARN",message:`Response Validation Warnings for application > Communication > getCommunicationConsent \n ${g}`})}return d}async upsertAppPushtoken({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.upsertAppPushtoken().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.upsertAppPushtoken().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Communication > upsertAppPushtoken \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.upsertAppPushtoken,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.PushtokenRes().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Communication > upsertAppPushtoken \n ${m}`})}return p}async upsertCommunicationConsent({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.upsertCommunicationConsent().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.upsertCommunicationConsent().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Communication > upsertCommunicationConsent \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.upsertCommunicationConsent,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.CommunicationConsentRes().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Communication > upsertCommunicationConsent \n ${m}`})}return p}}},1839:(e,t,r)=>{const a=r(9955);class n{static CommunicationConsentReq(){return a.object({response:a.string().allow(""),action:a.string().allow(""),channel:a.string().allow("")})}static CommunicationConsentRes(){return a.object({app_id:a.string().allow(""),user_id:a.string().allow(""),channels:n.CommunicationConsentChannels()})}static CommunicationConsentChannelsEmail(){return a.object({response:a.string().allow(""),display_name:a.string().allow("")})}static CommunicationConsentChannelsSms(){return a.object({response:a.string().allow(""),display_name:a.string().allow("")})}static CommunicationConsentChannelsWhatsapp(){return a.object({response:a.string().allow(""),display_name:a.string().allow(""),country_code:a.string().allow(""),phone_number:a.string().allow("")})}static CommunicationConsentChannels(){return a.object({email:n.CommunicationConsentChannelsEmail(),sms:n.CommunicationConsentChannelsSms(),whatsapp:n.CommunicationConsentChannelsWhatsapp()})}static CommunicationConsent(){return a.object({app_id:a.string().allow(""),user_id:a.string().allow(""),channels:n.CommunicationConsentChannels()})}static BadRequestSchema(){return a.object({status:a.string().allow(""),message:a.string().allow("")})}static PushtokenReq(){return a.object({action:a.string().allow(""),bundle_identifier:a.string().allow(""),push_token:a.string().allow(""),unique_device_id:a.string().allow(""),type:a.string().allow("")})}static PushtokenRes(){return a.object({_id:a.string().allow(""),bundle_identifier:a.string().allow(""),push_token:a.string().allow(""),unique_device_id:a.string().allow(""),type:a.string().allow(""),platform:a.string().allow(""),application_id:a.string().allow(""),user_id:a.string().allow(""),created_at:a.string().allow(""),updated_at:a.string().allow(""),expired_at:a.string().allow("")})}}e.exports=n},4464:(e,t,r)=>{const a=r(9955),n=r(1839);e.exports=class{static getCommunicationConsent(){return a.object({})}static upsertAppPushtoken(){return a.object({body:n.PushtokenReq().required()}).required()}static upsertCommunicationConsent(){return a.object({body:n.CommunicationConsentReq().required()}).required()}}},2192:(e,t,r)=>{const a=r(8336),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(9916),s=r(4776),i=r(3768),l=r(2576),c=r(8288),{Logger:u}=r(1544);r(9955),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={getAppCurrencies:"/service/application/configuration/v1.0/currency",getAppStaffList:"/service/application/configuration/v1.0/staff/list",getAppStaffs:"/service/application/configuration/v1.0/staff",getApplication:"/service/application/configuration/v1.0/application",getBasicDetails:"/service/application/configuration/v1.0/detail",getContactInfo:"/service/application/configuration/v1.0/information",getCurrencies:"/service/application/configuration/v1.0/currencies",getCurrencyById:"/service/application/configuration/v1.0/currency/{id}",getFeatures:"/service/application/configuration/v1.0/feature",getIntegrationTokens:"/service/application/configuration/v1.0/token",getLanguages:"/service/application/configuration/v1.0/languages",getOrderingStoreCookie:"/service/application/configuration/v1.0/ordering-store/select",getOrderingStores:"/service/application/configuration/v1.0/ordering-store/stores",getOwnerInfo:"/service/application/configuration/v1.0/about",getStoreDetailById:"/service/application/configuration/v1.0/ordering-store/stores/{store_id}",removeOrderingStoreCookie:"/service/application/configuration/v1.0/ordering-store/select"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async getAppCurrencies({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=l.getAppCurrencies().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:i}=l.getAppCurrencies().validate({},{abortEarly:!1,allowUnknown:!1});i&&u({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getAppCurrencies \n ${i}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getAppCurrencies,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=c.AppCurrencyResponse().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));u({level:"WARN",message:`Response Validation Warnings for application > Configuration > getAppCurrencies \n ${g}`})}return d}async getAppStaffList({pageNo:e,pageSize:t,orderIncent:r,orderingStore:i,user:d,userName:p,requestHeaders:g}={requestHeaders:{}},{responseHeaders:m}={responseHeaders:!1}){const{error:w}=l.getAppStaffList().validate({pageNo:e,pageSize:t,orderIncent:r,orderingStore:i,user:d,userName:p},{abortEarly:!1,allowUnknown:!0});if(w)return Promise.reject(new n(w));const{error:f}=l.getAppStaffList().validate({pageNo:e,pageSize:t,orderIncent:r,orderingStore:i,user:d,userName:p},{abortEarly:!1,allowUnknown:!1});f&&u({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getAppStaffList \n ${f}`});const y={};y.page_no=e,y.page_size=t,y.order_incent=r,y.ordering_store=i,y.user=d,y.user_name=p;const b=await a.execute(this._conf,"get",s({url:this._urls.getAppStaffList,params:{}}),y,void 0,{...g},{responseHeaders:m});let h=b;m&&(h=b[0]);const{error:_}=c.AppStaffListResponse().validate(h,{abortEarly:!1,allowUnknown:!0});if(_){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(_));u({level:"WARN",message:`Response Validation Warnings for application > Configuration > getAppStaffList \n ${_}`})}return b}getAppStaffListPaginator({pageSize:e,orderIncent:t,orderingStore:r,user:a,userName:n}={}){const o=new i;return o.setCallback((async()=>{o.nextId;const s=o.pageNo,i=await this.getAppStaffList({pageNo:s,pageSize:e,orderIncent:t,orderingStore:r,user:a,userName:n});return o.setPaginator({hasNext:!!i.page.has_next,nextId:i.page.next_id}),i}).bind(this)),o}async getAppStaffs({orderIncent:e,orderingStore:t,user:r,requestHeaders:i}={requestHeaders:{}},{responseHeaders:d}={responseHeaders:!1}){const{error:p}=l.getAppStaffs().validate({orderIncent:e,orderingStore:t,user:r},{abortEarly:!1,allowUnknown:!0});if(p)return Promise.reject(new n(p));const{error:g}=l.getAppStaffs().validate({orderIncent:e,orderingStore:t,user:r},{abortEarly:!1,allowUnknown:!1});g&&u({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getAppStaffs \n ${g}`});const m={};m.order_incent=e,m.ordering_store=t,m.user=r;const w=await a.execute(this._conf,"get",s({url:this._urls.getAppStaffs,params:{}}),m,void 0,{...i},{responseHeaders:d});let f=w;d&&(f=w[0]);const{error:y}=c.AppStaffResponse().validate(f,{abortEarly:!1,allowUnknown:!0});if(y){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(y));u({level:"WARN",message:`Response Validation Warnings for application > Configuration > getAppStaffs \n ${y}`})}return w}async getApplication({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=l.getApplication().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:i}=l.getApplication().validate({},{abortEarly:!1,allowUnknown:!1});i&&u({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getApplication \n ${i}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getApplication,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=c.Application().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));u({level:"WARN",message:`Response Validation Warnings for application > Configuration > getApplication \n ${g}`})}return d}async getBasicDetails({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=l.getBasicDetails().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:i}=l.getBasicDetails().validate({},{abortEarly:!1,allowUnknown:!1});i&&u({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getBasicDetails \n ${i}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getBasicDetails,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=c.ApplicationDetail().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));u({level:"WARN",message:`Response Validation Warnings for application > Configuration > getBasicDetails \n ${g}`})}return d}async getContactInfo({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=l.getContactInfo().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:i}=l.getContactInfo().validate({},{abortEarly:!1,allowUnknown:!1});i&&u({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getContactInfo \n ${i}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getContactInfo,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=c.ApplicationInformation().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));u({level:"WARN",message:`Response Validation Warnings for application > Configuration > getContactInfo \n ${g}`})}return d}async getCurrencies({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=l.getCurrencies().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:i}=l.getCurrencies().validate({},{abortEarly:!1,allowUnknown:!1});i&&u({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getCurrencies \n ${i}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getCurrencies,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=c.CurrenciesResponse().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));u({level:"WARN",message:`Response Validation Warnings for application > Configuration > getCurrencies \n ${g}`})}return d}async getCurrencyById({id:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:i}=l.getCurrencyById().validate({id:e},{abortEarly:!1,allowUnknown:!0});if(i)return Promise.reject(new n(i));const{error:d}=l.getCurrencyById().validate({id:e},{abortEarly:!1,allowUnknown:!1});d&&u({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getCurrencyById \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getCurrencyById,params:{id:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=c.Currency().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));u({level:"WARN",message:`Response Validation Warnings for application > Configuration > getCurrencyById \n ${m}`})}return p}async getFeatures({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=l.getFeatures().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:i}=l.getFeatures().validate({},{abortEarly:!1,allowUnknown:!1});i&&u({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getFeatures \n ${i}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getFeatures,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=c.AppFeatureResponse().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));u({level:"WARN",message:`Response Validation Warnings for application > Configuration > getFeatures \n ${g}`})}return d}async getIntegrationTokens({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=l.getIntegrationTokens().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:i}=l.getIntegrationTokens().validate({},{abortEarly:!1,allowUnknown:!1});i&&u({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getIntegrationTokens \n ${i}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getIntegrationTokens,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=c.AppTokenResponse().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));u({level:"WARN",message:`Response Validation Warnings for application > Configuration > getIntegrationTokens \n ${g}`})}return d}async getLanguages({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=l.getLanguages().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:i}=l.getLanguages().validate({},{abortEarly:!1,allowUnknown:!1});i&&u({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getLanguages \n ${i}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getLanguages,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=c.LanguageResponse().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));u({level:"WARN",message:`Response Validation Warnings for application > Configuration > getLanguages \n ${g}`})}return d}async getOrderingStoreCookie({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:i}=l.getOrderingStoreCookie().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(i)return Promise.reject(new n(i));const{error:d}=l.getOrderingStoreCookie().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&u({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getOrderingStoreCookie \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.getOrderingStoreCookie,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=c.SuccessMessageResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));u({level:"WARN",message:`Response Validation Warnings for application > Configuration > getOrderingStoreCookie \n ${m}`})}return p}async getOrderingStores({pageNo:e,pageSize:t,q:r,requestHeaders:i}={requestHeaders:{}},{responseHeaders:d}={responseHeaders:!1}){const{error:p}=l.getOrderingStores().validate({pageNo:e,pageSize:t,q:r},{abortEarly:!1,allowUnknown:!0});if(p)return Promise.reject(new n(p));const{error:g}=l.getOrderingStores().validate({pageNo:e,pageSize:t,q:r},{abortEarly:!1,allowUnknown:!1});g&&u({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getOrderingStores \n ${g}`});const m={};m.page_no=e,m.page_size=t,m.q=r;const w=await a.execute(this._conf,"get",s({url:this._urls.getOrderingStores,params:{}}),m,void 0,{...i},{responseHeaders:d});let f=w;d&&(f=w[0]);const{error:y}=c.OrderingStores().validate(f,{abortEarly:!1,allowUnknown:!0});if(y){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(y));u({level:"WARN",message:`Response Validation Warnings for application > Configuration > getOrderingStores \n ${y}`})}return w}getOrderingStoresPaginator({pageSize:e,q:t}={}){const r=new i;return r.setCallback((async()=>{r.nextId;const a=r.pageNo,n=await this.getOrderingStores({pageNo:a,pageSize:e,q:t});return r.setPaginator({hasNext:!!n.page.has_next,nextId:n.page.next_id}),n}).bind(this)),r}async getOwnerInfo({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=l.getOwnerInfo().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:i}=l.getOwnerInfo().validate({},{abortEarly:!1,allowUnknown:!1});i&&u({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getOwnerInfo \n ${i}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getOwnerInfo,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=c.ApplicationAboutResponse().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));u({level:"WARN",message:`Response Validation Warnings for application > Configuration > getOwnerInfo \n ${g}`})}return d}async getStoreDetailById({storeId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:i}=l.getStoreDetailById().validate({storeId:e},{abortEarly:!1,allowUnknown:!0});if(i)return Promise.reject(new n(i));const{error:d}=l.getStoreDetailById().validate({storeId:e},{abortEarly:!1,allowUnknown:!1});d&&u({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getStoreDetailById \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getStoreDetailById,params:{storeId:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=c.OrderingStore().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));u({level:"WARN",message:`Response Validation Warnings for application > Configuration > getStoreDetailById \n ${m}`})}return p}async removeOrderingStoreCookie({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=l.removeOrderingStoreCookie().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:i}=l.removeOrderingStoreCookie().validate({},{abortEarly:!1,allowUnknown:!1});i&&u({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > removeOrderingStoreCookie \n ${i}`});const d=await a.execute(this._conf,"delete",s({url:this._urls.removeOrderingStoreCookie,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=c.SuccessMessageResponse().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));u({level:"WARN",message:`Response Validation Warnings for application > Configuration > removeOrderingStoreCookie \n ${g}`})}return d}}},8288:(e,t,r)=>{const a=r(9955);class n{static ApplicationAboutResponse(){return a.object({application_info:n.ApplicationInfo()})}static ApplicationInfo(){return a.object({company_info:n.CompanyInfo(),owner_info:n.OwnerInfo(),_id:a.string().allow(""),domain:n.Domain(),website:n.ApplicationWebsite(),cors:n.ApplicationCors(),description:a.string().allow(""),name:a.string().allow(""),meta:a.array().items(n.ApplicationMeta()),token:a.string().allow(""),secret:a.string().allow(""),created_at:a.string().allow(""),banner:n.SecureUrl(),logo:n.SecureUrl(),is_active:a.boolean(),mode:a.string().allow(""),tokens:a.array().items(n.TokenSchema()),domains:a.array().items(n.Domain()),favicon:n.SecureUrl(),mobile_logo:n.SecureUrl(),slug:a.string().allow("")})}static CompanyInfo(){return a.object({_id:a.string().allow(""),uid:a.number(),created_on:a.string().allow(""),is_active:a.boolean(),name:a.string().allow(""),addresses:a.array().items(n.CompanyAboutAddress()),notification_emails:a.array().items(a.string().allow(""))})}static OwnerInfo(){return a.object({_id:a.string().allow(""),emails:a.array().items(n.UserEmail()),phone_numbers:a.array().items(n.UserPhoneNumber()),first_name:a.string().allow(""),last_name:a.string().allow(""),profile_pic:a.string().allow("")})}static SupportedLanguage(){return a.object({name:a.string().allow(""),code:a.string().allow("")})}static LanguageResponse(){return a.object({items:a.array().items(n.SupportedLanguage())})}static AppStaffResponse(){return a.object({staff_users:a.array().items(n.AppStaff())})}static AppStaffListResponse(){return a.object({page:n.Page(),items:a.array().items(n.AppStaff())})}static OrderingStoreSelectRequest(){return a.object({ordering_store:n.OrderingStoreSelect().required()})}static OrderingStoreSelect(){return a.object({uid:a.number().required()})}static AppStaff(){return a.object({_id:a.string().allow(""),order_incent:a.boolean(),stores:a.array().items(a.number()),application:a.string().allow(""),title:a.string().allow(""),user:a.string().allow(""),employee_code:a.string().allow(""),first_name:a.string().allow(""),last_name:a.string().allow(""),profile_pic_url:a.string().allow("")})}static AppTokenResponse(){return a.object({tokens:n.Tokens(),_id:a.string().allow(""),application:a.string().allow(""),created_at:a.string().allow(""),modified_at:a.string().allow(""),__v:a.number()})}static Tokens(){return a.object({firebase:n.Firebase(),moengage:n.Moengage(),segment:n.Segment(),gtm:n.Gtm(),freshchat:n.Freshchat(),safetynet:n.Safetynet(),fynd_rewards:n.FyndRewards(),google_map:n.GoogleMap()})}static Firebase(){return a.object({credentials:n.Credentials(),enabled:a.boolean()})}static Credentials(){return a.object({ios:n.Ios(),android:n.Android(),project_id:a.string().allow(""),gcm_sender_id:a.string().allow(""),application_id:a.string().allow(""),api_key:a.string().allow("")})}static Ios(){return a.object({application_id:a.string().allow(""),api_key:a.string().allow("")})}static Android(){return a.object({application_id:a.string().allow(""),api_key:a.string().allow("")})}static Moengage(){return a.object({credentials:n.MoengageCredentials(),enabled:a.boolean()})}static MoengageCredentials(){return a.object({app_id:a.string().allow("")})}static Segment(){return a.object({credentials:n.SegmentCredentials(),enabled:a.boolean()})}static SegmentCredentials(){return a.object({write_key:a.string().allow("")})}static Gtm(){return a.object({credentials:n.GtmCredentials(),enabled:a.boolean()})}static GtmCredentials(){return a.object({api_key:a.string().allow("")})}static Freshchat(){return a.object({credentials:n.FreshchatCredentials(),enabled:a.boolean()})}static FreshchatCredentials(){return a.object({app_id:a.string().allow(""),app_key:a.string().allow(""),web_token:a.string().allow("")})}static Safetynet(){return a.object({credentials:n.SafetynetCredentials(),enabled:a.boolean()})}static SafetynetCredentials(){return a.object({api_key:a.string().allow("")})}static FyndRewards(){return a.object({credentials:n.FyndRewardsCredentials()})}static FyndRewardsCredentials(){return a.object({public_key:a.string().allow("")})}static GoogleMap(){return a.object({credentials:n.GoogleMapCredentials()})}static GoogleMapCredentials(){return a.object({api_key:a.string().allow("")})}static RewardPointsConfig(){return a.object({credit:n.Credit(),debit:n.Debit()})}static Credit(){return a.object({enabled:a.boolean()})}static Debit(){return a.object({enabled:a.boolean(),auto_apply:a.boolean(),strategy_channel:a.string().allow("")})}static ProductDetailFeature(){return a.object({similar:a.array().items(a.string().allow("")),seller_selection:a.boolean(),update_product_meta:a.boolean(),request_product:a.boolean()})}static LaunchPage(){return a.object({page_type:a.string().allow(""),params:a.any(),query:a.any()})}static LandingPageFeature(){return a.object({launch_page:n.LaunchPage(),continue_as_guest:a.boolean(),login_btn_text:a.string().allow(""),show_domain_textbox:a.boolean(),show_register_btn:a.boolean()})}static RegistrationPageFeature(){return a.object({ask_store_address:a.boolean()})}static AppFeature(){return a.object({product_detail:n.ProductDetailFeature(),landing_page:n.LandingPageFeature(),registration_page:n.RegistrationPageFeature(),home_page:n.HomePageFeature(),common:n.CommonFeature(),cart:n.CartFeature(),qr:n.QrFeature(),pcr:n.PcrFeature(),order:n.OrderFeature(),buybox:n.BuyboxFeature(),_id:a.string().allow(""),app:a.string().allow(""),created_at:a.string().allow(""),modified_at:a.string().allow(""),__v:a.number()})}static HomePageFeature(){return a.object({order_processing:a.boolean()})}static CommonFeature(){return a.object({communication_optin_dialog:n.CommunicationOptinDialogFeature(),deployment_store_selection:n.DeploymentStoreSelectionFeature(),listing_price:n.ListingPriceFeature(),currency:n.CurrencyFeature(),revenue_engine:n.RevenueEngineFeature(),feedback:n.FeedbackFeature(),compare_products:n.CompareProductsFeature(),reward_points:n.RewardPointsConfig(),listing_page:n.ListingPageFeature(),international_shipping:n.InternationalShipping()})}static InternationalShipping(){return a.object({enabled:a.boolean()})}static CommunicationOptinDialogFeature(){return a.object({visibility:a.boolean()})}static DeploymentStoreSelectionFeature(){return a.object({enabled:a.boolean(),type:a.string().allow("")})}static ListingPriceFeature(){return a.object({value:a.string().allow(""),sort:a.string().allow("")})}static ListingPageFeature(){return a.object({sort_on:a.string().allow("")})}static CurrencyFeature(){return a.object({value:a.array().items(a.string().allow("")),type:a.string().allow(""),default_currency:a.string().allow("")})}static RevenueEngineFeature(){return a.object({enabled:a.boolean()})}static FeedbackFeature(){return a.object({enabled:a.boolean()})}static CompareProductsFeature(){return a.object({enabled:a.boolean()})}static CartFeature(){return a.object({gst_input:a.boolean(),staff_selection:a.boolean(),placing_for_customer:a.boolean(),google_map:a.boolean(),revenue_engine_coupon:a.boolean()})}static QrFeature(){return a.object({application:a.boolean(),products:a.boolean(),collections:a.boolean()})}static PcrFeature(){return a.object({staff_selection:a.boolean()})}static OrderFeature(){return a.object({buy_again:a.boolean()})}static BuyboxFeature(){return a.object({show_name:a.boolean(),enable_selection:a.boolean(),is_seller_buybox_enabled:a.boolean()})}static AppFeatureResponse(){return a.object({feature:n.AppFeature()})}static Currency(){return a.object({_id:a.string().allow(""),is_active:a.boolean(),name:a.string().allow(""),code:a.string().allow(""),created_at:a.string().allow(""),modified_at:a.string().allow(""),decimal_digits:a.number(),symbol:a.string().allow(""),country_name:a.string().allow(""),country_code:a.string().allow("")})}static Domain(){return a.object({verified:a.boolean(),is_primary:a.boolean(),is_shortlink:a.boolean(),_id:a.string().allow(""),name:a.string().allow(""),is_predefined:a.boolean()})}static ApplicationWebsite(){return a.object({enabled:a.boolean(),basepath:a.string().allow("")})}static ApplicationCors(){return a.object({domains:a.array().items(a.string().allow(""))})}static ApplicationAuth(){return a.object({enabled:a.boolean()})}static ApplicationRedirections(){return a.object({redirect_from:a.string().allow(""),redirect_to:a.string().allow(""),type:a.string().allow("")})}static ApplicationMeta(){return a.object({name:a.string().allow(""),value:a.string().allow("")})}static SecureUrl(){return a.object({secure_url:a.string().allow("")})}static Application(){return a.object({website:n.ApplicationWebsite(),cors:n.ApplicationCors(),auth:n.ApplicationAuth(),description:a.string().allow(""),channel_type:a.string().allow(""),cache_ttl:a.number(),is_internal:a.boolean(),is_active:a.boolean(),_id:a.string().allow(""),name:a.string().allow(""),owner:a.string().allow(""),company_id:a.number(),token:a.string().allow(""),redirections:a.array().items(n.ApplicationRedirections()),meta:a.array().items(n.ApplicationMeta()),created_at:a.string().allow(""),modified_at:a.string().allow(""),__v:a.number(),banner:n.SecureUrl(),logo:n.SecureUrl(),favicon:n.SecureUrl(),domains:a.array().items(n.Domain()),app_type:a.string().allow(""),mobile_logo:n.SecureUrl(),domain:n.Domain(),slug:a.string().allow(""),mode:a.string().allow(""),status:a.string().allow(""),tokens:a.array().items(n.TokenSchema())})}static TokenSchema(){return a.object({token:a.string().allow(""),created_by:a.object().pattern(/\S/,a.any()),created_at:a.string().allow("")})}static NotFound(){return a.object({message:a.string().allow("")})}static InvalidPayloadRequest(){return a.object({message:a.string().allow("")})}static UnhandledError(){return a.object({message:a.string().allow("")})}static SuccessMessageResponse(){return a.object({message:a.string().allow("")})}static CompanyAboutAddress(){return a.object({pincode:a.number(),address1:a.string().allow(""),address2:a.string().allow(""),city:a.string().allow(""),state:a.string().allow(""),country:a.string().allow(""),address_type:a.string().allow("")})}static UserEmail(){return a.object({active:a.boolean(),primary:a.boolean(),verified:a.boolean(),email:a.string().allow("")})}static UserPhoneNumber(){return a.object({active:a.boolean(),primary:a.boolean(),verified:a.boolean(),country_code:a.number(),phone:a.string().allow("")})}static Page(){return a.object({item_total:a.number(),next_id:a.string().allow(""),has_previous:a.boolean(),has_next:a.boolean(),current:a.number(),type:a.string().allow("").required(),size:a.number()})}static ApplicationInformation(){return a.object({address:n.InformationAddress(),support:n.InformationSupport(),social_links:n.SocialLinks(),links:a.array().items(n.Links()),copyright_text:a.string().allow(""),_id:a.string().allow(""),business_highlights:a.array().items(n.BusinessHighlights()),application:a.string().allow(""),created_at:a.string().allow(""),modified_at:a.string().allow(""),__v:a.number()})}static InformationAddress(){return a.object({loc:n.InformationLoc(),address_line:a.array().items(a.string().allow("")),phone:a.array().items(n.InformationPhone()),city:a.string().allow(""),country:a.string().allow(""),pincode:a.number()})}static InformationPhone(){return a.object({code:a.string().allow(""),number:a.string().allow("")})}static InformationSupportPhone(){return a.object({code:a.string().allow(""),number:a.string().allow(""),key:a.string().allow("")})}static InformationSupportEmail(){return a.object({value:a.string().allow(""),key:a.string().allow("")})}static InformationLoc(){return a.object({type:a.string().allow(""),coordinates:a.array().items(a.number())})}static InformationSupport(){return a.object({phone:a.array().items(n.InformationSupportPhone()),email:a.array().items(n.InformationSupportEmail()),timing:a.string().allow("")})}static SocialLinks(){return a.object({facebook:n.FacebookLink(),instagram:n.InstagramLink(),twitter:n.TwitterLink(),pinterest:n.PinterestLink(),google_plus:n.GooglePlusLink(),youtube:n.YoutubeLink(),linked_in:n.LinkedInLink(),vimeo:n.VimeoLink(),blog_link:n.BlogLink()})}static FacebookLink(){return a.object({title:a.string().allow(""),icon:a.string().allow(""),link:a.string().allow("")})}static InstagramLink(){return a.object({title:a.string().allow(""),icon:a.string().allow(""),link:a.string().allow("")})}static TwitterLink(){return a.object({title:a.string().allow(""),icon:a.string().allow(""),link:a.string().allow("")})}static PinterestLink(){return a.object({title:a.string().allow(""),icon:a.string().allow(""),link:a.string().allow("")})}static GooglePlusLink(){return a.object({title:a.string().allow(""),icon:a.string().allow(""),link:a.string().allow("")})}static YoutubeLink(){return a.object({title:a.string().allow(""),icon:a.string().allow(""),link:a.string().allow("")})}static LinkedInLink(){return a.object({title:a.string().allow(""),icon:a.string().allow(""),link:a.string().allow("")})}static VimeoLink(){return a.object({title:a.string().allow(""),icon:a.string().allow(""),link:a.string().allow("")})}static BlogLink(){return a.object({title:a.string().allow(""),icon:a.string().allow(""),link:a.string().allow("")})}static Links(){return a.object({title:a.string().allow(""),link:a.string().allow("")})}static BusinessHighlights(){return a.object({_id:a.string().allow(""),title:a.string().allow(""),icon:a.string().allow(""),sub_title:a.string().allow("")})}static ApplicationDetail(){return a.object({name:a.string().allow("").required(),description:a.string().allow(""),logo:n.SecureUrl(),mobile_logo:n.SecureUrl(),favicon:n.SecureUrl(),banner:n.SecureUrl(),domain:n.Domain(),domains:a.array().items(n.Domain()),_id:a.string().allow(""),slug:a.string().allow(""),company_id:a.number()})}static CurrenciesResponse(){return a.object({items:a.array().items(n.Currency())})}static DefaultCurrency(){return a.object({ref:a.string().allow(""),code:a.string().allow("")})}static AppCurrencyResponse(){return a.object({application:a.string().allow(""),default_currency:n.DefaultCurrency(),supported_currency:a.array().items(n.Currency()),_id:a.string().allow(""),created_at:a.string().allow(""),modified_at:a.string().allow("")})}static StoreLatLong(){return a.object({type:a.string().allow(""),coordinates:a.array().items(a.number())})}static OptedStoreAddress(){return a.object({state:a.string().allow(""),address1:a.string().allow(""),lat_long:n.StoreLatLong(),address2:a.string().allow(""),pincode:a.number(),country:a.string().allow(""),city:a.string().allow("")})}static OrderingStore(){return a.object({address:n.OptedStoreAddress(),_id:a.string().allow(""),uid:a.number(),name:a.string().allow(""),display_name:a.string().allow(""),store_type:a.string().allow(""),store_code:a.string().allow(""),pincode:a.number(),code:a.string().allow("")})}static OrderingStores(){return a.object({page:n.Page(),items:a.array().items(n.OrderingStore()),deployed_stores:a.array().items(a.number()),all_stores:a.boolean(),enabled:a.boolean(),type:a.string().allow(""),_id:a.string().allow(""),app:a.string().allow(""),__v:a.number()})}}e.exports=n},2576:(e,t,r)=>{const a=r(9955),n=r(8288);e.exports=class{static getAppCurrencies(){return a.object({})}static getAppStaffList(){return a.object({pageNo:a.number(),pageSize:a.number(),orderIncent:a.boolean(),orderingStore:a.number(),user:a.string().allow(""),userName:a.string().allow("")})}static getAppStaffs(){return a.object({orderIncent:a.boolean(),orderingStore:a.number(),user:a.string().allow("")})}static getApplication(){return a.object({})}static getBasicDetails(){return a.object({})}static getContactInfo(){return a.object({})}static getCurrencies(){return a.object({})}static getCurrencyById(){return a.object({id:a.string().allow("").required()}).required()}static getFeatures(){return a.object({})}static getIntegrationTokens(){return a.object({})}static getLanguages(){return a.object({})}static getOrderingStoreCookie(){return a.object({body:n.OrderingStoreSelectRequest().required()}).required()}static getOrderingStores(){return a.object({pageNo:a.number(),pageSize:a.number(),q:a.string().allow("")})}static getOwnerInfo(){return a.object({})}static getStoreDetailById(){return a.object({storeId:a.number().required()}).required()}static removeOrderingStoreCookie(){return a.object({})}}},6900:(e,t,r)=>{const a=r(8336),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(9916),s=r(4776),i=r(3768),l=r(4188),c=r(1336),{Logger:u}=r(1544);r(9955),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={getAnnouncements:"/service/application/content/v1.0/announcements",getBlog:"/service/application/content/v1.0/blogs/{slug}",getBlogs:"/service/application/content/v1.0/blogs/",getCustomFields:"/service/application/content/v1.0/metafields/{resource}/{resource_id}",getCustomObject:"/service/application/content/v1.0/metaobjects/{metaobject_id}",getDataLoaders:"/service/application/content/v1.0/data-loader",getFaqBySlug:"/service/application/content/v1.0/faq/{slug}",getFaqCategories:"/service/application/content/v1.0/faq/categories",getFaqCategoryBySlug:"/service/application/content/v1.0/faq/category/{slug}",getFaqs:"/service/application/content/v1.0/faq",getFaqsByCategorySlug:"/service/application/content/v1.0/faq/category/{slug}/faqs",getLandingPage:"/service/application/content/v1.0/landing-page",getLegalInformation:"/service/application/content/v1.0/legal",getNavigations:"/service/application/content/v1.0/navigations/",getPage:"/service/application/content/v2.0/pages/{slug}",getPages:"/service/application/content/v2.0/pages/",getSEOConfiguration:"/service/application/content/v1.0/seo",getSEOMarkupSchemas:"/service/application/content/v1.0/seo/schema",getSlideshow:"/service/application/content/v1.0/slideshow/{slug}",getSlideshows:"/service/application/content/v1.0/slideshow/",getSupportInformation:"/service/application/content/v1.0/support",getTags:"/service/application/content/v1.0/tags"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async getAnnouncements({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=l.getAnnouncements().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:i}=l.getAnnouncements().validate({},{abortEarly:!1,allowUnknown:!1});i&&u({level:"WARN",message:`Parameter Validation warrnings for application > Content > getAnnouncements \n ${i}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getAnnouncements,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=c.AnnouncementsResponseSchema().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));u({level:"WARN",message:`Response Validation Warnings for application > Content > getAnnouncements \n ${g}`})}return d}async getBlog({slug:e,rootId:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:i}={responseHeaders:!1}){const{error:d}=l.getBlog().validate({slug:e,rootId:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=l.getBlog().validate({slug:e,rootId:t},{abortEarly:!1,allowUnknown:!1});p&&u({level:"WARN",message:`Parameter Validation warrnings for application > Content > getBlog \n ${p}`});const g={};g.root_id=t;const m=await a.execute(this._conf,"get",s({url:this._urls.getBlog,params:{slug:e}}),g,void 0,{...r},{responseHeaders:i});let w=m;i&&(w=m[0]);const{error:f}=c.BlogSchema().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));u({level:"WARN",message:`Response Validation Warnings for application > Content > getBlog \n ${f}`})}return m}async getBlogs({pageNo:e,pageSize:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:i}={responseHeaders:!1}){const{error:d}=l.getBlogs().validate({pageNo:e,pageSize:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=l.getBlogs().validate({pageNo:e,pageSize:t},{abortEarly:!1,allowUnknown:!1});p&&u({level:"WARN",message:`Parameter Validation warrnings for application > Content > getBlogs \n ${p}`});const g={};g.page_no=e,g.page_size=t;const m=await a.execute(this._conf,"get",s({url:this._urls.getBlogs,params:{}}),g,void 0,{...r},{responseHeaders:i});let w=m;i&&(w=m[0]);const{error:f}=c.BlogGetResponse().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));u({level:"WARN",message:`Response Validation Warnings for application > Content > getBlogs \n ${f}`})}return m}getBlogsPaginator({pageSize:e}={}){const t=new i;return t.setCallback((async()=>{t.nextId;const r=t.pageNo,a=await this.getBlogs({pageNo:r,pageSize:e});return t.setPaginator({hasNext:!!a.page.has_next,nextId:a.page.next_id}),a}).bind(this)),t}async getCustomFields({resource:e,resourceId:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:i}={responseHeaders:!1}){const{error:d}=l.getCustomFields().validate({resource:e,resourceId:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=l.getCustomFields().validate({resource:e,resourceId:t},{abortEarly:!1,allowUnknown:!1});p&&u({level:"WARN",message:`Parameter Validation warrnings for application > Content > getCustomFields \n ${p}`});const g=await a.execute(this._conf,"get",s({url:this._urls.getCustomFields,params:{resource:e,resourceId:t}}),{},void 0,{...r},{responseHeaders:i});let m=g;i&&(m=g[0]);const{error:w}=c.CustomFieldsResponseByResourceIdSchema().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));u({level:"WARN",message:`Response Validation Warnings for application > Content > getCustomFields \n ${w}`})}return g}async getCustomObject({metaobjectId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:i}=l.getCustomObject().validate({metaobjectId:e},{abortEarly:!1,allowUnknown:!0});if(i)return Promise.reject(new n(i));const{error:d}=l.getCustomObject().validate({metaobjectId:e},{abortEarly:!1,allowUnknown:!1});d&&u({level:"WARN",message:`Parameter Validation warrnings for application > Content > getCustomObject \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getCustomObject,params:{metaobjectId:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=c.CustomObjectByIdSchema().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));u({level:"WARN",message:`Response Validation Warnings for application > Content > getCustomObject \n ${m}`})}return p}async getDataLoaders({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=l.getDataLoaders().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:i}=l.getDataLoaders().validate({},{abortEarly:!1,allowUnknown:!1});i&&u({level:"WARN",message:`Parameter Validation warrnings for application > Content > getDataLoaders \n ${i}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getDataLoaders,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=c.DataLoadersSchema().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));u({level:"WARN",message:`Response Validation Warnings for application > Content > getDataLoaders \n ${g}`})}return d}async getFaqBySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:i}=l.getFaqBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(i)return Promise.reject(new n(i));const{error:d}=l.getFaqBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!1});d&&u({level:"WARN",message:`Parameter Validation warrnings for application > Content > getFaqBySlug \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getFaqBySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=c.FaqSchema().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));u({level:"WARN",message:`Response Validation Warnings for application > Content > getFaqBySlug \n ${m}`})}return p}async getFaqCategories({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=l.getFaqCategories().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:i}=l.getFaqCategories().validate({},{abortEarly:!1,allowUnknown:!1});i&&u({level:"WARN",message:`Parameter Validation warrnings for application > Content > getFaqCategories \n ${i}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getFaqCategories,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=c.GetFaqCategoriesSchema().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));u({level:"WARN",message:`Response Validation Warnings for application > Content > getFaqCategories \n ${g}`})}return d}async getFaqCategoryBySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:i}=l.getFaqCategoryBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(i)return Promise.reject(new n(i));const{error:d}=l.getFaqCategoryBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!1});d&&u({level:"WARN",message:`Parameter Validation warrnings for application > Content > getFaqCategoryBySlug \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getFaqCategoryBySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=c.GetFaqCategoryBySlugSchema().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));u({level:"WARN",message:`Response Validation Warnings for application > Content > getFaqCategoryBySlug \n ${m}`})}return p}async getFaqs({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=l.getFaqs().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:i}=l.getFaqs().validate({},{abortEarly:!1,allowUnknown:!1});i&&u({level:"WARN",message:`Parameter Validation warrnings for application > Content > getFaqs \n ${i}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getFaqs,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=c.FaqResponseSchema().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));u({level:"WARN",message:`Response Validation Warnings for application > Content > getFaqs \n ${g}`})}return d}async getFaqsByCategorySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:i}=l.getFaqsByCategorySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(i)return Promise.reject(new n(i));const{error:d}=l.getFaqsByCategorySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!1});d&&u({level:"WARN",message:`Parameter Validation warrnings for application > Content > getFaqsByCategorySlug \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getFaqsByCategorySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=c.GetFaqSchema().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));u({level:"WARN",message:`Response Validation Warnings for application > Content > getFaqsByCategorySlug \n ${m}`})}return p}async getLandingPage({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=l.getLandingPage().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:i}=l.getLandingPage().validate({},{abortEarly:!1,allowUnknown:!1});i&&u({level:"WARN",message:`Parameter Validation warrnings for application > Content > getLandingPage \n ${i}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getLandingPage,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=c.LandingPageSchema().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));u({level:"WARN",message:`Response Validation Warnings for application > Content > getLandingPage \n ${g}`})}return d}async getLegalInformation({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=l.getLegalInformation().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:i}=l.getLegalInformation().validate({},{abortEarly:!1,allowUnknown:!1});i&&u({level:"WARN",message:`Parameter Validation warrnings for application > Content > getLegalInformation \n ${i}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getLegalInformation,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=c.ApplicationLegal().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));u({level:"WARN",message:`Response Validation Warnings for application > Content > getLegalInformation \n ${g}`})}return d}async getNavigations({pageNo:e,pageSize:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:i}={responseHeaders:!1}){const{error:d}=l.getNavigations().validate({pageNo:e,pageSize:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=l.getNavigations().validate({pageNo:e,pageSize:t},{abortEarly:!1,allowUnknown:!1});p&&u({level:"WARN",message:`Parameter Validation warrnings for application > Content > getNavigations \n ${p}`});const g={};g.page_no=e,g.page_size=t;const m=await a.execute(this._conf,"get",s({url:this._urls.getNavigations,params:{}}),g,void 0,{...r},{responseHeaders:i});let w=m;i&&(w=m[0]);const{error:f}=c.NavigationGetResponse().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));u({level:"WARN",message:`Response Validation Warnings for application > Content > getNavigations \n ${f}`})}return m}getNavigationsPaginator({pageSize:e}={}){const t=new i;return t.setCallback((async()=>{t.nextId;const r=t.pageNo,a=await this.getNavigations({pageNo:r,pageSize:e});return t.setPaginator({hasNext:!!a.page.has_next,nextId:a.page.next_id}),a}).bind(this)),t}async getPage({slug:e,rootId:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:i}={responseHeaders:!1}){const{error:d}=l.getPage().validate({slug:e,rootId:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=l.getPage().validate({slug:e,rootId:t},{abortEarly:!1,allowUnknown:!1});p&&u({level:"WARN",message:`Parameter Validation warrnings for application > Content > getPage \n ${p}`});const g={};g.root_id=t;const m=await a.execute(this._conf,"get",s({url:this._urls.getPage,params:{slug:e}}),g,void 0,{...r},{responseHeaders:i});let w=m;i&&(w=m[0]);const{error:f}=c.PageSchema().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));u({level:"WARN",message:`Response Validation Warnings for application > Content > getPage \n ${f}`})}return m}async getPages({pageNo:e,pageSize:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:i}={responseHeaders:!1}){const{error:d}=l.getPages().validate({pageNo:e,pageSize:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=l.getPages().validate({pageNo:e,pageSize:t},{abortEarly:!1,allowUnknown:!1});p&&u({level:"WARN",message:`Parameter Validation warrnings for application > Content > getPages \n ${p}`});const g={};g.page_no=e,g.page_size=t;const m=await a.execute(this._conf,"get",s({url:this._urls.getPages,params:{}}),g,void 0,{...r},{responseHeaders:i});let w=m;i&&(w=m[0]);const{error:f}=c.PageGetResponse().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));u({level:"WARN",message:`Response Validation Warnings for application > Content > getPages \n ${f}`})}return m}getPagesPaginator({pageSize:e}={}){const t=new i;return t.setCallback((async()=>{t.nextId;const r=t.pageNo,a=await this.getPages({pageNo:r,pageSize:e});return t.setPaginator({hasNext:!!a.page.has_next,nextId:a.page.next_id}),a}).bind(this)),t}async getSEOConfiguration({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=l.getSEOConfiguration().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:i}=l.getSEOConfiguration().validate({},{abortEarly:!1,allowUnknown:!1});i&&u({level:"WARN",message:`Parameter Validation warrnings for application > Content > getSEOConfiguration \n ${i}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getSEOConfiguration,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=c.SeoComponent().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));u({level:"WARN",message:`Response Validation Warnings for application > Content > getSEOConfiguration \n ${g}`})}return d}async getSEOMarkupSchemas({pageType:e,active:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:i}={responseHeaders:!1}){const{error:d}=l.getSEOMarkupSchemas().validate({pageType:e,active:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=l.getSEOMarkupSchemas().validate({pageType:e,active:t},{abortEarly:!1,allowUnknown:!1});p&&u({level:"WARN",message:`Parameter Validation warrnings for application > Content > getSEOMarkupSchemas \n ${p}`});const g={};g.page_type=e,g.active=t;const m=await a.execute(this._conf,"get",s({url:this._urls.getSEOMarkupSchemas,params:{}}),g,void 0,{...r},{responseHeaders:i});let w=m;i&&(w=m[0]);const{error:f}=c.SeoSchemaComponent().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));u({level:"WARN",message:`Response Validation Warnings for application > Content > getSEOMarkupSchemas \n ${f}`})}return m}async getSlideshow({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:i}=l.getSlideshow().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(i)return Promise.reject(new n(i));const{error:d}=l.getSlideshow().validate({slug:e},{abortEarly:!1,allowUnknown:!1});d&&u({level:"WARN",message:`Parameter Validation warrnings for application > Content > getSlideshow \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getSlideshow,params:{slug:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=c.SlideshowSchema().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));u({level:"WARN",message:`Response Validation Warnings for application > Content > getSlideshow \n ${m}`})}return p}async getSlideshows({pageNo:e,pageSize:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:i}={responseHeaders:!1}){const{error:d}=l.getSlideshows().validate({pageNo:e,pageSize:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=l.getSlideshows().validate({pageNo:e,pageSize:t},{abortEarly:!1,allowUnknown:!1});p&&u({level:"WARN",message:`Parameter Validation warrnings for application > Content > getSlideshows \n ${p}`});const g={};g.page_no=e,g.page_size=t;const m=await a.execute(this._conf,"get",s({url:this._urls.getSlideshows,params:{}}),g,void 0,{...r},{responseHeaders:i});let w=m;i&&(w=m[0]);const{error:f}=c.SlideshowGetResponse().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));u({level:"WARN",message:`Response Validation Warnings for application > Content > getSlideshows \n ${f}`})}return m}getSlideshowsPaginator({pageSize:e}={}){const t=new i;return t.setCallback((async()=>{t.nextId;const r=t.pageNo,a=await this.getSlideshows({pageNo:r,pageSize:e});return t.setPaginator({hasNext:!!a.page.has_next,nextId:a.page.next_id}),a}).bind(this)),t}async getSupportInformation({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=l.getSupportInformation().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:i}=l.getSupportInformation().validate({},{abortEarly:!1,allowUnknown:!1});i&&u({level:"WARN",message:`Parameter Validation warrnings for application > Content > getSupportInformation \n ${i}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getSupportInformation,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=c.Support().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));u({level:"WARN",message:`Response Validation Warnings for application > Content > getSupportInformation \n ${g}`})}return d}async getTags({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=l.getTags().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:i}=l.getTags().validate({},{abortEarly:!1,allowUnknown:!1});i&&u({level:"WARN",message:`Parameter Validation warrnings for application > Content > getTags \n ${i}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getTags,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=c.TagsSchema().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));u({level:"WARN",message:`Response Validation Warnings for application > Content > getTags \n ${g}`})}return d}}},1336:(e,t,r)=>{const a=r(9955);class n{static ApplicationLegal(){return a.object({application:a.string().allow(""),tnc:a.string().allow(""),policy:a.string().allow(""),shipping:a.string().allow(""),returns:a.string().allow(""),faq:a.array().items(n.ApplicationLegalFAQ()),_id:a.string().allow(""),updated_at:a.string().allow(""),created_at:a.string().allow("")})}static ApplicationLegalFAQ(){return a.object({question:a.string().allow(""),answer:a.string().allow("")})}static SeoComponent(){return a.object({seo:n.SeoSchema()})}static SeoSchema(){return a.object({app:a.string().allow(""),_id:a.string().allow(""),robots_txt:a.string().allow(""),sitemap_enabled:a.boolean(),additonal_sitemap:a.string().allow(""),cannonical_enabled:a.boolean(),custom_meta_tags:a.array().items(n.CustomMetaTag()),details:n.Detail(),created_at:a.string().allow(""),updated_at:a.string().allow("")})}static CustomMetaTag(){return a.object({name:a.string().allow(""),content:a.string().allow(""),_id:a.string().allow("")})}static Detail(){return a.object({title:a.string().allow(""),description:a.string().allow(""),image_url:a.string().allow("")})}static SeoSchemaComponent(){return a.object({items:a.array().items(n.SEOSchemaMarkupTemplate())})}static SEOSchemaMarkupTemplate(){return a.object({id:a.string().allow(""),title:a.string().allow(""),page_type:a.string().allow(""),description:a.string().allow(""),schema:a.string().allow(""),active:a.boolean(),created_at:a.string().allow(""),updated_at:a.string().allow(""),application:a.string().allow("")})}static ScheduleSchema(){return a.object({cron:a.string().allow(""),start:a.string().allow(""),end:a.string().allow(""),duration:a.number(),next_schedule:a.array().items(n.NextSchedule())})}static NextSchedule(){return a.object({start:a.string().allow(""),end:a.string().allow("")})}static AnnouncementSchema(){return a.object({announcement:a.string().allow(""),schedule:n.ScheduleStartSchema()})}static ScheduleStartSchema(){return a.object({start:a.string().allow(""),end:a.string().allow("")})}static BlogGetResponse(){return a.object({items:a.array().items(n.BlogSchema()),page:n.Page()})}static ResourceContent(){return a.object({type:a.string().allow(""),value:a.string().allow("")})}static Asset(){return a.object({aspect_ratio:a.string().allow(""),id:a.string().allow(""),secure_url:a.string().allow("")})}static Author(){return a.object({designation:a.string().allow(""),id:a.string().allow(""),name:a.string().allow("")})}static BlogSchema(){return a.object({_id:a.string().allow(""),_custom_json:a.any(),application:a.string().allow(""),archived:a.boolean(),author:n.Author(),content:a.array().items(n.ResourceContent()),feature_image:n.Asset(),published:a.boolean(),reading_time:a.string().allow(""),slug:a.string().allow(""),tags:a.array().items(a.string().allow("")),seo:n.SEO(),_schedule:n.CronSchedule(),title:a.string().allow(""),date_meta:n.DateMeta()})}static SEO(){return a.object({description:a.string().allow(""),image:n.SEOImage(),title:a.string().allow(""),meta_tags:a.array().items(n.SEOMetaItem()),sitemap:n.SEOSitemap(),breadcrumb:a.array().items(n.SEObreadcrumb()),canonical_url:a.string().allow("")})}static SEOImage(){return a.object({url:a.string().allow("")})}static SEOMetaItem(){return a.object({title:a.string().allow(""),items:a.array().items(n.SEOMetaItems())})}static SEOMetaItems(){return a.object({key:a.string().allow(""),value:a.string().allow("")})}static SEOSitemap(){return a.object({priority:a.number(),frequency:a.string().allow("")})}static SEObreadcrumb(){return a.object({url:a.string().allow(""),action:n.Action()})}static DateMeta(){return a.object({created_on:a.string().allow(""),modified_on:a.string().allow("")})}static LocaleLanguage(){return a.object({hi:n.Language(),ar:n.Language(),en_us:n.Language()})}static Language(){return a.object({display:a.string().allow("")})}static Action(){return a.object({page:n.ActionPage(),popup:n.ActionPage(),type:a.string().allow("")})}static ActionPage(){return a.object({params:a.object().pattern(/\S/,a.array().items(a.string().allow(""))),query:a.object().pattern(/\S/,a.array().items(a.string().allow(""))),url:a.string().allow(""),type:n.PageType().required()})}static NavigationReference(){return a.object({acl:a.array().items(a.string().allow("")),tags:a.array().items(a.string().allow("")),_locale_language:n.LocaleLanguage(),image:a.string().allow(""),type:a.string().allow(""),action:n.Action(),active:a.boolean(),display:a.string().allow(""),sort_order:a.number(),sub_navigation:a.array().items(a.link("#NavigationReference"))}).id("NavigationReference")}static ConfigurationSchema(){return a.object({sleep_time:a.number(),start_on_launch:a.boolean(),duration:a.number(),slide_direction:a.string().allow("")})}static SlideshowMedia(){return a.object({type:a.string().allow(""),url:a.string().allow(""),bg_color:a.string().allow(""),duration:a.number(),auto_decide_duration:a.boolean(),action:n.Action()})}static AnnouncementsResponseSchema(){return a.object({announcements:a.object().pattern(/\S/,a.array().items(n.AnnouncementSchema())),refresh_rate:a.number(),refresh_pages:a.array().items(a.string().allow(""))})}static FaqResponseSchema(){return a.object({faqs:a.array().items(n.FaqSchema())})}static DataLoaderSchema(){return a.object({name:a.string().allow(""),service:a.string().allow(""),operation_id:a.string().allow(""),type:a.string().allow(""),url:a.string().allow(""),content:a.string().allow(""),__source:n.DataLoaderSourceSchema(),_id:a.string().allow("")})}static DataLoaderSourceSchema(){return a.object({type:a.string().allow(""),id:a.string().allow("")})}static DataLoadersSchema(){return a.object({items:a.array().items(n.DataLoaderSchema())})}static ContentAPIError(){return a.object({message:a.string().allow(""),status:a.number(),code:a.string().allow(""),exception:a.string().allow(""),info:a.string().allow(""),request_id:a.string().allow(""),stack_trace:a.string().allow(""),meta:a.any()})}static CommonError(){return a.object({message:a.string().allow("")})}static CategorySchema(){return a.object({index:a.number(),title:a.string().allow(""),description:a.string().allow(""),children:a.array().items(a.string().allow("")),_id:a.string().allow(""),slug:a.string().allow(""),application:a.string().allow(""),icon_url:a.string().allow(""),_custom_json:a.any()})}static ChildrenSchema(){return a.object({question:a.string().allow(""),answer:a.string().allow(""),slug:a.string().allow(""),application:a.string().allow(""),_id:a.string().allow("")})}static FAQCategorySchema(){return a.object({index:a.number(),title:a.string().allow(""),description:a.string().allow(""),children:a.array().items(n.ChildrenSchema()),_id:a.string().allow(""),slug:a.string().allow(""),application:a.string().allow(""),icon_url:a.string().allow(""),_custom_json:a.any()})}static FaqSchema(){return a.object({slug:a.string().allow(""),application:a.string().allow(""),_id:a.string().allow(""),question:a.string().allow(""),answer:a.string().allow(""),tags:a.array().items(a.string().allow(""))})}static GetFaqSchema(){return a.object({faqs:a.array().items(n.FaqSchema())})}static GetFaqCategoriesSchema(){return a.object({categories:a.array().items(n.CategorySchema())})}static GetFaqCategoryBySlugSchema(){return a.object({category:n.FAQCategorySchema()})}static Page(){return a.object({item_total:a.number(),next_id:a.string().allow(""),has_previous:a.boolean(),has_next:a.boolean(),current:a.number(),type:a.string().allow("").required(),size:a.number()})}static LandingPageSchema(){return a.object({slug:a.string().allow(""),action:n.Action(),platform:a.array().items(a.string().allow("")),created_by:n.CreatedBySchema(),date_meta:n.DateMeta(),_id:a.string().allow(""),application:a.string().allow(""),archived:a.boolean(),_custom_json:a.any()})}static NavigationGetResponse(){return a.object({items:a.array().items(n.NavigationSchema()),page:n.Page()})}static Orientation(){return a.object({portrait:a.array().items(a.string().allow("")),landscape:a.array().items(a.string().allow(""))})}static NavigationSchema(){return a.object({_id:a.string().allow(""),application:a.string().allow(""),archived:a.boolean(),name:a.string().allow(""),slug:a.string().allow(""),platform:a.array().items(a.string().allow("")),created_by:n.CreatedBySchema(),date_meta:n.DateMeta(),orientation:n.Orientation(),version:a.number(),navigation:a.array().items(n.NavigationReference())})}static PageGetResponse(){return a.object({items:a.array().items(n.PageSchema()),page:n.Page()})}static PageSchema(){return a.object({_id:a.string().allow(""),application:a.string().allow(""),component_ids:a.array().items(a.string().allow("")),content:a.array().items(a.any()),content_path:a.string().allow(""),created_by:n.CreatedBySchema(),date_meta:n.DateMeta(),description:a.string().allow(""),feature_image:n.Asset(),page_meta:a.array().items(a.any()),_schedule:n.ScheduleSchema(),_custom_json:a.any(),orientation:a.string().allow(""),platform:a.string().allow(""),published:a.boolean(),slug:a.string().allow(""),tags:a.array().items(a.string().allow("")),title:a.string().allow(""),type:a.string().allow(""),seo:n.SEO(),visibility:a.any(),archived:a.boolean()})}static CreatedBySchema(){return a.object({id:a.string().allow("")})}static CronSchedule(){return a.object({cron:a.string().allow(""),start:a.string().allow(""),end:a.string().allow(""),duration:a.number()})}static SlideshowGetResponse(){return a.object({items:a.array().items(n.SlideshowSchema()),page:n.Page()})}static SlideshowSchema(){return a.object({_id:a.string().allow(""),slug:a.string().allow(""),date_meta:n.DateMeta(),application:a.string().allow(""),platform:a.string().allow(""),configuration:n.ConfigurationSchema(),media:a.array().items(n.SlideshowMedia()),active:a.boolean(),archived:a.boolean(),_custom_json:a.any()})}static Support(){return a.object({created:a.boolean(),_id:a.string().allow(""),config_type:a.string().allow(""),application:a.string().allow(""),created_at:a.string().allow(""),updated_at:a.string().allow(""),contact:n.ContactSchema()})}static PhoneProperties(){return a.object({key:a.string().allow(""),code:a.string().allow(""),number:a.string().allow("")})}static PhoneSchema(){return a.object({active:a.boolean(),phone:a.array().items(n.PhoneProperties())})}static EmailProperties(){return a.object({key:a.string().allow(""),value:a.string().allow("")})}static EmailSchema(){return a.object({active:a.boolean(),email:a.array().items(n.EmailProperties())})}static ContactSchema(){return a.object({phone:n.PhoneSchema(),email:n.EmailSchema()})}static TagsSchema(){return a.object({application:a.string().allow(""),_id:a.string().allow(""),tags:a.array().items(n.TagSchema())})}static TagSchema(){return a.object({name:a.string().allow(""),url:a.string().allow(""),type:a.string().allow(""),sub_type:a.string().allow(""),_id:a.string().allow(""),position:a.string().allow(""),attributes:a.any(),content:a.string().allow(""),pages:a.array().items(a.any()),__source:n.TagSourceSchema()})}static TagSourceSchema(){return a.object({type:a.string().allow(""),id:a.string().allow("")})}static CustomObjectFieldValue(){return a.object({value:a.any()})}static CustomObjectListItemDefinationSchema(){return a.object({_id:a.string().allow(""),name:a.string().allow(""),type:a.string().allow("")})}static CustomObjectFieldSchema(){return a.object({_id:a.string().allow(""),key:a.string().allow(""),value:a.array().items(n.CustomObjectFieldValue()),type:a.string().allow(""),definition_id:a.string().allow("")})}static CustomObjectByIdSchema(){return a.object({_id:a.string().allow(""),status:a.string().allow(""),display_name:a.string().allow(""),definition:n.CustomObjectListItemDefinationSchema(),references:a.array().items(a.any()),fields:a.array().items(n.CustomObjectFieldSchema())})}static CustomFieldValue(){return a.object({value:a.any()})}static CustomFieldSchema(){return a.object({_id:a.string().allow(""),namespace:a.string().allow(""),key:a.string().allow(""),resource:a.string().allow(""),creator:a.string().allow(""),value:a.array().items(n.CustomFieldValue()),resource_id:a.string().allow(""),type:a.string().allow(""),multi_value:a.boolean(),company_id:a.string().allow(""),application_id:a.string().allow(""),definition_id:a.string().allow(""),has_invalid_values:a.boolean(),invalid_value_errors:a.array().items(a.any()),created_by:a.string().allow(""),is_deleted:a.boolean(),created_at:a.string().allow(""),updated_at:a.string().allow("")})}static CustomFieldsResponseByResourceIdSchema(){return a.object({items:a.array().items(n.CustomFieldSchema())})}static PageType(){return a.string().valid("about-us","addresses","blog","brands","cards","cart","categories","brand","category","collection","collections","contact-us","external","faq","freshchat","home","notification-settings","orders","page","policy","product","product-request","products","profile","profile-order-shipment","profile-basic","profile-company","profile-emails","profile-phones","rate-us","refer-earn","settings","shared-cart","tnc","track-order","wishlist","sections","form","cart-delivery","cart-payment","cart-review","login","register","shipping-policy","return-policy","order-status")}}e.exports=n},4188:(e,t,r)=>{const a=r(9955);r(1336),e.exports=class{static getAnnouncements(){return a.object({})}static getBlog(){return a.object({slug:a.string().allow("").required(),rootId:a.string().allow("")}).required()}static getBlogs(){return a.object({pageNo:a.number(),pageSize:a.number()})}static getCustomFields(){return a.object({resource:a.string().allow("").required(),resourceId:a.string().allow("").required()}).required()}static getCustomObject(){return a.object({metaobjectId:a.string().allow("").required()}).required()}static getDataLoaders(){return a.object({})}static getFaqBySlug(){return a.object({slug:a.string().allow("").required()}).required()}static getFaqCategories(){return a.object({})}static getFaqCategoryBySlug(){return a.object({slug:a.string().allow("").required()}).required()}static getFaqs(){return a.object({})}static getFaqsByCategorySlug(){return a.object({slug:a.string().allow("").required()}).required()}static getLandingPage(){return a.object({})}static getLegalInformation(){return a.object({})}static getNavigations(){return a.object({pageNo:a.number(),pageSize:a.number()})}static getPage(){return a.object({slug:a.string().allow("").required(),rootId:a.string().allow("")}).required()}static getPages(){return a.object({pageNo:a.number(),pageSize:a.number()})}static getSEOConfiguration(){return a.object({})}static getSEOMarkupSchemas(){return a.object({pageType:a.string().allow(""),active:a.boolean()})}static getSlideshow(){return a.object({slug:a.string().allow("").required()}).required()}static getSlideshows(){return a.object({pageNo:a.number(),pageSize:a.number()})}static getSupportInformation(){return a.object({})}static getTags(){return a.object({})}}},6904:(e,t,r)=>{const a=r(8336),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(9916),s=r(4776),i=(r(3768),r(472)),l=r(5248),{Logger:c}=r(1544),u=(r(9955),r(9899));class d{constructor(e){this._conf=e,this._relativeUrls={completeUpload:"/service/application/assets/v1.0/namespaces/{namespace}/upload/complete",signUrls:"/service/application/assets/v1.0/sign-urls",startUpload:"/service/application/assets/v1.0/namespaces/{namespace}/upload/start"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async completeUpload({namespace:e,body:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.completeUpload().validate({namespace:e,body:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.completeUpload().validate({namespace:e,body:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > FileStorage > completeUpload \n ${p}`});const g=await a.execute(this._conf,"post",s({url:this._urls.completeUpload,params:{namespace:e}}),{},t,{...r},{responseHeaders:u});let m=g;u&&(m=g[0]);const{error:w}=l.CompleteResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > FileStorage > completeUpload \n ${w}`})}return g}async signUrls({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.signUrls().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.signUrls().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > FileStorage > signUrls \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.signUrls,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.SignUrlResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > FileStorage > signUrls \n ${m}`})}return p}async startUpload({namespace:e,body:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.startUpload().validate({namespace:e,body:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.startUpload().validate({namespace:e,body:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > FileStorage > startUpload \n ${p}`});const g=await a.execute(this._conf,"post",s({url:this._urls.startUpload,params:{namespace:e}}),{},t,{...r},{responseHeaders:u});let m=g;u&&(m=g[0]);const{error:w}=l.StartResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > FileStorage > startUpload \n ${w}`})}return g}}d.prototype.upload=function({data:e,file_name:t,content_type:r,namespace:a,size:n,tags:o}={}){return new Promise((async(s,i)=>{try{const l=await this.startUpload({namespace:a,body:{file_name:t,content_type:r,size:n,tags:o}});l.upload&&l.upload.url?await u.put(l.upload.url,e,{withCredentials:!1,headers:{"Content-Type":r}}):i({message:"Failed to upload file"}),delete l.tags,s(await this.completeUpload({namespace:a,body:l}))}catch(e){i(e)}}))},e.exports=d},5248:(e,t,r)=>{const a=r(9955);class n{static CDN(){return a.object({url:a.string().allow("").required(),absolute_url:a.string().allow("").required(),relative_url:a.string().allow("").required()})}static Upload(){return a.object({expiry:a.number().required(),url:a.string().allow("").required()})}static StartResponse(){return a.object({file_name:a.string().allow("").required(),file_path:a.string().allow("").required(),content_type:a.string().allow("").required(),method:a.string().allow(""),namespace:a.string().allow("").required(),operation:a.string().allow("").required(),size:a.number().required(),upload:n.Upload().required(),cdn:n.CDN().required(),tags:a.array().items(a.string().allow(""))})}static Params(){return a.object({subpath:a.string().allow("")})}static StartRequest(){return a.object({file_name:a.string().allow("").required(),content_type:a.string().allow("").required(),size:a.number().required(),tags:a.array().items(a.string().allow("")),params:n.Params()})}static CreatedBy(){return a.object({username:a.string().allow("")})}static CompleteResponse(){return a.object({_id:a.string().allow("").required(),file_name:a.string().allow("").required(),file_path:a.string().allow("").required(),content_type:a.string().allow("").required(),namespace:a.string().allow("").required(),operation:a.string().allow("").required(),size:a.number().required(),upload:n.Upload().required(),cdn:n.CDN().required(),success:a.boolean().required(),tags:a.array().items(a.string().allow("")),created_on:a.string().allow("").required(),modified_on:a.string().allow("").required(),created_by:n.CreatedBy()})}static Urls(){return a.object({url:a.string().allow("").required(),signed_url:a.string().allow("").required(),expiry:a.number().required()})}static SignUrlResponse(){return a.object({urls:a.array().items(n.Urls()).required()})}static SignUrlRequest(){return a.object({expiry:a.number().required(),urls:a.array().items(a.string().allow("")).required()})}}e.exports=n},472:(e,t,r)=>{const a=r(9955),n=r(5248);e.exports=class{static completeUpload(){return a.object({namespace:a.string().allow("").required(),body:n.StartResponse().required()}).required()}static signUrls(){return a.object({body:n.SignUrlRequest().required()}).required()}static startUpload(){return a.object({namespace:a.string().allow("").required(),body:n.StartRequest().required()}).required()}}},3580:(e,t,r)=>{const a=r(8336),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(9916),s=r(4776),i=(r(3768),r(405)),l=r(5960),{Logger:c}=r(1544);r(9955),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={createHistory:"/service/application/lead/v1.0/ticket/{id}/history",createTicket:"/service/application/lead/v1.0/ticket/",getCustomForm:"/service/application/lead/v1.0/form/{slug}",getParticipantsInsideVideoRoom:"/service/application/lead/v1.0/video/room/{unique_name}/participants",getTicket:"/service/application/lead/v1.0/ticket/{id}",getTokenForVideoRoom:"/service/application/lead/v1.0/video/room/{unique_name}/token",submitCustomForm:"/service/application/lead/v1.0/form/{slug}/submit"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async createHistory({id:e,body:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.createHistory().validate({id:e,body:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.createHistory().validate({id:e,body:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > Lead > createHistory \n ${p}`});const g=await a.execute(this._conf,"post",s({url:this._urls.createHistory,params:{id:e}}),{},t,{...r},{responseHeaders:u});let m=g;u&&(m=g[0]);const{error:w}=l.TicketHistory().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > Lead > createHistory \n ${w}`})}return g}async createTicket({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.createTicket().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.createTicket().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Lead > createTicket \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.createTicket,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.Ticket().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Lead > createTicket \n ${m}`})}return p}async getCustomForm({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getCustomForm().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getCustomForm().validate({slug:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Lead > getCustomForm \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getCustomForm,params:{slug:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.CustomForm().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Lead > getCustomForm \n ${m}`})}return p}async getParticipantsInsideVideoRoom({uniqueName:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getParticipantsInsideVideoRoom().validate({uniqueName:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getParticipantsInsideVideoRoom().validate({uniqueName:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Lead > getParticipantsInsideVideoRoom \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getParticipantsInsideVideoRoom,params:{uniqueName:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.GetParticipantsInsideVideoRoomResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Lead > getParticipantsInsideVideoRoom \n ${m}`})}return p}async getTicket({id:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getTicket().validate({id:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getTicket().validate({id:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Lead > getTicket \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getTicket,params:{id:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.Ticket().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Lead > getTicket \n ${m}`})}return p}async getTokenForVideoRoom({uniqueName:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getTokenForVideoRoom().validate({uniqueName:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getTokenForVideoRoom().validate({uniqueName:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Lead > getTokenForVideoRoom \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getTokenForVideoRoom,params:{uniqueName:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.GetTokenForVideoRoomResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Lead > getTokenForVideoRoom \n ${m}`})}return p}async submitCustomForm({slug:e,body:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.submitCustomForm().validate({slug:e,body:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.submitCustomForm().validate({slug:e,body:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > Lead > submitCustomForm \n ${p}`});const g=await a.execute(this._conf,"post",s({url:this._urls.submitCustomForm,params:{slug:e}}),{},t,{...r},{responseHeaders:u});let m=g;u&&(m=g[0]);const{error:w}=l.SubmitCustomFormResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > Lead > submitCustomForm \n ${w}`})}return g}}},5960:(e,t,r)=>{const a=r(9955);class n{static TicketHistoryPayload(){return a.object({value:a.any().required(),type:n.HistoryTypeEnum().required()})}static CustomFormSubmissionPayload(){return a.object({response:a.array().items(a.any()).required(),attachments:a.array().items(n.TicketAsset())})}static GetTokenForVideoRoomResponse(){return a.object({access_token:a.string().allow("").required()})}static GetParticipantsInsideVideoRoomResponse(){return a.object({participants:a.array().items(n.Participant()).required()})}static Participant(){return a.object({user:n.UserSchema(),identity:a.string().allow(""),status:a.string().allow("")})}static UserSchema(){return a.object({application_id:a.string().allow(""),user_id:a.string().allow(""),first_name:a.string().allow(""),meta:a.any(),last_name:a.string().allow(""),phone_numbers:a.array().items(n.PhoneNumber()),emails:a.array().items(n.Email()),gender:a.string().allow("").allow(null),dob:a.string().allow(""),active:a.boolean(),profile_pic_url:a.string().allow(""),username:a.string().allow(""),account_type:a.string().allow(""),_id:a.string().allow(""),created_at:a.string().allow(""),updated_at:a.string().allow("")})}static PhoneNumber(){return a.object({active:a.boolean(),primary:a.boolean(),verified:a.boolean(),phone:a.string().allow(""),country_code:a.number()})}static Email(){return a.object({primary:a.boolean(),verified:a.boolean(),email:a.string().allow(""),active:a.boolean()})}static Debug(){return a.object({source:a.string().allow(""),platform:a.string().allow("")})}static SubmitCustomFormResponse(){return a.object({message:a.string().allow("").required(),ticket:n.Ticket()})}static TicketContext(){return a.object({application_id:a.string().allow(""),company_id:a.string().allow("").required()})}static CreatedOn(){return a.object({user_agent:a.string().allow("").required()})}static TicketAsset(){return a.object({display:a.string().allow(""),value:a.string().allow("").required(),type:n.TicketAssetTypeEnum().required()})}static TicketContent(){return a.object({title:a.string().allow("").required(),description:a.string().allow(""),attachments:a.array().items(n.TicketAsset())})}static AddTicketPayload(){return a.object({created_by:a.any(),status:a.string().allow(""),priority:n.PriorityEnum(),category:a.string().allow("").required(),content:n.TicketContent().required(),_custom_json:a.any(),subscribers:a.array().items(a.string().allow(""))})}static Priority(){return a.object({key:n.PriorityEnum().required(),display:a.string().allow("").required(),color:a.string().allow("").required()})}static Status(){return a.object({key:a.string().allow("").required(),display:a.string().allow("").required(),color:a.string().allow("").required()})}static SubmitButton(){return a.object({title:a.string().allow("").required(),title_color:a.string().allow("").required(),background_color:a.string().allow("").required()})}static PollForAssignment(){return a.object({duration:a.number().required(),message:a.string().allow("").required(),success_message:a.string().allow("").required(),failure_message:a.string().allow("").required()})}static CustomForm(){return a.object({application_id:a.string().allow("").required(),slug:a.string().allow("").required(),header_image:a.string().allow(""),title:a.string().allow("").required(),description:a.string().allow(""),priority:n.Priority().required(),login_required:a.boolean().required(),should_notify:a.boolean().required(),success_message:a.string().allow(""),submit_button:n.SubmitButton(),inputs:a.array().items(a.any()).required(),created_on:n.CreatedOn(),poll_for_assignment:n.PollForAssignment(),_id:a.string().allow("").required()})}static FeedbackForm(){return a.object({inputs:a.any(),title:a.string().allow(""),timestamps:a.any()})}static TicketCategory(){return a.object({display:a.string().allow("").required(),key:a.string().allow("").required(),sub_categories:a.array().items(a.link("#TicketCategory")),group_id:a.number(),feedback_form:n.FeedbackForm()})}static TicketHistory(){return a.object({type:a.string().allow("").required(),value:a.any().required(),ticket_id:a.string().allow("").required(),created_on:n.CreatedOn(),created_by:a.any(),_id:a.string().allow("").required(),updated_at:a.string().allow(""),created_at:a.string().allow("")})}static Ticket(){return a.object({context:n.TicketContext(),created_on:n.CreatedOn(),response_id:a.string().allow(""),content:n.TicketContent(),category:n.TicketCategory().required(),sub_category:a.string().allow(""),source:n.TicketSourceEnum().required(),status:n.Status().required(),priority:n.Priority().required(),created_by:a.any(),assigned_to:a.any(),tags:a.array().items(a.string().allow("")),_custom_json:a.any(),is_feedback_pending:a.boolean(),integration:a.any(),_id:a.string().allow("").required(),updated_at:a.string().allow(""),created_at:a.string().allow("")})}static PriorityEnum(){return a.string().valid("low","medium","high","urgent")}static HistoryTypeEnum(){return a.string().valid("rating","log","comment","thread")}static TicketAssetTypeEnum(){return a.string().valid("image","video","file","youtube","product","collection","brand","shipment","order")}static TicketSourceEnum(){return a.string().valid("platform_panel","sales_channel")}}e.exports=n},405:(e,t,r)=>{const a=r(9955),n=r(5960);e.exports=class{static createHistory(){return a.object({id:a.string().allow("").required(),body:n.TicketHistoryPayload().required()}).required()}static createTicket(){return a.object({body:n.AddTicketPayload().required()}).required()}static getCustomForm(){return a.object({slug:a.string().allow("").required()}).required()}static getParticipantsInsideVideoRoom(){return a.object({uniqueName:a.string().allow("").required()}).required()}static getTicket(){return a.object({id:a.string().allow("").required()}).required()}static getTokenForVideoRoom(){return a.object({uniqueName:a.string().allow("").required()}).required()}static submitCustomForm(){return a.object({slug:a.string().allow("").required(),body:n.CustomFormSubmissionPayload().required()}).required()}}},1564:(e,t,r)=>{const a=r(8336),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(9916),s=r(4776),i=(r(3768),r(1204)),l=r(3248),{Logger:c}=r(1544);r(9955),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={getAllCountries:"/service/application/logistics/v1.0/country-list",getCountries:"/service/application/logistics/v1.0/countries",getCountry:"/service/application/logistics/v1.0/countries/{country_iso_code}",getLocalities:"/service/application/logistics/v1.0/localities/{locality_type}",getLocality:"/service/application/logistics/v1.0/localities/{locality_type}/{locality_value}",getLocations:"/service/application/logistics/v1.0/locations",getOptimalLocations:"/service/application/logistics/v1.0/reassign_stores",getPincodeZones:"/service/application/logistics/v1.0/pincode/zones",validateAddress:"/service/application/logistics/v1.0/country/{country_iso_code}/address/templates/{template_name}/validate"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async getAllCountries({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getAllCountries().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:u}=i.getAllCountries().validate({},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Logistic > getAllCountries \n ${u}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getAllCountries,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=l.CountryListResponse().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));c({level:"WARN",message:`Response Validation Warnings for application > Logistic > getAllCountries \n ${g}`})}return d}async getCountries({onboarding:e,pageNo:t,pageSize:r,q:u,requestHeaders:d}={requestHeaders:{}},{responseHeaders:p}={responseHeaders:!1}){const{error:g}=i.getCountries().validate({onboarding:e,pageNo:t,pageSize:r,q:u},{abortEarly:!1,allowUnknown:!0});if(g)return Promise.reject(new n(g));const{error:m}=i.getCountries().validate({onboarding:e,pageNo:t,pageSize:r,q:u},{abortEarly:!1,allowUnknown:!1});m&&c({level:"WARN",message:`Parameter Validation warrnings for application > Logistic > getCountries \n ${m}`});const w={};w.onboarding=e,w.page_no=t,w.page_size=r,w.q=u;const f=await a.execute(this._conf,"get",s({url:this._urls.getCountries,params:{}}),w,void 0,{...d},{responseHeaders:p});let y=f;p&&(y=f[0]);const{error:b}=l.GetCountries().validate(y,{abortEarly:!1,allowUnknown:!0});if(b){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(b));c({level:"WARN",message:`Response Validation Warnings for application > Logistic > getCountries \n ${b}`})}return f}async getCountry({countryIsoCode:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getCountry().validate({countryIsoCode:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getCountry().validate({countryIsoCode:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Logistic > getCountry \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getCountry,params:{countryIsoCode:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.GetCountry().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Logistic > getCountry \n ${m}`})}return p}async getLocalities({localityType:e,country:t,state:r,city:u,pageNo:d,pageSize:p,q:g,requestHeaders:m}={requestHeaders:{}},{responseHeaders:w}={responseHeaders:!1}){const{error:f}=i.getLocalities().validate({localityType:e,country:t,state:r,city:u,pageNo:d,pageSize:p,q:g},{abortEarly:!1,allowUnknown:!0});if(f)return Promise.reject(new n(f));const{error:y}=i.getLocalities().validate({localityType:e,country:t,state:r,city:u,pageNo:d,pageSize:p,q:g},{abortEarly:!1,allowUnknown:!1});y&&c({level:"WARN",message:`Parameter Validation warrnings for application > Logistic > getLocalities \n ${y}`});const b={};b.country=t,b.state=r,b.city=u,b.page_no=d,b.page_size=p,b.q=g;const h=await a.execute(this._conf,"get",s({url:this._urls.getLocalities,params:{localityType:e}}),b,void 0,{...m},{responseHeaders:w});let _=h;w&&(_=h[0]);const{error:v}=l.GetLocalities().validate(_,{abortEarly:!1,allowUnknown:!0});if(v){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(v));c({level:"WARN",message:`Response Validation Warnings for application > Logistic > getLocalities \n ${v}`})}return h}async getLocality({localityType:e,localityValue:t,country:r,state:u,city:d,requestHeaders:p}={requestHeaders:{}},{responseHeaders:g}={responseHeaders:!1}){const{error:m}=i.getLocality().validate({localityType:e,localityValue:t,country:r,state:u,city:d},{abortEarly:!1,allowUnknown:!0});if(m)return Promise.reject(new n(m));const{error:w}=i.getLocality().validate({localityType:e,localityValue:t,country:r,state:u,city:d},{abortEarly:!1,allowUnknown:!1});w&&c({level:"WARN",message:`Parameter Validation warrnings for application > Logistic > getLocality \n ${w}`});const f={};f.country=r,f.state=u,f.city=d;const y=await a.execute(this._conf,"get",s({url:this._urls.getLocality,params:{localityType:e,localityValue:t}}),f,void 0,{...p},{responseHeaders:g});let b=y;g&&(b=y[0]);const{error:h}=l.GetLocality().validate(b,{abortEarly:!1,allowUnknown:!0});if(h){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(h));c({level:"WARN",message:`Response Validation Warnings for application > Logistic > getLocality \n ${h}`})}return y}async getLocations({xApplicationId:e,xApplicationData:t,country:r,state:u,city:d,pincode:p,sector:g,pageNo:m,pageSize:w,requestHeaders:f}={requestHeaders:{}},{responseHeaders:y}={responseHeaders:!1}){const{error:b}=i.getLocations().validate({xApplicationId:e,xApplicationData:t,country:r,state:u,city:d,pincode:p,sector:g,pageNo:m,pageSize:w},{abortEarly:!1,allowUnknown:!0});if(b)return Promise.reject(new n(b));const{error:h}=i.getLocations().validate({xApplicationId:e,xApplicationData:t,country:r,state:u,city:d,pincode:p,sector:g,pageNo:m,pageSize:w},{abortEarly:!1,allowUnknown:!1});h&&c({level:"WARN",message:`Parameter Validation warrnings for application > Logistic > getLocations \n ${h}`});const _={};_["x-application-id"]=e,_["x-application-data"]=t,_.country=r,_.state=u,_.city=d,_.pincode=p,_.sector=g,_.page_no=m,_.page_size=w;const v=await a.execute(this._conf,"get",s({url:this._urls.getLocations,params:{}}),_,void 0,{...f},{responseHeaders:y});let R=v;y&&(R=v[0]);const{error:k}=l.GetStoreResponse().validate(R,{abortEarly:!1,allowUnknown:!0});if(k){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(k));c({level:"WARN",message:`Response Validation Warnings for application > Logistic > getLocations \n ${k}`})}return v}async getOptimalLocations({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getOptimalLocations().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getOptimalLocations().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Logistic > getOptimalLocations \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.getOptimalLocations,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.ReAssignStoreResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Logistic > getOptimalLocations \n ${m}`})}return p}async getPincodeZones({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getPincodeZones().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getPincodeZones().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Logistic > getPincodeZones \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.getPincodeZones,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.GetZoneFromPincodeViewResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Logistic > getPincodeZones \n ${m}`})}return p}async validateAddress({countryIsoCode:e,templateName:t,body:r,requestHeaders:u}={requestHeaders:{}},{responseHeaders:d}={responseHeaders:!1}){const{error:p}=i.validateAddress().validate({countryIsoCode:e,templateName:t,body:r},{abortEarly:!1,allowUnknown:!0});if(p)return Promise.reject(new n(p));const{error:g}=i.validateAddress().validate({countryIsoCode:e,templateName:t,body:r},{abortEarly:!1,allowUnknown:!1});g&&c({level:"WARN",message:`Parameter Validation warrnings for application > Logistic > validateAddress \n ${g}`});const m=await a.execute(this._conf,"post",s({url:this._urls.validateAddress,params:{countryIsoCode:e,templateName:t}}),{},r,{...u},{responseHeaders:d});let w=m;d&&(w=m[0]);const{error:f}=l.ValidateAddressRequest().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > Logistic > validateAddress \n ${f}`})}return m}}},3248:(e,t,r)=>{const a=r(9955);class n{static GetStoreResponse(){return a.object({items:a.array().items(n.StoreItemResponse()),page:n.Page()})}static StoreItemResponse(){return a.object({id:a.number(),store_type:a.string().allow(""),fulfillment_type:a.string().allow(""),processing_time:a.number(),tags:a.array().items(a.string().allow("")),company_id:a.number(),latitude:a.number(),longitude:a.number()})}static ValidateAddressRequest(){return a.object({address:a.string().allow(""),address1:a.string().allow(""),address2:a.string().allow(""),area:a.string().allow(""),landmark:a.string().allow(""),pincode:a.string().allow(""),sector:a.string().allow(""),city:a.string().allow(""),state:a.string().allow(""),name:a.string().allow(""),phone:a.string().allow(""),email:a.string().allow("")})}static PincodeParentsResponse(){return a.object({sub_type:a.string().allow(""),display_name:a.string().allow(""),name:a.string().allow(""),uid:a.string().allow("")})}static PincodeMetaResponse(){return a.object({zone:a.string().allow(""),internal_zone_id:a.number()})}static PincodeErrorSchemaResponse(){return a.object({message:a.string().allow("").allow(null),value:a.string().allow("").allow(null),type:a.string().allow("").allow(null)})}static CountryMetaResponse(){return a.object({country_code:a.string().allow(""),isd_code:a.string().allow("")})}static PincodeLatLongData(){return a.object({type:a.string().allow(""),coordinates:a.array().items(a.string().allow(""))})}static PincodeDataResponse(){return a.object({parents:a.array().items(n.PincodeParentsResponse()),meta:n.PincodeMetaResponse(),display_name:a.string().allow(""),error:n.PincodeErrorSchemaResponse().required(),meta_code:n.CountryMetaResponse(),lat_long:n.PincodeLatLongData(),sub_type:a.string().allow(""),name:a.string().allow(""),uid:a.string().allow("")})}static PincodeApiResponse(){return a.object({success:a.boolean().required(),data:a.array().items(n.PincodeDataResponse()),error:n.PincodeErrorSchemaResponse().required()})}static TATCategoryRequest(){return a.object({level:a.string().allow(""),id:a.number()})}static TATArticlesRequest(){return a.object({category:n.TATCategoryRequest(),manufacturing_time_unit:a.string().allow(""),manufacturing_time:a.number()})}static TATLocationDetailsRequest(){return a.object({fulfillment_id:a.number(),from_pincode:a.string().allow(""),articles:a.array().items(n.TATArticlesRequest())})}static TATViewRequest(){return a.object({to_pincode:a.string().allow(""),source:a.string().allow(""),action:a.string().allow(""),identifier:a.string().allow(""),location_details:a.array().items(n.TATLocationDetailsRequest()),journey:a.string().allow("")})}static TATErrorSchemaResponse(){return a.object({message:a.string().allow("").allow(null),value:a.string().allow("").allow(null),type:a.string().allow("").allow(null)})}static TATTimestampResponse(){return a.object({min:a.number(),max:a.number()})}static TATFormattedResponse(){return a.object({min:a.string().allow(""),max:a.string().allow("")})}static TATPromiseResponse(){return a.object({timestamp:n.TATTimestampResponse(),formatted:n.TATFormattedResponse()})}static TATArticlesResponse(){return a.object({manufacturing_time_unit:a.string().allow(""),error:n.TATErrorSchemaResponse(),is_cod_available:a.boolean(),promise:n.TATPromiseResponse(),manufacturing_time:a.number(),category:n.TATCategoryRequest(),_manufacturing_time_seconds:a.number()})}static TATLocationDetailsResponse(){return a.object({fulfillment_id:a.number(),from_pincode:a.string().allow(""),articles:a.array().items(n.TATArticlesResponse())})}static TATViewResponse(){return a.object({to_pincode:a.string().allow(""),request_uuid:a.string().allow(""),payment_mode:a.string().allow(""),success:a.boolean(),error:n.TATErrorSchemaResponse(),is_cod_available:a.boolean(),source:a.string().allow(""),action:a.string().allow(""),stormbreaker_uuid:a.string().allow(""),to_city:a.string().allow(""),identifier:a.string().allow(""),location_details:a.array().items(n.TATLocationDetailsResponse()),journey:a.string().allow("")})}static DP(){return a.object({fm_priority:a.number().required(),lm_priority:a.number().required(),rvp_priority:a.number().required(),payment_mode:a.string().allow("").required(),operations:a.array().items(a.string().allow("")).required(),area_code:a.string().allow("").allow(null),assign_dp_from_sb:a.boolean(),internal_account_id:a.string().allow(""),external_account_id:a.string().allow("").allow(null),transport_mode:a.string().allow("")})}static LogisticsResponse(){return a.object({dp:a.object().pattern(/\S/,n.DP())})}static CountryEntityResponse(){return a.object({meta:n.CountryMetaResponse(),logistics:n.LogisticsResponse(),display_name:a.string().allow(""),type:a.string().allow(""),is_active:a.boolean(),parent_id:a.string().allow(""),sub_type:a.string().allow(""),name:a.string().allow(""),uid:a.string().allow("")})}static CountryListResponse(){return a.object({results:a.array().items(n.CountryEntityResponse())})}static GetZoneFromPincodeViewRequest(){return a.object({pincode:a.string().allow("").required(),country:a.string().allow("").required()})}static GetZoneFromPincodeViewResponse(){return a.object({serviceability_type:a.string().allow("").required(),zones:a.array().items(a.string().allow("")).required()})}static ReAssignStoreRequest(){return a.object({configuration:a.any().required(),to_pincode:a.string().allow("").required(),ignored_locations:a.array().items(a.number()).required(),identifier:a.string().allow("").required(),articles:a.array().items(a.any()).required()})}static ReAssignStoreResponse(){return a.object({to_pincode:a.string().allow("").required(),pystormbreaker_uuid:a.string().allow("").required(),success:a.boolean().required(),error:a.any().required(),assigned_stores:a.array().items(a.any())})}static CountryHierarchy(){return a.object({name:a.string().allow(""),slug:a.string().allow("")})}static CurrencyObject(){return a.object({code:a.string().allow(""),name:a.string().allow(""),symbol:a.string().allow("")})}static CountryObject(){return a.object({id:a.string().allow(""),name:a.string().allow(""),display_name:a.string().allow(""),iso2:a.string().allow(""),iso3:a.string().allow(""),timezones:a.array().items(a.string().allow("")),hierarchy:a.array().items(n.CountryHierarchy()),phone_code:a.string().allow(""),latitude:a.string().allow(""),longitude:a.string().allow(""),currency:n.CurrencyObject(),type:a.string().allow("")})}static GetCountries(){return a.object({items:a.array().items(n.CountryObject()),page:n.Page()})}static GetOneOrAllPath(){return a.object({locality_type:a.string().allow(""),locality_value:a.string().allow("")})}static GetOneOrAllQuery(){return a.object({country:a.string().allow("").allow(null),state:a.string().allow("").allow(null),city:a.string().allow("").allow(null),sector:a.string().allow("").allow(null)})}static GetOneOrAllParams(){return a.object({path:n.GetOneOrAllPath(),query:n.GetOneOrAllQuery()})}static GetOneOrAll(){return a.object({operation_id:a.string().allow(""),params:n.GetOneOrAllParams()})}static LengthValidation(){return a.object({min:a.number().allow(null),max:a.number().allow(null)})}static FieldValidationRegex(){return a.object({value:a.string().allow(""),length:n.LengthValidation()})}static FieldValidation(){return a.object({type:a.string().allow(""),regex:n.FieldValidationRegex()})}static GetCountryFieldsAddressValues(){return a.object({get_one:n.GetOneOrAll(),get_all:n.GetOneOrAll()})}static GetCountryFieldsAddress(){return a.object({display_name:a.string().allow("").required(),slug:a.string().allow("").required(),required:a.boolean().required(),edit:a.boolean(),input:a.string().allow("").required(),validation:n.FieldValidation(),values:n.GetCountryFieldsAddressValues(),error_text:a.string().allow("").allow(null)})}static GetCountryFieldsAddressTemplate(){return a.object({checkout_form:a.string().allow("").required(),store_os_form:a.string().allow("").required(),default_display:a.string().allow("").required()})}static GetCountryFields(){return a.object({address:a.array().items(n.GetCountryFieldsAddress()).required(),serviceability_fields:a.array().items(a.string().allow("")).required(),address_template:n.GetCountryFieldsAddressTemplate().required()})}static GetCountry(){return a.object({id:a.string().allow(""),name:a.string().allow(""),display_name:a.string().allow(""),iso2:a.string().allow(""),iso3:a.string().allow(""),timezones:a.array().items(a.string().allow("")),hierarchy:a.array().items(n.CountryHierarchy()),phone_code:a.string().allow(""),latitude:a.string().allow(""),longitude:a.string().allow(""),currency:n.CurrencyObject(),type:a.string().allow(""),fields:n.GetCountryFields()})}static Page(){return a.object({item_total:a.number(),next_id:a.string().allow(""),has_previous:a.boolean(),has_next:a.boolean(),current:a.number(),type:a.string().allow("").required(),size:a.number()})}static Localities(){return a.object({id:a.string().allow(""),name:a.string().allow(""),display_name:a.string().allow(""),parent_ids:a.array().items(a.string().allow("")),type:a.string().allow("")})}static LocalityParent(){return a.object({id:a.string().allow(""),name:a.string().allow(""),display_name:a.string().allow(""),parent_ids:a.array().items(a.string().allow("")),type:a.string().allow("")})}static GetLocalities(){return a.object({items:a.array().items(n.Localities()),page:n.Page()})}static GetLocality(){return a.object({id:a.string().allow(""),name:a.string().allow(""),display_name:a.string().allow(""),parent_ids:a.array().items(a.string().allow("")),type:a.string().allow(""),localities:a.array().items(n.LocalityParent())})}static ErrorResponse(){return a.object({error:a.string().allow("")})}}e.exports=n},1204:(e,t,r)=>{const a=r(9955),n=r(3248);e.exports=class{static getAllCountries(){return a.object({})}static getCountries(){return a.object({onboarding:a.boolean(),pageNo:a.number(),pageSize:a.number(),q:a.string().allow("")})}static getCountry(){return a.object({countryIsoCode:a.string().allow("").required()}).required()}static getLocalities(){return a.object({localityType:a.string().allow("").required(),country:a.string().allow(""),state:a.string().allow(""),city:a.string().allow(""),pageNo:a.number(),pageSize:a.number(),q:a.string().allow("")}).required()}static getLocality(){return a.object({localityType:a.string().allow("").required(),localityValue:a.string().allow("").required(),country:a.string().allow(""),state:a.string().allow(""),city:a.string().allow("")}).required()}static getLocations(){return a.object({xApplicationId:a.string().allow("").required(),xApplicationData:a.string().allow("").required(),country:a.string().allow(""),state:a.string().allow(""),city:a.string().allow(""),pincode:a.number(),sector:a.string().allow(""),pageNo:a.number(),pageSize:a.number()}).required()}static getOptimalLocations(){return a.object({body:n.ReAssignStoreRequest().required()}).required()}static getPincodeZones(){return a.object({body:n.GetZoneFromPincodeViewRequest().required()}).required()}static validateAddress(){return a.object({countryIsoCode:a.string().allow("").required(),templateName:a.string().allow("").required(),body:n.ValidateAddressRequest().required()}).required()}}},3032:(e,t,r)=>{const a=r(8336),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(9916),s=r(4776),i=(r(3768),r(6347)),l=r(4920),{Logger:c}=r(1544);r(9955),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={getCustomerDetailsByShipmentId:"/service/application/order/v1.0/orders/{order_id}/shipments/{shipment_id}/customer-details",getInvoiceByShipmentId:"/service/application/order/v1.0/orders/shipments/{shipment_id}/invoice",getOrderById:"/service/application/order/v1.0/orders/{order_id}",getOrders:"/service/application/order/v1.0/orders",getPosOrderById:"/service/application/order/v1.0/orders/pos-order/{order_id}",getShipmentBagReasons:"/service/application/order/v1.0/orders/shipments/{shipment_id}/bags/{bag_id}/reasons",getShipmentById:"/service/application/order/v1.0/orders/shipments/{shipment_id}",getShipmentReasons:"/service/application/order/v1.0/orders/shipments/{shipment_id}/reasons",sendOtpToShipmentCustomer:"/service/application/order/v1.0/orders/{order_id}/shipments/{shipment_id}/otp/send/",trackShipment:"/service/application/order/v1.0/orders/shipments/{shipment_id}/track",updateShipmentStatus:"/service/application/order/v1.0/orders/shipments/{shipment_id}/status",verifyOtpShipmentCustomer:"/service/application/order/v1.0/orders/{order_id}/shipments/{shipment_id}/otp/verify/"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async getCustomerDetailsByShipmentId({orderId:e,shipmentId:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.getCustomerDetailsByShipmentId().validate({orderId:e,shipmentId:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.getCustomerDetailsByShipmentId().validate({orderId:e,shipmentId:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > Order > getCustomerDetailsByShipmentId \n ${p}`});const g=await a.execute(this._conf,"get",s({url:this._urls.getCustomerDetailsByShipmentId,params:{orderId:e,shipmentId:t}}),{},void 0,{...r},{responseHeaders:u});let m=g;u&&(m=g[0]);const{error:w}=l.CustomerDetailsResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > Order > getCustomerDetailsByShipmentId \n ${w}`})}return g}async getInvoiceByShipmentId({shipmentId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getInvoiceByShipmentId().validate({shipmentId:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getInvoiceByShipmentId().validate({shipmentId:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Order > getInvoiceByShipmentId \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getInvoiceByShipmentId,params:{shipmentId:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.ResponseGetInvoiceShipment().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Order > getInvoiceByShipmentId \n ${m}`})}return p}async getOrderById({orderId:e,allowInactive:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.getOrderById().validate({orderId:e,allowInactive:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.getOrderById().validate({orderId:e,allowInactive:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > Order > getOrderById \n ${p}`});const g={};g.allow_inactive=t;const m=await a.execute(this._conf,"get",s({url:this._urls.getOrderById,params:{orderId:e}}),g,void 0,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.OrderById().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > Order > getOrderById \n ${f}`})}return m}async getOrders({status:e,pageNo:t,pageSize:r,fromDate:u,toDate:d,startDate:p,endDate:g,customMeta:m,requestHeaders:w}={requestHeaders:{}},{responseHeaders:f}={responseHeaders:!1}){const{error:y}=i.getOrders().validate({status:e,pageNo:t,pageSize:r,fromDate:u,toDate:d,startDate:p,endDate:g,customMeta:m},{abortEarly:!1,allowUnknown:!0});if(y)return Promise.reject(new n(y));const{error:b}=i.getOrders().validate({status:e,pageNo:t,pageSize:r,fromDate:u,toDate:d,startDate:p,endDate:g,customMeta:m},{abortEarly:!1,allowUnknown:!1});b&&c({level:"WARN",message:`Parameter Validation warrnings for application > Order > getOrders \n ${b}`});const h={};h.status=e,h.page_no=t,h.page_size=r,h.from_date=u,h.to_date=d,h.start_date=p,h.end_date=g,h.custom_meta=m;const _=await a.execute(this._conf,"get",s({url:this._urls.getOrders,params:{}}),h,void 0,{...w},{responseHeaders:f});let v=_;f&&(v=_[0]);const{error:R}=l.OrderList().validate(v,{abortEarly:!1,allowUnknown:!0});if(R){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(R));c({level:"WARN",message:`Response Validation Warnings for application > Order > getOrders \n ${R}`})}return _}async getPosOrderById({orderId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getPosOrderById().validate({orderId:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getPosOrderById().validate({orderId:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Order > getPosOrderById \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getPosOrderById,params:{orderId:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.OrderById().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Order > getPosOrderById \n ${m}`})}return p}async getShipmentBagReasons({shipmentId:e,bagId:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.getShipmentBagReasons().validate({shipmentId:e,bagId:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.getShipmentBagReasons().validate({shipmentId:e,bagId:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > Order > getShipmentBagReasons \n ${p}`});const g=await a.execute(this._conf,"get",s({url:this._urls.getShipmentBagReasons,params:{shipmentId:e,bagId:t}}),{},void 0,{...r},{responseHeaders:u});let m=g;u&&(m=g[0]);const{error:w}=l.ShipmentBagReasons().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > Order > getShipmentBagReasons \n ${w}`})}return g}async getShipmentById({shipmentId:e,allowInactive:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.getShipmentById().validate({shipmentId:e,allowInactive:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.getShipmentById().validate({shipmentId:e,allowInactive:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > Order > getShipmentById \n ${p}`});const g={};g.allow_inactive=t;const m=await a.execute(this._conf,"get",s({url:this._urls.getShipmentById,params:{shipmentId:e}}),g,void 0,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.ShipmentById().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > Order > getShipmentById \n ${f}`})}return m}async getShipmentReasons({shipmentId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getShipmentReasons().validate({shipmentId:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getShipmentReasons().validate({shipmentId:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Order > getShipmentReasons \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getShipmentReasons,params:{shipmentId:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.ShipmentReasons().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Order > getShipmentReasons \n ${m}`})}return p}async sendOtpToShipmentCustomer({orderId:e,shipmentId:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.sendOtpToShipmentCustomer().validate({orderId:e,shipmentId:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.sendOtpToShipmentCustomer().validate({orderId:e,shipmentId:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > Order > sendOtpToShipmentCustomer \n ${p}`});const g=await a.execute(this._conf,"post",s({url:this._urls.sendOtpToShipmentCustomer,params:{orderId:e,shipmentId:t}}),{},void 0,{...r},{responseHeaders:u});let m=g;u&&(m=g[0]);const{error:w}=l.SendOtpToCustomerResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > Order > sendOtpToShipmentCustomer \n ${w}`})}return g}async trackShipment({shipmentId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.trackShipment().validate({shipmentId:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.trackShipment().validate({shipmentId:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Order > trackShipment \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.trackShipment,params:{shipmentId:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.ShipmentTrack().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Order > trackShipment \n ${m}`})}return p}async updateShipmentStatus({shipmentId:e,body:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.updateShipmentStatus().validate({shipmentId:e,body:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.updateShipmentStatus().validate({shipmentId:e,body:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > Order > updateShipmentStatus \n ${p}`});const g=await a.execute(this._conf,"put",s({url:this._urls.updateShipmentStatus,params:{shipmentId:e}}),{},t,{...r},{responseHeaders:u});let m=g;u&&(m=g[0]);const{error:w}=l.ShipmentApplicationStatusResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > Order > updateShipmentStatus \n ${w}`})}return g}async verifyOtpShipmentCustomer({orderId:e,shipmentId:t,body:r,requestHeaders:u}={requestHeaders:{}},{responseHeaders:d}={responseHeaders:!1}){const{error:p}=i.verifyOtpShipmentCustomer().validate({orderId:e,shipmentId:t,body:r},{abortEarly:!1,allowUnknown:!0});if(p)return Promise.reject(new n(p));const{error:g}=i.verifyOtpShipmentCustomer().validate({orderId:e,shipmentId:t,body:r},{abortEarly:!1,allowUnknown:!1});g&&c({level:"WARN",message:`Parameter Validation warrnings for application > Order > verifyOtpShipmentCustomer \n ${g}`});const m=await a.execute(this._conf,"post",s({url:this._urls.verifyOtpShipmentCustomer,params:{orderId:e,shipmentId:t}}),{},r,{...u},{responseHeaders:d});let w=m;d&&(w=m[0]);const{error:f}=l.VerifyOtpResponse().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > Order > verifyOtpShipmentCustomer \n ${f}`})}return m}}},4920:(e,t,r)=>{const a=r(9955);class n{static OrderPage(){return a.object({type:a.string().allow(""),item_total:a.number(),current:a.number(),size:a.number(),has_next:a.boolean()})}static UserInfo(){return a.object({first_name:a.string().allow(""),gender:a.string().allow(""),name:a.string().allow(""),last_name:a.string().allow(""),mobile:a.string().allow(""),email:a.string().allow("")})}static BreakupValues(){return a.object({value:a.number(),currency_symbol:a.string().allow(""),name:a.string().allow(""),display:a.string().allow(""),currency_code:a.string().allow("")})}static ShipmentPayment(){return a.object({mop:a.string().allow(""),payment_mode:a.string().allow(""),status:a.string().allow(""),mode:a.string().allow(""),logo:a.string().allow(""),display_name:a.string().allow("")})}static ShipmentUserInfo(){return a.object({first_name:a.string().allow(""),gender:a.string().allow(""),name:a.string().allow(""),last_name:a.string().allow(""),mobile:a.string().allow(""),email:a.string().allow("")})}static FulfillingStore(){return a.object({id:a.number(),code:a.string().allow(""),name:a.string().allow(""),company_name:a.string().allow(""),company_id:a.number()})}static ShipmentStatus(){return a.object({value:a.string().allow("").allow(null),title:a.string().allow(""),hex_code:a.string().allow("")})}static Invoice(){return a.object({invoice_url:a.string().allow(""),updated_date:a.string().allow(""),label_url:a.string().allow("")})}static NestedTrackingDetails(){return a.object({is_passed:a.boolean(),time:a.string().allow(""),is_current:a.boolean(),status:a.string().allow("")})}static TrackingDetails(){return a.object({value:a.string().allow("").allow(null),is_current:a.boolean(),is_passed:a.boolean(),status:a.string().allow(""),time:a.string().allow(""),created_ts:a.string().allow(""),tracking_details:a.array().items(n.NestedTrackingDetails())})}static TimeStampData(){return a.object({min:a.string().allow(""),max:a.string().allow("")})}static Promise(){return a.object({show_promise:a.boolean(),timestamp:n.TimeStampData()})}static ShipmentTotalDetails(){return a.object({pieces:a.number(),total_price:a.number(),sizes:a.number()})}static Prices(){return a.object({delivery_charge:a.number(),coupon_value:a.number(),brand_calculated_amount:a.number(),value_of_good:a.number(),price_marked:a.number(),coupon_effective_discount:a.number(),currency_symbol:a.string().allow(""),discount:a.number(),gst_tax_percentage:a.number(),cod_charges:a.number(),amount_paid:a.number(),added_to_fynd_cash:a.boolean(),transfer_price:a.number(),cashback_applied:a.number(),price_effective:a.number(),cashback:a.number(),refund_credit:a.number(),amount_paid_roundoff:a.number(),promotion_effective_discount:a.number(),refund_amount:a.number(),currency_code:a.string().allow(""),fynd_credits:a.number(),amount_to_be_collected:a.number()})}static ItemBrand(){return a.object({logo:a.string().allow(""),name:a.string().allow("")})}static Item(){return a.object({image:a.array().items(a.string().allow("")),l1_categories:a.array().items(a.string().allow("")),brand:n.ItemBrand(),seller_identifier:a.string().allow(""),code:a.string().allow(""),id:a.number(),name:a.string().allow(""),l3_category_name:a.string().allow(""),slug_key:a.string().allow(""),l2_categories:a.array().items(a.string().allow("")),size:a.string().allow(""),attributes:a.object().pattern(/\S/,a.any())})}static AppliedFreeArticles(){return a.object({article_id:a.string().allow(""),free_gift_item_details:a.any(),parent_item_identifier:a.string().allow(""),quantity:a.number()})}static AppliedPromos(){return a.object({mrp_promotion:a.boolean(),promotion_name:a.string().allow(""),article_quantity:a.number(),promo_id:a.string().allow(""),amount:a.number(),promotion_type:a.string().allow(""),applied_free_articles:a.array().items(n.AppliedFreeArticles())})}static Identifiers(){return a.object({ean:a.string().allow(""),sku_code:a.string().allow("")})}static FinancialBreakup(){return a.object({coupon_value:a.number(),delivery_charge:a.number(),brand_calculated_amount:a.number(),value_of_good:a.number(),price_marked:a.number(),coupon_effective_discount:a.number(),hsn_code:a.string().allow(""),discount:a.number(),gst_tax_percentage:a.number(),cod_charges:a.number(),amount_paid:a.number(),added_to_fynd_cash:a.boolean(),size:a.string().allow(""),transfer_price:a.number(),cashback_applied:a.number(),price_effective:a.number(),cashback:a.number(),refund_credit:a.number(),amount_paid_roundoff:a.number(),total_units:a.number(),identifiers:n.Identifiers(),gst_tag:a.string().allow(""),item_name:a.string().allow(""),promotion_effective_discount:a.number(),gst_fee:a.number(),refund_amount:a.number(),fynd_credits:a.number(),amount_to_be_collected:a.number()})}static CurrentStatus(){return a.object({updated_at:a.string().allow(""),name:a.string().allow(""),status:a.string().allow(""),journey_type:a.string().allow("").allow(null)})}static Bags(){return a.object({delivery_date:a.string().allow("").allow(null),line_number:a.number(),currency_symbol:a.string().allow(""),item:n.Item(),applied_promos:a.array().items(n.AppliedPromos()),quantity:a.number(),prices:n.Prices(),can_cancel:a.boolean(),can_return:a.boolean(),id:a.number(),returnable_date:a.string().allow("").allow(null),financial_breakup:a.array().items(n.FinancialBreakup()),parent_promo_bags:a.any(),meta:a.any(),currency_code:a.string().allow(""),seller_identifier:a.string().allow(""),current_status:n.CurrentStatus(),article:n.Article()})}static FulfillingCompany(){return a.object({id:a.number(),name:a.string().allow("")})}static Article(){return a.object({tags:a.array().items(a.string().allow(""))})}static DeliveryAddress(){return a.object({pincode:a.string().allow(""),phone:a.string().allow(""),latitude:a.number().allow(null),address2:a.string().allow(""),landmark:a.string().allow(""),area:a.string().allow(""),city:a.string().allow(""),address:a.string().allow(""),address_type:a.string().allow(""),longitude:a.number().allow(null),country_iso_code:a.string().allow(""),state:a.string().allow(""),created_at:a.string().allow(""),address1:a.string().allow(""),display_address:a.string().allow(""),name:a.string().allow(""),contact_person:a.string().allow(""),address_category:a.string().allow(""),email:a.string().allow(""),country_phone_code:a.string().allow(""),version:a.string().allow(""),updated_at:a.string().allow(""),country:a.string().allow("")})}static Shipments(){return a.object({payment:n.ShipmentPayment(),payment_info:a.array().items(n.ShipmentPayment()),order_type:a.string().allow("").allow(null),show_download_invoice:a.boolean(),can_cancel:a.boolean(),user_info:n.ShipmentUserInfo(),shipment_id:a.string().allow(""),fulfilling_store:n.FulfillingStore(),custom_meta:a.array().items(a.any()),shipment_status:n.ShipmentStatus(),comment:a.string().allow(""),invoice:n.Invoice(),show_track_link:a.boolean(),refund_details:a.any(),breakup_values:a.array().items(n.BreakupValues()),can_break:a.any(),traking_no:a.string().allow(""),tracking_details:a.array().items(n.TrackingDetails()),promise:n.Promise(),total_bags:a.number(),total_details:n.ShipmentTotalDetails(),prices:n.Prices(),returnable_date:a.string().allow("").allow(null),shipment_created_at:a.string().allow(""),shipment_created_ts:a.string().allow(""),size_info:a.any(),bags:a.array().items(n.Bags()),dp_name:a.string().allow(""),awb_no:a.string().allow(""),beneficiary_details:a.boolean(),fulfilling_company:n.FulfillingCompany(),can_return:a.boolean(),delivery_address:n.DeliveryAddress(),track_url:a.string().allow(""),order_id:a.string().allow(""),need_help_url:a.string().allow(""),return_meta:a.any(),delivery_date:a.string().allow("").allow(null),order:n.OrderRequest()})}static BagsForReorderArticleAssignment(){return a.object({strategy:a.string().allow(""),level:a.string().allow("")})}static BagsForReorder(){return a.object({item_size:a.string().allow(""),quantity:a.number(),store_id:a.number(),article_assignment:n.BagsForReorderArticleAssignment(),seller_id:a.number(),item_id:a.number()})}static OrderSchema(){return a.object({total_shipments_in_order:a.number(),user_info:n.UserInfo(),breakup_values:a.array().items(n.BreakupValues()),order_created_time:a.string().allow(""),order_created_ts:a.string().allow(""),order_id:a.string().allow(""),shipments:a.array().items(n.Shipments()),bags_for_reorder:a.array().items(n.BagsForReorder())})}static OrderStatuses(){return a.object({value:a.number(),is_selected:a.boolean(),display:a.string().allow("")})}static OrderFilters(){return a.object({statuses:a.array().items(n.OrderStatuses())})}static OrderList(){return a.object({page:n.OrderPage(),items:a.array().items(n.OrderSchema()),filters:n.OrderFilters()})}static ApefaceApiError(){return a.object({message:a.string().allow(""),success:a.boolean()})}static OrderById(){return a.object({order:n.OrderSchema()})}static ShipmentById(){return a.object({shipment:n.Shipments()})}static ResponseGetInvoiceShipment(){return a.object({presigned_type:a.string().allow("").required(),success:a.boolean().required(),shipment_id:a.string().allow("").required(),presigned_url:a.string().allow("").required()})}static Track(){return a.object({account_name:a.string().allow(""),shipment_type:a.string().allow(""),status:a.string().allow(""),last_location_recieved_at:a.string().allow(""),updated_time:a.string().allow(""),updated_at:a.string().allow(""),reason:a.string().allow(""),awb:a.string().allow("")})}static ShipmentTrack(){return a.object({results:a.array().items(n.Track())})}static CustomerDetailsResponse(){return a.object({phone:a.string().allow(""),shipment_id:a.string().allow(""),name:a.string().allow(""),order_id:a.string().allow(""),country:a.string().allow("")})}static SendOtpToCustomerResponse(){return a.object({request_id:a.string().allow(""),message:a.string().allow(""),success:a.boolean(),resend_timer:a.number()})}static VerifyOtp(){return a.object({otp_code:a.string().allow(""),request_id:a.string().allow("")})}static VerifyOtpResponse(){return a.object({success:a.boolean()})}static BagReasonMeta(){return a.object({show_text_area:a.boolean()})}static QuestionSet(){return a.object({id:a.number(),display_name:a.string().allow("")})}static BagReasons(){return a.object({qc_type:a.array().items(a.string().allow("")),id:a.number(),display_name:a.string().allow(""),meta:n.BagReasonMeta(),question_set:a.array().items(n.QuestionSet()),reasons:a.array().items(a.link("#BagReasons"))}).id("BagReasons")}static ShipmentBagReasons(){return a.object({reasons:a.array().items(n.BagReasons()),success:a.boolean()})}static ShipmentReason(){return a.object({priority:a.number(),show_text_area:a.boolean(),reason_id:a.number(),feedback_type:a.string().allow(""),reason_text:a.string().allow(""),flow:a.string().allow("")})}static ShipmentReasons(){return a.object({reasons:a.array().items(n.ShipmentReason())})}static ProductsReasonsData(){return a.object({reason_id:a.number(),reason_text:a.string().allow("")})}static ProductsReasonsFilters(){return a.object({line_number:a.number(),quantity:a.number(),identifier:a.string().allow("")})}static ProductsReasons(){return a.object({data:n.ProductsReasonsData(),filters:a.array().items(n.ProductsReasonsFilters())})}static EntityReasonData(){return a.object({reason_id:a.number(),reason_text:a.string().allow("")})}static EntitiesReasons(){return a.object({data:n.EntityReasonData(),filters:a.array().items(a.any())})}static ReasonsData(){return a.object({products:a.array().items(n.ProductsReasons()),entities:a.array().items(n.EntitiesReasons())})}static Products(){return a.object({line_number:a.number(),quantity:a.number(),identifier:a.string().allow("")})}static ProductsDataUpdatesFilters(){return a.object({line_number:a.number(),identifier:a.string().allow("")})}static ProductsDataUpdates(){return a.object({data:a.any(),filters:a.array().items(n.ProductsDataUpdatesFilters())})}static EntitiesDataUpdates(){return a.object({data:a.any(),filters:a.array().items(a.any())})}static DataUpdates(){return a.object({products:a.array().items(n.ProductsDataUpdates()),entities:a.array().items(n.EntitiesDataUpdates())})}static ShipmentsRequest(){return a.object({reasons:n.ReasonsData(),products:a.array().items(n.Products()),data_updates:n.DataUpdates(),identifier:a.string().allow("").required()})}static StatuesRequest(){return a.object({shipments:a.array().items(n.ShipmentsRequest()),exclude_bags_next_state:a.string().allow(""),status:a.string().allow("")})}static OrderRequest(){return a.object({meta:a.any()})}static UpdateShipmentStatusRequest(){return a.object({statuses:a.array().items(n.StatuesRequest()),task:a.boolean(),lock_after_transition:a.boolean(),force_transition:a.boolean(),unlock_before_transition:a.boolean()})}static StatusesBodyResponse(){return a.object({shipments:a.array().items(a.any())})}static ShipmentApplicationStatusResponse(){return a.object({statuses:a.array().items(n.StatusesBodyResponse())})}static ErrorResponse(){return a.object({code:a.string().allow("").allow(null),message:a.string().allow("").allow(null),status:a.number(),exception:a.string().allow("").allow(null),stack_trace:a.string().allow("").allow(null)})}}e.exports=n},6347:(e,t,r)=>{const a=r(9955),n=r(4920);e.exports=class{static getCustomerDetailsByShipmentId(){return a.object({orderId:a.string().allow("").required(),shipmentId:a.string().allow("").required()}).required()}static getInvoiceByShipmentId(){return a.object({shipmentId:a.string().allow("").required()}).required()}static getOrderById(){return a.object({orderId:a.string().allow("").required(),allowInactive:a.boolean()}).required()}static getOrders(){return a.object({status:a.number(),pageNo:a.number(),pageSize:a.number(),fromDate:a.string().allow(""),toDate:a.string().allow(""),startDate:a.string().allow(""),endDate:a.string().allow(""),customMeta:a.string().allow("")})}static getPosOrderById(){return a.object({orderId:a.string().allow("").required()}).required()}static getShipmentBagReasons(){return a.object({shipmentId:a.string().allow("").required(),bagId:a.string().allow("").required()}).required()}static getShipmentById(){return a.object({shipmentId:a.string().allow("").required(),allowInactive:a.boolean()}).required()}static getShipmentReasons(){return a.object({shipmentId:a.string().allow("").required()}).required()}static sendOtpToShipmentCustomer(){return a.object({orderId:a.string().allow("").required(),shipmentId:a.string().allow("").required()}).required()}static trackShipment(){return a.object({shipmentId:a.string().allow("").required()}).required()}static updateShipmentStatus(){return a.object({shipmentId:a.string().allow("").required(),body:n.UpdateShipmentStatusRequest().required()}).required()}static verifyOtpShipmentCustomer(){return a.object({orderId:a.string().allow("").required(),shipmentId:a.string().allow("").required(),body:n.VerifyOtp().required()}).required()}}},396:(e,t,r)=>{const a=r(8336),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(9916),s=r(4776),i=(r(3768),r(836)),l=r(1068),{Logger:c}=r(1544);r(9955),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={addBeneficiaryDetails:"/service/application/payment/v1.0/refund/account",addRefundBankAccountUsingOTP:"/service/application/payment/v1.0/refund/account/otp",attachCardToCustomer:"/service/application/payment/v1.0/card/attach",cancelPaymentLink:"/service/application/payment/v1.0/cancel-payment-link/",cardDetails:"/service/application/payment/v1.0/cards/info/{card_info}",checkAndUpdatePaymentStatus:"/service/application/payment/v1.0/payment/confirm/polling",checkAndUpdatePaymentStatusPaymentLink:"/service/application/payment/v1.0/payment/confirm/polling/link/",checkCredit:"/service/application/payment/v1.0/check-credits/",createOrderHandlerPaymentLink:"/service/application/payment/v1.0/create-order/link/",createPaymentLink:"/service/application/payment/v1.0/create-payment-link/",createPaymentOrder:"/service/application/payment/v1.0/payment-orders/",customerCreditSummary:"/service/application/payment/v1.0/payment/credit-summary/",customerOnboard:"/service/application/payment/v1.0/credit-onboard/",deleteBeneficiaryDetails:"/service/application/payment/v1.0/refund/account/{beneficiary_id}",deleteUserCard:"/service/application/payment/v1.0/card/remove",delinkWallet:"/service/application/payment/v1.0/payment/options/wallet/delink",enableOrDisableRefundTransferMode:"/service/application/payment/v1.0/refund/transfer-mode",getActiveCardAggregator:"/service/application/payment/v1.0/card/aggregator",getActiveRefundTransferModes:"/service/application/payment/v1.0/refund/transfer-mode",getActiveUserCards:"/service/application/payment/v1.0/cards",getAggregatorsConfig:"/service/application/payment/v1.0/config/aggregators/key",getEpaylaterBannerDetails:"/service/application/payment/v1.0/epaylater/banner",getOrderBeneficiariesDetail:"/service/application/payment/v1.0/refund/order/beneficiaries",getPaymentLink:"/service/application/payment/v1.0/create-payment-link/",getPaymentModeRoutes:"/service/application/payment/v1.0/payment/options",getPaymentModeRoutesPaymentLink:"/service/application/payment/v1.0/payment/options/link/",getPosPaymentModeRoutes:"/service/application/payment/v1.0/payment/options/pos",getRefundOptions:"/service/application/payment/v1.0/payment/refundoptions/",getRupifiBannerDetails:"/service/application/payment/v1.0/rupifi/banner",getSelectedRefundOption:"/service/application/payment/v1.0/payment/selected_refund_options",getUserBeneficiariesDetail:"/service/application/payment/v1.0/refund/user/beneficiary",getUserBeneficiariesDetailV2:"/service/application/payment/v2.0/refund/user/beneficiary",initialisePayment:"/service/application/payment/v1.0/payment/request",initialisePaymentPaymentLink:"/service/application/payment/v1.0/payment/request/link/",linkWallet:"/service/application/payment/v1.0/payment/options/wallet/verify",outstandingOrderDetails:"/service/application/payment/v1.0/payment/outstanding-orders/",paidOrderDetails:"/service/application/payment/v1.0/payment/paid-orders/",pollingPaymentLink:"/service/application/payment/v1.0/polling-payment-link/",redirectToAggregator:"/service/application/payment/v1.0/payment/redirect-to-aggregator/",renderHTML:"/service/application/payment/v1.0/payment/html/render/",resendOrCancelPayment:"/service/application/payment/v1.0/payment/resend_or_cancel",resendPaymentLink:"/service/application/payment/v1.0/resend-payment-link/",setRefundOptionforShipment:"/service/application/payment/v1.0/payment/refundoptions/",updateDefaultBeneficiary:"/service/application/payment/v1.0/refund/beneficiary/default",validateBeneficiaryAddress:"/service/application/payment/v1.0/validate/beneficiary-address",validateVPA:"/service/application/payment/v1.0/validate-vpa",verifyAndChargePayment:"/service/application/payment/v1.0/payment/confirm/charge",verifyCustomerForPayment:"/service/application/payment/v1.0/payment/customer/validation",verifyIfscCode:"/service/application/payment/v1.0/ifsc-code/verify",verifyOtpAndAddBeneficiaryForBank:"/service/application/payment/v1.0/refund/verification/bank",verifyOtpAndAddBeneficiaryForWallet:"/service/application/payment/v1.0/refund/verification/wallet",walletLinkInitate:"/service/application/payment/v1.0/payment/options/wallet/link"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async addBeneficiaryDetails({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.addBeneficiaryDetails().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.addBeneficiaryDetails().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > addBeneficiaryDetails \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.addBeneficiaryDetails,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.RefundAccountResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Payment > addBeneficiaryDetails \n ${m}`})}return p}async addRefundBankAccountUsingOTP({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.addRefundBankAccountUsingOTP().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.addRefundBankAccountUsingOTP().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > addRefundBankAccountUsingOTP \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.addRefundBankAccountUsingOTP,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.RefundAccountResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Payment > addRefundBankAccountUsingOTP \n ${m}`})}return p}async attachCardToCustomer({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.attachCardToCustomer().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.attachCardToCustomer().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > attachCardToCustomer \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.attachCardToCustomer,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.AttachCardsResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Payment > attachCardToCustomer \n ${m}`})}return p}async cancelPaymentLink({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.cancelPaymentLink().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.cancelPaymentLink().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > cancelPaymentLink \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.cancelPaymentLink,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.CancelPaymentLinkResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Payment > cancelPaymentLink \n ${m}`})}return p}async cardDetails({cardInfo:e,aggregator:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.cardDetails().validate({cardInfo:e,aggregator:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.cardDetails().validate({cardInfo:e,aggregator:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > cardDetails \n ${p}`});const g={};g.aggregator=t;const m=await a.execute(this._conf,"get",s({url:this._urls.cardDetails,params:{cardInfo:e}}),g,void 0,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.CardDetailsResponse().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > Payment > cardDetails \n ${f}`})}return m}async checkAndUpdatePaymentStatus({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.checkAndUpdatePaymentStatus().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.checkAndUpdatePaymentStatus().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > checkAndUpdatePaymentStatus \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.checkAndUpdatePaymentStatus,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.PaymentStatusUpdateResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Payment > checkAndUpdatePaymentStatus \n ${m}`})}return p}async checkAndUpdatePaymentStatusPaymentLink({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.checkAndUpdatePaymentStatusPaymentLink().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.checkAndUpdatePaymentStatusPaymentLink().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > checkAndUpdatePaymentStatusPaymentLink \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.checkAndUpdatePaymentStatusPaymentLink,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.PaymentStatusUpdateResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Payment > checkAndUpdatePaymentStatusPaymentLink \n ${m}`})}return p}async checkCredit({aggregator:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.checkCredit().validate({aggregator:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.checkCredit().validate({aggregator:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > checkCredit \n ${d}`});const p={};p.aggregator=e;const g=await a.execute(this._conf,"get",s({url:this._urls.checkCredit,params:{}}),p,void 0,{...t},{responseHeaders:r});let m=g;r&&(m=g[0]);const{error:w}=l.CheckCreditResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > Payment > checkCredit \n ${w}`})}return g}async createOrderHandlerPaymentLink({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.createOrderHandlerPaymentLink().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.createOrderHandlerPaymentLink().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > createOrderHandlerPaymentLink \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.createOrderHandlerPaymentLink,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.CreateOrderUserResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Payment > createOrderHandlerPaymentLink \n ${m}`})}return p}async createPaymentLink({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.createPaymentLink().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.createPaymentLink().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > createPaymentLink \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.createPaymentLink,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.CreatePaymentLinkResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Payment > createPaymentLink \n ${m}`})}return p}async createPaymentOrder({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.createPaymentOrder().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.createPaymentOrder().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > createPaymentOrder \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.createPaymentOrder,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.PaymentOrderResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Payment > createPaymentOrder \n ${m}`})}return p}async customerCreditSummary({aggregator:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.customerCreditSummary().validate({aggregator:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.customerCreditSummary().validate({aggregator:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > customerCreditSummary \n ${d}`});const p={};p.aggregator=e;const g=await a.execute(this._conf,"get",s({url:this._urls.customerCreditSummary,params:{}}),p,void 0,{...t},{responseHeaders:r});let m=g;r&&(m=g[0]);const{error:w}=l.CustomerCreditSummaryResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > Payment > customerCreditSummary \n ${w}`})}return g}async customerOnboard({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.customerOnboard().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.customerOnboard().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > customerOnboard \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.customerOnboard,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.CustomerOnboardingResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Payment > customerOnboard \n ${m}`})}return p}async deleteBeneficiaryDetails({beneficiaryId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.deleteBeneficiaryDetails().validate({beneficiaryId:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.deleteBeneficiaryDetails().validate({beneficiaryId:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > deleteBeneficiaryDetails \n ${d}`});const p=await a.execute(this._conf,"delete",s({url:this._urls.deleteBeneficiaryDetails,params:{beneficiaryId:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.DeleteRefundAccountResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Payment > deleteBeneficiaryDetails \n ${m}`})}return p}async deleteUserCard({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.deleteUserCard().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.deleteUserCard().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > deleteUserCard \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.deleteUserCard,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.DeleteCardsResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Payment > deleteUserCard \n ${m}`})}return p}async delinkWallet({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.delinkWallet().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.delinkWallet().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > delinkWallet \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.delinkWallet,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.WalletResponseSchema().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Payment > delinkWallet \n ${m}`})}return p}async enableOrDisableRefundTransferMode({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.enableOrDisableRefundTransferMode().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.enableOrDisableRefundTransferMode().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > enableOrDisableRefundTransferMode \n ${d}`});const p=await a.execute(this._conf,"put",s({url:this._urls.enableOrDisableRefundTransferMode,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.UpdateRefundTransferModeResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Payment > enableOrDisableRefundTransferMode \n ${m}`})}return p}async getActiveCardAggregator({refresh:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getActiveCardAggregator().validate({refresh:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getActiveCardAggregator().validate({refresh:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > getActiveCardAggregator \n ${d}`});const p={};p.refresh=e;const g=await a.execute(this._conf,"get",s({url:this._urls.getActiveCardAggregator,params:{}}),p,void 0,{...t},{responseHeaders:r});let m=g;r&&(m=g[0]);const{error:w}=l.ActiveCardPaymentGatewayResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > Payment > getActiveCardAggregator \n ${w}`})}return g}async getActiveRefundTransferModes({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getActiveRefundTransferModes().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:u}=i.getActiveRefundTransferModes().validate({},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > getActiveRefundTransferModes \n ${u}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getActiveRefundTransferModes,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=l.TransferModeResponse().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));c({level:"WARN",message:`Response Validation Warnings for application > Payment > getActiveRefundTransferModes \n ${g}`})}return d}async getActiveUserCards({forceRefresh:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getActiveUserCards().validate({forceRefresh:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getActiveUserCards().validate({forceRefresh:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > getActiveUserCards \n ${d}`});const p={};p.force_refresh=e;const g=await a.execute(this._conf,"get",s({url:this._urls.getActiveUserCards,params:{}}),p,void 0,{...t},{responseHeaders:r});let m=g;r&&(m=g[0]);const{error:w}=l.ListCardsResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > Payment > getActiveUserCards \n ${w}`})}return g}async getAggregatorsConfig({xApiToken:e,refresh:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.getAggregatorsConfig().validate({xApiToken:e,refresh:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.getAggregatorsConfig().validate({xApiToken:e,refresh:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > getAggregatorsConfig \n ${p}`});const g={};g.refresh=t;const m={};m["x-api-token"]=e;const w=await a.execute(this._conf,"get",s({url:this._urls.getAggregatorsConfig,params:{}}),g,void 0,{...m,...r},{responseHeaders:u});let f=w;u&&(f=w[0]);const{error:y}=l.AggregatorsConfigDetailResponse().validate(f,{abortEarly:!1,allowUnknown:!0});if(y){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(y));c({level:"WARN",message:`Response Validation Warnings for application > Payment > getAggregatorsConfig \n ${y}`})}return w}async getEpaylaterBannerDetails({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getEpaylaterBannerDetails().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:u}=i.getEpaylaterBannerDetails().validate({},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > getEpaylaterBannerDetails \n ${u}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getEpaylaterBannerDetails,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=l.EpaylaterBannerResponse().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));c({level:"WARN",message:`Response Validation Warnings for application > Payment > getEpaylaterBannerDetails \n ${g}`})}return d}async getOrderBeneficiariesDetail({orderId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getOrderBeneficiariesDetail().validate({orderId:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getOrderBeneficiariesDetail().validate({orderId:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > getOrderBeneficiariesDetail \n ${d}`});const p={};p.order_id=e;const g=await a.execute(this._conf,"get",s({url:this._urls.getOrderBeneficiariesDetail,params:{}}),p,void 0,{...t},{responseHeaders:r});let m=g;r&&(m=g[0]);const{error:w}=l.OrderBeneficiaryResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > Payment > getOrderBeneficiariesDetail \n ${w}`})}return g}async getPaymentLink({paymentLinkId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getPaymentLink().validate({paymentLinkId:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getPaymentLink().validate({paymentLinkId:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > getPaymentLink \n ${d}`});const p={};p.payment_link_id=e;const g=await a.execute(this._conf,"get",s({url:this._urls.getPaymentLink,params:{}}),p,void 0,{...t},{responseHeaders:r});let m=g;r&&(m=g[0]);const{error:w}=l.GetPaymentLinkResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > Payment > getPaymentLink \n ${w}`})}return g}async getPaymentModeRoutes({amount:e,cartId:t,checkoutMode:r,refresh:u,orderId:d,cardReference:p,userDetails:g,displaySplit:m,advancePayment:w,shipmentId:f,requestHeaders:y}={requestHeaders:{}},{responseHeaders:b}={responseHeaders:!1}){const{error:h}=i.getPaymentModeRoutes().validate({amount:e,cartId:t,checkoutMode:r,refresh:u,orderId:d,cardReference:p,userDetails:g,displaySplit:m,advancePayment:w,shipmentId:f},{abortEarly:!1,allowUnknown:!0});if(h)return Promise.reject(new n(h));const{error:_}=i.getPaymentModeRoutes().validate({amount:e,cartId:t,checkoutMode:r,refresh:u,orderId:d,cardReference:p,userDetails:g,displaySplit:m,advancePayment:w,shipmentId:f},{abortEarly:!1,allowUnknown:!1});_&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > getPaymentModeRoutes \n ${_}`});const v={};v.amount=e,v.cart_id=t,v.checkout_mode=r,v.refresh=u,v.order_id=d,v.card_reference=p,v.user_details=g,v.display_split=m,v.advance_payment=w,v.shipment_id=f;const R=await a.execute(this._conf,"get",s({url:this._urls.getPaymentModeRoutes,params:{}}),v,void 0,{...y},{responseHeaders:b});let k=R;b&&(k=R[0]);const{error:P}=l.PaymentModeRouteResponse().validate(k,{abortEarly:!1,allowUnknown:!0});if(P){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(P));c({level:"WARN",message:`Response Validation Warnings for application > Payment > getPaymentModeRoutes \n ${P}`})}return R}async getPaymentModeRoutesPaymentLink({paymentLinkId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getPaymentModeRoutesPaymentLink().validate({paymentLinkId:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getPaymentModeRoutesPaymentLink().validate({paymentLinkId:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > getPaymentModeRoutesPaymentLink \n ${d}`});const p={};p.payment_link_id=e;const g=await a.execute(this._conf,"get",s({url:this._urls.getPaymentModeRoutesPaymentLink,params:{}}),p,void 0,{...t},{responseHeaders:r});let m=g;r&&(m=g[0]);const{error:w}=l.PaymentModeRouteResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > Payment > getPaymentModeRoutesPaymentLink \n ${w}`})}return g}async getPosPaymentModeRoutes({amount:e,pincode:t,orderType:r,cartId:u,checkoutMode:d,refresh:p,cardReference:g,userDetails:m,requestHeaders:w}={requestHeaders:{}},{responseHeaders:f}={responseHeaders:!1}){const{error:y}=i.getPosPaymentModeRoutes().validate({amount:e,pincode:t,orderType:r,cartId:u,checkoutMode:d,refresh:p,cardReference:g,userDetails:m},{abortEarly:!1,allowUnknown:!0});if(y)return Promise.reject(new n(y));const{error:b}=i.getPosPaymentModeRoutes().validate({amount:e,pincode:t,orderType:r,cartId:u,checkoutMode:d,refresh:p,cardReference:g,userDetails:m},{abortEarly:!1,allowUnknown:!1});b&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > getPosPaymentModeRoutes \n ${b}`});const h={};h.amount=e,h.cart_id=u,h.pincode=t,h.checkout_mode=d,h.refresh=p,h.card_reference=g,h.order_type=r,h.user_details=m;const _=await a.execute(this._conf,"get",s({url:this._urls.getPosPaymentModeRoutes,params:{}}),h,void 0,{...w},{responseHeaders:f});let v=_;f&&(v=_[0]);const{error:R}=l.PaymentModeRouteResponse().validate(v,{abortEarly:!1,allowUnknown:!0});if(R){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(R));c({level:"WARN",message:`Response Validation Warnings for application > Payment > getPosPaymentModeRoutes \n ${R}`})}return _}async getRefundOptions({configuration:e,productType:t,amount:r,requestHeaders:u}={requestHeaders:{}},{responseHeaders:d}={responseHeaders:!1}){const{error:p}=i.getRefundOptions().validate({configuration:e,productType:t,amount:r},{abortEarly:!1,allowUnknown:!0});if(p)return Promise.reject(new n(p));const{error:g}=i.getRefundOptions().validate({configuration:e,productType:t,amount:r},{abortEarly:!1,allowUnknown:!1});g&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > getRefundOptions \n ${g}`});const m={};m.configuration=e,m.product_type=t,m.amount=r;const w=await a.execute(this._conf,"get",s({url:this._urls.getRefundOptions,params:{}}),m,void 0,{...u},{responseHeaders:d});let f=w;d&&(f=w[0]);const{error:y}=l.RefundOptionResponse().validate(f,{abortEarly:!1,allowUnknown:!0});if(y){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(y));c({level:"WARN",message:`Response Validation Warnings for application > Payment > getRefundOptions \n ${y}`})}return w}async getRupifiBannerDetails({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getRupifiBannerDetails().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:u}=i.getRupifiBannerDetails().validate({},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > getRupifiBannerDetails \n ${u}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getRupifiBannerDetails,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=l.RupifiBannerResponse().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));c({level:"WARN",message:`Response Validation Warnings for application > Payment > getRupifiBannerDetails \n ${g}`})}return d}async getSelectedRefundOption({shipmentId:e,orderId:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.getSelectedRefundOption().validate({shipmentId:e,orderId:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.getSelectedRefundOption().validate({shipmentId:e,orderId:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > getSelectedRefundOption \n ${p}`});const g={};g.shipment_id=e,g.order_id=t;const m=await a.execute(this._conf,"get",s({url:this._urls.getSelectedRefundOption,params:{}}),g,void 0,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.SelectedRefundOptionResponse().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > Payment > getSelectedRefundOption \n ${f}`})}return m}async getUserBeneficiariesDetail({orderId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getUserBeneficiariesDetail().validate({orderId:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getUserBeneficiariesDetail().validate({orderId:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > getUserBeneficiariesDetail \n ${d}`});const p={};p.order_id=e;const g=await a.execute(this._conf,"get",s({url:this._urls.getUserBeneficiariesDetail,params:{}}),p,void 0,{...t},{responseHeaders:r});let m=g;r&&(m=g[0]);const{error:w}=l.OrderBeneficiaryResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > Payment > getUserBeneficiariesDetail \n ${w}`})}return g}async getUserBeneficiariesDetailV2({orderId:e,shipmentId:t,mop:r,requestHeaders:u}={requestHeaders:{}},{responseHeaders:d}={responseHeaders:!1}){const{error:p}=i.getUserBeneficiariesDetailV2().validate({orderId:e,shipmentId:t,mop:r},{abortEarly:!1,allowUnknown:!0});if(p)return Promise.reject(new n(p));const{error:g}=i.getUserBeneficiariesDetailV2().validate({orderId:e,shipmentId:t,mop:r},{abortEarly:!1,allowUnknown:!1});g&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > getUserBeneficiariesDetailV2 \n ${g}`});const m={};m.order_id=e,m.shipment_id=t,m.mop=r;const w=await a.execute(this._conf,"get",s({url:this._urls.getUserBeneficiariesDetailV2,params:{}}),m,void 0,{...u},{responseHeaders:d});let f=w;d&&(f=w[0]);const{error:y}=l.OrderBeneficiaryResponseSchemaV2().validate(f,{abortEarly:!1,allowUnknown:!0});if(y){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(y));c({level:"WARN",message:`Response Validation Warnings for application > Payment > getUserBeneficiariesDetailV2 \n ${y}`})}return w}async initialisePayment({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.initialisePayment().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.initialisePayment().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > initialisePayment \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.initialisePayment,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.PaymentInitializationResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Payment > initialisePayment \n ${m}`})}return p}async initialisePaymentPaymentLink({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.initialisePaymentPaymentLink().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.initialisePaymentPaymentLink().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > initialisePaymentPaymentLink \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.initialisePaymentPaymentLink,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.PaymentInitializationResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Payment > initialisePaymentPaymentLink \n ${m}`})}return p}async linkWallet({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.linkWallet().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.linkWallet().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > linkWallet \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.linkWallet,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.WalletResponseSchema().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Payment > linkWallet \n ${m}`})}return p}async outstandingOrderDetails({aggregator:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.outstandingOrderDetails().validate({aggregator:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.outstandingOrderDetails().validate({aggregator:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > outstandingOrderDetails \n ${d}`});const p={};p.aggregator=e;const g=await a.execute(this._conf,"get",s({url:this._urls.outstandingOrderDetails,params:{}}),p,void 0,{...t},{responseHeaders:r});let m=g;r&&(m=g[0]);const{error:w}=l.OutstandingOrderDetailsResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > Payment > outstandingOrderDetails \n ${w}`})}return g}async paidOrderDetails({aggregator:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.paidOrderDetails().validate({aggregator:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.paidOrderDetails().validate({aggregator:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > paidOrderDetails \n ${d}`});const p={};p.aggregator=e;const g=await a.execute(this._conf,"get",s({url:this._urls.paidOrderDetails,params:{}}),p,void 0,{...t},{responseHeaders:r});let m=g;r&&(m=g[0]);const{error:w}=l.PaidOrderDetailsResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > Payment > paidOrderDetails \n ${w}`})}return g}async pollingPaymentLink({paymentLinkId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.pollingPaymentLink().validate({paymentLinkId:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.pollingPaymentLink().validate({paymentLinkId:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > pollingPaymentLink \n ${d}`});const p={};p.payment_link_id=e;const g=await a.execute(this._conf,"get",s({url:this._urls.pollingPaymentLink,params:{}}),p,void 0,{...t},{responseHeaders:r});let m=g;r&&(m=g[0]);const{error:w}=l.PollingPaymentLinkResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > Payment > pollingPaymentLink \n ${w}`})}return g}async redirectToAggregator({source:e,aggregator:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.redirectToAggregator().validate({source:e,aggregator:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.redirectToAggregator().validate({source:e,aggregator:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > redirectToAggregator \n ${p}`});const g={};g.source=e,g.aggregator=t;const m=await a.execute(this._conf,"get",s({url:this._urls.redirectToAggregator,params:{}}),g,void 0,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.RedirectToAggregatorResponse().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > Payment > redirectToAggregator \n ${f}`})}return m}async renderHTML({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.renderHTML().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.renderHTML().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > renderHTML \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.renderHTML,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.renderHTMLResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Payment > renderHTML \n ${m}`})}return p}async resendOrCancelPayment({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.resendOrCancelPayment().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.resendOrCancelPayment().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > resendOrCancelPayment \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.resendOrCancelPayment,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.ResendOrCancelPaymentResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Payment > resendOrCancelPayment \n ${m}`})}return p}async resendPaymentLink({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.resendPaymentLink().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.resendPaymentLink().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > resendPaymentLink \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.resendPaymentLink,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.ResendPaymentLinkResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Payment > resendPaymentLink \n ${m}`})}return p}async setRefundOptionforShipment({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.setRefundOptionforShipment().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.setRefundOptionforShipment().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > setRefundOptionforShipment \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.setRefundOptionforShipment,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.ShipmentRefundResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Payment > setRefundOptionforShipment \n ${m}`})}return p}async updateDefaultBeneficiary({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.updateDefaultBeneficiary().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.updateDefaultBeneficiary().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > updateDefaultBeneficiary \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.updateDefaultBeneficiary,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.SetDefaultBeneficiaryResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Payment > updateDefaultBeneficiary \n ${m}`})}return p}async validateBeneficiaryAddress({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.validateBeneficiaryAddress().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.validateBeneficiaryAddress().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > validateBeneficiaryAddress \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.validateBeneficiaryAddress,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.ValidateValidateAddressResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Payment > validateBeneficiaryAddress \n ${m}`})}return p}async validateVPA({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.validateVPA().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.validateVPA().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > validateVPA \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.validateVPA,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.ValidateVPAResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Payment > validateVPA \n ${m}`})}return p}async verifyAndChargePayment({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.verifyAndChargePayment().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.verifyAndChargePayment().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > verifyAndChargePayment \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.verifyAndChargePayment,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.ChargeCustomerResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Payment > verifyAndChargePayment \n ${m}`})}return p}async verifyCustomerForPayment({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.verifyCustomerForPayment().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.verifyCustomerForPayment().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > verifyCustomerForPayment \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.verifyCustomerForPayment,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.ValidateCustomerResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Payment > verifyCustomerForPayment \n ${m}`})}return p}async verifyIfscCode({ifscCode:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.verifyIfscCode().validate({ifscCode:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.verifyIfscCode().validate({ifscCode:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > verifyIfscCode \n ${d}`});const p={};p.ifsc_code=e;const g=await a.execute(this._conf,"get",s({url:this._urls.verifyIfscCode,params:{}}),p,void 0,{...t},{responseHeaders:r});let m=g;r&&(m=g[0]);const{error:w}=l.IfscCodeResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > Payment > verifyIfscCode \n ${w}`})}return g}async verifyOtpAndAddBeneficiaryForBank({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.verifyOtpAndAddBeneficiaryForBank().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.verifyOtpAndAddBeneficiaryForBank().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > verifyOtpAndAddBeneficiaryForBank \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.verifyOtpAndAddBeneficiaryForBank,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.AddBeneficiaryViaOtpVerificationResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Payment > verifyOtpAndAddBeneficiaryForBank \n ${m}`})}return p}async verifyOtpAndAddBeneficiaryForWallet({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.verifyOtpAndAddBeneficiaryForWallet().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.verifyOtpAndAddBeneficiaryForWallet().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > verifyOtpAndAddBeneficiaryForWallet \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.verifyOtpAndAddBeneficiaryForWallet,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.WalletOtpResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Payment > verifyOtpAndAddBeneficiaryForWallet \n ${m}`})}return p}async walletLinkInitate({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.walletLinkInitate().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.walletLinkInitate().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > walletLinkInitate \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.walletLinkInitate,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.WalletResponseSchema().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Payment > walletLinkInitate \n ${m}`})}return p}}},1068:(e,t,r)=>{const a=r(9955);class n{static AggregatorConfigDetail(){return a.object({sdk:a.boolean().allow(null),secret:a.string().allow(""),api:a.string().allow("").allow(null),pin:a.string().allow("").allow(null),config_type:a.string().allow(""),merchant_key:a.string().allow("").allow(null),verify_api:a.string().allow("").allow(null),key:a.string().allow(""),user_id:a.string().allow("").allow(null),merchant_id:a.string().allow("").allow(null)})}static AggregatorsConfigDetailResponse(){return a.object({success:a.boolean().required(),razorpay:n.AggregatorConfigDetail(),juspay:n.AggregatorConfigDetail(),simpl:n.AggregatorConfigDetail(),payumoney:n.AggregatorConfigDetail(),rupifi:n.AggregatorConfigDetail(),mswipe:n.AggregatorConfigDetail(),stripe:n.AggregatorConfigDetail(),ccavenue:n.AggregatorConfigDetail(),env:a.string().allow("").required()})}static ErrorCodeAndDescription(){return a.object({code:a.string().allow("").required(),description:a.string().allow("").required()})}static HttpErrorCodeAndResponse(){return a.object({error:n.ErrorCodeAndDescription(),success:a.boolean().required()})}static AttachCardRequest(){return a.object({nickname:a.string().allow(""),refresh:a.boolean().allow(null),card_id:a.string().allow("").allow(null).required(),name_on_card:a.string().allow("")})}static AttachCardsResponse(){return a.object({data:a.any().required(),success:a.boolean().required(),message:a.string().allow("")})}static CardPaymentGateway(){return a.object({api:a.string().allow("").allow(null),aggregator:a.string().allow("").required(),customer_id:a.string().allow("").allow(null)})}static ActiveCardPaymentGatewayResponse(){return a.object({cards:n.CardPaymentGateway().required(),success:a.boolean().required(),message:a.string().allow("").required()})}static Card(){return a.object({card_number:a.string().allow("").allow(null),card_name:a.string().allow("").allow(null),card_type:a.string().allow("").allow(null),card_brand_image:a.string().allow("").allow(null),card_reference:a.string().allow("").allow(null),card_issuer:a.string().allow("").allow(null),card_brand:a.string().allow("").allow(null),expired:a.boolean().allow(null),compliant_with_tokenisation_guidelines:a.boolean().allow(null),card_isin:a.string().allow("").allow(null),exp_year:a.number().allow(null),nickname:a.string().allow("").allow(null),aggregator_name:a.string().allow("").required(),card_fingerprint:a.string().allow("").allow(null),card_token:a.string().allow("").allow(null),exp_month:a.number().allow(null),card_id:a.string().allow("").allow(null)})}static ListCardsResponse(){return a.object({data:a.array().items(n.Card()),success:a.boolean().required(),message:a.string().allow("").required()})}static DeletehCardRequest(){return a.object({card_id:a.string().allow("").allow(null).required()})}static DeleteCardsResponse(){return a.object({success:a.boolean().required(),message:a.string().allow("").allow(null)})}static ValidateCustomerRequest(){return a.object({aggregator:a.string().allow("").required(),transaction_amount_in_paise:a.number().required(),phone_number:a.string().allow("").required(),billing_address:a.any(),order_items:a.array().items(a.any()),payload:a.string().allow("").allow(null),merchant_params:a.any(),delivery_address:a.any()})}static ValidateCustomerResponse(){return a.object({data:a.any().required(),success:a.boolean().required(),message:a.string().allow("").required()})}static ChargeCustomerRequest(){return a.object({verified:a.boolean().allow(null),aggregator:a.string().allow("").required(),order_id:a.string().allow("").required(),transaction_token:a.string().allow("").allow(null),amount:a.number().allow(null).required()})}static ChargeCustomerResponse(){return a.object({status:a.string().allow("").required(),cart_id:a.string().allow("").allow(null),success:a.boolean().required(),aggregator:a.string().allow("").required(),message:a.string().allow("").required(),order_id:a.string().allow("").required(),delivery_address_id:a.string().allow("").allow(null)})}static PaymentInitializationRequest(){return a.object({razorpay_payment_id:a.string().allow("").allow(null),method:a.string().allow("").required(),device_id:a.string().allow("").allow(null),aggregator:a.string().allow("").required(),customer_id:a.string().allow("").required(),contact:a.string().allow("").required(),merchant_order_id:a.string().allow("").required(),vpa:a.string().allow("").allow(null),order_id:a.string().allow("").required(),currency:a.string().allow("").required(),timeout:a.number().allow(null),amount:a.number().allow(null).required(),email:a.string().allow("").required()})}static PaymentInitializationResponse(){return a.object({status:a.string().allow(""),razorpay_payment_id:a.string().allow("").allow(null),aggregator_order_id:a.string().allow(""),method:a.string().allow("").required(),success:a.boolean().required(),upi_poll_url:a.string().allow("").allow(null),virtual_id:a.string().allow("").allow(null),device_id:a.string().allow("").allow(null),polling_url:a.string().allow("").required(),aggregator:a.string().allow("").required(),merchant_order_id:a.string().allow("").required(),customer_id:a.string().allow("").allow(null),vpa:a.string().allow("").allow(null),currency:a.string().allow("").allow(null),timeout:a.number().allow(null),amount:a.number().allow(null),bqr_image:a.string().allow("").allow(null)})}static PaymentStatusUpdateRequest(){return a.object({status:a.string().allow("").required(),merchant_transaction_id:a.string().allow("").required(),method:a.string().allow("").required(),device_id:a.string().allow("").allow(null),aggregator:a.string().allow("").required(),customer_id:a.string().allow("").required(),contact:a.string().allow("").required(),merchant_order_id:a.string().allow("").required(),vpa:a.string().allow(""),order_id:a.string().allow("").required(),currency:a.string().allow("").required(),amount:a.number().allow(null).required(),email:a.string().allow("").required()})}static PaymentStatusUpdateResponse(){return a.object({status:a.string().allow("").required(),success:a.boolean().allow(null),retry:a.boolean().required(),redirect_url:a.string().allow("").allow(null),aggregator_name:a.string().allow("").required()})}static IntentAppErrorList(){return a.object({code:a.string().allow("").allow(null),package_name:a.string().allow("").allow(null)})}static PaymentModeLogo(){return a.object({large:a.string().allow("").required(),small:a.string().allow("").required()})}static IntentApp(){return a.object({code:a.string().allow("").allow(null),package_name:a.string().allow("").allow(null),logos:n.PaymentModeLogo(),display_name:a.string().allow("").allow(null)})}static PaymentModeList(){return a.object({card_number:a.string().allow("").allow(null),merchant_code:a.string().allow("").allow(null),card_reference:a.string().allow("").allow(null),card_issuer:a.string().allow("").allow(null),compliant_with_tokenisation_guidelines:a.boolean().allow(null),code:a.string().allow("").allow(null),cod_limit:a.number().allow(null),intent_flow:a.boolean().allow(null),fynd_vpa:a.string().allow("").allow(null),intent_app_error_dict_list:a.array().items(n.IntentAppErrorList()),aggregator_name:a.string().allow("").required(),card_fingerprint:a.string().allow("").allow(null),intent_app_error_list:a.array().items(a.string().allow("")),intent_app:a.array().items(n.IntentApp()),expired:a.boolean().allow(null),retry_count:a.number().allow(null),exp_year:a.number().allow(null),exp_month:a.number().allow(null),card_id:a.string().allow("").allow(null),remaining_limit:a.number().allow(null),display_priority:a.number().allow(null),card_brand:a.string().allow("").allow(null),cod_limit_per_order:a.number().allow(null),logo_url:n.PaymentModeLogo(),nickname:a.string().allow("").allow(null),card_name:a.string().allow("").allow(null),card_type:a.string().allow("").allow(null),card_brand_image:a.string().allow("").allow(null),display_name:a.string().allow("").allow(null),card_isin:a.string().allow("").allow(null),timeout:a.number().allow(null),card_token:a.string().allow("").allow(null),name:a.string().allow("").allow(null),meta:a.any().allow(null)})}static RootPaymentMode(){return a.object({is_pay_by_card_pl:a.boolean().allow(null),add_card_enabled:a.boolean().allow(null),display_priority:a.number().required(),display_name:a.string().allow("").required(),list:a.array().items(n.PaymentModeList()),save_card:a.boolean().allow(null),aggregator_name:a.string().allow("").allow(null),name:a.string().allow("").required(),anonymous_enable:a.boolean().allow(null)})}static AggregatorRoute(){return a.object({data:a.any().allow(null),payment_flow_data:a.string().allow("").allow(null),payment_flow:a.string().allow("").allow(null),api_link:a.string().allow("").allow(null)})}static PaymentFlow(){return a.object({bqr_razorpay:n.AggregatorRoute(),fynd:n.AggregatorRoute(),epaylater:n.AggregatorRoute(),razorpay:n.AggregatorRoute(),juspay:n.AggregatorRoute(),ajiodhan:n.AggregatorRoute(),simpl:n.AggregatorRoute(),rupifi:n.AggregatorRoute(),mswipe:n.AggregatorRoute(),stripe:n.AggregatorRoute(),ccavenue:n.AggregatorRoute(),payubiz:n.AggregatorRoute(),jiopay:n.AggregatorRoute(),upi_razorpay:n.AggregatorRoute()})}static PaymentOptionAndFlow(){return a.object({payment_option:a.array().items(n.RootPaymentMode()).required(),payment_flows:n.PaymentFlow().required()})}static AdvanceObject(){return a.object({is_active:a.boolean().allow(null),amount:a.number(),time_unit:a.string().allow("").allow(null),description:a.string().allow("").allow(null),display_name:a.string().allow("").allow(null),prepayment_type:a.string().allow("").allow(null),prepayment_value:a.number().allow(null),cancellation_type:a.string().allow("").allow(null),refund_time_limit:a.number().allow(null),all_prepayment_type:a.array().items(a.string().allow("").allow(null)),allow_custom_advance_amount:a.boolean().allow(null)})}static SplitObject(){return a.object({total_number_of_splits:a.number().allow(null),splits_remaining:a.number().allow(null),amount_remaining:a.number().allow(null)})}static AdvancePaymentObject(){return a.object({name:a.string().allow("").allow(null),display_priority:a.number().allow(null),payment_mode_id:a.number().allow(null),display_name:a.string().allow("").allow(null),list:a.array().items(n.PaymentModeList()),split:n.SplitObject(),advance:n.AdvanceObject()})}static PaymentModeRouteResponse(){return a.object({payment_options:n.PaymentOptionAndFlow().required(),success:a.boolean().required(),payment_breakup:a.any(),advance_payment:a.array().items(n.AdvancePaymentObject())})}static WalletLinkRequestSchema(){return a.object({aggregator:a.string().allow("").required(),mobile:a.string().allow("").required(),wallet_code:a.string().allow("").required()})}static WalletVerifyRequestSchema(){return a.object({aggregator:a.string().allow("").required(),link_token:a.string().allow("").required(),otp:a.number().required()})}static WalletDelinkRequestSchema(){return a.object({aggregator:a.string().allow("").required(),wallet_code:a.string().allow("").required()})}static WalletResponseSchema(){return a.object({data:a.any().required(),success:a.boolean().required()})}static RupifiBannerData(){return a.object({status:a.string().allow(""),kyc_url:a.string().allow("")})}static RupifiBannerResponse(){return a.object({data:n.RupifiBannerData().required(),success:a.boolean().required()})}static EpaylaterBannerData(){return a.object({status:a.string().allow(""),message:a.string().allow(""),display:a.boolean().required()})}static EpaylaterBannerResponse(){return a.object({data:n.EpaylaterBannerData().required(),success:a.boolean().required()})}static ResendOrCancelPaymentRequest(){return a.object({order_id:a.string().allow("").required(),device_id:a.string().allow("").allow(null),request_type:a.string().allow("").required()})}static LinkStatus(){return a.object({status:a.boolean().required(),message:a.string().allow("").required()})}static ResendOrCancelPaymentResponse(){return a.object({data:n.LinkStatus().required(),success:a.boolean().required()})}static renderHTMLRequest(){return a.object({returntype:a.string().allow("").allow(null),base64_html:a.string().allow("").required()})}static renderHTMLResponse(){return a.object({html:a.string().allow("").required()})}static ValidateVPARequest(){return a.object({upi_vpa:a.string().allow("").required()})}static ValidateUPI(){return a.object({status:a.string().allow("").required(),customer_name:a.string().allow("").required(),is_valid:a.boolean().required(),upi_vpa:a.string().allow("").required()})}static ValidateVPAResponse(){return a.object({data:n.ValidateUPI().required(),success:a.boolean().required()})}static CardDetails(){return a.object({status:a.boolean().required(),country:a.string().allow("").required(),bank_code:a.string().allow("").allow(null).required(),id:a.string().allow("").required(),card_exp_year:a.string().allow(""),card_brand:a.string().allow("").required(),type:a.string().allow("").required(),card_sub_type:a.string().allow("").allow(null).required(),is_domestic_card:a.boolean().required(),name_on_card:a.string().allow(""),card_exp_month:a.string().allow(""),extended_card_type:a.string().allow("").required(),card_object:a.string().allow("").required(),card_token:a.string().allow(""),user:a.string().allow(""),bank:a.string().allow("").required()})}static CardDetailsResponse(){return a.object({data:n.CardDetails().required(),success:a.boolean().required()})}static TransferItemsDetails(){return a.object({id:a.number().required(),display_name:a.string().allow(""),logo_large:a.string().allow("").required(),logo_small:a.string().allow("").required(),name:a.string().allow("").required()})}static TransferModeDetails(){return a.object({items:a.array().items(n.TransferItemsDetails()),display_name:a.string().allow("").required()})}static TransferModeResponse(){return a.object({data:a.array().items(n.TransferModeDetails()).required()})}static UpdateRefundTransferModeRequest(){return a.object({enable:a.boolean().required(),transfer_mode:a.string().allow("").required()})}static UpdateRefundTransferModeResponse(){return a.object({success:a.boolean()})}static OrderBeneficiaryDetails(){return a.object({modified_on:a.string().allow("").required(),account_no:a.string().allow("").required(),mobile:a.string().allow(""),bank_name:a.string().allow("").required(),ifsc_code:a.string().allow("").required(),is_active:a.boolean().required(),beneficiary_id:a.string().allow("").required(),account_holder:a.string().allow("").required(),email:a.string().allow("").required(),delights_user_name:a.string().allow("").allow(null),id:a.number().required(),transfer_mode:a.string().allow("").required(),branch_name:a.string().allow(""),created_on:a.string().allow("").required(),subtitle:a.string().allow("").required(),comment:a.string().allow(""),address:a.string().allow("").required(),title:a.string().allow("").required(),display_name:a.string().allow("").required()})}static OrderBeneficiaryResponse(){return a.object({show_beneficiary_details:a.boolean(),beneficiaries:a.array().items(n.OrderBeneficiaryDetails())})}static NotFoundResourceError(){return a.object({code:a.string().allow("").required(),description:a.string().allow("").required(),success:a.boolean().required()})}static IfscCodeResponse(){return a.object({branch_name:a.string().allow("").required(),success:a.boolean(),bank_name:a.string().allow("").required()})}static ErrorCodeDescription(){return a.object({code:a.string().allow("").required(),description:a.string().allow("").required(),success:a.boolean().required()})}static AddBeneficiaryViaOtpVerificationRequest(){return a.object({request_id:a.string().allow("").required(),hash_key:a.string().allow("").required(),otp:a.string().allow("").required()})}static AddBeneficiaryViaOtpVerificationResponse(){return a.object({success:a.boolean(),message:a.string().allow("").required()})}static WrongOtpError(){return a.object({is_verified_flag:a.boolean().required(),description:a.string().allow("").required(),success:a.string().allow("").required()})}static BeneficiaryModeDetails(){return a.object({account_no:a.string().allow("").required(),address:a.string().allow(""),mobile:a.string().allow("").required(),bank_name:a.string().allow("").required(),comment:a.string().allow(""),ifsc_code:a.string().allow("").required(),vpa:a.string().allow("").allow(null),branch_name:a.string().allow("").required(),account_holder:a.string().allow("").required(),wallet:a.string().allow("").allow(null),email:a.string().allow("").required()})}static AddBeneficiaryDetailsRequest(){return a.object({delights:a.boolean(),shipment_id:a.string().allow("").required(),details:n.BeneficiaryModeDetails().required(),otp:a.string().allow(""),order_id:a.string().allow("").required(),transfer_mode:a.string().allow("").required(),request_id:a.string().allow("")})}static RefundAccountResponse(){return a.object({is_verified_flag:a.boolean(),data:a.any(),success:a.boolean().required(),message:a.string().allow("").required()})}static BankDetailsForOTP(){return a.object({account_no:a.string().allow("").required(),bank_name:a.string().allow("").required(),ifsc_code:a.string().allow("").required(),branch_name:a.string().allow("").required(),account_holder:a.string().allow("").required()})}static AddBeneficiaryDetailsOTPRequest(){return a.object({order_id:a.string().allow("").required(),details:n.BankDetailsForOTP().required()})}static WalletOtpRequest(){return a.object({country_code:a.string().allow("").required(),mobile:a.string().allow("").required()})}static WalletOtpResponse(){return a.object({request_id:a.string().allow("").required(),is_verified_flag:a.string().allow("").required(),success:a.boolean()})}static SetDefaultBeneficiaryRequest(){return a.object({order_id:a.string().allow("").required(),beneficiary_id:a.string().allow("").required(),shipment_id:a.string().allow("")})}static SetDefaultBeneficiaryResponse(){return a.object({is_beneficiary_set:a.boolean().required(),success:a.boolean()})}static GetPaymentLinkResponse(){return a.object({status_code:a.number().required(),payment_link_current_status:a.string().allow("").allow(null),success:a.boolean().required(),polling_timeout:a.number().allow(null),payment_link_url:a.string().allow("").allow(null),external_order_id:a.string().allow("").allow(null),message:a.string().allow("").required(),merchant_name:a.string().allow("").allow(null),amount:a.number().allow(null)})}static ErrorDescription(){return a.object({payment_transaction_id:a.string().allow("").allow(null),expired:a.boolean().allow(null),merchant_order_id:a.string().allow("").allow(null),merchant_name:a.string().allow("").allow(null),msg:a.string().allow("").allow(null),cancelled:a.boolean().allow(null),amount:a.number().allow(null),invalid_id:a.boolean().allow(null)})}static ErrorResponse(){return a.object({status_code:a.number().required(),error:n.ErrorDescription(),message:a.string().allow("").required(),success:a.boolean().required()})}static CreatePaymentLinkMeta(){return a.object({cart_id:a.string().allow("").required(),checkout_mode:a.string().allow("").required(),assign_card_id:a.string().allow("").allow(null),amount:a.string().allow("").required()})}static CreatePaymentLinkRequest(){return a.object({description:a.string().allow("").allow(null),external_order_id:a.string().allow("").required(),mobile_number:a.string().allow("").required(),amount:a.number().required(),meta:n.CreatePaymentLinkMeta().required(),email:a.string().allow("").required()})}static CreatePaymentLinkResponse(){return a.object({status_code:a.number().required(),success:a.boolean().required(),polling_timeout:a.number().allow(null),payment_link_url:a.string().allow("").allow(null),message:a.string().allow("").required(),payment_link_id:a.string().allow("").allow(null)})}static CancelOrResendPaymentLinkRequest(){return a.object({payment_link_id:a.string().allow("").required()})}static ResendPaymentLinkResponse(){return a.object({status_code:a.number().required(),polling_timeout:a.number().allow(null),success:a.boolean().required(),message:a.string().allow("").required()})}static CancelPaymentLinkResponse(){return a.object({status_code:a.number().required(),success:a.boolean().required(),message:a.string().allow("").required()})}static PollingPaymentLinkResponse(){return a.object({status:a.string().allow("").allow(null),status_code:a.number().allow(null),success:a.boolean().allow(null),http_status:a.number().allow(null),message:a.string().allow("").allow(null),order_id:a.string().allow("").allow(null),redirect_url:a.string().allow("").allow(null),payment_link_id:a.string().allow("").allow(null),aggregator_name:a.string().allow("").allow(null),amount:a.number().allow(null)})}static PaymentMethodsMeta(){return a.object({merchant_code:a.string().allow("").required(),payment_gateway:a.string().allow("").required(),payment_identifier:a.string().allow("").required()})}static CreateOrderUserPaymentMethods(){return a.object({name:a.string().allow("").required(),mode:a.string().allow("").required(),meta:n.PaymentMethodsMeta().required()})}static CreateOrderUserRequest(){return a.object({failure_callback_url:a.string().allow("").required(),currency:a.string().allow("").required(),payment_link_id:a.string().allow("").required(),payment_methods:n.CreateOrderUserPaymentMethods().required(),success_callback_url:a.string().allow("").required(),meta:a.any().allow(null)})}static CreateOrderUserData(){return a.object({method:a.string().allow("").allow(null),aggregator:a.string().allow("").allow(null),customer_id:a.string().allow("").allow(null),contact:a.string().allow("").allow(null),merchant_order_id:a.string().allow("").allow(null),order_id:a.string().allow("").allow(null),currency:a.string().allow("").allow(null),callback_url:a.string().allow("").allow(null),amount:a.number().allow(null),email:a.string().allow("").allow(null)})}static CreateOrderUserResponse(){return a.object({status_code:a.number().required(),success:a.boolean().required(),data:n.CreateOrderUserData(),message:a.string().allow("").required(),order_id:a.string().allow("").allow(null),callback_url:a.string().allow("").allow(null),payment_confirm_url:a.string().allow("").allow(null)})}static BalanceDetails(){return a.object({formatted_value:a.string().allow("").allow(null),currency:a.string().allow("").allow(null),value:a.number().allow(null)})}static CreditSummary(){return a.object({total_due_amount:n.BalanceDetails(),status:a.string().allow("").allow(null),limit:n.BalanceDetails(),credit_line_id:a.string().allow("").allow(null),amount_available:n.BalanceDetails(),due_amount:n.BalanceDetails(),due_date:a.string().allow("").allow(null),balance:n.BalanceDetails(),status_message:a.string().allow("").allow(null),repayment_url:a.string().allow("").allow(null),soa_url:a.string().allow("").allow(null),is_eligible_for_txn:a.boolean().allow(null),merchant_customer_ref_id:a.string().allow("").allow(null),buyer_status:a.string().allow("").allow(null),activation_url:a.string().allow("").allow(null)})}static CustomerCreditSummaryResponse(){return a.object({data:n.CreditSummary(),success:a.boolean().required()})}static RedirectURL(){return a.object({status:a.boolean().required(),signup_url:a.string().allow("").required()})}static RedirectToAggregatorResponse(){return a.object({data:n.RedirectURL().required(),success:a.boolean().required()})}static CreditDetail(){return a.object({status:a.boolean().required(),is_registered:a.boolean().required(),signup_url:a.string().allow("").required()})}static CheckCreditResponse(){return a.object({data:n.CreditDetail().required(),success:a.boolean().required()})}static KYCAddress(){return a.object({city:a.string().allow("").required(),addressline2:a.string().allow("").allow(null),state:a.string().allow("").required(),ownership_type:a.string().allow("").allow(null),pincode:a.string().allow("").required(),land_mark:a.string().allow("").allow(null),addressline1:a.string().allow("").required()})}static UserPersonalInfoInDetails(){return a.object({first_name:a.string().allow("").required(),voter_id:a.string().allow("").allow(null),gender:a.string().allow("").allow(null),dob:a.string().allow("").allow(null).required(),passport:a.string().allow("").allow(null),fathers_name:a.string().allow("").allow(null),mothers_name:a.string().allow("").allow(null),middle_name:a.string().allow("").allow(null),last_name:a.string().allow("").allow(null),pan:a.string().allow("").allow(null),driving_license:a.string().allow("").allow(null),email_verified:a.boolean().required(),address_as_per_id:n.KYCAddress().required(),mobile_verified:a.boolean().required(),phone:a.string().allow("").required(),email:a.string().allow("").allow(null)})}static MarketplaceInfo(){return a.object({date_of_joining:a.string().allow("").allow(null),name:a.string().allow("").required(),membership_id:a.string().allow("").required()})}static BusinessDetails(){return a.object({business_ownership_type:a.string().allow("").allow(null),vintage:a.string().allow("").allow(null),gstin:a.string().allow("").allow(null),pan:a.string().allow("").allow(null),entity_type:a.string().allow("").allow(null),shop_and_establishment:a.any(),fssai:a.string().allow("").allow(null),fda:a.string().allow("").allow(null),business_type:a.string().allow("").allow(null),name:a.string().allow("").allow(null),address:n.KYCAddress()})}static DeviceDetails(){return a.object({identification_number:a.string().allow("").allow(null),identifier_type:a.string().allow("").allow(null),device_model:a.string().allow("").allow(null),device_make:a.string().allow("").allow(null),device_type:a.string().allow("").allow(null),os:a.string().allow("").allow(null),os_version:a.string().allow("").allow(null)})}static CustomerOnboardingRequest(){return a.object({personal_info:n.UserPersonalInfoInDetails(),mcc:a.string().allow("").allow(null),aggregator:a.string().allow("").required(),marketplace_info:n.MarketplaceInfo(),source:a.string().allow("").required(),business_info:n.BusinessDetails(),device:n.DeviceDetails()})}static OnboardSummary(){return a.object({redirect_url:a.string().allow(""),session:a.any(),status:a.boolean().required(),status_remark:a.string().allow(""),is_eligible_for_txn:a.boolean(),merchant_customer_ref_id:a.string().allow(""),activation_url:a.string().allow("")})}static CustomerOnboardingResponse(){return a.object({data:n.OnboardSummary().required(),success:a.boolean().required()})}static OutstandingOrderDetailsResponse(){return a.object({status_code:a.number().required(),data:a.array().items(a.any()),success:a.boolean().required(),message:a.string().allow("").allow(null)})}static PaidOrderDetailsResponse(){return a.object({status_code:a.number().required(),data:a.array().items(a.any()),success:a.boolean().required(),message:a.string().allow("").allow(null)})}static DeleteRefundAccountResponse(){return a.object({success:a.boolean().required(),message:a.string().allow("").allow(null).required()})}static RefundOptionsDetails(){return a.object({display_name:a.string().allow("").required(),id:a.number().required(),is_active:a.boolean().allow(null),name:a.string().allow("").required()})}static RefundOptions(){return a.object({items:n.RefundOptionsDetails().required()})}static OfflineRefundOptions(){return a.object({items:n.RefundOptionsDetails().required(),payment_modes:a.array().items(a.string().allow("")).required()})}static RefundOptionResponse(){return a.object({offline_refund_options:n.OfflineRefundOptions().required(),success:a.boolean().required(),refund_options:n.RefundOptions().required()})}static SelectedRefundOptionResponse(){return a.object({transfer_mode:a.any().required(),shipment_id:a.string().allow("").allow(null).required(),message:a.string().allow("").allow(null).required(),success:a.boolean().required()})}static WalletBeneficiaryDetails(){return a.object({beneficiary_id:a.string().allow("").required(),modified_on:a.string().allow("").required(),display_name:a.string().allow("").required(),id:a.number().required(),subtitle:a.string().allow("").required(),transfer_mode:a.string().allow("").required(),mobile:a.string().allow(""),is_active:a.boolean().required(),created_on:a.string().allow("").required(),address:a.string().allow("").required(),title:a.string().allow("").required(),wallet_address:a.string().allow("").required(),comment:a.string().allow(""),wallet:a.string().allow(""),email:a.string().allow("").required(),delights_user_name:a.string().allow("").allow(null)})}static UpiBeneficiaryDetails(){return a.object({beneficiary_id:a.string().allow("").required(),modified_on:a.string().allow("").required(),display_name:a.string().allow("").required(),id:a.number().required(),subtitle:a.string().allow("").required(),transfer_mode:a.string().allow("").required(),vpa:a.string().allow(""),mobile:a.string().allow(""),vpa_address:a.string().allow("").required(),created_on:a.string().allow("").required(),address:a.string().allow("").required(),title:a.string().allow("").required(),comment:a.string().allow(""),is_active:a.boolean().required(),email:a.string().allow("").required(),delights_user_name:a.string().allow("").allow(null)})}static BeneficiaryRefundOptions(){return a.object({bank:n.OrderBeneficiaryDetails(),wallet:n.WalletBeneficiaryDetails(),upi:n.UpiBeneficiaryDetails()})}static OrderBeneficiaryResponseSchemaV2(){return a.object({show_beneficiary_details:a.boolean().required(),data:n.BeneficiaryRefundOptions().required(),limit:a.any().required()})}static ValidateValidateAddressRequest(){return a.object({ifsc_code:a.string().allow("").allow(null),upi_vpa:a.string().allow("").allow(null),aggregator:a.string().allow("").allow(null)})}static VPADetails(){return a.object({is_valid:a.boolean().required(),upi_vpa:a.string().allow("").required(),status:a.string().allow("").required(),customer_name:a.string().allow("").required()})}static ValidateValidateAddressResponse(){return a.object({upi:n.VPADetails(),success:a.boolean().required(),ifsc:a.any()})}static PaymentMethodsMetaOrder(){return a.object({merchant_code:a.string().allow("").required(),payment_gateway:a.string().allow("").required(),payment_identifier:a.string().allow("").required()})}static PaymentOrderMethods(){return a.object({amount:a.number().required(),payment:a.string().allow(""),mode:a.string().allow("").required(),meta:n.PaymentMethodsMetaOrder().required(),name:a.string().allow("").required()})}static PaymentOrderRequest(){return a.object({payment_methods:a.array().items(n.PaymentOrderMethods()),order_id:a.string().allow("").required(),shipment_id:a.string().allow("")})}static PaymentOrderData(){return a.object({amount:a.number().allow(null),aggregator:a.string().allow("").allow(null),callback_url:a.string().allow("").allow(null),order_id:a.string().allow("").allow(null),customer_id:a.string().allow("").allow(null),merchant_order_id:a.string().allow("").allow(null),currency:a.string().allow("").allow(null),email:a.string().allow("").allow(null),contact:a.string().allow("").allow(null),method:a.string().allow("").allow(null)})}static PaymentOrderResponse(){return a.object({payment_confirm_url:a.string().allow("").allow(null),callback_url:a.string().allow("").allow(null),order_id:a.string().allow("").allow(null),success:a.boolean(),status_code:a.number().required(),data:n.PaymentOrderData(),message:a.string().allow("").required()})}static ShipmentRefundRequest(){return a.object({shipment_id:a.string().allow("").required(),order_id:a.string().allow("").required(),transfer_mode:a.string().allow("").required(),beneficiary_id:a.string().allow("").allow(null)})}static ShipmentRefundDetail(){return a.object({shipment_id:a.string().allow("").required(),order_id:a.string().allow("").required(),transfer_mode:a.string().allow("").required(),beneficiary_id:a.string().allow("").required()})}static ShipmentRefundResponse(){return a.object({data:n.ShipmentRefundDetail().required(),success:a.boolean().required(),message:a.string().allow("").allow(null).required()})}}e.exports=n},836:(e,t,r)=>{const a=r(9955),n=r(1068);e.exports=class{static addBeneficiaryDetails(){return a.object({body:n.AddBeneficiaryDetailsRequest().required()}).required()}static addRefundBankAccountUsingOTP(){return a.object({body:n.AddBeneficiaryDetailsOTPRequest().required()}).required()}static attachCardToCustomer(){return a.object({body:n.AttachCardRequest().required()}).required()}static cancelPaymentLink(){return a.object({body:n.CancelOrResendPaymentLinkRequest().required()}).required()}static cardDetails(){return a.object({cardInfo:a.string().allow("").required(),aggregator:a.string().allow("")}).required()}static checkAndUpdatePaymentStatus(){return a.object({body:n.PaymentStatusUpdateRequest().required()}).required()}static checkAndUpdatePaymentStatusPaymentLink(){return a.object({body:n.PaymentStatusUpdateRequest().required()}).required()}static checkCredit(){return a.object({aggregator:a.string().allow("")})}static createOrderHandlerPaymentLink(){return a.object({body:n.CreateOrderUserRequest().required()}).required()}static createPaymentLink(){return a.object({body:n.CreatePaymentLinkRequest().required()}).required()}static createPaymentOrder(){return a.object({body:n.PaymentOrderRequest().required()}).required()}static customerCreditSummary(){return a.object({aggregator:a.string().allow("")})}static customerOnboard(){return a.object({body:n.CustomerOnboardingRequest().required()}).required()}static deleteBeneficiaryDetails(){return a.object({beneficiaryId:a.string().allow("").required()}).required()}static deleteUserCard(){return a.object({body:n.DeletehCardRequest().required()}).required()}static delinkWallet(){return a.object({body:n.WalletDelinkRequestSchema().required()}).required()}static enableOrDisableRefundTransferMode(){return a.object({body:n.UpdateRefundTransferModeRequest().required()}).required()}static getActiveCardAggregator(){return a.object({refresh:a.boolean()})}static getActiveRefundTransferModes(){return a.object({})}static getActiveUserCards(){return a.object({forceRefresh:a.boolean()})}static getAggregatorsConfig(){return a.object({xApiToken:a.string().allow(""),refresh:a.boolean()})}static getEpaylaterBannerDetails(){return a.object({})}static getOrderBeneficiariesDetail(){return a.object({orderId:a.string().allow("").required()}).required()}static getPaymentLink(){return a.object({paymentLinkId:a.string().allow("")})}static getPaymentModeRoutes(){return a.object({amount:a.number().required(),cartId:a.string().allow(""),checkoutMode:a.string().allow(""),refresh:a.boolean(),orderId:a.string().allow(""),cardReference:a.string().allow(""),userDetails:a.string().allow(""),displaySplit:a.boolean(),advancePayment:a.boolean(),shipmentId:a.string().allow("")}).required()}static getPaymentModeRoutesPaymentLink(){return a.object({paymentLinkId:a.string().allow("").required()}).required()}static getPosPaymentModeRoutes(){return a.object({amount:a.number().required(),cartId:a.string().allow(""),pincode:a.string().allow("").required(),checkoutMode:a.string().allow(""),refresh:a.boolean(),cardReference:a.string().allow(""),orderType:a.string().allow("").required(),userDetails:a.string().allow("")}).required()}static getRefundOptions(){return a.object({configuration:a.string().allow("").required(),productType:a.string().allow(""),amount:a.string().allow("")}).required()}static getRupifiBannerDetails(){return a.object({})}static getSelectedRefundOption(){return a.object({shipmentId:a.string().allow("").required(),orderId:a.string().allow("").required()}).required()}static getUserBeneficiariesDetail(){return a.object({orderId:a.string().allow("").required()}).required()}static getUserBeneficiariesDetailV2(){return a.object({orderId:a.string().allow(""),shipmentId:a.string().allow(""),mop:a.string().allow("")})}static initialisePayment(){return a.object({body:n.PaymentInitializationRequest().required()}).required()}static initialisePaymentPaymentLink(){return a.object({body:n.PaymentInitializationRequest().required()}).required()}static linkWallet(){return a.object({body:n.WalletVerifyRequestSchema().required()}).required()}static outstandingOrderDetails(){return a.object({aggregator:a.string().allow("")})}static paidOrderDetails(){return a.object({aggregator:a.string().allow("")})}static pollingPaymentLink(){return a.object({paymentLinkId:a.string().allow("")})}static redirectToAggregator(){return a.object({source:a.string().allow(""),aggregator:a.string().allow("")})}static renderHTML(){return a.object({body:n.renderHTMLRequest().required()}).required()}static resendOrCancelPayment(){return a.object({body:n.ResendOrCancelPaymentRequest().required()}).required()}static resendPaymentLink(){return a.object({body:n.CancelOrResendPaymentLinkRequest().required()}).required()}static setRefundOptionforShipment(){return a.object({body:n.ShipmentRefundRequest().required()}).required()}static updateDefaultBeneficiary(){return a.object({body:n.SetDefaultBeneficiaryRequest().required()}).required()}static validateBeneficiaryAddress(){return a.object({body:n.ValidateValidateAddressRequest().required()}).required()}static validateVPA(){return a.object({body:n.ValidateVPARequest().required()}).required()}static verifyAndChargePayment(){return a.object({body:n.ChargeCustomerRequest().required()}).required()}static verifyCustomerForPayment(){return a.object({body:n.ValidateCustomerRequest().required()}).required()}static verifyIfscCode(){return a.object({ifscCode:a.string().allow("")})}static verifyOtpAndAddBeneficiaryForBank(){return a.object({body:n.AddBeneficiaryViaOtpVerificationRequest().required()}).required()}static verifyOtpAndAddBeneficiaryForWallet(){return a.object({body:n.WalletOtpRequest().required()}).required()}static walletLinkInitate(){return a.object({body:n.WalletLinkRequestSchema().required()}).required()}}},2336:(e,t,r)=>{const a=r(8336),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(9916),s=r(4776),i=(r(3768),r(6744)),l=r(1408),{Logger:c}=r(1544),u=r(9955);e.exports=class{constructor(e){this._conf=e,this._relativeUrls={addAddress:"/service/application/pos/cart/v1.0/address",addItems:"/service/application/pos/cart/v1.0/detail",applyCoupon:"/service/application/pos/cart/v1.0/coupon",applyRewardPoints:"/service/application/pos/cart/v1.0/redeem/points/",checkoutCart:"/service/application/pos/cart/v1.0/checkout",getAddressById:"/service/application/pos/cart/v1.0/address/{id}",getAddresses:"/service/application/pos/cart/v1.0/address",getAvailableDeliveryModes:"/service/application/pos/cart/v1.0/available-delivery-mode",getBulkDiscountOffers:"/service/application/pos/cart/v1.0/bulk-price",getCart:"/service/application/pos/cart/v1.0/detail",getCartLastModified:"/service/application/pos/cart/v1.0/detail",getCartShareLink:"/service/application/pos/cart/v1.0/share-cart",getCartSharedItems:"/service/application/pos/cart/v1.0/share-cart/{token}",getCoupons:"/service/application/pos/cart/v1.0/coupon",getItemCount:"/service/application/pos/cart/v1.0/basic",getShipments:"/service/application/pos/cart/v1.0/shipment",getStoreAddressByUid:"/service/application/pos/cart/v1.0/store-address",removeAddress:"/service/application/pos/cart/v1.0/address/{id}",removeCoupon:"/service/application/pos/cart/v1.0/coupon",selectAddress:"/service/application/pos/cart/v1.0/select-address",selectPaymentMode:"/service/application/pos/cart/v1.0/payment",updateAddress:"/service/application/pos/cart/v1.0/address/{id}",updateCart:"/service/application/pos/cart/v1.0/detail",updateCartMeta:"/service/application/pos/cart/v1.0/meta",updateCartWithSharedItems:"/service/application/pos/cart/v1.0/share-cart/{token}/{action}",updateShipments:"/service/application/pos/cart/v1.0/shipment",validateCouponForPayment:"/service/application/pos/cart/v1.0/payment/validate/"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async addAddress({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.addAddress().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.addAddress().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > addAddress \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.addAddress,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.SaveAddressResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > PosCart > addAddress \n ${m}`})}return p}async addItems({body:e,i:t,b:r,areaCode:u,buyNow:d,id:p,requestHeaders:g}={requestHeaders:{}},{responseHeaders:m}={responseHeaders:!1}){const{error:w}=i.addItems().validate({body:e,i:t,b:r,areaCode:u,buyNow:d,id:p},{abortEarly:!1,allowUnknown:!0});if(w)return Promise.reject(new n(w));const{error:f}=i.addItems().validate({body:e,i:t,b:r,areaCode:u,buyNow:d,id:p},{abortEarly:!1,allowUnknown:!1});f&&c({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > addItems \n ${f}`});const y={};y.i=t,y.b=r,y.area_code=u,y.buy_now=d,y.id=p;const b=await a.execute(this._conf,"post",s({url:this._urls.addItems,params:{}}),y,e,{...g},{responseHeaders:m});let h=b;m&&(h=b[0]);const{error:_}=l.AddCartDetailResponse().validate(h,{abortEarly:!1,allowUnknown:!0});if(_){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(_));c({level:"WARN",message:`Response Validation Warnings for application > PosCart > addItems \n ${_}`})}return b}async applyCoupon({body:e,i:t,b:r,p:u,id:d,buyNow:p,requestHeaders:g}={requestHeaders:{}},{responseHeaders:m}={responseHeaders:!1}){const{error:w}=i.applyCoupon().validate({body:e,i:t,b:r,p:u,id:d,buyNow:p},{abortEarly:!1,allowUnknown:!0});if(w)return Promise.reject(new n(w));const{error:f}=i.applyCoupon().validate({body:e,i:t,b:r,p:u,id:d,buyNow:p},{abortEarly:!1,allowUnknown:!1});f&&c({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > applyCoupon \n ${f}`});const y={};y.i=t,y.b=r,y.p=u,y.id=d,y.buy_now=p;const b=await a.execute(this._conf,"post",s({url:this._urls.applyCoupon,params:{}}),y,e,{...g},{responseHeaders:m});let h=b;m&&(h=b[0]);const{error:_}=l.CartDetailResponse().validate(h,{abortEarly:!1,allowUnknown:!0});if(_){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(_));c({level:"WARN",message:`Response Validation Warnings for application > PosCart > applyCoupon \n ${_}`})}return b}async applyRewardPoints({body:e,id:t,i:r,b:u,buyNow:d,requestHeaders:p}={requestHeaders:{}},{responseHeaders:g}={responseHeaders:!1}){const{error:m}=i.applyRewardPoints().validate({body:e,id:t,i:r,b:u,buyNow:d},{abortEarly:!1,allowUnknown:!0});if(m)return Promise.reject(new n(m));const{error:w}=i.applyRewardPoints().validate({body:e,id:t,i:r,b:u,buyNow:d},{abortEarly:!1,allowUnknown:!1});w&&c({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > applyRewardPoints \n ${w}`});const f={};f.id=t,f.i=r,f.b=u,f.buy_now=d;const y=await a.execute(this._conf,"post",s({url:this._urls.applyRewardPoints,params:{}}),f,e,{...p},{responseHeaders:g});let b=y;g&&(b=y[0]);const{error:h}=l.CartDetailResponse().validate(b,{abortEarly:!1,allowUnknown:!0});if(h){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(h));c({level:"WARN",message:`Response Validation Warnings for application > PosCart > applyRewardPoints \n ${h}`})}return y}async checkoutCart({body:e,id:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.checkoutCart().validate({body:e,id:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.checkoutCart().validate({body:e,id:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > checkoutCart \n ${p}`});const g={};g.id=t;const m=await a.execute(this._conf,"post",s({url:this._urls.checkoutCart,params:{}}),g,e,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.CartCheckoutResponse().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > PosCart > checkoutCart \n ${f}`})}return m}async getAddressById({id:e,cartId:t,buyNow:r,mobileNo:u,checkoutMode:d,tags:p,isDefault:g,requestHeaders:m}={requestHeaders:{}},{responseHeaders:w}={responseHeaders:!1}){const{error:f}=i.getAddressById().validate({id:e,cartId:t,buyNow:r,mobileNo:u,checkoutMode:d,tags:p,isDefault:g},{abortEarly:!1,allowUnknown:!0});if(f)return Promise.reject(new n(f));const{error:y}=i.getAddressById().validate({id:e,cartId:t,buyNow:r,mobileNo:u,checkoutMode:d,tags:p,isDefault:g},{abortEarly:!1,allowUnknown:!1});y&&c({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > getAddressById \n ${y}`});const b={};b.cart_id=t,b.buy_now=r,b.mobile_no=u,b.checkout_mode=d,b.tags=p,b.is_default=g;const h=await a.execute(this._conf,"get",s({url:this._urls.getAddressById,params:{id:e}}),b,void 0,{...m},{responseHeaders:w});let _=h;w&&(_=h[0]);const{error:v}=l.Address().validate(_,{abortEarly:!1,allowUnknown:!0});if(v){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(v));c({level:"WARN",message:`Response Validation Warnings for application > PosCart > getAddressById \n ${v}`})}return h}async getAddresses({cartId:e,buyNow:t,mobileNo:r,checkoutMode:u,tags:d,isDefault:p,requestHeaders:g}={requestHeaders:{}},{responseHeaders:m}={responseHeaders:!1}){const{error:w}=i.getAddresses().validate({cartId:e,buyNow:t,mobileNo:r,checkoutMode:u,tags:d,isDefault:p},{abortEarly:!1,allowUnknown:!0});if(w)return Promise.reject(new n(w));const{error:f}=i.getAddresses().validate({cartId:e,buyNow:t,mobileNo:r,checkoutMode:u,tags:d,isDefault:p},{abortEarly:!1,allowUnknown:!1});f&&c({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > getAddresses \n ${f}`});const y={};y.cart_id=e,y.buy_now=t,y.mobile_no=r,y.checkout_mode=u,y.tags=d,y.is_default=p;const b=await a.execute(this._conf,"get",s({url:this._urls.getAddresses,params:{}}),y,void 0,{...g},{responseHeaders:m});let h=b;m&&(h=b[0]);const{error:_}=l.GetAddressesResponse().validate(h,{abortEarly:!1,allowUnknown:!0});if(_){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(_));c({level:"WARN",message:`Response Validation Warnings for application > PosCart > getAddresses \n ${_}`})}return b}async getAvailableDeliveryModes({areaCode:e,id:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.getAvailableDeliveryModes().validate({areaCode:e,id:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.getAvailableDeliveryModes().validate({areaCode:e,id:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > getAvailableDeliveryModes \n ${p}`});const g={};g.area_code=e,g.id=t;const m=await a.execute(this._conf,"get",s({url:this._urls.getAvailableDeliveryModes,params:{}}),g,void 0,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.CartDeliveryModesResponse().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > PosCart > getAvailableDeliveryModes \n ${f}`})}return m}async getBulkDiscountOffers({itemId:e,articleId:t,uid:r,slug:u,requestHeaders:d}={requestHeaders:{}},{responseHeaders:p}={responseHeaders:!1}){const{error:g}=i.getBulkDiscountOffers().validate({itemId:e,articleId:t,uid:r,slug:u},{abortEarly:!1,allowUnknown:!0});if(g)return Promise.reject(new n(g));const{error:m}=i.getBulkDiscountOffers().validate({itemId:e,articleId:t,uid:r,slug:u},{abortEarly:!1,allowUnknown:!1});m&&c({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > getBulkDiscountOffers \n ${m}`});const w={};w.item_id=e,w.article_id=t,w.uid=r,w.slug=u;const f=await a.execute(this._conf,"get",s({url:this._urls.getBulkDiscountOffers,params:{}}),w,void 0,{...d},{responseHeaders:p});let y=f;p&&(y=f[0]);const{error:b}=l.BulkPriceResponse().validate(y,{abortEarly:!1,allowUnknown:!0});if(b){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(b));c({level:"WARN",message:`Response Validation Warnings for application > PosCart > getBulkDiscountOffers \n ${b}`})}return f}async getCart({id:e,i:t,b:r,c:u,assignCardId:d,areaCode:p,buyNow:g,requestHeaders:m}={requestHeaders:{}},{responseHeaders:w}={responseHeaders:!1}){const{error:f}=i.getCart().validate({id:e,i:t,b:r,c:u,assignCardId:d,areaCode:p,buyNow:g},{abortEarly:!1,allowUnknown:!0});if(f)return Promise.reject(new n(f));const{error:y}=i.getCart().validate({id:e,i:t,b:r,c:u,assignCardId:d,areaCode:p,buyNow:g},{abortEarly:!1,allowUnknown:!1});y&&c({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > getCart \n ${y}`});const b={};b.id=e,b.i=t,b.b=r,b.c=u,b.assign_card_id=d,b.area_code=p,b.buy_now=g;const h=await a.execute(this._conf,"get",s({url:this._urls.getCart,params:{}}),b,void 0,{...m},{responseHeaders:w});let _=h;w&&(_=h[0]);const{error:v}=l.CartDetailResponse().validate(_,{abortEarly:!1,allowUnknown:!0});if(v){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(v));c({level:"WARN",message:`Response Validation Warnings for application > PosCart > getCart \n ${v}`})}return h}async getCartLastModified({id:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:l}=i.getCartLastModified().validate({id:e},{abortEarly:!1,allowUnknown:!0});if(l)return Promise.reject(new n(l));const{error:d}=i.getCartLastModified().validate({id:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > getCartLastModified \n ${d}`});const p={};p.id=e;const g=await a.execute(this._conf,"head",s({url:this._urls.getCartLastModified,params:{}}),p,void 0,{...t},{responseHeaders:r});let m=g;r&&(m=g[0]);const{error:w}=u.string().allow("").validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > PosCart > getCartLastModified \n ${w}`})}return g}async getCartShareLink({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getCartShareLink().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getCartShareLink().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > getCartShareLink \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.getCartShareLink,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.GetShareCartLinkResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > PosCart > getCartShareLink \n ${m}`})}return p}async getCartSharedItems({token:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getCartSharedItems().validate({token:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getCartSharedItems().validate({token:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > getCartSharedItems \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getCartSharedItems,params:{token:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.SharedCartResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > PosCart > getCartSharedItems \n ${m}`})}return p}async getCoupons({id:e,buyNow:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.getCoupons().validate({id:e,buyNow:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.getCoupons().validate({id:e,buyNow:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > getCoupons \n ${p}`});const g={};g.id=e,g.buy_now=t;const m=await a.execute(this._conf,"get",s({url:this._urls.getCoupons,params:{}}),g,void 0,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.GetCouponResponse().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > PosCart > getCoupons \n ${f}`})}return m}async getItemCount({id:e,buyNow:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.getItemCount().validate({id:e,buyNow:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.getItemCount().validate({id:e,buyNow:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > getItemCount \n ${p}`});const g={};g.id=e,g.buy_now=t;const m=await a.execute(this._conf,"get",s({url:this._urls.getItemCount,params:{}}),g,void 0,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.CartItemCountResponse().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > PosCart > getItemCount \n ${f}`})}return m}async getShipments({pickAtStoreUid:e,orderingStoreId:t,p:r,id:u,addressId:d,areaCode:p,orderType:g,requestHeaders:m}={requestHeaders:{}},{responseHeaders:w}={responseHeaders:!1}){const{error:f}=i.getShipments().validate({pickAtStoreUid:e,orderingStoreId:t,p:r,id:u,addressId:d,areaCode:p,orderType:g},{abortEarly:!1,allowUnknown:!0});if(f)return Promise.reject(new n(f));const{error:y}=i.getShipments().validate({pickAtStoreUid:e,orderingStoreId:t,p:r,id:u,addressId:d,areaCode:p,orderType:g},{abortEarly:!1,allowUnknown:!1});y&&c({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > getShipments \n ${y}`});const b={};b.pick_at_store_uid=e,b.ordering_store_id=t,b.p=r,b.id=u,b.address_id=d,b.area_code=p,b.order_type=g;const h=await a.execute(this._conf,"get",s({url:this._urls.getShipments,params:{}}),b,void 0,{...m},{responseHeaders:w});let _=h;w&&(_=h[0]);const{error:v}=l.CartShipmentsResponse().validate(_,{abortEarly:!1,allowUnknown:!0});if(v){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(v));c({level:"WARN",message:`Response Validation Warnings for application > PosCart > getShipments \n ${v}`})}return h}async getStoreAddressByUid({storeUid:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getStoreAddressByUid().validate({storeUid:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getStoreAddressByUid().validate({storeUid:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > getStoreAddressByUid \n ${d}`});const p={};p.store_uid=e;const g=await a.execute(this._conf,"get",s({url:this._urls.getStoreAddressByUid,params:{}}),p,void 0,{...t},{responseHeaders:r});let m=g;r&&(m=g[0]);const{error:w}=l.StoreDetailsResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > PosCart > getStoreAddressByUid \n ${w}`})}return g}async removeAddress({id:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.removeAddress().validate({id:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.removeAddress().validate({id:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > removeAddress \n ${d}`});const p=await a.execute(this._conf,"delete",s({url:this._urls.removeAddress,params:{id:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.DeleteAddressResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > PosCart > removeAddress \n ${m}`})}return p}async removeCoupon({id:e,buyNow:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.removeCoupon().validate({id:e,buyNow:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.removeCoupon().validate({id:e,buyNow:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > removeCoupon \n ${p}`});const g={};g.id=e,g.buy_now=t;const m=await a.execute(this._conf,"delete",s({url:this._urls.removeCoupon,params:{}}),g,void 0,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.CartDetailResponse().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > PosCart > removeCoupon \n ${f}`})}return m}async selectAddress({body:e,cartId:t,buyNow:r,i:u,b:d,requestHeaders:p}={requestHeaders:{}},{responseHeaders:g}={responseHeaders:!1}){const{error:m}=i.selectAddress().validate({body:e,cartId:t,buyNow:r,i:u,b:d},{abortEarly:!1,allowUnknown:!0});if(m)return Promise.reject(new n(m));const{error:w}=i.selectAddress().validate({body:e,cartId:t,buyNow:r,i:u,b:d},{abortEarly:!1,allowUnknown:!1});w&&c({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > selectAddress \n ${w}`});const f={};f.cart_id=t,f.buy_now=r,f.i=u,f.b=d;const y=await a.execute(this._conf,"post",s({url:this._urls.selectAddress,params:{}}),f,e,{...p},{responseHeaders:g});let b=y;g&&(b=y[0]);const{error:h}=l.CartDetailResponse().validate(b,{abortEarly:!1,allowUnknown:!0});if(h){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(h));c({level:"WARN",message:`Response Validation Warnings for application > PosCart > selectAddress \n ${h}`})}return y}async selectPaymentMode({body:e,id:t,buyNow:r,requestHeaders:u}={requestHeaders:{}},{responseHeaders:d}={responseHeaders:!1}){const{error:p}=i.selectPaymentMode().validate({body:e,id:t,buyNow:r},{abortEarly:!1,allowUnknown:!0});if(p)return Promise.reject(new n(p));const{error:g}=i.selectPaymentMode().validate({body:e,id:t,buyNow:r},{abortEarly:!1,allowUnknown:!1});g&&c({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > selectPaymentMode \n ${g}`});const m={};m.id=t,m.buy_now=r;const w=await a.execute(this._conf,"put",s({url:this._urls.selectPaymentMode,params:{}}),m,e,{...u},{responseHeaders:d});let f=w;d&&(f=w[0]);const{error:y}=l.CartDetailResponse().validate(f,{abortEarly:!1,allowUnknown:!0});if(y){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(y));c({level:"WARN",message:`Response Validation Warnings for application > PosCart > selectPaymentMode \n ${y}`})}return w}async updateAddress({id:e,body:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.updateAddress().validate({id:e,body:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.updateAddress().validate({id:e,body:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > updateAddress \n ${p}`});const g=await a.execute(this._conf,"put",s({url:this._urls.updateAddress,params:{id:e}}),{},t,{...r},{responseHeaders:u});let m=g;u&&(m=g[0]);const{error:w}=l.UpdateAddressResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > PosCart > updateAddress \n ${w}`})}return g}async updateCart({body:e,id:t,i:r,b:u,areaCode:d,buyNow:p,requestHeaders:g}={requestHeaders:{}},{responseHeaders:m}={responseHeaders:!1}){const{error:w}=i.updateCart().validate({body:e,id:t,i:r,b:u,areaCode:d,buyNow:p},{abortEarly:!1,allowUnknown:!0});if(w)return Promise.reject(new n(w));const{error:f}=i.updateCart().validate({body:e,id:t,i:r,b:u,areaCode:d,buyNow:p},{abortEarly:!1,allowUnknown:!1});f&&c({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > updateCart \n ${f}`});const y={};y.id=t,y.i=r,y.b=u,y.area_code=d,y.buy_now=p;const b=await a.execute(this._conf,"put",s({url:this._urls.updateCart,params:{}}),y,e,{...g},{responseHeaders:m});let h=b;m&&(h=b[0]);const{error:_}=l.UpdateCartDetailResponse().validate(h,{abortEarly:!1,allowUnknown:!0});if(_){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(_));c({level:"WARN",message:`Response Validation Warnings for application > PosCart > updateCart \n ${_}`})}return b}async updateCartMeta({body:e,id:t,buyNow:r,requestHeaders:u}={requestHeaders:{}},{responseHeaders:d}={responseHeaders:!1}){const{error:p}=i.updateCartMeta().validate({body:e,id:t,buyNow:r},{abortEarly:!1,allowUnknown:!0});if(p)return Promise.reject(new n(p));const{error:g}=i.updateCartMeta().validate({body:e,id:t,buyNow:r},{abortEarly:!1,allowUnknown:!1});g&&c({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > updateCartMeta \n ${g}`});const m={};m.id=t,m.buy_now=r;const w=await a.execute(this._conf,"put",s({url:this._urls.updateCartMeta,params:{}}),m,e,{...u},{responseHeaders:d});let f=w;d&&(f=w[0]);const{error:y}=l.CartMetaResponse().validate(f,{abortEarly:!1,allowUnknown:!0});if(y){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(y));c({level:"WARN",message:`Response Validation Warnings for application > PosCart > updateCartMeta \n ${y}`})}return w}async updateCartWithSharedItems({token:e,action:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.updateCartWithSharedItems().validate({token:e,action:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.updateCartWithSharedItems().validate({token:e,action:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > updateCartWithSharedItems \n ${p}`});const g=await a.execute(this._conf,"post",s({url:this._urls.updateCartWithSharedItems,params:{token:e,action:t}}),{},void 0,{...r},{responseHeaders:u});let m=g;u&&(m=g[0]);const{error:w}=l.SharedCartResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > PosCart > updateCartWithSharedItems \n ${w}`})}return g}async updateShipments({body:e,i:t,p:r,id:u,addressId:d,areaCode:p,orderType:g,requestHeaders:m}={requestHeaders:{}},{responseHeaders:w}={responseHeaders:!1}){const{error:f}=i.updateShipments().validate({body:e,i:t,p:r,id:u,addressId:d,areaCode:p,orderType:g},{abortEarly:!1,allowUnknown:!0});if(f)return Promise.reject(new n(f));const{error:y}=i.updateShipments().validate({body:e,i:t,p:r,id:u,addressId:d,areaCode:p,orderType:g},{abortEarly:!1,allowUnknown:!1});y&&c({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > updateShipments \n ${y}`});const b={};b.i=t,b.p=r,b.id=u,b.address_id=d,b.area_code=p,b.order_type=g;const h=await a.execute(this._conf,"put",s({url:this._urls.updateShipments,params:{}}),b,e,{...m},{responseHeaders:w});let _=h;w&&(_=h[0]);const{error:v}=l.CartShipmentsResponse().validate(_,{abortEarly:!1,allowUnknown:!0});if(v){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(v));c({level:"WARN",message:`Response Validation Warnings for application > PosCart > updateShipments \n ${v}`})}return h}async validateCouponForPayment({id:e,buyNow:t,addressId:r,paymentMode:u,paymentIdentifier:d,aggregatorName:p,merchantCode:g,iin:m,network:w,type:f,cardId:y,requestHeaders:b}={requestHeaders:{}},{responseHeaders:h}={responseHeaders:!1}){const{error:_}=i.validateCouponForPayment().validate({id:e,buyNow:t,addressId:r,paymentMode:u,paymentIdentifier:d,aggregatorName:p,merchantCode:g,iin:m,network:w,type:f,cardId:y},{abortEarly:!1,allowUnknown:!0});if(_)return Promise.reject(new n(_));const{error:v}=i.validateCouponForPayment().validate({id:e,buyNow:t,addressId:r,paymentMode:u,paymentIdentifier:d,aggregatorName:p,merchantCode:g,iin:m,network:w,type:f,cardId:y},{abortEarly:!1,allowUnknown:!1});v&&c({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > validateCouponForPayment \n ${v}`});const R={};R.id=e,R.buy_now=t,R.address_id=r,R.payment_mode=u,R.payment_identifier=d,R.aggregator_name=p,R.merchant_code=g,R.iin=m,R.network=w,R.type=f,R.card_id=y;const k=await a.execute(this._conf,"get",s({url:this._urls.validateCouponForPayment,params:{}}),R,void 0,{...b},{responseHeaders:h});let P=k;h&&(P=k[0]);const{error:j}=l.PaymentCouponValidate().validate(P,{abortEarly:!1,allowUnknown:!0});if(j){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(j));c({level:"WARN",message:`Response Validation Warnings for application > PosCart > validateCouponForPayment \n ${j}`})}return k}}},1408:(e,t,r)=>{const a=r(9955);class n{static BuyRules(){return a.object({cart_conditions:a.any(),item_criteria:a.any()})}static DiscountRulesApp(){return a.object({matched_buy_rules:a.array().items(a.string().allow("")),offer:a.any(),item_criteria:a.any(),raw_offer:a.any()})}static FreeGiftItem(){return a.object({item_slug:a.string().allow(""),item_price_details:a.any(),item_images_url:a.array().items(a.string().allow("")),item_name:a.string().allow(""),item_id:a.number(),item_brand_name:a.string().allow("")})}static AppliedFreeArticles(){return a.object({quantity:a.number(),parent_item_identifier:a.string().allow(""),article_id:a.string().allow(""),free_gift_item_details:n.FreeGiftItem()})}static Ownership(){return a.object({payable_category:a.string().allow(""),payable_by:a.string().allow("")})}static AppliedPromotion(){return a.object({promotion_name:a.string().allow(""),mrp_promotion:a.boolean(),buy_rules:a.array().items(n.BuyRules()),promotion_type:a.string().allow(""),article_quantity:a.number(),amount:a.number(),discount_rules:a.array().items(n.DiscountRulesApp()),offer_text:a.string().allow(""),promo_id:a.string().allow(""),applied_free_articles:a.array().items(n.AppliedFreeArticles()),ownership:n.Ownership(),currency:n.CartCurrency(),promotion_group:a.string().allow("")})}static LoyaltyPoints(){return a.object({description:a.string().allow(""),is_applied:a.boolean(),applicable:a.number(),total:a.number()})}static RawBreakup(){return a.object({discount:a.number(),you_saved:a.number(),mrp_total:a.number(),gst_charges:a.number(),total:a.number(),vog:a.number(),coupon:a.number(),subtotal:a.number(),delivery_charge:a.number(),cod_charge:a.number(),fynd_cash:a.number(),gift_card:a.number(),convenience_fee:a.number()})}static DisplayBreakup(){return a.object({currency_code:a.string().allow(""),currency_symbol:a.string().allow(""),display:a.string().allow(""),message:a.array().items(a.string().allow("")),key:a.string().allow(""),value:a.number()})}static CouponBreakup(){return a.object({max_discount_value:a.number(),message:a.string().allow(""),is_applied:a.boolean(),uid:a.string().allow(""),type:a.string().allow(""),coupon_type:a.string().allow("").allow(null),sub_title:a.string().allow("").allow(null),coupon_value:a.number(),description:a.string().allow("").allow(null),code:a.string().allow(""),minimum_cart_value:a.number(),value:a.number(),title:a.string().allow("").allow(null)})}static CartBreakup(){return a.object({loyalty_points:n.LoyaltyPoints(),raw:n.RawBreakup(),display:a.array().items(n.DisplayBreakup()),coupon:n.CouponBreakup()})}static PaymentSelectionLock(){return a.object({default_options:a.string().allow(""),enabled:a.boolean(),payment_identifier:a.string().allow("")})}static PromiseTimestamp(){return a.object({max:a.number(),min:a.number()})}static PromiseFormatted(){return a.object({max:a.string().allow(""),min:a.string().allow("")})}static PromiseISOFormat(){return a.object({max:a.string().allow(""),min:a.string().allow("")})}static ShipmentPromise(){return a.object({timestamp:n.PromiseTimestamp(),formatted:n.PromiseFormatted(),iso:n.PromiseISOFormat()})}static StoreInfo(){return a.object({uid:a.number(),store_code:a.string().allow(""),name:a.string().allow("")})}static BaseInfo(){return a.object({uid:a.number(),name:a.string().allow("")})}static BasePrice(){return a.object({effective:a.number(),currency_code:a.string().allow(""),currency_symbol:a.string().allow(""),marked:a.number()})}static ArticlePriceInfo(){return a.object({converted:n.BasePrice(),base:n.BasePrice()})}static ProductArticle(){return a.object({meta:a.any(),store:n.StoreInfo(),_custom_json:a.any(),seller_identifier:a.string().allow(""),identifier:a.any(),quantity:a.number(),seller:n.BaseInfo(),mto_quantity:a.number(),uid:a.string().allow(""),cart_item_meta:a.any(),type:a.string().allow(""),price:n.ArticlePriceInfo(),parent_item_identifiers:a.any(),size:a.string().allow(""),extra_meta:a.any(),gift_card:a.any(),product_group_tags:a.array().items(a.string().allow("")),is_gift_visible:a.boolean(),tags:a.array().items(a.string().allow(""))})}static Tags(){return a.object({tags:a.any()})}static CategoryInfo(){return a.object({uid:a.number(),name:a.string().allow("")})}static ProductImage(){return a.object({aspect_ratio:a.string().allow(""),url:a.string().allow(""),secure_url:a.string().allow("")})}static ActionQuery(){return a.object({product_slug:a.array().items(a.string().allow(""))})}static ProductAction(){return a.object({query:n.ActionQuery(),url:a.string().allow(""),type:a.string().allow("")})}static CartProduct(){return a.object({teaser_tag:n.Tags(),_custom_json:a.any(),categories:a.array().items(n.CategoryInfo()),item_code:a.string().allow("").allow(null),tags:a.array().items(a.string().allow("")),uid:a.number(),type:a.string().allow(""),images:a.array().items(n.ProductImage()),name:a.string().allow(""),slug:a.string().allow(""),action:n.ProductAction(),brand:n.BaseInfo()})}static ProductPrice(){return a.object({effective:a.number(),currency_code:a.string().allow(""),currency_symbol:a.string().allow(""),marked:a.number(),selling:a.number(),add_on:a.number()})}static ProductPriceInfo(){return a.object({converted:n.ProductPrice(),base:n.ProductPrice()})}static CouponDetails(){return a.object({discount_total_quantity:a.number(),discount_single_quantity:a.number(),code:a.string().allow("")})}static PromoMeta(){return a.object({message:a.string().allow("")})}static ProductAvailabilitySize(){return a.object({is_available:a.boolean(),value:a.string().allow(""),display:a.string().allow("")})}static ProductAvailability(){return a.object({available_sizes:a.array().items(n.ProductAvailabilitySize()),other_store_quantity:a.number(),deliverable:a.boolean(),out_of_stock:a.boolean(),is_valid:a.boolean(),sizes:a.array().items(a.string().allow(""))})}static CartProductIdentifer(){return a.object({identifier:a.string().allow("")})}static CartProductInfo(){return a.object({custom_order:a.any(),article:n.ProductArticle(),product:n.CartProduct(),quantity:a.number(),moq:a.any(),promotions_applied:a.array().items(n.AppliedPromotion()),price_per_unit:n.ProductPriceInfo(),key:a.string().allow(""),price:n.ProductPriceInfo(),parent_item_identifiers:a.any(),is_set:a.boolean(),coupon_message:a.string().allow(""),message:a.string().allow(""),coupon:n.CouponDetails(),discount:a.string().allow(""),bulk_offer:a.any(),promo_meta:n.PromoMeta(),delivery_promise:n.ShipmentPromise(),availability:n.ProductAvailability(),identifiers:n.CartProductIdentifer().required()})}static CartCurrency(){return a.object({symbol:a.string().allow(""),code:a.string().allow("")})}static CartDetailResponse(){return a.object({comment:a.string().allow(""),coupon_text:a.string().allow(""),last_modified:a.string().allow(""),pan_config:a.any(),is_valid:a.boolean(),id:a.string().allow(""),applied_promo_details:a.array().items(n.AppliedPromotion()),checkout_mode:a.string().allow(""),restrict_checkout:a.boolean(),message:a.string().allow(""),buy_now:a.boolean(),breakup_values:n.CartBreakup(),delivery_charge_info:a.string().allow(""),payment_selection_lock:n.PaymentSelectionLock(),gstin:a.string().allow(""),delivery_promise:n.ShipmentPromise(),pan_no:a.string().allow(""),items:a.array().items(n.CartProductInfo()),currency:n.CartCurrency()})}static AddProductCart(){return a.object({seller_id:a.number(),_custom_json:a.any(),meta:a.any(),display:a.string().allow(""),quantity:a.number(),item_size:a.string().allow(""),item_id:a.number(),store_id:a.number(),pos:a.boolean(),parent_item_identifiers:a.array().items(a.object().pattern(/\S/,a.string().allow(""))),extra_meta:a.any(),product_group_tags:a.array().items(a.string().allow("").allow(null)),article_assignment:a.any(),article_id:a.string().allow("")})}static AddCartRequest(){return a.object({items:a.array().items(n.AddProductCart()),new_cart:a.boolean()})}static AddCartDetailResponse(){return a.object({cart:n.CartDetailResponse(),message:a.string().allow(""),partial:a.boolean(),success:a.boolean()})}static UpdateProductCart(){return a.object({meta:a.any(),_custom_json:a.any(),quantity:a.number(),item_size:a.string().allow(""),item_id:a.number(),item_index:a.number(),identifiers:n.CartProductIdentifer().required(),parent_item_identifiers:a.any(),extra_meta:a.any(),article_id:a.string().allow("")})}static UpdateCartRequest(){return a.object({operation:a.string().allow("").required(),items:a.array().items(n.UpdateProductCart())})}static UpdateCartDetailResponse(){return a.object({cart:n.CartDetailResponse(),message:a.string().allow(""),success:a.boolean()})}static CartItemCountResponse(){return a.object({user_cart_items_count:a.number()})}static PageCoupon(){return a.object({has_previous:a.boolean(),current:a.number(),total:a.number(),total_item_count:a.number(),has_next:a.boolean()})}static Coupon(){return a.object({max_discount_value:a.number(),coupon_code:a.string().allow(""),message:a.string().allow(""),is_applied:a.boolean(),coupon_type:a.string().allow("").allow(null),sub_title:a.string().allow(""),coupon_value:a.number(),is_applicable:a.boolean(),description:a.string().allow("").allow(null),minimum_cart_value:a.number(),title:a.string().allow(""),expires_on:a.string().allow("")})}static GetCouponResponse(){return a.object({page:n.PageCoupon(),available_coupon_list:a.array().items(n.Coupon())})}static ApplyCouponRequest(){return a.object({coupon_code:a.string().allow("").required()})}static OfferSeller(){return a.object({uid:a.number(),name:a.string().allow("")})}static OfferPrice(){return a.object({effective:a.number(),currency_code:a.string().allow(""),currency_symbol:a.string().allow(""),marked:a.number(),bulk_effective:a.number()})}static OfferItem(){return a.object({margin:a.number(),quantity:a.number(),total:a.number(),best:a.boolean(),type:a.string().allow(""),price:n.OfferPrice(),auto_applied:a.boolean()})}static BulkPriceOffer(){return a.object({seller:n.OfferSeller(),offers:a.array().items(n.OfferItem())})}static BulkPriceResponse(){return a.object({data:a.array().items(n.BulkPriceOffer())})}static RewardPointRequest(){return a.object({points:a.boolean().required()})}static GeoLocation(){return a.object({latitude:a.number(),longitude:a.number()})}static Address(){return a.object({meta:a.any(),country_code:a.string().allow(""),country_iso_code:a.string().allow(""),country:a.string().allow(""),id:a.string().allow(""),checkout_mode:a.string().allow(""),created_by_user_id:a.string().allow(""),area:a.string().allow(""),is_active:a.boolean(),city:a.string().allow(""),sector:a.string().allow(""),state_code:a.string().allow(""),address_type:a.string().allow(""),state:a.string().allow(""),is_default_address:a.boolean(),_custom_json:a.any(),country_phone_code:a.string().allow(""),area_code_slug:a.string().allow(""),area_code:a.string().allow(""),email:a.string().allow(""),google_map_point:a.any(),geo_location:n.GeoLocation(),address:a.string().allow(""),tags:a.array().items(a.string().allow("")),name:a.string().allow(""),landmark:a.string().allow(""),user_id:a.string().allow(""),phone:a.string().allow("")})}static GetAddressesResponse(){return a.object({pii_masking:a.boolean(),address:a.array().items(n.Address())})}static SaveAddressResponse(){return a.object({is_default_address:a.boolean(),success:a.boolean(),id:a.string().allow("")})}static UpdateAddressResponse(){return a.object({is_updated:a.boolean(),is_default_address:a.boolean(),success:a.boolean(),id:a.string().allow("")})}static DeleteAddressResponse(){return a.object({is_deleted:a.boolean(),id:a.string().allow("")})}static SelectCartAddressRequest(){return a.object({billing_address_id:a.string().allow(""),cart_id:a.string().allow(""),id:a.string().allow("")})}static UpdateCartPaymentRequest(){return a.object({payment_identifier:a.string().allow("").allow(null),aggregator_name:a.string().allow(""),address_id:a.string().allow(""),merchant_code:a.string().allow(""),payment_mode:a.string().allow(""),id:a.string().allow("")})}static CouponValidity(){return a.object({discount:a.number(),valid:a.boolean(),next_validation_required:a.boolean().allow(null),display_message_en:a.string().allow("").allow(null),code:a.string().allow("").allow(null),title:a.string().allow("")})}static PaymentCouponValidate(){return a.object({message:a.string().allow(""),success:a.boolean().required(),coupon_validity:n.CouponValidity()})}static ShipmentResponse(){return a.object({shipments:a.number(),fulfillment_type:a.string().allow(""),promise:n.ShipmentPromise(),dp_id:a.string().allow("").allow(null),box_type:a.string().allow("").allow(null),dp_options:a.any().allow(null),items:a.array().items(n.CartProductInfo()),order_type:a.string().allow(""),shipment_type:a.string().allow(""),fulfillment_id:a.number()})}static CartShipmentsResponse(){return a.object({comment:a.string().allow(""),restrict_checkout:a.boolean(),message:a.string().allow(""),buy_now:a.boolean(),coupon_text:a.string().allow(""),last_modified:a.string().allow(""),cart_id:a.number(),breakup_values:n.CartBreakup(),is_valid:a.boolean(),delivery_charge_info:a.string().allow(""),id:a.string().allow(""),payment_selection_lock:n.PaymentSelectionLock(),gstin:a.string().allow(""),shipments:a.array().items(n.ShipmentResponse()),error:a.boolean(),delivery_promise:n.ShipmentPromise(),uid:a.string().allow(""),checkout_mode:a.string().allow(""),currency:n.CartCurrency()})}static UpdateCartShipmentItem(){return a.object({quantity:a.number(),shipment_type:a.string().allow("").required(),article_uid:a.string().allow("").required()})}static UpdateCartShipmentRequest(){return a.object({shipments:a.array().items(n.UpdateCartShipmentItem()).required()})}static StaffCheckout(){return a.object({first_name:a.string().allow("").required(),user:a.string().allow("").required(),employee_code:a.string().allow(""),_id:a.string().allow("").required(),last_name:a.string().allow("").required()})}static CustomerDetails(){return a.object({mobile:a.string().allow("").required(),name:a.string().allow(""),email:a.string().allow("").allow(null)})}static CartCheckoutCustomMeta(){return a.object({value:a.string().allow("").required(),key:a.string().allow("").required()})}static Files(){return a.object({values:a.array().items(a.string().allow("")).required(),key:a.string().allow("").required()})}static CartPosCheckoutDetailRequest(){return a.object({meta:a.any(),pick_at_store_uid:a.number().allow(null),billing_address:a.any(),payment_auto_confirm:a.boolean(),callback_url:a.string().allow("").allow(null),delivery_address:a.any(),merchant_code:a.string().allow(""),order_type:a.string().allow("").required(),id:a.string().allow("").allow(null),staff:n.StaffCheckout(),customer_details:a.any().allow(null),address_id:a.string().allow(""),aggregator:a.string().allow(""),payment_params:a.any().allow(null),billing_address_id:a.string().allow(""),payment_mode:a.string().allow("").required(),pos:a.boolean(),extra_meta:a.any(),custom_meta:a.array().items(n.CartCheckoutCustomMeta()),payment_identifier:a.string().allow("").allow(null),ordering_store:a.number().allow(null),files:a.array().items(n.Files())})}static CheckCart(){return a.object({comment:a.string().allow(""),delivery_charges:a.number(),coupon_text:a.string().allow(""),last_modified:a.string().allow(""),is_valid:a.boolean(),cod_message:a.string().allow(""),success:a.boolean(),id:a.string().allow(""),uid:a.string().allow(""),checkout_mode:a.string().allow(""),error_message:a.string().allow(""),store_emps:a.array().items(a.any()),store_code:a.string().allow(""),restrict_checkout:a.boolean(),message:a.string().allow(""),buy_now:a.boolean(),cod_available:a.boolean(),cart_id:a.number(),breakup_values:n.CartBreakup(),order_id:a.string().allow(""),cod_charges:a.number(),delivery_charge_info:a.string().allow(""),user_type:a.string().allow(""),payment_selection_lock:n.PaymentSelectionLock(),gstin:a.string().allow(""),delivery_promise:n.ShipmentPromise(),items:a.array().items(n.CartProductInfo()),currency:n.CartCurrency(),delivery_charge_order_value:a.number()})}static CartCheckoutResponse(){return a.object({cart:n.CheckCart(),app_intercept_url:a.string().allow(""),callback_url:a.string().allow(""),message:a.string().allow(""),data:a.any(),order_id:a.string().allow(""),success:a.boolean(),payment_confirm_url:a.string().allow("")})}static GiftDetail(){return a.object({gift_message:a.string().allow(""),is_gift_applied:a.boolean()})}static ArticleGiftDetail(){return a.object({article_id:n.GiftDetail()})}static CartMetaRequest(){return a.object({comment:a.string().allow(""),gstin:a.string().allow(""),pick_up_customer_details:a.any(),checkout_mode:a.string().allow(""),gift_details:n.ArticleGiftDetail(),delivery_slots:a.any()})}static CartMetaResponse(){return a.object({message:a.string().allow(""),is_valid:a.boolean()})}static CartMetaMissingResponse(){return a.object({errors:a.array().items(a.string().allow(""))})}static CartDeliveryModesResponse(){return a.object({available_modes:a.array().items(a.string().allow("")),pickup_stores:a.array().items(a.number())})}static PickupStoreDetail(){return a.object({city:a.string().allow(""),address_type:a.string().allow(""),address:a.string().allow(""),state:a.string().allow(""),store_code:a.string().allow(""),uid:a.number(),pincode:a.number(),area_code_slug:a.string().allow(""),area_code:a.string().allow(""),email:a.string().allow(""),name:a.string().allow(""),landmark:a.string().allow(""),area:a.string().allow(""),country:a.string().allow(""),phone:a.string().allow(""),id:a.number()})}static StoreDetailsResponse(){return a.object({items:a.array().items(n.PickupStoreDetail())})}static GetShareCartLinkRequest(){return a.object({meta:a.any(),id:a.string().allow("")})}static GetShareCartLinkResponse(){return a.object({share_url:a.string().allow(""),token:a.string().allow("")})}static SharedCartDetails(){return a.object({meta:a.any(),user:a.any(),created_on:a.string().allow(""),token:a.string().allow(""),source:a.any()})}static SharedCart(){return a.object({comment:a.string().allow(""),coupon_text:a.string().allow(""),last_modified:a.string().allow(""),shared_cart_details:n.SharedCartDetails(),is_valid:a.boolean(),id:a.string().allow(""),uid:a.string().allow(""),checkout_mode:a.string().allow(""),restrict_checkout:a.boolean(),message:a.string().allow(""),buy_now:a.boolean(),cart_id:a.number(),breakup_values:n.CartBreakup(),delivery_charge_info:a.string().allow(""),payment_selection_lock:n.PaymentSelectionLock(),gstin:a.string().allow(""),delivery_promise:n.ShipmentPromise(),items:a.array().items(n.CartProductInfo()),currency:n.CartCurrency()})}static SharedCartResponse(){return a.object({error:a.string().allow(""),cart:n.SharedCart()})}}e.exports=n},6744:(e,t,r)=>{const a=r(9955),n=r(1408);e.exports=class{static addAddress(){return a.object({body:n.Address().required()}).required()}static addItems(){return a.object({i:a.boolean(),b:a.boolean(),areaCode:a.string().allow(""),buyNow:a.boolean(),id:a.string().allow(""),body:n.AddCartRequest().required()}).required()}static applyCoupon(){return a.object({i:a.boolean(),b:a.boolean(),p:a.boolean(),id:a.string().allow(""),buyNow:a.boolean(),body:n.ApplyCouponRequest().required()}).required()}static applyRewardPoints(){return a.object({id:a.string().allow(""),i:a.boolean(),b:a.boolean(),buyNow:a.boolean(),body:n.RewardPointRequest().required()}).required()}static checkoutCart(){return a.object({id:a.string().allow(""),body:n.CartPosCheckoutDetailRequest().required()}).required()}static getAddressById(){return a.object({id:a.string().allow("").required(),cartId:a.string().allow(""),buyNow:a.boolean(),mobileNo:a.string().allow(""),checkoutMode:a.string().allow(""),tags:a.string().allow(""),isDefault:a.boolean()}).required()}static getAddresses(){return a.object({cartId:a.string().allow(""),buyNow:a.boolean(),mobileNo:a.string().allow(""),checkoutMode:a.string().allow(""),tags:a.string().allow(""),isDefault:a.boolean()})}static getAvailableDeliveryModes(){return a.object({areaCode:a.string().allow("").required(),id:a.string().allow("")}).required()}static getBulkDiscountOffers(){return a.object({itemId:a.number(),articleId:a.string().allow(""),uid:a.number(),slug:a.string().allow("")})}static getCart(){return a.object({id:a.string().allow(""),i:a.boolean(),b:a.boolean(),c:a.boolean(),assignCardId:a.number(),areaCode:a.string().allow(""),buyNow:a.boolean()})}static getCartLastModified(){return a.object({id:a.string().allow("")})}static getCartShareLink(){return a.object({body:n.GetShareCartLinkRequest().required()}).required()}static getCartSharedItems(){return a.object({token:a.string().allow("").required()}).required()}static getCoupons(){return a.object({id:a.string().allow(""),buyNow:a.boolean()})}static getItemCount(){return a.object({id:a.string().allow(""),buyNow:a.boolean()})}static getShipments(){return a.object({pickAtStoreUid:a.number(),orderingStoreId:a.number(),p:a.boolean(),id:a.string().allow(""),addressId:a.string().allow(""),areaCode:a.string().allow(""),orderType:a.string().allow("")})}static getStoreAddressByUid(){return a.object({storeUid:a.number().required()}).required()}static removeAddress(){return a.object({id:a.string().allow("").required()}).required()}static removeCoupon(){return a.object({id:a.string().allow(""),buyNow:a.boolean()})}static selectAddress(){return a.object({cartId:a.string().allow(""),buyNow:a.boolean(),i:a.boolean(),b:a.boolean(),body:n.SelectCartAddressRequest().required()}).required()}static selectPaymentMode(){return a.object({id:a.string().allow(""),buyNow:a.boolean(),body:n.UpdateCartPaymentRequest().required()}).required()}static updateAddress(){return a.object({id:a.string().allow("").required(),body:n.Address().required()}).required()}static updateCart(){return a.object({id:a.string().allow(""),i:a.boolean(),b:a.boolean(),areaCode:a.string().allow(""),buyNow:a.boolean(),body:n.UpdateCartRequest().required()}).required()}static updateCartMeta(){return a.object({id:a.string().allow(""),buyNow:a.boolean(),body:n.CartMetaRequest().required()}).required()}static updateCartWithSharedItems(){return a.object({token:a.string().allow("").required(),action:a.string().allow("").required()}).required()}static updateShipments(){return a.object({i:a.boolean(),p:a.boolean(),id:a.string().allow(""),addressId:a.string().allow(""),areaCode:a.string().allow(""),orderType:a.string().allow(""),body:n.UpdateCartShipmentRequest().required()}).required()}static validateCouponForPayment(){return a.object({id:a.string().allow(""),buyNow:a.boolean(),addressId:a.string().allow(""),paymentMode:a.string().allow(""),paymentIdentifier:a.string().allow(""),aggregatorName:a.string().allow(""),merchantCode:a.string().allow(""),iin:a.string().allow(""),network:a.string().allow(""),type:a.string().allow(""),cardId:a.string().allow("")})}}},7044:(e,t,r)=>{const a=r(8336),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(9916),s=r(4776),i=r(3768),l=r(1704),c=r(6216),{Logger:u}=r(1544);r(9955),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={catalogueOrder:"/service/application/rewards/v1.0/catalogue/offer/order/",getOfferByName:"/service/application/rewards/v1.0/offers/{name}/",getOrderDiscount:"/service/application/rewards/v1.0/user/offer/order-discount/",getUserPoints:"/service/application/rewards/v1.0/user/points/",getUserPointsHistory:"/service/application/rewards/v1.0/user/points/history/",getUserReferralDetails:"/service/application/rewards/v1.0/user/referral/",redeemReferralCode:"/service/application/rewards/v1.0/user/referral/redeem/"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async catalogueOrder({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:i}=l.catalogueOrder().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(i)return Promise.reject(new n(i));const{error:d}=l.catalogueOrder().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&u({level:"WARN",message:`Parameter Validation warrnings for application > Rewards > catalogueOrder \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.catalogueOrder,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=c.CatalogueOrderResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));u({level:"WARN",message:`Response Validation Warnings for application > Rewards > catalogueOrder \n ${m}`})}return p}async getOfferByName({name:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:i}=l.getOfferByName().validate({name:e},{abortEarly:!1,allowUnknown:!0});if(i)return Promise.reject(new n(i));const{error:d}=l.getOfferByName().validate({name:e},{abortEarly:!1,allowUnknown:!1});d&&u({level:"WARN",message:`Parameter Validation warrnings for application > Rewards > getOfferByName \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getOfferByName,params:{name:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=c.Offer().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));u({level:"WARN",message:`Response Validation Warnings for application > Rewards > getOfferByName \n ${m}`})}return p}async getOrderDiscount({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:i}=l.getOrderDiscount().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(i)return Promise.reject(new n(i));const{error:d}=l.getOrderDiscount().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&u({level:"WARN",message:`Parameter Validation warrnings for application > Rewards > getOrderDiscount \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.getOrderDiscount,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=c.OrderDiscountResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));u({level:"WARN",message:`Response Validation Warnings for application > Rewards > getOrderDiscount \n ${m}`})}return p}async getUserPoints({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=l.getUserPoints().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:i}=l.getUserPoints().validate({},{abortEarly:!1,allowUnknown:!1});i&&u({level:"WARN",message:`Parameter Validation warrnings for application > Rewards > getUserPoints \n ${i}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getUserPoints,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=c.PointsResponse().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));u({level:"WARN",message:`Response Validation Warnings for application > Rewards > getUserPoints \n ${g}`})}return d}async getUserPointsHistory({pageId:e,pageSize:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:i}={responseHeaders:!1}){const{error:d}=l.getUserPointsHistory().validate({pageId:e,pageSize:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=l.getUserPointsHistory().validate({pageId:e,pageSize:t},{abortEarly:!1,allowUnknown:!1});p&&u({level:"WARN",message:`Parameter Validation warrnings for application > Rewards > getUserPointsHistory \n ${p}`});const g={};g.page_id=e,g.page_size=t;const m=await a.execute(this._conf,"get",s({url:this._urls.getUserPointsHistory,params:{}}),g,void 0,{...r},{responseHeaders:i});let w=m;i&&(w=m[0]);const{error:f}=c.PointsHistoryResponse().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));u({level:"WARN",message:`Response Validation Warnings for application > Rewards > getUserPointsHistory \n ${f}`})}return m}getUserPointsHistoryPaginator({pageSize:e}={}){const t=new i;return t.setCallback((async()=>{const r=t.nextId,a=(t.pageNo,await this.getUserPointsHistory({pageId:r,pageSize:e}));return t.setPaginator({hasNext:!!a.page.has_next,nextId:a.page.next_id}),a}).bind(this)),t}async getUserReferralDetails({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=l.getUserReferralDetails().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:i}=l.getUserReferralDetails().validate({},{abortEarly:!1,allowUnknown:!1});i&&u({level:"WARN",message:`Parameter Validation warrnings for application > Rewards > getUserReferralDetails \n ${i}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getUserReferralDetails,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=c.ReferralDetailsResponse().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));u({level:"WARN",message:`Response Validation Warnings for application > Rewards > getUserReferralDetails \n ${g}`})}return d}async redeemReferralCode({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:i}=l.redeemReferralCode().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(i)return Promise.reject(new n(i));const{error:d}=l.redeemReferralCode().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&u({level:"WARN",message:`Parameter Validation warrnings for application > Rewards > redeemReferralCode \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.redeemReferralCode,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=c.RedeemReferralCodeResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));u({level:"WARN",message:`Response Validation Warnings for application > Rewards > redeemReferralCode \n ${m}`})}return p}}},6216:(e,t,r)=>{const a=r(9955);class n{static RewardsArticle(){return a.object({id:a.string().allow(""),points:a.number(),price:a.number()})}static CatalogueOrderResponse(){return a.object({articles:a.array().items(n.RewardsArticle())})}static CatalogueOrderRequest(){return a.object({articles:a.array().items(n.RewardsArticle())})}static PointsResponse(){return a.object({points:a.number()})}static ReferralDetailsUser(){return a.object({blocked:a.boolean(),points:a.number(),redeemed:a.boolean(),referral_code:a.string().allow("")})}static Offer(){return a.object({_schedule:n.Schedule(),active:a.boolean(),application_id:a.string().allow(""),banner_image:n.Asset(),created_at:a.string().allow(""),name:a.string().allow(""),rule:a.any(),share:n.ShareMessages(),sub_text:a.string().allow(""),text:a.string().allow(""),type:a.string().allow(""),updated_at:a.string().allow(""),updated_by:a.string().allow(""),url:a.string().allow("")})}static Schedule(){return a.object({duration:a.number(),end:a.string().allow(""),start:a.string().allow(""),cron:a.string().allow("")})}static Error(){return a.object({code:a.number(),exception:a.string().allow(""),info:a.string().allow(""),message:a.string().allow("")})}static Asset(){return a.object({aspect_ratio:a.string().allow(""),id:a.string().allow(""),secure_url:a.string().allow("")})}static ShareMessages(){return a.object({email:a.number(),facebook:a.string().allow(""),fallback:a.string().allow(""),message:a.string().allow(""),messenger:a.string().allow(""),sms:a.string().allow(""),text:a.string().allow(""),twitter:a.string().allow(""),whatsapp:a.string().allow("")})}static ReferralDetailsResponse(){return a.object({referral:n.Offer(),share:n.ShareMessages(),user:n.ReferralDetailsUser(),referrer_info:a.string().allow(""),terms_conditions_link:a.string().allow("")})}static OrderDiscountRequest(){return a.object({order_amount:a.number().required(),currency:a.string().allow("")})}static OrderDiscountRuleBucket(){return a.object({high:a.number(),low:a.number(),max:a.number(),value:a.number(),value_type:a.string().allow("")})}static DiscountProperties(){return a.object({absolute:a.number(),currency:a.string().allow(""),display_absolute:a.string().allow(""),display_percent:a.string().allow(""),percent:a.number()})}static OrderDiscountResponse(){return a.object({order_amount:a.number(),points:a.number(),discount:n.DiscountProperties(),base_discount:n.DiscountProperties(),applied_rule_bucket:n.OrderDiscountRuleBucket()})}static RedeemReferralCodeRequest(){return a.object({device_id:a.string().allow(""),referral_code:a.string().allow("")})}static RedeemReferralCodeResponse(){return a.object({redeemed:a.boolean(),message:a.string().allow(""),referrer_info:a.string().allow(""),referrer_id:a.string().allow(""),points:a.number()})}static PointsHistoryResponse(){return a.object({items:a.array().items(n.PointsHistory()),page:n.Page()})}static PointsHistory(){return a.object({_id:a.string().allow(""),application_id:a.string().allow(""),claimed:a.boolean(),created_at:a.string().allow(""),expires_on:a.string().allow(""),meta:a.any(),points:a.number(),remaining_points:a.number(),text_1:a.string().allow(""),text_2:a.string().allow(""),text_3:a.string().allow(""),txn_name:a.string().allow(""),updated_at:a.string().allow(""),user_id:a.string().allow("")})}static Page(){return a.object({item_total:a.number(),next_id:a.string().allow(""),has_previous:a.boolean(),has_next:a.boolean(),current:a.number(),type:a.string().allow("").required(),size:a.number()})}}e.exports=n},1704:(e,t,r)=>{const a=r(9955),n=r(6216);e.exports=class{static catalogueOrder(){return a.object({body:n.CatalogueOrderRequest().required()}).required()}static getOfferByName(){return a.object({name:a.string().allow("").required()}).required()}static getOrderDiscount(){return a.object({body:n.OrderDiscountRequest().required()}).required()}static getUserPoints(){return a.object({})}static getUserPointsHistory(){return a.object({pageId:a.string().allow(""),pageSize:a.number()})}static getUserReferralDetails(){return a.object({})}static redeemReferralCode(){return a.object({body:n.RedeemReferralCodeRequest().required()}).required()}}},7960:(e,t,r)=>{const a=r(8336),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(9916),s=r(4776),i=(r(3768),r(9372)),l=r(9228),{Logger:c}=r(1544);r(9955),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={createShortLink:"/service/application/share/v1.0/links/short-link/",getApplicationQRCode:"/service/application/share/v1.0/qr/",getCollectionQRCodeBySlug:"/service/application/share/v1.0/qr/collection/{slug}/",getOriginalShortLinkByHash:"/service/application/share/v1.0/links/short-link/{hash}/original/",getProductQRCodeBySlug:"/service/application/share/v1.0/qr/products/{slug}/",getShortLinkByHash:"/service/application/share/v1.0/links/short-link/{hash}/",getUrlQRCode:"/service/application/share/v1.0/qr/url/"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async createShortLink({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.createShortLink().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.createShortLink().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Share > createShortLink \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.createShortLink,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.ShortLinkRes().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Share > createShortLink \n ${m}`})}return p}async getApplicationQRCode({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getApplicationQRCode().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:u}=i.getApplicationQRCode().validate({},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Share > getApplicationQRCode \n ${u}`});const d=await a.execute(this._conf,"post",s({url:this._urls.getApplicationQRCode,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=l.QRCodeResp().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));c({level:"WARN",message:`Response Validation Warnings for application > Share > getApplicationQRCode \n ${g}`})}return d}async getCollectionQRCodeBySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getCollectionQRCodeBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getCollectionQRCodeBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Share > getCollectionQRCodeBySlug \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.getCollectionQRCodeBySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.QRCodeResp().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Share > getCollectionQRCodeBySlug \n ${m}`})}return p}async getOriginalShortLinkByHash({hash:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getOriginalShortLinkByHash().validate({hash:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getOriginalShortLinkByHash().validate({hash:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Share > getOriginalShortLinkByHash \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getOriginalShortLinkByHash,params:{hash:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.ShortLinkRes().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Share > getOriginalShortLinkByHash \n ${m}`})}return p}async getProductQRCodeBySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getProductQRCodeBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getProductQRCodeBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Share > getProductQRCodeBySlug \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.getProductQRCodeBySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.QRCodeResp().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Share > getProductQRCodeBySlug \n ${m}`})}return p}async getShortLinkByHash({hash:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getShortLinkByHash().validate({hash:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getShortLinkByHash().validate({hash:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Share > getShortLinkByHash \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getShortLinkByHash,params:{hash:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.ShortLinkRes().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Share > getShortLinkByHash \n ${m}`})}return p}async getUrlQRCode({url:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getUrlQRCode().validate({url:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getUrlQRCode().validate({url:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Share > getUrlQRCode \n ${d}`});const p={};p.url=e;const g=await a.execute(this._conf,"post",s({url:this._urls.getUrlQRCode,params:{}}),p,void 0,{...t},{responseHeaders:r});let m=g;r&&(m=g[0]);const{error:w}=l.QRCodeResp().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > Share > getUrlQRCode \n ${w}`})}return g}}},9228:(e,t,r)=>{const a=r(9955);class n{static QRCodeResp(){return a.object({link:a.string().allow(""),svg:a.string().allow("")})}static RedirectDevice(){return a.object({link:a.string().allow(""),type:a.string().allow("")})}static WebRedirect(){return a.object({link:a.string().allow(""),type:a.string().allow("")})}static Redirects(){return a.object({ios:n.RedirectDevice(),android:n.RedirectDevice(),web:n.WebRedirect(),force_web:a.boolean()})}static CampaignShortLink(){return a.object({source:a.string().allow(""),medium:a.string().allow("")})}static Attribution(){return a.object({campaign_cookie_expiry:a.string().allow("")})}static SocialMediaTags(){return a.object({title:a.string().allow(""),description:a.string().allow(""),image:a.string().allow("")})}static ShortLinkReq(){return a.object({title:a.string().allow("").required(),url:a.string().allow("").required(),hash:a.string().allow(""),active:a.boolean(),expire_at:a.string().allow(""),enable_tracking:a.boolean(),personalized:a.boolean(),campaign:n.CampaignShortLink(),redirects:n.Redirects(),attribution:n.Attribution(),social_media_tags:n.SocialMediaTags(),count:a.number()})}static UrlInfo(){return a.object({original:a.string().allow(""),short:a.string().allow(""),hash:a.string().allow("")})}static ShortLinkRes(){return a.object({title:a.string().allow(""),url:n.UrlInfo(),created_by:a.string().allow(""),app_redirect:a.boolean(),fallback:a.string().allow(""),active:a.boolean(),_id:a.string().allow(""),enable_tracking:a.boolean(),expire_at:a.string().allow(""),application:a.string().allow(""),user_id:a.string().allow(""),created_at:a.string().allow(""),meta:a.any(),updated_at:a.string().allow(""),personalized:a.boolean(),campaign:n.CampaignShortLink(),redirects:n.Redirects(),attribution:n.Attribution(),social_media_tags:n.SocialMediaTags(),count:a.number()})}static ErrorRes(){return a.object({message:a.string().allow("")})}}e.exports=n},9372:(e,t,r)=>{const a=r(9955),n=r(9228);e.exports=class{static createShortLink(){return a.object({body:n.ShortLinkReq().required()}).required()}static getApplicationQRCode(){return a.object({})}static getCollectionQRCodeBySlug(){return a.object({slug:a.string().allow("").required()}).required()}static getOriginalShortLinkByHash(){return a.object({hash:a.string().allow("").required()}).required()}static getProductQRCodeBySlug(){return a.object({slug:a.string().allow("").required()}).required()}static getShortLinkByHash(){return a.object({hash:a.string().allow("").required()}).required()}static getUrlQRCode(){return a.object({url:a.string().allow("").required()}).required()}}},4236:(e,t,r)=>{const a=r(8336),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(9916),s=r(4776),i=(r(3768),r(5900)),l=r(5416),{Logger:c}=r(1544);r(9955),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={getAllPages:"/service/application/theme/v1.0/{theme_id}/page",getAppliedTheme:"/service/application/theme/v2.0/applied-theme",getPage:"/service/application/theme/v1.0/{theme_id}/{page_value}",getThemeForPreview:"/service/application/theme/v2.0/{theme_id}/preview"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async getAllPages({themeId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getAllPages().validate({themeId:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getAllPages().validate({themeId:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Theme > getAllPages \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getAllPages,params:{themeId:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.AllAvailablePageSchema().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Theme > getAllPages \n ${m}`})}return p}async getAppliedTheme({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getAppliedTheme().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:u}=i.getAppliedTheme().validate({},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Theme > getAppliedTheme \n ${u}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getAppliedTheme,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=l.ThemesSchema().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));c({level:"WARN",message:`Response Validation Warnings for application > Theme > getAppliedTheme \n ${g}`})}return d}async getPage({themeId:e,pageValue:t,filters:r,company:u,requestHeaders:d}={requestHeaders:{}},{responseHeaders:p}={responseHeaders:!1}){const{error:g}=i.getPage().validate({themeId:e,pageValue:t,filters:r,company:u},{abortEarly:!1,allowUnknown:!0});if(g)return Promise.reject(new n(g));const{error:m}=i.getPage().validate({themeId:e,pageValue:t,filters:r,company:u},{abortEarly:!1,allowUnknown:!1});m&&c({level:"WARN",message:`Parameter Validation warrnings for application > Theme > getPage \n ${m}`});const w={};w.filters=r,w.company=u;const f=await a.execute(this._conf,"get",s({url:this._urls.getPage,params:{themeId:e,pageValue:t}}),w,void 0,{...d},{responseHeaders:p});let y=f;p&&(y=f[0]);const{error:b}=l.AvailablePageSchema().validate(y,{abortEarly:!1,allowUnknown:!0});if(b){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(b));c({level:"WARN",message:`Response Validation Warnings for application > Theme > getPage \n ${b}`})}return f}async getThemeForPreview({themeId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getThemeForPreview().validate({themeId:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getThemeForPreview().validate({themeId:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Theme > getThemeForPreview \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getThemeForPreview,params:{themeId:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.ThemesSchema().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Theme > getThemeForPreview \n ${m}`})}return p}}},5416:(e,t,r)=>{const a=r(9955);class n{static AllAvailablePageSchema(){return a.object({pages:a.array().items(n.AvailablePageSchema())})}static AvailablePageSchema(){return a.object({value:a.string().allow(""),text:a.string().allow(""),path:a.string().allow(""),type:a.string().allow(""),sections:a.array().items(n.AvailablePageSchemaSections()),sections_meta:a.array().items(n.AvailablePageSectionMetaAttributes()),theme:a.string().allow(""),seo:n.AvailablePageSeo(),props:a.array().items(a.any()),_id:a.string().allow("")})}static AvailablePageSectionMetaAttributes(){return a.object({attributes:a.any()})}static SEOMetaItem(){return a.object({title:a.string().allow(""),items:a.array().items(n.SEOMetaItems())})}static SEOMetaItems(){return a.object({key:a.string().allow(""),value:a.string().allow("")})}static SEOSitemap(){return a.object({priority:a.number(),frequency:a.string().allow("")})}static SEObreadcrumb(){return a.object({url:a.string().allow(""),action:n.Action()})}static Action(){return a.object({page:n.ActionPage(),popup:n.ActionPage(),type:a.string().allow("")})}static ActionPage(){return a.object({params:a.object().pattern(/\S/,a.array().items(a.string().allow(""))),query:a.object().pattern(/\S/,a.array().items(a.string().allow(""))),url:a.string().allow(""),type:n.PageType().required()})}static AvailablePageSeo(){return a.object({title:a.string().allow(""),description:a.string().allow(""),canonical_url:a.string().allow(""),meta_tags:a.array().items(n.SEOMetaItem()),sitemap:n.SEOSitemap(),breadcrumb:a.array().items(n.SEObreadcrumb()),_id:a.string().allow("")})}static AvailablePageSchemaSections(){return a.object({name:a.string().allow(""),label:a.string().allow(""),props:a.any(),blocks:a.array().items(a.any()),preset:a.any(),predicate:n.AvailablePagePredicate()})}static AvailablePagePredicate(){return a.object({screen:n.AvailablePageScreenPredicate(),user:n.AvailablePageUserPredicate(),route:n.AvailablePageRoutePredicate(),schedule:n.AvailablePageSchedulePredicate(),platform:n.AvailablePagePlatformPredicate(),zones:a.array().items(a.string().allow(""))})}static AvailablePageScreenPredicate(){return a.object({mobile:a.boolean(),desktop:a.boolean(),tablet:a.boolean()})}static AvailablePageUserPredicate(){return a.object({authenticated:a.boolean(),anonymous:a.boolean()})}static AvailablePageRoutePredicate(){return a.object({selected:a.string().allow(""),exact_url:a.string().allow(""),query:a.any()})}static AvailablePageSchedulePredicate(){return a.object({cron:a.string().allow(""),start:a.string().allow(""),end:a.string().allow("")})}static ThemesSchema(){return a.object({font:n.Font(),config:n.Config(),applied:a.boolean(),is_private:a.boolean(),tags:a.array().items(a.string().allow("")),_id:a.string().allow(""),application_id:a.string().allow(""),marketplace_theme_id:a.string().allow(""),meta:n.ThemeMeta(),name:a.string().allow(""),template_theme_id:a.string().allow(""),version:a.string().allow(""),styles:a.any(),created_at:a.string().allow(""),updated_at:a.string().allow(""),assets:n.Assets(),available_sections:a.array().items(n.SectionItem()),theme_type:a.string().allow(""),company_id:a.number()})}static Font(){return a.object({variants:n.FontVariants().required(),family:a.string().allow("").required()})}static FontVariants(){return a.object({light:n.FontVariant(),regular:n.FontVariant(),medium:n.FontVariant(),semi_bold:n.FontVariant(),bold:n.FontVariant()})}static FontVariant(){return a.object({name:a.string().allow("").required(),file:a.string().allow("").required()})}static Config(){return a.object({current:a.string().allow("").required(),list:a.array().items(n.ThemeConfiguration()).required(),global_schema:n.GlobalSchema(),preset:n.Preset()})}static ThemeConfiguration(){return a.object({name:a.string().allow(""),global_config:a.any(),page:a.array().items(a.string().allow(""))})}static CustomConfig(){return a.object({props:n.CustomProps()})}static CustomProps(){return a.object({header_bg_color:a.string().allow(""),header_text_color:a.string().allow(""),header_border_color:a.string().allow(""),header_icon_color:a.string().allow(""),header_cart_notification_bg_color:a.string().allow(""),header_cart_notification_text_color:a.string().allow(""),header_nav_hover_color:a.string().allow(""),button_primary_color:a.string().allow(""),button_primary_label_color:a.string().allow(""),button_add_to_cart_color:a.string().allow(""),button_add_to_cart_label_color:a.string().allow(""),button_secondary_color:a.string().allow(""),button_secondary_label_color:a.string().allow(""),button_tertiary_color:a.string().allow(""),button_tertiary_label_color:a.string().allow(""),button_tertiary_hover_color:a.string().allow(""),button_tertiary_hover_text_color:a.string().allow(""),text_heading_link_color:a.string().allow(""),text_body_color:a.string().allow(""),text_price_color:a.string().allow(""),text_sale_price_color:a.string().allow(""),text_strikethrough_price_color:a.string().allow(""),text_discount_color:a.string().allow(""),footer_bg_color:a.string().allow(""),footer_text_color:a.string().allow(""),footer_border_color:a.string().allow(""),footer_nav_hover_color:a.string().allow(""),disable_cart:a.boolean(),is_menu_below_logo:a.boolean(),menu_position:a.string().allow("")})}static GlobalConfig(){return a.object({statics:n.StaticConfig(),custom:n.CustomConfig()})}static GeneralSetting(){return a.object({theme:n.ThemeSetting(),text:n.TextSetting(),button:n.ButtonSetting(),sale_discount:n.SaleDiscountSetting(),header:n.HeaderSetting(),footer:n.FooterSetting()})}static AdvanceSetting(){return a.object({overlay_popup:n.OverlayPopupSetting(),divider_stroke_highlight:n.DividerStrokeHighlightSetting(),user_alerts:n.UserAlertsSetting()})}static UserAlertsSetting(){return a.object({success_background:a.string().allow(""),success_text:a.string().allow(""),error_background:a.string().allow(""),error_text:a.string().allow(""),info_background:a.string().allow(""),info_text:a.string().allow("")})}static ThemeSetting(){return a.object({page_background:a.string().allow(""),theme_accent:a.string().allow("")})}static TextSetting(){return a.object({text_heading:a.string().allow(""),text_body:a.string().allow(""),text_label:a.string().allow(""),text_secondary:a.string().allow("")})}static ButtonSetting(){return a.object({button_primary:a.string().allow(""),button_secondary:a.string().allow(""),button_link:a.string().allow("")})}static SaleDiscountSetting(){return a.object({sale_badge_background:a.string().allow(""),sale_badge_text:a.string().allow(""),sale_discount_text:a.string().allow(""),sale_timer:a.string().allow("")})}static HeaderSetting(){return a.object({header_background:a.string().allow(""),header_nav:a.string().allow(""),header_icon:a.string().allow("")})}static FooterSetting(){return a.object({footer_background:a.string().allow(""),footer_bottom_background:a.string().allow(""),footer_heading_text:a.string().allow(""),footer_body_text:a.string().allow(""),footer_icon:a.string().allow("")})}static OverlayPopupSetting(){return a.object({dialog_backgroung:a.string().allow(""),overlay:a.string().allow("")})}static DividerStrokeHighlightSetting(){return a.object({divider_strokes:a.string().allow(""),highlight:a.string().allow("")})}static StaticConfig(){return a.object({props:n.StaticProps()})}static StaticProps(){return a.object({colors:n.Colors(),auth:n.AuthConfig(),palette:n.PaletteConfig()})}static Colors(){return a.object({primary_color:a.string().allow(""),secondary_color:a.string().allow(""),accent_color:a.string().allow(""),link_color:a.string().allow(""),button_secondary_color:a.string().allow(""),bg_color:a.string().allow("")})}static AuthConfig(){return a.object({show_header_auth:a.boolean(),show_footer_auth:a.boolean()})}static PaletteConfig(){return a.object({general_setting:n.GeneralSetting(),advance_setting:n.AdvanceSetting()})}static ThemeMeta(){return a.object({payment:n.ThemePayment(),description:a.string().allow(""),industry:a.array().items(a.string().allow("")),release:n.Release(),images:n.Images(),slug:a.string().allow(""),name:a.string().allow("")})}static ThemePayment(){return a.object({is_paid:a.boolean(),amount:a.number()})}static Release(){return a.object({notes:a.string().allow(""),version:a.string().allow("")})}static Images(){return a.object({desktop:a.string().allow(""),mobile:a.string().allow("")})}static Assets(){return a.object({umd_js:n.UMDJs(),common_js:n.CommonJS(),css:n.CSS()})}static UMDJs(){return a.object({links:a.array().items(a.string().allow(""))})}static CommonJS(){return a.object({link:a.string().allow("")})}static CSS(){return a.object({links:a.array().items(a.string().allow(""))})}static SectionItem(){return a.object({props:a.array().items(a.any()),blocks:a.array().items(a.any()),name:a.string().allow(""),label:a.string().allow("")})}static GlobalSchema(){return a.object({props:a.array().items(n.Prop())})}static Prop(){return a.object({type:a.string().allow(""),category:a.string().allow(""),id:a.string().allow(""),label:a.string().allow(""),info:a.string().allow("")})}static Preset(){return a.object({pages:a.array().items(n.Page())})}static Page(){return a.object({item_total:a.number(),next_id:a.string().allow(""),has_previous:a.boolean(),has_next:a.boolean(),current:a.number(),type:a.string().allow("").required(),size:a.number()})}static SectionProps(){return a.object({title:n.TextProp(),item_margin:n.TextProp(),autoplay:n.CheckboxProp(),slide_interval:n.RangeProp()})}static SectionPreset(){return a.object({blocks:a.array().items(n.Block())})}static ImagePickerProp(){return a.object({type:a.string().allow(""),value:a.string().allow("")})}static UrlProp(){return a.object({type:a.string().allow(""),value:a.string().allow("")})}static BlockProps(){return a.object({image:n.ImagePickerProp(),slide_link:n.UrlProp()})}static TextProp(){return a.object({value:a.string().allow(""),type:a.string().allow("")})}static CheckboxProp(){return a.object({value:a.boolean(),type:a.string().allow("")})}static RangeProp(){return a.object({value:a.number(),type:a.string().allow("")})}static Section(){return a.object({blocks:a.array().items(n.Block()),predicate:n.Predicate(),name:a.string().allow(""),props:n.SectionProps(),preset:n.SectionPreset()})}static Block(){return a.object({type:a.string().allow(""),name:a.string().allow(""),props:n.BlockProps()})}static Predicate(){return a.object({screen:n.Screen(),user:n.ThemeUserSchema(),route:n.Route()})}static Screen(){return a.object({mobile:a.boolean(),desktop:a.boolean(),tablet:a.boolean()})}static ThemeUserSchema(){return a.object({authenticated:a.boolean(),anonymous:a.boolean()})}static Route(){return a.object({selected:a.string().allow(""),exact_url:a.string().allow("")})}static AvailablePagePlatformPredicate(){return a.object({ios:a.boolean(),android:a.boolean(),web:a.boolean()})}static BlitzkriegInternalServerErrorSchema(){return a.object({message:a.string().allow("")})}static BlitzkriegApiErrorSchema(){return a.object({message:a.string().allow("")})}static PageType(){return a.string().valid("about-us","addresses","blog","brands","cards","cart","categories","brand","category","collection","collections","contact-us","external","faq","freshchat","home","notification-settings","orders","page","policy","product","product-request","products","profile","profile-order-shipment","profile-basic","profile-company","profile-emails","profile-phones","rate-us","refer-earn","settings","shared-cart","tnc","track-order","wishlist","sections","form","cart-delivery","cart-payment","cart-review","login","register","shipping-policy","return-policy","order-status")}}e.exports=n},5900:(e,t,r)=>{const a=r(9955);r(5416),e.exports=class{static getAllPages(){return a.object({themeId:a.string().allow("").required()}).required()}static getAppliedTheme(){return a.object({})}static getPage(){return a.object({themeId:a.string().allow("").required(),pageValue:a.string().allow("").required(),filters:a.string().allow(""),company:a.number()}).required()}static getThemeForPreview(){return a.object({themeId:a.string().allow("").required()}).required()}}},8408:(e,t,r)=>{const a=r(8336),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(9916),s=r(4776),i=(r(3768),r(1144)),l=r(5884),{Logger:c}=r(1544);r(9955),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={addEmail:"/service/application/user/profile/v1.0/email",addMobileNumber:"/service/application/user/profile/v1.0/mobile",deleteEmail:"/service/application/user/profile/v1.0/email",deleteMobileNumber:"/service/application/user/profile/v1.0/mobile",deleteUser:"/service/application/user/authentication/v1.0/delete",forgotPassword:"/service/application/user/authentication/v1.0/login/password/reset/forgot",getListOfActiveSessions:"/service/application/user/authentication/v1.0/sessions",getLoggedInUser:"/service/application/user/authentication/v1.0/session",getPlatformConfig:"/service/application/user/platform/v1.0/config",getUserAttributes:"/service/application/user/profile/v1.0/user-attributes",hasPassword:"/service/application/user/authentication/v1.0/has-password",loginWithAppleIOS:"/service/application/user/authentication/v1.0/login/apple-ios",loginWithEmailAndPassword:"/service/application/user/authentication/v1.0/login/password",loginWithFacebook:"/service/application/user/authentication/v1.0/login/facebook-token",loginWithGoogle:"/service/application/user/authentication/v1.0/login/google-token",loginWithGoogleAndroid:"/service/application/user/authentication/v1.0/login/google-android",loginWithGoogleIOS:"/service/application/user/authentication/v1.0/login/google-ios",loginWithOTP:"/service/application/user/authentication/v1.0/login/otp",loginWithToken:"/service/application/user/authentication/v1.0/login/token",logout:"/service/application/user/authentication/v1.0/logout",registerWithForm:"/service/application/user/authentication/v1.0/register/form",resetForgotPassword:"/service/application/user/authentication/v1.0/login/password/forgot",sendForgotOTPOnEmail:"/service/application/user/authentication/v1.0/otp/forgot/email/send",sendForgotOTPOnMobile:"/service/application/user/authentication/v1.0/otp/forgot/mobile/send",sendOTPOnEmail:"/service/application/user/authentication/v1.0/otp/email/send",sendOTPOnMobile:"/service/application/user/authentication/v1.0/otp/mobile/send",sendResetPasswordEmail:"/service/application/user/authentication/v1.0/login/password/reset",sendResetPasswordMobile:"/service/application/user/authentication/v1.0/login/password/mobile/reset",sendResetToken:"/service/application/user/authentication/v1.0/login/password/reset/token",sendVerificationLinkToEmail:"/service/application/user/profile/v1.0/email/link/send",sendVerificationLinkToMobile:"/service/application/user/profile/v1.0/mobile/link/send",setEmailAsPrimary:"/service/application/user/profile/v1.0/email/primary",setMobileNumberAsPrimary:"/service/application/user/profile/v1.0/mobile/primary",updatePassword:"/service/application/user/authentication/v1.0/password",updateProfile:"/service/application/user/profile/v1.0/detail",updateUserAttributes:"/service/application/user/profile/v1.0/user-attributes",userExists:"/service/application/user/authentication/v1.0/user-exists",verifyEmail:"/service/application/user/authentication/v1.0/verify/email",verifyEmailForgotOTP:"/service/application/user/authentication/v1.0/otp/forgot/email/verify",verifyEmailOTP:"/service/application/user/authentication/v1.0/otp/email/verify",verifyMobile:"/service/application/user/authentication/v1.0/verify/mobile",verifyMobileForgotOTP:"/service/application/user/authentication/v1.0/otp/forgot/mobile/verify",verifyMobileOTP:"/service/application/user/authentication/v1.0/otp/mobile/verify"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async addEmail({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.addEmail().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.addEmail().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > addEmail \n ${p}`});const g={};g.platform=t;const m=await a.execute(this._conf,"put",s({url:this._urls.addEmail,params:{}}),g,e,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.VerifyEmailOTPSuccess().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > User > addEmail \n ${f}`})}return m}async addMobileNumber({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.addMobileNumber().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.addMobileNumber().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > addMobileNumber \n ${p}`});const g={};g.platform=t;const m=await a.execute(this._conf,"put",s({url:this._urls.addMobileNumber,params:{}}),g,e,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.VerifyMobileOTPSuccess().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > User > addMobileNumber \n ${f}`})}return m}async deleteEmail({active:e,primary:t,verified:r,email:u,platform:d,requestHeaders:p}={requestHeaders:{}},{responseHeaders:g}={responseHeaders:!1}){const{error:m}=i.deleteEmail().validate({active:e,primary:t,verified:r,email:u,platform:d},{abortEarly:!1,allowUnknown:!0});if(m)return Promise.reject(new n(m));const{error:w}=i.deleteEmail().validate({active:e,primary:t,verified:r,email:u,platform:d},{abortEarly:!1,allowUnknown:!1});w&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > deleteEmail \n ${w}`});const f={};f.platform=d,f.active=e,f.primary=t,f.verified=r,f.email=u;const y=await a.execute(this._conf,"delete",s({url:this._urls.deleteEmail,params:{}}),f,void 0,{...p},{responseHeaders:g});let b=y;g&&(b=y[0]);const{error:h}=l.LoginSuccess().validate(b,{abortEarly:!1,allowUnknown:!0});if(h){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(h));c({level:"WARN",message:`Response Validation Warnings for application > User > deleteEmail \n ${h}`})}return y}async deleteMobileNumber({active:e,primary:t,verified:r,countryCode:u,phone:d,platform:p,requestHeaders:g}={requestHeaders:{}},{responseHeaders:m}={responseHeaders:!1}){const{error:w}=i.deleteMobileNumber().validate({active:e,primary:t,verified:r,countryCode:u,phone:d,platform:p},{abortEarly:!1,allowUnknown:!0});if(w)return Promise.reject(new n(w));const{error:f}=i.deleteMobileNumber().validate({active:e,primary:t,verified:r,countryCode:u,phone:d,platform:p},{abortEarly:!1,allowUnknown:!1});f&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > deleteMobileNumber \n ${f}`});const y={};y.platform=p,y.active=e,y.primary=t,y.verified=r,y.country_code=u,y.phone=d;const b=await a.execute(this._conf,"delete",s({url:this._urls.deleteMobileNumber,params:{}}),y,void 0,{...g},{responseHeaders:m});let h=b;m&&(h=b[0]);const{error:_}=l.LoginSuccess().validate(h,{abortEarly:!1,allowUnknown:!0});if(_){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(_));c({level:"WARN",message:`Response Validation Warnings for application > User > deleteMobileNumber \n ${_}`})}return b}async deleteUser({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.deleteUser().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.deleteUser().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > deleteUser \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.deleteUser,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.DeleteUserSuccess().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > User > deleteUser \n ${m}`})}return p}async forgotPassword({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.forgotPassword().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.forgotPassword().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > forgotPassword \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.forgotPassword,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.LoginSuccess().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > User > forgotPassword \n ${m}`})}return p}async getListOfActiveSessions({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getListOfActiveSessions().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:u}=i.getListOfActiveSessions().validate({},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > getListOfActiveSessions \n ${u}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getListOfActiveSessions,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=l.SessionListSuccess().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));c({level:"WARN",message:`Response Validation Warnings for application > User > getListOfActiveSessions \n ${g}`})}return d}async getLoggedInUser({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getLoggedInUser().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:u}=i.getLoggedInUser().validate({},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > getLoggedInUser \n ${u}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getLoggedInUser,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=l.UserObjectSchema().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));c({level:"WARN",message:`Response Validation Warnings for application > User > getLoggedInUser \n ${g}`})}return d}async getPlatformConfig({name:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getPlatformConfig().validate({name:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getPlatformConfig().validate({name:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > getPlatformConfig \n ${d}`});const p={};p.name=e;const g=await a.execute(this._conf,"get",s({url:this._urls.getPlatformConfig,params:{}}),p,void 0,{...t},{responseHeaders:r});let m=g;r&&(m=g[0]);const{error:w}=l.PlatformSchema().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > User > getPlatformConfig \n ${w}`})}return g}async getUserAttributes({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getUserAttributes().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getUserAttributes().validate({slug:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > getUserAttributes \n ${d}`});const p={};p.slug=e;const g=await a.execute(this._conf,"get",s({url:this._urls.getUserAttributes,params:{}}),p,void 0,{...t},{responseHeaders:r});let m=g;r&&(m=g[0]);const{error:w}=l.UserAttributes().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > User > getUserAttributes \n ${w}`})}return g}async hasPassword({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.hasPassword().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:u}=i.hasPassword().validate({},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > hasPassword \n ${u}`});const d=await a.execute(this._conf,"get",s({url:this._urls.hasPassword,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=l.HasPasswordSuccess().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));c({level:"WARN",message:`Response Validation Warnings for application > User > hasPassword \n ${g}`})}return d}async loginWithAppleIOS({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.loginWithAppleIOS().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.loginWithAppleIOS().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > loginWithAppleIOS \n ${p}`});const g={};g.platform=t;const m=await a.execute(this._conf,"post",s({url:this._urls.loginWithAppleIOS,params:{}}),g,e,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.AuthSuccess().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > User > loginWithAppleIOS \n ${f}`})}return m}async loginWithEmailAndPassword({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.loginWithEmailAndPassword().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.loginWithEmailAndPassword().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > loginWithEmailAndPassword \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.loginWithEmailAndPassword,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.LoginSuccess().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > User > loginWithEmailAndPassword \n ${m}`})}return p}async loginWithFacebook({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.loginWithFacebook().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.loginWithFacebook().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > loginWithFacebook \n ${p}`});const g={};g.platform=t;const m=await a.execute(this._conf,"post",s({url:this._urls.loginWithFacebook,params:{}}),g,e,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.AuthSuccess().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > User > loginWithFacebook \n ${f}`})}return m}async loginWithGoogle({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.loginWithGoogle().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.loginWithGoogle().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > loginWithGoogle \n ${p}`});const g={};g.platform=t;const m=await a.execute(this._conf,"post",s({url:this._urls.loginWithGoogle,params:{}}),g,e,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.AuthSuccess().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > User > loginWithGoogle \n ${f}`})}return m}async loginWithGoogleAndroid({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.loginWithGoogleAndroid().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.loginWithGoogleAndroid().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > loginWithGoogleAndroid \n ${p}`});const g={};g.platform=t;const m=await a.execute(this._conf,"post",s({url:this._urls.loginWithGoogleAndroid,params:{}}),g,e,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.AuthSuccess().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > User > loginWithGoogleAndroid \n ${f}`})}return m}async loginWithGoogleIOS({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.loginWithGoogleIOS().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.loginWithGoogleIOS().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > loginWithGoogleIOS \n ${p}`});const g={};g.platform=t;const m=await a.execute(this._conf,"post",s({url:this._urls.loginWithGoogleIOS,params:{}}),g,e,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.AuthSuccess().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > User > loginWithGoogleIOS \n ${f}`})}return m}async loginWithOTP({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.loginWithOTP().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.loginWithOTP().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > loginWithOTP \n ${p}`});const g={};g.platform=t;const m=await a.execute(this._conf,"post",s({url:this._urls.loginWithOTP,params:{}}),g,e,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.SendOtpResponse().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > User > loginWithOTP \n ${f}`})}return m}async loginWithToken({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.loginWithToken().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.loginWithToken().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > loginWithToken \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.loginWithToken,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.LoginSuccess().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > User > loginWithToken \n ${m}`})}return p}async logout({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.logout().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:u}=i.logout().validate({},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > logout \n ${u}`});const d=await a.execute(this._conf,"get",s({url:this._urls.logout,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=l.LogoutSuccess().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));c({level:"WARN",message:`Response Validation Warnings for application > User > logout \n ${g}`})}return d}async registerWithForm({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.registerWithForm().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.registerWithForm().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > registerWithForm \n ${p}`});const g={};g.platform=t;const m=await a.execute(this._conf,"post",s({url:this._urls.registerWithForm,params:{}}),g,e,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.RegisterFormSuccess().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > User > registerWithForm \n ${f}`})}return m}async resetForgotPassword({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.resetForgotPassword().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.resetForgotPassword().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > resetForgotPassword \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.resetForgotPassword,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.ResetForgotPasswordSuccess().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > User > resetForgotPassword \n ${m}`})}return p}async sendForgotOTPOnEmail({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.sendForgotOTPOnEmail().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.sendForgotOTPOnEmail().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > sendForgotOTPOnEmail \n ${p}`});const g={};g.platform=t;const m=await a.execute(this._conf,"post",s({url:this._urls.sendForgotOTPOnEmail,params:{}}),g,e,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.EmailOtpSuccess().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > User > sendForgotOTPOnEmail \n ${f}`})}return m}async sendForgotOTPOnMobile({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.sendForgotOTPOnMobile().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.sendForgotOTPOnMobile().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > sendForgotOTPOnMobile \n ${p}`});const g={};g.platform=t;const m=await a.execute(this._conf,"post",s({url:this._urls.sendForgotOTPOnMobile,params:{}}),g,e,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.OtpSuccess().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > User > sendForgotOTPOnMobile \n ${f}`})}return m}async sendOTPOnEmail({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.sendOTPOnEmail().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.sendOTPOnEmail().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > sendOTPOnEmail \n ${p}`});const g={};g.platform=t;const m=await a.execute(this._conf,"post",s({url:this._urls.sendOTPOnEmail,params:{}}),g,e,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.EmailOtpSuccess().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > User > sendOTPOnEmail \n ${f}`})}return m}async sendOTPOnMobile({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.sendOTPOnMobile().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.sendOTPOnMobile().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > sendOTPOnMobile \n ${p}`});const g={};g.platform=t;const m=await a.execute(this._conf,"post",s({url:this._urls.sendOTPOnMobile,params:{}}),g,e,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.OtpSuccess().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > User > sendOTPOnMobile \n ${f}`})}return m}async sendResetPasswordEmail({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.sendResetPasswordEmail().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.sendResetPasswordEmail().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > sendResetPasswordEmail \n ${p}`});const g={};g.platform=t;const m=await a.execute(this._conf,"post",s({url:this._urls.sendResetPasswordEmail,params:{}}),g,e,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.ResetPasswordSuccess().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > User > sendResetPasswordEmail \n ${f}`})}return m}async sendResetPasswordMobile({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.sendResetPasswordMobile().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.sendResetPasswordMobile().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > sendResetPasswordMobile \n ${p}`});const g={};g.platform=t;const m=await a.execute(this._conf,"post",s({url:this._urls.sendResetPasswordMobile,params:{}}),g,e,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.ResetPasswordSuccess().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > User > sendResetPasswordMobile \n ${f}`})}return m}async sendResetToken({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.sendResetToken().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.sendResetToken().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > sendResetToken \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.sendResetToken,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.ResetPasswordSuccess().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > User > sendResetToken \n ${m}`})}return p}async sendVerificationLinkToEmail({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.sendVerificationLinkToEmail().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.sendVerificationLinkToEmail().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > sendVerificationLinkToEmail \n ${p}`});const g={};g.platform=t;const m=await a.execute(this._conf,"post",s({url:this._urls.sendVerificationLinkToEmail,params:{}}),g,e,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.SendEmailVerifyLinkSuccess().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > User > sendVerificationLinkToEmail \n ${f}`})}return m}async sendVerificationLinkToMobile({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.sendVerificationLinkToMobile().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.sendVerificationLinkToMobile().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > sendVerificationLinkToMobile \n ${p}`});const g={};g.platform=t;const m=await a.execute(this._conf,"post",s({url:this._urls.sendVerificationLinkToMobile,params:{}}),g,e,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.SendMobileVerifyLinkSuccess().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > User > sendVerificationLinkToMobile \n ${f}`})}return m}async setEmailAsPrimary({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.setEmailAsPrimary().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.setEmailAsPrimary().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > setEmailAsPrimary \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.setEmailAsPrimary,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.LoginSuccess().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > User > setEmailAsPrimary \n ${m}`})}return p}async setMobileNumberAsPrimary({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.setMobileNumberAsPrimary().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.setMobileNumberAsPrimary().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > setMobileNumberAsPrimary \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.setMobileNumberAsPrimary,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.LoginSuccess().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > User > setMobileNumberAsPrimary \n ${m}`})}return p}async updatePassword({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.updatePassword().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.updatePassword().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > updatePassword \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.updatePassword,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.VerifyEmailSuccess().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > User > updatePassword \n ${m}`})}return p}async updateProfile({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.updateProfile().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.updateProfile().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > updateProfile \n ${p}`});const g={};g.platform=t;const m=await a.execute(this._conf,"post",s({url:this._urls.updateProfile,params:{}}),g,e,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.ProfileEditSuccess().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > User > updateProfile \n ${f}`})}return m}async updateUserAttributes({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.updateUserAttributes().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.updateUserAttributes().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > updateUserAttributes \n ${d}`});const p=await a.execute(this._conf,"patch",s({url:this._urls.updateUserAttributes,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.UserAttributes().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > User > updateUserAttributes \n ${m}`})}return p}async userExists({q:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.userExists().validate({q:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.userExists().validate({q:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > userExists \n ${d}`});const p={};p.q=e;const g=await a.execute(this._conf,"get",s({url:this._urls.userExists,params:{}}),p,void 0,{...t},{responseHeaders:r});let m=g;r&&(m=g[0]);const{error:w}=l.UserExistsResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > User > userExists \n ${w}`})}return g}async verifyEmail({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.verifyEmail().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.verifyEmail().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > verifyEmail \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.verifyEmail,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.VerifyEmailSuccess().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > User > verifyEmail \n ${m}`})}return p}async verifyEmailForgotOTP({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.verifyEmailForgotOTP().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.verifyEmailForgotOTP().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > verifyEmailForgotOTP \n ${p}`});const g={};g.platform=t;const m=await a.execute(this._conf,"post",s({url:this._urls.verifyEmailForgotOTP,params:{}}),g,e,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.VerifyForgotOtpSuccess().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > User > verifyEmailForgotOTP \n ${f}`})}return m}async verifyEmailOTP({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.verifyEmailOTP().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.verifyEmailOTP().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > verifyEmailOTP \n ${p}`});const g={};g.platform=t;const m=await a.execute(this._conf,"post",s({url:this._urls.verifyEmailOTP,params:{}}),g,e,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.VerifyOtpSuccess().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > User > verifyEmailOTP \n ${f}`})}return m}async verifyMobile({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.verifyMobile().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.verifyMobile().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > verifyMobile \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.verifyMobile,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.VerifyEmailSuccess().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > User > verifyMobile \n ${m}`})}return p}async verifyMobileForgotOTP({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.verifyMobileForgotOTP().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.verifyMobileForgotOTP().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > verifyMobileForgotOTP \n ${p}`});const g={};g.platform=t;const m=await a.execute(this._conf,"post",s({url:this._urls.verifyMobileForgotOTP,params:{}}),g,e,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.VerifyForgotOtpSuccess().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > User > verifyMobileForgotOTP \n ${f}`})}return m}async verifyMobileOTP({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.verifyMobileOTP().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.verifyMobileOTP().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > verifyMobileOTP \n ${p}`});const g={};g.platform=t;const m=await a.execute(this._conf,"post",s({url:this._urls.verifyMobileOTP,params:{}}),g,e,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.VerifyOtpSuccess().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > User > verifyMobileOTP \n ${f}`})}return m}}},5884:(e,t,r)=>{const a=r(9955);class n{static UpdateUserAttributesRequest(){return a.object({attributes:a.any()})}static UserAttributes(){return a.object({attributes:a.any()})}static DeleteApplicationUserRequestSchema(){return a.object({user_id:a.string().allow(""),reason:a.string().allow(""),reason_id:a.string().allow(""),request_id:a.string().allow(""),otp:a.string().allow("")})}static EditEmailRequestSchema(){return a.object({email:a.string().allow("")})}static SendVerificationLinkMobileRequestSchema(){return a.object({verified:a.boolean(),active:a.boolean(),country_code:a.string().allow(""),phone:a.string().allow(""),primary:a.boolean()})}static EditMobileRequestSchema(){return a.object({country_code:a.string().allow(""),phone:a.string().allow("")})}static EditProfileRequestSchema(){return a.object({ci:a.boolean(),first_name:a.string().allow(""),last_name:a.string().allow(""),mobile:n.EditProfileMobileSchema(),country_code:a.string().allow(""),email:a.string().allow(""),gender:a.string().allow(""),dob:a.string().allow(""),profile_pic_url:a.string().allow(""),android_hash:a.string().allow(""),sender:a.string().allow(""),register_token:a.string().allow("")})}static EditProfileMobileSchema(){return a.object({phone:a.string().allow(""),country_code:a.string().allow("")})}static SendEmailOtpRequestSchema(){return a.object({email:a.string().allow(""),action:a.string().allow(""),token:a.string().allow(""),register_token:a.string().allow("")})}static SendEmailForgotOtpRequestSchema(){return a.object({email:a.string().allow(""),action:a.string().allow(""),token:a.string().allow("")})}static VerifyEmailOtpRequestSchema(){return a.object({email:a.string().allow(""),action:a.string().allow(""),register_token:a.string().allow(""),otp:a.string().allow("")})}static VerifyEmailForgotOtpRequestSchema(){return a.object({email:a.string().allow(""),otp:a.string().allow("")})}static VerifyOtpRequestSchema(){return a.object({request_id:a.string().allow(""),register_token:a.string().allow(""),otp:a.string().allow("")})}static VerifyMobileForgotOtpRequestSchema(){return a.object({request_id:a.string().allow(""),otp:a.string().allow("")})}static SendMobileOtpRequestSchema(){return a.object({ci:a.boolean(),mobile:a.string().allow(""),country_code:a.string().allow(""),action:a.string().allow(""),token:a.string().allow(""),android_hash:a.string().allow(""),force:a.string().allow("")})}static SendMobileForgotOtpRequestSchema(){return a.object({mobile:a.string().allow(""),country_code:a.string().allow(""),action:a.string().allow(""),token:a.string().allow(""),android_hash:a.string().allow("")})}static UpdatePasswordRequestSchema(){return a.object({old_password:a.string().allow(""),new_password:a.string().allow("")})}static FormRegisterRequestSchema(){return a.object({first_name:a.string().allow(""),last_name:a.string().allow(""),gender:a.string().allow(""),email:a.string().allow(""),password:a.string().allow(""),phone:n.FormRegisterRequestSchemaPhone(),register_token:a.string().allow("")})}static TokenRequestBodySchema(){return a.object({token:a.string().allow("")})}static ForgotPasswordRequestSchema(){return a.object({code:a.string().allow(""),password:a.string().allow("")})}static CodeRequestBodySchema(){return a.object({code:a.string().allow("")})}static SendResetPasswordEmailRequestSchema(){return a.object({email:a.string().allow("")})}static SendResetPasswordMobileRequestSchema(){return a.object({country_code:a.string().allow(""),mobile:a.string().allow("")})}static PasswordLoginRequestSchema(){return a.object({password:a.string().allow(""),username:a.string().allow("")})}static SendOtpRequestSchema(){return a.object({ci:a.boolean(),country_code:a.string().allow(""),mobile:a.string().allow(""),android_hash:a.string().allow("")})}static OAuthRequestSchema(){return a.object({is_signed_in:a.boolean(),oauth2:n.OAuthRequestSchemaOauth2(),profile:n.OAuthRequestSchemaProfile()})}static OAuthRequestAppleSchema(){return a.object({user_identifier:a.string().allow(""),oauth:n.OAuthRequestAppleSchemaOauth(),profile:n.OAuthRequestAppleSchemaProfile()})}static UserObjectSchema(){return a.object({user:n.UserSchema()})}static AuthSuccess(){return a.object({register_token:a.string().allow(""),user_exists:a.boolean(),user:n.UserSchema()})}static UserExistsResponse(){return a.object({user_exists:a.boolean()})}static SendOtpResponse(){return a.object({resend_timer:a.number(),resend_token:a.string().allow(""),success:a.boolean(),request_id:a.string().allow(""),message:a.string().allow(""),mobile:a.string().allow(""),country_code:a.string().allow(""),email:a.string().allow(""),resend_email_token:a.string().allow(""),register_token:a.string().allow(""),verify_email_otp:a.boolean(),verify_mobile_otp:a.boolean(),user_exists:a.boolean()})}static ProfileEditSuccess(){return a.object({user:n.UserSchema(),register_token:a.string().allow(""),resend_email_token:a.string().allow(""),user_exists:a.boolean(),verify_email_link:a.boolean(),verify_email_otp:a.boolean(),verify_mobile_otp:a.boolean(),email:a.string().allow(""),request_id:a.string().allow(""),country_code:a.string().allow(""),mobile:a.string().allow(""),success:a.boolean(),message:a.string().allow(""),resend_timer:a.number(),resend_token:a.string().allow("")})}static LoginSuccess(){return a.object({user:n.UserSchema(),request_id:a.string().allow(""),register_token:a.string().allow("")})}static ResetForgotPasswordSuccess(){return a.object({success:a.boolean()})}static VerifyOtpSuccess(){return a.object({user:n.UserSchema(),user_exists:a.boolean(),register_token:a.string().allow("")})}static VerifyForgotOtpSuccess(){return a.object({success:a.boolean(),forgot_token:a.string().allow("")})}static ResetPasswordSuccess(){return a.object({status:a.string().allow("")})}static RegisterFormSuccess(){return a.object({email:a.string().allow(""),resend_timer:a.number(),resend_token:a.string().allow(""),resend_email_token:a.string().allow(""),register_token:a.string().allow(""),success:a.boolean(),request_id:a.string().allow(""),message:a.string().allow(""),mobile:a.string().allow(""),country_code:a.string().allow(""),verify_email_otp:a.boolean(),verify_mobile_otp:a.boolean(),user_exists:a.boolean()})}static VerifyEmailSuccess(){return a.object({message:a.string().allow("")})}static HasPasswordSuccess(){return a.object({result:a.number()})}static LogoutSuccess(){return a.object({logout:a.boolean()})}static DeleteUserSuccess(){return a.object({success:a.boolean()})}static OtpSuccess(){return a.object({resend_timer:a.number(),resend_token:a.string().allow(""),register_token:a.string().allow(""),success:a.boolean(),request_id:a.string().allow(""),message:a.string().allow(""),mobile:a.string().allow(""),country_code:a.string().allow("")})}static EmailOtpSuccess(){return a.object({success:a.boolean(),resend_email_token:a.string().allow("")})}static SessionListSuccess(){return a.object({sessions:a.array().items(a.string().allow(""))})}static VerifyMobileOTPSuccess(){return a.object({user:n.UserSchema(),verify_mobile_link:a.boolean()})}static VerifyEmailOTPSuccess(){return a.object({user:n.UserSchema(),verify_email_link:a.boolean()})}static SendMobileVerifyLinkSuccess(){return a.object({verify_mobile_link:a.boolean()})}static SendEmailVerifyLinkSuccess(){return a.object({verify_email_link:a.boolean()})}static APIError(){return a.object({code:a.string().allow(""),message:a.string().allow(""),info:a.string().allow(""),request_id:a.string().allow(""),error:a.string().allow(""),meta:a.any(),authenticated:a.boolean()})}static FormRegisterRequestSchemaPhone(){return a.object({country_code:a.string().allow(""),mobile:a.string().allow("")})}static OAuthRequestSchemaOauth2(){return a.object({access_token:a.string().allow(""),expiry:a.number(),refresh_token:a.string().allow("")})}static OAuthRequestSchemaProfile(){return a.object({last_name:a.string().allow(""),image:a.string().allow(""),id:a.string().allow(""),email:a.string().allow(""),full_name:a.string().allow(""),first_name:a.string().allow("")})}static OAuthRequestAppleSchemaOauth(){return a.object({identity_token:a.string().allow("")})}static OAuthRequestAppleSchemaProfile(){return a.object({last_name:a.string().allow(""),full_name:a.string().allow(""),first_name:a.string().allow("")})}static PlatformSchema(){return a.object({display:a.string().allow(""),look_and_feel:n.LookAndFeel(),updated_at:a.string().allow(""),active:a.boolean(),forgot_password:a.boolean(),login:n.Login(),skip_captcha:a.boolean(),name:a.string().allow(""),meta:n.MetaSchema(),_id:a.string().allow(""),social:n.Social(),required_fields:n.RequiredFields(),register_required_fields:n.RegisterRequiredFields(),skip_login:a.boolean(),flash_card:n.FlashCard(),subtext:a.string().allow(""),social_tokens:n.SocialTokens(),created_at:a.string().allow(""),register:a.boolean(),mobile_image:a.string().allow("").allow(null),desktop_image:a.string().allow("").allow(null),delete_account_day:a.number(),delete_account_reasons:a.array().items(n.DeleteAccountReasons()),delete_account_consent:n.DeleteAccountConsent(),session_config:n.SessionExpiry(),__v:a.number()})}static LookAndFeel(){return a.object({card_position:a.string().allow(""),background_color:a.string().allow("")})}static Login(){return a.object({password:a.boolean(),otp:a.boolean()})}static MetaSchema(){return a.object({fynd_default:a.boolean()})}static Social(){return a.object({account_kit:a.boolean(),facebook:a.boolean(),google:a.boolean(),apple:a.boolean()})}static RequiredFields(){return a.object({email:n.PlatformEmail(),mobile:n.PlatformMobile()})}static PlatformEmail(){return a.object({is_required:a.boolean(),level:a.string().allow("")})}static PlatformMobile(){return a.object({is_required:a.boolean(),level:a.string().allow("")})}static RegisterRequiredFields(){return a.object({email:n.RegisterRequiredFieldsEmail(),mobile:n.RegisterRequiredFieldsMobile()})}static RegisterRequiredFieldsEmail(){return a.object({is_required:a.boolean(),level:a.string().allow("")})}static RegisterRequiredFieldsMobile(){return a.object({is_required:a.boolean(),level:a.string().allow("")})}static FlashCard(){return a.object({text:a.string().allow(""),text_color:a.string().allow(""),background_color:a.string().allow("")})}static SocialTokens(){return a.object({facebook:n.Facebook(),accountkit:n.Accountkit(),google:n.Google()})}static DeleteAccountReasons(){return a.object({reason_text:a.string().allow(""),reason_id:a.string().allow(""),show_text_area:a.boolean()})}static DeleteAccountConsent(){return a.object({consent_text:a.string().allow("")})}static Facebook(){return a.object({app_id:a.string().allow("")})}static Accountkit(){return a.object({app_id:a.string().allow("")})}static Google(){return a.object({app_id:a.string().allow("")})}static SessionExpiry(){return a.object({duration:a.number(),type:a.string().allow(""),is_rolling:a.boolean()})}static UserSchema(){return a.object({application_id:a.string().allow(""),user_id:a.string().allow(""),first_name:a.string().allow(""),meta:a.any(),last_name:a.string().allow(""),phone_numbers:a.array().items(n.PhoneNumber()),emails:a.array().items(n.Email()),gender:a.string().allow("").allow(null),dob:a.string().allow(""),active:a.boolean(),profile_pic_url:a.string().allow(""),username:a.string().allow(""),account_type:a.string().allow(""),_id:a.string().allow(""),created_at:a.string().allow(""),updated_at:a.string().allow("")})}static PhoneNumber(){return a.object({active:a.boolean(),primary:a.boolean(),verified:a.boolean(),phone:a.string().allow(""),country_code:a.number()})}static Email(){return a.object({primary:a.boolean(),verified:a.boolean(),email:a.string().allow(""),active:a.boolean()})}}e.exports=n},1144:(e,t,r)=>{const a=r(9955),n=r(5884);e.exports=class{static addEmail(){return a.object({platform:a.string().allow(""),body:n.EditEmailRequestSchema().required()}).required()}static addMobileNumber(){return a.object({platform:a.string().allow(""),body:n.EditMobileRequestSchema().required()}).required()}static deleteEmail(){return a.object({platform:a.string().allow(""),active:a.boolean().required(),primary:a.boolean().required(),verified:a.boolean().required(),email:a.string().allow("").required()}).required()}static deleteMobileNumber(){return a.object({platform:a.string().allow(""),active:a.boolean().required(),primary:a.boolean().required(),verified:a.boolean().required(),countryCode:a.string().allow("").required(),phone:a.string().allow("").required()}).required()}static deleteUser(){return a.object({body:n.DeleteApplicationUserRequestSchema().required()}).required()}static forgotPassword(){return a.object({body:n.ForgotPasswordRequestSchema().required()}).required()}static getListOfActiveSessions(){return a.object({})}static getLoggedInUser(){return a.object({})}static getPlatformConfig(){return a.object({name:a.string().allow("")})}static getUserAttributes(){return a.object({slug:a.string().allow("")})}static hasPassword(){return a.object({})}static loginWithAppleIOS(){return a.object({platform:a.string().allow(""),body:n.OAuthRequestAppleSchema().required()}).required()}static loginWithEmailAndPassword(){return a.object({body:n.PasswordLoginRequestSchema().required()}).required()}static loginWithFacebook(){return a.object({platform:a.string().allow(""),body:n.OAuthRequestSchema().required()}).required()}static loginWithGoogle(){return a.object({platform:a.string().allow(""),body:n.OAuthRequestSchema().required()}).required()}static loginWithGoogleAndroid(){return a.object({platform:a.string().allow(""),body:n.OAuthRequestSchema().required()}).required()}static loginWithGoogleIOS(){return a.object({platform:a.string().allow(""),body:n.OAuthRequestSchema().required()}).required()}static loginWithOTP(){return a.object({platform:a.string().allow(""),body:n.SendOtpRequestSchema().required()}).required()}static loginWithToken(){return a.object({body:n.TokenRequestBodySchema().required()}).required()}static logout(){return a.object({})}static registerWithForm(){return a.object({platform:a.string().allow(""),body:n.FormRegisterRequestSchema().required()}).required()}static resetForgotPassword(){return a.object({body:n.ForgotPasswordRequestSchema().required()}).required()}static sendForgotOTPOnEmail(){return a.object({platform:a.string().allow(""),body:n.SendEmailForgotOtpRequestSchema().required()}).required()}static sendForgotOTPOnMobile(){return a.object({platform:a.string().allow(""),body:n.SendMobileForgotOtpRequestSchema().required()}).required()}static sendOTPOnEmail(){return a.object({platform:a.string().allow(""),body:n.SendEmailOtpRequestSchema().required()}).required()}static sendOTPOnMobile(){return a.object({platform:a.string().allow(""),body:n.SendMobileOtpRequestSchema().required()}).required()}static sendResetPasswordEmail(){return a.object({platform:a.string().allow(""),body:n.SendResetPasswordEmailRequestSchema().required()}).required()}static sendResetPasswordMobile(){return a.object({platform:a.string().allow(""),body:n.SendResetPasswordMobileRequestSchema().required()}).required()}static sendResetToken(){return a.object({body:n.CodeRequestBodySchema().required()}).required()}static sendVerificationLinkToEmail(){return a.object({platform:a.string().allow(""),body:n.EditEmailRequestSchema().required()}).required()}static sendVerificationLinkToMobile(){return a.object({platform:a.string().allow(""),body:n.SendVerificationLinkMobileRequestSchema().required()}).required()}static setEmailAsPrimary(){return a.object({body:n.EditEmailRequestSchema().required()}).required()}static setMobileNumberAsPrimary(){return a.object({body:n.SendVerificationLinkMobileRequestSchema().required()}).required()}static updatePassword(){return a.object({body:n.UpdatePasswordRequestSchema().required()}).required()}static updateProfile(){return a.object({platform:a.string().allow(""),body:n.EditProfileRequestSchema().required()}).required()}static updateUserAttributes(){return a.object({body:n.UpdateUserAttributesRequest().required()}).required()}static userExists(){return a.object({q:a.string().allow("").required()}).required()}static verifyEmail(){return a.object({body:n.CodeRequestBodySchema().required()}).required()}static verifyEmailForgotOTP(){return a.object({platform:a.string().allow(""),body:n.VerifyEmailForgotOtpRequestSchema().required()}).required()}static verifyEmailOTP(){return a.object({platform:a.string().allow(""),body:n.VerifyEmailOtpRequestSchema().required()}).required()}static verifyMobile(){return a.object({body:n.CodeRequestBodySchema().required()}).required()}static verifyMobileForgotOTP(){return a.object({platform:a.string().allow(""),body:n.VerifyMobileForgotOtpRequestSchema().required()}).required()}static verifyMobileOTP(){return a.object({platform:a.string().allow(""),body:n.VerifyOtpRequestSchema().required()}).required()}}},4776:(e,t,r)=>{const a=r(2012);e.exports=({url:e,params:t})=>e.split("/").map((e=>("{"===e[0]&&"}"===e[e.length-1]&&(e=t[a(e.slice(1,e.length-1))]),e))).join("/")},4848:(e,t,r)=>{e.exports={ApplicationConfig:r(2288),ApplicationClient:r(8464),ApplicationModel:{CartApplicationModel:r(2108),CatalogApplicationModel:r(5104),CommonApplicationModel:r(3548),CommunicationApplicationModel:r(1839),ConfigurationApplicationModel:r(8288),ContentApplicationModel:r(1336),FileStorageApplicationModel:r(5248),LeadApplicationModel:r(5960),LogisticApplicationModel:r(3248),OrderApplicationModel:r(4920),PaymentApplicationModel:r(1068),PosCartApplicationModel:r(1408),RewardsApplicationModel:r(6216),ShareApplicationModel:r(9228),ThemeApplicationModel:r(5416),UserApplicationModel:r(5884)}}},4233:(e,t,r)=>{const a=r(344),n=r(7992),o=r(9899),s=r(3660),{sign:i}=r(5044),{FDKServerResponseError:l}=r(9916),{log:c,Logger:u,getLoggerLevel:d}=r(1544),p=r(6832),{version:g}=r(6604);o.defaults.withCredentials=!0;const m=o.create({paramsSerializer:e=>s.stringify(e)});m.interceptors.request.use((function(e){try{if(d()<=c.levels.DEBUG){const t=p(e);c.debug(t)}}catch(e){u({level:"ERROR",message:`Error Generating Curl: ${e}`})}finally{return e}}),(function(e){u({level:"ERROR",message:e.data||e.message,stack:e.data.stack||e.stack})})),m.interceptors.request.use((e=>{if(!e.url)throw new Error("No URL present in request config, unable to sign request");let t=e.url;e.baseURL&&!n(e.url)&&(t=a(e.baseURL,e.url));const{host:r,pathname:o,search:l}=new URL(t),{data:c,headers:u,method:d,params:p}=e;u["x-fp-sdk-version"]=g;let m=s.parse(l);m={...m,...p};let w,f="";if(m&&Object.keys(m).length&&""!==s.stringify(m).trim()&&(f=`?${s.stringify(m)}`),"get"!=d){const t=function(e){const{transformRequest:t}=e;if(t){if("function"==typeof t)return t;if(t.length)return t[0]}throw new Error("Could not get default transformRequest function from Axios defaults")}(e);w=t(c,u)}const{common:y,delete:b,get:h,head:_,post:v,put:R,patch:k,...P}=u,j={method:d&&d.toUpperCase(),host:r,path:o+l+f,body:w,headers:P},C=i(j);return e.headers["x-fp-date"]=C["x-fp-date"],e.headers["x-fp-signature"]=C["x-fp-signature"],e})),m.interceptors.response.use((function(e){return"head"==e.config.method?e.headers:(u({level:"DEBUG",type:"RESPONSE",message:e.data,url:e.config.url}),e.config.responseHeaders?[e.data,e.headers]:e.data)}),(function(e){throw e.response?(u({level:"ERROR",message:e.response.data||e.message,stack:e.response.data.stack||e.stack,request:{method:e.config.method,url:e.config.url,headers:e.config.headers}}),new l(e.response.data.message||e.message,e.response.data.stack||e.stack,e.response.statusText,e.response.status,e.response.data)):e.request?(u({level:"ERROR",message:e.data||e.message,stack:e.data.stack||e.stack,request:{method:e.config.method,url:e.config.url,headers:e.config.headers}}),new l(e.message,e.stack,e.code,e.code)):(u({level:"ERROR",message:e.message}),new l(e.message,e.stack))})),e.exports={fdkAxios:m}},9916:e=>{class t extends Error{constructor(e,t,r=null,a=null,n=null){super(e),this.name="FDKServerResponseError",this.stackTrace=t,this.status=r,this.code=a,this.details=n}}class r extends Error{constructor(e){super(e.message),this.name="FDKClientValidationError",this.details=e.details}}class a extends Error{constructor(e){super(e.message),this.name="FDKResponseValidationError",this.details=JSON.parse(JSON.stringify(e.details))}}class n extends Error{constructor(e){super(e),this.name="FDKInvalidCredentialError"}}class o extends Error{constructor(e){super(e),this.name="FDKTokenIssueError"}}class s extends Error{constructor(e){super(e),this.name="FDKOAuthCodeError"}}class i extends Error{constructor(e){super(e),this.name="FDKException"}}e.exports={FDKServerResponseError:t,FDKClientValidationError:r,FDKResponseValidationError:a,FDKInvalidCredentialError:n,FDKTokenIssueError:o,FDKOAuthCodeError:s,FDKException:i}},1544:(e,t,r)=>{const a=r(6220),n=r(6604).version;function o(){return(new Date).toString()}e.exports={log:a,Logger:function(e){const{level:t,message:r,...s}=e;"TRACE"===t&&a.trace(JSON.stringify({level:t,detail:r,...s,time:o(),version:n})),"DEBUG"===t&&a.debug(JSON.stringify({level:t,detail:r,...s,time:o(),version:n})),"INFO"===t&&a.info(JSON.stringify({level:t,detail:r,...s,time:o(),version:n})),"WARN"===t&&a.warn(JSON.stringify({level:t,detail:r,...s,time:o(),version:n})),"ERROR"===t&&a.error(JSON.stringify({level:t,detail:r,...s,time:o(),version:n}))},setLoggerLevel:function(e){a.setLevel(e)},getLoggerLevel:function(){return a.getLevel()}}},3768:e=>{e.exports=class{constructor(e){this.pageNo=e,this.callback=void 0}setCallback(e){this.callback=e}hasNext(){return this.isNext}setPaginator({hasNext:e,nextId:t,pageNo:r=1}){this.isNext=e,this.nextId=t,this.pageNo=r}next(){return this.callback()}}},6832:(e,t,r)=>{const a=r(3660),n=r(344),o=r(7992);let s;e.exports=function(e){return s=e,`curl ${`--request ${s.method.toUpperCase()}`.trim()} "${function(){let e=s.url;s.baseURL&&!o(e)&&(e=n(s.baseURL,e).trim());let{search:t}=new URL(e);queryParamObject={...a.parse(t),...s.params};let r="";return queryParamObject&&Object.keys(queryParamObject).length&&""!==a.stringify(queryParamObject).trim()&&(r=`?${a.stringify(queryParamObject).trim()}`),`${e}${t.trim()}${r}`}()}" ${function(){let e=["common","delete","get","head","post","put","patch"],t={};s.headers[s.method]&&(t=s.headers[s.method]),t=Object.keys(t).reduce(((e,r)=>(e[r.toLowerCase()]=t[r],e)),{});for(let r in s.headers)e.includes(r)||(s.headers[r]instanceof Object?t[r.toLowerCase()]=JSON.stringify(s.headers[r]):t[r.toLowerCase()]=s.headers[r]);let r="";for(let e in t)r+=` --header '${e}: ${t[e]}'`;return r.trim()}()} ${"GET"!==s.method.toUpperCase()&&null!==s.data&&""!==s.data&&s.data?`--data-raw '${JSON.stringify(s.data)}'`.trim():""}`.trim()}},3748:(e,t,r)=>{const{FDKException:a}=r(9916),n=":::",o=e=>{let t="";for(const r in e)if("object"!=typeof e[r]&&e[r]){const a=encodeURIComponent(e[r]);t+=`${r}=${a}&`}else Array.isArray(e[r])?e[r].forEach((e=>{const a=encodeURIComponent(e);t+=`${r}=${a}&`})):"object"==typeof e[r]&&e[r]&&(t+=o(e[r]));return t?t.slice(0,-1):t},s=(e="",t="/")=>{for(;e.charAt(0)==t;)e=e.substring(1);for(;e.charAt(e.length-1)==t;)e=e.substring(0,e.length-1);return e},i=()=>"undefined"!=typeof window&&void 0!==window.document,l=()=>"undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node;e.exports={transformRequestOptions:o,getParamsFromItem:e=>{let t="";for(let r in e)if(Array.isArray(e[r])){for(let a=0;a{let t=e.split("?");if(t.length>1){const e=new URLSearchParams(t[1]);let r={};for(let t of e){let e=t[0],a=t[1];r[e]=r[e]?[...r[e],a]:[a]}return r}return{}},trimChar:s,generateUrlWithParams:(e={},t)=>{if(!e||!e.link)return"";if(!t)return`/${s(e.link.split(":")[0])}`;const r={};for(let e in t)if(Array.isArray(t[e])){let a="";for(let r=0;r{let r={value:"",params:{}};t=s(t);for(let a=0;a{if(l())return Buffer.from(e,"utf-8").toString("base64");if(i())return window.btoa(e);throw new a("Base64 conversion error: Unsupported environment")},isBrowser:i,isNode:l,NAV_TYPE:{PAGE:"page",POPUP:"popup"}}},6604:e=>{"use strict";e.exports=JSON.parse('{"name":"@gofynd/fdk-client-javascript","version":"1.4.2-beta.1","description":"","main":"index.js","scripts":{"test":"jest --coverage","test:standalone":"npm run build && npx cypress run","build":"webpack","prettier":"npx prettier -w ./sdk ./tests && npx tsc"},"author":"Jigar Dafda","license":"ISC","dependencies":{"axios":"^0.27.2","camelcase":"^6.3.0","joi":"^17.7.0","loglevel":"^1.8.1","query-string":"^7.1.3","@gofynd/fp-signature":"^1.0.1"},"devDependencies":{"axios-cookiejar-support":"^4.0.6","axios-mock-adapter":"^1.21.2","clean-webpack-plugin":"^4.0.0","coveralls":"^3.1.1","cypress":"^9.2.0","dotenv":"^16.0.3","jest":"^29.5.0","tough-cookie":"^4.1.2","webpack":"^5.81.0","webpack-cli":"^5.0.2"},"files":["sdk/**/*.js","sdk/**/*.d.ts","./*.js","./*.d.ts","!**.config.*","!dist","!cypress"]}')}},t={},r=function r(a){var n=t[a];if(void 0!==n)return n.exports;var o=t[a]={exports:{}};return e[a].call(o.exports,o,o.exports,r),o.exports}(2492),a=window;for(var n in r)a[n]=r[n];r.__esModule&&Object.defineProperty(a,"__esModule",{value:!0})})(); \ No newline at end of file +(()=>{var e={2492:(e,t,r)=>{const{ApplicationConfig:a,ApplicationClient:n,ApplicationModel:o}=r(4848);e.exports={ApplicationConfig:a,ApplicationClient:n,ApplicationModel:o}},5044:function(e){var t;"undefined"!=typeof self&&self,t=()=>(()=>{var e={249:function(e,t,r){var a;e.exports=(a=a||function(e,t){var a;if("undefined"!=typeof window&&window.crypto&&(a=window.crypto),"undefined"!=typeof self&&self.crypto&&(a=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(a=globalThis.crypto),!a&&"undefined"!=typeof window&&window.msCrypto&&(a=window.msCrypto),!a&&void 0!==r.g&&r.g.crypto&&(a=r.g.crypto),!a)try{a=r(480)}catch(e){}var n=function(){if(a){if("function"==typeof a.getRandomValues)try{return a.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof a.randomBytes)try{return a.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),s={},i=s.lib={},l=i.Base={extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=i.WordArray=l.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||d).stringify(this)},concat:function(e){var t=this.words,r=e.words,a=this.sigBytes,n=e.sigBytes;if(this.clamp(),a%4)for(var o=0;o>>2]>>>24-o%4*8&255;t[a+o>>>2]|=s<<24-(a+o)%4*8}else for(var i=0;i>>2]=r[i>>>2];return this.sigBytes+=n,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=l.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r>>2]>>>24-n%4*8&255;a.push((o>>>4).toString(16)),a.push((15&o).toString(16))}return a.join("")},parse:function(e){for(var t=e.length,r=[],a=0;a>>3]|=parseInt(e.substr(a,2),16)<<24-a%8*4;return new c.init(r,t/2)}},p=u.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,a=[],n=0;n>>2]>>>24-n%4*8&255;a.push(String.fromCharCode(o))}return a.join("")},parse:function(e){for(var t=e.length,r=[],a=0;a>>2]|=(255&e.charCodeAt(a))<<24-a%4*8;return new c.init(r,t)}},g=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(p.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return p.parse(unescape(encodeURIComponent(e)))}},m=i.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=g.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r,a=this._data,n=a.words,o=a.sigBytes,s=this.blockSize,i=o/(4*s),l=(i=t?e.ceil(i):e.max((0|i)-this._minBufferSize,0))*s,u=e.min(4*l,o);if(l){for(var d=0;da&&(t=e.finalize(t)),t.clamp();for(var n=this._oKey=t.clone(),s=this._iKey=t.clone(),i=n.words,l=s.words,c=0;c>>7)^(m<<14|m>>>18)^m>>>3,f=c[g-2],y=(f<<15|f>>>17)^(f<<13|f>>>19)^f>>>10;c[g]=w+c[g-7]+y+c[g-16]}var b=a&n^a&o^n&o,h=(a<<30|a>>>2)^(a<<19|a>>>13)^(a<<10|a>>>22),_=p+((i<<26|i>>>6)^(i<<21|i>>>11)^(i<<7|i>>>25))+(i&u^~i&d)+l[g]+c[g];p=d,d=u,u=i,i=s+_|0,s=o,o=n,n=a,a=_+(h+b)|0}r[0]=r[0]+a|0,r[1]=r[1]+n|0,r[2]=r[2]+o|0,r[3]=r[3]+s|0,r[4]=r[4]+i|0,r[5]=r[5]+u|0,r[6]=r[6]+d|0,r[7]=r[7]+p|0},_doFinalize:function(){var t=this._data,r=t.words,a=8*this._nDataBytes,n=8*t.sigBytes;return r[n>>>5]|=128<<24-n%32,r[14+(n+64>>>9<<4)]=e.floor(a/4294967296),r[15+(n+64>>>9<<4)]=a,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(u),t.HmacSHA256=o._createHmacHelper(u)}(Math),a.SHA256)},335:e=>{"use strict";function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,a,n,o){a=a||"&",n=n||"=";var s={};if("string"!=typeof e||0===e.length)return s;var i=/\+/g;e=e.split(a);var l=1e3;o&&"number"==typeof o.maxKeys&&(l=o.maxKeys);var c=e.length;l>0&&c>l&&(c=l);for(var u=0;u=0?(d=w.substr(0,f),p=w.substr(f+1)):(d=w,p=""),g=decodeURIComponent(d),m=decodeURIComponent(p),t(s,g)?r(s[g])?s[g].push(m):s[g]=[s[g],m]:s[g]=m}return s};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},795:e=>{"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,o,s,i){return o=o||"&",s=s||"=",null===e&&(e=void 0),"object"==typeof e?a(n(e),(function(n){var i=encodeURIComponent(t(n))+s;return r(e[n])?a(e[n],(function(e){return i+encodeURIComponent(t(e))})).join(o):i+encodeURIComponent(t(e[n]))})).join(o):i?encodeURIComponent(t(i))+s+encodeURIComponent(t(e)):""};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function a(e,t){if(e.map)return e.map(t);for(var r=[],a=0;a{"use strict";t.decode=t.parse=r(335),t.encode=t.stringify=r(795)},832:function(e,t,r){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var n=a(r(735)),o=r(601),s=r(593),i=function(){function e(e,t){if(!t)throw new Error("Signature secrete cannot be null, pass secret parameter in constructor.");this.secret=t,this.request=e;var r=this.request.headers=this.request.headers||{};!this.request.method&&this.request.body&&(this.request.method="POST"),r.Host||r.host||(r.Host=this.request.host,this.request.port&&(r.Host+=":"+this.request.port)),this.request.host||(this.request.host=r.Host||r.host)}return e.prototype.prepareRequest=function(){this.parsePath();var e,t=this.request,r=t.headers;t.signQuery?(this.parsedPath.query=e=this.parsedPath.query||{},e["x-fp-date"]?this.datetime=e["x-fp-date"]:e["x-fp-date"]=this.getDateTime()):(t.doNotModifyHeaders||(r["x-fp-date"]?this.datetime=r["x-fp-date"]||r["x-fp-date"]:r["x-fp-date"]=this.getDateTime()),delete r["x-fp-signature"],delete r["X-Fp-Signature"])},e.prototype.sign=function(){return this.request.signQuery=!1,this.parsedPath||this.prepareRequest(),this.request.headers["x-fp-signature"]=this.signature(),{"x-fp-signature":this.request.headers["x-fp-signature"],"x-fp-date":this.request.headers["x-fp-date"]}},e.prototype.signQuery=function(){return this.request.signQuery=!0,this.parsedPath||this.prepareRequest(),this.parsedPath.query["x-fp-signature"]=this.signature(),this.request.path=this.formatPath(),{"x-fp-signature":this.parsedPath.query["x-fp-signature"],"x-fp-date":this.parsedPath.query["x-fp-date"]}},e.prototype.getDateTime=function(){if(!this.datetime){var e=this.request.headers,t=new Date(e.Date||e.date||new Date);this.datetime=t.toISOString().replace(/[:\-]|\.\d{3}/g,"")}return this.datetime},e.prototype.signature=function(){var e=this.stringToSign();return"v1.1:".concat((0,s.hmac)(this.secret,e,"hex"))},e.prototype.stringToSign=function(){return[this.getDateTime(),(0,s.hash)(this.canonicalString(),"hex")].join("\n")},e.prototype.canonicalString=function(){this.parsedPath||this.prepareRequest();var e=this.parsedPath.path,t=this.parsedPath.query,r=(this.request.headers,""),a=this.request.doNotEncodePath,n=(0,s.hash)(this.request.body||"","hex");if(t){var o=Object.keys(t).reduce((function(e,r){return r?(e[(0,s.encodeRfc3986Full)(r)]=(Array.isArray(t[r]),t[r]),e):e}),{}),i=[];Object.keys(o).sort().forEach((function(e){Array.isArray(o[e])?o[e].map(s.encodeRfc3986Full).sort().forEach((function(t){i.push(e+"="+t)})):i.push(e+"="+(0,s.encodeRfc3986Full)(o[e]))})),r=i.join("&")}return"/"!==e&&"/"!==(e=(e=e.replace(/\/{2,}/g,"/")).split("/").reduce((function(e,t){return".."===t?e.pop():"."!==t&&(a&&(t=decodeURIComponent(t.replace(/\+/g," "))),e.push((0,s.encodeRfc3986Full)(t))),e}),[]).join("/"))[0]&&(e="/"+e),[this.request.method||"GET",e,r,this.canonicalHeaders()+"\n",this.signedHeaders(),n].join("\n")},e.prototype.canonicalHeaders=function(){var e=this.request.headers;return Object.keys(e).filter((function(e){if(null==o.HEADERS_TO_IGNORE[e.toLowerCase()]){var t=!1;for(var r in o.HEADERS_TO_INCLUDE)t=t||new RegExp(o.HEADERS_TO_INCLUDE[r],"ig").test(e);return t}return!1})).sort((function(e,t){return e.toLowerCase()=0&&(delete(r=n.default.parse(e.slice(t+1)))["x-fp-signature"],delete r["X-Fp-Signature"],e=e.slice(0,t)),e=e.split("/").map((function(e){return encodeURIComponent(decodeURIComponent(e))})).join("/"),this.parsedPath={path:e,query:r}},e.prototype.formatPath=function(){var e=this.parsedPath.path,t=this.parsedPath.query;return t?(null!=t[""]&&delete t[""],e+"?"+(0,s.encodeRfc3986)(n.default.stringify(t))):e},e}();t.default=i},601:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HEADERS_TO_INCLUDE=t.HEADERS_TO_IGNORE=void 0,t.HEADERS_TO_IGNORE={authorization:!0,connection:!0,"x-amzn-trace-id":!0,"user-agent":!0,expect:!0,"presigned-expires":!0,range:!0},t.HEADERS_TO_INCLUDE=["x-fp-.*","host"]},607:function(e,t,r){"use strict";var a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,r=1,a=arguments.length;r{}},t={};function r(a){var n=t[a];if(void 0!==n)return n.exports;var o=t[a]={exports:{}};return e[a].call(o.exports,o,o.exports,r),o.exports}return r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r(607)})(),e.exports=t()},9899:(e,t,r)=>{e.exports=r(2860)},1816:(e,t,r)=>{"use strict";var a=r(2652),n=r(1776),o=r(2484),s=r(3640),i=r(6784),l=r(320),c=r(8104),u=r(288),d=r(3568),p=r(3992),g=r(4392);e.exports=function(e){return new Promise((function(t,r){var m,w=e.data,f=e.headers,y=e.responseType;function b(){e.cancelToken&&e.cancelToken.unsubscribe(m),e.signal&&e.signal.removeEventListener("abort",m)}a.isFormData(w)&&a.isStandardBrowserEnv()&&delete f["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var _=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";f.Authorization="Basic "+btoa(_+":"+v)}var k=i(e.baseURL,e.url);function R(){if(h){var a="getAllResponseHeaders"in h?l(h.getAllResponseHeaders()):null,o={data:y&&"text"!==y&&"json"!==y?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:a,config:e,request:h};n((function(e){t(e),b()}),(function(e){r(e),b()}),o),h=null}}if(h.open(e.method.toUpperCase(),s(k,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,"onloadend"in h?h.onloadend=R:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(R)},h.onabort=function(){h&&(r(new d("Request aborted",d.ECONNABORTED,e,h)),h=null)},h.onerror=function(){r(new d("Network Error",d.ERR_NETWORK,e,h,h)),h=null},h.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",a=e.transitional||u;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new d(t,a.clarifyTimeoutError?d.ETIMEDOUT:d.ECONNABORTED,e,h)),h=null},a.isStandardBrowserEnv()){var P=(e.withCredentials||c(k))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;P&&(f[e.xsrfHeaderName]=P)}"setRequestHeader"in h&&a.forEach(f,(function(e,t){void 0===w&&"content-type"===t.toLowerCase()?delete f[t]:h.setRequestHeader(t,e)})),a.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),y&&"json"!==y&&(h.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(m=function(e){h&&(r(!e||e&&e.type?new p:e),h.abort(),h=null)},e.cancelToken&&e.cancelToken.subscribe(m),e.signal&&(e.signal.aborted?m():e.signal.addEventListener("abort",m))),w||(w=null);var j=g(k);j&&-1===["http","https","file"].indexOf(j)?r(new d("Unsupported protocol "+j+":",d.ERR_BAD_REQUEST,e)):h.send(w)}))}},2860:(e,t,r)=>{"use strict";var a=r(2652),n=r(9504),o=r(2508),s=r(6183),i=function e(t){var r=new o(t),i=n(o.prototype.request,r);return a.extend(i,o.prototype,r),a.extend(i,r),i.create=function(r){return e(s(t,r))},i}(r(5260));i.Axios=o,i.CanceledError=r(3992),i.CancelToken=r(6312),i.isCancel=r(9864),i.VERSION=r(8340).version,i.toFormData=r(2740),i.AxiosError=r(3568),i.Cancel=i.CanceledError,i.all=function(e){return Promise.all(e)},i.spread=r(6711),i.isAxiosError=r(6288),e.exports=i,e.exports.default=i},6312:(e,t,r)=>{"use strict";var a=r(3992);function n(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;this.promise.then((function(e){if(r._listeners){var t,a=r._listeners.length;for(t=0;t{"use strict";var a=r(3568);function n(e){a.call(this,null==e?"canceled":e,a.ERR_CANCELED),this.name="CanceledError"}r(2652).inherits(n,a,{__CANCEL__:!0}),e.exports=n},9864:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},2508:(e,t,r)=>{"use strict";var a=r(2652),n=r(3640),o=r(2747),s=r(9088),i=r(6183),l=r(6784),c=r(5984),u=c.validators;function d(e){this.defaults=e,this.interceptors={request:new o,response:new o}}d.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=i(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;void 0!==r&&c.assertOptions(r,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var a=[],n=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(n=n&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));var o,l=[];if(this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)})),!n){var d=[s,void 0];for(Array.prototype.unshift.apply(d,a),d=d.concat(l),o=Promise.resolve(t);d.length;)o=o.then(d.shift(),d.shift());return o}for(var p=t;a.length;){var g=a.shift(),m=a.shift();try{p=g(p)}catch(e){m(e);break}}try{o=s(p)}catch(e){return Promise.reject(e)}for(;l.length;)o=o.then(l.shift(),l.shift());return o},d.prototype.getUri=function(e){e=i(this.defaults,e);var t=l(e.baseURL,e.url);return n(t,e.params,e.paramsSerializer)},a.forEach(["delete","get","head","options"],(function(e){d.prototype[e]=function(t,r){return this.request(i(r||{},{method:e,url:t,data:(r||{}).data}))}})),a.forEach(["post","put","patch"],(function(e){function t(t){return function(r,a,n){return this.request(i(n||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:a}))}}d.prototype[e]=t(),d.prototype[e+"Form"]=t(!0)})),e.exports=d},3568:(e,t,r)=>{"use strict";var a=r(2652);function n(e,t,r,a,n){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),a&&(this.request=a),n&&(this.response=n)}a.inherits(n,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var o=n.prototype,s={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){s[e]={value:e}})),Object.defineProperties(n,s),Object.defineProperty(o,"isAxiosError",{value:!0}),n.from=function(e,t,r,s,i,l){var c=Object.create(o);return a.toFlatObject(e,c,(function(e){return e!==Error.prototype})),n.call(c,e.message,t,r,s,i),c.name=e.name,l&&Object.assign(c,l),c},e.exports=n},2747:(e,t,r)=>{"use strict";var a=r(2652);function n(){this.handlers=[]}n.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},n.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},n.prototype.forEach=function(e){a.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=n},6784:(e,t,r)=>{"use strict";var a=r(7992),n=r(344);e.exports=function(e,t){return e&&!a(t)?n(e,t):t}},9088:(e,t,r)=>{"use strict";var a=r(2652),n=r(712),o=r(9864),s=r(5260),i=r(3992);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new i}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=n.call(e,e.data,e.headers,e.transformRequest),e.headers=a.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),a.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||s.adapter)(e).then((function(t){return l(e),t.data=n.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(l(e),t&&t.response&&(t.response.data=n.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},6183:(e,t,r)=>{"use strict";var a=r(2652);e.exports=function(e,t){t=t||{};var r={};function n(e,t){return a.isPlainObject(e)&&a.isPlainObject(t)?a.merge(e,t):a.isPlainObject(t)?a.merge({},t):a.isArray(t)?t.slice():t}function o(r){return a.isUndefined(t[r])?a.isUndefined(e[r])?void 0:n(void 0,e[r]):n(e[r],t[r])}function s(e){if(!a.isUndefined(t[e]))return n(void 0,t[e])}function i(r){return a.isUndefined(t[r])?a.isUndefined(e[r])?void 0:n(void 0,e[r]):n(void 0,t[r])}function l(r){return r in t?n(e[r],t[r]):r in e?n(void 0,e[r]):void 0}var c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l};return a.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||o,n=t(e);a.isUndefined(n)&&t!==l||(r[e]=n)})),r}},1776:(e,t,r)=>{"use strict";var a=r(3568);e.exports=function(e,t,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new a("Request failed with status code "+r.status,[a.ERR_BAD_REQUEST,a.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}},712:(e,t,r)=>{"use strict";var a=r(2652),n=r(5260);e.exports=function(e,t,r){var o=this||n;return a.forEach(r,(function(r){e=r.call(o,e,t)})),e}},5260:(e,t,r)=>{"use strict";var a=r(2652),n=r(7700),o=r(3568),s=r(288),i=r(2740),l={"Content-Type":"application/x-www-form-urlencoded"};function c(e,t){!a.isUndefined(e)&&a.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var u,d={transitional:s,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(u=r(1816)),u),transformRequest:[function(e,t){if(n(t,"Accept"),n(t,"Content-Type"),a.isFormData(e)||a.isArrayBuffer(e)||a.isBuffer(e)||a.isStream(e)||a.isFile(e)||a.isBlob(e))return e;if(a.isArrayBufferView(e))return e.buffer;if(a.isURLSearchParams(e))return c(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var r,o=a.isObject(e),s=t&&t["Content-Type"];if((r=a.isFileList(e))||o&&"multipart/form-data"===s){var l=this.env&&this.env.FormData;return i(r?{"files[]":e}:e,l&&new l)}return o||"application/json"===s?(c(t,"application/json"),function(e,t,r){if(a.isString(e))try{return(0,JSON.parse)(e),a.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||d.transitional,r=t&&t.silentJSONParsing,n=t&&t.forcedJSONParsing,s=!r&&"json"===this.responseType;if(s||n&&a.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(s){if("SyntaxError"===e.name)throw o.from(e,o.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:r(9092)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};a.forEach(["delete","get","head"],(function(e){d.headers[e]={}})),a.forEach(["post","put","patch"],(function(e){d.headers[e]=a.merge(l)})),e.exports=d},288:e=>{"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},8340:e=>{e.exports={version:"0.27.2"}},9504:e=>{"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),a=0;a{"use strict";var a=r(2652);function n(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;var o;if(r)o=r(t);else if(a.isURLSearchParams(t))o=t.toString();else{var s=[];a.forEach(t,(function(e,t){null!=e&&(a.isArray(e)?t+="[]":e=[e],a.forEach(e,(function(e){a.isDate(e)?e=e.toISOString():a.isObject(e)&&(e=JSON.stringify(e)),s.push(n(t)+"="+n(e))})))})),o=s.join("&")}if(o){var i=e.indexOf("#");-1!==i&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},344:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},2484:(e,t,r)=>{"use strict";var a=r(2652);e.exports=a.isStandardBrowserEnv()?{write:function(e,t,r,n,o,s){var i=[];i.push(e+"="+encodeURIComponent(t)),a.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),a.isString(n)&&i.push("path="+n),a.isString(o)&&i.push("domain="+o),!0===s&&i.push("secure"),document.cookie=i.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},7992:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},6288:(e,t,r)=>{"use strict";var a=r(2652);e.exports=function(e){return a.isObject(e)&&!0===e.isAxiosError}},8104:(e,t,r)=>{"use strict";var a=r(2652);e.exports=a.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(e){var a=e;return t&&(r.setAttribute("href",a),a=r.href),r.setAttribute("href",a),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=n(window.location.href),function(t){var r=a.isString(t)?n(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},7700:(e,t,r)=>{"use strict";var a=r(2652);e.exports=function(e,t){a.forEach(e,(function(r,a){a!==t&&a.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[a])}))}},9092:e=>{e.exports=null},320:(e,t,r)=>{"use strict";var a=r(2652),n=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,o,s={};return e?(a.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=a.trim(e.substr(0,o)).toLowerCase(),r=a.trim(e.substr(o+1)),t){if(s[t]&&n.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([r]):s[t]?s[t]+", "+r:r}})),s):s}},4392:e=>{"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},6711:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},2740:(e,t,r)=>{"use strict";var a=r(2652);e.exports=function(e,t){t=t||new FormData;var r=[];function n(e){return null===e?"":a.isDate(e)?e.toISOString():a.isArrayBuffer(e)||a.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}return function e(o,s){if(a.isPlainObject(o)||a.isArray(o)){if(-1!==r.indexOf(o))throw Error("Circular reference detected in "+s);r.push(o),a.forEach(o,(function(r,o){if(!a.isUndefined(r)){var i,l=s?s+"."+o:o;if(r&&!s&&"object"==typeof r)if(a.endsWith(o,"{}"))r=JSON.stringify(r);else if(a.endsWith(o,"[]")&&(i=a.toArray(r)))return void i.forEach((function(e){!a.isUndefined(e)&&t.append(l,n(e))}));e(r,l)}})),r.pop()}else t.append(s,n(o))}(e),t}},5984:(e,t,r)=>{"use strict";var a=r(8340).version,n=r(3568),o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var s={};o.transitional=function(e,t,r){function o(e,t){return"[Axios v"+a+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,a,i){if(!1===e)throw new n(o(a," has been removed"+(t?" in "+t:"")),n.ERR_DEPRECATED);return t&&!s[a]&&(s[a]=!0,console.warn(o(a," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,a,i)}},e.exports={assertOptions:function(e,t,r){if("object"!=typeof e)throw new n("options must be an object",n.ERR_BAD_OPTION_VALUE);for(var a=Object.keys(e),o=a.length;o-- >0;){var s=a[o],i=t[s];if(i){var l=e[s],c=void 0===l||i(l,s,e);if(!0!==c)throw new n("option "+s+" must be "+c,n.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new n("Unknown option "+s,n.ERR_BAD_OPTION)}},validators:o}},2652:(e,t,r)=>{"use strict";var a,n=r(9504),o=Object.prototype.toString,s=(a=Object.create(null),function(e){var t=o.call(e);return a[t]||(a[t]=t.slice(8,-1).toLowerCase())});function i(e){return e=e.toLowerCase(),function(t){return s(t)===e}}function l(e){return Array.isArray(e)}function c(e){return void 0===e}var u=i("ArrayBuffer");function d(e){return null!==e&&"object"==typeof e}function p(e){if("object"!==s(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var g=i("Date"),m=i("File"),w=i("Blob"),f=i("FileList");function y(e){return"[object Function]"===o.call(e)}var b=i("URLSearchParams");function h(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),l(e))for(var r=0,a=e.length;r0;)s[o=a[n]]||(t[o]=e[o],s[o]=!0);e=Object.getPrototypeOf(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:i,endsWith:function(e,t,r){e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;var a=e.indexOf(t,r);return-1!==a&&a===r},toArray:function(e){if(!e)return null;var t=e.length;if(c(t))return null;for(var r=new Array(t);t-- >0;)r[t]=e[t];return r},isTypedArray:v,isFileList:f}},2012:e=>{"use strict";const t=/[\p{Lu}]/u,r=/[\p{Ll}]/u,a=/^[\p{Lu}](?![\p{Lu}])/gu,n=/([\p{Alpha}\p{N}_]|$)/u,o=/[_.\- ]+/,s=new RegExp("^"+o.source),i=new RegExp(o.source+n.source,"gu"),l=new RegExp("\\d+"+n.source,"gu"),c=(e,n)=>{if("string"!=typeof e&&!Array.isArray(e))throw new TypeError("Expected the input to be `string | string[]`");if(n={pascalCase:!1,preserveConsecutiveUppercase:!1,...n},0===(e=Array.isArray(e)?e.map((e=>e.trim())).filter((e=>e.length)).join("-"):e.trim()).length)return"";const o=!1===n.locale?e=>e.toLowerCase():e=>e.toLocaleLowerCase(n.locale),c=!1===n.locale?e=>e.toUpperCase():e=>e.toLocaleUpperCase(n.locale);return 1===e.length?n.pascalCase?c(e):o(e):(e!==o(e)&&(e=((e,a,n)=>{let o=!1,s=!1,i=!1;for(let l=0;l(a.lastIndex=0,e.replace(a,(e=>t(e)))))(e,o):o(e),n.pascalCase&&(e=c(e.charAt(0))+e.slice(1)),((e,t)=>(i.lastIndex=0,l.lastIndex=0,e.replace(i,((e,r)=>t(r))).replace(l,(e=>t(e)))))(e,c))};e.exports=c,e.exports.default=c},7140:e=>{"use strict";var t="%[a-f0-9]{2}",r=new RegExp("("+t+")|([^%]+?)","gi"),a=new RegExp("("+t+")+","gi");function n(e,t){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(1===e.length)return e;t=t||1;var r=e.slice(0,t),a=e.slice(t);return Array.prototype.concat.call([],n(r),n(a))}function o(e){try{return decodeURIComponent(e)}catch(o){for(var t=e.match(r)||[],a=1;a{"use strict";e.exports=function(e,t){for(var r={},a=Object.keys(e),n=Array.isArray(t),o=0;o{var t;self,t=()=>{return e={7629:(e,t,r)=>{"use strict";const a=r(375),n=r(8571),o=r(9474),s=r(1687),i=r(8652),l=r(8160),c=r(3292),u=r(6354),d=r(8901),p=r(9708),g=r(6914),m=r(2294),w=r(6133),f=r(1152),y=r(8863),b=r(2036),h={Base:class{constructor(e){this.type=e,this.$_root=null,this._definition={},this._reset()}_reset(){this._ids=new m.Ids,this._preferences=null,this._refs=new w.Manager,this._cache=null,this._valids=null,this._invalids=null,this._flags={},this._rules=[],this._singleRules=new Map,this.$_terms={},this.$_temp={ruleset:null,whens:{}}}describe(){return a("function"==typeof p.describe,"Manifest functionality disabled"),p.describe(this)}allow(...e){return l.verifyFlat(e,"allow"),this._values(e,"_valids")}alter(e){a(e&&"object"==typeof e&&!Array.isArray(e),"Invalid targets argument"),a(!this._inRuleset(),"Cannot set alterations inside a ruleset");const t=this.clone();t.$_terms.alterations=t.$_terms.alterations||[];for(const r in e){const n=e[r];a("function"==typeof n,"Alteration adjuster for",r,"must be a function"),t.$_terms.alterations.push({target:r,adjuster:n})}return t.$_temp.ruleset=!1,t}artifact(e){return a(void 0!==e,"Artifact cannot be undefined"),a(!this._cache,"Cannot set an artifact with a rule cache"),this.$_setFlag("artifact",e)}cast(e){return a(!1===e||"string"==typeof e,"Invalid to value"),a(!1===e||this._definition.cast[e],"Type",this.type,"does not support casting to",e),this.$_setFlag("cast",!1===e?void 0:e)}default(e,t){return this._default("default",e,t)}description(e){return a(e&&"string"==typeof e,"Description must be a non-empty string"),this.$_setFlag("description",e)}empty(e){const t=this.clone();return void 0!==e&&(e=t.$_compile(e,{override:!1})),t.$_setFlag("empty",e,{clone:!1})}error(e){return a(e,"Missing error"),a(e instanceof Error||"function"==typeof e,"Must provide a valid Error object or a function"),this.$_setFlag("error",e)}example(e,t={}){return a(void 0!==e,"Missing example"),l.assertOptions(t,["override"]),this._inner("examples",e,{single:!0,override:t.override})}external(e,t){return"object"==typeof e&&(a(!t,"Cannot combine options with description"),t=e.description,e=e.method),a("function"==typeof e,"Method must be a function"),a(void 0===t||t&&"string"==typeof t,"Description must be a non-empty string"),this._inner("externals",{method:e,description:t},{single:!0})}failover(e,t){return this._default("failover",e,t)}forbidden(){return this.presence("forbidden")}id(e){return e?(a("string"==typeof e,"id must be a non-empty string"),a(/^[^\.]+$/.test(e),"id cannot contain period character"),this.$_setFlag("id",e)):this.$_setFlag("id",void 0)}invalid(...e){return this._values(e,"_invalids")}label(e){return a(e&&"string"==typeof e,"Label name must be a non-empty string"),this.$_setFlag("label",e)}meta(e){return a(void 0!==e,"Meta cannot be undefined"),this._inner("metas",e,{single:!0})}note(...e){a(e.length,"Missing notes");for(const t of e)a(t&&"string"==typeof t,"Notes must be non-empty strings");return this._inner("notes",e)}only(e=!0){return a("boolean"==typeof e,"Invalid mode:",e),this.$_setFlag("only",e)}optional(){return this.presence("optional")}prefs(e){a(e,"Missing preferences"),a(void 0===e.context,"Cannot override context"),a(void 0===e.externals,"Cannot override externals"),a(void 0===e.warnings,"Cannot override warnings"),a(void 0===e.debug,"Cannot override debug"),l.checkPreferences(e);const t=this.clone();return t._preferences=l.preferences(t._preferences,e),t}presence(e){return a(["optional","required","forbidden"].includes(e),"Unknown presence mode",e),this.$_setFlag("presence",e)}raw(e=!0){return this.$_setFlag("result",e?"raw":void 0)}result(e){return a(["raw","strip"].includes(e),"Unknown result mode",e),this.$_setFlag("result",e)}required(){return this.presence("required")}strict(e){const t=this.clone(),r=void 0!==e&&!e;return t._preferences=l.preferences(t._preferences,{convert:r}),t}strip(e=!0){return this.$_setFlag("result",e?"strip":void 0)}tag(...e){a(e.length,"Missing tags");for(const t of e)a(t&&"string"==typeof t,"Tags must be non-empty strings");return this._inner("tags",e)}unit(e){return a(e&&"string"==typeof e,"Unit name must be a non-empty string"),this.$_setFlag("unit",e)}valid(...e){l.verifyFlat(e,"valid");const t=this.allow(...e);return t.$_setFlag("only",!!t._valids,{clone:!1}),t}when(e,t){const r=this.clone();r.$_terms.whens||(r.$_terms.whens=[]);const n=c.when(r,e,t);if(!["any","link"].includes(r.type)){const e=n.is?[n]:n.switch;for(const t of e)a(!t.then||"any"===t.then.type||t.then.type===r.type,"Cannot combine",r.type,"with",t.then&&t.then.type),a(!t.otherwise||"any"===t.otherwise.type||t.otherwise.type===r.type,"Cannot combine",r.type,"with",t.otherwise&&t.otherwise.type)}return r.$_terms.whens.push(n),r.$_mutateRebuild()}cache(e){a(!this._inRuleset(),"Cannot set caching inside a ruleset"),a(!this._cache,"Cannot override schema cache"),a(void 0===this._flags.artifact,"Cannot cache a rule with an artifact");const t=this.clone();return t._cache=e||i.provider.provision(),t.$_temp.ruleset=!1,t}clone(){const e=Object.create(Object.getPrototypeOf(this));return this._assign(e)}concat(e){a(l.isSchema(e),"Invalid schema object"),a("any"===this.type||"any"===e.type||e.type===this.type,"Cannot merge type",this.type,"with another type:",e.type),a(!this._inRuleset(),"Cannot concatenate onto a schema with open ruleset"),a(!e._inRuleset(),"Cannot concatenate a schema with open ruleset");let t=this.clone();if("any"===this.type&&"any"!==e.type){const r=e.clone();for(const e of Object.keys(t))"type"!==e&&(r[e]=t[e]);t=r}t._ids.concat(e._ids),t._refs.register(e,w.toSibling),t._preferences=t._preferences?l.preferences(t._preferences,e._preferences):e._preferences,t._valids=b.merge(t._valids,e._valids,e._invalids),t._invalids=b.merge(t._invalids,e._invalids,e._valids);for(const r of e._singleRules.keys())t._singleRules.has(r)&&(t._rules=t._rules.filter((e=>e.keep||e.name!==r)),t._singleRules.delete(r));for(const r of e._rules)e._definition.rules[r.method].multi||t._singleRules.set(r.name,r),t._rules.push(r);if(t._flags.empty&&e._flags.empty){t._flags.empty=t._flags.empty.concat(e._flags.empty);const r=Object.assign({},e._flags);delete r.empty,s(t._flags,r)}else if(e._flags.empty){t._flags.empty=e._flags.empty;const r=Object.assign({},e._flags);delete r.empty,s(t._flags,r)}else s(t._flags,e._flags);for(const r in e.$_terms){const a=e.$_terms[r];a?t.$_terms[r]?t.$_terms[r]=t.$_terms[r].concat(a):t.$_terms[r]=a.slice():t.$_terms[r]||(t.$_terms[r]=a)}return this.$_root._tracer&&this.$_root._tracer._combine(t,[this,e]),t.$_mutateRebuild()}extend(e){return a(!e.base,"Cannot extend type with another base"),d.type(this,e)}extract(e){return e=Array.isArray(e)?e:e.split("."),this._ids.reach(e)}fork(e,t){a(!this._inRuleset(),"Cannot fork inside a ruleset");let r=this;for(let a of[].concat(e))a=Array.isArray(a)?a:a.split("."),r=r._ids.fork(a,t,r);return r.$_temp.ruleset=!1,r}rule(e){const t=this._definition;l.assertOptions(e,Object.keys(t.modifiers)),a(!1!==this.$_temp.ruleset,"Cannot apply rules to empty ruleset or the last rule added does not support rule properties");const r=null===this.$_temp.ruleset?this._rules.length-1:this.$_temp.ruleset;a(r>=0&&rt.tailor(e),ref:!1}),t.$_temp.ruleset=!1,t.$_mutateRebuild()}tracer(){return f.location?f.location(this):this}validate(e,t){return y.entry(e,this,t)}validateAsync(e,t){return y.entryAsync(e,this,t)}$_addRule(e){"string"==typeof e&&(e={name:e}),a(e&&"object"==typeof e,"Invalid options"),a(e.name&&"string"==typeof e.name,"Invalid rule name");for(const t in e)a("_"!==t[0],"Cannot set private rule properties");const t=Object.assign({},e);t._resolve=[],t.method=t.method||t.name;const r=this._definition.rules[t.method],n=t.args;a(r,"Unknown rule",t.method);const o=this.clone();if(n){a(1===Object.keys(n).length||Object.keys(n).length===this._definition.rules[t.name].args.length,"Invalid rule definition for",this.type,t.name);for(const e in n){let s=n[e];if(r.argsByName){const i=r.argsByName.get(e);if(i.ref&&l.isResolvable(s))t._resolve.push(e),o.$_mutateRegister(s);else if(i.normalize&&(s=i.normalize(s),n[e]=s),i.assert){const t=l.validateArg(s,e,i);a(!t,t,"or reference")}}void 0!==s?n[e]=s:delete n[e]}}return r.multi||(o._ruleRemove(t.name,{clone:!1}),o._singleRules.set(t.name,t)),!1===o.$_temp.ruleset&&(o.$_temp.ruleset=null),r.priority?o._rules.unshift(t):o._rules.push(t),o}$_compile(e,t){return c.schema(this.$_root,e,t)}$_createError(e,t,r,a,n,o={}){const s=!1!==o.flags?this._flags:{},i=o.messages?g.merge(this._definition.messages,o.messages):this._definition.messages;return new u.Report(e,t,r,s,i,a,n)}$_getFlag(e){return this._flags[e]}$_getRule(e){return this._singleRules.get(e)}$_mapLabels(e){return e=Array.isArray(e)?e:e.split("."),this._ids.labels(e)}$_match(e,t,r,a){(r=Object.assign({},r)).abortEarly=!0,r._externals=!1,t.snapshot();const n=!y.validate(e,this,t,r,a).errors;return t.restore(),n}$_modify(e){return l.assertOptions(e,["each","once","ref","schema"]),m.schema(this,e)||this}$_mutateRebuild(){return a(!this._inRuleset(),"Cannot add this rule inside a ruleset"),this._refs.reset(),this._ids.reset(),this.$_modify({each:(e,{source:t,name:r,path:a,key:n})=>{const o=this._definition[t][r]&&this._definition[t][r].register;!1!==o&&this.$_mutateRegister(e,{family:o,key:n})}}),this._definition.rebuild&&this._definition.rebuild(this),this.$_temp.ruleset=!1,this}$_mutateRegister(e,{family:t,key:r}={}){this._refs.register(e,t),this._ids.register(e,{key:r})}$_property(e){return this._definition.properties[e]}$_reach(e){return this._ids.reach(e)}$_rootReferences(){return this._refs.roots()}$_setFlag(e,t,r={}){a("_"===e[0]||!this._inRuleset(),"Cannot set flag inside a ruleset");const n=this._definition.flags[e]||{};if(o(t,n.default)&&(t=void 0),o(t,this._flags[e]))return this;const s=!1!==r.clone?this.clone():this;return void 0!==t?(s._flags[e]=t,s.$_mutateRegister(t)):delete s._flags[e],"_"!==e[0]&&(s.$_temp.ruleset=!1),s}$_parent(e,...t){return this[e][l.symbols.parent].call(this,...t)}$_validate(e,t,r){return y.validate(e,this,t,r)}_assign(e){e.type=this.type,e.$_root=this.$_root,e.$_temp=Object.assign({},this.$_temp),e.$_temp.whens={},e._ids=this._ids.clone(),e._preferences=this._preferences,e._valids=this._valids&&this._valids.clone(),e._invalids=this._invalids&&this._invalids.clone(),e._rules=this._rules.slice(),e._singleRules=n(this._singleRules,{shallow:!0}),e._refs=this._refs.clone(),e._flags=Object.assign({},this._flags),e._cache=null,e.$_terms={};for(const t in this.$_terms)e.$_terms[t]=this.$_terms[t]?this.$_terms[t].slice():null;e.$_super={};for(const t in this.$_super)e.$_super[t]=this._super[t].bind(e);return e}_bare(){const e=this.clone();e._reset();const t=e._definition.terms;for(const r in t){const a=t[r];e.$_terms[r]=a.init}return e.$_mutateRebuild()}_default(e,t,r={}){return l.assertOptions(r,"literal"),a(void 0!==t,"Missing",e,"value"),a("function"==typeof t||!r.literal,"Only function value supports literal option"),"function"==typeof t&&r.literal&&(t={[l.symbols.literal]:!0,literal:t}),this.$_setFlag(e,t)}_generate(e,t,r){if(!this.$_terms.whens)return{schema:this};const a=[],n=[];for(let o=0;oc)break}const o=n.join(", ");if(t.mainstay.tracer.debug(t,"rule","when",o),!o)return{schema:this};if(!t.mainstay.tracer.active&&this.$_temp.whens[o])return{schema:this.$_temp.whens[o],id:o};let s=this;this._definition.generate&&(s=this._definition.generate(this,e,t,r));for(const e of a)s=s.concat(e);return this.$_root._tracer&&this.$_root._tracer._combine(s,[this,...a]),this.$_temp.whens[o]=s,{schema:s,id:o}}_inner(e,t,r={}){a(!this._inRuleset(),`Cannot set ${e} inside a ruleset`);const n=this.clone();return n.$_terms[e]&&!r.override||(n.$_terms[e]=[]),r.single?n.$_terms[e].push(t):n.$_terms[e].push(...t),n.$_temp.ruleset=!1,n}_inRuleset(){return null!==this.$_temp.ruleset&&!1!==this.$_temp.ruleset}_ruleRemove(e,t={}){if(!this._singleRules.has(e))return this;const r=!1!==t.clone?this.clone():this;r._singleRules.delete(e);const a=[];for(let t=0;t{"use strict";const a=r(375),n=r(8571),o=r(8160),s={max:1e3,supported:new Set(["undefined","boolean","number","string"])};t.provider={provision:e=>new s.Cache(e)},s.Cache=class{constructor(e={}){o.assertOptions(e,["max"]),a(void 0===e.max||e.max&&e.max>0&&isFinite(e.max),"Invalid max cache size"),this._max=e.max||s.max,this._map=new Map,this._list=new s.List}get length(){return this._map.size}set(e,t){if(null!==e&&!s.supported.has(typeof e))return;let r=this._map.get(e);if(r)return r.value=t,void this._list.first(r);r=this._list.unshift({key:e,value:t}),this._map.set(e,r),this._compact()}get(e){const t=this._map.get(e);if(t)return this._list.first(t),n(t.value)}_compact(){if(this._map.size>this._max){const e=this._list.pop();this._map.delete(e.key)}}},s.List=class{constructor(){this.tail=null,this.head=null}unshift(e){return e.next=null,e.prev=this.head,this.head&&(this.head.next=e),this.head=e,this.tail||(this.tail=e),e}first(e){e!==this.head&&(this._remove(e),this.unshift(e))}pop(){return this._remove(this.tail)}_remove(e){const{next:t,prev:r}=e;return t.prev=r,r&&(r.next=t),e===this.tail&&(this.tail=t),e.prev=null,e.next=null,e}}},8160:(e,t,r)=>{"use strict";const a=r(375),n=r(7916),o=r(5934);let s,i;const l={isoDate:/^(?:[-+]\d{2})?(?:\d{4}(?!\d{2}\b))(?:(-?)(?:(?:0[1-9]|1[0-2])(?:\1(?:[12]\d|0[1-9]|3[01]))?|W(?:[0-4]\d|5[0-2])(?:-?[1-7])?|(?:00[1-9]|0[1-9]\d|[12]\d{2}|3(?:[0-5]\d|6[1-6])))(?![T]$|[T][\d]+Z$)(?:[T\s](?:(?:(?:[01]\d|2[0-3])(?:(:?)[0-5]\d)?|24\:?00)(?:[.,]\d+(?!:))?)(?:\2[0-5]\d(?:[.,]\d+)?)?(?:[Z]|(?:[+-])(?:[01]\d|2[0-3])(?::?[0-5]\d)?)?)?)?$/};t.version=o.version,t.defaults={abortEarly:!0,allowUnknown:!1,artifacts:!1,cache:!0,context:null,convert:!0,dateFormat:"iso",errors:{escapeHtml:!1,label:"path",language:null,render:!0,stack:!1,wrap:{label:'"',array:"[]"}},externals:!0,messages:{},nonEnumerables:!1,noDefaults:!1,presence:"optional",skipFunctions:!1,stripUnknown:!1,warnings:!1},t.symbols={any:Symbol.for("@hapi/joi/schema"),arraySingle:Symbol("arraySingle"),deepDefault:Symbol("deepDefault"),errors:Symbol("errors"),literal:Symbol("literal"),override:Symbol("override"),parent:Symbol("parent"),prefs:Symbol("prefs"),ref:Symbol("ref"),template:Symbol("template"),values:Symbol("values")},t.assertOptions=function(e,t,r="Options"){a(e&&"object"==typeof e&&!Array.isArray(e),"Options must be of type object");const n=Object.keys(e).filter((e=>!t.includes(e)));a(0===n.length,`${r} contain unknown keys: ${n}`)},t.checkPreferences=function(e){i=i||r(3378);const t=i.preferences.validate(e);if(t.error)throw new n([t.error.details[0].message])},t.compare=function(e,t,r){switch(r){case"=":return e===t;case">":return e>t;case"<":return e=":return e>=t;case"<=":return e<=t}},t.default=function(e,t){return void 0===e?t:e},t.isIsoDate=function(e){return l.isoDate.test(e)},t.isNumber=function(e){return"number"==typeof e&&!isNaN(e)},t.isResolvable=function(e){return!!e&&(e[t.symbols.ref]||e[t.symbols.template])},t.isSchema=function(e,r={}){const n=e&&e[t.symbols.any];return!!n&&(a(r.legacy||n.version===t.version,"Cannot mix different versions of joi schemas"),!0)},t.isValues=function(e){return e[t.symbols.values]},t.limit=function(e){return Number.isSafeInteger(e)&&e>=0},t.preferences=function(e,a){s=s||r(6914),e=e||{},a=a||{};const n=Object.assign({},e,a);return a.errors&&e.errors&&(n.errors=Object.assign({},e.errors,a.errors),n.errors.wrap=Object.assign({},e.errors.wrap,a.errors.wrap)),a.messages&&(n.messages=s.compile(a.messages,e.messages)),delete n[t.symbols.prefs],n},t.tryWithPath=function(e,t,r={}){try{return e()}catch(e){throw void 0!==e.path?e.path=t+"."+e.path:e.path=t,r.append&&(e.message=`${e.message} (${e.path})`),e}},t.validateArg=function(e,r,{assert:a,message:n}){if(t.isSchema(a)){const t=a.validate(e);if(!t.error)return;return t.error.message}if(!a(e))return r?`${r} ${n}`:n},t.verifyFlat=function(e,t){for(const r of e)a(!Array.isArray(r),"Method no longer accepts array arguments:",t)}},3292:(e,t,r)=>{"use strict";const a=r(375),n=r(8160),o=r(6133),s={};t.schema=function(e,t,r={}){n.assertOptions(r,["appendPath","override"]);try{return s.schema(e,t,r)}catch(e){throw r.appendPath&&void 0!==e.path&&(e.message=`${e.message} (${e.path})`),e}},s.schema=function(e,t,r){a(void 0!==t,"Invalid undefined schema"),Array.isArray(t)&&(a(t.length,"Invalid empty array schema"),1===t.length&&(t=t[0]));const o=(t,...a)=>!1!==r.override?t.valid(e.override,...a):t.valid(...a);if(s.simple(t))return o(e,t);if("function"==typeof t)return e.custom(t);if(a("object"==typeof t,"Invalid schema content:",typeof t),n.isResolvable(t))return o(e,t);if(n.isSchema(t))return t;if(Array.isArray(t)){for(const r of t)if(!s.simple(r))return e.alternatives().try(...t);return o(e,...t)}return t instanceof RegExp?e.string().regex(t):t instanceof Date?o(e.date(),t):(a(Object.getPrototypeOf(t)===Object.getPrototypeOf({}),"Schema can only contain plain objects"),e.object().keys(t))},t.ref=function(e,t){return o.isRef(e)?e:o.create(e,t)},t.compile=function(e,r,o={}){n.assertOptions(o,["legacy"]);const i=r&&r[n.symbols.any];if(i)return a(o.legacy||i.version===n.version,"Cannot mix different versions of joi schemas:",i.version,n.version),r;if("object"!=typeof r||!o.legacy)return t.schema(e,r,{appendPath:!0});const l=s.walk(r);return l?l.compile(l.root,r):t.schema(e,r,{appendPath:!0})},s.walk=function(e){if("object"!=typeof e)return null;if(Array.isArray(e)){for(const t of e){const e=s.walk(t);if(e)return e}return null}const t=e[n.symbols.any];if(t)return{root:e[t.root],compile:t.compile};a(Object.getPrototypeOf(e)===Object.getPrototypeOf({}),"Schema can only contain plain objects");for(const t in e){const r=s.walk(e[t]);if(r)return r}return null},s.simple=function(e){return null===e||["boolean","string","number"].includes(typeof e)},t.when=function(e,r,i){if(void 0===i&&(a(r&&"object"==typeof r,"Missing options"),i=r,r=o.create(".")),Array.isArray(i)&&(i={switch:i}),n.assertOptions(i,["is","not","then","otherwise","switch","break"]),n.isSchema(r))return a(void 0===i.is,'"is" can not be used with a schema condition'),a(void 0===i.not,'"not" can not be used with a schema condition'),a(void 0===i.switch,'"switch" can not be used with a schema condition'),s.condition(e,{is:r,then:i.then,otherwise:i.otherwise,break:i.break});if(a(o.isRef(r)||"string"==typeof r,"Invalid condition:",r),a(void 0===i.not||void 0===i.is,'Cannot combine "is" with "not"'),void 0===i.switch){let l=i;void 0!==i.not&&(l={is:i.not,then:i.otherwise,otherwise:i.then,break:i.break});let c=void 0!==l.is?e.$_compile(l.is):e.$_root.invalid(null,!1,0,"").required();return a(void 0!==l.then||void 0!==l.otherwise,'options must have at least one of "then", "otherwise", or "switch"'),a(void 0===l.break||void 0===l.then||void 0===l.otherwise,"Cannot specify then, otherwise, and break all together"),void 0===i.is||o.isRef(i.is)||n.isSchema(i.is)||(c=c.required()),s.condition(e,{ref:t.ref(r),is:c,then:l.then,otherwise:l.otherwise,break:l.break})}a(Array.isArray(i.switch),'"switch" must be an array'),a(void 0===i.is,'Cannot combine "switch" with "is"'),a(void 0===i.not,'Cannot combine "switch" with "not"'),a(void 0===i.then,'Cannot combine "switch" with "then"');const l={ref:t.ref(r),switch:[],break:i.break};for(let t=0;t{"use strict";const a=r(5688),n=r(8160),o=r(3328);t.Report=class{constructor(e,r,a,n,o,s,i){if(this.code=e,this.flags=n,this.messages=o,this.path=s.path,this.prefs=i,this.state=s,this.value=r,this.message=null,this.template=null,this.local=a||{},this.local.label=t.label(this.flags,this.state,this.prefs,this.messages),void 0===this.value||this.local.hasOwnProperty("value")||(this.local.value=this.value),this.path.length){const e=this.path[this.path.length-1];"object"!=typeof e&&(this.local.key=e)}}_setTemplate(e){if(this.template=e,!this.flags.label&&0===this.path.length){const e=this._template(this.template,"root");e&&(this.local.label=e)}}toString(){if(this.message)return this.message;const e=this.code;if(!this.prefs.errors.render)return this.code;const t=this._template(this.template)||this._template(this.prefs.messages)||this._template(this.messages);return void 0===t?`Error code "${e}" is not defined, your custom type is missing the correct messages definition`:(this.message=t.render(this.value,this.state,this.prefs,this.local,{errors:this.prefs.errors,messages:[this.prefs.messages,this.messages]}),this.prefs.errors.label||(this.message=this.message.replace(/^"" /,"").trim()),this.message)}_template(e,r){return t.template(this.value,e,r||this.code,this.state,this.prefs)}},t.path=function(e){let t="";for(const r of e)"object"!=typeof r&&("string"==typeof r?(t&&(t+="."),t+=r):t+=`[${r}]`);return t},t.template=function(e,t,r,a,s){if(!t)return;if(o.isTemplate(t))return"root"!==r?t:null;let i=s.errors.language;if(n.isResolvable(i)&&(i=i.resolve(e,a,s)),i&&t[i]){if(void 0!==t[i][r])return t[i][r];if(void 0!==t[i]["*"])return t[i]["*"]}return t[r]?t[r]:t["*"]},t.label=function(e,r,a,n){if(e.label)return e.label;if(!a.errors.label)return"";let o=r.path;return"key"===a.errors.label&&r.path.length>1&&(o=r.path.slice(-1)),t.path(o)||t.template(null,a.messages,"root",r,a)||n&&t.template(null,n,"root",r,a)||"value"},t.process=function(e,r,a){if(!e)return null;const{override:n,message:o,details:s}=t.details(e);if(n)return n;if(a.errors.stack)return new t.ValidationError(o,s,r);const i=Error.stackTraceLimit;Error.stackTraceLimit=0;const l=new t.ValidationError(o,s,r);return Error.stackTraceLimit=i,l},t.details=function(e,t={}){let r=[];const a=[];for(const n of e){if(n instanceof Error){if(!1!==t.override)return{override:n};const e=n.toString();r.push(e),a.push({message:e,type:"override",context:{error:n}});continue}const e=n.toString();r.push(e),a.push({message:e,path:n.path.filter((e=>"object"!=typeof e)),type:n.code,context:n.local})}return r.length>1&&(r=[...new Set(r)]),{message:r.join(". "),details:a}},t.ValidationError=class extends Error{constructor(e,t,r){super(e),this._original=r,this.details=t}static isError(e){return e instanceof t.ValidationError}},t.ValidationError.prototype.isJoi=!0,t.ValidationError.prototype.name="ValidationError",t.ValidationError.prototype.annotate=a.error},8901:(e,t,r)=>{"use strict";const a=r(375),n=r(8571),o=r(8160),s=r(6914),i={};t.type=function(e,t){const r=Object.getPrototypeOf(e),l=n(r),c=e._assign(Object.create(l)),u=Object.assign({},t);delete u.base,l._definition=u;const d=r._definition||{};u.messages=s.merge(d.messages,u.messages),u.properties=Object.assign({},d.properties,u.properties),c.type=u.type,u.flags=Object.assign({},d.flags,u.flags);const p=Object.assign({},d.terms);if(u.terms)for(const e in u.terms){const t=u.terms[e];a(void 0===c.$_terms[e],"Invalid term override for",u.type,e),c.$_terms[e]=t.init,p[e]=t}u.terms=p,u.args||(u.args=d.args),u.prepare=i.prepare(u.prepare,d.prepare),u.coerce&&("function"==typeof u.coerce&&(u.coerce={method:u.coerce}),u.coerce.from&&!Array.isArray(u.coerce.from)&&(u.coerce={method:u.coerce.method,from:[].concat(u.coerce.from)})),u.coerce=i.coerce(u.coerce,d.coerce),u.validate=i.validate(u.validate,d.validate);const g=Object.assign({},d.rules);if(u.rules)for(const e in u.rules){const t=u.rules[e];a("object"==typeof t,"Invalid rule definition for",u.type,e);let r=t.method;if(void 0===r&&(r=function(){return this.$_addRule(e)}),r&&(a(!l[e],"Rule conflict in",u.type,e),l[e]=r),a(!g[e],"Rule conflict in",u.type,e),g[e]=t,t.alias){const e=[].concat(t.alias);for(const r of e)l[r]=t.method}t.args&&(t.argsByName=new Map,t.args=t.args.map((e=>("string"==typeof e&&(e={name:e}),a(!t.argsByName.has(e.name),"Duplicated argument name",e.name),o.isSchema(e.assert)&&(e.assert=e.assert.strict().label(e.name)),t.argsByName.set(e.name,e),e))))}u.rules=g;const m=Object.assign({},d.modifiers);if(u.modifiers)for(const e in u.modifiers){a(!l[e],"Rule conflict in",u.type,e);const t=u.modifiers[e];a("function"==typeof t,"Invalid modifier definition for",u.type,e);const r=function(t){return this.rule({[e]:t})};l[e]=r,m[e]=t}if(u.modifiers=m,u.overrides){l._super=r,c.$_super={};for(const e in u.overrides)a(r[e],"Cannot override missing",e),u.overrides[e][o.symbols.parent]=r[e],c.$_super[e]=r[e].bind(c);Object.assign(l,u.overrides)}u.cast=Object.assign({},d.cast,u.cast);const w=Object.assign({},d.manifest,u.manifest);return w.build=i.build(u.manifest&&u.manifest.build,d.manifest&&d.manifest.build),u.manifest=w,u.rebuild=i.rebuild(u.rebuild,d.rebuild),c},i.build=function(e,t){return e&&t?function(r,a){return t(e(r,a),a)}:e||t},i.coerce=function(e,t){return e&&t?{from:e.from&&t.from?[...new Set([...e.from,...t.from])]:null,method(r,a){let n;if((!t.from||t.from.includes(typeof r))&&(n=t.method(r,a),n)){if(n.errors||void 0===n.value)return n;r=n.value}if(!e.from||e.from.includes(typeof r)){const t=e.method(r,a);if(t)return t}return n}}:e||t},i.prepare=function(e,t){return e&&t?function(r,a){const n=e(r,a);if(n){if(n.errors||void 0===n.value)return n;r=n.value}return t(r,a)||n}:e||t},i.rebuild=function(e,t){return e&&t?function(r){t(r),e(r)}:e||t},i.validate=function(e,t){return e&&t?function(r,a){const n=t(r,a);if(n){if(n.errors&&(!Array.isArray(n.errors)||n.errors.length))return n;r=n.value}return e(r,a)||n}:e||t}},5107:(e,t,r)=>{"use strict";const a=r(375),n=r(8571),o=r(8652),s=r(8160),i=r(3292),l=r(6354),c=r(8901),u=r(9708),d=r(6133),p=r(3328),g=r(1152);let m;const w={types:{alternatives:r(4946),any:r(8068),array:r(546),boolean:r(4937),date:r(7500),function:r(390),link:r(8785),number:r(3832),object:r(8966),string:r(7417),symbol:r(8826)},aliases:{alt:"alternatives",bool:"boolean",func:"function"},root:function(){const e={_types:new Set(Object.keys(w.types))};for(const t of e._types)e[t]=function(...e){return a(!e.length||["alternatives","link","object"].includes(t),"The",t,"type does not allow arguments"),w.generate(this,w.types[t],e)};for(const t of["allow","custom","disallow","equal","exist","forbidden","invalid","not","only","optional","options","prefs","preferences","required","strip","valid","when"])e[t]=function(...e){return this.any()[t](...e)};Object.assign(e,w.methods);for(const t in w.aliases){const r=w.aliases[t];e[t]=e[r]}return e.x=e.expression,g.setup&&g.setup(e),e}};w.methods={ValidationError:l.ValidationError,version:s.version,cache:o.provider,assert(e,t,...r){w.assert(e,t,!0,r)},attempt:(e,t,...r)=>w.assert(e,t,!1,r),build(e){return a("function"==typeof u.build,"Manifest functionality disabled"),u.build(this,e)},checkPreferences(e){s.checkPreferences(e)},compile(e,t){return i.compile(this,e,t)},defaults(e){a("function"==typeof e,"modifier must be a function");const t=Object.assign({},this);for(const r of t._types){const n=e(t[r]());a(s.isSchema(n),"modifier must return a valid schema object"),t[r]=function(...e){return w.generate(this,n,e)}}return t},expression:(...e)=>new p(...e),extend(...e){s.verifyFlat(e,"extend"),m=m||r(3378),a(e.length,"You need to provide at least one extension"),this.assert(e,m.extensions);const t=Object.assign({},this);t._types=new Set(t._types);for(let r of e){"function"==typeof r&&(r=r(t)),this.assert(r,m.extension);const e=w.expandExtension(r,t);for(const r of e){a(void 0===t[r.type]||t._types.has(r.type),"Cannot override name",r.type);const e=r.base||this.any(),n=c.type(e,r);t._types.add(r.type),t[r.type]=function(...e){return w.generate(this,n,e)}}}return t},isError:l.ValidationError.isError,isExpression:p.isTemplate,isRef:d.isRef,isSchema:s.isSchema,in:(...e)=>d.in(...e),override:s.symbols.override,ref:(...e)=>d.create(...e),types(){const e={};for(const t of this._types)e[t]=this[t]();for(const t in w.aliases)e[t]=this[t]();return e}},w.assert=function(e,t,r,a){const o=a[0]instanceof Error||"string"==typeof a[0]?a[0]:null,i=null!==o?a[1]:a[0],c=t.validate(e,s.preferences({errors:{stack:!0}},i||{}));let u=c.error;if(!u)return c.value;if(o instanceof Error)throw o;const d=r&&"function"==typeof u.annotate?u.annotate():u.message;throw u instanceof l.ValidationError==0&&(u=n(u)),u.message=o?`${o} ${d}`:d,u},w.generate=function(e,t,r){return a(e,"Must be invoked on a Joi instance."),t.$_root=e,t._definition.args&&r.length?t._definition.args(t,...r):t},w.expandExtension=function(e,t){if("string"==typeof e.type)return[e];const r=[];for(const a of t._types)if(e.type.test(a)){const n=Object.assign({},e);n.type=a,n.base=t[a](),r.push(n)}return r},e.exports=w.root()},6914:(e,t,r)=>{"use strict";const a=r(375),n=r(8571),o=r(3328);t.compile=function(e,t){if("string"==typeof e)return a(!t,"Cannot set single message string"),new o(e);if(o.isTemplate(e))return a(!t,"Cannot set single message template"),e;a("object"==typeof e&&!Array.isArray(e),"Invalid message options"),t=t?n(t):{};for(let r in e){const n=e[r];if("root"===r||o.isTemplate(n)){t[r]=n;continue}if("string"==typeof n){t[r]=new o(n);continue}a("object"==typeof n&&!Array.isArray(n),"Invalid message for",r);const s=r;for(r in t[s]=t[s]||{},n){const e=n[r];"root"===r||o.isTemplate(e)?t[s][r]=e:(a("string"==typeof e,"Invalid message for",r,"in",s),t[s][r]=new o(e))}}return t},t.decompile=function(e){const t={};for(let r in e){const a=e[r];if("root"===r){t.root=a;continue}if(o.isTemplate(a)){t[r]=a.describe({compact:!0});continue}const n=r;for(r in t[n]={},a){const e=a[r];"root"!==r?t[n][r]=e.describe({compact:!0}):t[n].root=e}}return t},t.merge=function(e,r){if(!e)return t.compile(r);if(!r)return e;if("string"==typeof r)return new o(r);if(o.isTemplate(r))return r;const s=n(e);for(let e in r){const t=r[e];if("root"===e||o.isTemplate(t)){s[e]=t;continue}if("string"==typeof t){s[e]=new o(t);continue}a("object"==typeof t&&!Array.isArray(t),"Invalid message for",e);const n=e;for(e in s[n]=s[n]||{},t){const r=t[e];"root"===e||o.isTemplate(r)?s[n][e]=r:(a("string"==typeof r,"Invalid message for",e,"in",n),s[n][e]=new o(r))}}return s}},2294:(e,t,r)=>{"use strict";const a=r(375),n=r(8160),o=r(6133),s={};t.Ids=s.Ids=class{constructor(){this._byId=new Map,this._byKey=new Map,this._schemaChain=!1}clone(){const e=new s.Ids;return e._byId=new Map(this._byId),e._byKey=new Map(this._byKey),e._schemaChain=this._schemaChain,e}concat(e){e._schemaChain&&(this._schemaChain=!0);for(const[t,r]of e._byId.entries())a(!this._byKey.has(t),"Schema id conflicts with existing key:",t),this._byId.set(t,r);for(const[t,r]of e._byKey.entries())a(!this._byId.has(t),"Schema key conflicts with existing id:",t),this._byKey.set(t,r)}fork(e,t,r){const o=this._collect(e);o.push({schema:r});const i=o.shift();let l={id:i.id,schema:t(i.schema)};a(n.isSchema(l.schema),"adjuster function failed to return a joi schema type");for(const e of o)l={id:e.id,schema:s.fork(e.schema,l.id,l.schema)};return l.schema}labels(e,t=[]){const r=e[0],a=this._get(r);if(!a)return[...t,...e].join(".");const n=e.slice(1);return t=[...t,a.schema._flags.label||r],n.length?a.schema._ids.labels(n,t):t.join(".")}reach(e,t=[]){const r=e[0],n=this._get(r);a(n,"Schema does not contain path",[...t,...e].join("."));const o=e.slice(1);return o.length?n.schema._ids.reach(o,[...t,r]):n.schema}register(e,{key:t}={}){if(!e||!n.isSchema(e))return;(e.$_property("schemaChain")||e._ids._schemaChain)&&(this._schemaChain=!0);const r=e._flags.id;if(r){const t=this._byId.get(r);a(!t||t.schema===e,"Cannot add different schemas with the same id:",r),a(!this._byKey.has(r),"Schema id conflicts with existing key:",r),this._byId.set(r,{schema:e,id:r})}t&&(a(!this._byKey.has(t),"Schema already contains key:",t),a(!this._byId.has(t),"Schema key conflicts with existing id:",t),this._byKey.set(t,{schema:e,id:t}))}reset(){this._byId=new Map,this._byKey=new Map,this._schemaChain=!1}_collect(e,t=[],r=[]){const n=e[0],o=this._get(n);a(o,"Schema does not contain path",[...t,...e].join(".")),r=[o,...r];const s=e.slice(1);return s.length?o.schema._ids._collect(s,[...t,n],r):r}_get(e){return this._byId.get(e)||this._byKey.get(e)}},s.fork=function(e,r,a){const n=t.schema(e,{each:(e,{key:t})=>{if(r===(e._flags.id||t))return a},ref:!1});return n?n.$_mutateRebuild():e},t.schema=function(e,t){let r;for(const a in e._flags){if("_"===a[0])continue;const n=s.scan(e._flags[a],{source:"flags",name:a},t);void 0!==n&&(r=r||e.clone(),r._flags[a]=n)}for(let a=0;a{"use strict";const a=r(375),n=r(8571),o=r(9621),s=r(8160);let i;const l={symbol:Symbol("ref"),defaults:{adjust:null,in:!1,iterables:null,map:null,separator:".",type:"value"}};t.create=function(e,t={}){a("string"==typeof e,"Invalid reference key:",e),s.assertOptions(t,["adjust","ancestor","in","iterables","map","prefix","render","separator"]),a(!t.prefix||"object"==typeof t.prefix,"options.prefix must be of type object");const r=Object.assign({},l.defaults,t);delete r.prefix;const n=r.separator,o=l.context(e,n,t.prefix);if(r.type=o.type,e=o.key,"value"===r.type)if(o.root&&(a(!n||e[0]!==n,"Cannot specify relative path with root prefix"),r.ancestor="root",e||(e=null)),n&&n===e)e=null,r.ancestor=0;else if(void 0!==r.ancestor)a(!n||!e||e[0]!==n,"Cannot combine prefix with ancestor option");else{const[t,a]=l.ancestor(e,n);a&&""===(e=e.slice(a))&&(e=null),r.ancestor=t}return r.path=n?null===e?[]:e.split(n):[e],new l.Ref(r)},t.in=function(e,r={}){return t.create(e,{...r,in:!0})},t.isRef=function(e){return!!e&&!!e[s.symbols.ref]},l.Ref=class{constructor(e){a("object"==typeof e,"Invalid reference construction"),s.assertOptions(e,["adjust","ancestor","in","iterables","map","path","render","separator","type","depth","key","root","display"]),a([!1,void 0].includes(e.separator)||"string"==typeof e.separator&&1===e.separator.length,"Invalid separator"),a(!e.adjust||"function"==typeof e.adjust,"options.adjust must be a function"),a(!e.map||Array.isArray(e.map),"options.map must be an array"),a(!e.map||!e.adjust,"Cannot set both map and adjust options"),Object.assign(this,l.defaults,e),a("value"===this.type||void 0===this.ancestor,"Non-value references cannot reference ancestors"),Array.isArray(this.map)&&(this.map=new Map(this.map)),this.depth=this.path.length,this.key=this.path.length?this.path.join(this.separator):null,this.root=this.path[0],this.updateDisplay()}resolve(e,t,r,n,o={}){return a(!this.in||o.in,"Invalid in() reference usage"),"global"===this.type?this._resolve(r.context,t,o):"local"===this.type?this._resolve(n,t,o):this.ancestor?"root"===this.ancestor?this._resolve(t.ancestors[t.ancestors.length-1],t,o):(a(this.ancestor<=t.ancestors.length,"Invalid reference exceeds the schema root:",this.display),this._resolve(t.ancestors[this.ancestor-1],t,o)):this._resolve(e,t,o)}_resolve(e,t,r){let a;if("value"===this.type&&t.mainstay.shadow&&!1!==r.shadow&&(a=t.mainstay.shadow.get(this.absolute(t))),void 0===a&&(a=o(e,this.path,{iterables:this.iterables,functions:!0})),this.adjust&&(a=this.adjust(a)),this.map){const e=this.map.get(a);void 0!==e&&(a=e)}return t.mainstay&&t.mainstay.tracer.resolve(t,this,a),a}toString(){return this.display}absolute(e){return[...e.path.slice(0,-this.ancestor),...this.path]}clone(){return new l.Ref(this)}describe(){const e={path:this.path};"value"!==this.type&&(e.type=this.type),"."!==this.separator&&(e.separator=this.separator),"value"===this.type&&1!==this.ancestor&&(e.ancestor=this.ancestor),this.map&&(e.map=[...this.map]);for(const t of["adjust","iterables","render"])null!==this[t]&&void 0!==this[t]&&(e[t]=this[t]);return!1!==this.in&&(e.in=!0),{ref:e}}updateDisplay(){const e=null!==this.key?this.key:"";if("value"!==this.type)return void(this.display=`ref:${this.type}:${e}`);if(!this.separator)return void(this.display=`ref:${e}`);if(!this.ancestor)return void(this.display=`ref:${this.separator}${e}`);if("root"===this.ancestor)return void(this.display=`ref:root:${e}`);if(1===this.ancestor)return void(this.display=`ref:${e||".."}`);const t=new Array(this.ancestor+1).fill(this.separator).join("");this.display=`ref:${t}${e||""}`}},l.Ref.prototype[s.symbols.ref]=!0,t.build=function(e){return"value"===(e=Object.assign({},l.defaults,e)).type&&void 0===e.ancestor&&(e.ancestor=1),new l.Ref(e)},l.context=function(e,t,r={}){if(e=e.trim(),r){const a=void 0===r.global?"$":r.global;if(a!==t&&e.startsWith(a))return{key:e.slice(a.length),type:"global"};const n=void 0===r.local?"#":r.local;if(n!==t&&e.startsWith(n))return{key:e.slice(n.length),type:"local"};const o=void 0===r.root?"/":r.root;if(o!==t&&e.startsWith(o))return{key:e.slice(o.length),type:"value",root:!0}}return{key:e,type:"value"}},l.ancestor=function(e,t){if(!t)return[1,0];if(e[0]!==t)return[1,0];if(e[1]!==t)return[0,1];let r=2;for(;e[r]===t;)++r;return[r-1,r]},t.toSibling=0,t.toParent=1,t.Manager=class{constructor(){this.refs=[]}register(e,a){if(e)if(a=void 0===a?t.toParent:a,Array.isArray(e))for(const t of e)this.register(t,a);else if(s.isSchema(e))for(const t of e._refs.refs)t.ancestor-a>=0&&this.refs.push({ancestor:t.ancestor-a,root:t.root});else t.isRef(e)&&"value"===e.type&&e.ancestor-a>=0&&this.refs.push({ancestor:e.ancestor-a,root:e.root}),i=i||r(3328),i.isTemplate(e)&&this.register(e.refs(),a)}get length(){return this.refs.length}clone(){const e=new t.Manager;return e.refs=n(this.refs),e}reset(){this.refs=[]}roots(){return this.refs.filter((e=>!e.ancestor)).map((e=>e.root))}}},3378:(e,t,r)=>{"use strict";const a=r(5107),n={};n.wrap=a.string().min(1).max(2).allow(!1),t.preferences=a.object({allowUnknown:a.boolean(),abortEarly:a.boolean(),artifacts:a.boolean(),cache:a.boolean(),context:a.object(),convert:a.boolean(),dateFormat:a.valid("date","iso","string","time","utc"),debug:a.boolean(),errors:{escapeHtml:a.boolean(),label:a.valid("path","key",!1),language:[a.string(),a.object().ref()],render:a.boolean(),stack:a.boolean(),wrap:{label:n.wrap,array:n.wrap,string:n.wrap}},externals:a.boolean(),messages:a.object(),noDefaults:a.boolean(),nonEnumerables:a.boolean(),presence:a.valid("required","optional","forbidden"),skipFunctions:a.boolean(),stripUnknown:a.object({arrays:a.boolean(),objects:a.boolean()}).or("arrays","objects").allow(!0,!1),warnings:a.boolean()}).strict(),n.nameRx=/^[a-zA-Z0-9]\w*$/,n.rule=a.object({alias:a.array().items(a.string().pattern(n.nameRx)).single(),args:a.array().items(a.string(),a.object({name:a.string().pattern(n.nameRx).required(),ref:a.boolean(),assert:a.alternatives([a.function(),a.object().schema()]).conditional("ref",{is:!0,then:a.required()}),normalize:a.function(),message:a.string().when("assert",{is:a.function(),then:a.required()})})),convert:a.boolean(),manifest:a.boolean(),method:a.function().allow(!1),multi:a.boolean(),validate:a.function()}),t.extension=a.object({type:a.alternatives([a.string(),a.object().regex()]).required(),args:a.function(),cast:a.object().pattern(n.nameRx,a.object({from:a.function().maxArity(1).required(),to:a.function().minArity(1).maxArity(2).required()})),base:a.object().schema().when("type",{is:a.object().regex(),then:a.forbidden()}),coerce:[a.function().maxArity(3),a.object({method:a.function().maxArity(3).required(),from:a.array().items(a.string()).single()})],flags:a.object().pattern(n.nameRx,a.object({setter:a.string(),default:a.any()})),manifest:{build:a.function().arity(2)},messages:[a.object(),a.string()],modifiers:a.object().pattern(n.nameRx,a.function().minArity(1).maxArity(2)),overrides:a.object().pattern(n.nameRx,a.function()),prepare:a.function().maxArity(3),rebuild:a.function().arity(1),rules:a.object().pattern(n.nameRx,n.rule),terms:a.object().pattern(n.nameRx,a.object({init:a.array().allow(null).required(),manifest:a.object().pattern(/.+/,[a.valid("schema","single"),a.object({mapped:a.object({from:a.string().required(),to:a.string().required()}).required()})])})),validate:a.function().maxArity(3)}).strict(),t.extensions=a.array().items(a.object(),a.function().arity(1)).strict(),n.desc={buffer:a.object({buffer:a.string()}),func:a.object({function:a.function().required(),options:{literal:!0}}),override:a.object({override:!0}),ref:a.object({ref:a.object({type:a.valid("value","global","local"),path:a.array().required(),separator:a.string().length(1).allow(!1),ancestor:a.number().min(0).integer().allow("root"),map:a.array().items(a.array().length(2)).min(1),adjust:a.function(),iterables:a.boolean(),in:a.boolean(),render:a.boolean()}).required()}),regex:a.object({regex:a.string().min(3)}),special:a.object({special:a.valid("deep").required()}),template:a.object({template:a.string().required(),options:a.object()}),value:a.object({value:a.alternatives([a.object(),a.array()]).required()})},n.desc.entity=a.alternatives([a.array().items(a.link("...")),a.boolean(),a.function(),a.number(),a.string(),n.desc.buffer,n.desc.func,n.desc.ref,n.desc.regex,n.desc.special,n.desc.template,n.desc.value,a.link("/")]),n.desc.values=a.array().items(null,a.boolean(),a.function(),a.number().allow(1/0,-1/0),a.string().allow(""),a.symbol(),n.desc.buffer,n.desc.func,n.desc.override,n.desc.ref,n.desc.regex,n.desc.template,n.desc.value),n.desc.messages=a.object().pattern(/.+/,[a.string(),n.desc.template,a.object().pattern(/.+/,[a.string(),n.desc.template])]),t.description=a.object({type:a.string().required(),flags:a.object({cast:a.string(),default:a.any(),description:a.string(),empty:a.link("/"),failover:n.desc.entity,id:a.string(),label:a.string(),only:!0,presence:["optional","required","forbidden"],result:["raw","strip"],strip:a.boolean(),unit:a.string()}).unknown(),preferences:{allowUnknown:a.boolean(),abortEarly:a.boolean(),artifacts:a.boolean(),cache:a.boolean(),convert:a.boolean(),dateFormat:["date","iso","string","time","utc"],errors:{escapeHtml:a.boolean(),label:["path","key"],language:[a.string(),n.desc.ref],wrap:{label:n.wrap,array:n.wrap}},externals:a.boolean(),messages:n.desc.messages,noDefaults:a.boolean(),nonEnumerables:a.boolean(),presence:["required","optional","forbidden"],skipFunctions:a.boolean(),stripUnknown:a.object({arrays:a.boolean(),objects:a.boolean()}).or("arrays","objects").allow(!0,!1),warnings:a.boolean()},allow:n.desc.values,invalid:n.desc.values,rules:a.array().min(1).items({name:a.string().required(),args:a.object().min(1),keep:a.boolean(),message:[a.string(),n.desc.messages],warn:a.boolean()}),keys:a.object().pattern(/.*/,a.link("/")),link:n.desc.ref}).pattern(/^[a-z]\w*$/,a.any())},493:(e,t,r)=>{"use strict";const a=r(8571),n=r(9621),o=r(8160),s={value:Symbol("value")};e.exports=s.State=class{constructor(e,t,r){this.path=e,this.ancestors=t,this.mainstay=r.mainstay,this.schemas=r.schemas,this.debug=null}localize(e,t=null,r=null){const a=new s.State(e,t,this);return r&&a.schemas&&(a.schemas=[s.schemas(r),...a.schemas]),a}nest(e,t){const r=new s.State(this.path,this.ancestors,this);return r.schemas=r.schemas&&[s.schemas(e),...r.schemas],r.debug=t,r}shadow(e,t){this.mainstay.shadow=this.mainstay.shadow||new s.Shadow,this.mainstay.shadow.set(this.path,e,t)}snapshot(){this.mainstay.shadow&&(this._snapshot=a(this.mainstay.shadow.node(this.path))),this.mainstay.snapshot()}restore(){this.mainstay.shadow&&(this.mainstay.shadow.override(this.path,this._snapshot),this._snapshot=void 0),this.mainstay.restore()}commit(){this.mainstay.shadow&&(this.mainstay.shadow.override(this.path,this._snapshot),this._snapshot=void 0),this.mainstay.commit()}},s.schemas=function(e){return o.isSchema(e)?{schema:e}:e},s.Shadow=class{constructor(){this._values=null}set(e,t,r){if(!e.length)return;if("strip"===r&&"number"==typeof e[e.length-1])return;this._values=this._values||new Map;let a=this._values;for(let t=0;t{"use strict";const a=r(375),n=r(8571),o=r(5277),s=r(1447),i=r(8160),l=r(6354),c=r(6133),u={symbol:Symbol("template"),opens:new Array(1e3).join("\0"),closes:new Array(1e3).join(""),dateFormat:{date:Date.prototype.toDateString,iso:Date.prototype.toISOString,string:Date.prototype.toString,time:Date.prototype.toTimeString,utc:Date.prototype.toUTCString}};e.exports=u.Template=class{constructor(e,t){if(a("string"==typeof e,"Template source must be a string"),a(!e.includes("\0")&&!e.includes(""),"Template source cannot contain reserved control characters"),this.source=e,this.rendered=e,this._template=null,t){const{functions:e,...r}=t;this._settings=Object.keys(r).length?n(r):void 0,this._functions=e,this._functions&&(a(Object.keys(this._functions).every((e=>"string"==typeof e)),"Functions keys must be strings"),a(Object.values(this._functions).every((e=>"function"==typeof e)),"Functions values must be functions"))}else this._settings=void 0,this._functions=void 0;this._parse()}_parse(){if(!this.source.includes("{"))return;const e=u.encode(this.source),t=u.split(e);let r=!1;const a=[],n=t.shift();n&&a.push(n);for(const e of t){const t="{"!==e[0],n=t?"}":"}}",o=e.indexOf(n);if(-1===o||"{"===e[1]){a.push(`{${u.decode(e)}`);continue}let s=e.slice(t?0:1,o);const i=":"===s[0];i&&(s=s.slice(1));const l=this._ref(u.decode(s),{raw:t,wrapped:i});a.push(l),"string"!=typeof l&&(r=!0);const c=e.slice(o+n.length);c&&a.push(u.decode(c))}r?this._template=a:this.rendered=a.join("")}static date(e,t){return u.dateFormat[t.dateFormat].call(e)}describe(e={}){if(!this._settings&&e.compact)return this.source;const t={template:this.source};return this._settings&&(t.options=this._settings),this._functions&&(t.functions=this._functions),t}static build(e){return new u.Template(e.template,e.options||e.functions?{...e.options,functions:e.functions}:void 0)}isDynamic(){return!!this._template}static isTemplate(e){return!!e&&!!e[i.symbols.template]}refs(){if(!this._template)return;const e=[];for(const t of this._template)"string"!=typeof t&&e.push(...t.refs);return e}resolve(e,t,r,a){return this._template&&1===this._template.length?this._part(this._template[0],e,t,r,a,{}):this.render(e,t,r,a)}_part(e,...t){return e.ref?e.ref.resolve(...t):e.formula.evaluate(t)}render(e,t,r,a,n={}){if(!this.isDynamic())return this.rendered;const s=[];for(const i of this._template)if("string"==typeof i)s.push(i);else{const l=this._part(i,e,t,r,a,n),c=u.stringify(l,e,t,r,a,n);if(void 0!==c){const e=i.raw||!1===(n.errors&&n.errors.escapeHtml)?c:o(c);s.push(u.wrap(e,i.wrapped&&r.errors.wrap.label))}}return s.join("")}_ref(e,{raw:t,wrapped:r}){const a=[],n=e=>{const t=c.create(e,this._settings);return a.push(t),e=>{const r=t.resolve(...e);return void 0!==r?r:null}};try{const t=this._functions?{...u.functions,...this._functions}:u.functions;var o=new s.Parser(e,{reference:n,functions:t,constants:u.constants})}catch(t){throw t.message=`Invalid template variable "${e}" fails due to: ${t.message}`,t}if(o.single){if("reference"===o.single.type){const e=a[0];return{ref:e,raw:t,refs:a,wrapped:r||"local"===e.type&&"label"===e.key}}return u.stringify(o.single.value)}return{formula:o,raw:t,refs:a}}toString(){return this.source}},u.Template.prototype[i.symbols.template]=!0,u.Template.prototype.isImmutable=!0,u.encode=function(e){return e.replace(/\\(\{+)/g,((e,t)=>u.opens.slice(0,t.length))).replace(/\\(\}+)/g,((e,t)=>u.closes.slice(0,t.length)))},u.decode=function(e){return e.replace(/\u0000/g,"{").replace(/\u0001/g,"}")},u.split=function(e){const t=[];let r="";for(let a=0;a ${a.toString()}`);e=t}if(!Array.isArray(e))return e.toString();const d=[];for(const s of e)d.push(u.stringify(s,t,r,a,n,{arrayItems:!0,...o}));return u.wrap(d.join(", "),!l&&i.array)},u.constants={true:!0,false:!1,null:null,second:1e3,minute:6e4,hour:36e5,day:864e5},u.functions={if:(e,t,r)=>e?t:r,length:e=>"string"==typeof e?e.length:e&&"object"==typeof e?Array.isArray(e)?e.length:Object.keys(e).length:null,msg(e){const[t,r,a,n,o]=this,s=o.messages;if(!s)return"";const i=l.template(t,s[0],e,r,a)||l.template(t,s[1],e,r,a);return i?i.render(t,r,a,n,o):""},number:e=>"number"==typeof e?e:"string"==typeof e?parseFloat(e):"boolean"==typeof e?e?1:0:e instanceof Date?e.getTime():null}},4946:(e,t,r)=>{"use strict";const a=r(375),n=r(1687),o=r(8068),s=r(8160),i=r(3292),l=r(6354),c=r(6133),u={};e.exports=o.extend({type:"alternatives",flags:{match:{default:"any"}},terms:{matches:{init:[],register:c.toSibling}},args:(e,...t)=>1===t.length&&Array.isArray(t[0])?e.try(...t[0]):e.try(...t),validate(e,t){const{schema:r,error:a,state:o,prefs:s}=t;if(r._flags.match){const t=[],i=[];for(let a=0;al.details(e,{override:!1})))})};if("one"===r._flags.match)return 1===t.length?{value:t[0]}:{errors:a("alternatives.one")};if(t.length!==r.$_terms.matches.length)return{errors:a("alternatives.all",{details:i.map((e=>l.details(e,{override:!1})))})};const c=e=>e.$_terms.matches.some((e=>"object"===e.schema.type||"alternatives"===e.schema.type&&c(e.schema)));return c(r)?{value:t.reduce(((e,t)=>n(e,t,{mergeArrays:!1})))}:{value:t[t.length-1]}}const i=[];for(let t=0;t"is"!==r.path[0]&&"string"!=typeof t._flags.label?t.label(e):void 0,ref:!1})}},rebuild(e){e.$_modify({each:t=>{s.isSchema(t)&&"array"===t.type&&e.$_setFlag("_arrayItems",!0,{clone:!1})}})},manifest:{build(e,t){if(t.matches)for(const r of t.matches){const{schema:t,ref:a,is:n,not:o,then:s,otherwise:i}=r;e=t?e.try(t):a?e.conditional(a,{is:n,then:s,not:o,otherwise:i,switch:r.switch}):e.conditional(n,{then:s,otherwise:i})}return e}},messages:{"alternatives.all":"{{#label}} does not match all of the required types","alternatives.any":"{{#label}} does not match any of the allowed types","alternatives.match":"{{#label}} does not match any of the allowed types","alternatives.one":"{{#label}} matches more than one allowed type","alternatives.types":"{{#label}} must be one of {{#types}}"}}),u.errors=function(e,{error:t,state:r}){if(!e.length)return{errors:t("alternatives.any")};if(1===e.length)return{errors:e[0].reports};const a=new Set,n=[];for(const{reports:o,schema:s}of e){if(o.length>1)return u.unmatched(e,t);const i=o[0];if(i instanceof l.Report==0)return u.unmatched(e,t);if(i.state.path.length!==r.path.length){n.push({type:s.type,report:i});continue}if("any.only"===i.code){for(const e of i.local.valids)a.add(e);continue}const[c,d]=i.code.split(".");"base"===d?a.add(c):n.push({type:s.type,report:i})}return n.length?1===n.length?{errors:n[0].report}:u.unmatched(e,t):{errors:t("alternatives.types",{types:[...a]})}},u.unmatched=function(e,t){const r=[];for(const t of e)r.push(...t.reports);return{errors:t("alternatives.match",l.details(r,{override:!1}))}}},8068:(e,t,r)=>{"use strict";const a=r(375),n=r(7629),o=r(8160),s=r(6914);e.exports=n.extend({type:"any",flags:{only:{default:!1}},terms:{alterations:{init:null},examples:{init:null},externals:{init:null},metas:{init:[]},notes:{init:[]},shared:{init:null},tags:{init:[]},whens:{init:null}},rules:{custom:{method(e,t){return a("function"==typeof e,"Method must be a function"),a(void 0===t||t&&"string"==typeof t,"Description must be a non-empty string"),this.$_addRule({name:"custom",args:{method:e,description:t}})},validate(e,t,{method:r}){try{return r(e,t)}catch(e){return t.error("any.custom",{error:e})}},args:["method","description"],multi:!0},messages:{method(e){return this.prefs({messages:e})}},shared:{method(e){a(o.isSchema(e)&&e._flags.id,"Schema must be a schema with an id");const t=this.clone();return t.$_terms.shared=t.$_terms.shared||[],t.$_terms.shared.push(e),t.$_mutateRegister(e),t}},warning:{method(e,t){return a(e&&"string"==typeof e,"Invalid warning code"),this.$_addRule({name:"warning",args:{code:e,local:t},warn:!0})},validate:(e,t,{code:r,local:a})=>t.error(r,a),args:["code","local"],multi:!0}},modifiers:{keep(e,t=!0){e.keep=t},message(e,t){e.message=s.compile(t)},warn(e,t=!0){e.warn=t}},manifest:{build(e,t){for(const r in t){const a=t[r];if(["examples","externals","metas","notes","tags"].includes(r))for(const t of a)e=e[r.slice(0,-1)](t);else if("alterations"!==r)if("whens"!==r){if("shared"===r)for(const t of a)e=e.shared(t)}else for(const t of a){const{ref:r,is:a,not:n,then:o,otherwise:s,concat:i}=t;e=i?e.concat(i):r?e.when(r,{is:a,not:n,then:o,otherwise:s,switch:t.switch,break:t.break}):e.when(a,{then:o,otherwise:s,break:t.break})}else{const t={};for(const{target:e,adjuster:r}of a)t[e]=r;e=e.alter(t)}}return e}},messages:{"any.custom":"{{#label}} failed custom validation because {{#error.message}}","any.default":"{{#label}} threw an error when running default method","any.failover":"{{#label}} threw an error when running failover method","any.invalid":"{{#label}} contains an invalid value","any.only":'{{#label}} must be {if(#valids.length == 1, "", "one of ")}{{#valids}}',"any.ref":"{{#label}} {{#arg}} references {{:#ref}} which {{#reason}}","any.required":"{{#label}} is required","any.unknown":"{{#label}} is not allowed"}})},546:(e,t,r)=>{"use strict";const a=r(375),n=r(9474),o=r(9621),s=r(8068),i=r(8160),l=r(3292),c={};e.exports=s.extend({type:"array",flags:{single:{default:!1},sparse:{default:!1}},terms:{items:{init:[],manifest:"schema"},ordered:{init:[],manifest:"schema"},_exclusions:{init:[]},_inclusions:{init:[]},_requireds:{init:[]}},coerce:{from:"object",method(e,{schema:t,state:r,prefs:a}){if(!Array.isArray(e))return;const n=t.$_getRule("sort");return n?c.sort(t,e,n.args.options,r,a):void 0}},validate(e,{schema:t,error:r}){if(!Array.isArray(e)){if(t._flags.single){const t=[e];return t[i.symbols.arraySingle]=!0,{value:t}}return{errors:r("array.base")}}if(t.$_getRule("items")||t.$_terms.externals)return{value:e.slice()}},rules:{has:{method(e){e=this.$_compile(e,{appendPath:!0});const t=this.$_addRule({name:"has",args:{schema:e}});return t.$_mutateRegister(e),t},validate(e,{state:t,prefs:r,error:a},{schema:n}){const o=[e,...t.ancestors];for(let a=0;athis.$_compile(e[r])),r,{append:!0});t.$_terms.items.push(a)}return t.$_mutateRebuild()},validate(e,{schema:t,error:r,state:a,prefs:n,errorsArray:o}){const s=t.$_terms._requireds.slice(),l=t.$_terms.ordered.slice(),u=[...t.$_terms._inclusions,...s],d=!e[i.symbols.arraySingle];delete e[i.symbols.arraySingle];const p=o();let g=e.length;for(let o=0;o="})}},ordered:{method(...e){i.verifyFlat(e,"ordered");const t=this.$_addRule("items");for(let r=0;rthis.$_compile(e[r])),r,{append:!0});c.validateSingle(a,t),t.$_mutateRegister(a),t.$_terms.ordered.push(a)}return t.$_mutateRebuild()}},single:{method(e){const t=void 0===e||!!e;return a(!t||!this._flags._arrayItems,"Cannot specify single rule when array has array items"),this.$_setFlag("single",t)}},sort:{method(e={}){i.assertOptions(e,["by","order"]);const t={order:e.order||"ascending"};return e.by&&(t.by=l.ref(e.by,{ancestor:0}),a(!t.by.ancestor,"Cannot sort by ancestor")),this.$_addRule({name:"sort",args:{options:t}})},validate(e,{error:t,state:r,prefs:a,schema:n},{options:o}){const{value:s,errors:i}=c.sort(n,e,o,r,a);if(i)return i;for(let r=0;rnew Set(e)}},rebuild(e){e.$_terms._inclusions=[],e.$_terms._exclusions=[],e.$_terms._requireds=[];for(const t of e.$_terms.items)c.validateSingle(t,e),"required"===t._flags.presence?e.$_terms._requireds.push(t):"forbidden"===t._flags.presence?e.$_terms._exclusions.push(t):e.$_terms._inclusions.push(t);for(const t of e.$_terms.ordered)c.validateSingle(t,e)},manifest:{build:(e,t)=>(t.items&&(e=e.items(...t.items)),t.ordered&&(e=e.ordered(...t.ordered)),e)},messages:{"array.base":"{{#label}} must be an array","array.excludes":"{{#label}} contains an excluded value","array.hasKnown":"{{#label}} does not contain at least one required match for type {:#patternLabel}","array.hasUnknown":"{{#label}} does not contain at least one required match","array.includes":"{{#label}} does not match any of the allowed types","array.includesRequiredBoth":"{{#label}} does not contain {{#knownMisses}} and {{#unknownMisses}} other required value(s)","array.includesRequiredKnowns":"{{#label}} does not contain {{#knownMisses}}","array.includesRequiredUnknowns":"{{#label}} does not contain {{#unknownMisses}} required value(s)","array.length":"{{#label}} must contain {{#limit}} items","array.max":"{{#label}} must contain less than or equal to {{#limit}} items","array.min":"{{#label}} must contain at least {{#limit}} items","array.orderedLength":"{{#label}} must contain at most {{#limit}} items","array.sort":"{{#label}} must be sorted in {#order} order by {{#by}}","array.sort.mismatching":"{{#label}} cannot be sorted due to mismatching types","array.sort.unsupported":"{{#label}} cannot be sorted due to unsupported type {#type}","array.sparse":"{{#label}} must not be a sparse array item","array.unique":"{{#label}} contains a duplicate value"}}),c.fillMissedErrors=function(e,t,r,a,n,o){const s=[];let i=0;for(const e of r){const t=e._flags.label;t?s.push(t):++i}s.length?i?t.push(e.$_createError("array.includesRequiredBoth",a,{knownMisses:s,unknownMisses:i},n,o)):t.push(e.$_createError("array.includesRequiredKnowns",a,{knownMisses:s},n,o)):t.push(e.$_createError("array.includesRequiredUnknowns",a,{unknownMisses:i},n,o))},c.fillOrderedErrors=function(e,t,r,a,n,o){const s=[];for(const e of r)"required"===e._flags.presence&&s.push(e);s.length&&c.fillMissedErrors(e,t,s,a,n,o)},c.fillDefault=function(e,t,r,a){const n=[];let o=!0;for(let s=e.length-1;s>=0;--s){const i=e[s],l=[t,...r.ancestors],c=i.$_validate(void 0,r.localize(r.path,l,i),a).value;if(o){if(void 0===c)continue;o=!1}n.unshift(c)}n.length&&t.push(...n)},c.fastSplice=function(e,t){let r=t;for(;r{let d=c.compare(l,u,s,i);if(null!==d)return d;if(r.by&&(l=r.by.resolve(l,a,n),u=r.by.resolve(u,a,n)),d=c.compare(l,u,s,i),null!==d)return d;const p=typeof l;if(p!==typeof u)throw e.$_createError("array.sort.mismatching",t,null,a,n);if("number"!==p&&"string"!==p)throw e.$_createError("array.sort.unsupported",t,{type:p},a,n);return"number"===p?(l-u)*o:l{"use strict";const a=r(375),n=r(8068),o=r(8160),s=r(2036),i={isBool:function(e){return"boolean"==typeof e}};e.exports=n.extend({type:"boolean",flags:{sensitive:{default:!1}},terms:{falsy:{init:null,manifest:"values"},truthy:{init:null,manifest:"values"}},coerce(e,{schema:t}){if("boolean"!=typeof e){if("string"==typeof e){const r=t._flags.sensitive?e:e.toLowerCase();e="true"===r||"false"!==r&&e}return"boolean"!=typeof e&&(e=t.$_terms.truthy&&t.$_terms.truthy.has(e,null,null,!t._flags.sensitive)||(!t.$_terms.falsy||!t.$_terms.falsy.has(e,null,null,!t._flags.sensitive))&&e),{value:e}}},validate(e,{error:t}){if("boolean"!=typeof e)return{value:e,errors:t("boolean.base")}},rules:{truthy:{method(...e){o.verifyFlat(e,"truthy");const t=this.clone();t.$_terms.truthy=t.$_terms.truthy||new s;for(let r=0;re?1:0},string:{from:i.isBool,to:(e,t)=>e?"true":"false"}},manifest:{build:(e,t)=>(t.truthy&&(e=e.truthy(...t.truthy)),t.falsy&&(e=e.falsy(...t.falsy)),e)},messages:{"boolean.base":"{{#label}} must be a boolean"}})},7500:(e,t,r)=>{"use strict";const a=r(375),n=r(8068),o=r(8160),s=r(3328),i={isDate:function(e){return e instanceof Date}};e.exports=n.extend({type:"date",coerce:{from:["number","string"],method:(e,{schema:t})=>({value:i.parse(e,t._flags.format)||e})},validate(e,{schema:t,error:r,prefs:a}){if(e instanceof Date&&!isNaN(e.getTime()))return;const n=t._flags.format;return a.convert&&n&&"string"==typeof e?{value:e,errors:r("date.format",{format:n})}:{value:e,errors:r("date.base")}},rules:{compare:{method:!1,validate(e,t,{date:r},{name:a,operator:n,args:s}){const i="now"===r?Date.now():r.getTime();return o.compare(e.getTime(),i,n)?e:t.error("date."+a,{limit:s.date,value:e})},args:[{name:"date",ref:!0,normalize:e=>"now"===e?e:i.parse(e),assert:e=>null!==e,message:"must have a valid date format"}]},format:{method(e){return a(["iso","javascript","unix"].includes(e),"Unknown date format",e),this.$_setFlag("format",e)}},greater:{method(e){return this.$_addRule({name:"greater",method:"compare",args:{date:e},operator:">"})}},iso:{method(){return this.format("iso")}},less:{method(e){return this.$_addRule({name:"less",method:"compare",args:{date:e},operator:"<"})}},max:{method(e){return this.$_addRule({name:"max",method:"compare",args:{date:e},operator:"<="})}},min:{method(e){return this.$_addRule({name:"min",method:"compare",args:{date:e},operator:">="})}},timestamp:{method(e="javascript"){return a(["javascript","unix"].includes(e),'"type" must be one of "javascript, unix"'),this.format(e)}}},cast:{number:{from:i.isDate,to:(e,t)=>e.getTime()},string:{from:i.isDate,to:(e,{prefs:t})=>s.date(e,t)}},messages:{"date.base":"{{#label}} must be a valid date","date.format":'{{#label}} must be in {msg("date.format." + #format) || #format} format',"date.greater":"{{#label}} must be greater than {{:#limit}}","date.less":"{{#label}} must be less than {{:#limit}}","date.max":"{{#label}} must be less than or equal to {{:#limit}}","date.min":"{{#label}} must be greater than or equal to {{:#limit}}","date.format.iso":"ISO 8601 date","date.format.javascript":"timestamp or number of milliseconds","date.format.unix":"timestamp or number of seconds"}}),i.parse=function(e,t){if(e instanceof Date)return e;if("string"!=typeof e&&(isNaN(e)||!isFinite(e)))return null;if(/^\s*$/.test(e))return null;if("iso"===t)return o.isIsoDate(e)?i.date(e.toString()):null;const r=e;if("string"==typeof e&&/^[+-]?\d+(\.\d+)?$/.test(e)&&(e=parseFloat(e)),t){if("javascript"===t)return i.date(1*e);if("unix"===t)return i.date(1e3*e);if("string"==typeof r)return null}return i.date(e)},i.date=function(e){const t=new Date(e);return isNaN(t.getTime())?null:t}},390:(e,t,r)=>{"use strict";const a=r(375),n=r(7824);e.exports=n.extend({type:"function",properties:{typeof:"function"},rules:{arity:{method(e){return a(Number.isSafeInteger(e)&&e>=0,"n must be a positive integer"),this.$_addRule({name:"arity",args:{n:e}})},validate:(e,t,{n:r})=>e.length===r?e:t.error("function.arity",{n:r})},class:{method(){return this.$_addRule("class")},validate:(e,t)=>/^\s*class\s/.test(e.toString())?e:t.error("function.class",{value:e})},minArity:{method(e){return a(Number.isSafeInteger(e)&&e>0,"n must be a strict positive integer"),this.$_addRule({name:"minArity",args:{n:e}})},validate:(e,t,{n:r})=>e.length>=r?e:t.error("function.minArity",{n:r})},maxArity:{method(e){return a(Number.isSafeInteger(e)&&e>=0,"n must be a positive integer"),this.$_addRule({name:"maxArity",args:{n:e}})},validate:(e,t,{n:r})=>e.length<=r?e:t.error("function.maxArity",{n:r})}},messages:{"function.arity":"{{#label}} must have an arity of {{#n}}","function.class":"{{#label}} must be a class","function.maxArity":"{{#label}} must have an arity lesser or equal to {{#n}}","function.minArity":"{{#label}} must have an arity greater or equal to {{#n}}"}})},7824:(e,t,r)=>{"use strict";const a=r(978),n=r(375),o=r(8571),s=r(3652),i=r(8068),l=r(8160),c=r(3292),u=r(6354),d=r(6133),p=r(3328),g={renameDefaults:{alias:!1,multiple:!1,override:!1}};e.exports=i.extend({type:"_keys",properties:{typeof:"object"},flags:{unknown:{default:!1}},terms:{dependencies:{init:null},keys:{init:null,manifest:{mapped:{from:"schema",to:"key"}}},patterns:{init:null},renames:{init:null}},args:(e,t)=>e.keys(t),validate(e,{schema:t,error:r,state:a,prefs:n}){if(!e||typeof e!==t.$_property("typeof")||Array.isArray(e))return{value:e,errors:r("object.base",{type:t.$_property("typeof")})};if(!(t.$_terms.renames||t.$_terms.dependencies||t.$_terms.keys||t.$_terms.patterns||t.$_terms.externals))return;e=g.clone(e,n);const o=[];if(t.$_terms.renames&&!g.rename(t,e,a,n,o))return{value:e,errors:o};if(!t.$_terms.keys&&!t.$_terms.patterns&&!t.$_terms.dependencies)return{value:e,errors:o};const s=new Set(Object.keys(e));if(t.$_terms.keys){const r=[e,...a.ancestors];for(const i of t.$_terms.keys){const t=i.key,l=e[t];s.delete(t);const c=a.localize([...a.path,t],r,i),u=i.schema.$_validate(l,c,n);if(u.errors){if(n.abortEarly)return{value:e,errors:u.errors};void 0!==u.value&&(e[t]=u.value),o.push(...u.errors)}else"strip"===i.schema._flags.result||void 0===u.value&&void 0!==l?delete e[t]:void 0!==u.value&&(e[t]=u.value)}}if(s.size||t._flags._hasPatternMatch){const r=g.unknown(t,e,s,o,a,n);if(r)return r}if(t.$_terms.dependencies)for(const r of t.$_terms.dependencies){if(null!==r.key&&!1===g.isPresent(r.options)(r.key.resolve(e,a,n,null,{shadow:!1})))continue;const s=g.dependencies[r.rel](t,r,e,a,n);if(s){const r=t.$_createError(s.code,e,s.context,a,n);if(n.abortEarly)return{value:e,errors:r};o.push(r)}}return{value:e,errors:o}},rules:{and:{method(...e){return l.verifyFlat(e,"and"),g.dependency(this,"and",null,e)}},append:{method(e){return null==e||0===Object.keys(e).length?this:this.keys(e)}},assert:{method(e,t,r){p.isTemplate(e)||(e=c.ref(e)),n(void 0===r||"string"==typeof r,"Message must be a string"),t=this.$_compile(t,{appendPath:!0});const a=this.$_addRule({name:"assert",args:{subject:e,schema:t,message:r}});return a.$_mutateRegister(e),a.$_mutateRegister(t),a},validate(e,{error:t,prefs:r,state:a},{subject:n,schema:o,message:s}){const i=n.resolve(e,a,r),l=d.isRef(n)?n.absolute(a):[];return o.$_match(i,a.localize(l,[e,...a.ancestors],o),r)?e:t("object.assert",{subject:n,message:s})},args:["subject","schema","message"],multi:!0},instance:{method(e,t){return n("function"==typeof e,"constructor must be a function"),t=t||e.name,this.$_addRule({name:"instance",args:{constructor:e,name:t}})},validate:(e,t,{constructor:r,name:a})=>e instanceof r?e:t.error("object.instance",{type:a,value:e}),args:["constructor","name"]},keys:{method(e){n(void 0===e||"object"==typeof e,"Object schema must be a valid object"),n(!l.isSchema(e),"Object schema cannot be a joi schema");const t=this.clone();if(e)if(Object.keys(e).length){t.$_terms.keys=t.$_terms.keys?t.$_terms.keys.filter((t=>!e.hasOwnProperty(t.key))):new g.Keys;for(const r in e)l.tryWithPath((()=>t.$_terms.keys.push({key:r,schema:this.$_compile(e[r])})),r)}else t.$_terms.keys=new g.Keys;else t.$_terms.keys=null;return t.$_mutateRebuild()}},length:{method(e){return this.$_addRule({name:"length",args:{limit:e},operator:"="})},validate:(e,t,{limit:r},{name:a,operator:n,args:o})=>l.compare(Object.keys(e).length,r,n)?e:t.error("object."+a,{limit:o.limit,value:e}),args:[{name:"limit",ref:!0,assert:l.limit,message:"must be a positive integer"}]},max:{method(e){return this.$_addRule({name:"max",method:"length",args:{limit:e},operator:"<="})}},min:{method(e){return this.$_addRule({name:"min",method:"length",args:{limit:e},operator:">="})}},nand:{method(...e){return l.verifyFlat(e,"nand"),g.dependency(this,"nand",null,e)}},or:{method(...e){return l.verifyFlat(e,"or"),g.dependency(this,"or",null,e)}},oxor:{method(...e){return g.dependency(this,"oxor",null,e)}},pattern:{method(e,t,r={}){const a=e instanceof RegExp;a||(e=this.$_compile(e,{appendPath:!0})),n(void 0!==t,"Invalid rule"),l.assertOptions(r,["fallthrough","matches"]),a&&n(!e.flags.includes("g")&&!e.flags.includes("y"),"pattern should not use global or sticky mode"),t=this.$_compile(t,{appendPath:!0});const o=this.clone();o.$_terms.patterns=o.$_terms.patterns||[];const s={[a?"regex":"schema"]:e,rule:t};return r.matches&&(s.matches=this.$_compile(r.matches),"array"!==s.matches.type&&(s.matches=s.matches.$_root.array().items(s.matches)),o.$_mutateRegister(s.matches),o.$_setFlag("_hasPatternMatch",!0,{clone:!1})),r.fallthrough&&(s.fallthrough=!0),o.$_terms.patterns.push(s),o.$_mutateRegister(t),o}},ref:{method(){return this.$_addRule("ref")},validate:(e,t)=>d.isRef(e)?e:t.error("object.refType",{value:e})},regex:{method(){return this.$_addRule("regex")},validate:(e,t)=>e instanceof RegExp?e:t.error("object.regex",{value:e})},rename:{method(e,t,r={}){n("string"==typeof e||e instanceof RegExp,"Rename missing the from argument"),n("string"==typeof t||t instanceof p,"Invalid rename to argument"),n(t!==e,"Cannot rename key to same name:",e),l.assertOptions(r,["alias","ignoreUndefined","override","multiple"]);const o=this.clone();o.$_terms.renames=o.$_terms.renames||[];for(const t of o.$_terms.renames)n(t.from!==e,"Cannot rename the same key multiple times");return t instanceof p&&o.$_mutateRegister(t),o.$_terms.renames.push({from:e,to:t,options:a(g.renameDefaults,r)}),o}},schema:{method(e="any"){return this.$_addRule({name:"schema",args:{type:e}})},validate:(e,t,{type:r})=>!l.isSchema(e)||"any"!==r&&e.type!==r?t.error("object.schema",{type:r}):e},unknown:{method(e){return this.$_setFlag("unknown",!1!==e)}},with:{method(e,t,r={}){return g.dependency(this,"with",e,t,r)}},without:{method(e,t,r={}){return g.dependency(this,"without",e,t,r)}},xor:{method(...e){return l.verifyFlat(e,"xor"),g.dependency(this,"xor",null,e)}}},overrides:{default(e,t){return void 0===e&&(e=l.symbols.deepDefault),this.$_parent("default",e,t)}},rebuild(e){if(e.$_terms.keys){const t=new s.Sorter;for(const r of e.$_terms.keys)l.tryWithPath((()=>t.add(r,{after:r.schema.$_rootReferences(),group:r.key})),r.key);e.$_terms.keys=new g.Keys(...t.nodes)}},manifest:{build(e,t){if(t.keys&&(e=e.keys(t.keys)),t.dependencies)for(const{rel:r,key:a=null,peers:n,options:o}of t.dependencies)e=g.dependency(e,r,a,n,o);if(t.patterns)for(const{regex:r,schema:a,rule:n,fallthrough:o,matches:s}of t.patterns)e=e.pattern(r||a,n,{fallthrough:o,matches:s});if(t.renames)for(const{from:r,to:a,options:n}of t.renames)e=e.rename(r,a,n);return e}},messages:{"object.and":"{{#label}} contains {{#presentWithLabels}} without its required peers {{#missingWithLabels}}","object.assert":'{{#label}} is invalid because {if(#subject.key, `"` + #subject.key + `" failed to ` + (#message || "pass the assertion test"), #message || "the assertion failed")}',"object.base":"{{#label}} must be of type {{#type}}","object.instance":"{{#label}} must be an instance of {{:#type}}","object.length":'{{#label}} must have {{#limit}} key{if(#limit == 1, "", "s")}',"object.max":'{{#label}} must have less than or equal to {{#limit}} key{if(#limit == 1, "", "s")}',"object.min":'{{#label}} must have at least {{#limit}} key{if(#limit == 1, "", "s")}',"object.missing":"{{#label}} must contain at least one of {{#peersWithLabels}}","object.nand":"{{:#mainWithLabel}} must not exist simultaneously with {{#peersWithLabels}}","object.oxor":"{{#label}} contains a conflict between optional exclusive peers {{#peersWithLabels}}","object.pattern.match":"{{#label}} keys failed to match pattern requirements","object.refType":"{{#label}} must be a Joi reference","object.regex":"{{#label}} must be a RegExp object","object.rename.multiple":"{{#label}} cannot rename {{:#from}} because multiple renames are disabled and another key was already renamed to {{:#to}}","object.rename.override":"{{#label}} cannot rename {{:#from}} because override is disabled and target {{:#to}} exists","object.schema":"{{#label}} must be a Joi schema of {{#type}} type","object.unknown":"{{#label}} is not allowed","object.with":"{{:#mainWithLabel}} missing required peer {{:#peerWithLabel}}","object.without":"{{:#mainWithLabel}} conflict with forbidden peer {{:#peerWithLabel}}","object.xor":"{{#label}} contains a conflict between exclusive peers {{#peersWithLabels}}"}}),g.clone=function(e,t){if("object"==typeof e){if(t.nonEnumerables)return o(e,{shallow:!0});const r=Object.create(Object.getPrototypeOf(e));return Object.assign(r,e),r}const r=function(...t){return e.apply(this,t)};return r.prototype=o(e.prototype),Object.defineProperty(r,"name",{value:e.name,writable:!1}),Object.defineProperty(r,"length",{value:e.length,writable:!1}),Object.assign(r,e),r},g.dependency=function(e,t,r,a,o){n(null===r||"string"==typeof r,t,"key must be a strings"),o||(o=a.length>1&&"object"==typeof a[a.length-1]?a.pop():{}),l.assertOptions(o,["separator","isPresent"]),a=[].concat(a);const s=l.default(o.separator,"."),i=[];for(const e of a)n("string"==typeof e,t,"peers must be strings"),i.push(c.ref(e,{separator:s,ancestor:0,prefix:!1}));null!==r&&(r=c.ref(r,{separator:s,ancestor:0,prefix:!1}));const u=e.clone();return u.$_terms.dependencies=u.$_terms.dependencies||[],u.$_terms.dependencies.push(new g.Dependency(t,r,i,a,o)),u},g.dependencies={and(e,t,r,a,n){const o=[],s=[],i=t.peers.length,l=g.isPresent(t.options);for(const e of t.peers)!1===l(e.resolve(r,a,n,null,{shadow:!1}))?o.push(e.key):s.push(e.key);if(o.length!==i&&s.length!==i)return{code:"object.and",context:{present:s,presentWithLabels:g.keysToLabels(e,s),missing:o,missingWithLabels:g.keysToLabels(e,o)}}},nand(e,t,r,a,n){const o=[],s=g.isPresent(t.options);for(const e of t.peers)s(e.resolve(r,a,n,null,{shadow:!1}))&&o.push(e.key);if(o.length!==t.peers.length)return;const i=t.paths[0],l=t.paths.slice(1);return{code:"object.nand",context:{main:i,mainWithLabel:g.keysToLabels(e,i),peers:l,peersWithLabels:g.keysToLabels(e,l)}}},or(e,t,r,a,n){const o=g.isPresent(t.options);for(const e of t.peers)if(o(e.resolve(r,a,n,null,{shadow:!1})))return;return{code:"object.missing",context:{peers:t.paths,peersWithLabels:g.keysToLabels(e,t.paths)}}},oxor(e,t,r,a,n){const o=[],s=g.isPresent(t.options);for(const e of t.peers)s(e.resolve(r,a,n,null,{shadow:!1}))&&o.push(e.key);if(!o.length||1===o.length)return;const i={peers:t.paths,peersWithLabels:g.keysToLabels(e,t.paths)};return i.present=o,i.presentWithLabels=g.keysToLabels(e,o),{code:"object.oxor",context:i}},with(e,t,r,a,n){const o=g.isPresent(t.options);for(const s of t.peers)if(!1===o(s.resolve(r,a,n,null,{shadow:!1})))return{code:"object.with",context:{main:t.key.key,mainWithLabel:g.keysToLabels(e,t.key.key),peer:s.key,peerWithLabel:g.keysToLabels(e,s.key)}}},without(e,t,r,a,n){const o=g.isPresent(t.options);for(const s of t.peers)if(o(s.resolve(r,a,n,null,{shadow:!1})))return{code:"object.without",context:{main:t.key.key,mainWithLabel:g.keysToLabels(e,t.key.key),peer:s.key,peerWithLabel:g.keysToLabels(e,s.key)}}},xor(e,t,r,a,n){const o=[],s=g.isPresent(t.options);for(const e of t.peers)s(e.resolve(r,a,n,null,{shadow:!1}))&&o.push(e.key);if(1===o.length)return;const i={peers:t.paths,peersWithLabels:g.keysToLabels(e,t.paths)};return 0===o.length?{code:"object.missing",context:i}:(i.present=o,i.presentWithLabels=g.keysToLabels(e,o),{code:"object.xor",context:i})}},g.keysToLabels=function(e,t){return Array.isArray(t)?t.map((t=>e.$_mapLabels(t))):e.$_mapLabels(t)},g.isPresent=function(e){return"function"==typeof e.isPresent?e.isPresent:e=>void 0!==e},g.rename=function(e,t,r,a,n){const o={};for(const s of e.$_terms.renames){const i=[],l="string"!=typeof s.from;if(l)for(const e in t){if(void 0===t[e]&&s.options.ignoreUndefined)continue;if(e===s.to)continue;const r=s.from.exec(e);r&&i.push({from:e,to:s.to,match:r})}else!Object.prototype.hasOwnProperty.call(t,s.from)||void 0===t[s.from]&&s.options.ignoreUndefined||i.push(s);for(const c of i){const i=c.from;let u=c.to;if(u instanceof p&&(u=u.render(t,r,a,c.match)),i!==u){if(!s.options.multiple&&o[u]&&(n.push(e.$_createError("object.rename.multiple",t,{from:i,to:u,pattern:l},r,a)),a.abortEarly))return!1;if(Object.prototype.hasOwnProperty.call(t,u)&&!s.options.override&&!o[u]&&(n.push(e.$_createError("object.rename.override",t,{from:i,to:u,pattern:l},r,a)),a.abortEarly))return!1;void 0===t[i]?delete t[u]:t[u]=t[i],o[u]=!0,s.options.alias||delete t[i]}}}return!0},g.unknown=function(e,t,r,a,n,o){if(e.$_terms.patterns){let s=!1;const i=e.$_terms.patterns.map((e=>{if(e.matches)return s=!0,[]})),l=[t,...n.ancestors];for(const s of r){const c=t[s],u=[...n.path,s];for(let d=0;d{"use strict";const a=r(375),n=r(8068),o=r(8160),s=r(3292),i=r(6354),l={};e.exports=n.extend({type:"link",properties:{schemaChain:!0},terms:{link:{init:null,manifest:"single",register:!1}},args:(e,t)=>e.ref(t),validate(e,{schema:t,state:r,prefs:n}){a(t.$_terms.link,"Uninitialized link schema");const o=l.generate(t,e,r,n),s=t.$_terms.link[0].ref;return o.$_validate(e,r.nest(o,`link:${s.display}:${o.type}`),n)},generate:(e,t,r,a)=>l.generate(e,t,r,a),rules:{ref:{method(e){a(!this.$_terms.link,"Cannot reinitialize schema"),e=s.ref(e),a("value"===e.type||"local"===e.type,"Invalid reference type:",e.type),a("local"===e.type||"root"===e.ancestor||e.ancestor>0,"Link cannot reference itself");const t=this.clone();return t.$_terms.link=[{ref:e}],t}},relative:{method(e=!0){return this.$_setFlag("relative",e)}}},overrides:{concat(e){a(this.$_terms.link,"Uninitialized link schema"),a(o.isSchema(e),"Invalid schema object"),a("link"!==e.type,"Cannot merge type link with another link");const t=this.clone();return t.$_terms.whens||(t.$_terms.whens=[]),t.$_terms.whens.push({concat:e}),t.$_mutateRebuild()}},manifest:{build:(e,t)=>(a(t.link,"Invalid link description missing link"),e.ref(t.link))}}),l.generate=function(e,t,r,a){let n=r.mainstay.links.get(e);if(n)return n._generate(t,r,a).schema;const o=e.$_terms.link[0].ref,{perspective:s,path:i}=l.perspective(o,r);l.assert(s,"which is outside of schema boundaries",o,e,r,a);try{n=i.length?s.$_reach(i):s}catch(t){l.assert(!1,"to non-existing schema",o,e,r,a)}return l.assert("link"!==n.type,"which is another link",o,e,r,a),e._flags.relative||r.mainstay.links.set(e,n),n._generate(t,r,a).schema},l.perspective=function(e,t){if("local"===e.type){for(const{schema:r,key:a}of t.schemas){if((r._flags.id||a)===e.path[0])return{perspective:r,path:e.path.slice(1)};if(r.$_terms.shared)for(const t of r.$_terms.shared)if(t._flags.id===e.path[0])return{perspective:t,path:e.path.slice(1)}}return{perspective:null,path:null}}return"root"===e.ancestor?{perspective:t.schemas[t.schemas.length-1].schema,path:e.path}:{perspective:t.schemas[e.ancestor]&&t.schemas[e.ancestor].schema,path:e.path}},l.assert=function(e,t,r,n,o,s){e||a(!1,`"${i.label(n._flags,o,s)}" contains link reference "${r.display}" ${t}`)}},3832:(e,t,r)=>{"use strict";const a=r(375),n=r(8068),o=r(8160),s={numberRx:/^\s*[+-]?(?:(?:\d+(?:\.\d*)?)|(?:\.\d+))(?:e([+-]?\d+))?\s*$/i,precisionRx:/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/,exponentialPartRegex:/[eE][+-]?\d+$/,leadingSignAndZerosRegex:/^[+-]?(0*)?/,dotRegex:/\./,trailingZerosRegex:/0+$/,decimalPlaces(e){const t=e.toString(),r=t.indexOf("."),a=t.indexOf("e");return(r<0?0:(a<0?t.length:a)-r-1)+(a<0?0:Math.max(0,-parseInt(t.slice(a+1))))}};e.exports=n.extend({type:"number",flags:{unsafe:{default:!1}},coerce:{from:"string",method(e,{schema:t,error:r}){if(!e.match(s.numberRx))return;e=e.trim();const a={value:parseFloat(e)};if(0===a.value&&(a.value=0),!t._flags.unsafe)if(e.match(/e/i)){if(s.extractSignificantDigits(e)!==s.extractSignificantDigits(String(a.value)))return a.errors=r("number.unsafe"),a}else{const t=a.value.toString();if(t.match(/e/i))return a;if(t!==s.normalizeDecimal(e))return a.errors=r("number.unsafe"),a}return a}},validate(e,{schema:t,error:r,prefs:a}){if(e===1/0||e===-1/0)return{value:e,errors:r("number.infinity")};if(!o.isNumber(e))return{value:e,errors:r("number.base")};const n={value:e};if(a.convert){const e=t.$_getRule("precision");if(e){const t=Math.pow(10,e.args.limit);n.value=Math.round(n.value*t)/t}}return 0===n.value&&(n.value=0),!t._flags.unsafe&&(e>Number.MAX_SAFE_INTEGER||eo.compare(e,r,n)?e:t.error("number."+a,{limit:s.limit,value:e}),args:[{name:"limit",ref:!0,assert:o.isNumber,message:"must be a number"}]},greater:{method(e){return this.$_addRule({name:"greater",method:"compare",args:{limit:e},operator:">"})}},integer:{method(){return this.$_addRule("integer")},validate:(e,t)=>Math.trunc(e)-e==0?e:t.error("number.integer")},less:{method(e){return this.$_addRule({name:"less",method:"compare",args:{limit:e},operator:"<"})}},max:{method(e){return this.$_addRule({name:"max",method:"compare",args:{limit:e},operator:"<="})}},min:{method(e){return this.$_addRule({name:"min",method:"compare",args:{limit:e},operator:">="})}},multiple:{method(e){const t="number"==typeof e?s.decimalPlaces(e):null,r=Math.pow(10,t);return this.$_addRule({name:"multiple",args:{base:e,baseDecimalPlace:t,pfactor:r}})},validate:(e,t,{base:r,baseDecimalPlace:a,pfactor:n},o)=>s.decimalPlaces(e)>a?t.error("number.multiple",{multiple:o.args.base,value:e}):Math.round(n*e)%Math.round(n*r)==0?e:t.error("number.multiple",{multiple:o.args.base,value:e}),args:[{name:"base",ref:!0,assert:e=>"number"==typeof e&&isFinite(e)&&e>0,message:"must be a positive number"},"baseDecimalPlace","pfactor"],multi:!0},negative:{method(){return this.sign("negative")}},port:{method(){return this.$_addRule("port")},validate:(e,t)=>Number.isSafeInteger(e)&&e>=0&&e<=65535?e:t.error("number.port")},positive:{method(){return this.sign("positive")}},precision:{method(e){return a(Number.isSafeInteger(e),"limit must be an integer"),this.$_addRule({name:"precision",args:{limit:e}})},validate(e,t,{limit:r}){const a=e.toString().match(s.precisionRx);return Math.max((a[1]?a[1].length:0)-(a[2]?parseInt(a[2],10):0),0)<=r?e:t.error("number.precision",{limit:r,value:e})},convert:!0},sign:{method(e){return a(["negative","positive"].includes(e),"Invalid sign",e),this.$_addRule({name:"sign",args:{sign:e}})},validate:(e,t,{sign:r})=>"negative"===r&&e<0||"positive"===r&&e>0?e:t.error(`number.${r}`)},unsafe:{method(e=!0){return a("boolean"==typeof e,"enabled must be a boolean"),this.$_setFlag("unsafe",e)}}},cast:{string:{from:e=>"number"==typeof e,to:(e,t)=>e.toString()}},messages:{"number.base":"{{#label}} must be a number","number.greater":"{{#label}} must be greater than {{#limit}}","number.infinity":"{{#label}} cannot be infinity","number.integer":"{{#label}} must be an integer","number.less":"{{#label}} must be less than {{#limit}}","number.max":"{{#label}} must be less than or equal to {{#limit}}","number.min":"{{#label}} must be greater than or equal to {{#limit}}","number.multiple":"{{#label}} must be a multiple of {{#multiple}}","number.negative":"{{#label}} must be a negative number","number.port":"{{#label}} must be a valid port","number.positive":"{{#label}} must be a positive number","number.precision":"{{#label}} must have no more than {{#limit}} decimal places","number.unsafe":"{{#label}} must be a safe number"}}),s.extractSignificantDigits=function(e){return e.replace(s.exponentialPartRegex,"").replace(s.dotRegex,"").replace(s.trailingZerosRegex,"").replace(s.leadingSignAndZerosRegex,"")},s.normalizeDecimal=function(e){return(e=e.replace(/^\+/,"").replace(/\.0*$/,"").replace(/^(-?)\.([^\.]*)$/,"$10.$2").replace(/^(-?)0+([0-9])/,"$1$2")).includes(".")&&e.endsWith("0")&&(e=e.replace(/0+$/,"")),"-0"===e?"0":e}},8966:(e,t,r)=>{"use strict";const a=r(7824);e.exports=a.extend({type:"object",cast:{map:{from:e=>e&&"object"==typeof e,to:(e,t)=>new Map(Object.entries(e))}}})},7417:(e,t,r)=>{"use strict";const a=r(375),n=r(5380),o=r(1745),s=r(9959),i=r(6064),l=r(9926),c=r(5752),u=r(8068),d=r(8160),p={tlds:l instanceof Set&&{tlds:{allow:l,deny:null}},base64Regex:{true:{true:/^(?:[\w\-]{2}[\w\-]{2})*(?:[\w\-]{2}==|[\w\-]{3}=)?$/,false:/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/},false:{true:/^(?:[\w\-]{2}[\w\-]{2})*(?:[\w\-]{2}(==)?|[\w\-]{3}=?)?$/,false:/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}(==)?|[A-Za-z0-9+\/]{3}=?)?$/}},dataUriRegex:/^data:[\w+.-]+\/[\w+.-]+;((charset=[\w-]+|base64),)?(.*)$/,hexRegex:{withPrefix:/^0x[0-9a-f]+$/i,withOptionalPrefix:/^(?:0x)?[0-9a-f]+$/i,withoutPrefix:/^[0-9a-f]+$/i},ipRegex:s.regex({cidr:"forbidden"}).regex,isoDurationRegex:/^P(?!$)(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?$/,guidBrackets:{"{":"}","[":"]","(":")","":""},guidVersions:{uuidv1:"1",uuidv2:"2",uuidv3:"3",uuidv4:"4",uuidv5:"5",uuidv6:"6",uuidv7:"7",uuidv8:"8"},guidSeparators:new Set([void 0,!0,!1,"-",":"]),normalizationForms:["NFC","NFD","NFKC","NFKD"]};e.exports=u.extend({type:"string",flags:{insensitive:{default:!1},truncate:{default:!1}},terms:{replacements:{init:null}},coerce:{from:"string",method(e,{schema:t,state:r,prefs:a}){const n=t.$_getRule("normalize");n&&(e=e.normalize(n.args.form));const o=t.$_getRule("case");o&&(e="upper"===o.args.direction?e.toLocaleUpperCase():e.toLocaleLowerCase());const s=t.$_getRule("trim");if(s&&s.args.enabled&&(e=e.trim()),t.$_terms.replacements)for(const r of t.$_terms.replacements)e=e.replace(r.pattern,r.replacement);const i=t.$_getRule("hex");if(i&&i.args.options.byteAligned&&e.length%2!=0&&(e=`0${e}`),t.$_getRule("isoDate")){const t=p.isoDate(e);t&&(e=t)}if(t._flags.truncate){const n=t.$_getRule("max");if(n){let o=n.args.limit;if(d.isResolvable(o)&&(o=o.resolve(e,r,a),!d.limit(o)))return{value:e,errors:t.$_createError("any.ref",o,{ref:n.args.limit,arg:"limit",reason:"must be a positive integer"},r,a)};e=e.slice(0,o)}}return{value:e}}},validate(e,{schema:t,error:r}){if("string"!=typeof e)return{value:e,errors:r("string.base")};if(""===e){const a=t.$_getRule("min");if(a&&0===a.args.limit)return;return{value:e,errors:r("string.empty")}}},rules:{alphanum:{method(){return this.$_addRule("alphanum")},validate:(e,t)=>/^[a-zA-Z0-9]+$/.test(e)?e:t.error("string.alphanum")},base64:{method(e={}){return d.assertOptions(e,["paddingRequired","urlSafe"]),e={urlSafe:!1,paddingRequired:!0,...e},a("boolean"==typeof e.paddingRequired,"paddingRequired must be boolean"),a("boolean"==typeof e.urlSafe,"urlSafe must be boolean"),this.$_addRule({name:"base64",args:{options:e}})},validate:(e,t,{options:r})=>p.base64Regex[r.paddingRequired][r.urlSafe].test(e)?e:t.error("string.base64")},case:{method(e){return a(["lower","upper"].includes(e),"Invalid case:",e),this.$_addRule({name:"case",args:{direction:e}})},validate:(e,t,{direction:r})=>"lower"===r&&e===e.toLocaleLowerCase()||"upper"===r&&e===e.toLocaleUpperCase()?e:t.error(`string.${r}case`),convert:!0},creditCard:{method(){return this.$_addRule("creditCard")},validate(e,t){let r=e.length,a=0,n=1;for(;r--;){const t=e.charAt(r)*n;a+=t-9*(t>9),n^=3}return a>0&&a%10==0?e:t.error("string.creditCard")}},dataUri:{method(e={}){return d.assertOptions(e,["paddingRequired"]),e={paddingRequired:!0,...e},a("boolean"==typeof e.paddingRequired,"paddingRequired must be boolean"),this.$_addRule({name:"dataUri",args:{options:e}})},validate(e,t,{options:r}){const a=e.match(p.dataUriRegex);if(a){if(!a[2])return e;if("base64"!==a[2])return e;if(p.base64Regex[r.paddingRequired].false.test(a[3]))return e}return t.error("string.dataUri")}},domain:{method(e){e&&d.assertOptions(e,["allowFullyQualified","allowUnicode","maxDomainSegments","minDomainSegments","tlds"]);const t=p.addressOptions(e);return this.$_addRule({name:"domain",args:{options:e},address:t})},validate:(e,t,r,{address:a})=>n.isValid(e,a)?e:t.error("string.domain")},email:{method(e={}){d.assertOptions(e,["allowFullyQualified","allowUnicode","ignoreLength","maxDomainSegments","minDomainSegments","multiple","separator","tlds"]),a(void 0===e.multiple||"boolean"==typeof e.multiple,"multiple option must be an boolean");const t=p.addressOptions(e),r=new RegExp(`\\s*[${e.separator?i(e.separator):","}]\\s*`);return this.$_addRule({name:"email",args:{options:e},regex:r,address:t})},validate(e,t,{options:r},{regex:a,address:n}){const s=r.multiple?e.split(a):[e],i=[];for(const e of s)o.isValid(e,n)||i.push(e);return i.length?t.error("string.email",{value:e,invalids:i}):e}},guid:{alias:"uuid",method(e={}){d.assertOptions(e,["version","separator"]);let t="";if(e.version){const r=[].concat(e.version);a(r.length>=1,"version must have at least 1 valid version specified");const n=new Set;for(let e=0;e("optional"===r.prefix?p.hexRegex.withOptionalPrefix:!0===r.prefix?p.hexRegex.withPrefix:p.hexRegex.withoutPrefix).test(e)?r.byteAligned&&e.length%2!=0?t.error("string.hexAlign"):e:t.error("string.hex")},hostname:{method(){return this.$_addRule("hostname")},validate:(e,t)=>n.isValid(e,{minDomainSegments:1})||p.ipRegex.test(e)?e:t.error("string.hostname")},insensitive:{method(){return this.$_setFlag("insensitive",!0)}},ip:{method(e={}){d.assertOptions(e,["cidr","version"]);const{cidr:t,versions:r,regex:a}=s.regex(e),n=e.version?r:void 0;return this.$_addRule({name:"ip",args:{options:{cidr:t,version:n}},regex:a})},validate:(e,t,{options:r},{regex:a})=>a.test(e)?e:r.version?t.error("string.ipVersion",{value:e,cidr:r.cidr,version:r.version}):t.error("string.ip",{value:e,cidr:r.cidr})},isoDate:{method(){return this.$_addRule("isoDate")},validate:(e,{error:t})=>p.isoDate(e)?e:t("string.isoDate")},isoDuration:{method(){return this.$_addRule("isoDuration")},validate:(e,t)=>p.isoDurationRegex.test(e)?e:t.error("string.isoDuration")},length:{method(e,t){return p.length(this,"length",e,"=",t)},validate(e,t,{limit:r,encoding:a},{name:n,operator:o,args:s}){const i=!a&&e.length;return d.compare(i,r,o)?e:t.error("string."+n,{limit:s.limit,value:e,encoding:a})},args:[{name:"limit",ref:!0,assert:d.limit,message:"must be a positive integer"},"encoding"]},lowercase:{method(){return this.case("lower")}},max:{method(e,t){return p.length(this,"max",e,"<=",t)},args:["limit","encoding"]},min:{method(e,t){return p.length(this,"min",e,">=",t)},args:["limit","encoding"]},normalize:{method(e="NFC"){return a(p.normalizationForms.includes(e),"normalization form must be one of "+p.normalizationForms.join(", ")),this.$_addRule({name:"normalize",args:{form:e}})},validate:(e,{error:t},{form:r})=>e===e.normalize(r)?e:t("string.normalize",{value:e,form:r}),convert:!0},pattern:{alias:"regex",method(e,t={}){a(e instanceof RegExp,"regex must be a RegExp"),a(!e.flags.includes("g")&&!e.flags.includes("y"),"regex should not use global or sticky mode"),"string"==typeof t&&(t={name:t}),d.assertOptions(t,["invert","name"]);const r=["string.pattern",t.invert?".invert":"",t.name?".name":".base"].join("");return this.$_addRule({name:"pattern",args:{regex:e,options:t},errorCode:r})},validate:(e,t,{regex:r,options:a},{errorCode:n})=>r.test(e)^a.invert?e:t.error(n,{name:a.name,regex:r,value:e}),args:["regex","options"],multi:!0},replace:{method(e,t){"string"==typeof e&&(e=new RegExp(i(e),"g")),a(e instanceof RegExp,"pattern must be a RegExp"),a("string"==typeof t,"replacement must be a String");const r=this.clone();return r.$_terms.replacements||(r.$_terms.replacements=[]),r.$_terms.replacements.push({pattern:e,replacement:t}),r}},token:{method(){return this.$_addRule("token")},validate:(e,t)=>/^\w+$/.test(e)?e:t.error("string.token")},trim:{method(e=!0){return a("boolean"==typeof e,"enabled must be a boolean"),this.$_addRule({name:"trim",args:{enabled:e}})},validate:(e,t,{enabled:r})=>r&&e!==e.trim()?t.error("string.trim"):e,convert:!0},truncate:{method(e=!0){return a("boolean"==typeof e,"enabled must be a boolean"),this.$_setFlag("truncate",e)}},uppercase:{method(){return this.case("upper")}},uri:{method(e={}){d.assertOptions(e,["allowRelative","allowQuerySquareBrackets","domain","relativeOnly","scheme"]),e.domain&&d.assertOptions(e.domain,["allowFullyQualified","allowUnicode","maxDomainSegments","minDomainSegments","tlds"]);const{regex:t,scheme:r}=c.regex(e),a=e.domain?p.addressOptions(e.domain):null;return this.$_addRule({name:"uri",args:{options:e},regex:t,domain:a,scheme:r})},validate(e,t,{options:r},{regex:a,domain:o,scheme:s}){if(["http:/","https:/"].includes(e))return t.error("string.uri");const i=a.exec(e);if(i){const a=i[1]||i[2];return!o||r.allowRelative&&!a||n.isValid(a,o)?e:t.error("string.domain",{value:a})}return r.relativeOnly?t.error("string.uriRelativeOnly"):r.scheme?t.error("string.uriCustomScheme",{scheme:s,value:e}):t.error("string.uri")}}},manifest:{build(e,t){if(t.replacements)for(const{pattern:r,replacement:a}of t.replacements)e=e.replace(r,a);return e}},messages:{"string.alphanum":"{{#label}} must only contain alpha-numeric characters","string.base":"{{#label}} must be a string","string.base64":"{{#label}} must be a valid base64 string","string.creditCard":"{{#label}} must be a credit card","string.dataUri":"{{#label}} must be a valid dataUri string","string.domain":"{{#label}} must contain a valid domain name","string.email":"{{#label}} must be a valid email","string.empty":"{{#label}} is not allowed to be empty","string.guid":"{{#label}} must be a valid GUID","string.hex":"{{#label}} must only contain hexadecimal characters","string.hexAlign":"{{#label}} hex decoded representation must be byte aligned","string.hostname":"{{#label}} must be a valid hostname","string.ip":"{{#label}} must be a valid ip address with a {{#cidr}} CIDR","string.ipVersion":"{{#label}} must be a valid ip address of one of the following versions {{#version}} with a {{#cidr}} CIDR","string.isoDate":"{{#label}} must be in iso format","string.isoDuration":"{{#label}} must be a valid ISO 8601 duration","string.length":"{{#label}} length must be {{#limit}} characters long","string.lowercase":"{{#label}} must only contain lowercase characters","string.max":"{{#label}} length must be less than or equal to {{#limit}} characters long","string.min":"{{#label}} length must be at least {{#limit}} characters long","string.normalize":"{{#label}} must be unicode normalized in the {{#form}} form","string.token":"{{#label}} must only contain alpha-numeric and underscore characters","string.pattern.base":"{{#label}} with value {:[.]} fails to match the required pattern: {{#regex}}","string.pattern.name":"{{#label}} with value {:[.]} fails to match the {{#name}} pattern","string.pattern.invert.base":"{{#label}} with value {:[.]} matches the inverted pattern: {{#regex}}","string.pattern.invert.name":"{{#label}} with value {:[.]} matches the inverted {{#name}} pattern","string.trim":"{{#label}} must not have leading or trailing whitespace","string.uri":"{{#label}} must be a valid uri","string.uriCustomScheme":"{{#label}} must be a valid uri with a scheme matching the {{#scheme}} pattern","string.uriRelativeOnly":"{{#label}} must be a valid relative uri","string.uppercase":"{{#label}} must only contain uppercase characters"}}),p.addressOptions=function(e){if(!e)return p.tlds||e;if(a(void 0===e.minDomainSegments||Number.isSafeInteger(e.minDomainSegments)&&e.minDomainSegments>0,"minDomainSegments must be a positive integer"),a(void 0===e.maxDomainSegments||Number.isSafeInteger(e.maxDomainSegments)&&e.maxDomainSegments>0,"maxDomainSegments must be a positive integer"),!1===e.tlds)return e;if(!0===e.tlds||void 0===e.tlds)return a(p.tlds,"Built-in TLD list disabled"),Object.assign({},e,p.tlds);a("object"==typeof e.tlds,"tlds must be true, false, or an object");const t=e.tlds.deny;if(t)return Array.isArray(t)&&(e=Object.assign({},e,{tlds:{deny:new Set(t)}})),a(e.tlds.deny instanceof Set,"tlds.deny must be an array, Set, or boolean"),a(!e.tlds.allow,"Cannot specify both tlds.allow and tlds.deny lists"),p.validateTlds(e.tlds.deny,"tlds.deny"),e;const r=e.tlds.allow;return r?!0===r?(a(p.tlds,"Built-in TLD list disabled"),Object.assign({},e,p.tlds)):(Array.isArray(r)&&(e=Object.assign({},e,{tlds:{allow:new Set(r)}})),a(e.tlds.allow instanceof Set,"tlds.allow must be an array, Set, or boolean"),p.validateTlds(e.tlds.allow,"tlds.allow"),e):e},p.validateTlds=function(e,t){for(const r of e)a(n.isValid(r,{minDomainSegments:1,maxDomainSegments:1}),`${t} must contain valid top level domain names`)},p.isoDate=function(e){if(!d.isIsoDate(e))return null;/.*T.*[+-]\d\d$/.test(e)&&(e+="00");const t=new Date(e);return isNaN(t.getTime())?null:t.toISOString()},p.length=function(e,t,r,n,o){return a(!o||!1,"Invalid encoding:",o),e.$_addRule({name:t,method:"length",args:{limit:r,encoding:o},operator:n})}},8826:(e,t,r)=>{"use strict";const a=r(375),n=r(8068),o={};o.Map=class extends Map{slice(){return new o.Map(this)}},e.exports=n.extend({type:"symbol",terms:{map:{init:new o.Map}},coerce:{method(e,{schema:t,error:r}){const a=t.$_terms.map.get(e);return a&&(e=a),t._flags.only&&"symbol"!=typeof e?{value:e,errors:r("symbol.map",{map:t.$_terms.map})}:{value:e}}},validate(e,{error:t}){if("symbol"!=typeof e)return{value:e,errors:t("symbol.base")}},rules:{map:{method(e){e&&!e[Symbol.iterator]&&"object"==typeof e&&(e=Object.entries(e)),a(e&&e[Symbol.iterator],"Iterable must be an iterable or object");const t=this.clone(),r=[];for(const n of e){a(n&&n[Symbol.iterator],"Entry must be an iterable");const[e,o]=n;a("object"!=typeof e&&"function"!=typeof e&&"symbol"!=typeof e,"Key must not be of type object, function, or Symbol"),a("symbol"==typeof o,"Value must be a Symbol"),t.$_terms.map.set(e,o),r.push(o)}return t.valid(...r)}}},manifest:{build:(e,t)=>(t.map&&(e=e.map(t.map)),e)},messages:{"symbol.base":"{{#label}} must be a symbol","symbol.map":"{{#label}} must be one of {{#map}}"}})},8863:(e,t,r)=>{"use strict";const a=r(375),n=r(8571),o=r(738),s=r(9621),i=r(8160),l=r(6354),c=r(493),u={result:Symbol("result")};t.entry=function(e,t,r){let n=i.defaults;r&&(a(void 0===r.warnings,"Cannot override warnings preference in synchronous validation"),a(void 0===r.artifacts,"Cannot override artifacts preference in synchronous validation"),n=i.preferences(i.defaults,r));const o=u.entry(e,t,n);a(!o.mainstay.externals.length,"Schema with external rules must use validateAsync()");const s={value:o.value};return o.error&&(s.error=o.error),o.mainstay.warnings.length&&(s.warning=l.details(o.mainstay.warnings)),o.mainstay.debug&&(s.debug=o.mainstay.debug),o.mainstay.artifacts&&(s.artifacts=o.mainstay.artifacts),s},t.entryAsync=async function(e,t,r){let a=i.defaults;r&&(a=i.preferences(i.defaults,r));const n=u.entry(e,t,a),o=n.mainstay;if(n.error)throw o.debug&&(n.error.debug=o.debug),n.error;if(o.externals.length){let t=n.value;const c=[];for(const n of o.externals){const d=n.state.path,p="link"===n.schema.type?o.links.get(n.schema):null;let g,m,w=t;const f=d.length?[t]:[],y=d.length?s(e,d):e;if(d.length){g=d[d.length-1];let e=t;for(const t of d.slice(0,-1))e=e[t],f.unshift(e);m=f[0],w=m[g]}try{const e=(e,t)=>(p||n.schema).$_createError(e,w,t,n.state,a),s=await n.method(w,{schema:n.schema,linked:p,state:n.state,prefs:r,original:y,error:e,errorsArray:u.errorsArray,warn:(e,t)=>o.warnings.push((p||n.schema).$_createError(e,w,t,n.state,a)),message:(e,t)=>(p||n.schema).$_createError("external",w,t,n.state,a,{messages:e})});if(void 0===s||s===w)continue;if(s instanceof l.Report){if(o.tracer.log(n.schema,n.state,"rule","external","error"),c.push(s),a.abortEarly)break;continue}if(Array.isArray(s)&&s[i.symbols.errors]){if(o.tracer.log(n.schema,n.state,"rule","external","error"),c.push(...s),a.abortEarly)break;continue}m?(o.tracer.value(n.state,"rule",w,s,"external"),m[g]=s):(o.tracer.value(n.state,"rule",t,s,"external"),t=s)}catch(e){throw a.errors.label&&(e.message+=` (${n.label})`),e}}if(n.value=t,c.length)throw n.error=l.process(c,e,a),o.debug&&(n.error.debug=o.debug),n.error}if(!a.warnings&&!a.debug&&!a.artifacts)return n.value;const c={value:n.value};return o.warnings.length&&(c.warning=l.details(o.warnings)),o.debug&&(c.debug=o.debug),o.artifacts&&(c.artifacts=o.artifacts),c},u.Mainstay=class{constructor(e,t,r){this.externals=[],this.warnings=[],this.tracer=e,this.debug=t,this.links=r,this.shadow=null,this.artifacts=null,this._snapshots=[]}snapshot(){this._snapshots.push({externals:this.externals.slice(),warnings:this.warnings.slice()})}restore(){const e=this._snapshots.pop();this.externals=e.externals,this.warnings=e.warnings}commit(){this._snapshots.pop()}},u.entry=function(e,r,a){const{tracer:n,cleanup:o}=u.tracer(r,a),s=a.debug?[]:null,i=r._ids._schemaChain?new Map:null,d=new u.Mainstay(n,s,i),p=r._ids._schemaChain?[{schema:r}]:null,g=new c([],[],{mainstay:d,schemas:p}),m=t.validate(e,r,g,a);o&&r.$_root.untrace();const w=l.process(m.errors,e,a);return{value:m.value,error:w,mainstay:d}},u.tracer=function(e,t){return e.$_root._tracer?{tracer:e.$_root._tracer._register(e)}:t.debug?(a(e.$_root.trace,"Debug mode not supported"),{tracer:e.$_root.trace()._register(e),cleanup:!0}):{tracer:u.ignore}},t.validate=function(e,t,r,a,n={}){if(t.$_terms.whens&&(t=t._generate(e,r,a).schema),t._preferences&&(a=u.prefs(t,a)),t._cache&&a.cache){const a=t._cache.get(e);if(r.mainstay.tracer.debug(r,"validate","cached",!!a),a)return a}const o=(n,o,s)=>t.$_createError(n,e,o,s||r,a),s={original:e,prefs:a,schema:t,state:r,error:o,errorsArray:u.errorsArray,warn:(e,t,a)=>r.mainstay.warnings.push(o(e,t,a)),message:(n,o)=>t.$_createError("custom",e,o,r,a,{messages:n})};r.mainstay.tracer.entry(t,r);const l=t._definition;if(l.prepare&&void 0!==e&&a.convert){const t=l.prepare(e,s);if(t){if(r.mainstay.tracer.value(r,"prepare",e,t.value),t.errors)return u.finalize(t.value,[].concat(t.errors),s);e=t.value}}if(l.coerce&&void 0!==e&&a.convert&&(!l.coerce.from||l.coerce.from.includes(typeof e))){const t=l.coerce.method(e,s);if(t){if(r.mainstay.tracer.value(r,"coerced",e,t.value),t.errors)return u.finalize(t.value,[].concat(t.errors),s);e=t.value}}const c=t._flags.empty;c&&c.$_match(u.trim(e,t),r.nest(c),i.defaults)&&(r.mainstay.tracer.value(r,"empty",e,void 0),e=void 0);const d=n.presence||t._flags.presence||(t._flags._endedSwitch?null:a.presence);if(void 0===e){if("forbidden"===d)return u.finalize(e,null,s);if("required"===d)return u.finalize(e,[t.$_createError("any.required",e,null,r,a)],s);if("optional"===d){if(t._flags.default!==i.symbols.deepDefault)return u.finalize(e,null,s);r.mainstay.tracer.value(r,"default",e,{}),e={}}}else if("forbidden"===d)return u.finalize(e,[t.$_createError("any.unknown",e,null,r,a)],s);const p=[];if(t._valids){const n=t._valids.get(e,r,a,t._flags.insensitive);if(n)return a.convert&&(r.mainstay.tracer.value(r,"valids",e,n.value),e=n.value),r.mainstay.tracer.filter(t,r,"valid",n),u.finalize(e,null,s);if(t._flags.only){const n=t.$_createError("any.only",e,{valids:t._valids.values({display:!0})},r,a);if(a.abortEarly)return u.finalize(e,[n],s);p.push(n)}}if(t._invalids){const n=t._invalids.get(e,r,a,t._flags.insensitive);if(n){r.mainstay.tracer.filter(t,r,"invalid",n);const o=t.$_createError("any.invalid",e,{invalids:t._invalids.values({display:!0})},r,a);if(a.abortEarly)return u.finalize(e,[o],s);p.push(o)}}if(l.validate){const t=l.validate(e,s);if(t&&(r.mainstay.tracer.value(r,"base",e,t.value),e=t.value,t.errors)){if(!Array.isArray(t.errors))return p.push(t.errors),u.finalize(e,p,s);if(t.errors.length)return p.push(...t.errors),u.finalize(e,p,s)}}return t._rules.length?u.rules(e,p,s):u.finalize(e,p,s)},u.rules=function(e,t,r){const{schema:a,state:n,prefs:o}=r;for(const s of a._rules){const l=a._definition.rules[s.method];if(l.convert&&o.convert){n.mainstay.tracer.log(a,n,"rule",s.name,"full");continue}let c,d=s.args;if(s._resolve.length){d=Object.assign({},d);for(const t of s._resolve){const r=l.argsByName.get(t),s=d[t].resolve(e,n,o),u=r.normalize?r.normalize(s):s,p=i.validateArg(u,null,r);if(p){c=a.$_createError("any.ref",s,{arg:t,ref:d[t],reason:p},n,o);break}d[t]=u}}c=c||l.validate(e,r,d,s);const p=u.rule(c,s);if(p.errors){if(n.mainstay.tracer.log(a,n,"rule",s.name,"error"),s.warn){n.mainstay.warnings.push(...p.errors);continue}if(o.abortEarly)return u.finalize(e,p.errors,r);t.push(...p.errors)}else n.mainstay.tracer.log(a,n,"rule",s.name,"pass"),n.mainstay.tracer.value(n,"rule",e,p.value,s.name),e=p.value}return u.finalize(e,t,r)},u.rule=function(e,t){return e instanceof l.Report?(u.error(e,t),{errors:[e],value:null}):Array.isArray(e)&&e[i.symbols.errors]?(e.forEach((e=>u.error(e,t))),{errors:e,value:null}):{errors:null,value:e}},u.error=function(e,t){return t.message&&e._setTemplate(t.message),e},u.finalize=function(e,t,r){t=t||[];const{schema:n,state:o,prefs:s}=r;if(t.length){const a=u.default("failover",void 0,t,r);void 0!==a&&(o.mainstay.tracer.value(o,"failover",e,a),e=a,t=[])}if(t.length&&n._flags.error)if("function"==typeof n._flags.error){t=n._flags.error(t),Array.isArray(t)||(t=[t]);for(const e of t)a(e instanceof Error||e instanceof l.Report,"error() must return an Error object")}else t=[n._flags.error];if(void 0===e){const a=u.default("default",e,t,r);o.mainstay.tracer.value(o,"default",e,a),e=a}if(n._flags.cast&&void 0!==e){const t=n._definition.cast[n._flags.cast];if(t.from(e)){const a=t.to(e,r);o.mainstay.tracer.value(o,"cast",e,a,n._flags.cast),e=a}}if(n.$_terms.externals&&s.externals&&!1!==s._externals)for(const{method:e}of n.$_terms.externals)o.mainstay.externals.push({method:e,schema:n,state:o,label:l.label(n._flags,o,s)});const i={value:e,errors:t.length?t:null};return n._flags.result&&(i.value="strip"===n._flags.result?void 0:r.original,o.mainstay.tracer.value(o,n._flags.result,e,i.value),o.shadow(e,n._flags.result)),n._cache&&!1!==s.cache&&!n._refs.length&&n._cache.set(r.original,i),void 0===e||i.errors||void 0===n._flags.artifact||(o.mainstay.artifacts=o.mainstay.artifacts||new Map,o.mainstay.artifacts.has(n._flags.artifact)||o.mainstay.artifacts.set(n._flags.artifact,[]),o.mainstay.artifacts.get(n._flags.artifact).push(o.path)),i},u.prefs=function(e,t){const r=t===i.defaults;return r&&e._preferences[i.symbols.prefs]?e._preferences[i.symbols.prefs]:(t=i.preferences(t,e._preferences),r&&(e._preferences[i.symbols.prefs]=t),t)},u.default=function(e,t,r,a){const{schema:o,state:s,prefs:l}=a,c=o._flags[e];if(l.noDefaults||void 0===c)return t;if(s.mainstay.tracer.log(o,s,"rule",e,"full"),!c)return c;if("function"==typeof c){const i=c.length?[n(s.ancestors[0]),a]:[];try{return c(...i)}catch(t){return void r.push(o.$_createError(`any.${e}`,null,{error:t},s,l))}}return"object"!=typeof c?c:c[i.symbols.literal]?c.literal:i.isResolvable(c)?c.resolve(t,s,l):n(c)},u.trim=function(e,t){if("string"!=typeof e)return e;const r=t.$_getRule("trim");return r&&r.args.enabled?e.trim():e},u.ignore={active:!1,debug:o,entry:o,filter:o,log:o,resolve:o,value:o},u.errorsArray=function(){const e=[];return e[i.symbols.errors]=!0,e}},2036:(e,t,r)=>{"use strict";const a=r(375),n=r(9474),o=r(8160),s={};e.exports=s.Values=class{constructor(e,t){this._values=new Set(e),this._refs=new Set(t),this._lowercase=s.lowercases(e),this._override=!1}get length(){return this._values.size+this._refs.size}add(e,t){o.isResolvable(e)?this._refs.has(e)||(this._refs.add(e),t&&t.register(e)):this.has(e,null,null,!1)||(this._values.add(e),"string"==typeof e&&this._lowercase.set(e.toLowerCase(),e))}static merge(e,t,r){if(e=e||new s.Values,t){if(t._override)return t.clone();for(const r of[...t._values,...t._refs])e.add(r)}if(r)for(const t of[...r._values,...r._refs])e.remove(t);return e.length?e:null}remove(e){o.isResolvable(e)?this._refs.delete(e):(this._values.delete(e),"string"==typeof e&&this._lowercase.delete(e.toLowerCase()))}has(e,t,r,a){return!!this.get(e,t,r,a)}get(e,t,r,a){if(!this.length)return!1;if(this._values.has(e))return{value:e};if("string"==typeof e&&e&&a){const t=this._lowercase.get(e.toLowerCase());if(t)return{value:t}}if(!this._refs.size&&"object"!=typeof e)return!1;if("object"==typeof e)for(const t of this._values)if(n(t,e))return{value:t};if(t)for(const o of this._refs){const s=o.resolve(e,t,r,null,{in:!0});if(void 0===s)continue;const i=o.in&&"object"==typeof s?Array.isArray(s)?s:Object.keys(s):[s];for(const t of i)if(typeof t==typeof e)if(a&&e&&"string"==typeof e){if(t.toLowerCase()===e.toLowerCase())return{value:t,ref:o}}else if(n(t,e))return{value:t,ref:o}}return!1}override(){this._override=!0}values(e){if(e&&e.display){const e=[];for(const t of[...this._values,...this._refs])void 0!==t&&e.push(t);return e}return Array.from([...this._values,...this._refs])}clone(){const e=new s.Values(this._values,this._refs);return e._override=this._override,e}concat(e){a(!e._override,"Cannot concat override set of values");const t=new s.Values([...this._values,...e._values],[...this._refs,...e._refs]);return t._override=this._override,t}describe(){const e=[];this._override&&e.push({override:!0});for(const t of this._values.values())e.push(t&&"object"==typeof t?{value:t}:t);for(const t of this._refs.values())e.push(t.describe());return e}},s.Values.prototype[o.symbols.values]=!0,s.Values.prototype.slice=s.Values.prototype.clone,s.lowercases=function(e){const t=new Map;if(e)for(const r of e)"string"==typeof r&&t.set(r.toLowerCase(),r);return t}},978:(e,t,r)=>{"use strict";const a=r(375),n=r(8571),o=r(1687),s=r(9621),i={};e.exports=function(e,t,r={}){if(a(e&&"object"==typeof e,"Invalid defaults value: must be an object"),a(!t||!0===t||"object"==typeof t,"Invalid source value: must be true, falsy or an object"),a("object"==typeof r,"Invalid options: must be an object"),!t)return null;if(r.shallow)return i.applyToDefaultsWithShallow(e,t,r);const s=n(e);if(!0===t)return s;const l=void 0!==r.nullOverride&&r.nullOverride;return o(s,t,{nullOverride:l,mergeArrays:!1})},i.applyToDefaultsWithShallow=function(e,t,r){const l=r.shallow;a(Array.isArray(l),"Invalid keys");const c=new Map,u=!0===t?null:new Set;for(let r of l){r=Array.isArray(r)?r:r.split(".");const a=s(e,r);a&&"object"==typeof a?c.set(a,u&&s(t,r)||a):u&&u.add(r)}const d=n(e,{},c);if(!u)return d;for(const e of u)i.reachCopy(d,t,e);const p=void 0!==r.nullOverride&&r.nullOverride;return o(d,t,{nullOverride:p,mergeArrays:!1})},i.reachCopy=function(e,t,r){for(const e of r){if(!(e in t))return;const r=t[e];if("object"!=typeof r||null===r)return;t=r}const a=t;let n=e;for(let e=0;e{"use strict";const a=r(7916);e.exports=function(e,...t){if(!e){if(1===t.length&&t[0]instanceof Error)throw t[0];throw new a(t)}}},8571:(e,t,r)=>{"use strict";const a=r(9621),n=r(4277),o=r(7043),s={needsProtoHack:new Set([n.set,n.map,n.weakSet,n.weakMap])};e.exports=s.clone=function(e,t={},r=null){if("object"!=typeof e||null===e)return e;let a=s.clone,i=r;if(t.shallow){if(!0!==t.shallow)return s.cloneWithShallow(e,t);a=e=>e}else if(i){const t=i.get(e);if(t)return t}else i=new Map;const l=n.getInternalProto(e);if(l===n.buffer)return!1;if(l===n.date)return new Date(e.getTime());if(l===n.regex)return new RegExp(e);const c=s.base(e,l,t);if(c===e)return e;if(i&&i.set(e,c),l===n.set)for(const r of e)c.add(a(r,t,i));else if(l===n.map)for(const[r,n]of e)c.set(r,a(n,t,i));const u=o.keys(e,t);for(const r of u){if("__proto__"===r)continue;if(l===n.array&&"length"===r){c.length=e.length;continue}const o=Object.getOwnPropertyDescriptor(e,r);o?o.get||o.set?Object.defineProperty(c,r,o):o.enumerable?c[r]=a(e[r],t,i):Object.defineProperty(c,r,{enumerable:!1,writable:!0,configurable:!0,value:a(e[r],t,i)}):Object.defineProperty(c,r,{enumerable:!0,writable:!0,configurable:!0,value:a(e[r],t,i)})}return c},s.cloneWithShallow=function(e,t){const r=t.shallow;(t=Object.assign({},t)).shallow=!1;const n=new Map;for(const t of r){const r=a(e,t);"object"!=typeof r&&"function"!=typeof r||n.set(r,r)}return s.clone(e,t,n)},s.base=function(e,t,r){if(!1===r.prototype)return s.needsProtoHack.has(t)?new t.constructor:t===n.array?[]:{};const a=Object.getPrototypeOf(e);if(a&&a.isImmutable)return e;if(t===n.array){const e=[];return a!==t&&Object.setPrototypeOf(e,a),e}if(s.needsProtoHack.has(t)){const e=new a.constructor;return a!==t&&Object.setPrototypeOf(e,a),e}return Object.create(a)}},9474:(e,t,r)=>{"use strict";const a=r(4277),n={mismatched:null};e.exports=function(e,t,r){return r=Object.assign({prototype:!0},r),!!n.isDeepEqual(e,t,r,[])},n.isDeepEqual=function(e,t,r,o){if(e===t)return 0!==e||1/e==1/t;const s=typeof e;if(s!==typeof t)return!1;if(null===e||null===t)return!1;if("function"===s){if(!r.deepFunction||e.toString()!==t.toString())return!1}else if("object"!==s)return e!=e&&t!=t;const i=n.getSharedType(e,t,!!r.prototype);switch(i){case a.buffer:return!1;case a.promise:return e===t;case a.regex:return e.toString()===t.toString();case n.mismatched:return!1}for(let r=o.length-1;r>=0;--r)if(o[r].isSame(e,t))return!0;o.push(new n.SeenEntry(e,t));try{return!!n.isDeepEqualObj(i,e,t,r,o)}finally{o.pop()}},n.getSharedType=function(e,t,r){if(r)return Object.getPrototypeOf(e)!==Object.getPrototypeOf(t)?n.mismatched:a.getInternalProto(e);const o=a.getInternalProto(e);return o!==a.getInternalProto(t)?n.mismatched:o},n.valueOf=function(e){const t=e.valueOf;if(void 0===t)return e;try{return t.call(e)}catch(e){return e}},n.hasOwnEnumerableProperty=function(e,t){return Object.prototype.propertyIsEnumerable.call(e,t)},n.isSetSimpleEqual=function(e,t){for(const r of Set.prototype.values.call(e))if(!Set.prototype.has.call(t,r))return!1;return!0},n.isDeepEqualObj=function(e,t,r,o,s){const{isDeepEqual:i,valueOf:l,hasOwnEnumerableProperty:c}=n,{keys:u,getOwnPropertySymbols:d}=Object;if(e===a.array){if(!o.part){if(t.length!==r.length)return!1;for(let e=0;e{"use strict";const a=r(8761);e.exports=class extends Error{constructor(e){super(e.filter((e=>""!==e)).map((e=>"string"==typeof e?e:e instanceof Error?e.message:a(e))).join(" ")||"Unknown error"),"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,t.assert)}}},5277:e=>{"use strict";const t={};e.exports=function(e){if(!e)return"";let r="";for(let a=0;a=256?"&#"+e+";":`&#x${e.toString(16).padStart(2,"0")};`)},t.isSafe=function(e){return t.safeCharCodes.has(e)},t.namedHtml=new Map([[38,"&"],[60,"<"],[62,">"],[34,"""],[160," "],[162,"¢"],[163,"£"],[164,"¤"],[169,"©"],[174,"®"]]),t.safeCharCodes=function(){const e=new Set;for(let t=32;t<123;++t)(t>=97||t>=65&&t<=90||t>=48&&t<=57||32===t||46===t||44===t||45===t||58===t||95===t)&&e.add(t);return e}()},6064:e=>{"use strict";e.exports=function(e){return e.replace(/[\^\$\.\*\+\-\?\=\!\:\|\\\/\(\)\[\]\{\}\,]/g,"\\$&")}},738:e=>{"use strict";e.exports=function(){}},1687:(e,t,r)=>{"use strict";const a=r(375),n=r(8571),o=r(7043),s={};e.exports=s.merge=function(e,t,r){if(a(e&&"object"==typeof e,"Invalid target value: must be an object"),a(null==t||"object"==typeof t,"Invalid source value: must be null, undefined, or an object"),!t)return e;if(r=Object.assign({nullOverride:!0,mergeArrays:!0},r),Array.isArray(t)){a(Array.isArray(e),"Cannot merge array onto an object"),r.mergeArrays||(e.length=0);for(let a=0;a{"use strict";const a=r(375),n={};e.exports=function(e,t,r){if(!1===t||null==t)return e;"string"==typeof(r=r||{})&&(r={separator:r});const o=Array.isArray(t);a(!o||!r.separator,"Separator option is not valid for array-based chain");const s=o?t:t.split(r.separator||".");let i=e;for(let e=0;e{"use strict";e.exports=function(...e){try{return JSON.stringify(...e)}catch(e){return"[Cannot display object: "+e.message+"]"}}},4277:(e,t)=>{"use strict";const r={};t=e.exports={array:Array.prototype,buffer:!1,date:Date.prototype,error:Error.prototype,generic:Object.prototype,map:Map.prototype,promise:Promise.prototype,regex:RegExp.prototype,set:Set.prototype,weakMap:WeakMap.prototype,weakSet:WeakSet.prototype},r.typeMap=new Map([["[object Error]",t.error],["[object Map]",t.map],["[object Promise]",t.promise],["[object Set]",t.set],["[object WeakMap]",t.weakMap],["[object WeakSet]",t.weakSet]]),t.getInternalProto=function(e){if(Array.isArray(e))return t.array;if(e instanceof Date)return t.date;if(e instanceof RegExp)return t.regex;if(e instanceof Error)return t.error;const a=Object.prototype.toString.call(e);return r.typeMap.get(a)||t.generic}},7043:(e,t)=>{"use strict";t.keys=function(e,t={}){return!1!==t.symbols?Reflect.ownKeys(e):Object.getOwnPropertyNames(e)}},3652:(e,t,r)=>{"use strict";const a=r(375),n={};t.Sorter=class{constructor(){this._items=[],this.nodes=[]}add(e,t){const r=[].concat((t=t||{}).before||[]),n=[].concat(t.after||[]),o=t.group||"?",s=t.sort||0;a(!r.includes(o),`Item cannot come before itself: ${o}`),a(!r.includes("?"),"Item cannot come before unassociated items"),a(!n.includes(o),`Item cannot come after itself: ${o}`),a(!n.includes("?"),"Item cannot come after unassociated items"),Array.isArray(e)||(e=[e]);for(const t of e){const e={seq:this._items.length,sort:s,before:r,after:n,group:o,node:t};this._items.push(e)}if(!t.manual){const e=this._sort();a(e,"item","?"!==o?`added into group ${o}`:"","created a dependencies error")}return this.nodes}merge(e){Array.isArray(e)||(e=[e]);for(const t of e)if(t)for(const e of t._items)this._items.push(Object.assign({},e));this._items.sort(n.mergeSort);for(let e=0;ee.sort===t.sort?0:e.sort{"use strict";const a=r(443),n=r(2178),o={minDomainSegments:2,nonAsciiRx:/[^\x00-\x7f]/,domainControlRx:/[\x00-\x20@\:\/\\#!\$&\'\(\)\*\+,;=\?]/,tldSegmentRx:/^[a-zA-Z](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,domainSegmentRx:/^[a-zA-Z0-9](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,URL:a.URL||URL};t.analyze=function(e,t={}){if(!e)return n.code("DOMAIN_NON_EMPTY_STRING");if("string"!=typeof e)throw new Error("Invalid input: domain must be a string");if(e.length>256)return n.code("DOMAIN_TOO_LONG");if(o.nonAsciiRx.test(e)){if(!1===t.allowUnicode)return n.code("DOMAIN_INVALID_UNICODE_CHARS");e=e.normalize("NFC")}if(o.domainControlRx.test(e))return n.code("DOMAIN_INVALID_CHARS");e=o.punycode(e),t.allowFullyQualified&&"."===e[e.length-1]&&(e=e.slice(0,-1));const r=t.minDomainSegments||o.minDomainSegments,a=e.split(".");if(a.lengtht.maxDomainSegments)return n.code("DOMAIN_SEGMENTS_COUNT_MAX");const s=t.tlds;if(s){const e=a[a.length-1].toLowerCase();if(s.deny&&s.deny.has(e)||s.allow&&!s.allow.has(e))return n.code("DOMAIN_FORBIDDEN_TLDS")}for(let e=0;e63)return n.code("DOMAIN_LONG_SEGMENT");if(e{"use strict";const a=r(9848),n=r(5380),o=r(2178),s={nonAsciiRx:/[^\x00-\x7f]/,encoder:new(a.TextEncoder||TextEncoder)};t.analyze=function(e,t){return s.email(e,t)},t.isValid=function(e,t){return!s.email(e,t)},s.email=function(e,t={}){if("string"!=typeof e)throw new Error("Invalid input: email must be a string");if(!e)return o.code("EMPTY_STRING");const r=!s.nonAsciiRx.test(e);if(!r){if(!1===t.allowUnicode)return o.code("FORBIDDEN_UNICODE");e=e.normalize("NFC")}const a=e.split("@");if(2!==a.length)return a.length>2?o.code("MULTIPLE_AT_CHAR"):o.code("MISSING_AT_CHAR");const[i,l]=a;if(!i)return o.code("EMPTY_LOCAL");if(!t.ignoreLength){if(e.length>254)return o.code("ADDRESS_TOO_LONG");if(s.encoder.encode(i).length>64)return o.code("LOCAL_TOO_LONG")}return s.local(i,r)||n.analyze(l,t)},s.local=function(e,t){const r=e.split(".");for(const e of r){if(!e.length)return o.code("EMPTY_LOCAL_SEGMENT");if(t){if(!s.atextRx.test(e))return o.code("INVALID_LOCAL_CHARS")}else for(const t of e){if(s.atextRx.test(t))continue;const e=s.binary(t);if(!s.atomRx.test(e))return o.code("INVALID_LOCAL_CHARS")}}},s.binary=function(e){return Array.from(s.encoder.encode(e)).map((e=>String.fromCharCode(e))).join("")},s.atextRx=/^[\w!#\$%&'\*\+\-/=\?\^`\{\|\}~]+$/,s.atomRx=new RegExp(["(?:[\\xc2-\\xdf][\\x80-\\xbf])","(?:\\xe0[\\xa0-\\xbf][\\x80-\\xbf])|(?:[\\xe1-\\xec][\\x80-\\xbf]{2})|(?:\\xed[\\x80-\\x9f][\\x80-\\xbf])|(?:[\\xee-\\xef][\\x80-\\xbf]{2})","(?:\\xf0[\\x90-\\xbf][\\x80-\\xbf]{2})|(?:[\\xf1-\\xf3][\\x80-\\xbf]{3})|(?:\\xf4[\\x80-\\x8f][\\x80-\\xbf]{2})"].join("|"))},2178:(e,t)=>{"use strict";t.codes={EMPTY_STRING:"Address must be a non-empty string",FORBIDDEN_UNICODE:"Address contains forbidden Unicode characters",MULTIPLE_AT_CHAR:"Address cannot contain more than one @ character",MISSING_AT_CHAR:"Address must contain one @ character",EMPTY_LOCAL:"Address local part cannot be empty",ADDRESS_TOO_LONG:"Address too long",LOCAL_TOO_LONG:"Address local part too long",EMPTY_LOCAL_SEGMENT:"Address local part contains empty dot-separated segment",INVALID_LOCAL_CHARS:"Address local part contains invalid character",DOMAIN_NON_EMPTY_STRING:"Domain must be a non-empty string",DOMAIN_TOO_LONG:"Domain too long",DOMAIN_INVALID_UNICODE_CHARS:"Domain contains forbidden Unicode characters",DOMAIN_INVALID_CHARS:"Domain contains invalid character",DOMAIN_INVALID_TLDS_CHARS:"Domain contains invalid tld character",DOMAIN_SEGMENTS_COUNT:"Domain lacks the minimum required number of segments",DOMAIN_SEGMENTS_COUNT_MAX:"Domain contains too many segments",DOMAIN_FORBIDDEN_TLDS:"Domain uses forbidden TLD",DOMAIN_EMPTY_SEGMENT:"Domain contains empty dot-separated segment",DOMAIN_LONG_SEGMENT:"Domain contains dot-separated segment that is too long"},t.code=function(e){return{code:e,error:t.codes[e]}}},9959:(e,t,r)=>{"use strict";const a=r(375),n=r(5752);t.regex=function(e={}){a(void 0===e.cidr||"string"==typeof e.cidr,"options.cidr must be a string");const t=e.cidr?e.cidr.toLowerCase():"optional";a(["required","optional","forbidden"].includes(t),"options.cidr must be one of required, optional, forbidden"),a(void 0===e.version||"string"==typeof e.version||Array.isArray(e.version),"options.version must be a string or an array of string");let r=e.version||["ipv4","ipv6","ipvfuture"];Array.isArray(r)||(r=[r]),a(r.length>=1,"options.version must have at least 1 version specified");for(let e=0;e{if("forbidden"===t)return n.ip[e];const r=`\\/${"ipv4"===e?n.ip.v4Cidr:n.ip.v6Cidr}`;return"required"===t?`${n.ip[e]}${r}`:`${n.ip[e]}(?:${r})?`})).join("|")})`,s=new RegExp(`^${o}$`);return{cidr:t,versions:r,regex:s,raw:o}}},5752:(e,t,r)=>{"use strict";const a=r(375),n=r(6064),o={generate:function(){const e={},t="\\dA-Fa-f",r="["+t+"]",a="\\w-\\.~",n="!\\$&'\\(\\)\\*\\+,;=",o="%"+t,s=a+o+n+":@",i="["+s+"]",l="(?:0{0,2}\\d|0?[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])";e.ipv4address="(?:"+l+"\\.){3}"+l;const c=r+"{1,4}",u="(?:"+c+":"+c+"|"+e.ipv4address+")",d="(?:"+c+":){6}"+u,p="::(?:"+c+":){5}"+u,g="(?:"+c+")?::(?:"+c+":){4}"+u,m="(?:(?:"+c+":){0,1}"+c+")?::(?:"+c+":){3}"+u,w="(?:(?:"+c+":){0,2}"+c+")?::(?:"+c+":){2}"+u,f="(?:(?:"+c+":){0,3}"+c+")?::"+c+":"+u,y="(?:(?:"+c+":){0,4}"+c+")?::"+u,b="(?:(?:"+c+":){0,5}"+c+")?::"+c,h="(?:(?:"+c+":){0,6}"+c+")?::";e.ipv4Cidr="(?:\\d|[1-2]\\d|3[0-2])",e.ipv6Cidr="(?:0{0,2}\\d|0?[1-9]\\d|1[01]\\d|12[0-8])",e.ipv6address="(?:"+d+"|"+p+"|"+g+"|"+m+"|"+w+"|"+f+"|"+y+"|"+b+"|"+h+")",e.ipvFuture="v"+r+"+\\.["+a+n+":]+",e.scheme="[a-zA-Z][a-zA-Z\\d+-\\.]*",e.schemeRegex=new RegExp(e.scheme);const _="["+a+o+n+":]*",v="["+a+o+n+"]{1,255}",k="(?:\\[(?:"+e.ipv6address+"|"+e.ipvFuture+")\\]|"+e.ipv4address+"|"+v+")",R="(?:"+_+"@)?"+k+"(?::\\d*)?",P="(?:"+_+"@)?("+k+")(?::\\d*)?",j=i+"*",C=i+"+",q="(?:\\/"+j+")*",S="\\/(?:"+C+q+")?",A=C+q,E="["+a+o+n+"@]+"+q,H="(?:\\/\\/\\/"+j+q+")";return e.hierPart="(?:(?:\\/\\/"+R+q+")|"+S+"|"+A+"|"+H+")",e.hierPartCapture="(?:(?:\\/\\/"+P+q+")|"+S+"|"+A+")",e.relativeRef="(?:(?:\\/\\/"+R+q+")|"+S+"|"+E+"|)",e.relativeRefCapture="(?:(?:\\/\\/"+P+q+")|"+S+"|"+E+"|)",e.query="["+s+"\\/\\?]*(?=#|$)",e.queryWithSquareBrackets="["+s+"\\[\\]\\/\\?]*(?=#|$)",e.fragment="["+s+"\\/\\?]*",e}};o.rfc3986=o.generate(),t.ip={v4Cidr:o.rfc3986.ipv4Cidr,v6Cidr:o.rfc3986.ipv6Cidr,ipv4:o.rfc3986.ipv4address,ipv6:o.rfc3986.ipv6address,ipvfuture:o.rfc3986.ipvFuture},o.createRegex=function(e){const t=o.rfc3986,r="(?:\\?"+(e.allowQuerySquareBrackets?t.queryWithSquareBrackets:t.query)+")?(?:#"+t.fragment+")?",s=e.domain?t.relativeRefCapture:t.relativeRef;if(e.relativeOnly)return o.wrap(s+r);let i="";if(e.scheme){a(e.scheme instanceof RegExp||"string"==typeof e.scheme||Array.isArray(e.scheme),"scheme must be a RegExp, String, or Array");const r=[].concat(e.scheme);a(r.length>=1,"scheme must have at least 1 scheme specified");const o=[];for(let e=0;e{"use strict";const r={operators:["!","^","*","/","%","+","-","<","<=",">",">=","==","!=","&&","||","??"],operatorCharacters:["!","^","*","/","%","+","-","<","=",">","&","|","?"],operatorsOrder:[["^"],["*","/","%"],["+","-"],["<","<=",">",">="],["==","!="],["&&"],["||","??"]],operatorsPrefix:["!","n"],literals:{'"':'"',"`":"`","'":"'","[":"]"},numberRx:/^(?:[0-9]*(\.[0-9]*)?){1}$/,tokenRx:/^[\w\$\#\.\@\:\{\}]+$/,symbol:Symbol("formula"),settings:Symbol("settings")};t.Parser=class{constructor(e,t={}){if(!t[r.settings]&&t.constants)for(const e in t.constants){const r=t.constants[e];if(null!==r&&!["boolean","number","string"].includes(typeof r))throw new Error(`Formula constant ${e} contains invalid ${typeof r} value type`)}this.settings=t[r.settings]?t:Object.assign({[r.settings]:!0,constants:{},functions:{}},t),this.single=null,this._parts=null,this._parse(e)}_parse(e){let a=[],n="",o=0,s=!1;const i=e=>{if(o)throw new Error("Formula missing closing parenthesis");const i=a.length?a[a.length-1]:null;if(s||n||e){if(i&&"reference"===i.type&&")"===e)return i.type="function",i.value=this._subFormula(n,i.value),void(n="");if(")"===e){const e=new t.Parser(n,this.settings);a.push({type:"segment",value:e})}else if(s){if("]"===s)return a.push({type:"reference",value:n}),void(n="");a.push({type:"literal",value:n})}else if(r.operatorCharacters.includes(n))i&&"operator"===i.type&&r.operators.includes(i.value+n)?i.value+=n:a.push({type:"operator",value:n});else if(n.match(r.numberRx))a.push({type:"constant",value:parseFloat(n)});else if(void 0!==this.settings.constants[n])a.push({type:"constant",value:this.settings.constants[n]});else{if(!n.match(r.tokenRx))throw new Error(`Formula contains invalid token: ${n}`);a.push({type:"reference",value:n})}n=""}};for(const t of e)s?t===s?(i(),s=!1):n+=t:o?"("===t?(n+=t,++o):")"===t?(--o,o?n+=t:i(t)):n+=t:t in r.literals?s=r.literals[t]:"("===t?(i(),++o):r.operatorCharacters.includes(t)?(i(),n=t,i()):" "!==t?n+=t:i();i(),a=a.map(((e,t)=>"operator"!==e.type||"-"!==e.value||t&&"operator"!==a[t-1].type?e:{type:"operator",value:"n"}));let l=!1;for(const e of a){if("operator"===e.type){if(r.operatorsPrefix.includes(e.value))continue;if(!l)throw new Error("Formula contains an operator in invalid position");if(!r.operators.includes(e.value))throw new Error(`Formula contains an unknown operator ${e.value}`)}else if(l)throw new Error("Formula missing expected operator");l=!l}if(!l)throw new Error("Formula contains invalid trailing operator");1===a.length&&["reference","literal","constant"].includes(a[0].type)&&(this.single={type:"reference"===a[0].type?"reference":"value",value:a[0].value}),this._parts=a.map((e=>{if("operator"===e.type)return r.operatorsPrefix.includes(e.value)?e:e.value;if("reference"!==e.type)return e.value;if(this.settings.tokenRx&&!this.settings.tokenRx.test(e.value))throw new Error(`Formula contains invalid reference ${e.value}`);return this.settings.reference?this.settings.reference(e.value):r.reference(e.value)}))}_subFormula(e,a){const n=this.settings.functions[a];if("function"!=typeof n)throw new Error(`Formula contains unknown function ${a}`);let o=[];if(e){let t="",n=0,s=!1;const i=()=>{if(!t)throw new Error(`Formula contains function ${a} with invalid arguments ${e}`);o.push(t),t=""};for(let a=0;anew t.Parser(e,this.settings))),function(e){const t=[];for(const r of o)t.push(r.evaluate(e));return n.call(e,...t)}}evaluate(e){const t=this._parts.slice();for(let a=t.length-2;a>=0;--a){const n=t[a];if(n&&"operator"===n.type){const o=t[a+1];t.splice(a+1,1);const s=r.evaluate(o,e);t[a]=r.single(n.value,s)}}return r.operatorsOrder.forEach((a=>{for(let n=1;n":return t>a;case">=":return t>=a;case"==":return t===a;case"!=":return t!==a;case"&&":return t&&a;case"||":return t||a}return null},r.exists=function(e){return null!=e}},9926:()=>{},5688:()=>{},9708:()=>{},1152:()=>{},443:()=>{},9848:()=>{},5934:e=>{"use strict";e.exports=JSON.parse('{"version":"17.12.1"}')}},t={},function r(a){var n=t[a];if(void 0!==n)return n.exports;var o=t[a]={exports:{}};return e[a](o,o.exports,r),o.exports}(5107);var e,t},e.exports=t()},6220:function(e,t,r){var a,n;!function(o,s){"use strict";a=function(){var e=function(){},t="undefined",r=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),a=["trace","debug","info","warn","error"],n={},o=null;function s(e,t){var r=e[t];if("function"==typeof r.bind)return r.bind(e);try{return Function.prototype.bind.call(r,e)}catch(t){return function(){return Function.prototype.apply.apply(r,[e,arguments])}}}function i(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function l(){for(var r=this.getLevel(),n=0;n=0&&t<=d.levels.SILENT)return t;throw new TypeError("log.setLevel() called with invalid level: "+e)}"string"==typeof e?p+=":"+e:"symbol"==typeof e&&(p=void 0),d.name=e,d.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},d.methodFactory=r||u,d.getLevel=function(){return null!=c?c:null!=i?i:s},d.setLevel=function(e,r){return c=m(e),!1!==r&&function(e){var r=(a[e]||"silent").toUpperCase();if(typeof window!==t&&p){try{return void(window.localStorage[p]=r)}catch(e){}try{window.document.cookie=encodeURIComponent(p)+"="+r+";"}catch(e){}}}(c),l.call(d)},d.setDefaultLevel=function(e){i=m(e),g()||d.setLevel(e,!1)},d.resetLevel=function(){c=null,function(){if(typeof window!==t&&p){try{window.localStorage.removeItem(p)}catch(e){}try{window.document.cookie=encodeURIComponent(p)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}(),l.call(d)},d.enableAll=function(e){d.setLevel(d.levels.TRACE,e)},d.disableAll=function(e){d.setLevel(d.levels.SILENT,e)},d.rebuild=function(){if(o!==d&&(s=m(o.getLevel())),l.call(d),o===d)for(var e in n)n[e].rebuild()},s=m(o?o.getLevel():"WARN");var w=g();null!=w&&(c=m(w)),l.call(d)}(o=new d).getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=n[e];return t||(t=n[e]=new d(e,o.methodFactory)),t};var p=typeof window!==t?window.log:void 0;return o.noConflict=function(){return typeof window!==t&&window.log===o&&(window.log=p),o},o.getLoggers=function(){return n},o.default=o,o},void 0===(n=a.call(t,r,t,e))||(e.exports=n)}()},3660:(e,t,r)=>{"use strict";const a=r(4312),n=r(7140),o=r(444),s=r(9600),i=Symbol("encodeFragmentIdentifier");function l(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function c(e,t){return t.encode?t.strict?a(e):encodeURIComponent(e):e}function u(e,t){return t.decode?n(e):e}function d(e){return Array.isArray(e)?e.sort():"object"==typeof e?d(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function p(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function g(e){const t=(e=p(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function m(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function w(e,t){l((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const r=function(e){let t;switch(e.arrayFormat){case"index":return(e,r,a)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===a[e]&&(a[e]={}),a[e][t[1]]=r):a[e]=r};case"bracket":return(e,r,a)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==a[e]?a[e]=[].concat(a[e],r):a[e]=[r]:a[e]=r};case"colon-list-separator":return(e,r,a)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==a[e]?a[e]=[].concat(a[e],r):a[e]=[r]:a[e]=r};case"comma":case"separator":return(t,r,a)=>{const n="string"==typeof r&&r.includes(e.arrayFormatSeparator),o="string"==typeof r&&!n&&u(r,e).includes(e.arrayFormatSeparator);r=o?u(r,e):r;const s=n||o?r.split(e.arrayFormatSeparator).map((t=>u(t,e))):null===r?r:u(r,e);a[t]=s};case"bracket-separator":return(t,r,a)=>{const n=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!n)return void(a[t]=r?u(r,e):r);const o=null===r?[]:r.split(e.arrayFormatSeparator).map((t=>u(t,e)));void 0!==a[t]?a[t]=[].concat(a[t],o):a[t]=o};default:return(e,t,r)=>{void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=t}}}(t),a=Object.create(null);if("string"!=typeof e)return a;if(!(e=e.trim().replace(/^[?#&]/,"")))return a;for(const n of e.split("&")){if(""===n)continue;let[e,s]=o(t.decode?n.replace(/\+/g," "):n,"=");s=void 0===s?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?s:u(s,t),r(u(e,t),s,a)}for(const e of Object.keys(a)){const r=a[e];if("object"==typeof r&&null!==r)for(const e of Object.keys(r))r[e]=m(r[e],t);else a[e]=m(r,t)}return!1===t.sort?a:(!0===t.sort?Object.keys(a).sort():Object.keys(a).sort(t.sort)).reduce(((e,t)=>{const r=a[t];return Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?e[t]=d(r):e[t]=r,e}),Object.create(null))}t.extract=g,t.parse=w,t.stringify=(e,t)=>{if(!e)return"";l((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const r=r=>t.skipNull&&null==e[r]||t.skipEmptyString&&""===e[r],a=function(e){switch(e.arrayFormat){case"index":return t=>(r,a)=>{const n=r.length;return void 0===a||e.skipNull&&null===a||e.skipEmptyString&&""===a?r:null===a?[...r,[c(t,e),"[",n,"]"].join("")]:[...r,[c(t,e),"[",c(n,e),"]=",c(a,e)].join("")]};case"bracket":return t=>(r,a)=>void 0===a||e.skipNull&&null===a||e.skipEmptyString&&""===a?r:null===a?[...r,[c(t,e),"[]"].join("")]:[...r,[c(t,e),"[]=",c(a,e)].join("")];case"colon-list-separator":return t=>(r,a)=>void 0===a||e.skipNull&&null===a||e.skipEmptyString&&""===a?r:null===a?[...r,[c(t,e),":list="].join("")]:[...r,[c(t,e),":list=",c(a,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return r=>(a,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?a:(n=null===n?"":n,0===a.length?[[c(r,e),t,c(n,e)].join("")]:[[a,c(n,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,a)=>void 0===a||e.skipNull&&null===a||e.skipEmptyString&&""===a?r:null===a?[...r,c(t,e)]:[...r,[c(t,e),"=",c(a,e)].join("")]}}(t),n={};for(const t of Object.keys(e))r(t)||(n[t]=e[t]);const o=Object.keys(n);return!1!==t.sort&&o.sort(t.sort),o.map((r=>{const n=e[r];return void 0===n?"":null===n?c(r,t):Array.isArray(n)?0===n.length&&"bracket-separator"===t.arrayFormat?c(r,t)+"[]":n.reduce(a(r),[]).join("&"):c(r,t)+"="+c(n,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[r,a]=o(e,"#");return Object.assign({url:r.split("?")[0]||"",query:w(g(e),t)},t&&t.parseFragmentIdentifier&&a?{fragmentIdentifier:u(a,t)}:{})},t.stringifyUrl=(e,r)=>{r=Object.assign({encode:!0,strict:!0,[i]:!0},r);const a=p(e.url).split("?")[0]||"",n=t.extract(e.url),o=t.parse(n,{sort:!1}),s=Object.assign(o,e.query);let l=t.stringify(s,r);l&&(l=`?${l}`);let u=function(e){let t="";const r=e.indexOf("#");return-1!==r&&(t=e.slice(r)),t}(e.url);return e.fragmentIdentifier&&(u=`#${r[i]?c(e.fragmentIdentifier,r):e.fragmentIdentifier}`),`${a}${l}${u}`},t.pick=(e,r,a)=>{a=Object.assign({parseFragmentIdentifier:!0,[i]:!1},a);const{url:n,query:o,fragmentIdentifier:l}=t.parseUrl(e,a);return t.stringifyUrl({url:n,query:s(o,r),fragmentIdentifier:l},a)},t.exclude=(e,r,a)=>{const n=Array.isArray(r)?e=>!r.includes(e):(e,t)=>!r(e,t);return t.pick(e,n,a)}},444:e=>{"use strict";e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const r=e.indexOf(t);return-1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}},4312:e=>{"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},8336:(e,t,r)=>{const{fdkAxios:a}=r(4233),{convertStringToBase64:n}=r(3748);e.exports=class{static execute(e,t,r,o,s,i,l){let c={Authorization:"Bearer "+n(`${e.applicationID}:${e.applicationToken}`)};e.cookie&&(c={...c,cookie:e.cookie}),e.locationDetails&&(c={...c,"x-location-detail":JSON.stringify(e.locationDetails)}),e.currencyCode&&(c={...c,"x-currency-code":e.currencyCode});const u=e.extraHeaders.reduce(((e,t)=>({...e,...t})),{});let d={method:t,url:r,params:o,data:s,headers:{...c,...u,...i},responseHeaders:l.responseHeaders};return d=JSON.parse(JSON.stringify(d)),a.request(d)}}},8464:(e,t,r)=>{const a=r(5020),n=r(9844),o=r(4080),s=r(4064),i=r(2192),l=r(6900),c=r(6904),u=r(3580),d=r(1564),p=r(3032),g=r(396),m=r(2336),w=r(7044),f=r(7960),y=r(4236),b=r(8408),{FDKClientValidationError:h}=r(9916);e.exports=class{constructor(e){this.config=e,this.cart=new a(e),this.catalog=new n(e),this.common=new o(e),this.communication=new s(e),this.configuration=new i(e),this.content=new l(e),this.fileStorage=new c(e),this.lead=new u(e),this.logistic=new d(e),this.order=new p(e),this.payment=new g(e),this.posCart=new m(e),this.rewards=new w(e),this.share=new f(e),this.theme=new y(e),this.user=new b(e)}setCookie(e){this.config.cookie=e}setLocationDetails(e,t=!1){this.config.locationDetails=!0===t?e:{...this.config.locationDetails,...e}}setCurrencyCode(e){if("string"!=typeof e)throw new h("Currency code should be string only");this.config.currencyCode=e}setExtraHeaders(e){if("object"!=typeof e)throw new h("Context value should be an object");this.config.extraHeaders.push(e)}}},2288:(e,t,r)=>{const{FDKInvalidCredentialError:a}=r(9916),{Logger:n,setLoggerLevel:o}=r(1544);e.exports=class{constructor(e,t){this.applicationID=e.applicationID||"",this.applicationToken=e.applicationToken||"",this.options={strictResponseCheck:!1,...t},this.domain=e.domain||"https://api.fynd.com",this.logLevel=e.logLevel||"ERROR",this.setLogLevel(this.logLevel),this.extraHeaders=[],this.locationDetails=e.locationDetails,this.currencyCode=e.currencyCode||"INR",this.validate()}setLogLevel(e){o(e.toUpperCase()),this.logLevel=e.toUpperCase()}setCookie(e){this.cookie=e}validate(){if(!this.applicationID)throw n({level:"ERROR",message:"No Application ID Present"}),new a("No Application ID Present");if(!this.applicationToken)throw n({level:"ERROR",message:"No Application Token Present"}),new a("No Application Token Present");if(this.applicationToken.length<5)throw n({level:"ERROR",message:"Invalid Application Token"}),new a("Invalid Application Token");if("boolean"!=typeof this.options.strictResponseCheck)throw n({level:"ERROR",message:"Invalid Application Token"}),n({level:"ERROR",message:"Invalid Value for options.strictResponseCheck, provide boolean value"}),new a("Invalid Value for options.strictResponseCheck, provide boolean value")}}},5020:(e,t,r)=>{const a=r(8336),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(9916),s=r(4776),i=(r(3768),r(3556)),l=r(2108),{Logger:c}=r(1544),u=r(9955);e.exports=class{constructor(e){this._conf=e,this._relativeUrls={addAddress:"/service/application/cart/v1.0/address",addItems:"/service/application/cart/v1.0/detail",applyCoupon:"/service/application/cart/v1.0/coupon",applyRewardPoints:"/service/application/cart/v1.0/redeem/points/",checkoutCart:"/service/application/cart/v1.0/checkout",checkoutCartV2:"/service/application/cart/v2.0/checkout",deleteCart:"/service/application/cart/v1.0/cart_archive",getAddressById:"/service/application/cart/v1.0/address/{id}",getAddresses:"/service/application/cart/v1.0/address",getBulkDiscountOffers:"/service/application/cart/v1.0/bulk-price",getCart:"/service/application/cart/v1.0/detail",getCartLastModified:"/service/application/cart/v1.0/detail",getCartShareLink:"/service/application/cart/v1.0/share-cart",getCartSharedItems:"/service/application/cart/v1.0/share-cart/{token}",getCoupons:"/service/application/cart/v1.0/coupon",getItemCount:"/service/application/cart/v1.0/basic",getLadderOffers:"/service/application/cart/v1.0/available-ladder-prices",getPromotionOffers:"/service/application/cart/v1.0/available-promotions",getShipments:"/service/application/cart/v1.0/shipment",removeAddress:"/service/application/cart/v1.0/address/{id}",removeCoupon:"/service/application/cart/v1.0/coupon",selectAddress:"/service/application/cart/v1.0/select-address",selectPaymentMode:"/service/application/cart/v1.0/payment",updateAddress:"/service/application/cart/v1.0/address/{id}",updateCart:"/service/application/cart/v1.0/detail",updateCartMeta:"/service/application/cart/v1.0/meta",updateCartWithSharedItems:"/service/application/cart/v1.0/share-cart/{token}/{action}",validateCouponForPayment:"/service/application/cart/v1.0/payment/validate/"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async addAddress({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.addAddress().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.addAddress().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > addAddress \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.addAddress,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.SaveAddressResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Cart > addAddress \n ${m}`})}return p}async addItems({body:e,i:t,b:r,areaCode:u,buyNow:d,id:p,requestHeaders:g}={requestHeaders:{}},{responseHeaders:m}={responseHeaders:!1}){const{error:w}=i.addItems().validate({body:e,i:t,b:r,areaCode:u,buyNow:d,id:p},{abortEarly:!1,allowUnknown:!0});if(w)return Promise.reject(new n(w));const{error:f}=i.addItems().validate({body:e,i:t,b:r,areaCode:u,buyNow:d,id:p},{abortEarly:!1,allowUnknown:!1});f&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > addItems \n ${f}`});const y={};y.i=t,y.b=r,y.area_code=u,y.buy_now=d,y.id=p;const b=await a.execute(this._conf,"post",s({url:this._urls.addItems,params:{}}),y,e,{...g},{responseHeaders:m});let h=b;m&&(h=b[0]);const{error:_}=l.AddCartDetailResponse().validate(h,{abortEarly:!1,allowUnknown:!0});if(_){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(_));c({level:"WARN",message:`Response Validation Warnings for application > Cart > addItems \n ${_}`})}return b}async applyCoupon({body:e,i:t,b:r,p:u,id:d,buyNow:p,requestHeaders:g}={requestHeaders:{}},{responseHeaders:m}={responseHeaders:!1}){const{error:w}=i.applyCoupon().validate({body:e,i:t,b:r,p:u,id:d,buyNow:p},{abortEarly:!1,allowUnknown:!0});if(w)return Promise.reject(new n(w));const{error:f}=i.applyCoupon().validate({body:e,i:t,b:r,p:u,id:d,buyNow:p},{abortEarly:!1,allowUnknown:!1});f&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > applyCoupon \n ${f}`});const y={};y.i=t,y.b=r,y.p=u,y.id=d,y.buy_now=p;const b=await a.execute(this._conf,"post",s({url:this._urls.applyCoupon,params:{}}),y,e,{...g},{responseHeaders:m});let h=b;m&&(h=b[0]);const{error:_}=l.CartDetailResponse().validate(h,{abortEarly:!1,allowUnknown:!0});if(_){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(_));c({level:"WARN",message:`Response Validation Warnings for application > Cart > applyCoupon \n ${_}`})}return b}async applyRewardPoints({body:e,id:t,i:r,b:u,buyNow:d,requestHeaders:p}={requestHeaders:{}},{responseHeaders:g}={responseHeaders:!1}){const{error:m}=i.applyRewardPoints().validate({body:e,id:t,i:r,b:u,buyNow:d},{abortEarly:!1,allowUnknown:!0});if(m)return Promise.reject(new n(m));const{error:w}=i.applyRewardPoints().validate({body:e,id:t,i:r,b:u,buyNow:d},{abortEarly:!1,allowUnknown:!1});w&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > applyRewardPoints \n ${w}`});const f={};f.id=t,f.i=r,f.b=u,f.buy_now=d;const y=await a.execute(this._conf,"post",s({url:this._urls.applyRewardPoints,params:{}}),f,e,{...p},{responseHeaders:g});let b=y;g&&(b=y[0]);const{error:h}=l.CartDetailResponse().validate(b,{abortEarly:!1,allowUnknown:!0});if(h){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(h));c({level:"WARN",message:`Response Validation Warnings for application > Cart > applyRewardPoints \n ${h}`})}return y}async checkoutCart({body:e,buyNow:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.checkoutCart().validate({body:e,buyNow:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.checkoutCart().validate({body:e,buyNow:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > checkoutCart \n ${p}`});const g={};g.buy_now=t;const m=await a.execute(this._conf,"post",s({url:this._urls.checkoutCart,params:{}}),g,e,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.CartCheckoutResponse().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > Cart > checkoutCart \n ${f}`})}return m}async checkoutCartV2({body:e,buyNow:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.checkoutCartV2().validate({body:e,buyNow:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.checkoutCartV2().validate({body:e,buyNow:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > checkoutCartV2 \n ${p}`});const g={};g.buy_now=t;const m=await a.execute(this._conf,"post",s({url:this._urls.checkoutCartV2,params:{}}),g,e,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.CartCheckoutResponse().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > Cart > checkoutCartV2 \n ${f}`})}return m}async deleteCart({id:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.deleteCart().validate({id:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.deleteCart().validate({id:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > deleteCart \n ${d}`});const p={};p.id=e;const g=await a.execute(this._conf,"put",s({url:this._urls.deleteCart,params:{}}),p,void 0,{...t},{responseHeaders:r});let m=g;r&&(m=g[0]);const{error:w}=l.DeleteCartDetailResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > Cart > deleteCart \n ${w}`})}return g}async getAddressById({id:e,cartId:t,buyNow:r,mobileNo:u,checkoutMode:d,tags:p,isDefault:g,requestHeaders:m}={requestHeaders:{}},{responseHeaders:w}={responseHeaders:!1}){const{error:f}=i.getAddressById().validate({id:e,cartId:t,buyNow:r,mobileNo:u,checkoutMode:d,tags:p,isDefault:g},{abortEarly:!1,allowUnknown:!0});if(f)return Promise.reject(new n(f));const{error:y}=i.getAddressById().validate({id:e,cartId:t,buyNow:r,mobileNo:u,checkoutMode:d,tags:p,isDefault:g},{abortEarly:!1,allowUnknown:!1});y&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getAddressById \n ${y}`});const b={};b.cart_id=t,b.buy_now=r,b.mobile_no=u,b.checkout_mode=d,b.tags=p,b.is_default=g;const h=await a.execute(this._conf,"get",s({url:this._urls.getAddressById,params:{id:e}}),b,void 0,{...m},{responseHeaders:w});let _=h;w&&(_=h[0]);const{error:v}=l.Address().validate(_,{abortEarly:!1,allowUnknown:!0});if(v){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(v));c({level:"WARN",message:`Response Validation Warnings for application > Cart > getAddressById \n ${v}`})}return h}async getAddresses({cartId:e,buyNow:t,mobileNo:r,checkoutMode:u,tags:d,isDefault:p,requestHeaders:g}={requestHeaders:{}},{responseHeaders:m}={responseHeaders:!1}){const{error:w}=i.getAddresses().validate({cartId:e,buyNow:t,mobileNo:r,checkoutMode:u,tags:d,isDefault:p},{abortEarly:!1,allowUnknown:!0});if(w)return Promise.reject(new n(w));const{error:f}=i.getAddresses().validate({cartId:e,buyNow:t,mobileNo:r,checkoutMode:u,tags:d,isDefault:p},{abortEarly:!1,allowUnknown:!1});f&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getAddresses \n ${f}`});const y={};y.cart_id=e,y.buy_now=t,y.mobile_no=r,y.checkout_mode=u,y.tags=d,y.is_default=p;const b=await a.execute(this._conf,"get",s({url:this._urls.getAddresses,params:{}}),y,void 0,{...g},{responseHeaders:m});let h=b;m&&(h=b[0]);const{error:_}=l.GetAddressesResponse().validate(h,{abortEarly:!1,allowUnknown:!0});if(_){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(_));c({level:"WARN",message:`Response Validation Warnings for application > Cart > getAddresses \n ${_}`})}return b}async getBulkDiscountOffers({itemId:e,articleId:t,uid:r,slug:u,requestHeaders:d}={requestHeaders:{}},{responseHeaders:p}={responseHeaders:!1}){const{error:g}=i.getBulkDiscountOffers().validate({itemId:e,articleId:t,uid:r,slug:u},{abortEarly:!1,allowUnknown:!0});if(g)return Promise.reject(new n(g));const{error:m}=i.getBulkDiscountOffers().validate({itemId:e,articleId:t,uid:r,slug:u},{abortEarly:!1,allowUnknown:!1});m&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getBulkDiscountOffers \n ${m}`});const w={};w.item_id=e,w.article_id=t,w.uid=r,w.slug=u;const f=await a.execute(this._conf,"get",s({url:this._urls.getBulkDiscountOffers,params:{}}),w,void 0,{...d},{responseHeaders:p});let y=f;p&&(y=f[0]);const{error:b}=l.BulkPriceResponse().validate(y,{abortEarly:!1,allowUnknown:!0});if(b){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(b));c({level:"WARN",message:`Response Validation Warnings for application > Cart > getBulkDiscountOffers \n ${b}`})}return f}async getCart({id:e,i:t,b:r,c:u,assignCardId:d,areaCode:p,buyNow:g,requestHeaders:m}={requestHeaders:{}},{responseHeaders:w}={responseHeaders:!1}){const{error:f}=i.getCart().validate({id:e,i:t,b:r,c:u,assignCardId:d,areaCode:p,buyNow:g},{abortEarly:!1,allowUnknown:!0});if(f)return Promise.reject(new n(f));const{error:y}=i.getCart().validate({id:e,i:t,b:r,c:u,assignCardId:d,areaCode:p,buyNow:g},{abortEarly:!1,allowUnknown:!1});y&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getCart \n ${y}`});const b={};b.id=e,b.i=t,b.b=r,b.c=u,b.assign_card_id=d,b.area_code=p,b.buy_now=g;const h=await a.execute(this._conf,"get",s({url:this._urls.getCart,params:{}}),b,void 0,{...m},{responseHeaders:w});let _=h;w&&(_=h[0]);const{error:v}=l.CartDetailResponse().validate(_,{abortEarly:!1,allowUnknown:!0});if(v){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(v));c({level:"WARN",message:`Response Validation Warnings for application > Cart > getCart \n ${v}`})}return h}async getCartLastModified({id:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:l}=i.getCartLastModified().validate({id:e},{abortEarly:!1,allowUnknown:!0});if(l)return Promise.reject(new n(l));const{error:d}=i.getCartLastModified().validate({id:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getCartLastModified \n ${d}`});const p={};p.id=e;const g=await a.execute(this._conf,"head",s({url:this._urls.getCartLastModified,params:{}}),p,void 0,{...t},{responseHeaders:r});let m=g;r&&(m=g[0]);const{error:w}=u.string().allow("").validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > Cart > getCartLastModified \n ${w}`})}return g}async getCartShareLink({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getCartShareLink().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getCartShareLink().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getCartShareLink \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.getCartShareLink,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.GetShareCartLinkResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Cart > getCartShareLink \n ${m}`})}return p}async getCartSharedItems({token:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getCartSharedItems().validate({token:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getCartSharedItems().validate({token:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getCartSharedItems \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getCartSharedItems,params:{token:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.SharedCartResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Cart > getCartSharedItems \n ${m}`})}return p}async getCoupons({id:e,buyNow:t,slug:r,storeId:u,requestHeaders:d}={requestHeaders:{}},{responseHeaders:p}={responseHeaders:!1}){const{error:g}=i.getCoupons().validate({id:e,buyNow:t,slug:r,storeId:u},{abortEarly:!1,allowUnknown:!0});if(g)return Promise.reject(new n(g));const{error:m}=i.getCoupons().validate({id:e,buyNow:t,slug:r,storeId:u},{abortEarly:!1,allowUnknown:!1});m&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getCoupons \n ${m}`});const w={};w.id=e,w.buy_now=t,w.slug=r,w.store_id=u;const f=await a.execute(this._conf,"get",s({url:this._urls.getCoupons,params:{}}),w,void 0,{...d},{responseHeaders:p});let y=f;p&&(y=f[0]);const{error:b}=l.GetCouponResponse().validate(y,{abortEarly:!1,allowUnknown:!0});if(b){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(b));c({level:"WARN",message:`Response Validation Warnings for application > Cart > getCoupons \n ${b}`})}return f}async getItemCount({id:e,buyNow:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.getItemCount().validate({id:e,buyNow:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.getItemCount().validate({id:e,buyNow:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getItemCount \n ${p}`});const g={};g.id=e,g.buy_now=t;const m=await a.execute(this._conf,"get",s({url:this._urls.getItemCount,params:{}}),g,void 0,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.CartItemCountResponse().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > Cart > getItemCount \n ${f}`})}return m}async getLadderOffers({slug:e,storeId:t,promotionId:r,pageSize:u,requestHeaders:d}={requestHeaders:{}},{responseHeaders:p}={responseHeaders:!1}){const{error:g}=i.getLadderOffers().validate({slug:e,storeId:t,promotionId:r,pageSize:u},{abortEarly:!1,allowUnknown:!0});if(g)return Promise.reject(new n(g));const{error:m}=i.getLadderOffers().validate({slug:e,storeId:t,promotionId:r,pageSize:u},{abortEarly:!1,allowUnknown:!1});m&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getLadderOffers \n ${m}`});const w={};w.slug=e,w.store_id=t,w.promotion_id=r,w.page_size=u;const f=await a.execute(this._conf,"get",s({url:this._urls.getLadderOffers,params:{}}),w,void 0,{...d},{responseHeaders:p});let y=f;p&&(y=f[0]);const{error:b}=l.LadderPriceOffers().validate(y,{abortEarly:!1,allowUnknown:!0});if(b){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(b));c({level:"WARN",message:`Response Validation Warnings for application > Cart > getLadderOffers \n ${b}`})}return f}async getPromotionOffers({slug:e,pageSize:t,promotionGroup:r,storeId:u,requestHeaders:d}={requestHeaders:{}},{responseHeaders:p}={responseHeaders:!1}){const{error:g}=i.getPromotionOffers().validate({slug:e,pageSize:t,promotionGroup:r,storeId:u},{abortEarly:!1,allowUnknown:!0});if(g)return Promise.reject(new n(g));const{error:m}=i.getPromotionOffers().validate({slug:e,pageSize:t,promotionGroup:r,storeId:u},{abortEarly:!1,allowUnknown:!1});m&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getPromotionOffers \n ${m}`});const w={};w.slug=e,w.page_size=t,w.promotion_group=r,w.store_id=u;const f=await a.execute(this._conf,"get",s({url:this._urls.getPromotionOffers,params:{}}),w,void 0,{...d},{responseHeaders:p});let y=f;p&&(y=f[0]);const{error:b}=l.PromotionOffersResponse().validate(y,{abortEarly:!1,allowUnknown:!0});if(b){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(b));c({level:"WARN",message:`Response Validation Warnings for application > Cart > getPromotionOffers \n ${b}`})}return f}async getShipments({p:e,id:t,buyNow:r,addressId:u,areaCode:d,orderType:p,requestHeaders:g}={requestHeaders:{}},{responseHeaders:m}={responseHeaders:!1}){const{error:w}=i.getShipments().validate({p:e,id:t,buyNow:r,addressId:u,areaCode:d,orderType:p},{abortEarly:!1,allowUnknown:!0});if(w)return Promise.reject(new n(w));const{error:f}=i.getShipments().validate({p:e,id:t,buyNow:r,addressId:u,areaCode:d,orderType:p},{abortEarly:!1,allowUnknown:!1});f&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getShipments \n ${f}`});const y={};y.p=e,y.id=t,y.buy_now=r,y.address_id=u,y.area_code=d,y.order_type=p;const b=await a.execute(this._conf,"get",s({url:this._urls.getShipments,params:{}}),y,void 0,{...g},{responseHeaders:m});let h=b;m&&(h=b[0]);const{error:_}=l.CartShipmentsResponse().validate(h,{abortEarly:!1,allowUnknown:!0});if(_){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(_));c({level:"WARN",message:`Response Validation Warnings for application > Cart > getShipments \n ${_}`})}return b}async removeAddress({id:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.removeAddress().validate({id:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.removeAddress().validate({id:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > removeAddress \n ${d}`});const p=await a.execute(this._conf,"delete",s({url:this._urls.removeAddress,params:{id:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.DeleteAddressResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Cart > removeAddress \n ${m}`})}return p}async removeCoupon({id:e,buyNow:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.removeCoupon().validate({id:e,buyNow:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.removeCoupon().validate({id:e,buyNow:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > removeCoupon \n ${p}`});const g={};g.id=e,g.buy_now=t;const m=await a.execute(this._conf,"delete",s({url:this._urls.removeCoupon,params:{}}),g,void 0,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.CartDetailResponse().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > Cart > removeCoupon \n ${f}`})}return m}async selectAddress({body:e,cartId:t,buyNow:r,i:u,b:d,requestHeaders:p}={requestHeaders:{}},{responseHeaders:g}={responseHeaders:!1}){const{error:m}=i.selectAddress().validate({body:e,cartId:t,buyNow:r,i:u,b:d},{abortEarly:!1,allowUnknown:!0});if(m)return Promise.reject(new n(m));const{error:w}=i.selectAddress().validate({body:e,cartId:t,buyNow:r,i:u,b:d},{abortEarly:!1,allowUnknown:!1});w&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > selectAddress \n ${w}`});const f={};f.cart_id=t,f.buy_now=r,f.i=u,f.b=d;const y=await a.execute(this._conf,"post",s({url:this._urls.selectAddress,params:{}}),f,e,{...p},{responseHeaders:g});let b=y;g&&(b=y[0]);const{error:h}=l.CartDetailResponse().validate(b,{abortEarly:!1,allowUnknown:!0});if(h){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(h));c({level:"WARN",message:`Response Validation Warnings for application > Cart > selectAddress \n ${h}`})}return y}async selectPaymentMode({body:e,id:t,buyNow:r,requestHeaders:u}={requestHeaders:{}},{responseHeaders:d}={responseHeaders:!1}){const{error:p}=i.selectPaymentMode().validate({body:e,id:t,buyNow:r},{abortEarly:!1,allowUnknown:!0});if(p)return Promise.reject(new n(p));const{error:g}=i.selectPaymentMode().validate({body:e,id:t,buyNow:r},{abortEarly:!1,allowUnknown:!1});g&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > selectPaymentMode \n ${g}`});const m={};m.id=t,m.buy_now=r;const w=await a.execute(this._conf,"put",s({url:this._urls.selectPaymentMode,params:{}}),m,e,{...u},{responseHeaders:d});let f=w;d&&(f=w[0]);const{error:y}=l.CartDetailResponse().validate(f,{abortEarly:!1,allowUnknown:!0});if(y){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(y));c({level:"WARN",message:`Response Validation Warnings for application > Cart > selectPaymentMode \n ${y}`})}return w}async updateAddress({id:e,body:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.updateAddress().validate({id:e,body:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.updateAddress().validate({id:e,body:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > updateAddress \n ${p}`});const g=await a.execute(this._conf,"put",s({url:this._urls.updateAddress,params:{id:e}}),{},t,{...r},{responseHeaders:u});let m=g;u&&(m=g[0]);const{error:w}=l.UpdateAddressResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > Cart > updateAddress \n ${w}`})}return g}async updateCart({body:e,id:t,i:r,b:u,areaCode:d,buyNow:p,requestHeaders:g}={requestHeaders:{}},{responseHeaders:m}={responseHeaders:!1}){const{error:w}=i.updateCart().validate({body:e,id:t,i:r,b:u,areaCode:d,buyNow:p},{abortEarly:!1,allowUnknown:!0});if(w)return Promise.reject(new n(w));const{error:f}=i.updateCart().validate({body:e,id:t,i:r,b:u,areaCode:d,buyNow:p},{abortEarly:!1,allowUnknown:!1});f&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > updateCart \n ${f}`});const y={};y.id=t,y.i=r,y.b=u,y.area_code=d,y.buy_now=p;const b=await a.execute(this._conf,"put",s({url:this._urls.updateCart,params:{}}),y,e,{...g},{responseHeaders:m});let h=b;m&&(h=b[0]);const{error:_}=l.UpdateCartDetailResponse().validate(h,{abortEarly:!1,allowUnknown:!0});if(_){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(_));c({level:"WARN",message:`Response Validation Warnings for application > Cart > updateCart \n ${_}`})}return b}async updateCartMeta({body:e,id:t,buyNow:r,requestHeaders:u}={requestHeaders:{}},{responseHeaders:d}={responseHeaders:!1}){const{error:p}=i.updateCartMeta().validate({body:e,id:t,buyNow:r},{abortEarly:!1,allowUnknown:!0});if(p)return Promise.reject(new n(p));const{error:g}=i.updateCartMeta().validate({body:e,id:t,buyNow:r},{abortEarly:!1,allowUnknown:!1});g&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > updateCartMeta \n ${g}`});const m={};m.id=t,m.buy_now=r;const w=await a.execute(this._conf,"put",s({url:this._urls.updateCartMeta,params:{}}),m,e,{...u},{responseHeaders:d});let f=w;d&&(f=w[0]);const{error:y}=l.CartMetaResponse().validate(f,{abortEarly:!1,allowUnknown:!0});if(y){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(y));c({level:"WARN",message:`Response Validation Warnings for application > Cart > updateCartMeta \n ${y}`})}return w}async updateCartWithSharedItems({token:e,action:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.updateCartWithSharedItems().validate({token:e,action:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.updateCartWithSharedItems().validate({token:e,action:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > updateCartWithSharedItems \n ${p}`});const g=await a.execute(this._conf,"post",s({url:this._urls.updateCartWithSharedItems,params:{token:e,action:t}}),{},void 0,{...r},{responseHeaders:u});let m=g;u&&(m=g[0]);const{error:w}=l.SharedCartResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > Cart > updateCartWithSharedItems \n ${w}`})}return g}async validateCouponForPayment({id:e,buyNow:t,addressId:r,paymentMode:u,paymentIdentifier:d,aggregatorName:p,merchantCode:g,iin:m,network:w,type:f,cardId:y,requestHeaders:b}={requestHeaders:{}},{responseHeaders:h}={responseHeaders:!1}){const{error:_}=i.validateCouponForPayment().validate({id:e,buyNow:t,addressId:r,paymentMode:u,paymentIdentifier:d,aggregatorName:p,merchantCode:g,iin:m,network:w,type:f,cardId:y},{abortEarly:!1,allowUnknown:!0});if(_)return Promise.reject(new n(_));const{error:v}=i.validateCouponForPayment().validate({id:e,buyNow:t,addressId:r,paymentMode:u,paymentIdentifier:d,aggregatorName:p,merchantCode:g,iin:m,network:w,type:f,cardId:y},{abortEarly:!1,allowUnknown:!1});v&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > validateCouponForPayment \n ${v}`});const k={};k.id=e,k.buy_now=t,k.address_id=r,k.payment_mode=u,k.payment_identifier=d,k.aggregator_name=p,k.merchant_code=g,k.iin=m,k.network=w,k.type=f,k.card_id=y;const R=await a.execute(this._conf,"get",s({url:this._urls.validateCouponForPayment,params:{}}),k,void 0,{...b},{responseHeaders:h});let P=R;h&&(P=R[0]);const{error:j}=l.PaymentCouponValidate().validate(P,{abortEarly:!1,allowUnknown:!0});if(j){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(j));c({level:"WARN",message:`Response Validation Warnings for application > Cart > validateCouponForPayment \n ${j}`})}return R}}},2108:(e,t,r)=>{const a=r(9955);class n{static BuyRules(){return a.object({item_criteria:a.any(),cart_conditions:a.any()})}static DiscountRulesApp(){return a.object({matched_buy_rules:a.array().items(a.string().allow("")),raw_offer:a.any(),offer:a.any(),item_criteria:a.any()})}static Ownership(){return a.object({payable_category:a.string().allow(""),payable_by:a.string().allow("")})}static FreeGiftItem(){return a.object({item_slug:a.string().allow(""),item_name:a.string().allow(""),item_price_details:a.any(),item_brand_name:a.string().allow(""),item_id:a.number(),item_images_url:a.array().items(a.string().allow(""))})}static AppliedFreeArticles(){return a.object({free_gift_item_details:n.FreeGiftItem(),parent_item_identifier:a.string().allow(""),quantity:a.number(),article_id:a.string().allow("")})}static AppliedPromotion(){return a.object({promo_id:a.string().allow(""),buy_rules:a.array().items(n.BuyRules()),offer_text:a.string().allow(""),promotion_group:a.string().allow(""),mrp_promotion:a.boolean(),promotion_name:a.string().allow(""),amount:a.number(),discount_rules:a.array().items(n.DiscountRulesApp()),ownership:n.Ownership(),article_quantity:a.number(),applied_free_articles:a.array().items(n.AppliedFreeArticles()),promotion_type:a.string().allow(""),meta:a.any(),code:a.string().allow("").allow(null)})}static PaymentSelectionLock(){return a.object({enabled:a.boolean(),default_options:a.string().allow(""),payment_identifier:a.string().allow("")})}static PromiseFormatted(){return a.object({max:a.string().allow(""),min:a.string().allow("")})}static PromiseISOFormat(){return a.object({max:a.string().allow(""),min:a.string().allow("")})}static PromiseTimestamp(){return a.object({max:a.number(),min:a.number()})}static ShipmentPromise(){return a.object({formatted:n.PromiseFormatted(),timestamp:n.PromiseTimestamp(),iso:n.PromiseISOFormat()})}static BasePrice(){return a.object({effective:a.number(),currency_symbol:a.string().allow(""),marked:a.number(),currency_code:a.string().allow("")})}static ArticlePriceInfo(){return a.object({base:n.BasePrice(),converted:n.BasePrice()})}static BaseInfo(){return a.object({uid:a.number(),name:a.string().allow("")})}static StoreInfo(){return a.object({store_code:a.string().allow(""),uid:a.number(),name:a.string().allow("")})}static ProductArticle(){return a.object({price:n.ArticlePriceInfo(),product_group_tags:a.array().items(a.string().allow("")),extra_meta:a.any(),quantity:a.number(),_custom_json:a.any(),meta:a.any(),size:a.string().allow(""),mto_quantity:a.number(),seller:n.BaseInfo(),seller_identifier:a.string().allow(""),parent_item_identifiers:a.any(),identifier:a.any(),store:n.StoreInfo(),cart_item_meta:a.any(),uid:a.string().allow(""),gift_card:a.any(),is_gift_visible:a.boolean(),type:a.string().allow(""),tags:a.array().items(a.string().allow(""))})}static CartProductIdentifer(){return a.object({identifier:a.string().allow("")})}static PromoMeta(){return a.object({message:a.string().allow("")})}static ChargesAmount(){return a.object({value:a.number(),currency:a.string().allow("")})}static Charges(){return a.object({meta:a.any(),amount:n.ChargesAmount(),name:a.string().allow(""),allow_refund:a.boolean(),code:a.string().allow(""),type:a.string().allow("")})}static ProductPrice(){return a.object({currency_symbol:a.string().allow(""),selling:a.number(),currency_code:a.string().allow(""),add_on:a.number(),effective:a.number(),marked:a.number()})}static ProductPriceInfo(){return a.object({base:n.ProductPrice(),converted:n.ProductPrice()})}static ProductPricePerUnit(){return a.object({currency_symbol:a.string().allow(""),selling_price:a.number(),currency_code:a.string().allow(""),add_on:a.number(),effective:a.number(),marked:a.number()})}static ProductPricePerUnitInfo(){return a.object({base:n.ProductPricePerUnit(),converted:n.ProductPricePerUnit()})}static ProductAvailabilitySize(){return a.object({display:a.string().allow(""),value:a.string().allow(""),is_available:a.boolean()})}static ProductAvailability(){return a.object({out_of_stock:a.boolean(),deliverable:a.boolean(),available_sizes:a.array().items(n.ProductAvailabilitySize()),is_valid:a.boolean(),other_store_quantity:a.number(),sizes:a.array().items(a.string().allow(""))})}static ActionQuery(){return a.object({product_slug:a.array().items(a.string().allow(""))})}static ProductAction(){return a.object({query:n.ActionQuery(),url:a.string().allow(""),type:a.string().allow("")})}static Tags(){return a.object({tags:a.any()})}static ProductImage(){return a.object({secure_url:a.string().allow(""),aspect_ratio:a.string().allow(""),url:a.string().allow("")})}static CategoryInfo(){return a.object({uid:a.number(),name:a.string().allow("")})}static CartProduct(){return a.object({_custom_json:a.any(),brand:n.BaseInfo(),action:n.ProductAction(),teaser_tag:n.Tags(),slug:a.string().allow(""),images:a.array().items(n.ProductImage()),uid:a.number(),name:a.string().allow(""),item_code:a.string().allow("").allow(null),categories:a.array().items(n.CategoryInfo()),tags:a.array().items(a.string().allow("")),type:a.string().allow(""),attributes:a.any()})}static CouponDetails(){return a.object({discount_single_quantity:a.number(),code:a.string().allow(""),discount_total_quantity:a.number()})}static CartProductInfo(){return a.object({article:n.ProductArticle(),moq:a.any(),identifiers:n.CartProductIdentifer().required(),promo_meta:n.PromoMeta(),price:n.ProductPriceInfo(),quantity:a.number(),charges:a.array().items(n.Charges()),discount:a.string().allow(""),availability:n.ProductAvailability(),delivery_promise:n.ShipmentPromise(),product:n.CartProduct(),product_ean_id:a.string().allow(""),bulk_offer:a.any(),parent_item_identifiers:a.any(),coupon:n.CouponDetails(),custom_order:a.any(),coupon_message:a.string().allow(""),key:a.string().allow(""),message:a.string().allow(""),is_set:a.boolean(),price_per_unit:n.ProductPricePerUnitInfo(),promotions_applied:a.array().items(n.AppliedPromotion())})}static DisplayBreakup(){return a.object({currency_symbol:a.string().allow(""),key:a.string().allow(""),display:a.string().allow(""),message:a.array().items(a.string().allow("")),currency_code:a.string().allow(""),value:a.number(),preset:a.number()})}static RawBreakup(){return a.object({vog:a.number(),subtotal:a.number(),fynd_cash:a.number(),discount:a.number(),convenience_fee:a.number(),delivery_charge:a.number(),gst_charges:a.number(),mrp_total:a.number(),mop_total:a.number(),total_charge:a.number(),coupon:a.number(),total:a.number(),gift_card:a.number(),you_saved:a.number(),cod_charge:a.number()})}static CouponBreakup(){return a.object({coupon_value:a.number(),title:a.string().allow("").allow(null),sub_title:a.string().allow("").allow(null),minimum_cart_value:a.number(),message:a.string().allow(""),coupon_type:a.string().allow("").allow(null),uid:a.string().allow(""),value:a.number(),max_discount_value:a.number(),is_applied:a.boolean(),description:a.string().allow("").allow(null),code:a.string().allow(""),type:a.string().allow("")})}static LoyaltyPoints(){return a.object({total:a.number(),description:a.string().allow(""),applicable:a.number(),is_applied:a.boolean()})}static CartBreakup(){return a.object({display:a.array().items(n.DisplayBreakup()),raw:n.RawBreakup(),coupon:n.CouponBreakup(),loyalty_points:n.LoyaltyPoints()})}static CartCurrency(){return a.object({code:a.string().allow(""),symbol:a.string().allow("")})}static CartDetailCoupon(){return a.object({cashback_amount:a.number(),cashback_message_primary:a.string().allow(""),cashback_message_secondary:a.string().allow(""),coupon_code:a.string().allow(""),coupon_description:a.string().allow(""),coupon_id:a.string().allow(""),coupon_subtitle:a.string().allow(""),coupon_title:a.string().allow(""),coupon_type:a.string().allow(""),coupon_value:a.number(),discount:a.number(),is_applied:a.boolean(),is_valid:a.boolean(),maximum_discount_value:a.number(),message:a.string().allow(""),minimum_cart_value:a.number()})}static ChargesThreshold(){return a.object({charges:a.number(),threshold:a.number()})}static DeliveryChargesConfig(){return a.object({enabled:a.boolean(),charges:a.array().items(n.ChargesThreshold())})}static CartCommonConfig(){return a.object({delivery_charges_config:n.DeliveryChargesConfig()})}static CartDetailResponse(){return a.object({cart_id:a.number(),uid:a.string().allow(""),applied_promo_details:a.array().items(n.AppliedPromotion()),checkout_mode:a.string().allow(""),pan_no:a.string().allow(""),is_valid:a.boolean(),id:a.string().allow(""),payment_selection_lock:n.PaymentSelectionLock(),delivery_promise:n.ShipmentPromise(),comment:a.string().allow(""),items:a.array().items(n.CartProductInfo()),delivery_charge_info:a.string().allow(""),common_config:n.CartCommonConfig(),coupon:n.CartDetailCoupon(),message:a.string().allow(""),notification:a.any(),staff_user_id:a.string().allow(""),success:a.boolean(),gstin:a.string().allow(""),restrict_checkout:a.boolean(),last_modified:a.string().allow(""),breakup_values:n.CartBreakup(),currency:n.CartCurrency(),coupon_text:a.string().allow(""),buy_now:a.boolean(),pan_config:a.any()})}static AddProductCart(){return a.object({article_assignment:a.any(),product_group_tags:a.array().items(a.string().allow("").allow(null)),extra_meta:a.any(),quantity:a.number(),_custom_json:a.any(),item_size:a.string().allow(""),store_id:a.number(),display:a.string().allow(""),article_id:a.string().allow(""),parent_item_identifiers:a.array().items(a.object().pattern(/\S/,a.string().allow(""))),seller_id:a.number(),pos:a.boolean(),item_id:a.number(),meta:a.any(),seller_identifier:a.string().allow("")})}static AddCartRequest(){return a.object({items:a.array().items(n.AddProductCart()),new_cart:a.boolean()})}static AddCartDetailResponse(){return a.object({message:a.string().allow(""),partial:a.boolean(),cart:n.CartDetailResponse(),success:a.boolean()})}static UpdateProductCart(){return a.object({extra_meta:a.any(),_custom_json:a.any(),quantity:a.number(),item_size:a.string().allow(""),item_index:a.number(),identifiers:n.CartProductIdentifer().required(),article_id:a.string().allow(""),parent_item_identifiers:a.any(),item_id:a.number(),meta:a.any()})}static UpdateCartRequest(){return a.object({items:a.array().items(n.UpdateProductCart()),operation:a.string().allow("").required()})}static UpdateCartDetailResponse(){return a.object({message:a.string().allow(""),cart:n.CartDetailResponse(),success:a.boolean()})}static DeleteCartDetailResponse(){return a.object({message:a.string().allow(""),success:a.boolean()})}static CartItemCountResponse(){return a.object({user_cart_items_count:a.number()})}static PageCoupon(){return a.object({total_item_count:a.number(),has_next:a.boolean(),total:a.number(),current:a.number(),has_previous:a.boolean()})}static Coupon(){return a.object({coupon_amount:a.number(),coupon_value:a.number(),title:a.string().allow(""),minimum_cart_value:a.number(),sub_title:a.string().allow(""),expires_on:a.string().allow(""),message:a.string().allow(""),coupon_type:a.string().allow("").allow(null),max_discount_value:a.number(),coupon_code:a.string().allow(""),is_applicable:a.boolean(),description:a.string().allow("").allow(null),is_applied:a.boolean(),start_date:a.string().allow("").allow(null),end_date:a.string().allow("").allow(null),coupon_applicable_message:a.string().allow("")})}static GetCouponResponse(){return a.object({page:n.PageCoupon(),available_coupon_list:a.array().items(n.Coupon())})}static ApplyCouponRequest(){return a.object({coupon_code:a.string().allow("").required()})}static OfferPrice(){return a.object({currency_symbol:a.string().allow(""),bulk_effective:a.number(),currency_code:a.string().allow(""),effective:a.number(),marked:a.number()})}static OfferItem(){return a.object({price:n.OfferPrice(),margin:a.number(),quantity:a.number(),best:a.boolean(),total:a.number(),auto_applied:a.boolean(),type:a.string().allow("")})}static OfferSeller(){return a.object({uid:a.number(),name:a.string().allow("")})}static BulkPriceOffer(){return a.object({offers:a.array().items(n.OfferItem()),seller:n.OfferSeller()})}static BulkPriceResponse(){return a.object({data:a.array().items(n.BulkPriceOffer())})}static RewardPointRequest(){return a.object({points:a.boolean().required()})}static GeoLocation(){return a.object({latitude:a.number(),longitude:a.number()})}static Address(){return a.object({country_iso_code:a.string().allow(""),area:a.string().allow(""),phone:a.string().allow(""),country_phone_code:a.string().allow(""),checkout_mode:a.string().allow(""),address:a.string().allow(""),area_code_slug:a.string().allow(""),geo_location:n.GeoLocation(),id:a.string().allow(""),_custom_json:a.any(),city:a.string().allow(""),sector:a.string().allow(""),state_code:a.string().allow(""),created_by_user_id:a.string().allow(""),landmark:a.string().allow(""),user_id:a.string().allow(""),name:a.string().allow(""),google_map_point:a.any(),is_active:a.boolean(),tags:a.array().items(a.string().allow("")),country_code:a.string().allow(""),address_type:a.string().allow(""),country:a.string().allow(""),is_default_address:a.boolean(),area_code:a.string().allow(""),email:a.string().allow(""),state:a.string().allow(""),meta:a.any()})}static GetAddressesResponse(){return a.object({pii_masking:a.boolean(),address:a.array().items(n.Address())})}static SaveAddressResponse(){return a.object({id:a.string().allow(""),success:a.boolean(),is_default_address:a.boolean()})}static UpdateAddressResponse(){return a.object({is_updated:a.boolean(),id:a.string().allow(""),success:a.boolean(),is_default_address:a.boolean()})}static DeleteAddressResponse(){return a.object({id:a.string().allow(""),is_deleted:a.boolean()})}static SelectCartAddressRequest(){return a.object({id:a.string().allow(""),billing_address_id:a.string().allow(""),cart_id:a.string().allow("")})}static UpdateCartPaymentRequest(){return a.object({id:a.string().allow(""),payment_identifier:a.string().allow("").allow(null),address_id:a.string().allow(""),merchant_code:a.string().allow(""),aggregator_name:a.string().allow(""),payment_mode:a.string().allow("")})}static CouponValidity(){return a.object({title:a.string().allow(""),discount:a.number(),next_validation_required:a.boolean().allow(null),valid:a.boolean(),display_message_en:a.string().allow("").allow(null),code:a.string().allow("").allow(null)})}static PaymentCouponValidate(){return a.object({message:a.string().allow(""),coupon_validity:n.CouponValidity(),success:a.boolean().required()})}static ShipmentResponse(){return a.object({shipments:a.number(),promise:n.ShipmentPromise(),order_type:a.string().allow(""),box_type:a.string().allow("").allow(null),shipment_type:a.string().allow(""),dp_options:a.any().allow(null),dp_id:a.string().allow("").allow(null),items:a.array().items(n.CartProductInfo()),fulfillment_type:a.string().allow(""),fulfillment_id:a.number()})}static CartShipmentsResponse(){return a.object({delivery_charge_info:a.string().allow(""),checkout_mode:a.string().allow(""),message:a.string().allow(""),gstin:a.string().allow(""),restrict_checkout:a.boolean(),last_modified:a.string().allow(""),cart_id:a.number(),is_valid:a.boolean(),breakup_values:n.CartBreakup(),currency:n.CartCurrency(),id:a.string().allow(""),shipments:a.array().items(n.ShipmentResponse()),payment_selection_lock:n.PaymentSelectionLock(),coupon_text:a.string().allow(""),delivery_promise:n.ShipmentPromise(),error:a.boolean(),comment:a.string().allow(""),buy_now:a.boolean(),uid:a.string().allow("")})}static CartCheckoutCustomMeta(){return a.object({key:a.string().allow("").required(),value:a.string().allow("").required()})}static CustomerDetails(){return a.object({email:a.string().allow(""),mobile:a.string().allow("").required(),name:a.string().allow("")})}static StaffCheckout(){return a.object({employee_code:a.string().allow(""),user:a.string().allow("").required(),last_name:a.string().allow("").required(),first_name:a.string().allow("").required(),_id:a.string().allow("").required()})}static CartCheckoutDetailRequest(){return a.object({custom_meta:a.array().items(n.CartCheckoutCustomMeta()),customer_details:a.any(),merchant_code:a.string().allow(""),id:a.string().allow(""),payment_auto_confirm:a.boolean(),payment_mode:a.string().allow("").required(),aggregator:a.string().allow(""),address_id:a.string().allow(""),callback_url:a.string().allow(""),delivery_address:a.any(),staff:n.StaffCheckout(),order_type:a.string().allow(""),ordering_store:a.number(),extra_meta:a.any(),payment_identifier:a.string().allow(""),billing_address:a.any(),payment_params:a.any(),billing_address_id:a.string().allow(""),meta:a.any(),payment_extra_identifiers:a.any(),iin:a.string().allow(""),network:a.string().allow(""),type:a.string().allow(""),card_id:a.string().allow("")})}static CheckCart(){return a.object({checkout_mode:a.string().allow(""),user_type:a.string().allow(""),cod_message:a.string().allow(""),cart_id:a.number(),is_valid:a.boolean(),delivery_charges:a.number(),id:a.string().allow(""),payment_selection_lock:n.PaymentSelectionLock(),error_message:a.string().allow(""),delivery_promise:n.ShipmentPromise(),comment:a.string().allow(""),items:a.array().items(n.CartProductInfo()),uid:a.string().allow(""),delivery_charge_order_value:a.number(),delivery_charge_info:a.string().allow(""),cod_available:a.boolean(),success:a.boolean(),store_code:a.string().allow(""),message:a.string().allow(""),gstin:a.string().allow(""),restrict_checkout:a.boolean(),last_modified:a.string().allow(""),order_id:a.string().allow(""),breakup_values:n.CartBreakup(),currency:n.CartCurrency(),store_emps:a.array().items(a.any()),coupon_text:a.string().allow(""),buy_now:a.boolean(),cod_charges:a.number()})}static CartCheckoutResponse(){return a.object({payment_confirm_url:a.string().allow(""),app_intercept_url:a.string().allow(""),success:a.boolean(),callback_url:a.string().allow(""),message:a.string().allow(""),data:a.any(),order_id:a.string().allow(""),cart:n.CheckCart()})}static GiftDetail(){return a.object({is_gift_applied:a.boolean(),gift_message:a.string().allow("")})}static ArticleGiftDetail(){return a.object({article_id:n.GiftDetail()})}static CartMetaRequest(){return a.object({delivery_slots:a.any(),gift_details:n.ArticleGiftDetail(),pick_up_customer_details:a.any(),checkout_mode:a.string().allow(""),comment:a.string().allow(""),gstin:a.string().allow("")})}static CartMetaResponse(){return a.object({message:a.string().allow(""),is_valid:a.boolean()})}static CartMetaMissingResponse(){return a.object({errors:a.array().items(a.string().allow(""))})}static GetShareCartLinkRequest(){return a.object({id:a.string().allow(""),meta:a.any()})}static GetShareCartLinkResponse(){return a.object({token:a.string().allow(""),share_url:a.string().allow("")})}static SharedCartDetails(){return a.object({token:a.string().allow(""),user:a.any(),created_on:a.string().allow(""),source:a.any(),meta:a.any()})}static SharedCart(){return a.object({checkout_mode:a.string().allow(""),cart_id:a.number(),is_valid:a.boolean(),id:a.string().allow(""),payment_selection_lock:n.PaymentSelectionLock(),delivery_promise:n.ShipmentPromise(),comment:a.string().allow(""),items:a.array().items(n.CartProductInfo()),uid:a.string().allow(""),delivery_charge_info:a.string().allow(""),message:a.string().allow(""),gstin:a.string().allow(""),shared_cart_details:n.SharedCartDetails(),restrict_checkout:a.boolean(),last_modified:a.string().allow(""),breakup_values:n.CartBreakup(),currency:n.CartCurrency(),coupon_text:a.string().allow(""),buy_now:a.boolean()})}static SharedCartResponse(){return a.object({error:a.string().allow(""),cart:n.SharedCart()})}static FreeGiftItems(){return a.object({item_slug:a.string().allow(""),item_name:a.string().allow(""),item_price_details:a.any(),item_brand_name:a.string().allow(""),item_id:a.number(),item_images_url:a.array().items(a.string().allow(""))})}static PromotionOffer(){return a.object({id:a.string().allow(""),buy_rules:a.any(),offer_text:a.string().allow(""),promotion_group:a.string().allow(""),valid_till:a.string().allow(""),discount_rules:a.array().items(a.any()),free_gift_items:a.array().items(n.FreeGiftItems()),description:a.string().allow("")})}static PromotionOffersResponse(){return a.object({available_promotions:a.array().items(n.PromotionOffer())})}static OperationErrorResponse(){return a.object({message:a.string().allow(""),success:a.boolean()})}static LadderPrice(){return a.object({currency_symbol:a.string().allow(""),offer_price:a.number(),currency_code:a.string().allow(""),effective:a.number(),marked:a.number()})}static LadderOfferItem(){return a.object({price:n.LadderPrice(),margin:a.number(),max_quantity:a.number(),min_quantity:a.number(),type:a.string().allow("")})}static LadderPriceOffer(){return a.object({id:a.string().allow(""),buy_rules:a.any(),calculate_on:a.string().allow(""),offer_text:a.string().allow(""),promotion_group:a.string().allow(""),valid_till:a.string().allow(""),discount_rules:a.array().items(a.any()),offer_prices:a.array().items(n.LadderOfferItem()),free_gift_items:a.array().items(n.FreeGiftItems()),description:a.string().allow("")})}static CurrencyInfo(){return a.object({code:a.string().allow(""),symbol:a.string().allow("")})}static LadderPriceOffers(){return a.object({available_offers:a.array().items(n.LadderPriceOffer()),currency:n.CurrencyInfo()})}static PaymentMeta(){return a.object({merchant_code:a.string().allow(""),type:a.string().allow(""),payment_gateway:a.string().allow(""),payment_identifier:a.string().allow("").allow(null)})}static PaymentMethod(){return a.object({payment_meta:n.PaymentMeta().required(),mode:a.string().allow("").required(),payment:a.string().allow(""),amount:a.number().allow(null),name:a.string().allow(""),payment_extra_identifiers:a.any()})}static CartCheckoutDetailV2Request(){return a.object({custom_meta:a.any(),customer_details:a.any().allow(null),merchant_code:a.string().allow(""),cart_id:a.string().allow(""),id:a.string().allow("").allow(null),payment_auto_confirm:a.boolean(),payment_methods:a.array().items(n.PaymentMethod()).required(),payment_mode:a.string().allow("").required(),aggregator:a.string().allow(""),address_id:a.string().allow(""),callback_url:a.string().allow("").allow(null),delivery_address:a.any(),staff:n.StaffCheckout(),order_type:a.string().allow(""),ordering_store:a.number().allow(null),extra_meta:a.any(),payment_identifier:a.string().allow("").allow(null),billing_address:a.any(),payment_params:a.any().allow(null),billing_address_id:a.string().allow(""),meta:a.any(),iin:a.string().allow(""),network:a.string().allow(""),type:a.string().allow(""),card_id:a.string().allow("")})}}e.exports=n},3556:(e,t,r)=>{const a=r(9955),n=r(2108);e.exports=class{static addAddress(){return a.object({body:n.Address().required()}).required()}static addItems(){return a.object({i:a.boolean(),b:a.boolean(),areaCode:a.string().allow(""),buyNow:a.boolean(),id:a.string().allow(""),body:n.AddCartRequest().required()}).required()}static applyCoupon(){return a.object({i:a.boolean(),b:a.boolean(),p:a.boolean(),id:a.string().allow(""),buyNow:a.boolean(),body:n.ApplyCouponRequest().required()}).required()}static applyRewardPoints(){return a.object({id:a.string().allow(""),i:a.boolean(),b:a.boolean(),buyNow:a.boolean(),body:n.RewardPointRequest().required()}).required()}static checkoutCart(){return a.object({buyNow:a.boolean(),body:n.CartCheckoutDetailRequest().required()}).required()}static checkoutCartV2(){return a.object({buyNow:a.boolean(),body:n.CartCheckoutDetailV2Request().required()}).required()}static deleteCart(){return a.object({id:a.string().allow("")})}static getAddressById(){return a.object({id:a.string().allow("").required(),cartId:a.string().allow(""),buyNow:a.boolean(),mobileNo:a.string().allow(""),checkoutMode:a.string().allow(""),tags:a.string().allow(""),isDefault:a.boolean()}).required()}static getAddresses(){return a.object({cartId:a.string().allow(""),buyNow:a.boolean(),mobileNo:a.string().allow(""),checkoutMode:a.string().allow(""),tags:a.string().allow(""),isDefault:a.boolean()})}static getBulkDiscountOffers(){return a.object({itemId:a.number(),articleId:a.string().allow(""),uid:a.number(),slug:a.string().allow("")})}static getCart(){return a.object({id:a.string().allow(""),i:a.boolean(),b:a.boolean(),c:a.boolean(),assignCardId:a.number(),areaCode:a.string().allow(""),buyNow:a.boolean()})}static getCartLastModified(){return a.object({id:a.string().allow("")})}static getCartShareLink(){return a.object({body:n.GetShareCartLinkRequest().required()}).required()}static getCartSharedItems(){return a.object({token:a.string().allow("").required()}).required()}static getCoupons(){return a.object({id:a.string().allow(""),buyNow:a.boolean(),slug:a.string().allow(""),storeId:a.string().allow("")})}static getItemCount(){return a.object({id:a.string().allow(""),buyNow:a.boolean()})}static getLadderOffers(){return a.object({slug:a.string().allow("").required(),storeId:a.string().allow(""),promotionId:a.string().allow(""),pageSize:a.number()}).required()}static getPromotionOffers(){return a.object({slug:a.string().allow(""),pageSize:a.number(),promotionGroup:a.string().allow(""),storeId:a.number()})}static getShipments(){return a.object({p:a.boolean(),id:a.string().allow(""),buyNow:a.boolean(),addressId:a.string().allow(""),areaCode:a.string().allow(""),orderType:a.string().allow("")})}static removeAddress(){return a.object({id:a.string().allow("").required()}).required()}static removeCoupon(){return a.object({id:a.string().allow(""),buyNow:a.boolean()})}static selectAddress(){return a.object({cartId:a.string().allow(""),buyNow:a.boolean(),i:a.boolean(),b:a.boolean(),body:n.SelectCartAddressRequest().required()}).required()}static selectPaymentMode(){return a.object({id:a.string().allow(""),buyNow:a.boolean(),body:n.UpdateCartPaymentRequest().required()}).required()}static updateAddress(){return a.object({id:a.string().allow("").required(),body:n.Address().required()}).required()}static updateCart(){return a.object({id:a.string().allow(""),i:a.boolean(),b:a.boolean(),areaCode:a.string().allow(""),buyNow:a.boolean(),body:n.UpdateCartRequest().required()}).required()}static updateCartMeta(){return a.object({id:a.string().allow(""),buyNow:a.boolean(),body:n.CartMetaRequest().required()}).required()}static updateCartWithSharedItems(){return a.object({token:a.string().allow("").required(),action:a.string().allow("").required()}).required()}static validateCouponForPayment(){return a.object({id:a.string().allow(""),buyNow:a.boolean(),addressId:a.string().allow(""),paymentMode:a.string().allow(""),paymentIdentifier:a.string().allow(""),aggregatorName:a.string().allow(""),merchantCode:a.string().allow(""),iin:a.string().allow(""),network:a.string().allow(""),type:a.string().allow(""),cardId:a.string().allow("")})}}},9844:(e,t,r)=>{const a=r(8336),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(9916),s=r(4776),i=r(3768),l=r(3080),c=r(5104),{Logger:u}=r(1544);r(9955),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={followById:"/service/application/catalog/v1.0/follow/{collection_type}/{collection_id}/",getBrandDetailBySlug:"/service/application/catalog/v1.0/brands/{slug}/",getBrands:"/service/application/catalog/v1.0/brands/",getCategories:"/service/application/catalog/v1.0/categories/",getCategoryDetailBySlug:"/service/application/catalog/v1.0/categories/{slug}/",getCollectionDetailBySlug:"/service/application/catalog/v1.0/collections/{slug}/",getCollectionItemsBySlug:"/service/application/catalog/v1.0/collections/{slug}/items/",getCollections:"/service/application/catalog/v1.0/collections/",getComparedFrequentlyProductBySlug:"/service/application/catalog/v1.0/products/{slug}/similar/compared-frequently/",getDepartments:"/service/application/catalog/v1.0/departments/",getFollowIds:"/service/application/catalog/v1.0/follow/ids/",getFollowedListing:"/service/application/catalog/v1.0/follow/{collection_type}/",getFollowerCountById:"/service/application/catalog/v1.0/follow/{collection_type}/{collection_id}/count/",getHomeProducts:"/service/application/catalog/v1.0/home/listing/",getInStockLocations:"/service/application/catalog/v1.0/in-stock/locations/",getLocationDetailsById:"/service/application/catalog/v1.0/locations/{location_id}/",getProductBundlesBySlug:"/service/application/catalog/v1.0/product-grouping/",getProductComparisonBySlugs:"/service/application/catalog/v1.0/products/compare/",getProductDetailBySlug:"/service/application/catalog/v1.0/products/{slug}/",getProductPriceBySlug:"/service/application/catalog/v3.0/products/{slug}/sizes/{size}/price/",getProductSellersBySlug:"/service/application/catalog/v3.0/products/{slug}/sizes/{size}/sellers/",getProductSizesBySlug:"/service/application/catalog/v1.0/products/{slug}/sizes/",getProductStockByIds:"/service/application/catalog/v1.0/products/stock-status/",getProductStockForTimeByIds:"/service/application/catalog/v1.0/products/stock-status/poll/",getProductVariantsBySlug:"/service/application/catalog/v1.0/products/{slug}/variants/",getProducts:"/service/application/catalog/v1.0/products/",getSearchResults:"/service/application/catalog/v1.0/auto-complete/",getSimilarComparisonProductBySlug:"/service/application/catalog/v1.0/products/{slug}/similar/compare/",getStores:"/service/application/catalog/v1.0/locations/",unfollowById:"/service/application/catalog/v1.0/follow/{collection_type}/{collection_id}/"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async followById({collectionType:e,collectionId:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:i}={responseHeaders:!1}){const{error:d}=l.followById().validate({collectionType:e,collectionId:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=l.followById().validate({collectionType:e,collectionId:t},{abortEarly:!1,allowUnknown:!1});p&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > followById \n ${p}`});const g=await a.execute(this._conf,"post",s({url:this._urls.followById,params:{collectionType:e,collectionId:t}}),{},void 0,{...r},{responseHeaders:i});let m=g;i&&(m=g[0]);const{error:w}=c.FollowPostResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > followById \n ${w}`})}return g}async getBrandDetailBySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:i}=l.getBrandDetailBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(i)return Promise.reject(new n(i));const{error:d}=l.getBrandDetailBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!1});d&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getBrandDetailBySlug \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getBrandDetailBySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=c.BrandDetailResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > getBrandDetailBySlug \n ${m}`})}return p}async getBrands({department:e,pageNo:t,pageSize:r,requestHeaders:i}={requestHeaders:{}},{responseHeaders:d}={responseHeaders:!1}){const{error:p}=l.getBrands().validate({department:e,pageNo:t,pageSize:r},{abortEarly:!1,allowUnknown:!0});if(p)return Promise.reject(new n(p));const{error:g}=l.getBrands().validate({department:e,pageNo:t,pageSize:r},{abortEarly:!1,allowUnknown:!1});g&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getBrands \n ${g}`});const m={};m.department=e,m.page_no=t,m.page_size=r;const w=await a.execute(this._conf,"get",s({url:this._urls.getBrands,params:{}}),m,void 0,{...i},{responseHeaders:d});let f=w;d&&(f=w[0]);const{error:y}=c.BrandListingResponse().validate(f,{abortEarly:!1,allowUnknown:!0});if(y){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(y));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > getBrands \n ${y}`})}return w}getBrandsPaginator({department:e,pageSize:t}={}){const r=new i;return r.setCallback((async()=>{r.nextId;const a=r.pageNo,n=await this.getBrands({department:e,pageNo:a,pageSize:t});return r.setPaginator({hasNext:!!n.page.has_next,nextId:n.page.next_id}),n}).bind(this)),r}async getCategories({department:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:i}=l.getCategories().validate({department:e},{abortEarly:!1,allowUnknown:!0});if(i)return Promise.reject(new n(i));const{error:d}=l.getCategories().validate({department:e},{abortEarly:!1,allowUnknown:!1});d&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getCategories \n ${d}`});const p={};p.department=e;const g=await a.execute(this._conf,"get",s({url:this._urls.getCategories,params:{}}),p,void 0,{...t},{responseHeaders:r});let m=g;r&&(m=g[0]);const{error:w}=c.CategoryListingResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > getCategories \n ${w}`})}return g}async getCategoryDetailBySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:i}=l.getCategoryDetailBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(i)return Promise.reject(new n(i));const{error:d}=l.getCategoryDetailBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!1});d&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getCategoryDetailBySlug \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getCategoryDetailBySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=c.CategoryMetaResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > getCategoryDetailBySlug \n ${m}`})}return p}async getCollectionDetailBySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:i}=l.getCollectionDetailBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(i)return Promise.reject(new n(i));const{error:d}=l.getCollectionDetailBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!1});d&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getCollectionDetailBySlug \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getCollectionDetailBySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=c.CollectionDetailResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > getCollectionDetailBySlug \n ${m}`})}return p}async getCollectionItemsBySlug({slug:e,f:t,q:r,filters:i,sortOn:d,pageId:p,pageSize:g,pageNo:m,pageType:w,requestHeaders:f}={requestHeaders:{}},{responseHeaders:y}={responseHeaders:!1}){const{error:b}=l.getCollectionItemsBySlug().validate({slug:e,f:t,q:r,filters:i,sortOn:d,pageId:p,pageSize:g,pageNo:m,pageType:w},{abortEarly:!1,allowUnknown:!0});if(b)return Promise.reject(new n(b));const{error:h}=l.getCollectionItemsBySlug().validate({slug:e,f:t,q:r,filters:i,sortOn:d,pageId:p,pageSize:g,pageNo:m,pageType:w},{abortEarly:!1,allowUnknown:!1});h&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getCollectionItemsBySlug \n ${h}`});const _={};_.f=t,_.q=r,_.filters=i,_.sort_on=d,_.page_id=p,_.page_size=g,_.page_no=m,_.page_type=w;const v=await a.execute(this._conf,"get",s({url:this._urls.getCollectionItemsBySlug,params:{slug:e}}),_,void 0,{...f},{responseHeaders:y});let k=v;y&&(k=v[0]);const{error:R}=c.ProductListingResponse().validate(k,{abortEarly:!1,allowUnknown:!0});if(R){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(R));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > getCollectionItemsBySlug \n ${R}`})}return v}getCollectionItemsBySlugPaginator({slug:e,f:t,q:r,filters:a,sortOn:n,pageSize:o}={}){const s=new i;return s.setCallback((async()=>{const i=s.nextId,l=s.pageNo,c=await this.getCollectionItemsBySlug({slug:e,f:t,q:r,filters:a,sortOn:n,pageId:i,pageSize:o,pageNo:l,pageType:"cursor"});return s.setPaginator({hasNext:!!c.page.has_next,nextId:c.page.next_id}),c}).bind(this)),s}async getCollections({pageNo:e,pageSize:t,tag:r,q:i,requestHeaders:d}={requestHeaders:{}},{responseHeaders:p}={responseHeaders:!1}){const{error:g}=l.getCollections().validate({pageNo:e,pageSize:t,tag:r,q:i},{abortEarly:!1,allowUnknown:!0});if(g)return Promise.reject(new n(g));const{error:m}=l.getCollections().validate({pageNo:e,pageSize:t,tag:r,q:i},{abortEarly:!1,allowUnknown:!1});m&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getCollections \n ${m}`});const w={};w.page_no=e,w.page_size=t,w.tag=r,w.q=i;const f=await a.execute(this._conf,"get",s({url:this._urls.getCollections,params:{}}),w,void 0,{...d},{responseHeaders:p});let y=f;p&&(y=f[0]);const{error:b}=c.GetCollectionListingResponse().validate(y,{abortEarly:!1,allowUnknown:!0});if(b){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(b));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > getCollections \n ${b}`})}return f}getCollectionsPaginator({pageSize:e,tag:t,q:r}={}){const a=new i;return a.setCallback((async()=>{a.nextId;const n=a.pageNo,o=await this.getCollections({pageNo:n,pageSize:e,tag:t,q:r});return a.setPaginator({hasNext:!!o.page.has_next,nextId:o.page.next_id}),o}).bind(this)),a}async getComparedFrequentlyProductBySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:i}=l.getComparedFrequentlyProductBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(i)return Promise.reject(new n(i));const{error:d}=l.getComparedFrequentlyProductBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!1});d&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getComparedFrequentlyProductBySlug \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getComparedFrequentlyProductBySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=c.ProductFrequentlyComparedSimilarResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > getComparedFrequentlyProductBySlug \n ${m}`})}return p}async getDepartments({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=l.getDepartments().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:i}=l.getDepartments().validate({},{abortEarly:!1,allowUnknown:!1});i&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getDepartments \n ${i}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getDepartments,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=c.DepartmentResponse().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > getDepartments \n ${g}`})}return d}async getFollowIds({collectionType:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:i}=l.getFollowIds().validate({collectionType:e},{abortEarly:!1,allowUnknown:!0});if(i)return Promise.reject(new n(i));const{error:d}=l.getFollowIds().validate({collectionType:e},{abortEarly:!1,allowUnknown:!1});d&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getFollowIds \n ${d}`});const p={};p.collection_type=e;const g=await a.execute(this._conf,"get",s({url:this._urls.getFollowIds,params:{}}),p,void 0,{...t},{responseHeaders:r});let m=g;r&&(m=g[0]);const{error:w}=c.FollowIdsResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > getFollowIds \n ${w}`})}return g}async getFollowedListing({collectionType:e,pageId:t,pageSize:r,requestHeaders:i}={requestHeaders:{}},{responseHeaders:d}={responseHeaders:!1}){const{error:p}=l.getFollowedListing().validate({collectionType:e,pageId:t,pageSize:r},{abortEarly:!1,allowUnknown:!0});if(p)return Promise.reject(new n(p));const{error:g}=l.getFollowedListing().validate({collectionType:e,pageId:t,pageSize:r},{abortEarly:!1,allowUnknown:!1});g&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getFollowedListing \n ${g}`});const m={};m.page_id=t,m.page_size=r;const w=await a.execute(this._conf,"get",s({url:this._urls.getFollowedListing,params:{collectionType:e}}),m,void 0,{...i},{responseHeaders:d});let f=w;d&&(f=w[0]);const{error:y}=c.GetFollowListingResponse().validate(f,{abortEarly:!1,allowUnknown:!0});if(y){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(y));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > getFollowedListing \n ${y}`})}return w}getFollowedListingPaginator({collectionType:e,pageSize:t}={}){const r=new i;return r.setCallback((async()=>{const a=r.nextId,n=(r.pageNo,await this.getFollowedListing({collectionType:e,pageId:a,pageSize:t}));return r.setPaginator({hasNext:!!n.page.has_next,nextId:n.page.next_id}),n}).bind(this)),r}async getFollowerCountById({collectionType:e,collectionId:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:i}={responseHeaders:!1}){const{error:d}=l.getFollowerCountById().validate({collectionType:e,collectionId:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=l.getFollowerCountById().validate({collectionType:e,collectionId:t},{abortEarly:!1,allowUnknown:!1});p&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getFollowerCountById \n ${p}`});const g=await a.execute(this._conf,"get",s({url:this._urls.getFollowerCountById,params:{collectionType:e,collectionId:t}}),{},void 0,{...r},{responseHeaders:i});let m=g;i&&(m=g[0]);const{error:w}=c.FollowerCountResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > getFollowerCountById \n ${w}`})}return g}async getHomeProducts({sortOn:e,pageId:t,pageSize:r,requestHeaders:i}={requestHeaders:{}},{responseHeaders:d}={responseHeaders:!1}){const{error:p}=l.getHomeProducts().validate({sortOn:e,pageId:t,pageSize:r},{abortEarly:!1,allowUnknown:!0});if(p)return Promise.reject(new n(p));const{error:g}=l.getHomeProducts().validate({sortOn:e,pageId:t,pageSize:r},{abortEarly:!1,allowUnknown:!1});g&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getHomeProducts \n ${g}`});const m={};m.sort_on=e,m.page_id=t,m.page_size=r;const w=await a.execute(this._conf,"get",s({url:this._urls.getHomeProducts,params:{}}),m,void 0,{...i},{responseHeaders:d});let f=w;d&&(f=w[0]);const{error:y}=c.HomeListingResponse().validate(f,{abortEarly:!1,allowUnknown:!0});if(y){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(y));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > getHomeProducts \n ${y}`})}return w}getHomeProductsPaginator({sortOn:e,pageSize:t}={}){const r=new i;return r.setCallback((async()=>{const a=r.nextId,n=(r.pageNo,await this.getHomeProducts({sortOn:e,pageId:a,pageSize:t}));return r.setPaginator({hasNext:!!n.page.has_next,nextId:n.page.next_id}),n}).bind(this)),r}async getInStockLocations({pageNo:e,pageSize:t,q:r,city:i,range:d,latitude:p,longitude:g,requestHeaders:m}={requestHeaders:{}},{responseHeaders:w}={responseHeaders:!1}){const{error:f}=l.getInStockLocations().validate({pageNo:e,pageSize:t,q:r,city:i,range:d,latitude:p,longitude:g},{abortEarly:!1,allowUnknown:!0});if(f)return Promise.reject(new n(f));const{error:y}=l.getInStockLocations().validate({pageNo:e,pageSize:t,q:r,city:i,range:d,latitude:p,longitude:g},{abortEarly:!1,allowUnknown:!1});y&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getInStockLocations \n ${y}`});const b={};b.page_no=e,b.page_size=t,b.q=r,b.city=i,b.range=d,b.latitude=p,b.longitude=g;const h=await a.execute(this._conf,"get",s({url:this._urls.getInStockLocations,params:{}}),b,void 0,{...m},{responseHeaders:w});let _=h;w&&(_=h[0]);const{error:v}=c.ApplicationStoreListing().validate(_,{abortEarly:!1,allowUnknown:!0});if(v){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(v));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > getInStockLocations \n ${v}`})}return h}getInStockLocationsPaginator({pageSize:e,q:t,city:r,range:a,latitude:n,longitude:o}={}){const s=new i;return s.setCallback((async()=>{s.nextId;const i=s.pageNo,l=await this.getInStockLocations({pageNo:i,pageSize:e,q:t,city:r,range:a,latitude:n,longitude:o});return s.setPaginator({hasNext:!!l.page.has_next,nextId:l.page.next_id}),l}).bind(this)),s}async getLocationDetailsById({locationId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:i}=l.getLocationDetailsById().validate({locationId:e},{abortEarly:!1,allowUnknown:!0});if(i)return Promise.reject(new n(i));const{error:d}=l.getLocationDetailsById().validate({locationId:e},{abortEarly:!1,allowUnknown:!1});d&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getLocationDetailsById \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getLocationDetailsById,params:{locationId:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=c.StoreDetails().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > getLocationDetailsById \n ${m}`})}return p}async getProductBundlesBySlug({slug:e,id:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:i}={responseHeaders:!1}){const{error:d}=l.getProductBundlesBySlug().validate({slug:e,id:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=l.getProductBundlesBySlug().validate({slug:e,id:t},{abortEarly:!1,allowUnknown:!1});p&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getProductBundlesBySlug \n ${p}`});const g={};g.slug=e,g.id=t;const m=await a.execute(this._conf,"get",s({url:this._urls.getProductBundlesBySlug,params:{}}),g,void 0,{...r},{responseHeaders:i});let w=m;i&&(w=m[0]);const{error:f}=c.ProductBundle().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > getProductBundlesBySlug \n ${f}`})}return m}async getProductComparisonBySlugs({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:i}=l.getProductComparisonBySlugs().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(i)return Promise.reject(new n(i));const{error:d}=l.getProductComparisonBySlugs().validate({slug:e},{abortEarly:!1,allowUnknown:!1});d&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getProductComparisonBySlugs \n ${d}`});const p={};p.slug=e;const g=await a.execute(this._conf,"get",s({url:this._urls.getProductComparisonBySlugs,params:{}}),p,void 0,{...t},{responseHeaders:r});let m=g;r&&(m=g[0]);const{error:w}=c.ProductsComparisonResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > getProductComparisonBySlugs \n ${w}`})}return g}async getProductDetailBySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:i}=l.getProductDetailBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(i)return Promise.reject(new n(i));const{error:d}=l.getProductDetailBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!1});d&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getProductDetailBySlug \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getProductDetailBySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=c.ProductDetail().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > getProductDetailBySlug \n ${m}`})}return p}async getProductPriceBySlug({slug:e,size:t,storeId:r,moq:i,requestHeaders:d}={requestHeaders:{}},{responseHeaders:p}={responseHeaders:!1}){const{error:g}=l.getProductPriceBySlug().validate({slug:e,size:t,storeId:r,moq:i},{abortEarly:!1,allowUnknown:!0});if(g)return Promise.reject(new n(g));const{error:m}=l.getProductPriceBySlug().validate({slug:e,size:t,storeId:r,moq:i},{abortEarly:!1,allowUnknown:!1});m&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getProductPriceBySlug \n ${m}`});const w={};w.store_id=r,w.moq=i;const f=await a.execute(this._conf,"get",s({url:this._urls.getProductPriceBySlug,params:{slug:e,size:t}}),w,void 0,{...d},{responseHeaders:p});let y=f;p&&(y=f[0]);const{error:b}=c.ProductSizePriceResponseV3().validate(y,{abortEarly:!1,allowUnknown:!0});if(b){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(b));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > getProductPriceBySlug \n ${b}`})}return f}async getProductSellersBySlug({slug:e,size:t,strategy:r,pageNo:i,pageSize:d,requestHeaders:p}={requestHeaders:{}},{responseHeaders:g}={responseHeaders:!1}){const{error:m}=l.getProductSellersBySlug().validate({slug:e,size:t,strategy:r,pageNo:i,pageSize:d},{abortEarly:!1,allowUnknown:!0});if(m)return Promise.reject(new n(m));const{error:w}=l.getProductSellersBySlug().validate({slug:e,size:t,strategy:r,pageNo:i,pageSize:d},{abortEarly:!1,allowUnknown:!1});w&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getProductSellersBySlug \n ${w}`});const f={};f.strategy=r,f.page_no=i,f.page_size=d;const y=await a.execute(this._conf,"get",s({url:this._urls.getProductSellersBySlug,params:{slug:e,size:t}}),f,void 0,{...p},{responseHeaders:g});let b=y;g&&(b=y[0]);const{error:h}=c.ProductSizeSellersResponseV3().validate(b,{abortEarly:!1,allowUnknown:!0});if(h){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(h));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > getProductSellersBySlug \n ${h}`})}return y}getProductSellersBySlugPaginator({slug:e,size:t,strategy:r,pageSize:a}={}){const n=new i;return n.setCallback((async()=>{n.nextId;const o=n.pageNo,s=await this.getProductSellersBySlug({slug:e,size:t,strategy:r,pageNo:o,pageSize:a});return n.setPaginator({hasNext:!!s.page.has_next,nextId:s.page.next_id}),s}).bind(this)),n}async getProductSizesBySlug({slug:e,storeId:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:i}={responseHeaders:!1}){const{error:d}=l.getProductSizesBySlug().validate({slug:e,storeId:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=l.getProductSizesBySlug().validate({slug:e,storeId:t},{abortEarly:!1,allowUnknown:!1});p&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getProductSizesBySlug \n ${p}`});const g={};g.store_id=t;const m=await a.execute(this._conf,"get",s({url:this._urls.getProductSizesBySlug,params:{slug:e}}),g,void 0,{...r},{responseHeaders:i});let w=m;i&&(w=m[0]);const{error:f}=c.ProductSizes().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > getProductSizesBySlug \n ${f}`})}return m}async getProductStockByIds({itemId:e,alu:t,skuCode:r,ean:i,upc:d,requestHeaders:p}={requestHeaders:{}},{responseHeaders:g}={responseHeaders:!1}){const{error:m}=l.getProductStockByIds().validate({itemId:e,alu:t,skuCode:r,ean:i,upc:d},{abortEarly:!1,allowUnknown:!0});if(m)return Promise.reject(new n(m));const{error:w}=l.getProductStockByIds().validate({itemId:e,alu:t,skuCode:r,ean:i,upc:d},{abortEarly:!1,allowUnknown:!1});w&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getProductStockByIds \n ${w}`});const f={};f.item_id=e,f.alu=t,f.sku_code=r,f.ean=i,f.upc=d;const y=await a.execute(this._conf,"get",s({url:this._urls.getProductStockByIds,params:{}}),f,void 0,{...p},{responseHeaders:g});let b=y;g&&(b=y[0]);const{error:h}=c.ProductStockStatusResponse().validate(b,{abortEarly:!1,allowUnknown:!0});if(h){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(h));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > getProductStockByIds \n ${h}`})}return y}async getProductStockForTimeByIds({timestamp:e,pageSize:t,pageId:r,requestHeaders:i}={requestHeaders:{}},{responseHeaders:d}={responseHeaders:!1}){const{error:p}=l.getProductStockForTimeByIds().validate({timestamp:e,pageSize:t,pageId:r},{abortEarly:!1,allowUnknown:!0});if(p)return Promise.reject(new n(p));const{error:g}=l.getProductStockForTimeByIds().validate({timestamp:e,pageSize:t,pageId:r},{abortEarly:!1,allowUnknown:!1});g&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getProductStockForTimeByIds \n ${g}`});const m={};m.timestamp=e,m.page_size=t,m.page_id=r;const w=await a.execute(this._conf,"get",s({url:this._urls.getProductStockForTimeByIds,params:{}}),m,void 0,{...i},{responseHeaders:d});let f=w;d&&(f=w[0]);const{error:y}=c.ProductStockPolling().validate(f,{abortEarly:!1,allowUnknown:!0});if(y){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(y));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > getProductStockForTimeByIds \n ${y}`})}return w}getProductStockForTimeByIdsPaginator({timestamp:e,pageSize:t}={}){const r=new i;return r.setCallback((async()=>{const a=r.nextId,n=(r.pageNo,await this.getProductStockForTimeByIds({timestamp:e,pageSize:t,pageId:a}));return r.setPaginator({hasNext:!!n.page.has_next,nextId:n.page.next_id}),n}).bind(this)),r}async getProductVariantsBySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:i}=l.getProductVariantsBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(i)return Promise.reject(new n(i));const{error:d}=l.getProductVariantsBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!1});d&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getProductVariantsBySlug \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getProductVariantsBySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=c.ProductVariantsResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > getProductVariantsBySlug \n ${m}`})}return p}async getProducts({q:e,f:t,filters:r,sortOn:i,pageId:d,pageSize:p,pageNo:g,pageType:m,requestHeaders:w}={requestHeaders:{}},{responseHeaders:f}={responseHeaders:!1}){const{error:y}=l.getProducts().validate({q:e,f:t,filters:r,sortOn:i,pageId:d,pageSize:p,pageNo:g,pageType:m},{abortEarly:!1,allowUnknown:!0});if(y)return Promise.reject(new n(y));const{error:b}=l.getProducts().validate({q:e,f:t,filters:r,sortOn:i,pageId:d,pageSize:p,pageNo:g,pageType:m},{abortEarly:!1,allowUnknown:!1});b&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getProducts \n ${b}`});const h={};h.q=e,h.f=t,h.filters=r,h.sort_on=i,h.page_id=d,h.page_size=p,h.page_no=g,h.page_type=m;const _=await a.execute(this._conf,"get",s({url:this._urls.getProducts,params:{}}),h,void 0,{...w},{responseHeaders:f});let v=_;f&&(v=_[0]);const{error:k}=c.ProductListingResponse().validate(v,{abortEarly:!1,allowUnknown:!0});if(k){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(k));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > getProducts \n ${k}`})}return _}getProductsPaginator({q:e,f:t,filters:r,sortOn:a,pageSize:n}={}){const o=new i;return o.setCallback((async()=>{const s=o.nextId,i=o.pageNo,l=await this.getProducts({q:e,f:t,filters:r,sortOn:a,pageId:s,pageSize:n,pageNo:i,pageType:"cursor"});return o.setPaginator({hasNext:!!l.page.has_next,nextId:l.page.next_id}),l}).bind(this)),o}async getSearchResults({q:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:i}=l.getSearchResults().validate({q:e},{abortEarly:!1,allowUnknown:!0});if(i)return Promise.reject(new n(i));const{error:d}=l.getSearchResults().validate({q:e},{abortEarly:!1,allowUnknown:!1});d&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getSearchResults \n ${d}`});const p={};p.q=e;const g=await a.execute(this._conf,"get",s({url:this._urls.getSearchResults,params:{}}),p,void 0,{...t},{responseHeaders:r});let m=g;r&&(m=g[0]);const{error:w}=c.AutoCompleteResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > getSearchResults \n ${w}`})}return g}async getSimilarComparisonProductBySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:i}=l.getSimilarComparisonProductBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(i)return Promise.reject(new n(i));const{error:d}=l.getSimilarComparisonProductBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!1});d&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getSimilarComparisonProductBySlug \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getSimilarComparisonProductBySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=c.ProductCompareResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > getSimilarComparisonProductBySlug \n ${m}`})}return p}async getStores({pageNo:e,pageSize:t,q:r,city:i,range:d,latitude:p,longitude:g,tags:m,requestHeaders:w}={requestHeaders:{}},{responseHeaders:f}={responseHeaders:!1}){const{error:y}=l.getStores().validate({pageNo:e,pageSize:t,q:r,city:i,range:d,latitude:p,longitude:g,tags:m},{abortEarly:!1,allowUnknown:!0});if(y)return Promise.reject(new n(y));const{error:b}=l.getStores().validate({pageNo:e,pageSize:t,q:r,city:i,range:d,latitude:p,longitude:g,tags:m},{abortEarly:!1,allowUnknown:!1});b&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getStores \n ${b}`});const h={};h.page_no=e,h.page_size=t,h.q=r,h.city=i,h.range=d,h.latitude=p,h.longitude=g,h.tags=m;const _=await a.execute(this._conf,"get",s({url:this._urls.getStores,params:{}}),h,void 0,{...w},{responseHeaders:f});let v=_;f&&(v=_[0]);const{error:k}=c.StoreListingResponse().validate(v,{abortEarly:!1,allowUnknown:!0});if(k){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(k));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > getStores \n ${k}`})}return _}getStoresPaginator({pageSize:e,q:t,city:r,range:a,latitude:n,longitude:o,tags:s}={}){const l=new i;return l.setCallback((async()=>{l.nextId;const i=l.pageNo,c=await this.getStores({pageNo:i,pageSize:e,q:t,city:r,range:a,latitude:n,longitude:o,tags:s});return l.setPaginator({hasNext:!!c.page.has_next,nextId:c.page.next_id}),c}).bind(this)),l}async unfollowById({collectionType:e,collectionId:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:i}={responseHeaders:!1}){const{error:d}=l.unfollowById().validate({collectionType:e,collectionId:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=l.unfollowById().validate({collectionType:e,collectionId:t},{abortEarly:!1,allowUnknown:!1});p&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > unfollowById \n ${p}`});const g=await a.execute(this._conf,"delete",s({url:this._urls.unfollowById,params:{collectionType:e,collectionId:t}}),{},void 0,{...r},{responseHeaders:i});let m=g;i&&(m=g[0]);const{error:w}=c.FollowPostResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));u({level:"WARN",message:`Response Validation Warnings for application > Catalog > unfollowById \n ${w}`})}return g}}},5104:(e,t,r)=>{const a=r(9955);class n{static ProductDetailCustomOrder(){return a.object({manufacturing_time:a.number(),manufacturing_time_unit:a.string().allow(""),is_custom_order:a.boolean()})}static Meta(){return a.object({source:a.string().allow("")})}static Media(){return a.object({url:a.string().allow(""),type:a.string().allow(""),meta:n.Meta(),alt:a.string().allow("")})}static ProductListingActionPage(){return a.object({type:a.string().allow(""),query:a.any(),params:a.any()})}static ProductListingAction(){return a.object({type:a.string().allow(""),page:n.ProductListingActionPage()})}static ProductBrand(){return a.object({uid:a.number(),logo:n.Media(),description:a.string().allow(""),name:a.string().allow(""),action:n.ProductListingAction()})}static ProductDepartment(){return a.object({uid:a.number(),logo:n.Media(),slug:a.string().allow(""),name:a.string().allow("")})}static ProductCategoryMap(){return a.object({l1:n.ProductBrand(),l2:n.ProductBrand(),l3:n.ProductBrand()})}static NetQuantity(){return a.object({unit:a.any(),value:a.number()})}static CustomMetaFields(){return a.object({value:a.string().allow("").required(),key:a.string().allow("").required()})}static ApplicationItemSEO(){return a.object({title:a.any(),description:a.any()})}static ProductDetailAttribute(){return a.object({value:a.string().allow(""),type:a.string().allow(""),key:a.string().allow("")})}static ProductDetailGroupedAttribute(){return a.object({title:a.string().allow(""),details:a.array().items(n.ProductDetailAttribute())})}static ApplicationItemMOQ(){return a.object({minimum:a.number(),maximum:a.number(),increment_unit:a.number()})}static Price(){return a.object({min:a.number(),currency_symbol:a.string().allow(""),currency_code:a.string().allow(""),max:a.number()})}static ProductListingPrice(){return a.object({effective:n.Price(),marked:n.Price()})}static ProductSizesPrice(){return a.object({effective:n.Price(),marked:n.Price(),selling:n.Price()})}static ProductDetail(){return a.object({uid:a.number(),custom_order:n.ProductDetailCustomOrder(),category_map:n.ProductCategoryMap(),net_quantity:n.NetQuantity(),rating_count:a.number(),_custom_meta:a.array().items(n.CustomMetaFields()),similars:a.array().items(a.string().allow("")),tags:a.array().items(a.string().allow("")),seo:n.ApplicationItemSEO(),image_nature:a.string().allow(""),has_variant:a.boolean(),item_type:a.string().allow(""),description:a.string().allow(""),grouped_attributes:a.array().items(n.ProductDetailGroupedAttribute()),medias:a.array().items(n.Media()),color:a.string().allow(""),type:a.string().allow(""),product_online_date:a.string().allow(""),_custom_json:a.any(),item_code:a.string().allow(""),name:a.string().allow(""),moq:n.ApplicationItemMOQ(),short_description:a.string().allow(""),categories:a.array().items(n.ProductBrand()),attributes:a.any(),discount:a.string().allow(""),tryouts:a.array().items(a.string().allow("")),slug:a.string().allow("").required(),action:n.ProductListingAction(),rating:a.number(),is_dependent:a.boolean(),product_group_tag:a.array().items(a.string().allow("")),highlights:a.array().items(a.string().allow("")),price:n.ProductListingPrice(),brand:n.ProductBrand(),department:n.ProductDepartment(),teaser_tag:a.string().allow("")})}static ErrorResponse(){return a.object({error:a.string().allow("")})}static Dimension(){return a.object({unit:a.string().allow("").required(),height:a.number().required(),length:a.number().required(),width:a.number().required(),is_default:a.boolean().required()})}static Weight(){return a.object({unit:a.string().allow("").required(),shipping:a.number().required(),is_default:a.boolean().required()})}static DiscountMeta(){return a.object({timer:a.boolean().required(),start_timer_in_minutes:a.number(),start:a.string().allow(""),end:a.string().allow("")})}static ProductSize(){return a.object({quantity:a.number(),dimension:n.Dimension(),weight:n.Weight(),is_available:a.boolean(),seller_identifiers:a.array().items(a.string().allow("")),value:a.string().allow(""),display:a.string().allow("")})}static SizeChartValues(){return a.object({col_3:a.string().allow(""),col_6:a.string().allow(""),col_2:a.string().allow(""),col_4:a.string().allow(""),col_1:a.string().allow(""),col_5:a.string().allow("")})}static ColumnHeader(){return a.object({convertable:a.boolean(),value:a.string().allow("")})}static ColumnHeaders(){return a.object({col_3:n.ColumnHeader(),col_6:n.ColumnHeader(),col_2:n.ColumnHeader(),col_4:n.ColumnHeader(),col_1:n.ColumnHeader(),col_5:n.ColumnHeader()})}static SizeChart(){return a.object({unit:a.string().allow(""),image:a.string().allow(""),size_tip:a.string().allow(""),sizes:a.array().items(n.SizeChartValues()),description:a.string().allow(""),title:a.string().allow(""),headers:n.ColumnHeaders()})}static ProductSizeStores(){return a.object({count:a.number()})}static ProductSizes(){return a.object({sizes:a.array().items(n.ProductSize()),price:n.ProductSizesPrice(),size_chart:n.SizeChart(),sellable:a.boolean(),multi_size:a.boolean(),discount:a.string().allow(""),stores:n.ProductSizeStores(),discount_meta:n.DiscountMeta()})}static AttributeDetail(){return a.object({logo:a.string().allow(""),description:a.string().allow(""),display:a.string().allow(""),key:a.string().allow("")})}static AttributeMetadata(){return a.object({title:a.string().allow(""),details:a.array().items(n.AttributeDetail())})}static ProductsComparisonResponse(){return a.object({items:a.array().items(n.ProductDetail()),attributes_metadata:a.array().items(n.AttributeMetadata())})}static ProductCompareResponse(){return a.object({title:a.string().allow(""),items:a.array().items(n.ProductDetail()),attributes_metadata:a.array().items(n.AttributeMetadata()),subtitle:a.string().allow("")})}static ProductFrequentlyComparedSimilarResponse(){return a.object({similars:n.ProductCompareResponse()})}static ProductVariantItemResponse(){return a.object({uid:a.number(),color_name:a.string().allow(""),color:a.string().allow(""),medias:a.array().items(n.Media()),is_available:a.boolean(),_custom_meta:a.array().items(n.CustomMetaFields()),name:a.string().allow(""),value:a.string().allow(""),slug:a.string().allow(""),action:n.ProductListingAction()})}static ProductVariantResponse(){return a.object({display_type:a.string().allow(""),header:a.string().allow(""),items:a.array().items(n.ProductVariantItemResponse()),key:a.string().allow("")})}static ProductVariantsResponse(){return a.object({variants:a.array().items(n.ProductVariantResponse())})}static StoreDetail(){return a.object({name:a.string().allow(""),city:a.string().allow(""),id:a.number(),code:a.string().allow("")})}static ProductStockPrice(){return a.object({effective:a.number(),currency:a.string().allow(""),marked:a.number()})}static CompanyDetail(){return a.object({name:a.string().allow(""),id:a.number()})}static Seller(){return a.object({uid:a.number(),name:a.string().allow(""),count:a.number()})}static ProductStockStatusItem(){return a.object({uid:a.string().allow(""),quantity:a.number(),store:n.StoreDetail(),size:a.string().allow(""),price:n.ProductStockPrice(),company:n.CompanyDetail(),item_id:a.number(),seller:n.Seller(),identifier:a.any()})}static ProductStockStatusResponse(){return a.object({items:a.array().items(n.ProductStockStatusItem())})}static Page(){return a.object({item_total:a.number(),next_id:a.string().allow(""),has_previous:a.boolean(),has_next:a.boolean(),current:a.number(),type:a.string().allow("").required(),size:a.number()})}static ProductStockPolling(){return a.object({items:a.array().items(n.ProductStockStatusItem()),page:n.Page().required()})}static ProductVariantListingResponse(){return a.object({header:a.string().allow(""),items:a.array().items(n.ProductVariantItemResponse()),total:a.number(),key:a.string().allow(""),display_type:a.string().allow("")})}static ProductListingDetail(){return a.object({uid:a.number(),custom_order:n.ProductDetailCustomOrder(),sizes:a.array().items(a.string().allow("")),category_map:n.ProductCategoryMap(),net_quantity:n.NetQuantity(),rating_count:a.number(),_custom_meta:a.array().items(n.CustomMetaFields()),similars:a.array().items(a.string().allow("")),tags:a.array().items(a.string().allow("")),seo:n.ApplicationItemSEO(),image_nature:a.string().allow(""),has_variant:a.boolean(),item_type:a.string().allow(""),description:a.string().allow(""),grouped_attributes:a.array().items(n.ProductDetailGroupedAttribute()),medias:a.array().items(n.Media()),color:a.string().allow(""),type:a.string().allow(""),product_online_date:a.string().allow(""),_custom_json:a.any(),item_code:a.string().allow(""),name:a.string().allow(""),moq:n.ApplicationItemMOQ(),short_description:a.string().allow(""),categories:a.array().items(n.ProductBrand()),sellable:a.boolean(),attributes:a.any(),variants:a.array().items(n.ProductVariantListingResponse()),discount:a.string().allow(""),tryouts:a.array().items(a.string().allow("")),identifiers:a.array().items(a.string().allow("")),slug:a.string().allow("").required(),action:n.ProductListingAction(),rating:a.number(),is_dependent:a.boolean(),product_group_tag:a.array().items(a.string().allow("")),highlights:a.array().items(a.string().allow("")),price:n.ProductListingPrice(),brand:n.ProductBrand(),teaser_tag:a.string().allow("")})}static ProductFiltersValue(){return a.object({min:a.number(),display_format:a.string().allow(""),selected_max:a.number(),value:a.string().allow(""),query_format:a.string().allow(""),currency_symbol:a.string().allow(""),selected_min:a.number(),currency_code:a.string().allow(""),is_selected:a.boolean().required(),display:a.string().allow("").required(),count:a.number(),max:a.number()})}static ProductFiltersKey(){return a.object({logo:a.string().allow(""),name:a.string().allow("").required(),kind:a.string().allow(""),display:a.string().allow("").required()})}static ProductFilters(){return a.object({values:a.array().items(n.ProductFiltersValue()).required(),key:n.ProductFiltersKey().required()})}static ProductSortOn(){return a.object({logo:a.string().allow(""),is_selected:a.boolean(),name:a.string().allow(""),value:a.string().allow(""),display:a.string().allow("")})}static ProductListingResponse(){return a.object({items:a.array().items(n.ProductListingDetail()),filters:a.array().items(n.ProductFilters()),page:n.Page().required(),sort_on:a.array().items(n.ProductSortOn())})}static ImageUrls(){return a.object({portrait:n.Media(),landscape:n.Media()})}static BrandItem(){return a.object({uid:a.number(),logo:n.Media(),description:a.string().allow(""),banners:n.ImageUrls(),departments:a.array().items(a.string().allow("")),discount:a.string().allow(""),name:a.string().allow(""),slug:a.string().allow(""),action:n.ProductListingAction()})}static BrandListingResponse(){return a.object({items:a.array().items(n.BrandItem()),page:n.Page().required()})}static BrandDetailResponse(){return a.object({logo:n.Media(),uid:a.number(),description:a.string().allow(""),banners:n.ImageUrls(),_custom_json:a.any(),name:a.string().allow("")})}static CategoryBanner(){return a.object({portrait:n.Media().required(),landscape:n.Media().required()})}static ThirdLevelChild(){return a.object({uid:a.number(),banners:n.ImageUrls(),childs:a.array().items(a.any()),_custom_json:a.any(),name:a.string().allow(""),slug:a.string().allow(""),action:n.ProductListingAction()})}static SecondLevelChild(){return a.object({uid:a.number(),banners:n.ImageUrls(),childs:a.array().items(n.ThirdLevelChild()),_custom_json:a.any(),name:a.string().allow(""),slug:a.string().allow(""),action:n.ProductListingAction()})}static Child(){return a.object({uid:a.number(),banners:n.ImageUrls(),childs:a.array().items(n.SecondLevelChild()),_custom_json:a.any(),name:a.string().allow(""),slug:a.string().allow(""),action:n.ProductListingAction()})}static CategoryItems(){return a.object({uid:a.number().required(),banners:n.CategoryBanner().required(),childs:a.array().items(n.Child()),name:a.string().allow("").required(),slug:a.string().allow("").required(),action:n.ProductListingAction().required()})}static DepartmentCategoryTree(){return a.object({items:a.array().items(n.CategoryItems()),department:a.string().allow("").required()})}static DepartmentIdentifier(){return a.object({uid:a.number(),slug:a.string().allow("")})}static CategoryListingResponse(){return a.object({data:a.array().items(n.DepartmentCategoryTree()),departments:a.array().items(n.DepartmentIdentifier())})}static CategoryMetaResponse(){return a.object({logo:n.Media(),uid:a.number(),banners:n.ImageUrls(),_custom_json:a.any(),name:a.string().allow("")})}static HomeListingResponse(){return a.object({items:a.array().items(n.ProductListingDetail()),page:n.Page().required(),message:a.string().allow("")})}static Department(){return a.object({uid:a.number(),logo:n.Media(),priority_order:a.number(),name:a.string().allow(""),slug:a.string().allow("")})}static DepartmentResponse(){return a.object({items:a.array().items(n.Department())})}static AutocompleteItem(){return a.object({logo:n.Media(),display:a.string().allow(""),type:a.string().allow(""),_custom_json:a.any(),action:n.ProductListingAction()})}static AutoCompleteResponse(){return a.object({items:a.array().items(n.AutocompleteItem())})}static CollectionQuery(){return a.object({op:a.string().allow("").required(),value:a.array().items(a.any()).required(),attribute:a.string().allow("").required()})}static GetCollectionDetailNest(){return a.object({is_active:a.boolean(),uid:a.string().allow(""),sort_on:a.string().allow(""),meta:a.any(),banners:n.ImageUrls(),cron:a.any(),_schedule:a.any(),query:a.array().items(n.CollectionQuery()),description:a.string().allow(""),type:a.string().allow(""),_custom_json:a.any(),name:a.string().allow(""),allow_sort:a.boolean(),visible_facets_keys:a.array().items(a.string().allow("")),badge:a.any(),slug:a.string().allow(""),action:n.ProductListingAction(),allow_facets:a.boolean(),logo:n.Media(),priority:a.number(),tags:a.array().items(a.string().allow("")),app_id:a.string().allow("")})}static CollectionListingFilterTag(){return a.object({name:a.string().allow(""),is_selected:a.boolean(),display:a.string().allow("")})}static CollectionListingFilterType(){return a.object({name:a.string().allow(""),is_selected:a.boolean(),display:a.string().allow("")})}static CollectionListingFilter(){return a.object({tags:a.array().items(n.CollectionListingFilterTag()),type:a.array().items(n.CollectionListingFilterType())})}static GetCollectionListingResponse(){return a.object({items:a.array().items(n.GetCollectionDetailNest()),filters:n.CollectionListingFilter(),page:n.Page().required()})}static CollectionDetailResponse(){return a.object({is_active:a.boolean(),sort_on:a.string().allow(""),meta:a.any(),banners:n.ImageUrls(),cron:a.any(),_schedule:a.any(),query:a.array().items(n.CollectionQuery()),description:a.string().allow(""),type:a.string().allow(""),_custom_json:a.any(),name:a.string().allow(""),allow_sort:a.boolean(),visible_facets_keys:a.array().items(a.string().allow("")),badge:a.any(),slug:a.string().allow(""),allow_facets:a.boolean(),logo:n.Media(),priority:a.number(),tag:a.array().items(a.string().allow("")),app_id:a.string().allow("")})}static GetFollowListingResponse(){return a.object({items:a.array().items(n.ProductListingDetail()).required(),page:n.Page().required()})}static FollowPostResponse(){return a.object({message:a.string().allow("").required(),id:a.string().allow("").required()})}static FollowerCountResponse(){return a.object({count:a.number()})}static FollowIdsData(){return a.object({products:a.array().items(a.number()),collections:a.array().items(a.number()),brands:a.array().items(a.number())})}static FollowIdsResponse(){return a.object({data:n.FollowIdsData()})}static LatLong(){return a.object({coordinates:a.array().items(a.number()),type:a.string().allow("")})}static Store(){return a.object({uid:a.number(),store_email:a.string().allow(""),state:a.string().allow(""),country:a.string().allow(""),pincode:a.number(),city:a.string().allow(""),address:a.string().allow(""),store_code:a.string().allow(""),lat_long:n.LatLong(),name:a.string().allow(""),tags:a.array().items(a.string().allow(""))})}static StoreListingResponse(){return a.object({items:a.array().items(n.Store()).required(),page:n.Page().required()})}static StoreDepartments(){return a.object({uid:a.number(),logo:a.any(),priority_order:a.number(),name:a.string().allow(""),slug:a.string().allow("")})}static CompanyStore(){return a.object({uid:a.number(),name:a.string().allow(""),company_type:a.string().allow(""),business_type:a.string().allow("")})}static SellerPhoneNumber(){return a.object({country_code:a.number().required(),number:a.string().allow("").required()})}static StoreManagerSerializer(){return a.object({name:a.string().allow(""),email:a.string().allow(""),mobile_no:n.SellerPhoneNumber()})}static StoreAddressSerializer(){return a.object({latitude:a.number(),state:a.string().allow(""),country:a.string().allow(""),landmark:a.string().allow(""),address1:a.string().allow(""),pincode:a.number(),city:a.string().allow(""),longitude:a.number(),address2:a.string().allow("")})}static AppStore(){return a.object({uid:a.number(),departments:a.array().items(n.StoreDepartments()),company:n.CompanyStore(),manager:n.StoreManagerSerializer(),store_code:a.string().allow(""),address:n.StoreAddressSerializer(),name:a.string().allow(""),contact_numbers:a.array().items(n.SellerPhoneNumber())})}static ApplicationStoreListing(){return a.object({filters:a.array().items(a.any()),items:a.array().items(n.AppStore()),page:n.Page()})}static Time(){return a.object({hour:a.number(),minute:a.number()})}static StoreTiming(){return a.object({open:a.boolean(),closing:n.Time(),weekday:a.string().allow(""),opening:n.Time()})}static StoreDetails(){return a.object({uid:a.number(),departments:a.array().items(n.StoreDepartments()),company:n.CompanyStore(),manager:n.StoreManagerSerializer(),store_code:a.string().allow(""),timing:a.array().items(n.StoreTiming()),address:n.StoreAddressSerializer(),_custom_json:a.any(),name:a.string().allow(""),contact_numbers:a.array().items(n.SellerPhoneNumber())})}static UserDetail(){return a.object({super_user:a.boolean(),contact:a.string().allow(""),username:a.string().allow("").required(),user_id:a.string().allow("").required()})}static Size(){return a.object({quantity:a.number(),value:a.any(),display:a.any(),is_available:a.boolean()})}static ProductGroupPrice(){return a.object({max_effective:a.number(),min_effective:a.number(),min_marked:a.number(),currency:a.any(),max_marked:a.number()})}static ProductDetails(){return a.object({template_tag:a.any(),rating_count:a.number(),image_nature:a.any(),has_variant:a.boolean(),description:a.any(),out_of_stock:a.boolean(),hsn_code:a.number(),grouped_attributes:a.any(),item_code:a.any(),name:a.any(),country_of_origin:a.any(),short_description:a.any(),media:a.array().items(a.any()),attributes:a.any(),is_set:a.boolean(),images:a.array().items(a.any()),slug:a.any(),rating:a.number(),identifier:a.any(),highlights:a.array().items(a.any()),brand_uid:a.number()})}static ProductInGroup(){return a.object({auto_add_to_cart:a.boolean(),max_quantity:a.number().required(),sizes:a.array().items(n.Size()),price:n.ProductGroupPrice(),auto_select:a.boolean(),product_details:n.ProductDetails(),min_quantity:a.number(),allow_remove:a.boolean(),product_uid:a.number().required()})}static ProductGroupingModel(){return a.object({logo:a.string().allow("").allow(null),is_active:a.boolean(),meta:a.any(),verified_by:n.UserDetail(),created_on:a.string().allow("").required(),company_id:a.number(),page_visibility:a.array().items(a.any()),modified_on:a.string().allow("").required(),created_by:n.UserDetail(),modified_by:n.UserDetail(),products:a.array().items(n.ProductInGroup()).required(),same_store_assignment:a.boolean(),_id:a.any(),name:a.any().required(),choice:a.any(),slug:a.any(),verified_on:a.string().allow("")})}static ProductBundle(){return a.object({items:a.array().items(n.ProductGroupingModel())})}static StoreV3(){return a.object({uid:a.number(),name:a.string().allow(""),count:a.number()})}static ArticleAssignmentV3(){return a.object({strategy:a.string().allow(""),level:a.string().allow("")})}static StrategyWiseListingSchemaV3(){return a.object({distance:a.number(),pincode:a.number(),tat:a.number(),quantity:a.number()})}static DetailsSchemaV3(){return a.object({value:a.string().allow(""),type:a.string().allow(""),key:a.string().allow("")})}static SellerGroupAttributes(){return a.object({title:a.string().allow(""),details:a.array().items(n.DetailsSchemaV3())})}static ReturnConfigSchemaV3(){return a.object({unit:a.string().allow(""),returnable:a.boolean(),time:a.number()})}static ProductSetDistributionSizeV3(){return a.object({pieces:a.number(),size:a.string().allow("")})}static ProductSetDistributionV3(){return a.object({sizes:a.array().items(n.ProductSetDistributionSizeV3())})}static ProductSetV3(){return a.object({quantity:a.number(),size_distribution:n.ProductSetDistributionV3()})}static ProductStockPriceV3(){return a.object({effective:a.number(),currency_code:a.string().allow(""),currency_symbol:a.string().allow(""),marked:a.number(),selling:a.number()})}static ProductStockUnitPriceV3(){return a.object({unit:a.string().allow(""),currency_symbol:a.string().allow(""),currency_code:a.string().allow(""),price:a.number()})}static MarketPlaceSttributesSchemaV3(){return a.object({title:a.string().allow(""),details:a.array().items(n.DetailsSchemaV3())})}static SellerV3(){return a.object({uid:a.number(),name:a.string().allow(""),count:a.number()})}static PromiseSchema(){return a.object({min:a.string().allow(""),max:a.string().allow("")})}static ProductSizePriceResponseV3(){return a.object({store:n.StoreV3(),article_assignment:n.ArticleAssignmentV3(),is_cod:a.boolean(),strategy_wise_listing:a.array().items(n.StrategyWiseListingSchemaV3()),quantity:a.number(),item_type:a.string().allow(""),grouped_attributes:a.array().items(n.SellerGroupAttributes()),return_config:n.ReturnConfigSchemaV3(),article_id:a.string().allow(""),is_gift:a.boolean(),set:n.ProductSetV3(),seller_count:a.number(),price_per_piece:n.ProductStockPriceV3(),discount_meta:n.DiscountMeta(),discount:a.string().allow(""),long_lat:a.array().items(a.number()),special_badge:a.string().allow(""),price:n.ProductStockPriceV3(),price_per_unit:n.ProductStockUnitPriceV3(),pincode:a.number(),marketplace_attributes:a.array().items(n.MarketPlaceSttributesSchemaV3()),seller:n.SellerV3(),delivery_promise:n.PromiseSchema()})}static ProductSizeSellerFilterSchemaV3(){return a.object({name:a.string().allow(""),is_selected:a.boolean(),value:a.string().allow("")})}static ProductSizeSellersResponseV3(){return a.object({items:a.array().items(n.ProductSizePriceResponseV3()),page:n.Page().required(),sort_on:a.array().items(n.ProductSizeSellerFilterSchemaV3())})}}e.exports=n},3080:(e,t,r)=>{const a=r(9955);r(5104),e.exports=class{static followById(){return a.object({collectionType:a.string().allow("").required(),collectionId:a.string().allow("").required()}).required()}static getBrandDetailBySlug(){return a.object({slug:a.string().allow("").required()}).required()}static getBrands(){return a.object({department:a.string().allow(""),pageNo:a.number(),pageSize:a.number()})}static getCategories(){return a.object({department:a.string().allow("")})}static getCategoryDetailBySlug(){return a.object({slug:a.string().allow("").required()}).required()}static getCollectionDetailBySlug(){return a.object({slug:a.string().allow("").required()}).required()}static getCollectionItemsBySlug(){return a.object({slug:a.string().allow("").required(),f:a.string().allow(""),q:a.string().allow(""),filters:a.boolean(),sortOn:a.string().allow(""),pageId:a.string().allow(""),pageSize:a.number(),pageNo:a.number(),pageType:a.string().allow("")}).required()}static getCollections(){return a.object({pageNo:a.number(),pageSize:a.number(),tag:a.array().items(a.string().allow("")),q:a.string().allow("")})}static getComparedFrequentlyProductBySlug(){return a.object({slug:a.string().allow("").required()}).required()}static getDepartments(){return a.object({})}static getFollowIds(){return a.object({collectionType:a.string().allow("")})}static getFollowedListing(){return a.object({collectionType:a.string().allow("").required(),pageId:a.string().allow(""),pageSize:a.number()}).required()}static getFollowerCountById(){return a.object({collectionType:a.string().allow("").required(),collectionId:a.string().allow("").required()}).required()}static getHomeProducts(){return a.object({sortOn:a.string().allow(""),pageId:a.string().allow(""),pageSize:a.number()})}static getInStockLocations(){return a.object({pageNo:a.number(),pageSize:a.number(),q:a.string().allow(""),city:a.string().allow(""),range:a.number(),latitude:a.number(),longitude:a.number()})}static getLocationDetailsById(){return a.object({locationId:a.number().required()}).required()}static getProductBundlesBySlug(){return a.object({slug:a.string().allow(""),id:a.string().allow("")})}static getProductComparisonBySlugs(){return a.object({slug:a.array().items(a.string().allow("")).required()}).required()}static getProductDetailBySlug(){return a.object({slug:a.string().allow("").required()}).required()}static getProductPriceBySlug(){return a.object({slug:a.string().allow("").required(),size:a.string().allow("").required(),storeId:a.number(),moq:a.number()}).required()}static getProductSellersBySlug(){return a.object({slug:a.string().allow("").required(),size:a.string().allow("").required(),strategy:a.string().allow(""),pageNo:a.number(),pageSize:a.number()}).required()}static getProductSizesBySlug(){return a.object({slug:a.string().allow("").required(),storeId:a.number()}).required()}static getProductStockByIds(){return a.object({itemId:a.string().allow(""),alu:a.string().allow(""),skuCode:a.string().allow(""),ean:a.string().allow(""),upc:a.string().allow("")})}static getProductStockForTimeByIds(){return a.object({timestamp:a.string().allow("").required(),pageSize:a.number(),pageId:a.string().allow("")}).required()}static getProductVariantsBySlug(){return a.object({slug:a.string().allow("").required()}).required()}static getProducts(){return a.object({q:a.string().allow(""),f:a.string().allow(""),filters:a.boolean(),sortOn:a.string().allow(""),pageId:a.string().allow(""),pageSize:a.number(),pageNo:a.number(),pageType:a.string().allow("")})}static getSearchResults(){return a.object({q:a.string().allow("").required()}).required()}static getSimilarComparisonProductBySlug(){return a.object({slug:a.string().allow("").required()}).required()}static getStores(){return a.object({pageNo:a.number(),pageSize:a.number(),q:a.string().allow(""),city:a.string().allow(""),range:a.number(),latitude:a.number(),longitude:a.number(),tags:a.string().allow("")})}static unfollowById(){return a.object({collectionType:a.string().allow("").required(),collectionId:a.string().allow("").required()}).required()}}},4080:(e,t,r)=>{const a=r(8336),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(9916),s=r(4776),i=(r(3768),r(9012)),l=r(3548),{Logger:c}=r(1544);r(9955),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={getLocations:"/service/common/configuration/v1.0/location",searchApplication:"/service/common/configuration/v1.0/application/search-application"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async getLocations({locationType:e,id:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.getLocations().validate({locationType:e,id:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.getLocations().validate({locationType:e,id:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > Common > getLocations \n ${p}`});const g={};g.location_type=e,g.id=t;const m=await a.execute(this._conf,"get",s({url:this._urls.getLocations,params:{}}),g,void 0,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.Locations().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > Common > getLocations \n ${f}`})}return m}async searchApplication({authorization:e,query:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.searchApplication().validate({authorization:e,query:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.searchApplication().validate({authorization:e,query:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > Common > searchApplication \n ${p}`});const g={};g.query=t;const m={};m.authorization=e;const w=await a.execute(this._conf,"get",s({url:this._urls.searchApplication,params:{}}),g,void 0,{...m,...r},{responseHeaders:u});let f=w;u&&(f=w[0]);const{error:y}=l.ApplicationResponse().validate(f,{abortEarly:!1,allowUnknown:!0});if(y){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(y));c({level:"WARN",message:`Response Validation Warnings for application > Common > searchApplication \n ${y}`})}return w}}},3548:(e,t,r)=>{const a=r(9955);class n{static ApplicationResponse(){return a.object({application:n.Application()})}static Domain(){return a.object({verified:a.boolean(),is_primary:a.boolean(),is_shortlink:a.boolean(),_id:a.string().allow(""),name:a.string().allow(""),is_predefined:a.boolean()})}static ApplicationWebsite(){return a.object({enabled:a.boolean(),basepath:a.string().allow("")})}static ApplicationCors(){return a.object({domains:a.array().items(a.string().allow(""))})}static ApplicationAuth(){return a.object({enabled:a.boolean()})}static ApplicationRedirections(){return a.object({redirect_from:a.string().allow(""),redirect_to:a.string().allow(""),type:a.string().allow("")})}static ApplicationMeta(){return a.object({name:a.string().allow(""),value:a.string().allow("")})}static SecureUrl(){return a.object({secure_url:a.string().allow("")})}static Application(){return a.object({website:n.ApplicationWebsite(),cors:n.ApplicationCors(),auth:n.ApplicationAuth(),description:a.string().allow(""),channel_type:a.string().allow(""),cache_ttl:a.number(),is_internal:a.boolean(),is_active:a.boolean(),_id:a.string().allow(""),name:a.string().allow(""),owner:a.string().allow(""),company_id:a.number(),token:a.string().allow(""),redirections:a.array().items(n.ApplicationRedirections()),meta:a.array().items(n.ApplicationMeta()),created_at:a.string().allow(""),updated_at:a.string().allow(""),__v:a.number(),banner:n.SecureUrl(),logo:n.SecureUrl(),favicon:n.SecureUrl(),domains:a.array().items(n.Domain()),app_type:a.string().allow(""),mobile_logo:n.SecureUrl(),domain:n.Domain()})}static NotFound(){return a.object({message:a.string().allow("")})}static BadRequest(){return a.object({message:a.string().allow("")})}static LocationDefaultLanguage(){return a.object({name:a.string().allow(""),code:a.string().allow("")})}static LocationDefaultCurrency(){return a.object({name:a.string().allow(""),symbol:a.string().allow(""),code:a.string().allow("")})}static LocationCountry(){return a.object({capital:a.string().allow(""),currency:a.string().allow(""),iso2:a.string().allow(""),iso3:a.string().allow(""),name:a.string().allow(""),parent:a.string().allow(""),phone_code:a.string().allow(""),type:a.string().allow(""),uid:a.number(),__v:a.number(),_id:a.string().allow(""),default_currency:n.LocationDefaultCurrency(),default_language:n.LocationDefaultLanguage(),state_code:a.string().allow(""),country_code:a.string().allow(""),latitude:a.string().allow(""),longitude:a.string().allow("")})}static Locations(){return a.object({items:a.array().items(n.LocationCountry())})}}e.exports=n},9012:(e,t,r)=>{const a=r(9955);r(3548),e.exports=class{static getLocations(){return a.object({locationType:a.string().allow(""),id:a.string().allow("")})}static searchApplication(){return a.object({authorization:a.string().allow(""),query:a.string().allow("")})}}},4064:(e,t,r)=>{const a=r(8336),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(9916),s=r(4776),i=(r(3768),r(4464)),l=r(1839),{Logger:c}=r(1544);r(9955),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={getCommunicationConsent:"/service/application/communication/v1.0/consent",upsertAppPushtoken:"/service/application/communication/v1.0/pn-token",upsertCommunicationConsent:"/service/application/communication/v1.0/consent"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async getCommunicationConsent({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getCommunicationConsent().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:u}=i.getCommunicationConsent().validate({},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Communication > getCommunicationConsent \n ${u}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getCommunicationConsent,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=l.CommunicationConsent().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));c({level:"WARN",message:`Response Validation Warnings for application > Communication > getCommunicationConsent \n ${g}`})}return d}async upsertAppPushtoken({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.upsertAppPushtoken().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.upsertAppPushtoken().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Communication > upsertAppPushtoken \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.upsertAppPushtoken,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.PushtokenRes().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Communication > upsertAppPushtoken \n ${m}`})}return p}async upsertCommunicationConsent({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.upsertCommunicationConsent().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.upsertCommunicationConsent().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Communication > upsertCommunicationConsent \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.upsertCommunicationConsent,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.CommunicationConsentRes().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Communication > upsertCommunicationConsent \n ${m}`})}return p}}},1839:(e,t,r)=>{const a=r(9955);class n{static CommunicationConsentReq(){return a.object({response:a.string().allow(""),action:a.string().allow(""),channel:a.string().allow("")})}static CommunicationConsentRes(){return a.object({app_id:a.string().allow(""),user_id:a.string().allow(""),channels:n.CommunicationConsentChannels()})}static CommunicationConsentChannelsEmail(){return a.object({response:a.string().allow(""),display_name:a.string().allow("")})}static CommunicationConsentChannelsSms(){return a.object({response:a.string().allow(""),display_name:a.string().allow("")})}static CommunicationConsentChannelsWhatsapp(){return a.object({response:a.string().allow(""),display_name:a.string().allow(""),country_code:a.string().allow(""),phone_number:a.string().allow("")})}static CommunicationConsentChannels(){return a.object({email:n.CommunicationConsentChannelsEmail(),sms:n.CommunicationConsentChannelsSms(),whatsapp:n.CommunicationConsentChannelsWhatsapp()})}static CommunicationConsent(){return a.object({app_id:a.string().allow(""),user_id:a.string().allow(""),channels:n.CommunicationConsentChannels()})}static BadRequestSchema(){return a.object({status:a.string().allow(""),message:a.string().allow("")})}static PushtokenReq(){return a.object({action:a.string().allow(""),bundle_identifier:a.string().allow(""),push_token:a.string().allow(""),unique_device_id:a.string().allow(""),type:a.string().allow("")})}static PushtokenRes(){return a.object({_id:a.string().allow(""),bundle_identifier:a.string().allow(""),push_token:a.string().allow(""),unique_device_id:a.string().allow(""),type:a.string().allow(""),platform:a.string().allow(""),application_id:a.string().allow(""),user_id:a.string().allow(""),created_at:a.string().allow(""),updated_at:a.string().allow(""),expired_at:a.string().allow("")})}}e.exports=n},4464:(e,t,r)=>{const a=r(9955),n=r(1839);e.exports=class{static getCommunicationConsent(){return a.object({})}static upsertAppPushtoken(){return a.object({body:n.PushtokenReq().required()}).required()}static upsertCommunicationConsent(){return a.object({body:n.CommunicationConsentReq().required()}).required()}}},2192:(e,t,r)=>{const a=r(8336),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(9916),s=r(4776),i=r(3768),l=r(2576),c=r(8288),{Logger:u}=r(1544);r(9955),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={getAppCurrencies:"/service/application/configuration/v1.0/currency",getAppStaffList:"/service/application/configuration/v1.0/staff/list",getAppStaffs:"/service/application/configuration/v1.0/staff",getApplication:"/service/application/configuration/v1.0/application",getBasicDetails:"/service/application/configuration/v1.0/detail",getContactInfo:"/service/application/configuration/v1.0/information",getCurrencies:"/service/application/configuration/v1.0/currencies",getCurrencyById:"/service/application/configuration/v1.0/currency/{id}",getFeatures:"/service/application/configuration/v1.0/feature",getIntegrationTokens:"/service/application/configuration/v1.0/token",getLanguages:"/service/application/configuration/v1.0/languages",getOrderingStoreCookie:"/service/application/configuration/v1.0/ordering-store/select",getOrderingStores:"/service/application/configuration/v1.0/ordering-store/stores",getOwnerInfo:"/service/application/configuration/v1.0/about",getStoreDetailById:"/service/application/configuration/v1.0/ordering-store/stores/{store_id}",removeOrderingStoreCookie:"/service/application/configuration/v1.0/ordering-store/select"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async getAppCurrencies({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=l.getAppCurrencies().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:i}=l.getAppCurrencies().validate({},{abortEarly:!1,allowUnknown:!1});i&&u({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getAppCurrencies \n ${i}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getAppCurrencies,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=c.AppCurrencyResponse().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));u({level:"WARN",message:`Response Validation Warnings for application > Configuration > getAppCurrencies \n ${g}`})}return d}async getAppStaffList({pageNo:e,pageSize:t,orderIncent:r,orderingStore:i,user:d,userName:p,requestHeaders:g}={requestHeaders:{}},{responseHeaders:m}={responseHeaders:!1}){const{error:w}=l.getAppStaffList().validate({pageNo:e,pageSize:t,orderIncent:r,orderingStore:i,user:d,userName:p},{abortEarly:!1,allowUnknown:!0});if(w)return Promise.reject(new n(w));const{error:f}=l.getAppStaffList().validate({pageNo:e,pageSize:t,orderIncent:r,orderingStore:i,user:d,userName:p},{abortEarly:!1,allowUnknown:!1});f&&u({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getAppStaffList \n ${f}`});const y={};y.page_no=e,y.page_size=t,y.order_incent=r,y.ordering_store=i,y.user=d,y.user_name=p;const b=await a.execute(this._conf,"get",s({url:this._urls.getAppStaffList,params:{}}),y,void 0,{...g},{responseHeaders:m});let h=b;m&&(h=b[0]);const{error:_}=c.AppStaffListResponse().validate(h,{abortEarly:!1,allowUnknown:!0});if(_){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(_));u({level:"WARN",message:`Response Validation Warnings for application > Configuration > getAppStaffList \n ${_}`})}return b}getAppStaffListPaginator({pageSize:e,orderIncent:t,orderingStore:r,user:a,userName:n}={}){const o=new i;return o.setCallback((async()=>{o.nextId;const s=o.pageNo,i=await this.getAppStaffList({pageNo:s,pageSize:e,orderIncent:t,orderingStore:r,user:a,userName:n});return o.setPaginator({hasNext:!!i.page.has_next,nextId:i.page.next_id}),i}).bind(this)),o}async getAppStaffs({orderIncent:e,orderingStore:t,user:r,requestHeaders:i}={requestHeaders:{}},{responseHeaders:d}={responseHeaders:!1}){const{error:p}=l.getAppStaffs().validate({orderIncent:e,orderingStore:t,user:r},{abortEarly:!1,allowUnknown:!0});if(p)return Promise.reject(new n(p));const{error:g}=l.getAppStaffs().validate({orderIncent:e,orderingStore:t,user:r},{abortEarly:!1,allowUnknown:!1});g&&u({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getAppStaffs \n ${g}`});const m={};m.order_incent=e,m.ordering_store=t,m.user=r;const w=await a.execute(this._conf,"get",s({url:this._urls.getAppStaffs,params:{}}),m,void 0,{...i},{responseHeaders:d});let f=w;d&&(f=w[0]);const{error:y}=c.AppStaffResponse().validate(f,{abortEarly:!1,allowUnknown:!0});if(y){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(y));u({level:"WARN",message:`Response Validation Warnings for application > Configuration > getAppStaffs \n ${y}`})}return w}async getApplication({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=l.getApplication().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:i}=l.getApplication().validate({},{abortEarly:!1,allowUnknown:!1});i&&u({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getApplication \n ${i}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getApplication,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=c.Application().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));u({level:"WARN",message:`Response Validation Warnings for application > Configuration > getApplication \n ${g}`})}return d}async getBasicDetails({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=l.getBasicDetails().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:i}=l.getBasicDetails().validate({},{abortEarly:!1,allowUnknown:!1});i&&u({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getBasicDetails \n ${i}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getBasicDetails,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=c.ApplicationDetail().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));u({level:"WARN",message:`Response Validation Warnings for application > Configuration > getBasicDetails \n ${g}`})}return d}async getContactInfo({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=l.getContactInfo().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:i}=l.getContactInfo().validate({},{abortEarly:!1,allowUnknown:!1});i&&u({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getContactInfo \n ${i}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getContactInfo,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=c.ApplicationInformation().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));u({level:"WARN",message:`Response Validation Warnings for application > Configuration > getContactInfo \n ${g}`})}return d}async getCurrencies({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=l.getCurrencies().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:i}=l.getCurrencies().validate({},{abortEarly:!1,allowUnknown:!1});i&&u({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getCurrencies \n ${i}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getCurrencies,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=c.CurrenciesResponse().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));u({level:"WARN",message:`Response Validation Warnings for application > Configuration > getCurrencies \n ${g}`})}return d}async getCurrencyById({id:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:i}=l.getCurrencyById().validate({id:e},{abortEarly:!1,allowUnknown:!0});if(i)return Promise.reject(new n(i));const{error:d}=l.getCurrencyById().validate({id:e},{abortEarly:!1,allowUnknown:!1});d&&u({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getCurrencyById \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getCurrencyById,params:{id:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=c.Currency().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));u({level:"WARN",message:`Response Validation Warnings for application > Configuration > getCurrencyById \n ${m}`})}return p}async getFeatures({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=l.getFeatures().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:i}=l.getFeatures().validate({},{abortEarly:!1,allowUnknown:!1});i&&u({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getFeatures \n ${i}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getFeatures,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=c.AppFeatureResponse().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));u({level:"WARN",message:`Response Validation Warnings for application > Configuration > getFeatures \n ${g}`})}return d}async getIntegrationTokens({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=l.getIntegrationTokens().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:i}=l.getIntegrationTokens().validate({},{abortEarly:!1,allowUnknown:!1});i&&u({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getIntegrationTokens \n ${i}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getIntegrationTokens,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=c.AppTokenResponse().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));u({level:"WARN",message:`Response Validation Warnings for application > Configuration > getIntegrationTokens \n ${g}`})}return d}async getLanguages({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=l.getLanguages().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:i}=l.getLanguages().validate({},{abortEarly:!1,allowUnknown:!1});i&&u({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getLanguages \n ${i}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getLanguages,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=c.LanguageResponse().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));u({level:"WARN",message:`Response Validation Warnings for application > Configuration > getLanguages \n ${g}`})}return d}async getOrderingStoreCookie({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:i}=l.getOrderingStoreCookie().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(i)return Promise.reject(new n(i));const{error:d}=l.getOrderingStoreCookie().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&u({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getOrderingStoreCookie \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.getOrderingStoreCookie,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=c.SuccessMessageResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));u({level:"WARN",message:`Response Validation Warnings for application > Configuration > getOrderingStoreCookie \n ${m}`})}return p}async getOrderingStores({pageNo:e,pageSize:t,q:r,requestHeaders:i}={requestHeaders:{}},{responseHeaders:d}={responseHeaders:!1}){const{error:p}=l.getOrderingStores().validate({pageNo:e,pageSize:t,q:r},{abortEarly:!1,allowUnknown:!0});if(p)return Promise.reject(new n(p));const{error:g}=l.getOrderingStores().validate({pageNo:e,pageSize:t,q:r},{abortEarly:!1,allowUnknown:!1});g&&u({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getOrderingStores \n ${g}`});const m={};m.page_no=e,m.page_size=t,m.q=r;const w=await a.execute(this._conf,"get",s({url:this._urls.getOrderingStores,params:{}}),m,void 0,{...i},{responseHeaders:d});let f=w;d&&(f=w[0]);const{error:y}=c.OrderingStores().validate(f,{abortEarly:!1,allowUnknown:!0});if(y){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(y));u({level:"WARN",message:`Response Validation Warnings for application > Configuration > getOrderingStores \n ${y}`})}return w}getOrderingStoresPaginator({pageSize:e,q:t}={}){const r=new i;return r.setCallback((async()=>{r.nextId;const a=r.pageNo,n=await this.getOrderingStores({pageNo:a,pageSize:e,q:t});return r.setPaginator({hasNext:!!n.page.has_next,nextId:n.page.next_id}),n}).bind(this)),r}async getOwnerInfo({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=l.getOwnerInfo().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:i}=l.getOwnerInfo().validate({},{abortEarly:!1,allowUnknown:!1});i&&u({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getOwnerInfo \n ${i}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getOwnerInfo,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=c.ApplicationAboutResponse().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));u({level:"WARN",message:`Response Validation Warnings for application > Configuration > getOwnerInfo \n ${g}`})}return d}async getStoreDetailById({storeId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:i}=l.getStoreDetailById().validate({storeId:e},{abortEarly:!1,allowUnknown:!0});if(i)return Promise.reject(new n(i));const{error:d}=l.getStoreDetailById().validate({storeId:e},{abortEarly:!1,allowUnknown:!1});d&&u({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getStoreDetailById \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getStoreDetailById,params:{storeId:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=c.OrderingStore().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));u({level:"WARN",message:`Response Validation Warnings for application > Configuration > getStoreDetailById \n ${m}`})}return p}async removeOrderingStoreCookie({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=l.removeOrderingStoreCookie().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:i}=l.removeOrderingStoreCookie().validate({},{abortEarly:!1,allowUnknown:!1});i&&u({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > removeOrderingStoreCookie \n ${i}`});const d=await a.execute(this._conf,"delete",s({url:this._urls.removeOrderingStoreCookie,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=c.SuccessMessageResponse().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));u({level:"WARN",message:`Response Validation Warnings for application > Configuration > removeOrderingStoreCookie \n ${g}`})}return d}}},8288:(e,t,r)=>{const a=r(9955);class n{static ApplicationAboutResponse(){return a.object({application_info:n.ApplicationInfo()})}static ApplicationInfo(){return a.object({company_info:n.CompanyInfo(),owner_info:n.OwnerInfo(),_id:a.string().allow(""),domain:n.Domain(),website:n.ApplicationWebsite(),cors:n.ApplicationCors(),description:a.string().allow(""),name:a.string().allow(""),meta:a.array().items(n.ApplicationMeta()),token:a.string().allow(""),secret:a.string().allow(""),created_at:a.string().allow(""),banner:n.SecureUrl(),logo:n.SecureUrl(),is_active:a.boolean(),mode:a.string().allow(""),tokens:a.array().items(n.TokenSchema()),domains:a.array().items(n.Domain()),favicon:n.SecureUrl(),mobile_logo:n.SecureUrl(),slug:a.string().allow("")})}static CompanyInfo(){return a.object({_id:a.string().allow(""),uid:a.number(),created_on:a.string().allow(""),is_active:a.boolean(),name:a.string().allow(""),addresses:a.array().items(n.CompanyAboutAddress()),notification_emails:a.array().items(a.string().allow(""))})}static OwnerInfo(){return a.object({_id:a.string().allow(""),emails:a.array().items(n.UserEmail()),phone_numbers:a.array().items(n.UserPhoneNumber()),first_name:a.string().allow(""),last_name:a.string().allow(""),profile_pic:a.string().allow("")})}static SupportedLanguage(){return a.object({name:a.string().allow(""),code:a.string().allow("")})}static LanguageResponse(){return a.object({items:a.array().items(n.SupportedLanguage())})}static AppStaffResponse(){return a.object({staff_users:a.array().items(n.AppStaff())})}static AppStaffListResponse(){return a.object({page:n.Page(),items:a.array().items(n.AppStaff())})}static OrderingStoreSelectRequest(){return a.object({ordering_store:n.OrderingStoreSelect().required()})}static OrderingStoreSelect(){return a.object({uid:a.number().required()})}static AppStaff(){return a.object({_id:a.string().allow(""),order_incent:a.boolean(),stores:a.array().items(a.number()),application:a.string().allow(""),title:a.string().allow(""),user:a.string().allow(""),employee_code:a.string().allow(""),first_name:a.string().allow(""),last_name:a.string().allow(""),profile_pic_url:a.string().allow("")})}static AppTokenResponse(){return a.object({tokens:n.Tokens(),_id:a.string().allow(""),application:a.string().allow(""),created_at:a.string().allow(""),modified_at:a.string().allow(""),__v:a.number()})}static Tokens(){return a.object({firebase:n.Firebase(),moengage:n.Moengage(),segment:n.Segment(),gtm:n.Gtm(),freshchat:n.Freshchat(),safetynet:n.Safetynet(),fynd_rewards:n.FyndRewards(),google_map:n.GoogleMap()})}static Firebase(){return a.object({credentials:n.Credentials(),enabled:a.boolean()})}static Credentials(){return a.object({ios:n.Ios(),android:n.Android(),project_id:a.string().allow(""),gcm_sender_id:a.string().allow(""),application_id:a.string().allow(""),api_key:a.string().allow("")})}static Ios(){return a.object({application_id:a.string().allow(""),api_key:a.string().allow("")})}static Android(){return a.object({application_id:a.string().allow(""),api_key:a.string().allow("")})}static Moengage(){return a.object({credentials:n.MoengageCredentials(),enabled:a.boolean()})}static MoengageCredentials(){return a.object({app_id:a.string().allow("")})}static Segment(){return a.object({credentials:n.SegmentCredentials(),enabled:a.boolean()})}static SegmentCredentials(){return a.object({write_key:a.string().allow("")})}static Gtm(){return a.object({credentials:n.GtmCredentials(),enabled:a.boolean()})}static GtmCredentials(){return a.object({api_key:a.string().allow("")})}static Freshchat(){return a.object({credentials:n.FreshchatCredentials(),enabled:a.boolean()})}static FreshchatCredentials(){return a.object({app_id:a.string().allow(""),app_key:a.string().allow(""),web_token:a.string().allow("")})}static Safetynet(){return a.object({credentials:n.SafetynetCredentials(),enabled:a.boolean()})}static SafetynetCredentials(){return a.object({api_key:a.string().allow("")})}static FyndRewards(){return a.object({credentials:n.FyndRewardsCredentials()})}static FyndRewardsCredentials(){return a.object({public_key:a.string().allow("")})}static GoogleMap(){return a.object({credentials:n.GoogleMapCredentials()})}static GoogleMapCredentials(){return a.object({api_key:a.string().allow("")})}static RewardPointsConfig(){return a.object({credit:n.Credit(),debit:n.Debit()})}static Credit(){return a.object({enabled:a.boolean()})}static Debit(){return a.object({enabled:a.boolean(),auto_apply:a.boolean(),strategy_channel:a.string().allow("")})}static ProductDetailFeature(){return a.object({similar:a.array().items(a.string().allow("")),seller_selection:a.boolean(),update_product_meta:a.boolean(),request_product:a.boolean()})}static LaunchPage(){return a.object({page_type:a.string().allow(""),params:a.any(),query:a.any()})}static LandingPageFeature(){return a.object({launch_page:n.LaunchPage(),continue_as_guest:a.boolean(),login_btn_text:a.string().allow(""),show_domain_textbox:a.boolean(),show_register_btn:a.boolean()})}static RegistrationPageFeature(){return a.object({ask_store_address:a.boolean()})}static AppFeature(){return a.object({product_detail:n.ProductDetailFeature(),landing_page:n.LandingPageFeature(),registration_page:n.RegistrationPageFeature(),home_page:n.HomePageFeature(),common:n.CommonFeature(),cart:n.CartFeature(),qr:n.QrFeature(),pcr:n.PcrFeature(),order:n.OrderFeature(),_id:a.string().allow(""),app:a.string().allow(""),created_at:a.string().allow(""),modified_at:a.string().allow(""),__v:a.number()})}static HomePageFeature(){return a.object({order_processing:a.boolean()})}static CommonFeature(){return a.object({communication_optin_dialog:n.CommunicationOptinDialogFeature(),deployment_store_selection:n.DeploymentStoreSelectionFeature(),listing_price:n.ListingPriceFeature(),currency:n.CurrencyFeature(),revenue_engine:n.RevenueEngineFeature(),feedback:n.FeedbackFeature(),compare_products:n.CompareProductsFeature(),reward_points:n.RewardPointsConfig(),listing_page:n.ListingPageFeature(),international_shipping:n.InternationalShipping()})}static InternationalShipping(){return a.object({enabled:a.boolean()})}static CommunicationOptinDialogFeature(){return a.object({visibility:a.boolean()})}static DeploymentStoreSelectionFeature(){return a.object({enabled:a.boolean(),type:a.string().allow("")})}static ListingPriceFeature(){return a.object({value:a.string().allow(""),sort:a.string().allow("")})}static ListingPageFeature(){return a.object({sort_on:a.string().allow("")})}static CurrencyFeature(){return a.object({value:a.array().items(a.string().allow("")),type:a.string().allow(""),default_currency:a.string().allow("")})}static RevenueEngineFeature(){return a.object({enabled:a.boolean()})}static FeedbackFeature(){return a.object({enabled:a.boolean()})}static CompareProductsFeature(){return a.object({enabled:a.boolean()})}static CartFeature(){return a.object({gst_input:a.boolean(),staff_selection:a.boolean(),placing_for_customer:a.boolean(),google_map:a.boolean(),revenue_engine_coupon:a.boolean()})}static QrFeature(){return a.object({application:a.boolean(),products:a.boolean(),collections:a.boolean()})}static PcrFeature(){return a.object({staff_selection:a.boolean()})}static OrderFeature(){return a.object({buy_again:a.boolean()})}static AppFeatureResponse(){return a.object({feature:n.AppFeature()})}static Currency(){return a.object({_id:a.string().allow(""),is_active:a.boolean(),name:a.string().allow(""),code:a.string().allow(""),created_at:a.string().allow(""),modified_at:a.string().allow(""),decimal_digits:a.number(),symbol:a.string().allow(""),country_name:a.string().allow(""),country_code:a.string().allow("")})}static Domain(){return a.object({verified:a.boolean(),is_primary:a.boolean(),is_shortlink:a.boolean(),_id:a.string().allow(""),name:a.string().allow(""),is_predefined:a.boolean()})}static ApplicationWebsite(){return a.object({enabled:a.boolean(),basepath:a.string().allow("")})}static ApplicationCors(){return a.object({domains:a.array().items(a.string().allow(""))})}static ApplicationAuth(){return a.object({enabled:a.boolean()})}static ApplicationRedirections(){return a.object({redirect_from:a.string().allow(""),redirect_to:a.string().allow(""),type:a.string().allow("")})}static ApplicationMeta(){return a.object({name:a.string().allow(""),value:a.string().allow("")})}static SecureUrl(){return a.object({secure_url:a.string().allow("")})}static Application(){return a.object({website:n.ApplicationWebsite(),cors:n.ApplicationCors(),auth:n.ApplicationAuth(),description:a.string().allow(""),channel_type:a.string().allow(""),cache_ttl:a.number(),is_internal:a.boolean(),is_active:a.boolean(),_id:a.string().allow(""),name:a.string().allow(""),owner:a.string().allow(""),company_id:a.number(),token:a.string().allow(""),redirections:a.array().items(n.ApplicationRedirections()),meta:a.array().items(n.ApplicationMeta()),created_at:a.string().allow(""),modified_at:a.string().allow(""),__v:a.number(),banner:n.SecureUrl(),logo:n.SecureUrl(),favicon:n.SecureUrl(),domains:a.array().items(n.Domain()),app_type:a.string().allow(""),mobile_logo:n.SecureUrl(),domain:n.Domain(),slug:a.string().allow(""),mode:a.string().allow(""),status:a.string().allow(""),tokens:a.array().items(n.TokenSchema())})}static TokenSchema(){return a.object({token:a.string().allow(""),created_by:a.object().pattern(/\S/,a.any()),created_at:a.string().allow("")})}static NotFound(){return a.object({message:a.string().allow("")})}static InvalidPayloadRequest(){return a.object({message:a.string().allow("")})}static UnhandledError(){return a.object({message:a.string().allow("")})}static SuccessMessageResponse(){return a.object({message:a.string().allow("")})}static CompanyAboutAddress(){return a.object({pincode:a.number(),address1:a.string().allow(""),address2:a.string().allow(""),city:a.string().allow(""),state:a.string().allow(""),country:a.string().allow(""),address_type:a.string().allow("")})}static UserEmail(){return a.object({active:a.boolean(),primary:a.boolean(),verified:a.boolean(),email:a.string().allow("")})}static UserPhoneNumber(){return a.object({active:a.boolean(),primary:a.boolean(),verified:a.boolean(),country_code:a.number(),phone:a.string().allow("")})}static Page(){return a.object({item_total:a.number(),next_id:a.string().allow(""),has_previous:a.boolean(),has_next:a.boolean(),current:a.number(),type:a.string().allow("").required(),size:a.number()})}static ApplicationInformation(){return a.object({address:n.InformationAddress(),support:n.InformationSupport(),social_links:n.SocialLinks(),links:a.array().items(n.Links()),copyright_text:a.string().allow(""),_id:a.string().allow(""),business_highlights:a.array().items(n.BusinessHighlights()),application:a.string().allow(""),created_at:a.string().allow(""),modified_at:a.string().allow(""),__v:a.number()})}static InformationAddress(){return a.object({loc:n.InformationLoc(),address_line:a.array().items(a.string().allow("")),phone:a.array().items(n.InformationPhone()),city:a.string().allow(""),country:a.string().allow(""),pincode:a.number()})}static InformationPhone(){return a.object({code:a.string().allow(""),number:a.string().allow("")})}static InformationSupportPhone(){return a.object({code:a.string().allow(""),number:a.string().allow(""),key:a.string().allow("")})}static InformationSupportEmail(){return a.object({value:a.string().allow(""),key:a.string().allow("")})}static InformationLoc(){return a.object({type:a.string().allow(""),coordinates:a.array().items(a.number())})}static InformationSupport(){return a.object({phone:a.array().items(n.InformationSupportPhone()),email:a.array().items(n.InformationSupportEmail()),timing:a.string().allow("")})}static SocialLinks(){return a.object({facebook:n.FacebookLink(),instagram:n.InstagramLink(),twitter:n.TwitterLink(),pinterest:n.PinterestLink(),google_plus:n.GooglePlusLink(),youtube:n.YoutubeLink(),linked_in:n.LinkedInLink(),vimeo:n.VimeoLink(),blog_link:n.BlogLink()})}static FacebookLink(){return a.object({title:a.string().allow(""),icon:a.string().allow(""),link:a.string().allow("")})}static InstagramLink(){return a.object({title:a.string().allow(""),icon:a.string().allow(""),link:a.string().allow("")})}static TwitterLink(){return a.object({title:a.string().allow(""),icon:a.string().allow(""),link:a.string().allow("")})}static PinterestLink(){return a.object({title:a.string().allow(""),icon:a.string().allow(""),link:a.string().allow("")})}static GooglePlusLink(){return a.object({title:a.string().allow(""),icon:a.string().allow(""),link:a.string().allow("")})}static YoutubeLink(){return a.object({title:a.string().allow(""),icon:a.string().allow(""),link:a.string().allow("")})}static LinkedInLink(){return a.object({title:a.string().allow(""),icon:a.string().allow(""),link:a.string().allow("")})}static VimeoLink(){return a.object({title:a.string().allow(""),icon:a.string().allow(""),link:a.string().allow("")})}static BlogLink(){return a.object({title:a.string().allow(""),icon:a.string().allow(""),link:a.string().allow("")})}static Links(){return a.object({title:a.string().allow(""),link:a.string().allow("")})}static BusinessHighlights(){return a.object({_id:a.string().allow(""),title:a.string().allow(""),icon:a.string().allow(""),sub_title:a.string().allow("")})}static ApplicationDetail(){return a.object({name:a.string().allow("").required(),description:a.string().allow(""),logo:n.SecureUrl(),mobile_logo:n.SecureUrl(),favicon:n.SecureUrl(),banner:n.SecureUrl(),domain:n.Domain(),domains:a.array().items(n.Domain()),_id:a.string().allow(""),slug:a.string().allow(""),company_id:a.number()})}static CurrenciesResponse(){return a.object({items:a.array().items(n.Currency())})}static DefaultCurrency(){return a.object({ref:a.string().allow(""),code:a.string().allow("")})}static AppCurrencyResponse(){return a.object({application:a.string().allow(""),default_currency:n.DefaultCurrency(),supported_currency:a.array().items(n.Currency()),_id:a.string().allow(""),created_at:a.string().allow(""),modified_at:a.string().allow("")})}static StoreLatLong(){return a.object({type:a.string().allow(""),coordinates:a.array().items(a.number())})}static OptedStoreAddress(){return a.object({state:a.string().allow(""),address1:a.string().allow(""),lat_long:n.StoreLatLong(),address2:a.string().allow(""),pincode:a.number(),country:a.string().allow(""),city:a.string().allow("")})}static OrderingStore(){return a.object({address:n.OptedStoreAddress(),_id:a.string().allow(""),uid:a.number(),name:a.string().allow(""),display_name:a.string().allow(""),store_type:a.string().allow(""),store_code:a.string().allow(""),pincode:a.number(),code:a.string().allow("")})}static OrderingStores(){return a.object({page:n.Page(),items:a.array().items(n.OrderingStore()),deployed_stores:a.array().items(a.number()),all_stores:a.boolean(),enabled:a.boolean(),type:a.string().allow(""),_id:a.string().allow(""),app:a.string().allow(""),__v:a.number()})}}e.exports=n},2576:(e,t,r)=>{const a=r(9955),n=r(8288);e.exports=class{static getAppCurrencies(){return a.object({})}static getAppStaffList(){return a.object({pageNo:a.number(),pageSize:a.number(),orderIncent:a.boolean(),orderingStore:a.number(),user:a.string().allow(""),userName:a.string().allow("")})}static getAppStaffs(){return a.object({orderIncent:a.boolean(),orderingStore:a.number(),user:a.string().allow("")})}static getApplication(){return a.object({})}static getBasicDetails(){return a.object({})}static getContactInfo(){return a.object({})}static getCurrencies(){return a.object({})}static getCurrencyById(){return a.object({id:a.string().allow("").required()}).required()}static getFeatures(){return a.object({})}static getIntegrationTokens(){return a.object({})}static getLanguages(){return a.object({})}static getOrderingStoreCookie(){return a.object({body:n.OrderingStoreSelectRequest().required()}).required()}static getOrderingStores(){return a.object({pageNo:a.number(),pageSize:a.number(),q:a.string().allow("")})}static getOwnerInfo(){return a.object({})}static getStoreDetailById(){return a.object({storeId:a.number().required()}).required()}static removeOrderingStoreCookie(){return a.object({})}}},6900:(e,t,r)=>{const a=r(8336),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(9916),s=r(4776),i=r(3768),l=r(4188),c=r(1336),{Logger:u}=r(1544);r(9955),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={getAnnouncements:"/service/application/content/v1.0/announcements",getBlog:"/service/application/content/v1.0/blogs/{slug}",getBlogs:"/service/application/content/v1.0/blogs/",getCustomFields:"/service/application/content/v1.0/metafields/{resource}/{resource_id}",getCustomObject:"/service/application/content/v1.0/metaobjects/{metaobject_id}",getDataLoaders:"/service/application/content/v1.0/data-loader",getFaqBySlug:"/service/application/content/v1.0/faq/{slug}",getFaqCategories:"/service/application/content/v1.0/faq/categories",getFaqCategoryBySlug:"/service/application/content/v1.0/faq/category/{slug}",getFaqs:"/service/application/content/v1.0/faq",getFaqsByCategorySlug:"/service/application/content/v1.0/faq/category/{slug}/faqs",getLandingPage:"/service/application/content/v1.0/landing-page",getLegalInformation:"/service/application/content/v1.0/legal",getNavigations:"/service/application/content/v1.0/navigations/",getPage:"/service/application/content/v2.0/pages/{slug}",getPages:"/service/application/content/v2.0/pages/",getSEOConfiguration:"/service/application/content/v1.0/seo",getSEOMarkupSchemas:"/service/application/content/v1.0/seo/schema",getSlideshow:"/service/application/content/v1.0/slideshow/{slug}",getSlideshows:"/service/application/content/v1.0/slideshow/",getSupportInformation:"/service/application/content/v1.0/support",getTags:"/service/application/content/v1.0/tags"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async getAnnouncements({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=l.getAnnouncements().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:i}=l.getAnnouncements().validate({},{abortEarly:!1,allowUnknown:!1});i&&u({level:"WARN",message:`Parameter Validation warrnings for application > Content > getAnnouncements \n ${i}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getAnnouncements,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=c.AnnouncementsResponseSchema().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));u({level:"WARN",message:`Response Validation Warnings for application > Content > getAnnouncements \n ${g}`})}return d}async getBlog({slug:e,rootId:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:i}={responseHeaders:!1}){const{error:d}=l.getBlog().validate({slug:e,rootId:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=l.getBlog().validate({slug:e,rootId:t},{abortEarly:!1,allowUnknown:!1});p&&u({level:"WARN",message:`Parameter Validation warrnings for application > Content > getBlog \n ${p}`});const g={};g.root_id=t;const m=await a.execute(this._conf,"get",s({url:this._urls.getBlog,params:{slug:e}}),g,void 0,{...r},{responseHeaders:i});let w=m;i&&(w=m[0]);const{error:f}=c.BlogSchema().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));u({level:"WARN",message:`Response Validation Warnings for application > Content > getBlog \n ${f}`})}return m}async getBlogs({pageNo:e,pageSize:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:i}={responseHeaders:!1}){const{error:d}=l.getBlogs().validate({pageNo:e,pageSize:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=l.getBlogs().validate({pageNo:e,pageSize:t},{abortEarly:!1,allowUnknown:!1});p&&u({level:"WARN",message:`Parameter Validation warrnings for application > Content > getBlogs \n ${p}`});const g={};g.page_no=e,g.page_size=t;const m=await a.execute(this._conf,"get",s({url:this._urls.getBlogs,params:{}}),g,void 0,{...r},{responseHeaders:i});let w=m;i&&(w=m[0]);const{error:f}=c.BlogGetResponse().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));u({level:"WARN",message:`Response Validation Warnings for application > Content > getBlogs \n ${f}`})}return m}getBlogsPaginator({pageSize:e}={}){const t=new i;return t.setCallback((async()=>{t.nextId;const r=t.pageNo,a=await this.getBlogs({pageNo:r,pageSize:e});return t.setPaginator({hasNext:!!a.page.has_next,nextId:a.page.next_id}),a}).bind(this)),t}async getCustomFields({resource:e,resourceId:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:i}={responseHeaders:!1}){const{error:d}=l.getCustomFields().validate({resource:e,resourceId:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=l.getCustomFields().validate({resource:e,resourceId:t},{abortEarly:!1,allowUnknown:!1});p&&u({level:"WARN",message:`Parameter Validation warrnings for application > Content > getCustomFields \n ${p}`});const g=await a.execute(this._conf,"get",s({url:this._urls.getCustomFields,params:{resource:e,resourceId:t}}),{},void 0,{...r},{responseHeaders:i});let m=g;i&&(m=g[0]);const{error:w}=c.CustomFieldsResponseByResourceIdSchema().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));u({level:"WARN",message:`Response Validation Warnings for application > Content > getCustomFields \n ${w}`})}return g}async getCustomObject({metaobjectId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:i}=l.getCustomObject().validate({metaobjectId:e},{abortEarly:!1,allowUnknown:!0});if(i)return Promise.reject(new n(i));const{error:d}=l.getCustomObject().validate({metaobjectId:e},{abortEarly:!1,allowUnknown:!1});d&&u({level:"WARN",message:`Parameter Validation warrnings for application > Content > getCustomObject \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getCustomObject,params:{metaobjectId:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=c.CustomObjectByIdSchema().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));u({level:"WARN",message:`Response Validation Warnings for application > Content > getCustomObject \n ${m}`})}return p}async getDataLoaders({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=l.getDataLoaders().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:i}=l.getDataLoaders().validate({},{abortEarly:!1,allowUnknown:!1});i&&u({level:"WARN",message:`Parameter Validation warrnings for application > Content > getDataLoaders \n ${i}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getDataLoaders,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=c.DataLoadersSchema().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));u({level:"WARN",message:`Response Validation Warnings for application > Content > getDataLoaders \n ${g}`})}return d}async getFaqBySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:i}=l.getFaqBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(i)return Promise.reject(new n(i));const{error:d}=l.getFaqBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!1});d&&u({level:"WARN",message:`Parameter Validation warrnings for application > Content > getFaqBySlug \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getFaqBySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=c.FaqSchema().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));u({level:"WARN",message:`Response Validation Warnings for application > Content > getFaqBySlug \n ${m}`})}return p}async getFaqCategories({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=l.getFaqCategories().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:i}=l.getFaqCategories().validate({},{abortEarly:!1,allowUnknown:!1});i&&u({level:"WARN",message:`Parameter Validation warrnings for application > Content > getFaqCategories \n ${i}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getFaqCategories,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=c.GetFaqCategoriesSchema().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));u({level:"WARN",message:`Response Validation Warnings for application > Content > getFaqCategories \n ${g}`})}return d}async getFaqCategoryBySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:i}=l.getFaqCategoryBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(i)return Promise.reject(new n(i));const{error:d}=l.getFaqCategoryBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!1});d&&u({level:"WARN",message:`Parameter Validation warrnings for application > Content > getFaqCategoryBySlug \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getFaqCategoryBySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=c.GetFaqCategoryBySlugSchema().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));u({level:"WARN",message:`Response Validation Warnings for application > Content > getFaqCategoryBySlug \n ${m}`})}return p}async getFaqs({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=l.getFaqs().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:i}=l.getFaqs().validate({},{abortEarly:!1,allowUnknown:!1});i&&u({level:"WARN",message:`Parameter Validation warrnings for application > Content > getFaqs \n ${i}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getFaqs,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=c.FaqResponseSchema().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));u({level:"WARN",message:`Response Validation Warnings for application > Content > getFaqs \n ${g}`})}return d}async getFaqsByCategorySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:i}=l.getFaqsByCategorySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(i)return Promise.reject(new n(i));const{error:d}=l.getFaqsByCategorySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!1});d&&u({level:"WARN",message:`Parameter Validation warrnings for application > Content > getFaqsByCategorySlug \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getFaqsByCategorySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=c.GetFaqSchema().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));u({level:"WARN",message:`Response Validation Warnings for application > Content > getFaqsByCategorySlug \n ${m}`})}return p}async getLandingPage({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=l.getLandingPage().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:i}=l.getLandingPage().validate({},{abortEarly:!1,allowUnknown:!1});i&&u({level:"WARN",message:`Parameter Validation warrnings for application > Content > getLandingPage \n ${i}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getLandingPage,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=c.LandingPageSchema().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));u({level:"WARN",message:`Response Validation Warnings for application > Content > getLandingPage \n ${g}`})}return d}async getLegalInformation({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=l.getLegalInformation().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:i}=l.getLegalInformation().validate({},{abortEarly:!1,allowUnknown:!1});i&&u({level:"WARN",message:`Parameter Validation warrnings for application > Content > getLegalInformation \n ${i}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getLegalInformation,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=c.ApplicationLegal().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));u({level:"WARN",message:`Response Validation Warnings for application > Content > getLegalInformation \n ${g}`})}return d}async getNavigations({pageNo:e,pageSize:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:i}={responseHeaders:!1}){const{error:d}=l.getNavigations().validate({pageNo:e,pageSize:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=l.getNavigations().validate({pageNo:e,pageSize:t},{abortEarly:!1,allowUnknown:!1});p&&u({level:"WARN",message:`Parameter Validation warrnings for application > Content > getNavigations \n ${p}`});const g={};g.page_no=e,g.page_size=t;const m=await a.execute(this._conf,"get",s({url:this._urls.getNavigations,params:{}}),g,void 0,{...r},{responseHeaders:i});let w=m;i&&(w=m[0]);const{error:f}=c.NavigationGetResponse().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));u({level:"WARN",message:`Response Validation Warnings for application > Content > getNavigations \n ${f}`})}return m}getNavigationsPaginator({pageSize:e}={}){const t=new i;return t.setCallback((async()=>{t.nextId;const r=t.pageNo,a=await this.getNavigations({pageNo:r,pageSize:e});return t.setPaginator({hasNext:!!a.page.has_next,nextId:a.page.next_id}),a}).bind(this)),t}async getPage({slug:e,rootId:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:i}={responseHeaders:!1}){const{error:d}=l.getPage().validate({slug:e,rootId:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=l.getPage().validate({slug:e,rootId:t},{abortEarly:!1,allowUnknown:!1});p&&u({level:"WARN",message:`Parameter Validation warrnings for application > Content > getPage \n ${p}`});const g={};g.root_id=t;const m=await a.execute(this._conf,"get",s({url:this._urls.getPage,params:{slug:e}}),g,void 0,{...r},{responseHeaders:i});let w=m;i&&(w=m[0]);const{error:f}=c.PageSchema().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));u({level:"WARN",message:`Response Validation Warnings for application > Content > getPage \n ${f}`})}return m}async getPages({pageNo:e,pageSize:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:i}={responseHeaders:!1}){const{error:d}=l.getPages().validate({pageNo:e,pageSize:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=l.getPages().validate({pageNo:e,pageSize:t},{abortEarly:!1,allowUnknown:!1});p&&u({level:"WARN",message:`Parameter Validation warrnings for application > Content > getPages \n ${p}`});const g={};g.page_no=e,g.page_size=t;const m=await a.execute(this._conf,"get",s({url:this._urls.getPages,params:{}}),g,void 0,{...r},{responseHeaders:i});let w=m;i&&(w=m[0]);const{error:f}=c.PageGetResponse().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));u({level:"WARN",message:`Response Validation Warnings for application > Content > getPages \n ${f}`})}return m}getPagesPaginator({pageSize:e}={}){const t=new i;return t.setCallback((async()=>{t.nextId;const r=t.pageNo,a=await this.getPages({pageNo:r,pageSize:e});return t.setPaginator({hasNext:!!a.page.has_next,nextId:a.page.next_id}),a}).bind(this)),t}async getSEOConfiguration({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=l.getSEOConfiguration().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:i}=l.getSEOConfiguration().validate({},{abortEarly:!1,allowUnknown:!1});i&&u({level:"WARN",message:`Parameter Validation warrnings for application > Content > getSEOConfiguration \n ${i}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getSEOConfiguration,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=c.SeoComponent().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));u({level:"WARN",message:`Response Validation Warnings for application > Content > getSEOConfiguration \n ${g}`})}return d}async getSEOMarkupSchemas({pageType:e,active:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:i}={responseHeaders:!1}){const{error:d}=l.getSEOMarkupSchemas().validate({pageType:e,active:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=l.getSEOMarkupSchemas().validate({pageType:e,active:t},{abortEarly:!1,allowUnknown:!1});p&&u({level:"WARN",message:`Parameter Validation warrnings for application > Content > getSEOMarkupSchemas \n ${p}`});const g={};g.page_type=e,g.active=t;const m=await a.execute(this._conf,"get",s({url:this._urls.getSEOMarkupSchemas,params:{}}),g,void 0,{...r},{responseHeaders:i});let w=m;i&&(w=m[0]);const{error:f}=c.SeoSchemaComponent().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));u({level:"WARN",message:`Response Validation Warnings for application > Content > getSEOMarkupSchemas \n ${f}`})}return m}async getSlideshow({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:i}=l.getSlideshow().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(i)return Promise.reject(new n(i));const{error:d}=l.getSlideshow().validate({slug:e},{abortEarly:!1,allowUnknown:!1});d&&u({level:"WARN",message:`Parameter Validation warrnings for application > Content > getSlideshow \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getSlideshow,params:{slug:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=c.SlideshowSchema().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));u({level:"WARN",message:`Response Validation Warnings for application > Content > getSlideshow \n ${m}`})}return p}async getSlideshows({pageNo:e,pageSize:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:i}={responseHeaders:!1}){const{error:d}=l.getSlideshows().validate({pageNo:e,pageSize:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=l.getSlideshows().validate({pageNo:e,pageSize:t},{abortEarly:!1,allowUnknown:!1});p&&u({level:"WARN",message:`Parameter Validation warrnings for application > Content > getSlideshows \n ${p}`});const g={};g.page_no=e,g.page_size=t;const m=await a.execute(this._conf,"get",s({url:this._urls.getSlideshows,params:{}}),g,void 0,{...r},{responseHeaders:i});let w=m;i&&(w=m[0]);const{error:f}=c.SlideshowGetResponse().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));u({level:"WARN",message:`Response Validation Warnings for application > Content > getSlideshows \n ${f}`})}return m}getSlideshowsPaginator({pageSize:e}={}){const t=new i;return t.setCallback((async()=>{t.nextId;const r=t.pageNo,a=await this.getSlideshows({pageNo:r,pageSize:e});return t.setPaginator({hasNext:!!a.page.has_next,nextId:a.page.next_id}),a}).bind(this)),t}async getSupportInformation({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=l.getSupportInformation().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:i}=l.getSupportInformation().validate({},{abortEarly:!1,allowUnknown:!1});i&&u({level:"WARN",message:`Parameter Validation warrnings for application > Content > getSupportInformation \n ${i}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getSupportInformation,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=c.Support().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));u({level:"WARN",message:`Response Validation Warnings for application > Content > getSupportInformation \n ${g}`})}return d}async getTags({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=l.getTags().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:i}=l.getTags().validate({},{abortEarly:!1,allowUnknown:!1});i&&u({level:"WARN",message:`Parameter Validation warrnings for application > Content > getTags \n ${i}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getTags,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=c.TagsSchema().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));u({level:"WARN",message:`Response Validation Warnings for application > Content > getTags \n ${g}`})}return d}}},1336:(e,t,r)=>{const a=r(9955);class n{static ApplicationLegal(){return a.object({application:a.string().allow(""),tnc:a.string().allow(""),policy:a.string().allow(""),shipping:a.string().allow(""),returns:a.string().allow(""),faq:a.array().items(n.ApplicationLegalFAQ()),_id:a.string().allow(""),updated_at:a.string().allow(""),created_at:a.string().allow("")})}static ApplicationLegalFAQ(){return a.object({question:a.string().allow(""),answer:a.string().allow("")})}static SeoComponent(){return a.object({seo:n.SeoSchema()})}static SeoSchema(){return a.object({app:a.string().allow(""),_id:a.string().allow(""),robots_txt:a.string().allow(""),sitemap_enabled:a.boolean(),additonal_sitemap:a.string().allow(""),cannonical_enabled:a.boolean(),custom_meta_tags:a.array().items(n.CustomMetaTag()),details:n.Detail(),created_at:a.string().allow(""),updated_at:a.string().allow("")})}static CustomMetaTag(){return a.object({name:a.string().allow(""),content:a.string().allow(""),_id:a.string().allow("")})}static Detail(){return a.object({title:a.string().allow(""),description:a.string().allow(""),image_url:a.string().allow("")})}static SeoSchemaComponent(){return a.object({items:a.array().items(n.SEOSchemaMarkupTemplate())})}static SEOSchemaMarkupTemplate(){return a.object({id:a.string().allow(""),title:a.string().allow(""),page_type:a.string().allow(""),description:a.string().allow(""),schema:a.string().allow(""),active:a.boolean(),created_at:a.string().allow(""),updated_at:a.string().allow(""),application:a.string().allow("")})}static ScheduleSchema(){return a.object({cron:a.string().allow(""),start:a.string().allow(""),end:a.string().allow(""),duration:a.number(),next_schedule:a.array().items(n.NextSchedule())})}static NextSchedule(){return a.object({start:a.string().allow(""),end:a.string().allow("")})}static AnnouncementSchema(){return a.object({announcement:a.string().allow(""),schedule:n.ScheduleStartSchema()})}static ScheduleStartSchema(){return a.object({start:a.string().allow(""),end:a.string().allow("")})}static BlogGetResponse(){return a.object({items:a.array().items(n.BlogSchema()),page:n.Page()})}static ResourceContent(){return a.object({type:a.string().allow(""),value:a.string().allow("")})}static Asset(){return a.object({aspect_ratio:a.string().allow(""),id:a.string().allow(""),secure_url:a.string().allow("")})}static Author(){return a.object({designation:a.string().allow(""),id:a.string().allow(""),name:a.string().allow("")})}static BlogSchema(){return a.object({_id:a.string().allow(""),_custom_json:a.any(),application:a.string().allow(""),archived:a.boolean(),author:n.Author(),content:a.array().items(n.ResourceContent()),feature_image:n.Asset(),published:a.boolean(),reading_time:a.string().allow(""),slug:a.string().allow(""),tags:a.array().items(a.string().allow("")),seo:n.SEO(),_schedule:n.CronSchedule(),title:a.string().allow(""),date_meta:n.DateMeta()})}static SEO(){return a.object({description:a.string().allow(""),image:n.SEOImage(),title:a.string().allow(""),meta_tags:a.array().items(n.SEOMetaItem()),sitemap:n.SEOSitemap(),breadcrumb:a.array().items(n.SEObreadcrumb()),canonical_url:a.string().allow("")})}static SEOImage(){return a.object({url:a.string().allow("")})}static SEOMetaItem(){return a.object({title:a.string().allow(""),items:a.array().items(n.SEOMetaItems())})}static SEOMetaItems(){return a.object({key:a.string().allow(""),value:a.string().allow("")})}static SEOSitemap(){return a.object({priority:a.number(),frequency:a.string().allow("")})}static SEObreadcrumb(){return a.object({url:a.string().allow(""),action:n.Action()})}static DateMeta(){return a.object({created_on:a.string().allow(""),modified_on:a.string().allow("")})}static LocaleLanguage(){return a.object({hi:n.Language(),ar:n.Language(),en_us:n.Language()})}static Language(){return a.object({display:a.string().allow("")})}static Action(){return a.object({page:n.ActionPage(),popup:n.ActionPage(),type:a.string().allow("")})}static ActionPage(){return a.object({params:a.object().pattern(/\S/,a.array().items(a.string().allow(""))),query:a.object().pattern(/\S/,a.array().items(a.string().allow(""))),url:a.string().allow(""),type:n.PageType().required()})}static NavigationReference(){return a.object({acl:a.array().items(a.string().allow("")),tags:a.array().items(a.string().allow("")),_locale_language:n.LocaleLanguage(),image:a.string().allow(""),type:a.string().allow(""),action:n.Action(),active:a.boolean(),display:a.string().allow(""),sort_order:a.number(),sub_navigation:a.array().items(a.link("#NavigationReference"))}).id("NavigationReference")}static ConfigurationSchema(){return a.object({sleep_time:a.number(),start_on_launch:a.boolean(),duration:a.number(),slide_direction:a.string().allow("")})}static SlideshowMedia(){return a.object({type:a.string().allow(""),url:a.string().allow(""),bg_color:a.string().allow(""),duration:a.number(),auto_decide_duration:a.boolean(),action:n.Action()})}static AnnouncementsResponseSchema(){return a.object({announcements:a.object().pattern(/\S/,a.array().items(n.AnnouncementSchema())),refresh_rate:a.number(),refresh_pages:a.array().items(a.string().allow(""))})}static FaqResponseSchema(){return a.object({faqs:a.array().items(n.FaqSchema())})}static DataLoaderSchema(){return a.object({name:a.string().allow(""),service:a.string().allow(""),operation_id:a.string().allow(""),type:a.string().allow(""),url:a.string().allow(""),content:a.string().allow(""),__source:n.DataLoaderSourceSchema(),_id:a.string().allow("")})}static DataLoaderSourceSchema(){return a.object({type:a.string().allow(""),id:a.string().allow("")})}static DataLoadersSchema(){return a.object({items:a.array().items(n.DataLoaderSchema())})}static ContentAPIError(){return a.object({message:a.string().allow(""),status:a.number(),code:a.string().allow(""),exception:a.string().allow(""),info:a.string().allow(""),request_id:a.string().allow(""),stack_trace:a.string().allow(""),meta:a.any()})}static CommonError(){return a.object({message:a.string().allow("")})}static CategorySchema(){return a.object({index:a.number(),title:a.string().allow(""),description:a.string().allow(""),children:a.array().items(a.string().allow("")),_id:a.string().allow(""),slug:a.string().allow(""),application:a.string().allow(""),icon_url:a.string().allow(""),_custom_json:a.any()})}static ChildrenSchema(){return a.object({question:a.string().allow(""),answer:a.string().allow(""),slug:a.string().allow(""),application:a.string().allow(""),_id:a.string().allow("")})}static FAQCategorySchema(){return a.object({index:a.number(),title:a.string().allow(""),description:a.string().allow(""),children:a.array().items(n.ChildrenSchema()),_id:a.string().allow(""),slug:a.string().allow(""),application:a.string().allow(""),icon_url:a.string().allow(""),_custom_json:a.any()})}static FaqSchema(){return a.object({slug:a.string().allow(""),application:a.string().allow(""),_id:a.string().allow(""),question:a.string().allow(""),answer:a.string().allow(""),tags:a.array().items(a.string().allow(""))})}static GetFaqSchema(){return a.object({faqs:a.array().items(n.FaqSchema())})}static GetFaqCategoriesSchema(){return a.object({categories:a.array().items(n.CategorySchema())})}static GetFaqCategoryBySlugSchema(){return a.object({category:n.FAQCategorySchema()})}static Page(){return a.object({item_total:a.number(),next_id:a.string().allow(""),has_previous:a.boolean(),has_next:a.boolean(),current:a.number(),type:a.string().allow("").required(),size:a.number()})}static LandingPageSchema(){return a.object({slug:a.string().allow(""),action:n.Action(),platform:a.array().items(a.string().allow("")),created_by:n.CreatedBySchema(),date_meta:n.DateMeta(),_id:a.string().allow(""),application:a.string().allow(""),archived:a.boolean(),_custom_json:a.any()})}static NavigationGetResponse(){return a.object({items:a.array().items(n.NavigationSchema()),page:n.Page()})}static Orientation(){return a.object({portrait:a.array().items(a.string().allow("")),landscape:a.array().items(a.string().allow(""))})}static NavigationSchema(){return a.object({_id:a.string().allow(""),application:a.string().allow(""),archived:a.boolean(),name:a.string().allow(""),slug:a.string().allow(""),platform:a.array().items(a.string().allow("")),created_by:n.CreatedBySchema(),date_meta:n.DateMeta(),orientation:n.Orientation(),version:a.number(),navigation:a.array().items(n.NavigationReference())})}static PageGetResponse(){return a.object({items:a.array().items(n.PageSchema()),page:n.Page()})}static PageSchema(){return a.object({_id:a.string().allow(""),application:a.string().allow(""),component_ids:a.array().items(a.string().allow("")),content:a.array().items(a.any()),content_path:a.string().allow(""),created_by:n.CreatedBySchema(),date_meta:n.DateMeta(),description:a.string().allow(""),feature_image:n.Asset(),page_meta:a.array().items(a.any()),_schedule:n.ScheduleSchema(),_custom_json:a.any(),orientation:a.string().allow(""),platform:a.string().allow(""),published:a.boolean(),slug:a.string().allow(""),tags:a.array().items(a.string().allow("")),title:a.string().allow(""),type:a.string().allow(""),seo:n.SEO(),visibility:a.any(),archived:a.boolean()})}static CreatedBySchema(){return a.object({id:a.string().allow("")})}static CronSchedule(){return a.object({cron:a.string().allow(""),start:a.string().allow(""),end:a.string().allow(""),duration:a.number()})}static SlideshowGetResponse(){return a.object({items:a.array().items(n.SlideshowSchema()),page:n.Page()})}static SlideshowSchema(){return a.object({_id:a.string().allow(""),slug:a.string().allow(""),date_meta:n.DateMeta(),application:a.string().allow(""),platform:a.string().allow(""),configuration:n.ConfigurationSchema(),media:a.array().items(n.SlideshowMedia()),active:a.boolean(),archived:a.boolean(),_custom_json:a.any()})}static Support(){return a.object({created:a.boolean(),_id:a.string().allow(""),config_type:a.string().allow(""),application:a.string().allow(""),created_at:a.string().allow(""),updated_at:a.string().allow(""),contact:n.ContactSchema()})}static PhoneProperties(){return a.object({key:a.string().allow(""),code:a.string().allow(""),number:a.string().allow("")})}static PhoneSchema(){return a.object({active:a.boolean(),phone:a.array().items(n.PhoneProperties())})}static EmailProperties(){return a.object({key:a.string().allow(""),value:a.string().allow("")})}static EmailSchema(){return a.object({active:a.boolean(),email:a.array().items(n.EmailProperties())})}static ContactSchema(){return a.object({phone:n.PhoneSchema(),email:n.EmailSchema()})}static TagsSchema(){return a.object({application:a.string().allow(""),_id:a.string().allow(""),tags:a.array().items(n.TagSchema())})}static TagSchema(){return a.object({name:a.string().allow(""),url:a.string().allow(""),type:a.string().allow(""),sub_type:a.string().allow(""),_id:a.string().allow(""),position:a.string().allow(""),attributes:a.any(),content:a.string().allow(""),pages:a.array().items(a.any()),__source:n.TagSourceSchema()})}static TagSourceSchema(){return a.object({type:a.string().allow(""),id:a.string().allow("")})}static CustomObjectFieldValue(){return a.object({value:a.any()})}static CustomObjectListItemDefinationSchema(){return a.object({_id:a.string().allow(""),name:a.string().allow(""),type:a.string().allow("")})}static CustomObjectFieldSchema(){return a.object({_id:a.string().allow(""),key:a.string().allow(""),value:a.array().items(n.CustomObjectFieldValue()),type:a.string().allow(""),definition_id:a.string().allow("")})}static CustomObjectByIdSchema(){return a.object({_id:a.string().allow(""),status:a.string().allow(""),display_name:a.string().allow(""),definition:n.CustomObjectListItemDefinationSchema(),references:a.array().items(a.any()),fields:a.array().items(n.CustomObjectFieldSchema())})}static CustomFieldValue(){return a.object({value:a.any()})}static CustomFieldSchema(){return a.object({_id:a.string().allow(""),namespace:a.string().allow(""),key:a.string().allow(""),resource:a.string().allow(""),creator:a.string().allow(""),value:a.array().items(n.CustomFieldValue()),resource_id:a.string().allow(""),type:a.string().allow(""),multi_value:a.boolean(),company_id:a.string().allow(""),application_id:a.string().allow(""),definition_id:a.string().allow(""),has_invalid_values:a.boolean(),invalid_value_errors:a.array().items(a.any()),created_by:a.string().allow(""),is_deleted:a.boolean(),created_at:a.string().allow(""),updated_at:a.string().allow("")})}static CustomFieldsResponseByResourceIdSchema(){return a.object({items:a.array().items(n.CustomFieldSchema())})}static PageType(){return a.string().valid("about-us","addresses","blog","brands","cards","cart","categories","brand","category","collection","collections","contact-us","external","faq","freshchat","home","notification-settings","orders","page","policy","product","product-request","products","profile","profile-order-shipment","profile-basic","profile-company","profile-emails","profile-phones","rate-us","refer-earn","settings","shared-cart","tnc","track-order","wishlist","sections","form","cart-delivery","cart-payment","cart-review","login","register","shipping-policy","return-policy","order-status")}}e.exports=n},4188:(e,t,r)=>{const a=r(9955);r(1336),e.exports=class{static getAnnouncements(){return a.object({})}static getBlog(){return a.object({slug:a.string().allow("").required(),rootId:a.string().allow("")}).required()}static getBlogs(){return a.object({pageNo:a.number(),pageSize:a.number()})}static getCustomFields(){return a.object({resource:a.string().allow("").required(),resourceId:a.string().allow("").required()}).required()}static getCustomObject(){return a.object({metaobjectId:a.string().allow("").required()}).required()}static getDataLoaders(){return a.object({})}static getFaqBySlug(){return a.object({slug:a.string().allow("").required()}).required()}static getFaqCategories(){return a.object({})}static getFaqCategoryBySlug(){return a.object({slug:a.string().allow("").required()}).required()}static getFaqs(){return a.object({})}static getFaqsByCategorySlug(){return a.object({slug:a.string().allow("").required()}).required()}static getLandingPage(){return a.object({})}static getLegalInformation(){return a.object({})}static getNavigations(){return a.object({pageNo:a.number(),pageSize:a.number()})}static getPage(){return a.object({slug:a.string().allow("").required(),rootId:a.string().allow("")}).required()}static getPages(){return a.object({pageNo:a.number(),pageSize:a.number()})}static getSEOConfiguration(){return a.object({})}static getSEOMarkupSchemas(){return a.object({pageType:a.string().allow(""),active:a.boolean()})}static getSlideshow(){return a.object({slug:a.string().allow("").required()}).required()}static getSlideshows(){return a.object({pageNo:a.number(),pageSize:a.number()})}static getSupportInformation(){return a.object({})}static getTags(){return a.object({})}}},6904:(e,t,r)=>{const a=r(8336),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(9916),s=r(4776),i=(r(3768),r(472)),l=r(5248),{Logger:c}=r(1544),u=(r(9955),r(9899));class d{constructor(e){this._conf=e,this._relativeUrls={completeUpload:"/service/application/assets/v1.0/namespaces/{namespace}/upload/complete",signUrls:"/service/application/assets/v1.0/sign-urls",startUpload:"/service/application/assets/v1.0/namespaces/{namespace}/upload/start"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async completeUpload({namespace:e,body:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.completeUpload().validate({namespace:e,body:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.completeUpload().validate({namespace:e,body:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > FileStorage > completeUpload \n ${p}`});const g=await a.execute(this._conf,"post",s({url:this._urls.completeUpload,params:{namespace:e}}),{},t,{...r},{responseHeaders:u});let m=g;u&&(m=g[0]);const{error:w}=l.CompleteResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > FileStorage > completeUpload \n ${w}`})}return g}async signUrls({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.signUrls().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.signUrls().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > FileStorage > signUrls \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.signUrls,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.SignUrlResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > FileStorage > signUrls \n ${m}`})}return p}async startUpload({namespace:e,body:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.startUpload().validate({namespace:e,body:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.startUpload().validate({namespace:e,body:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > FileStorage > startUpload \n ${p}`});const g=await a.execute(this._conf,"post",s({url:this._urls.startUpload,params:{namespace:e}}),{},t,{...r},{responseHeaders:u});let m=g;u&&(m=g[0]);const{error:w}=l.StartResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > FileStorage > startUpload \n ${w}`})}return g}}d.prototype.upload=function({data:e,file_name:t,content_type:r,namespace:a,size:n,tags:o}={}){return new Promise((async(s,i)=>{try{const l=await this.startUpload({namespace:a,body:{file_name:t,content_type:r,size:n,tags:o}});l.upload&&l.upload.url?await u.put(l.upload.url,e,{withCredentials:!1,headers:{"Content-Type":r}}):i({message:"Failed to upload file"}),delete l.tags,s(await this.completeUpload({namespace:a,body:l}))}catch(e){i(e)}}))},e.exports=d},5248:(e,t,r)=>{const a=r(9955);class n{static CDN(){return a.object({url:a.string().allow("").required(),absolute_url:a.string().allow("").required(),relative_url:a.string().allow("").required()})}static Upload(){return a.object({expiry:a.number().required(),url:a.string().allow("").required()})}static StartResponse(){return a.object({file_name:a.string().allow("").required(),file_path:a.string().allow("").required(),content_type:a.string().allow("").required(),method:a.string().allow(""),namespace:a.string().allow("").required(),operation:a.string().allow("").required(),size:a.number().required(),upload:n.Upload().required(),cdn:n.CDN().required(),tags:a.array().items(a.string().allow(""))})}static Params(){return a.object({subpath:a.string().allow("")})}static StartRequest(){return a.object({file_name:a.string().allow("").required(),content_type:a.string().allow("").required(),size:a.number().required(),tags:a.array().items(a.string().allow("")),params:n.Params()})}static CreatedBy(){return a.object({username:a.string().allow("")})}static CompleteResponse(){return a.object({_id:a.string().allow("").required(),file_name:a.string().allow("").required(),file_path:a.string().allow("").required(),content_type:a.string().allow("").required(),namespace:a.string().allow("").required(),operation:a.string().allow("").required(),size:a.number().required(),upload:n.Upload().required(),cdn:n.CDN().required(),success:a.boolean().required(),tags:a.array().items(a.string().allow("")),created_on:a.string().allow("").required(),modified_on:a.string().allow("").required(),created_by:n.CreatedBy()})}static Urls(){return a.object({url:a.string().allow("").required(),signed_url:a.string().allow("").required(),expiry:a.number().required()})}static SignUrlResponse(){return a.object({urls:a.array().items(n.Urls()).required()})}static SignUrlRequest(){return a.object({expiry:a.number().required(),urls:a.array().items(a.string().allow("")).required()})}}e.exports=n},472:(e,t,r)=>{const a=r(9955),n=r(5248);e.exports=class{static completeUpload(){return a.object({namespace:a.string().allow("").required(),body:n.StartResponse().required()}).required()}static signUrls(){return a.object({body:n.SignUrlRequest().required()}).required()}static startUpload(){return a.object({namespace:a.string().allow("").required(),body:n.StartRequest().required()}).required()}}},3580:(e,t,r)=>{const a=r(8336),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(9916),s=r(4776),i=(r(3768),r(405)),l=r(5960),{Logger:c}=r(1544);r(9955),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={createHistory:"/service/application/lead/v1.0/ticket/{id}/history",createTicket:"/service/application/lead/v1.0/ticket/",getCustomForm:"/service/application/lead/v1.0/form/{slug}",getParticipantsInsideVideoRoom:"/service/application/lead/v1.0/video/room/{unique_name}/participants",getTicket:"/service/application/lead/v1.0/ticket/{id}",getTokenForVideoRoom:"/service/application/lead/v1.0/video/room/{unique_name}/token",submitCustomForm:"/service/application/lead/v1.0/form/{slug}/submit"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async createHistory({id:e,body:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.createHistory().validate({id:e,body:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.createHistory().validate({id:e,body:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > Lead > createHistory \n ${p}`});const g=await a.execute(this._conf,"post",s({url:this._urls.createHistory,params:{id:e}}),{},t,{...r},{responseHeaders:u});let m=g;u&&(m=g[0]);const{error:w}=l.TicketHistory().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > Lead > createHistory \n ${w}`})}return g}async createTicket({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.createTicket().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.createTicket().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Lead > createTicket \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.createTicket,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.Ticket().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Lead > createTicket \n ${m}`})}return p}async getCustomForm({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getCustomForm().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getCustomForm().validate({slug:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Lead > getCustomForm \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getCustomForm,params:{slug:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.CustomForm().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Lead > getCustomForm \n ${m}`})}return p}async getParticipantsInsideVideoRoom({uniqueName:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getParticipantsInsideVideoRoom().validate({uniqueName:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getParticipantsInsideVideoRoom().validate({uniqueName:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Lead > getParticipantsInsideVideoRoom \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getParticipantsInsideVideoRoom,params:{uniqueName:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.GetParticipantsInsideVideoRoomResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Lead > getParticipantsInsideVideoRoom \n ${m}`})}return p}async getTicket({id:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getTicket().validate({id:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getTicket().validate({id:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Lead > getTicket \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getTicket,params:{id:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.Ticket().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Lead > getTicket \n ${m}`})}return p}async getTokenForVideoRoom({uniqueName:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getTokenForVideoRoom().validate({uniqueName:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getTokenForVideoRoom().validate({uniqueName:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Lead > getTokenForVideoRoom \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getTokenForVideoRoom,params:{uniqueName:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.GetTokenForVideoRoomResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Lead > getTokenForVideoRoom \n ${m}`})}return p}async submitCustomForm({slug:e,body:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.submitCustomForm().validate({slug:e,body:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.submitCustomForm().validate({slug:e,body:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > Lead > submitCustomForm \n ${p}`});const g=await a.execute(this._conf,"post",s({url:this._urls.submitCustomForm,params:{slug:e}}),{},t,{...r},{responseHeaders:u});let m=g;u&&(m=g[0]);const{error:w}=l.SubmitCustomFormResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > Lead > submitCustomForm \n ${w}`})}return g}}},5960:(e,t,r)=>{const a=r(9955);class n{static TicketHistoryPayload(){return a.object({value:a.any().required(),type:n.HistoryTypeEnum().required()})}static CustomFormSubmissionPayload(){return a.object({response:a.array().items(a.any()).required(),attachments:a.array().items(n.TicketAsset())})}static GetTokenForVideoRoomResponse(){return a.object({access_token:a.string().allow("").required()})}static GetParticipantsInsideVideoRoomResponse(){return a.object({participants:a.array().items(n.Participant()).required()})}static Participant(){return a.object({user:n.UserSchema(),identity:a.string().allow(""),status:a.string().allow("")})}static UserSchema(){return a.object({application_id:a.string().allow(""),user_id:a.string().allow(""),first_name:a.string().allow(""),meta:a.any(),last_name:a.string().allow(""),phone_numbers:a.array().items(n.PhoneNumber()),emails:a.array().items(n.Email()),gender:a.string().allow(""),dob:a.string().allow(""),active:a.boolean(),profile_pic_url:a.string().allow(""),username:a.string().allow(""),account_type:a.string().allow(""),_id:a.string().allow(""),created_at:a.string().allow(""),updated_at:a.string().allow("")})}static PhoneNumber(){return a.object({active:a.boolean(),primary:a.boolean(),verified:a.boolean(),phone:a.string().allow(""),country_code:a.number()})}static Email(){return a.object({primary:a.boolean(),verified:a.boolean(),email:a.string().allow(""),active:a.boolean()})}static Debug(){return a.object({source:a.string().allow(""),platform:a.string().allow("")})}static SubmitCustomFormResponse(){return a.object({message:a.string().allow("").required(),ticket:n.Ticket()})}static TicketContext(){return a.object({application_id:a.string().allow(""),company_id:a.string().allow("").required()})}static CreatedOn(){return a.object({user_agent:a.string().allow("").required()})}static TicketAsset(){return a.object({display:a.string().allow(""),value:a.string().allow("").required(),type:n.TicketAssetTypeEnum().required()})}static TicketContent(){return a.object({title:a.string().allow("").required(),description:a.string().allow(""),attachments:a.array().items(n.TicketAsset())})}static AddTicketPayload(){return a.object({created_by:a.any(),status:a.string().allow(""),priority:n.PriorityEnum(),category:a.string().allow("").required(),content:n.TicketContent().required(),_custom_json:a.any(),subscribers:a.array().items(a.string().allow(""))})}static Priority(){return a.object({key:n.PriorityEnum().required(),display:a.string().allow("").required(),color:a.string().allow("").required()})}static Status(){return a.object({key:a.string().allow("").required(),display:a.string().allow("").required(),color:a.string().allow("").required()})}static SubmitButton(){return a.object({title:a.string().allow("").required(),title_color:a.string().allow("").required(),background_color:a.string().allow("").required()})}static PollForAssignment(){return a.object({duration:a.number().required(),message:a.string().allow("").required(),success_message:a.string().allow("").required(),failure_message:a.string().allow("").required()})}static CustomForm(){return a.object({application_id:a.string().allow("").required(),slug:a.string().allow("").required(),header_image:a.string().allow(""),title:a.string().allow("").required(),description:a.string().allow(""),priority:n.Priority().required(),login_required:a.boolean().required(),should_notify:a.boolean().required(),success_message:a.string().allow(""),submit_button:n.SubmitButton(),inputs:a.array().items(a.any()).required(),created_on:n.CreatedOn(),poll_for_assignment:n.PollForAssignment(),_id:a.string().allow("").required()})}static FeedbackForm(){return a.object({inputs:a.any(),title:a.string().allow(""),timestamps:a.any()})}static TicketCategory(){return a.object({display:a.string().allow("").required(),key:a.string().allow("").required(),sub_categories:a.link("#TicketCategory"),group_id:a.number(),feedback_form:n.FeedbackForm()})}static TicketHistory(){return a.object({type:a.string().allow("").required(),value:a.any().required(),ticket_id:a.string().allow("").required(),created_on:n.CreatedOn(),created_by:a.any(),_id:a.string().allow("").required(),updated_at:a.string().allow(""),created_at:a.string().allow("")})}static Ticket(){return a.object({context:n.TicketContext(),created_on:n.CreatedOn(),response_id:a.string().allow(""),content:n.TicketContent(),category:n.TicketCategory().required(),sub_category:a.string().allow(""),source:n.TicketSourceEnum().required(),status:n.Status().required(),priority:n.Priority().required(),created_by:a.any(),assigned_to:a.any(),tags:a.array().items(a.string().allow("")),_custom_json:a.any(),is_feedback_pending:a.boolean(),integration:a.any(),_id:a.string().allow("").required(),updated_at:a.string().allow(""),created_at:a.string().allow("")})}static PriorityEnum(){return a.string().valid("low","medium","high","urgent")}static HistoryTypeEnum(){return a.string().valid("rating","log","comment","thread")}static TicketAssetTypeEnum(){return a.string().valid("image","video","file","youtube","product","collection","brand","shipment","order")}static TicketSourceEnum(){return a.string().valid("platform_panel","sales_channel")}}e.exports=n},405:(e,t,r)=>{const a=r(9955),n=r(5960);e.exports=class{static createHistory(){return a.object({id:a.string().allow("").required(),body:n.TicketHistoryPayload().required()}).required()}static createTicket(){return a.object({body:n.AddTicketPayload().required()}).required()}static getCustomForm(){return a.object({slug:a.string().allow("").required()}).required()}static getParticipantsInsideVideoRoom(){return a.object({uniqueName:a.string().allow("").required()}).required()}static getTicket(){return a.object({id:a.string().allow("").required()}).required()}static getTokenForVideoRoom(){return a.object({uniqueName:a.string().allow("").required()}).required()}static submitCustomForm(){return a.object({slug:a.string().allow("").required(),body:n.CustomFormSubmissionPayload().required()}).required()}}},1564:(e,t,r)=>{const a=r(8336),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(9916),s=r(4776),i=(r(3768),r(1204)),l=r(3248),{Logger:c}=r(1544);r(9955),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={getAllCountries:"/service/application/logistics/v1.0/country-list",getCountries:"/service/application/logistics/v1.0/countries",getCountry:"/service/application/logistics/v1.0/countries/{country_iso_code}",getLocalities:"/service/application/logistics/v1.0/localities/{locality_type}",getLocality:"/service/application/logistics/v1.0/localities/{locality_type}/{locality_value}",getLocations:"/service/application/logistics/v1.0/locations",getOptimalLocations:"/service/application/logistics/v1.0/reassign_stores",getPincodeCity:"/service/application/logistics/v1.0/pincode/{pincode}",getPincodeZones:"/service/application/logistics/v1.0/pincode/zones",getTatProduct:"/service/application/logistics/v1.0/",validateAddress:"/service/application/logistics/v1.0/country/{country_iso_code}/address/templates/{template_name}/validate"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async getAllCountries({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getAllCountries().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:u}=i.getAllCountries().validate({},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Logistic > getAllCountries \n ${u}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getAllCountries,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=l.CountryListResponse().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));c({level:"WARN",message:`Response Validation Warnings for application > Logistic > getAllCountries \n ${g}`})}return d}async getCountries({onboarding:e,pageNo:t,pageSize:r,q:u,requestHeaders:d}={requestHeaders:{}},{responseHeaders:p}={responseHeaders:!1}){const{error:g}=i.getCountries().validate({onboarding:e,pageNo:t,pageSize:r,q:u},{abortEarly:!1,allowUnknown:!0});if(g)return Promise.reject(new n(g));const{error:m}=i.getCountries().validate({onboarding:e,pageNo:t,pageSize:r,q:u},{abortEarly:!1,allowUnknown:!1});m&&c({level:"WARN",message:`Parameter Validation warrnings for application > Logistic > getCountries \n ${m}`});const w={};w.onboarding=e,w.page_no=t,w.page_size=r,w.q=u;const f=await a.execute(this._conf,"get",s({url:this._urls.getCountries,params:{}}),w,void 0,{...d},{responseHeaders:p});let y=f;p&&(y=f[0]);const{error:b}=l.GetCountries().validate(y,{abortEarly:!1,allowUnknown:!0});if(b){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(b));c({level:"WARN",message:`Response Validation Warnings for application > Logistic > getCountries \n ${b}`})}return f}async getCountry({countryIsoCode:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getCountry().validate({countryIsoCode:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getCountry().validate({countryIsoCode:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Logistic > getCountry \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getCountry,params:{countryIsoCode:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.GetCountry().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Logistic > getCountry \n ${m}`})}return p}async getLocalities({localityType:e,country:t,state:r,city:u,pageNo:d,pageSize:p,q:g,requestHeaders:m}={requestHeaders:{}},{responseHeaders:w}={responseHeaders:!1}){const{error:f}=i.getLocalities().validate({localityType:e,country:t,state:r,city:u,pageNo:d,pageSize:p,q:g},{abortEarly:!1,allowUnknown:!0});if(f)return Promise.reject(new n(f));const{error:y}=i.getLocalities().validate({localityType:e,country:t,state:r,city:u,pageNo:d,pageSize:p,q:g},{abortEarly:!1,allowUnknown:!1});y&&c({level:"WARN",message:`Parameter Validation warrnings for application > Logistic > getLocalities \n ${y}`});const b={};b.country=t,b.state=r,b.city=u,b.page_no=d,b.page_size=p,b.q=g;const h=await a.execute(this._conf,"get",s({url:this._urls.getLocalities,params:{localityType:e}}),b,void 0,{...m},{responseHeaders:w});let _=h;w&&(_=h[0]);const{error:v}=l.GetLocalities().validate(_,{abortEarly:!1,allowUnknown:!0});if(v){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(v));c({level:"WARN",message:`Response Validation Warnings for application > Logistic > getLocalities \n ${v}`})}return h}async getLocality({localityType:e,localityValue:t,country:r,state:u,city:d,requestHeaders:p}={requestHeaders:{}},{responseHeaders:g}={responseHeaders:!1}){const{error:m}=i.getLocality().validate({localityType:e,localityValue:t,country:r,state:u,city:d},{abortEarly:!1,allowUnknown:!0});if(m)return Promise.reject(new n(m));const{error:w}=i.getLocality().validate({localityType:e,localityValue:t,country:r,state:u,city:d},{abortEarly:!1,allowUnknown:!1});w&&c({level:"WARN",message:`Parameter Validation warrnings for application > Logistic > getLocality \n ${w}`});const f={};f.country=r,f.state=u,f.city=d;const y=await a.execute(this._conf,"get",s({url:this._urls.getLocality,params:{localityType:e,localityValue:t}}),f,void 0,{...p},{responseHeaders:g});let b=y;g&&(b=y[0]);const{error:h}=l.GetLocality().validate(b,{abortEarly:!1,allowUnknown:!0});if(h){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(h));c({level:"WARN",message:`Response Validation Warnings for application > Logistic > getLocality \n ${h}`})}return y}async getLocations({xApplicationId:e,xApplicationData:t,country:r,state:u,city:d,pincode:p,sector:g,pageNo:m,pageSize:w,requestHeaders:f}={requestHeaders:{}},{responseHeaders:y}={responseHeaders:!1}){const{error:b}=i.getLocations().validate({xApplicationId:e,xApplicationData:t,country:r,state:u,city:d,pincode:p,sector:g,pageNo:m,pageSize:w},{abortEarly:!1,allowUnknown:!0});if(b)return Promise.reject(new n(b));const{error:h}=i.getLocations().validate({xApplicationId:e,xApplicationData:t,country:r,state:u,city:d,pincode:p,sector:g,pageNo:m,pageSize:w},{abortEarly:!1,allowUnknown:!1});h&&c({level:"WARN",message:`Parameter Validation warrnings for application > Logistic > getLocations \n ${h}`});const _={};_["x-application-id"]=e,_["x-application-data"]=t,_.country=r,_.state=u,_.city=d,_.pincode=p,_.sector=g,_.page_no=m,_.page_size=w;const v=await a.execute(this._conf,"get",s({url:this._urls.getLocations,params:{}}),_,void 0,{...f},{responseHeaders:y});let k=v;y&&(k=v[0]);const{error:R}=l.GetStoreResponse().validate(k,{abortEarly:!1,allowUnknown:!0});if(R){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(R));c({level:"WARN",message:`Response Validation Warnings for application > Logistic > getLocations \n ${R}`})}return v}async getOptimalLocations({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getOptimalLocations().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getOptimalLocations().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Logistic > getOptimalLocations \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.getOptimalLocations,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.ReAssignStoreResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Logistic > getOptimalLocations \n ${m}`})}return p}async getPincodeCity({pincode:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getPincodeCity().validate({pincode:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getPincodeCity().validate({pincode:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Logistic > getPincodeCity \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getPincodeCity,params:{pincode:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.PincodeApiResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Logistic > getPincodeCity \n ${m}`})}return p}async getPincodeZones({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getPincodeZones().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getPincodeZones().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Logistic > getPincodeZones \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.getPincodeZones,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.GetZoneFromPincodeViewResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Logistic > getPincodeZones \n ${m}`})}return p}async getTatProduct({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getTatProduct().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getTatProduct().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Logistic > getTatProduct \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.getTatProduct,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.TATViewResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Logistic > getTatProduct \n ${m}`})}return p}async validateAddress({countryIsoCode:e,templateName:t,body:r,requestHeaders:u}={requestHeaders:{}},{responseHeaders:d}={responseHeaders:!1}){const{error:p}=i.validateAddress().validate({countryIsoCode:e,templateName:t,body:r},{abortEarly:!1,allowUnknown:!0});if(p)return Promise.reject(new n(p));const{error:g}=i.validateAddress().validate({countryIsoCode:e,templateName:t,body:r},{abortEarly:!1,allowUnknown:!1});g&&c({level:"WARN",message:`Parameter Validation warrnings for application > Logistic > validateAddress \n ${g}`});const m=await a.execute(this._conf,"post",s({url:this._urls.validateAddress,params:{countryIsoCode:e,templateName:t}}),{},r,{...u},{responseHeaders:d});let w=m;d&&(w=m[0]);const{error:f}=l.ValidateAddressRequest().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > Logistic > validateAddress \n ${f}`})}return m}}},3248:(e,t,r)=>{const a=r(9955);class n{static GetStoreResponse(){return a.object({items:a.array().items(n.StoreItemResponse()),page:n.Page()})}static StoreItemResponse(){return a.object({id:a.number(),store_type:a.string().allow(""),fulfillment_type:a.string().allow(""),processing_time:a.number(),tags:a.array().items(a.string().allow("")),company_id:a.number(),latitude:a.number(),longitude:a.number()})}static ValidateAddressRequest(){return a.object({address:a.string().allow(""),address1:a.string().allow(""),address2:a.string().allow(""),area:a.string().allow(""),landmark:a.string().allow(""),pincode:a.string().allow(""),sector:a.string().allow(""),city:a.string().allow(""),state:a.string().allow(""),name:a.string().allow(""),phone:a.string().allow(""),email:a.string().allow("")})}static PincodeParentsResponse(){return a.object({sub_type:a.string().allow(""),display_name:a.string().allow(""),name:a.string().allow(""),uid:a.string().allow("")})}static PincodeMetaResponse(){return a.object({zone:a.string().allow(""),internal_zone_id:a.number()})}static PincodeErrorSchemaResponse(){return a.object({message:a.string().allow("").allow(null),value:a.string().allow("").allow(null),type:a.string().allow("").allow(null)})}static CountryMetaResponse(){return a.object({country_code:a.string().allow(""),isd_code:a.string().allow("")})}static PincodeLatLongData(){return a.object({type:a.string().allow(""),coordinates:a.array().items(a.string().allow(""))})}static PincodeDataResponse(){return a.object({parents:a.array().items(n.PincodeParentsResponse()),meta:n.PincodeMetaResponse(),display_name:a.string().allow(""),error:n.PincodeErrorSchemaResponse().required(),meta_code:n.CountryMetaResponse(),lat_long:n.PincodeLatLongData(),sub_type:a.string().allow(""),name:a.string().allow(""),uid:a.string().allow("")})}static PincodeApiResponse(){return a.object({success:a.boolean().required(),data:a.array().items(n.PincodeDataResponse()),error:n.PincodeErrorSchemaResponse().required()})}static TATCategoryRequest(){return a.object({level:a.string().allow(""),id:a.number()})}static TATArticlesRequest(){return a.object({category:n.TATCategoryRequest(),manufacturing_time_unit:a.string().allow(""),manufacturing_time:a.number()})}static TATLocationDetailsRequest(){return a.object({fulfillment_id:a.number(),from_pincode:a.string().allow(""),articles:a.array().items(n.TATArticlesRequest())})}static TATViewRequest(){return a.object({to_pincode:a.string().allow(""),source:a.string().allow(""),action:a.string().allow(""),identifier:a.string().allow(""),location_details:a.array().items(n.TATLocationDetailsRequest()),journey:a.string().allow("")})}static TATErrorSchemaResponse(){return a.object({message:a.string().allow("").allow(null),value:a.string().allow("").allow(null),type:a.string().allow("").allow(null)})}static TATTimestampResponse(){return a.object({min:a.number(),max:a.number()})}static TATFormattedResponse(){return a.object({min:a.string().allow(""),max:a.string().allow("")})}static TATPromiseResponse(){return a.object({timestamp:n.TATTimestampResponse(),formatted:n.TATFormattedResponse()})}static TATArticlesResponse(){return a.object({manufacturing_time_unit:a.string().allow(""),error:n.TATErrorSchemaResponse(),is_cod_available:a.boolean(),promise:n.TATPromiseResponse(),manufacturing_time:a.number(),category:n.TATCategoryRequest(),_manufacturing_time_seconds:a.number()})}static TATLocationDetailsResponse(){return a.object({fulfillment_id:a.number(),from_pincode:a.string().allow(""),articles:a.array().items(n.TATArticlesResponse())})}static TATViewResponse(){return a.object({to_pincode:a.string().allow(""),request_uuid:a.string().allow(""),payment_mode:a.string().allow(""),success:a.boolean(),error:n.TATErrorSchemaResponse(),is_cod_available:a.boolean(),source:a.string().allow(""),action:a.string().allow(""),stormbreaker_uuid:a.string().allow(""),to_city:a.string().allow(""),identifier:a.string().allow(""),location_details:a.array().items(n.TATLocationDetailsResponse()),journey:a.string().allow("")})}static DP(){return a.object({fm_priority:a.number().required(),lm_priority:a.number().required(),rvp_priority:a.number().required(),payment_mode:a.string().allow("").required(),operations:a.array().items(a.string().allow("")).required(),area_code:a.string().allow("").allow(null),assign_dp_from_sb:a.boolean(),internal_account_id:a.string().allow(""),external_account_id:a.string().allow("").allow(null),transport_mode:a.string().allow("")})}static LogisticsResponse(){return a.object({dp:a.object().pattern(/\S/,n.DP())})}static CountryEntityResponse(){return a.object({meta:n.CountryMetaResponse(),logistics:n.LogisticsResponse(),display_name:a.string().allow(""),type:a.string().allow(""),is_active:a.boolean(),parent_id:a.string().allow(""),sub_type:a.string().allow(""),name:a.string().allow(""),uid:a.string().allow("")})}static CountryListResponse(){return a.object({results:a.array().items(n.CountryEntityResponse())})}static GetZoneFromPincodeViewRequest(){return a.object({pincode:a.string().allow("").required(),country:a.string().allow("").required()})}static GetZoneFromPincodeViewResponse(){return a.object({serviceability_type:a.string().allow("").required(),zones:a.array().items(a.string().allow("")).required()})}static ReAssignStoreRequest(){return a.object({configuration:a.any().required(),to_pincode:a.string().allow("").required(),ignored_locations:a.array().items(a.number()).required(),identifier:a.string().allow("").required(),articles:a.array().items(a.any()).required()})}static ReAssignStoreResponse(){return a.object({to_pincode:a.string().allow("").required(),pystormbreaker_uuid:a.string().allow("").required(),success:a.boolean().required(),error:a.any().required(),assigned_stores:a.array().items(a.any())})}static CountryHierarchy(){return a.object({name:a.string().allow(""),slug:a.string().allow("")})}static CurrencyObject(){return a.object({code:a.string().allow(""),name:a.string().allow(""),symbol:a.string().allow("")})}static CountryObject(){return a.object({id:a.string().allow(""),name:a.string().allow(""),display_name:a.string().allow(""),iso2:a.string().allow(""),iso3:a.string().allow(""),timezones:a.array().items(a.string().allow("")),hierarchy:a.array().items(n.CountryHierarchy()),phone_code:a.string().allow(""),latitude:a.string().allow(""),longitude:a.string().allow(""),currency:n.CurrencyObject(),type:a.string().allow("")})}static GetCountries(){return a.object({items:a.array().items(n.CountryObject()),page:n.Page()})}static GetOneOrAllPath(){return a.object({locality_type:a.string().allow(""),locality_value:a.string().allow("")})}static GetOneOrAllQuery(){return a.object({country:a.string().allow("").allow(null),state:a.string().allow("").allow(null),city:a.string().allow("").allow(null),sector:a.string().allow("").allow(null)})}static GetOneOrAllParams(){return a.object({path:n.GetOneOrAllPath(),query:n.GetOneOrAllQuery()})}static GetOneOrAll(){return a.object({operation_id:a.string().allow(""),params:n.GetOneOrAllParams()})}static LengthValidation(){return a.object({min:a.number().allow(null),max:a.number().allow(null)})}static FieldValidationRegex(){return a.object({value:a.string().allow(""),length:n.LengthValidation()})}static FieldValidation(){return a.object({type:a.string().allow(""),regex:n.FieldValidationRegex()})}static GetCountryFieldsAddressValues(){return a.object({get_one:n.GetOneOrAll(),get_all:n.GetOneOrAll()})}static GetCountryFieldsAddress(){return a.object({display_name:a.string().allow("").required(),slug:a.string().allow("").required(),required:a.boolean().required(),edit:a.boolean(),input:a.string().allow("").required(),validation:n.FieldValidation(),values:n.GetCountryFieldsAddressValues(),error_text:a.string().allow("").allow(null)})}static GetCountryFieldsAddressTemplate(){return a.object({checkout_form:a.string().allow("").required(),store_os_form:a.string().allow("").required(),default_display:a.string().allow("").required()})}static GetCountryFields(){return a.object({address:a.array().items(n.GetCountryFieldsAddress()).required(),serviceability_fields:a.array().items(a.string().allow("")).required(),address_template:n.GetCountryFieldsAddressTemplate().required()})}static GetCountry(){return a.object({id:a.string().allow(""),name:a.string().allow(""),display_name:a.string().allow(""),iso2:a.string().allow(""),iso3:a.string().allow(""),timezones:a.array().items(a.string().allow("")),hierarchy:a.array().items(n.CountryHierarchy()),phone_code:a.string().allow(""),latitude:a.string().allow(""),longitude:a.string().allow(""),currency:n.CurrencyObject(),type:a.string().allow(""),fields:n.GetCountryFields()})}static Page(){return a.object({item_total:a.number(),next_id:a.string().allow(""),has_previous:a.boolean(),has_next:a.boolean(),current:a.number(),type:a.string().allow("").required(),size:a.number()})}static Localities(){return a.object({id:a.string().allow(""),name:a.string().allow(""),display_name:a.string().allow(""),parent_ids:a.array().items(a.string().allow("")),type:a.string().allow("")})}static LocalityParent(){return a.object({id:a.string().allow(""),name:a.string().allow(""),display_name:a.string().allow(""),parent_ids:a.array().items(a.string().allow("")),type:a.string().allow("")})}static GetLocalities(){return a.object({items:a.array().items(n.Localities()),page:n.Page()})}static GetLocality(){return a.object({id:a.string().allow(""),name:a.string().allow(""),display_name:a.string().allow(""),parent_ids:a.array().items(a.string().allow("")),type:a.string().allow(""),localities:a.array().items(n.LocalityParent())})}static ErrorResponse(){return a.object({error:a.string().allow("")})}}e.exports=n},1204:(e,t,r)=>{const a=r(9955),n=r(3248);e.exports=class{static getAllCountries(){return a.object({})}static getCountries(){return a.object({onboarding:a.boolean(),pageNo:a.number(),pageSize:a.number(),q:a.string().allow("")})}static getCountry(){return a.object({countryIsoCode:a.string().allow("").required()}).required()}static getLocalities(){return a.object({localityType:a.string().allow("").required(),country:a.string().allow(""),state:a.string().allow(""),city:a.string().allow(""),pageNo:a.number(),pageSize:a.number(),q:a.string().allow("")}).required()}static getLocality(){return a.object({localityType:a.string().allow("").required(),localityValue:a.string().allow("").required(),country:a.string().allow(""),state:a.string().allow(""),city:a.string().allow("")}).required()}static getLocations(){return a.object({xApplicationId:a.string().allow("").required(),xApplicationData:a.string().allow("").required(),country:a.string().allow(""),state:a.string().allow(""),city:a.string().allow(""),pincode:a.number(),sector:a.string().allow(""),pageNo:a.number(),pageSize:a.number()}).required()}static getOptimalLocations(){return a.object({body:n.ReAssignStoreRequest().required()}).required()}static getPincodeCity(){return a.object({pincode:a.string().allow("").required()}).required()}static getPincodeZones(){return a.object({body:n.GetZoneFromPincodeViewRequest().required()}).required()}static getTatProduct(){return a.object({body:n.TATViewRequest().required()}).required()}static validateAddress(){return a.object({countryIsoCode:a.string().allow("").required(),templateName:a.string().allow("").required(),body:n.ValidateAddressRequest().required()}).required()}}},3032:(e,t,r)=>{const a=r(8336),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(9916),s=r(4776),i=(r(3768),r(6347)),l=r(4920),{Logger:c}=r(1544);r(9955),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={getCustomerDetailsByShipmentId:"/service/application/order/v1.0/orders/{order_id}/shipments/{shipment_id}/customer-details",getInvoiceByShipmentId:"/service/application/order/v1.0/orders/shipments/{shipment_id}/invoice",getOrderById:"/service/application/order/v1.0/orders/{order_id}",getOrders:"/service/application/order/v1.0/orders",getPosOrderById:"/service/application/order/v1.0/orders/pos-order/{order_id}",getShipmentBagReasons:"/service/application/order/v1.0/orders/shipments/{shipment_id}/bags/{bag_id}/reasons",getShipmentById:"/service/application/order/v1.0/orders/shipments/{shipment_id}",getShipmentReasons:"/service/application/order/v1.0/orders/shipments/{shipment_id}/reasons",sendOtpToShipmentCustomer:"/service/application/order/v1.0/orders/{order_id}/shipments/{shipment_id}/otp/send/",trackShipment:"/service/application/order/v1.0/orders/shipments/{shipment_id}/track",updateShipmentStatus:"/service/application/order/v1.0/orders/shipments/{shipment_id}/status",verifyOtpShipmentCustomer:"/service/application/order/v1.0/orders/{order_id}/shipments/{shipment_id}/otp/verify/"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async getCustomerDetailsByShipmentId({orderId:e,shipmentId:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.getCustomerDetailsByShipmentId().validate({orderId:e,shipmentId:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.getCustomerDetailsByShipmentId().validate({orderId:e,shipmentId:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > Order > getCustomerDetailsByShipmentId \n ${p}`});const g=await a.execute(this._conf,"get",s({url:this._urls.getCustomerDetailsByShipmentId,params:{orderId:e,shipmentId:t}}),{},void 0,{...r},{responseHeaders:u});let m=g;u&&(m=g[0]);const{error:w}=l.CustomerDetailsResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > Order > getCustomerDetailsByShipmentId \n ${w}`})}return g}async getInvoiceByShipmentId({shipmentId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getInvoiceByShipmentId().validate({shipmentId:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getInvoiceByShipmentId().validate({shipmentId:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Order > getInvoiceByShipmentId \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getInvoiceByShipmentId,params:{shipmentId:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.ResponseGetInvoiceShipment().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Order > getInvoiceByShipmentId \n ${m}`})}return p}async getOrderById({orderId:e,allowInactive:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.getOrderById().validate({orderId:e,allowInactive:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.getOrderById().validate({orderId:e,allowInactive:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > Order > getOrderById \n ${p}`});const g={};g.allow_inactive=t;const m=await a.execute(this._conf,"get",s({url:this._urls.getOrderById,params:{orderId:e}}),g,void 0,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.OrderById().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > Order > getOrderById \n ${f}`})}return m}async getOrders({status:e,pageNo:t,pageSize:r,fromDate:u,toDate:d,startDate:p,endDate:g,customMeta:m,requestHeaders:w}={requestHeaders:{}},{responseHeaders:f}={responseHeaders:!1}){const{error:y}=i.getOrders().validate({status:e,pageNo:t,pageSize:r,fromDate:u,toDate:d,startDate:p,endDate:g,customMeta:m},{abortEarly:!1,allowUnknown:!0});if(y)return Promise.reject(new n(y));const{error:b}=i.getOrders().validate({status:e,pageNo:t,pageSize:r,fromDate:u,toDate:d,startDate:p,endDate:g,customMeta:m},{abortEarly:!1,allowUnknown:!1});b&&c({level:"WARN",message:`Parameter Validation warrnings for application > Order > getOrders \n ${b}`});const h={};h.status=e,h.page_no=t,h.page_size=r,h.from_date=u,h.to_date=d,h.start_date=p,h.end_date=g,h.custom_meta=m;const _=await a.execute(this._conf,"get",s({url:this._urls.getOrders,params:{}}),h,void 0,{...w},{responseHeaders:f});let v=_;f&&(v=_[0]);const{error:k}=l.OrderList().validate(v,{abortEarly:!1,allowUnknown:!0});if(k){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(k));c({level:"WARN",message:`Response Validation Warnings for application > Order > getOrders \n ${k}`})}return _}async getPosOrderById({orderId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getPosOrderById().validate({orderId:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getPosOrderById().validate({orderId:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Order > getPosOrderById \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getPosOrderById,params:{orderId:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.OrderById().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Order > getPosOrderById \n ${m}`})}return p}async getShipmentBagReasons({shipmentId:e,bagId:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.getShipmentBagReasons().validate({shipmentId:e,bagId:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.getShipmentBagReasons().validate({shipmentId:e,bagId:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > Order > getShipmentBagReasons \n ${p}`});const g=await a.execute(this._conf,"get",s({url:this._urls.getShipmentBagReasons,params:{shipmentId:e,bagId:t}}),{},void 0,{...r},{responseHeaders:u});let m=g;u&&(m=g[0]);const{error:w}=l.ShipmentBagReasons().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > Order > getShipmentBagReasons \n ${w}`})}return g}async getShipmentById({shipmentId:e,allowInactive:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.getShipmentById().validate({shipmentId:e,allowInactive:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.getShipmentById().validate({shipmentId:e,allowInactive:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > Order > getShipmentById \n ${p}`});const g={};g.allow_inactive=t;const m=await a.execute(this._conf,"get",s({url:this._urls.getShipmentById,params:{shipmentId:e}}),g,void 0,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.ShipmentById().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > Order > getShipmentById \n ${f}`})}return m}async getShipmentReasons({shipmentId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getShipmentReasons().validate({shipmentId:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getShipmentReasons().validate({shipmentId:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Order > getShipmentReasons \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getShipmentReasons,params:{shipmentId:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.ShipmentReasons().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Order > getShipmentReasons \n ${m}`})}return p}async sendOtpToShipmentCustomer({orderId:e,shipmentId:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.sendOtpToShipmentCustomer().validate({orderId:e,shipmentId:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.sendOtpToShipmentCustomer().validate({orderId:e,shipmentId:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > Order > sendOtpToShipmentCustomer \n ${p}`});const g=await a.execute(this._conf,"post",s({url:this._urls.sendOtpToShipmentCustomer,params:{orderId:e,shipmentId:t}}),{},void 0,{...r},{responseHeaders:u});let m=g;u&&(m=g[0]);const{error:w}=l.SendOtpToCustomerResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > Order > sendOtpToShipmentCustomer \n ${w}`})}return g}async trackShipment({shipmentId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.trackShipment().validate({shipmentId:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.trackShipment().validate({shipmentId:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Order > trackShipment \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.trackShipment,params:{shipmentId:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.ShipmentTrack().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Order > trackShipment \n ${m}`})}return p}async updateShipmentStatus({shipmentId:e,body:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.updateShipmentStatus().validate({shipmentId:e,body:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.updateShipmentStatus().validate({shipmentId:e,body:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > Order > updateShipmentStatus \n ${p}`});const g=await a.execute(this._conf,"put",s({url:this._urls.updateShipmentStatus,params:{shipmentId:e}}),{},t,{...r},{responseHeaders:u});let m=g;u&&(m=g[0]);const{error:w}=l.ShipmentApplicationStatusResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > Order > updateShipmentStatus \n ${w}`})}return g}async verifyOtpShipmentCustomer({orderId:e,shipmentId:t,body:r,requestHeaders:u}={requestHeaders:{}},{responseHeaders:d}={responseHeaders:!1}){const{error:p}=i.verifyOtpShipmentCustomer().validate({orderId:e,shipmentId:t,body:r},{abortEarly:!1,allowUnknown:!0});if(p)return Promise.reject(new n(p));const{error:g}=i.verifyOtpShipmentCustomer().validate({orderId:e,shipmentId:t,body:r},{abortEarly:!1,allowUnknown:!1});g&&c({level:"WARN",message:`Parameter Validation warrnings for application > Order > verifyOtpShipmentCustomer \n ${g}`});const m=await a.execute(this._conf,"post",s({url:this._urls.verifyOtpShipmentCustomer,params:{orderId:e,shipmentId:t}}),{},r,{...u},{responseHeaders:d});let w=m;d&&(w=m[0]);const{error:f}=l.VerifyOtpResponse().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > Order > verifyOtpShipmentCustomer \n ${f}`})}return m}}},4920:(e,t,r)=>{const a=r(9955);class n{static OrderPage(){return a.object({type:a.string().allow(""),item_total:a.number(),current:a.number(),size:a.number(),has_next:a.boolean()})}static UserInfo(){return a.object({first_name:a.string().allow(""),gender:a.string().allow(""),name:a.string().allow(""),last_name:a.string().allow(""),mobile:a.string().allow(""),email:a.string().allow("")})}static BreakupValues(){return a.object({value:a.number(),currency_symbol:a.string().allow(""),name:a.string().allow(""),display:a.string().allow(""),currency_code:a.string().allow("")})}static ShipmentPayment(){return a.object({mop:a.string().allow(""),payment_mode:a.string().allow(""),status:a.string().allow(""),mode:a.string().allow(""),logo:a.string().allow(""),display_name:a.string().allow("")})}static ShipmentUserInfo(){return a.object({first_name:a.string().allow(""),gender:a.string().allow(""),name:a.string().allow(""),last_name:a.string().allow(""),mobile:a.string().allow(""),email:a.string().allow("")})}static FulfillingStore(){return a.object({id:a.number(),code:a.string().allow(""),name:a.string().allow(""),company_name:a.string().allow(""),company_id:a.number()})}static ShipmentStatus(){return a.object({value:a.string().allow("").allow(null),title:a.string().allow(""),hex_code:a.string().allow("")})}static Invoice(){return a.object({invoice_url:a.string().allow(""),updated_date:a.string().allow(""),label_url:a.string().allow("")})}static NestedTrackingDetails(){return a.object({is_passed:a.boolean(),time:a.string().allow(""),is_current:a.boolean(),status:a.string().allow("")})}static TrackingDetails(){return a.object({value:a.string().allow("").allow(null),is_current:a.boolean(),is_passed:a.boolean(),status:a.string().allow(""),time:a.string().allow(""),created_ts:a.string().allow(""),tracking_details:a.array().items(n.NestedTrackingDetails())})}static TimeStampData(){return a.object({min:a.string().allow(""),max:a.string().allow("")})}static Promise(){return a.object({show_promise:a.boolean(),timestamp:n.TimeStampData()})}static ShipmentTotalDetails(){return a.object({pieces:a.number(),total_price:a.number(),sizes:a.number()})}static Prices(){return a.object({delivery_charge:a.number(),coupon_value:a.number(),brand_calculated_amount:a.number(),value_of_good:a.number(),price_marked:a.number(),coupon_effective_discount:a.number(),currency_symbol:a.string().allow(""),discount:a.number(),gst_tax_percentage:a.number(),cod_charges:a.number(),amount_paid:a.number(),added_to_fynd_cash:a.boolean(),transfer_price:a.number(),cashback_applied:a.number(),price_effective:a.number(),cashback:a.number(),refund_credit:a.number(),amount_paid_roundoff:a.number(),promotion_effective_discount:a.number(),refund_amount:a.number(),currency_code:a.string().allow(""),fynd_credits:a.number(),amount_to_be_collected:a.number()})}static ItemBrand(){return a.object({logo:a.string().allow(""),name:a.string().allow("")})}static Item(){return a.object({image:a.array().items(a.string().allow("")),l1_categories:a.array().items(a.string().allow("")),brand:n.ItemBrand(),seller_identifier:a.string().allow(""),code:a.string().allow(""),id:a.number(),name:a.string().allow(""),l3_category_name:a.string().allow(""),slug_key:a.string().allow(""),l2_categories:a.array().items(a.string().allow("")),size:a.string().allow(""),attributes:a.object().pattern(/\S/,a.any())})}static AppliedFreeArticles(){return a.object({article_id:a.string().allow(""),free_gift_item_details:a.any(),parent_item_identifier:a.string().allow(""),quantity:a.number()})}static AppliedPromos(){return a.object({mrp_promotion:a.boolean(),promotion_name:a.string().allow(""),article_quantity:a.number(),promo_id:a.string().allow(""),amount:a.number(),promotion_type:a.string().allow(""),applied_free_articles:a.array().items(n.AppliedFreeArticles())})}static Identifiers(){return a.object({ean:a.string().allow(""),sku_code:a.string().allow("")})}static FinancialBreakup(){return a.object({coupon_value:a.number(),delivery_charge:a.number(),brand_calculated_amount:a.number(),value_of_good:a.number(),price_marked:a.number(),coupon_effective_discount:a.number(),hsn_code:a.string().allow(""),discount:a.number(),gst_tax_percentage:a.number(),cod_charges:a.number(),amount_paid:a.number(),added_to_fynd_cash:a.boolean(),size:a.string().allow(""),transfer_price:a.number(),cashback_applied:a.number(),price_effective:a.number(),cashback:a.number(),refund_credit:a.number(),amount_paid_roundoff:a.number(),total_units:a.number(),identifiers:n.Identifiers(),gst_tag:a.string().allow(""),item_name:a.string().allow(""),promotion_effective_discount:a.number(),gst_fee:a.number(),refund_amount:a.number(),fynd_credits:a.number(),amount_to_be_collected:a.number()})}static CurrentStatus(){return a.object({updated_at:a.string().allow(""),name:a.string().allow(""),status:a.string().allow(""),journey_type:a.string().allow("").allow(null)})}static Bags(){return a.object({delivery_date:a.string().allow("").allow(null),line_number:a.number(),currency_symbol:a.string().allow(""),item:n.Item(),applied_promos:a.array().items(n.AppliedPromos()),quantity:a.number(),prices:n.Prices(),can_cancel:a.boolean(),can_return:a.boolean(),id:a.number(),returnable_date:a.string().allow("").allow(null),financial_breakup:a.array().items(n.FinancialBreakup()),parent_promo_bags:a.any(),meta:a.any(),currency_code:a.string().allow(""),seller_identifier:a.string().allow(""),current_status:n.CurrentStatus()})}static FulfillingCompany(){return a.object({id:a.number(),name:a.string().allow("")})}static DeliveryAddress(){return a.object({pincode:a.string().allow(""),phone:a.string().allow(""),latitude:a.number().allow(null),address2:a.string().allow(""),landmark:a.string().allow(""),area:a.string().allow(""),city:a.string().allow(""),address:a.string().allow(""),address_type:a.string().allow(""),longitude:a.number().allow(null),country_iso_code:a.string().allow(""),state:a.string().allow(""),created_at:a.string().allow(""),address1:a.string().allow(""),display_address:a.string().allow(""),name:a.string().allow(""),contact_person:a.string().allow(""),address_category:a.string().allow(""),email:a.string().allow(""),country_phone_code:a.string().allow(""),version:a.string().allow(""),updated_at:a.string().allow(""),country:a.string().allow("")})}static Shipments(){return a.object({payment:n.ShipmentPayment(),payment_info:a.array().items(n.ShipmentPayment()),order_type:a.string().allow("").allow(null),show_download_invoice:a.boolean(),can_cancel:a.boolean(),user_info:n.ShipmentUserInfo(),shipment_id:a.string().allow(""),fulfilling_store:n.FulfillingStore(),custom_meta:a.array().items(a.any()),shipment_status:n.ShipmentStatus(),comment:a.string().allow(""),invoice:n.Invoice(),show_track_link:a.boolean(),refund_details:a.any(),breakup_values:a.array().items(n.BreakupValues()),can_break:a.any(),traking_no:a.string().allow(""),tracking_details:a.array().items(n.TrackingDetails()),promise:n.Promise(),total_bags:a.number(),total_details:n.ShipmentTotalDetails(),prices:n.Prices(),returnable_date:a.string().allow("").allow(null),shipment_created_at:a.string().allow(""),shipment_created_ts:a.string().allow(""),size_info:a.any(),bags:a.array().items(n.Bags()),dp_name:a.string().allow(""),awb_no:a.string().allow(""),beneficiary_details:a.boolean(),fulfilling_company:n.FulfillingCompany(),can_return:a.boolean(),delivery_address:n.DeliveryAddress(),track_url:a.string().allow(""),order_id:a.string().allow(""),need_help_url:a.string().allow(""),return_meta:a.any(),delivery_date:a.string().allow("").allow(null)})}static BagsForReorderArticleAssignment(){return a.object({strategy:a.string().allow(""),level:a.string().allow("")})}static BagsForReorder(){return a.object({item_size:a.string().allow(""),quantity:a.number(),store_id:a.number(),article_assignment:n.BagsForReorderArticleAssignment(),seller_id:a.number(),item_id:a.number()})}static OrderSchema(){return a.object({total_shipments_in_order:a.number(),user_info:n.UserInfo(),breakup_values:a.array().items(n.BreakupValues()),order_created_time:a.string().allow(""),order_created_ts:a.string().allow(""),order_id:a.string().allow(""),shipments:a.array().items(n.Shipments()),bags_for_reorder:a.array().items(n.BagsForReorder())})}static OrderStatuses(){return a.object({value:a.number(),is_selected:a.boolean(),display:a.string().allow("")})}static OrderFilters(){return a.object({statuses:a.array().items(n.OrderStatuses())})}static OrderList(){return a.object({page:n.OrderPage(),items:a.array().items(n.OrderSchema()),filters:n.OrderFilters()})}static ApefaceApiError(){return a.object({message:a.string().allow(""),success:a.boolean()})}static OrderById(){return a.object({order:n.OrderSchema()})}static ShipmentById(){return a.object({shipment:n.Shipments()})}static ResponseGetInvoiceShipment(){return a.object({presigned_type:a.string().allow("").required(),success:a.boolean().required(),shipment_id:a.string().allow("").required(),presigned_url:a.string().allow("").required()})}static Track(){return a.object({account_name:a.string().allow(""),shipment_type:a.string().allow(""),status:a.string().allow(""),last_location_recieved_at:a.string().allow(""),updated_time:a.string().allow(""),updated_at:a.string().allow(""),reason:a.string().allow(""),awb:a.string().allow("")})}static ShipmentTrack(){return a.object({results:a.array().items(n.Track())})}static CustomerDetailsResponse(){return a.object({phone:a.string().allow(""),shipment_id:a.string().allow(""),name:a.string().allow(""),order_id:a.string().allow(""),country:a.string().allow("")})}static SendOtpToCustomerResponse(){return a.object({request_id:a.string().allow(""),message:a.string().allow(""),success:a.boolean(),resend_timer:a.number()})}static VerifyOtp(){return a.object({otp_code:a.string().allow(""),request_id:a.string().allow("")})}static VerifyOtpResponse(){return a.object({success:a.boolean()})}static BagReasonMeta(){return a.object({show_text_area:a.boolean()})}static QuestionSet(){return a.object({id:a.number(),display_name:a.string().allow("")})}static BagReasons(){return a.object({qc_type:a.array().items(a.string().allow("")),id:a.number(),display_name:a.string().allow(""),meta:n.BagReasonMeta(),question_set:a.array().items(n.QuestionSet()),reasons:a.array().items(a.link("#BagReasons"))}).id("BagReasons")}static ShipmentBagReasons(){return a.object({reasons:a.array().items(n.BagReasons()),success:a.boolean()})}static ShipmentReason(){return a.object({priority:a.number(),show_text_area:a.boolean(),reason_id:a.number(),feedback_type:a.string().allow(""),reason_text:a.string().allow(""),flow:a.string().allow("")})}static ShipmentReasons(){return a.object({reasons:a.array().items(n.ShipmentReason())})}static ProductsReasonsData(){return a.object({reason_id:a.number(),reason_text:a.string().allow("")})}static ProductsReasonsFilters(){return a.object({line_number:a.number(),quantity:a.number(),identifier:a.string().allow("")})}static ProductsReasons(){return a.object({data:n.ProductsReasonsData(),filters:a.array().items(n.ProductsReasonsFilters())})}static EntityReasonData(){return a.object({reason_id:a.number(),reason_text:a.string().allow("")})}static EntitiesReasons(){return a.object({data:n.EntityReasonData(),filters:a.array().items(a.any())})}static ReasonsData(){return a.object({products:a.array().items(n.ProductsReasons()),entities:a.array().items(n.EntitiesReasons())})}static Products(){return a.object({line_number:a.number(),quantity:a.number(),identifier:a.string().allow("")})}static ProductsDataUpdatesFilters(){return a.object({line_number:a.number(),identifier:a.string().allow("")})}static ProductsDataUpdates(){return a.object({data:a.any(),filters:a.array().items(n.ProductsDataUpdatesFilters())})}static EntitiesDataUpdates(){return a.object({data:a.any(),filters:a.array().items(a.any())})}static DataUpdates(){return a.object({products:a.array().items(n.ProductsDataUpdates()),entities:a.array().items(n.EntitiesDataUpdates())})}static ShipmentsRequest(){return a.object({reasons:n.ReasonsData(),products:a.array().items(n.Products()),data_updates:n.DataUpdates(),identifier:a.string().allow("").required()})}static StatuesRequest(){return a.object({shipments:a.array().items(n.ShipmentsRequest()),exclude_bags_next_state:a.string().allow(""),status:a.string().allow("")})}static UpdateShipmentStatusRequest(){return a.object({statuses:a.array().items(n.StatuesRequest()),task:a.boolean(),lock_after_transition:a.boolean(),force_transition:a.boolean(),unlock_before_transition:a.boolean()})}static StatusesBodyResponse(){return a.object({shipments:a.array().items(a.any())})}static ShipmentApplicationStatusResponse(){return a.object({statuses:a.array().items(n.StatusesBodyResponse())})}static ErrorResponse(){return a.object({code:a.string().allow("").allow(null),message:a.string().allow("").allow(null),status:a.number(),exception:a.string().allow("").allow(null),stack_trace:a.string().allow("").allow(null)})}}e.exports=n},6347:(e,t,r)=>{const a=r(9955),n=r(4920);e.exports=class{static getCustomerDetailsByShipmentId(){return a.object({orderId:a.string().allow("").required(),shipmentId:a.string().allow("").required()}).required()}static getInvoiceByShipmentId(){return a.object({shipmentId:a.string().allow("").required()}).required()}static getOrderById(){return a.object({orderId:a.string().allow("").required(),allowInactive:a.boolean()}).required()}static getOrders(){return a.object({status:a.number(),pageNo:a.number(),pageSize:a.number(),fromDate:a.string().allow(""),toDate:a.string().allow(""),startDate:a.string().allow(""),endDate:a.string().allow(""),customMeta:a.string().allow("")})}static getPosOrderById(){return a.object({orderId:a.string().allow("").required()}).required()}static getShipmentBagReasons(){return a.object({shipmentId:a.string().allow("").required(),bagId:a.string().allow("").required()}).required()}static getShipmentById(){return a.object({shipmentId:a.string().allow("").required(),allowInactive:a.boolean()}).required()}static getShipmentReasons(){return a.object({shipmentId:a.string().allow("").required()}).required()}static sendOtpToShipmentCustomer(){return a.object({orderId:a.string().allow("").required(),shipmentId:a.string().allow("").required()}).required()}static trackShipment(){return a.object({shipmentId:a.string().allow("").required()}).required()}static updateShipmentStatus(){return a.object({shipmentId:a.string().allow("").required(),body:n.UpdateShipmentStatusRequest().required()}).required()}static verifyOtpShipmentCustomer(){return a.object({orderId:a.string().allow("").required(),shipmentId:a.string().allow("").required(),body:n.VerifyOtp().required()}).required()}}},396:(e,t,r)=>{const a=r(8336),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(9916),s=r(4776),i=(r(3768),r(836)),l=r(1068),{Logger:c}=r(1544);r(9955),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={addBeneficiaryDetails:"/service/application/payment/v1.0/refund/account",addRefundBankAccountUsingOTP:"/service/application/payment/v1.0/refund/account/otp",attachCardToCustomer:"/service/application/payment/v1.0/card/attach",cancelPaymentLink:"/service/application/payment/v1.0/cancel-payment-link/",cardDetails:"/service/application/payment/v1.0/cards/info/{card_info}",checkAndUpdatePaymentStatus:"/service/application/payment/v1.0/payment/confirm/polling",checkAndUpdatePaymentStatusPaymentLink:"/service/application/payment/v1.0/payment/confirm/polling/link/",checkCredit:"/service/application/payment/v1.0/check-credits/",createOrderHandlerPaymentLink:"/service/application/payment/v1.0/create-order/link/",createPaymentLink:"/service/application/payment/v1.0/create-payment-link/",createPaymentOrder:"/service/application/payment/v1.0/payment-orders/",customerCreditSummary:"/service/application/payment/v1.0/payment/credit-summary/",customerOnboard:"/service/application/payment/v1.0/credit-onboard/",deleteUserCard:"/service/application/payment/v1.0/card/remove",delinkWallet:"/service/application/payment/v1.0/payment/options/wallet/delink",enableOrDisableRefundTransferMode:"/service/application/payment/v1.0/refund/transfer-mode",getActiveCardAggregator:"/service/application/payment/v1.0/card/aggregator",getActiveRefundTransferModes:"/service/application/payment/v1.0/refund/transfer-mode",getActiveUserCards:"/service/application/payment/v1.0/cards",getAggregatorsConfig:"/service/application/payment/v1.0/config/aggregators/key",getEpaylaterBannerDetails:"/service/application/payment/v1.0/epaylater/banner",getOrderBeneficiariesDetail:"/service/application/payment/v1.0/refund/order/beneficiaries",getPaymentLink:"/service/application/payment/v1.0/create-payment-link/",getPaymentModeRoutes:"/service/application/payment/v1.0/payment/options",getPaymentModeRoutesPaymentLink:"/service/application/payment/v1.0/payment/options/link/",getPosPaymentModeRoutes:"/service/application/payment/v1.0/payment/options/pos",getRupifiBannerDetails:"/service/application/payment/v1.0/rupifi/banner",getUserBeneficiariesDetail:"/service/application/payment/v1.0/refund/user/beneficiary",initialisePayment:"/service/application/payment/v1.0/payment/request",initialisePaymentPaymentLink:"/service/application/payment/v1.0/payment/request/link/",linkWallet:"/service/application/payment/v1.0/payment/options/wallet/verify",outstandingOrderDetails:"/service/application/payment/v1.0/payment/outstanding-orders/",paidOrderDetails:"/service/application/payment/v1.0/payment/paid-orders/",pollingPaymentLink:"/service/application/payment/v1.0/polling-payment-link/",redirectToAggregator:"/service/application/payment/v1.0/payment/redirect-to-aggregator/",renderHTML:"/service/application/payment/v1.0/payment/html/render/",resendOrCancelPayment:"/service/application/payment/v1.0/payment/resend_or_cancel",resendPaymentLink:"/service/application/payment/v1.0/resend-payment-link/",updateDefaultBeneficiary:"/service/application/payment/v1.0/refund/beneficiary/default",validateVPA:"/service/application/payment/v1.0/validate-vpa",verifyAndChargePayment:"/service/application/payment/v1.0/payment/confirm/charge",verifyCustomerForPayment:"/service/application/payment/v1.0/payment/customer/validation",verifyIfscCode:"/service/application/payment/v1.0/ifsc-code/verify",verifyOtpAndAddBeneficiaryForBank:"/service/application/payment/v1.0/refund/verification/bank",verifyOtpAndAddBeneficiaryForWallet:"/service/application/payment/v1.0/refund/verification/wallet",walletLinkInitiate:"/service/application/payment/v1.0/payment/options/wallet/link"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async addBeneficiaryDetails({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.addBeneficiaryDetails().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.addBeneficiaryDetails().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > addBeneficiaryDetails \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.addBeneficiaryDetails,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.RefundAccountResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Payment > addBeneficiaryDetails \n ${m}`})}return p}async addRefundBankAccountUsingOTP({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.addRefundBankAccountUsingOTP().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.addRefundBankAccountUsingOTP().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > addRefundBankAccountUsingOTP \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.addRefundBankAccountUsingOTP,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.RefundAccountResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Payment > addRefundBankAccountUsingOTP \n ${m}`})}return p}async attachCardToCustomer({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.attachCardToCustomer().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.attachCardToCustomer().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > attachCardToCustomer \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.attachCardToCustomer,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.AttachCardsResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Payment > attachCardToCustomer \n ${m}`})}return p}async cancelPaymentLink({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.cancelPaymentLink().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.cancelPaymentLink().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > cancelPaymentLink \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.cancelPaymentLink,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.CancelPaymentLinkResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Payment > cancelPaymentLink \n ${m}`})}return p}async cardDetails({cardInfo:e,aggregator:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.cardDetails().validate({cardInfo:e,aggregator:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.cardDetails().validate({cardInfo:e,aggregator:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > cardDetails \n ${p}`});const g={};g.aggregator=t;const m=await a.execute(this._conf,"get",s({url:this._urls.cardDetails,params:{cardInfo:e}}),g,void 0,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.CardDetailsResponse().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > Payment > cardDetails \n ${f}`})}return m}async checkAndUpdatePaymentStatus({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.checkAndUpdatePaymentStatus().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.checkAndUpdatePaymentStatus().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > checkAndUpdatePaymentStatus \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.checkAndUpdatePaymentStatus,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.PaymentStatusUpdateResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Payment > checkAndUpdatePaymentStatus \n ${m}`})}return p}async checkAndUpdatePaymentStatusPaymentLink({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.checkAndUpdatePaymentStatusPaymentLink().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.checkAndUpdatePaymentStatusPaymentLink().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > checkAndUpdatePaymentStatusPaymentLink \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.checkAndUpdatePaymentStatusPaymentLink,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.PaymentStatusUpdateResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Payment > checkAndUpdatePaymentStatusPaymentLink \n ${m}`})}return p}async checkCredit({aggregator:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.checkCredit().validate({aggregator:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.checkCredit().validate({aggregator:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > checkCredit \n ${d}`});const p={};p.aggregator=e;const g=await a.execute(this._conf,"get",s({url:this._urls.checkCredit,params:{}}),p,void 0,{...t},{responseHeaders:r});let m=g;r&&(m=g[0]);const{error:w}=l.CheckCreditResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > Payment > checkCredit \n ${w}`})}return g}async createOrderHandlerPaymentLink({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.createOrderHandlerPaymentLink().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.createOrderHandlerPaymentLink().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > createOrderHandlerPaymentLink \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.createOrderHandlerPaymentLink,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.CreateOrderUserResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Payment > createOrderHandlerPaymentLink \n ${m}`})}return p}async createPaymentLink({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.createPaymentLink().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.createPaymentLink().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > createPaymentLink \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.createPaymentLink,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.CreatePaymentLinkResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Payment > createPaymentLink \n ${m}`})}return p}async createPaymentOrder({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.createPaymentOrder().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.createPaymentOrder().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > createPaymentOrder \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.createPaymentOrder,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.PaymentOrderResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Payment > createPaymentOrder \n ${m}`})}return p}async customerCreditSummary({aggregator:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.customerCreditSummary().validate({aggregator:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.customerCreditSummary().validate({aggregator:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > customerCreditSummary \n ${d}`});const p={};p.aggregator=e;const g=await a.execute(this._conf,"get",s({url:this._urls.customerCreditSummary,params:{}}),p,void 0,{...t},{responseHeaders:r});let m=g;r&&(m=g[0]);const{error:w}=l.CustomerCreditSummaryResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > Payment > customerCreditSummary \n ${w}`})}return g}async customerOnboard({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.customerOnboard().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.customerOnboard().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > customerOnboard \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.customerOnboard,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.CustomerOnboardingResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Payment > customerOnboard \n ${m}`})}return p}async deleteUserCard({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.deleteUserCard().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.deleteUserCard().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > deleteUserCard \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.deleteUserCard,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.DeleteCardsResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Payment > deleteUserCard \n ${m}`})}return p}async delinkWallet({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.delinkWallet().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.delinkWallet().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > delinkWallet \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.delinkWallet,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.WalletResponseSchema().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Payment > delinkWallet \n ${m}`})}return p}async enableOrDisableRefundTransferMode({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.enableOrDisableRefundTransferMode().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.enableOrDisableRefundTransferMode().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > enableOrDisableRefundTransferMode \n ${d}`});const p=await a.execute(this._conf,"put",s({url:this._urls.enableOrDisableRefundTransferMode,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.UpdateRefundTransferModeResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Payment > enableOrDisableRefundTransferMode \n ${m}`})}return p}async getActiveCardAggregator({refresh:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getActiveCardAggregator().validate({refresh:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getActiveCardAggregator().validate({refresh:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > getActiveCardAggregator \n ${d}`});const p={};p.refresh=e;const g=await a.execute(this._conf,"get",s({url:this._urls.getActiveCardAggregator,params:{}}),p,void 0,{...t},{responseHeaders:r});let m=g;r&&(m=g[0]);const{error:w}=l.ActiveCardPaymentGatewayResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > Payment > getActiveCardAggregator \n ${w}`})}return g}async getActiveRefundTransferModes({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getActiveRefundTransferModes().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:u}=i.getActiveRefundTransferModes().validate({},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > getActiveRefundTransferModes \n ${u}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getActiveRefundTransferModes,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=l.TransferModeResponse().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));c({level:"WARN",message:`Response Validation Warnings for application > Payment > getActiveRefundTransferModes \n ${g}`})}return d}async getActiveUserCards({forceRefresh:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getActiveUserCards().validate({forceRefresh:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getActiveUserCards().validate({forceRefresh:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > getActiveUserCards \n ${d}`});const p={};p.force_refresh=e;const g=await a.execute(this._conf,"get",s({url:this._urls.getActiveUserCards,params:{}}),p,void 0,{...t},{responseHeaders:r});let m=g;r&&(m=g[0]);const{error:w}=l.ListCardsResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > Payment > getActiveUserCards \n ${w}`})}return g}async getAggregatorsConfig({xApiToken:e,refresh:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.getAggregatorsConfig().validate({xApiToken:e,refresh:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.getAggregatorsConfig().validate({xApiToken:e,refresh:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > getAggregatorsConfig \n ${p}`});const g={};g.refresh=t;const m={};m["x-api-token"]=e;const w=await a.execute(this._conf,"get",s({url:this._urls.getAggregatorsConfig,params:{}}),g,void 0,{...m,...r},{responseHeaders:u});let f=w;u&&(f=w[0]);const{error:y}=l.AggregatorsConfigDetailResponse().validate(f,{abortEarly:!1,allowUnknown:!0});if(y){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(y));c({level:"WARN",message:`Response Validation Warnings for application > Payment > getAggregatorsConfig \n ${y}`})}return w}async getEpaylaterBannerDetails({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getEpaylaterBannerDetails().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:u}=i.getEpaylaterBannerDetails().validate({},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > getEpaylaterBannerDetails \n ${u}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getEpaylaterBannerDetails,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=l.EpaylaterBannerResponse().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));c({level:"WARN",message:`Response Validation Warnings for application > Payment > getEpaylaterBannerDetails \n ${g}`})}return d}async getOrderBeneficiariesDetail({orderId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getOrderBeneficiariesDetail().validate({orderId:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getOrderBeneficiariesDetail().validate({orderId:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > getOrderBeneficiariesDetail \n ${d}`});const p={};p.order_id=e;const g=await a.execute(this._conf,"get",s({url:this._urls.getOrderBeneficiariesDetail,params:{}}),p,void 0,{...t},{responseHeaders:r});let m=g;r&&(m=g[0]);const{error:w}=l.OrderBeneficiaryResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > Payment > getOrderBeneficiariesDetail \n ${w}`})}return g}async getPaymentLink({paymentLinkId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getPaymentLink().validate({paymentLinkId:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getPaymentLink().validate({paymentLinkId:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > getPaymentLink \n ${d}`});const p={};p.payment_link_id=e;const g=await a.execute(this._conf,"get",s({url:this._urls.getPaymentLink,params:{}}),p,void 0,{...t},{responseHeaders:r});let m=g;r&&(m=g[0]);const{error:w}=l.GetPaymentLinkResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > Payment > getPaymentLink \n ${w}`})}return g}async getPaymentModeRoutes({amount:e,cartId:t,checkoutMode:r,refresh:u,orderId:d,cardReference:p,userDetails:g,displaySplit:m,advancePayment:w,shipmentId:f,requestHeaders:y}={requestHeaders:{}},{responseHeaders:b}={responseHeaders:!1}){const{error:h}=i.getPaymentModeRoutes().validate({amount:e,cartId:t,checkoutMode:r,refresh:u,orderId:d,cardReference:p,userDetails:g,displaySplit:m,advancePayment:w,shipmentId:f},{abortEarly:!1,allowUnknown:!0});if(h)return Promise.reject(new n(h));const{error:_}=i.getPaymentModeRoutes().validate({amount:e,cartId:t,checkoutMode:r,refresh:u,orderId:d,cardReference:p,userDetails:g,displaySplit:m,advancePayment:w,shipmentId:f},{abortEarly:!1,allowUnknown:!1});_&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > getPaymentModeRoutes \n ${_}`});const v={};v.amount=e,v.cart_id=t,v.checkout_mode=r,v.refresh=u,v.order_id=d,v.card_reference=p,v.user_details=g,v.display_split=m,v.advance_payment=w,v.shipment_id=f;const k=await a.execute(this._conf,"get",s({url:this._urls.getPaymentModeRoutes,params:{}}),v,void 0,{...y},{responseHeaders:b});let R=k;b&&(R=k[0]);const{error:P}=l.PaymentModeRouteResponse().validate(R,{abortEarly:!1,allowUnknown:!0});if(P){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(P));c({level:"WARN",message:`Response Validation Warnings for application > Payment > getPaymentModeRoutes \n ${P}`})}return k}async getPaymentModeRoutesPaymentLink({paymentLinkId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getPaymentModeRoutesPaymentLink().validate({paymentLinkId:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getPaymentModeRoutesPaymentLink().validate({paymentLinkId:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > getPaymentModeRoutesPaymentLink \n ${d}`});const p={};p.payment_link_id=e;const g=await a.execute(this._conf,"get",s({url:this._urls.getPaymentModeRoutesPaymentLink,params:{}}),p,void 0,{...t},{responseHeaders:r});let m=g;r&&(m=g[0]);const{error:w}=l.PaymentModeRouteResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > Payment > getPaymentModeRoutesPaymentLink \n ${w}`})}return g}async getPosPaymentModeRoutes({amount:e,pincode:t,orderType:r,cartId:u,checkoutMode:d,refresh:p,cardReference:g,userDetails:m,requestHeaders:w}={requestHeaders:{}},{responseHeaders:f}={responseHeaders:!1}){const{error:y}=i.getPosPaymentModeRoutes().validate({amount:e,pincode:t,orderType:r,cartId:u,checkoutMode:d,refresh:p,cardReference:g,userDetails:m},{abortEarly:!1,allowUnknown:!0});if(y)return Promise.reject(new n(y));const{error:b}=i.getPosPaymentModeRoutes().validate({amount:e,pincode:t,orderType:r,cartId:u,checkoutMode:d,refresh:p,cardReference:g,userDetails:m},{abortEarly:!1,allowUnknown:!1});b&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > getPosPaymentModeRoutes \n ${b}`});const h={};h.amount=e,h.cart_id=u,h.pincode=t,h.checkout_mode=d,h.refresh=p,h.card_reference=g,h.order_type=r,h.user_details=m;const _=await a.execute(this._conf,"get",s({url:this._urls.getPosPaymentModeRoutes,params:{}}),h,void 0,{...w},{responseHeaders:f});let v=_;f&&(v=_[0]);const{error:k}=l.PaymentModeRouteResponse().validate(v,{abortEarly:!1,allowUnknown:!0});if(k){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(k));c({level:"WARN",message:`Response Validation Warnings for application > Payment > getPosPaymentModeRoutes \n ${k}`})}return _}async getRupifiBannerDetails({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getRupifiBannerDetails().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:u}=i.getRupifiBannerDetails().validate({},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > getRupifiBannerDetails \n ${u}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getRupifiBannerDetails,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=l.RupifiBannerResponse().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));c({level:"WARN",message:`Response Validation Warnings for application > Payment > getRupifiBannerDetails \n ${g}`})}return d}async getUserBeneficiariesDetail({orderId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getUserBeneficiariesDetail().validate({orderId:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getUserBeneficiariesDetail().validate({orderId:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > getUserBeneficiariesDetail \n ${d}`});const p={};p.order_id=e;const g=await a.execute(this._conf,"get",s({url:this._urls.getUserBeneficiariesDetail,params:{}}),p,void 0,{...t},{responseHeaders:r});let m=g;r&&(m=g[0]);const{error:w}=l.OrderBeneficiaryResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > Payment > getUserBeneficiariesDetail \n ${w}`})}return g}async initialisePayment({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.initialisePayment().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.initialisePayment().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > initialisePayment \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.initialisePayment,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.PaymentInitializationResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Payment > initialisePayment \n ${m}`})}return p}async initialisePaymentPaymentLink({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.initialisePaymentPaymentLink().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.initialisePaymentPaymentLink().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > initialisePaymentPaymentLink \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.initialisePaymentPaymentLink,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.PaymentInitializationResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Payment > initialisePaymentPaymentLink \n ${m}`})}return p}async linkWallet({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.linkWallet().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.linkWallet().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > linkWallet \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.linkWallet,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.WalletResponseSchema().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Payment > linkWallet \n ${m}`})}return p}async outstandingOrderDetails({aggregator:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.outstandingOrderDetails().validate({aggregator:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.outstandingOrderDetails().validate({aggregator:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > outstandingOrderDetails \n ${d}`});const p={};p.aggregator=e;const g=await a.execute(this._conf,"get",s({url:this._urls.outstandingOrderDetails,params:{}}),p,void 0,{...t},{responseHeaders:r});let m=g;r&&(m=g[0]);const{error:w}=l.OutstandingOrderDetailsResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > Payment > outstandingOrderDetails \n ${w}`})}return g}async paidOrderDetails({aggregator:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.paidOrderDetails().validate({aggregator:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.paidOrderDetails().validate({aggregator:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > paidOrderDetails \n ${d}`});const p={};p.aggregator=e;const g=await a.execute(this._conf,"get",s({url:this._urls.paidOrderDetails,params:{}}),p,void 0,{...t},{responseHeaders:r});let m=g;r&&(m=g[0]);const{error:w}=l.PaidOrderDetailsResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > Payment > paidOrderDetails \n ${w}`})}return g}async pollingPaymentLink({paymentLinkId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.pollingPaymentLink().validate({paymentLinkId:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.pollingPaymentLink().validate({paymentLinkId:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > pollingPaymentLink \n ${d}`});const p={};p.payment_link_id=e;const g=await a.execute(this._conf,"get",s({url:this._urls.pollingPaymentLink,params:{}}),p,void 0,{...t},{responseHeaders:r});let m=g;r&&(m=g[0]);const{error:w}=l.PollingPaymentLinkResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > Payment > pollingPaymentLink \n ${w}`})}return g}async redirectToAggregator({source:e,aggregator:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.redirectToAggregator().validate({source:e,aggregator:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.redirectToAggregator().validate({source:e,aggregator:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > redirectToAggregator \n ${p}`});const g={};g.source=e,g.aggregator=t;const m=await a.execute(this._conf,"get",s({url:this._urls.redirectToAggregator,params:{}}),g,void 0,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.RedirectToAggregatorResponse().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > Payment > redirectToAggregator \n ${f}`})}return m}async renderHTML({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.renderHTML().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.renderHTML().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > renderHTML \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.renderHTML,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.renderHTMLResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Payment > renderHTML \n ${m}`})}return p}async resendOrCancelPayment({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.resendOrCancelPayment().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.resendOrCancelPayment().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > resendOrCancelPayment \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.resendOrCancelPayment,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.ResendOrCancelPaymentResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Payment > resendOrCancelPayment \n ${m}`})}return p}async resendPaymentLink({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.resendPaymentLink().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.resendPaymentLink().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > resendPaymentLink \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.resendPaymentLink,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.ResendPaymentLinkResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Payment > resendPaymentLink \n ${m}`})}return p}async updateDefaultBeneficiary({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.updateDefaultBeneficiary().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.updateDefaultBeneficiary().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > updateDefaultBeneficiary \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.updateDefaultBeneficiary,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.SetDefaultBeneficiaryResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Payment > updateDefaultBeneficiary \n ${m}`})}return p}async validateVPA({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.validateVPA().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.validateVPA().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > validateVPA \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.validateVPA,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.ValidateVPAResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Payment > validateVPA \n ${m}`})}return p}async verifyAndChargePayment({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.verifyAndChargePayment().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.verifyAndChargePayment().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > verifyAndChargePayment \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.verifyAndChargePayment,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.ChargeCustomerResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Payment > verifyAndChargePayment \n ${m}`})}return p}async verifyCustomerForPayment({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.verifyCustomerForPayment().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.verifyCustomerForPayment().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > verifyCustomerForPayment \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.verifyCustomerForPayment,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.ValidateCustomerResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Payment > verifyCustomerForPayment \n ${m}`})}return p}async verifyIfscCode({ifscCode:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.verifyIfscCode().validate({ifscCode:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.verifyIfscCode().validate({ifscCode:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > verifyIfscCode \n ${d}`});const p={};p.ifsc_code=e;const g=await a.execute(this._conf,"get",s({url:this._urls.verifyIfscCode,params:{}}),p,void 0,{...t},{responseHeaders:r});let m=g;r&&(m=g[0]);const{error:w}=l.IfscCodeResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > Payment > verifyIfscCode \n ${w}`})}return g}async verifyOtpAndAddBeneficiaryForBank({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.verifyOtpAndAddBeneficiaryForBank().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.verifyOtpAndAddBeneficiaryForBank().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > verifyOtpAndAddBeneficiaryForBank \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.verifyOtpAndAddBeneficiaryForBank,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.AddBeneficiaryViaOtpVerificationResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Payment > verifyOtpAndAddBeneficiaryForBank \n ${m}`})}return p}async verifyOtpAndAddBeneficiaryForWallet({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.verifyOtpAndAddBeneficiaryForWallet().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.verifyOtpAndAddBeneficiaryForWallet().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > verifyOtpAndAddBeneficiaryForWallet \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.verifyOtpAndAddBeneficiaryForWallet,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.WalletOtpResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Payment > verifyOtpAndAddBeneficiaryForWallet \n ${m}`})}return p}async walletLinkInitiate({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.walletLinkInitiate().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.walletLinkInitiate().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > walletLinkInitiate \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.walletLinkInitiate,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.WalletResponseSchema().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Payment > walletLinkInitiate \n ${m}`})}return p}}},1068:(e,t,r)=>{const a=r(9955);class n{static AggregatorConfigDetail(){return a.object({sdk:a.boolean().allow(null),secret:a.string().allow("").required(),api:a.string().allow("").allow(null),pin:a.string().allow("").allow(null),config_type:a.string().allow("").required(),merchant_key:a.string().allow("").allow(null),verify_api:a.string().allow("").allow(null),key:a.string().allow("").required(),user_id:a.string().allow("").allow(null),merchant_id:a.string().allow("").allow(null)})}static AggregatorsConfigDetailResponse(){return a.object({success:a.boolean().required(),razorpay:n.AggregatorConfigDetail(),juspay:n.AggregatorConfigDetail(),simpl:n.AggregatorConfigDetail(),payumoney:n.AggregatorConfigDetail(),rupifi:n.AggregatorConfigDetail(),mswipe:n.AggregatorConfigDetail(),stripe:n.AggregatorConfigDetail(),ccavenue:n.AggregatorConfigDetail(),env:a.string().allow("").required()})}static ErrorCodeAndDescription(){return a.object({code:a.string().allow("").required(),description:a.string().allow("").required()})}static HttpErrorCodeAndResponse(){return a.object({error:n.ErrorCodeAndDescription(),success:a.boolean().required()})}static AttachCardRequest(){return a.object({nickname:a.string().allow(""),refresh:a.boolean().allow(null),card_id:a.string().allow("").allow(null).required(),name_on_card:a.string().allow("")})}static AttachCardsResponse(){return a.object({data:a.any().required(),success:a.boolean().required(),message:a.string().allow("")})}static CardPaymentGateway(){return a.object({api:a.string().allow("").allow(null),aggregator:a.string().allow("").required(),customer_id:a.string().allow("").allow(null)})}static ActiveCardPaymentGatewayResponse(){return a.object({cards:n.CardPaymentGateway().required(),success:a.boolean().required(),message:a.string().allow("").required()})}static Card(){return a.object({card_number:a.string().allow("").allow(null),card_name:a.string().allow("").allow(null),card_type:a.string().allow("").allow(null),card_brand_image:a.string().allow("").allow(null),card_reference:a.string().allow("").allow(null),card_issuer:a.string().allow("").allow(null),card_brand:a.string().allow("").allow(null),expired:a.boolean().allow(null),compliant_with_tokenisation_guidelines:a.boolean().allow(null),card_isin:a.string().allow("").allow(null),exp_year:a.number().allow(null),nickname:a.string().allow("").allow(null),aggregator_name:a.string().allow("").required(),card_fingerprint:a.string().allow("").allow(null),card_token:a.string().allow("").allow(null),exp_month:a.number().allow(null),card_id:a.string().allow("").allow(null)})}static ListCardsResponse(){return a.object({data:a.array().items(n.Card()),success:a.boolean().required(),message:a.string().allow("").required()})}static DeletehCardRequest(){return a.object({card_id:a.string().allow("").allow(null).required()})}static DeleteCardsResponse(){return a.object({success:a.boolean().required(),message:a.string().allow("").allow(null)})}static ValidateCustomerRequest(){return a.object({aggregator:a.string().allow("").required(),transaction_amount_in_paise:a.number().required(),phone_number:a.string().allow("").required(),billing_address:a.any(),order_items:a.array().items(a.any()),payload:a.string().allow("").allow(null),merchant_params:a.any(),delivery_address:a.any()})}static ValidateCustomerResponse(){return a.object({data:a.any().required(),success:a.boolean().required(),message:a.string().allow("").required()})}static ChargeCustomerRequest(){return a.object({verified:a.boolean().allow(null),aggregator:a.string().allow("").required(),order_id:a.string().allow("").required(),transaction_token:a.string().allow("").allow(null),amount:a.number().allow(null).required()})}static ChargeCustomerResponse(){return a.object({status:a.string().allow("").required(),cart_id:a.string().allow("").allow(null),success:a.boolean().required(),aggregator:a.string().allow("").required(),message:a.string().allow("").required(),order_id:a.string().allow("").required(),delivery_address_id:a.string().allow("").allow(null)})}static PaymentInitializationRequest(){return a.object({razorpay_payment_id:a.string().allow("").allow(null),method:a.string().allow("").required(),device_id:a.string().allow("").allow(null),aggregator:a.string().allow("").required(),customer_id:a.string().allow("").required(),contact:a.string().allow("").required(),merchant_order_id:a.string().allow("").required(),vpa:a.string().allow("").allow(null),order_id:a.string().allow("").required(),currency:a.string().allow("").required(),timeout:a.number().allow(null),amount:a.number().allow(null).required(),email:a.string().allow("").required()})}static PaymentInitializationResponse(){return a.object({status:a.string().allow(""),razorpay_payment_id:a.string().allow("").allow(null),aggregator_order_id:a.string().allow(""),method:a.string().allow("").required(),success:a.boolean().required(),upi_poll_url:a.string().allow("").allow(null),virtual_id:a.string().allow("").allow(null),device_id:a.string().allow("").allow(null),polling_url:a.string().allow("").required(),aggregator:a.string().allow("").required(),merchant_order_id:a.string().allow("").required(),customer_id:a.string().allow("").allow(null),vpa:a.string().allow("").allow(null),currency:a.string().allow("").allow(null),timeout:a.number().allow(null),amount:a.number().allow(null),bqr_image:a.string().allow("").allow(null)})}static PaymentStatusUpdateRequest(){return a.object({status:a.string().allow("").required(),merchant_transaction_id:a.string().allow("").required(),method:a.string().allow("").required(),device_id:a.string().allow("").allow(null),aggregator:a.string().allow("").required(),customer_id:a.string().allow("").required(),contact:a.string().allow("").required(),merchant_order_id:a.string().allow("").required(),vpa:a.string().allow(""),order_id:a.string().allow("").required(),currency:a.string().allow("").required(),amount:a.number().allow(null).required(),email:a.string().allow("").required()})}static PaymentStatusUpdateResponse(){return a.object({status:a.string().allow("").required(),success:a.boolean().allow(null),retry:a.boolean().required(),redirect_url:a.string().allow("").allow(null),aggregator_name:a.string().allow("").required()})}static IntentAppErrorList(){return a.object({code:a.string().allow("").allow(null),package_name:a.string().allow("").allow(null)})}static PaymentModeLogo(){return a.object({large:a.string().allow("").required(),small:a.string().allow("").required()})}static IntentApp(){return a.object({code:a.string().allow("").allow(null),package_name:a.string().allow("").allow(null),logos:n.PaymentModeLogo(),display_name:a.string().allow("").allow(null)})}static PaymentModeList(){return a.object({card_number:a.string().allow("").allow(null),merchant_code:a.string().allow("").allow(null),card_reference:a.string().allow("").allow(null),card_issuer:a.string().allow("").allow(null),compliant_with_tokenisation_guidelines:a.boolean().allow(null),code:a.string().allow("").allow(null),cod_limit:a.number().allow(null),intent_flow:a.boolean().allow(null),fynd_vpa:a.string().allow("").allow(null),intent_app_error_dict_list:a.array().items(n.IntentAppErrorList()),aggregator_name:a.string().allow("").required(),card_fingerprint:a.string().allow("").allow(null),intent_app_error_list:a.array().items(a.string().allow("")),intent_app:a.array().items(n.IntentApp()),expired:a.boolean().allow(null),retry_count:a.number().allow(null),exp_year:a.number().allow(null),exp_month:a.number().allow(null),card_id:a.string().allow("").allow(null),remaining_limit:a.number().allow(null),display_priority:a.number().allow(null),card_brand:a.string().allow("").allow(null),cod_limit_per_order:a.number().allow(null),logo_url:n.PaymentModeLogo(),nickname:a.string().allow("").allow(null),card_name:a.string().allow("").allow(null),card_type:a.string().allow("").allow(null),card_brand_image:a.string().allow("").allow(null),display_name:a.string().allow("").allow(null),card_isin:a.string().allow("").allow(null),timeout:a.number().allow(null),card_token:a.string().allow("").allow(null),name:a.string().allow("").allow(null),meta:a.any().allow(null)})}static RootPaymentMode(){return a.object({is_pay_by_card_pl:a.boolean().allow(null),add_card_enabled:a.boolean().allow(null),display_priority:a.number().required(),display_name:a.string().allow("").required(),list:a.array().items(n.PaymentModeList()),save_card:a.boolean().allow(null),aggregator_name:a.string().allow("").allow(null),name:a.string().allow("").required(),anonymous_enable:a.boolean().allow(null)})}static AggregatorRoute(){return a.object({data:a.any().allow(null),payment_flow_data:a.string().allow("").allow(null),payment_flow:a.string().allow("").allow(null),api_link:a.string().allow("").allow(null)})}static PaymentDefaultSelection(){return a.object({mode:a.string().allow("").allow(null),identifier:a.string().allow("").allow(null),skip:a.boolean().allow(null)})}static PaymentFlow(){return a.object({bqr_razorpay:n.AggregatorRoute(),fynd:n.AggregatorRoute(),epaylater:n.AggregatorRoute(),razorpay:n.AggregatorRoute(),juspay:n.AggregatorRoute(),ajiodhan:n.AggregatorRoute(),simpl:n.AggregatorRoute(),rupifi:n.AggregatorRoute(),mswipe:n.AggregatorRoute(),stripe:n.AggregatorRoute(),ccavenue:n.AggregatorRoute(),payubiz:n.AggregatorRoute(),jiopay:n.AggregatorRoute(),upi_razorpay:n.AggregatorRoute()})}static PaymentOptionAndFlow(){return a.object({payment_option:n.RootPaymentMode().required(),payment_flows:n.PaymentFlow().required(),payment_default_selection:n.PaymentDefaultSelection()})}static AdvanceObject(){return a.object({is_active:a.boolean().allow(null),amount:a.number(),time_unit:a.string().allow("").allow(null),description:a.string().allow("").allow(null),display_name:a.string().allow("").allow(null),prepayment_type:a.string().allow("").allow(null),prepayment_value:a.number().allow(null),cancellation_type:a.string().allow("").allow(null),refund_time_limit:a.number().allow(null),all_prepayment_type:a.array().items(a.string().allow("").allow(null)),allow_custom_advance_amount:a.boolean().allow(null)})}static SplitObject(){return a.object({total_number_of_splits:a.number().allow(null),splits_remaining:a.number().allow(null),amount_remaining:a.number().allow(null)})}static AdvancePaymentObject(){return a.object({name:a.string().allow("").allow(null),display_priority:a.number().allow(null),payment_mode_id:a.number().allow(null),display_name:a.string().allow("").allow(null),list:a.array().items(n.PaymentModeList()),split:n.SplitObject(),advance:n.AdvanceObject()})}static PaymentModeRouteResponse(){return a.object({payment_options:n.PaymentOptionAndFlow().required(),success:a.boolean().required(),payment_breakup:a.any(),advance_payment:a.array().items(n.AdvancePaymentObject())})}static WalletLinkRequestSchema(){return a.object({aggregator:a.string().allow("").required(),mobile:a.string().allow("").required(),wallet_code:a.string().allow("").required()})}static WalletVerifyRequestSchema(){return a.object({aggregator:a.string().allow("").required(),link_token:a.string().allow("").required(),otp:a.number().required()})}static WalletDelinkRequestSchema(){return a.object({aggregator:a.string().allow("").required(),wallet_code:a.string().allow("").required()})}static WalletResponseSchema(){return a.object({data:a.any().required(),success:a.boolean().required()})}static RupifiBannerData(){return a.object({status:a.string().allow(""),kyc_url:a.string().allow("")})}static RupifiBannerResponse(){return a.object({data:n.RupifiBannerData().required(),success:a.boolean().required()})}static EpaylaterBannerData(){return a.object({status:a.string().allow(""),message:a.string().allow(""),display:a.boolean().required()})}static EpaylaterBannerResponse(){return a.object({data:n.EpaylaterBannerData().required(),success:a.boolean().required()})}static ResendOrCancelPaymentRequest(){return a.object({order_id:a.string().allow("").required(),device_id:a.string().allow("").allow(null),request_type:a.string().allow("").required()})}static LinkStatus(){return a.object({status:a.boolean().required(),message:a.string().allow("").required()})}static ResendOrCancelPaymentResponse(){return a.object({data:n.LinkStatus().required(),success:a.boolean().required()})}static renderHTMLRequest(){return a.object({returntype:a.string().allow("").allow(null),base64_html:a.string().allow("").required()})}static renderHTMLResponse(){return a.object({html:a.string().allow("").required()})}static ValidateVPARequest(){return a.object({upi_vpa:a.string().allow("").required(),aggregator:a.string().allow("")})}static ValidateUPI(){return a.object({status:a.string().allow("").required(),customer_name:a.string().allow("").required(),is_valid:a.boolean().required(),upi_vpa:a.string().allow("").required()})}static ValidateVPAResponse(){return a.object({data:n.ValidateUPI().required(),success:a.boolean().required()})}static CardDetails(){return a.object({status:a.boolean().required(),country:a.string().allow("").required(),bank_code:a.string().allow("").allow(null).required(),id:a.string().allow("").required(),card_exp_year:a.string().allow(""),card_brand:a.string().allow("").required(),type:a.string().allow("").required(),card_sub_type:a.string().allow("").allow(null).required(),is_domestic_card:a.boolean().required(),name_on_card:a.string().allow(""),card_exp_month:a.string().allow(""),extended_card_type:a.string().allow("").required(),card_object:a.string().allow("").required(),card_token:a.string().allow(""),user:a.string().allow(""),bank:a.string().allow("").required()})}static CardDetailsResponse(){return a.object({data:n.CardDetails().required(),success:a.boolean().required()})}static TransferItemsDetails(){return a.object({id:a.number().required(),display_name:a.string().allow(""),logo_large:a.string().allow("").required(),logo_small:a.string().allow("").required(),name:a.string().allow("").required()})}static TransferModeDetails(){return a.object({items:a.array().items(n.TransferItemsDetails()),display_name:a.string().allow("").required()})}static TransferModeResponse(){return a.object({data:a.array().items(n.TransferModeDetails()).required()})}static UpdateRefundTransferModeRequest(){return a.object({enable:a.boolean().required(),transfer_mode:a.string().allow("").required()})}static UpdateRefundTransferModeResponse(){return a.object({success:a.boolean()})}static OrderBeneficiaryDetails(){return a.object({modified_on:a.string().allow("").required(),account_no:a.string().allow("").required(),mobile:a.string().allow(""),bank_name:a.string().allow("").required(),ifsc_code:a.string().allow("").required(),is_active:a.boolean().required(),beneficiary_id:a.string().allow("").required(),account_holder:a.string().allow("").required(),email:a.string().allow("").required(),delights_user_name:a.string().allow("").allow(null),id:a.number().required(),transfer_mode:a.string().allow("").required(),branch_name:a.string().allow(""),created_on:a.string().allow("").required(),subtitle:a.string().allow("").required(),comment:a.string().allow(""),address:a.string().allow("").required(),title:a.string().allow("").required(),display_name:a.string().allow("").required()})}static OrderBeneficiaryResponse(){return a.object({show_beneficiary_details:a.boolean(),beneficiaries:a.array().items(n.OrderBeneficiaryDetails())})}static NotFoundResourceError(){return a.object({code:a.string().allow("").required(),description:a.string().allow("").required(),success:a.boolean().required()})}static IfscCodeResponse(){return a.object({branch_name:a.string().allow("").required(),success:a.boolean(),bank_name:a.string().allow("").required()})}static ErrorCodeDescription(){return a.object({code:a.string().allow("").required(),description:a.string().allow("").required(),success:a.boolean().required()})}static AddBeneficiaryViaOtpVerificationRequest(){return a.object({request_id:a.string().allow("").required(),hash_key:a.string().allow("").required(),otp:a.string().allow("").required()})}static AddBeneficiaryViaOtpVerificationResponse(){return a.object({success:a.boolean(),message:a.string().allow("").required()})}static WrongOtpError(){return a.object({is_verified_flag:a.boolean().required(),description:a.string().allow("").required(),success:a.string().allow("").required()})}static BeneficiaryModeDetails(){return a.object({account_no:a.string().allow("").required(),address:a.string().allow(""),mobile:a.string().allow("").required(),bank_name:a.string().allow("").required(),comment:a.string().allow(""),ifsc_code:a.string().allow("").required(),vpa:a.string().allow("").allow(null),branch_name:a.string().allow("").required(),account_holder:a.string().allow("").required(),wallet:a.string().allow("").allow(null),email:a.string().allow("").required()})}static AddBeneficiaryDetailsRequest(){return a.object({delights:a.boolean().required(),shipment_id:a.string().allow("").required(),details:n.BeneficiaryModeDetails().required(),otp:a.string().allow(""),order_id:a.string().allow("").required(),transfer_mode:a.string().allow("").required(),request_id:a.string().allow("")})}static RefundAccountResponse(){return a.object({is_verified_flag:a.boolean(),data:a.any(),success:a.boolean().required(),message:a.string().allow("").required()})}static BankDetailsForOTP(){return a.object({account_no:a.string().allow("").required(),bank_name:a.string().allow("").required(),ifsc_code:a.string().allow("").required(),branch_name:a.string().allow("").required(),account_holder:a.string().allow("").required()})}static AddBeneficiaryDetailsOTPRequest(){return a.object({order_id:a.string().allow("").required(),details:n.BankDetailsForOTP().required()})}static WalletOtpRequest(){return a.object({country_code:a.string().allow("").required(),mobile:a.string().allow("").required()})}static WalletOtpResponse(){return a.object({request_id:a.string().allow("").required(),is_verified_flag:a.string().allow("").required(),success:a.boolean()})}static SetDefaultBeneficiaryRequest(){return a.object({order_id:a.string().allow("").required(),beneficiary_id:a.string().allow("").required()})}static SetDefaultBeneficiaryResponse(){return a.object({is_beneficiary_set:a.boolean().required(),success:a.boolean()})}static GetPaymentLinkResponse(){return a.object({status_code:a.number().required(),payment_link_current_status:a.string().allow("").allow(null),success:a.boolean().required(),polling_timeout:a.number().allow(null),payment_link_url:a.string().allow("").allow(null),external_order_id:a.string().allow("").allow(null),message:a.string().allow("").required(),merchant_name:a.string().allow("").allow(null),amount:a.number().allow(null)})}static ErrorDescription(){return a.object({payment_transaction_id:a.string().allow("").allow(null),expired:a.boolean().allow(null),merchant_order_id:a.string().allow("").allow(null),merchant_name:a.string().allow("").allow(null),msg:a.string().allow("").allow(null),cancelled:a.boolean().allow(null),amount:a.number().allow(null),invalid_id:a.boolean().allow(null)})}static ErrorResponse(){return a.object({status_code:a.number().required(),error:n.ErrorDescription(),message:a.string().allow("").required(),success:a.boolean().required()})}static CreatePaymentLinkMeta(){return a.object({cart_id:a.string().allow("").required(),checkout_mode:a.string().allow("").required(),assign_card_id:a.string().allow("").allow(null),amount:a.string().allow("").required()})}static CreatePaymentLinkRequest(){return a.object({description:a.string().allow("").allow(null),external_order_id:a.string().allow("").required(),mobile_number:a.string().allow("").required(),amount:a.number().required(),meta:n.CreatePaymentLinkMeta().required(),email:a.string().allow("").required()})}static CreatePaymentLinkResponse(){return a.object({status_code:a.number().required(),success:a.boolean().required(),polling_timeout:a.number().allow(null),payment_link_url:a.string().allow("").allow(null),message:a.string().allow("").required(),payment_link_id:a.string().allow("").allow(null)})}static CancelOrResendPaymentLinkRequest(){return a.object({payment_link_id:a.string().allow("").required()})}static ResendPaymentLinkResponse(){return a.object({status_code:a.number().required(),polling_timeout:a.number().allow(null),success:a.boolean().required(),message:a.string().allow("").required()})}static CancelPaymentLinkResponse(){return a.object({status_code:a.number().required(),success:a.boolean().required(),message:a.string().allow("").required()})}static PollingPaymentLinkResponse(){return a.object({status:a.string().allow("").allow(null),status_code:a.number().allow(null),success:a.boolean().allow(null),http_status:a.number().allow(null),message:a.string().allow("").allow(null),order_id:a.string().allow("").allow(null),redirect_url:a.string().allow("").allow(null),payment_link_id:a.string().allow("").allow(null),aggregator_name:a.string().allow("").allow(null),amount:a.number().allow(null)})}static PaymentMethodsMeta(){return a.object({merchant_code:a.string().allow("").required(),payment_gateway:a.string().allow("").required(),payment_identifier:a.string().allow("").required()})}static CreateOrderUserPaymentMethods(){return a.object({name:a.string().allow("").required(),mode:a.string().allow("").required(),meta:n.PaymentMethodsMeta().required()})}static CreateOrderUserRequest(){return a.object({failure_callback_url:a.string().allow("").required(),currency:a.string().allow("").required(),payment_link_id:a.string().allow("").required(),payment_methods:n.CreateOrderUserPaymentMethods().required(),success_callback_url:a.string().allow("").required(),meta:a.any().allow(null)})}static CreateOrderUserData(){return a.object({method:a.string().allow("").allow(null),aggregator:a.string().allow("").allow(null),customer_id:a.string().allow("").allow(null),contact:a.string().allow("").allow(null),merchant_order_id:a.string().allow("").allow(null),order_id:a.string().allow("").allow(null),currency:a.string().allow("").allow(null),callback_url:a.string().allow("").allow(null),amount:a.number().allow(null),email:a.string().allow("").allow(null)})}static CreateOrderUserResponse(){return a.object({status_code:a.number().required(),success:a.boolean().required(),data:n.CreateOrderUserData(),message:a.string().allow("").required(),order_id:a.string().allow("").allow(null),callback_url:a.string().allow("").allow(null),payment_confirm_url:a.string().allow("").allow(null)})}static BalanceDetails(){return a.object({formatted_value:a.string().allow("").allow(null),currency:a.string().allow("").allow(null),value:a.number().allow(null)})}static CreditSummary(){return a.object({total_due_amount:n.BalanceDetails(),status:a.string().allow("").allow(null),limit:n.BalanceDetails(),credit_line_id:a.string().allow("").allow(null),amount_available:n.BalanceDetails(),due_amount:n.BalanceDetails(),due_date:a.string().allow("").allow(null),balance:n.BalanceDetails(),status_message:a.string().allow("").allow(null),repayment_url:a.string().allow("").allow(null),soa_url:a.string().allow("").allow(null),is_eligible_for_txn:a.boolean().allow(null),merchant_customer_ref_id:a.string().allow("").allow(null),buyer_status:a.string().allow("").allow(null),activation_url:a.string().allow("").allow(null)})}static CustomerCreditSummaryResponse(){return a.object({data:n.CreditSummary(),success:a.boolean().required()})}static RedirectURL(){return a.object({status:a.boolean().required(),signup_url:a.string().allow("").required()})}static RedirectToAggregatorResponse(){return a.object({data:n.RedirectURL().required(),success:a.boolean().required()})}static CreditDetail(){return a.object({status:a.boolean().required(),is_registered:a.boolean().required(),signup_url:a.string().allow("").required()})}static CheckCreditResponse(){return a.object({data:n.CreditDetail().required(),success:a.boolean().required()})}static KYCAddress(){return a.object({city:a.string().allow("").required(),addressline2:a.string().allow("").allow(null),state:a.string().allow("").required(),ownership_type:a.string().allow("").allow(null),pincode:a.string().allow("").required(),land_mark:a.string().allow("").allow(null),addressline1:a.string().allow("").required()})}static UserPersonalInfoInDetails(){return a.object({first_name:a.string().allow("").required(),voter_id:a.string().allow("").allow(null),gender:a.string().allow("").allow(null),dob:a.string().allow("").allow(null).required(),passport:a.string().allow("").allow(null),fathers_name:a.string().allow("").allow(null),mothers_name:a.string().allow("").allow(null),middle_name:a.string().allow("").allow(null),last_name:a.string().allow("").allow(null),pan:a.string().allow("").allow(null),driving_license:a.string().allow("").allow(null),email_verified:a.boolean().required(),address_as_per_id:n.KYCAddress().required(),mobile_verified:a.boolean().required(),phone:a.string().allow("").required(),email:a.string().allow("").allow(null)})}static MarketplaceInfo(){return a.object({date_of_joining:a.string().allow("").allow(null),name:a.string().allow("").required(),membership_id:a.string().allow("").required()})}static BusinessDetails(){return a.object({business_ownership_type:a.string().allow("").allow(null),vintage:a.string().allow("").allow(null),gstin:a.string().allow("").allow(null),pan:a.string().allow("").allow(null),entity_type:a.string().allow("").allow(null),shop_and_establishment:a.any(),fssai:a.string().allow("").allow(null),fda:a.string().allow("").allow(null),business_type:a.string().allow("").allow(null),name:a.string().allow("").allow(null),address:n.KYCAddress()})}static DeviceDetails(){return a.object({identification_number:a.string().allow("").allow(null),identifier_type:a.string().allow("").allow(null),device_model:a.string().allow("").allow(null),device_make:a.string().allow("").allow(null),device_type:a.string().allow("").allow(null),os:a.string().allow("").allow(null),os_version:a.string().allow("").allow(null)})}static CustomerOnboardingRequest(){return a.object({personal_info:n.UserPersonalInfoInDetails(),mcc:a.string().allow("").allow(null),aggregator:a.string().allow("").required(),marketplace_info:n.MarketplaceInfo(),source:a.string().allow("").required(),business_info:n.BusinessDetails(),device:n.DeviceDetails()})}static OnboardSummary(){return a.object({redirect_url:a.string().allow(""),session:a.any(),status:a.boolean().required(),status_remark:a.string().allow(""),is_eligible_for_txn:a.boolean(),merchant_customer_ref_id:a.string().allow(""),activation_url:a.string().allow("")})}static CustomerOnboardingResponse(){return a.object({data:n.OnboardSummary().required(),success:a.boolean().required()})}static OutstandingOrderDetailsResponse(){return a.object({status_code:a.number().required(),data:a.array().items(a.any()),success:a.boolean().required(),message:a.string().allow("").allow(null)})}static PaidOrderDetailsResponse(){return a.object({status_code:a.number().required(),data:a.array().items(a.any()),success:a.boolean().required(),message:a.string().allow("").allow(null)})}static PaymentMethodsMetaOrder(){return a.object({merchant_code:a.string().allow("").required(),payment_gateway:a.string().allow("").required(),payment_identifier:a.string().allow("").required()})}static PaymentOrderMethods(){return a.object({amount:a.number().required(),payment:a.string().allow(""),mode:a.string().allow("").required(),meta:n.PaymentMethodsMetaOrder().required(),name:a.string().allow("").required()})}static PaymentOrderRequest(){return a.object({payment_methods:a.array().items(n.PaymentOrderMethods()),order_id:a.string().allow("").required(),shipment_id:a.string().allow("")})}static PaymentOrderData(){return a.object({amount:a.number().allow(null),aggregator:a.string().allow("").allow(null),callback_url:a.string().allow("").allow(null),order_id:a.string().allow("").allow(null),customer_id:a.string().allow("").allow(null),merchant_order_id:a.string().allow("").allow(null),currency:a.string().allow("").allow(null),email:a.string().allow("").allow(null),contact:a.string().allow("").allow(null),method:a.string().allow("").allow(null)})}static PaymentOrderResponse(){return a.object({payment_confirm_url:a.string().allow("").allow(null),callback_url:a.string().allow("").allow(null),order_id:a.string().allow("").allow(null),success:a.boolean().required(),status_code:a.number().required(),data:n.PaymentOrderData(),message:a.string().allow("").required()})}}e.exports=n},836:(e,t,r)=>{const a=r(9955),n=r(1068);e.exports=class{static addBeneficiaryDetails(){return a.object({body:n.AddBeneficiaryDetailsRequest().required()}).required()}static addRefundBankAccountUsingOTP(){return a.object({body:n.AddBeneficiaryDetailsOTPRequest().required()}).required()}static attachCardToCustomer(){return a.object({body:n.AttachCardRequest().required()}).required()}static cancelPaymentLink(){return a.object({body:n.CancelOrResendPaymentLinkRequest().required()}).required()}static cardDetails(){return a.object({cardInfo:a.string().allow("").required(),aggregator:a.string().allow("")}).required()}static checkAndUpdatePaymentStatus(){return a.object({body:n.PaymentStatusUpdateRequest().required()}).required()}static checkAndUpdatePaymentStatusPaymentLink(){return a.object({body:n.PaymentStatusUpdateRequest().required()}).required()}static checkCredit(){return a.object({aggregator:a.string().allow("")})}static createOrderHandlerPaymentLink(){return a.object({body:n.CreateOrderUserRequest().required()}).required()}static createPaymentLink(){return a.object({body:n.CreatePaymentLinkRequest().required()}).required()}static createPaymentOrder(){return a.object({body:n.PaymentOrderRequest().required()}).required()}static customerCreditSummary(){return a.object({aggregator:a.string().allow("")})}static customerOnboard(){return a.object({body:n.CustomerOnboardingRequest().required()}).required()}static deleteUserCard(){return a.object({body:n.DeletehCardRequest().required()}).required()}static delinkWallet(){return a.object({body:n.WalletDelinkRequestSchema().required()}).required()}static enableOrDisableRefundTransferMode(){return a.object({body:n.UpdateRefundTransferModeRequest().required()}).required()}static getActiveCardAggregator(){return a.object({refresh:a.boolean()})}static getActiveRefundTransferModes(){return a.object({})}static getActiveUserCards(){return a.object({forceRefresh:a.boolean()})}static getAggregatorsConfig(){return a.object({xApiToken:a.string().allow(""),refresh:a.boolean()})}static getEpaylaterBannerDetails(){return a.object({})}static getOrderBeneficiariesDetail(){return a.object({orderId:a.string().allow("").required()}).required()}static getPaymentLink(){return a.object({paymentLinkId:a.string().allow("")})}static getPaymentModeRoutes(){return a.object({amount:a.number().required(),cartId:a.string().allow(""),checkoutMode:a.string().allow(""),refresh:a.boolean(),orderId:a.string().allow(""),cardReference:a.string().allow(""),userDetails:a.string().allow(""),displaySplit:a.boolean(),advancePayment:a.boolean(),shipmentId:a.string().allow("")}).required()}static getPaymentModeRoutesPaymentLink(){return a.object({paymentLinkId:a.string().allow("").required()}).required()}static getPosPaymentModeRoutes(){return a.object({amount:a.number().required(),cartId:a.string().allow(""),pincode:a.string().allow("").required(),checkoutMode:a.string().allow(""),refresh:a.boolean(),cardReference:a.string().allow(""),orderType:a.string().allow("").required(),userDetails:a.string().allow("")}).required()}static getRupifiBannerDetails(){return a.object({})}static getUserBeneficiariesDetail(){return a.object({orderId:a.string().allow("").required()}).required()}static initialisePayment(){return a.object({body:n.PaymentInitializationRequest().required()}).required()}static initialisePaymentPaymentLink(){return a.object({body:n.PaymentInitializationRequest().required()}).required()}static linkWallet(){return a.object({body:n.WalletVerifyRequestSchema().required()}).required()}static outstandingOrderDetails(){return a.object({aggregator:a.string().allow("")})}static paidOrderDetails(){return a.object({aggregator:a.string().allow("")})}static pollingPaymentLink(){return a.object({paymentLinkId:a.string().allow("")})}static redirectToAggregator(){return a.object({source:a.string().allow(""),aggregator:a.string().allow("")})}static renderHTML(){return a.object({body:n.renderHTMLRequest().required()}).required()}static resendOrCancelPayment(){return a.object({body:n.ResendOrCancelPaymentRequest().required()}).required()}static resendPaymentLink(){return a.object({body:n.CancelOrResendPaymentLinkRequest().required()}).required()}static updateDefaultBeneficiary(){return a.object({body:n.SetDefaultBeneficiaryRequest().required()}).required()}static validateVPA(){return a.object({body:n.ValidateVPARequest().required()}).required()}static verifyAndChargePayment(){return a.object({body:n.ChargeCustomerRequest().required()}).required()}static verifyCustomerForPayment(){return a.object({body:n.ValidateCustomerRequest().required()}).required()}static verifyIfscCode(){return a.object({ifscCode:a.string().allow("")})}static verifyOtpAndAddBeneficiaryForBank(){return a.object({body:n.AddBeneficiaryViaOtpVerificationRequest().required()}).required()}static verifyOtpAndAddBeneficiaryForWallet(){return a.object({body:n.WalletOtpRequest().required()}).required()}static walletLinkInitiate(){return a.object({body:n.WalletLinkRequestSchema().required()}).required()}}},2336:(e,t,r)=>{const a=r(8336),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(9916),s=r(4776),i=(r(3768),r(6744)),l=r(1408),{Logger:c}=r(1544),u=r(9955);e.exports=class{constructor(e){this._conf=e,this._relativeUrls={addAddress:"/service/application/pos/cart/v1.0/address",addItems:"/service/application/pos/cart/v1.0/detail",applyCoupon:"/service/application/pos/cart/v1.0/coupon",applyRewardPoints:"/service/application/pos/cart/v1.0/redeem/points/",checkoutCart:"/service/application/pos/cart/v1.0/checkout",getAddressById:"/service/application/pos/cart/v1.0/address/{id}",getAddresses:"/service/application/pos/cart/v1.0/address",getAvailableDeliveryModes:"/service/application/pos/cart/v1.0/available-delivery-mode",getBulkDiscountOffers:"/service/application/pos/cart/v1.0/bulk-price",getCart:"/service/application/pos/cart/v1.0/detail",getCartLastModified:"/service/application/pos/cart/v1.0/detail",getCartShareLink:"/service/application/pos/cart/v1.0/share-cart",getCartSharedItems:"/service/application/pos/cart/v1.0/share-cart/{token}",getCoupons:"/service/application/pos/cart/v1.0/coupon",getItemCount:"/service/application/pos/cart/v1.0/basic",getShipments:"/service/application/pos/cart/v1.0/shipment",getStoreAddressByUid:"/service/application/pos/cart/v1.0/store-address",removeAddress:"/service/application/pos/cart/v1.0/address/{id}",removeCoupon:"/service/application/pos/cart/v1.0/coupon",selectAddress:"/service/application/pos/cart/v1.0/select-address",selectPaymentMode:"/service/application/pos/cart/v1.0/payment",updateAddress:"/service/application/pos/cart/v1.0/address/{id}",updateCart:"/service/application/pos/cart/v1.0/detail",updateCartMeta:"/service/application/pos/cart/v1.0/meta",updateCartWithSharedItems:"/service/application/pos/cart/v1.0/share-cart/{token}/{action}",updateShipments:"/service/application/pos/cart/v1.0/shipment",validateCouponForPayment:"/service/application/pos/cart/v1.0/payment/validate/"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async addAddress({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.addAddress().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.addAddress().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > addAddress \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.addAddress,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.SaveAddressResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > PosCart > addAddress \n ${m}`})}return p}async addItems({body:e,i:t,b:r,areaCode:u,buyNow:d,id:p,requestHeaders:g}={requestHeaders:{}},{responseHeaders:m}={responseHeaders:!1}){const{error:w}=i.addItems().validate({body:e,i:t,b:r,areaCode:u,buyNow:d,id:p},{abortEarly:!1,allowUnknown:!0});if(w)return Promise.reject(new n(w));const{error:f}=i.addItems().validate({body:e,i:t,b:r,areaCode:u,buyNow:d,id:p},{abortEarly:!1,allowUnknown:!1});f&&c({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > addItems \n ${f}`});const y={};y.i=t,y.b=r,y.area_code=u,y.buy_now=d,y.id=p;const b=await a.execute(this._conf,"post",s({url:this._urls.addItems,params:{}}),y,e,{...g},{responseHeaders:m});let h=b;m&&(h=b[0]);const{error:_}=l.AddCartDetailResponse().validate(h,{abortEarly:!1,allowUnknown:!0});if(_){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(_));c({level:"WARN",message:`Response Validation Warnings for application > PosCart > addItems \n ${_}`})}return b}async applyCoupon({body:e,i:t,b:r,p:u,id:d,buyNow:p,requestHeaders:g}={requestHeaders:{}},{responseHeaders:m}={responseHeaders:!1}){const{error:w}=i.applyCoupon().validate({body:e,i:t,b:r,p:u,id:d,buyNow:p},{abortEarly:!1,allowUnknown:!0});if(w)return Promise.reject(new n(w));const{error:f}=i.applyCoupon().validate({body:e,i:t,b:r,p:u,id:d,buyNow:p},{abortEarly:!1,allowUnknown:!1});f&&c({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > applyCoupon \n ${f}`});const y={};y.i=t,y.b=r,y.p=u,y.id=d,y.buy_now=p;const b=await a.execute(this._conf,"post",s({url:this._urls.applyCoupon,params:{}}),y,e,{...g},{responseHeaders:m});let h=b;m&&(h=b[0]);const{error:_}=l.CartDetailResponse().validate(h,{abortEarly:!1,allowUnknown:!0});if(_){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(_));c({level:"WARN",message:`Response Validation Warnings for application > PosCart > applyCoupon \n ${_}`})}return b}async applyRewardPoints({body:e,id:t,i:r,b:u,buyNow:d,requestHeaders:p}={requestHeaders:{}},{responseHeaders:g}={responseHeaders:!1}){const{error:m}=i.applyRewardPoints().validate({body:e,id:t,i:r,b:u,buyNow:d},{abortEarly:!1,allowUnknown:!0});if(m)return Promise.reject(new n(m));const{error:w}=i.applyRewardPoints().validate({body:e,id:t,i:r,b:u,buyNow:d},{abortEarly:!1,allowUnknown:!1});w&&c({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > applyRewardPoints \n ${w}`});const f={};f.id=t,f.i=r,f.b=u,f.buy_now=d;const y=await a.execute(this._conf,"post",s({url:this._urls.applyRewardPoints,params:{}}),f,e,{...p},{responseHeaders:g});let b=y;g&&(b=y[0]);const{error:h}=l.CartDetailResponse().validate(b,{abortEarly:!1,allowUnknown:!0});if(h){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(h));c({level:"WARN",message:`Response Validation Warnings for application > PosCart > applyRewardPoints \n ${h}`})}return y}async checkoutCart({body:e,id:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.checkoutCart().validate({body:e,id:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.checkoutCart().validate({body:e,id:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > checkoutCart \n ${p}`});const g={};g.id=t;const m=await a.execute(this._conf,"post",s({url:this._urls.checkoutCart,params:{}}),g,e,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.CartCheckoutResponse().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > PosCart > checkoutCart \n ${f}`})}return m}async getAddressById({id:e,cartId:t,buyNow:r,mobileNo:u,checkoutMode:d,tags:p,isDefault:g,requestHeaders:m}={requestHeaders:{}},{responseHeaders:w}={responseHeaders:!1}){const{error:f}=i.getAddressById().validate({id:e,cartId:t,buyNow:r,mobileNo:u,checkoutMode:d,tags:p,isDefault:g},{abortEarly:!1,allowUnknown:!0});if(f)return Promise.reject(new n(f));const{error:y}=i.getAddressById().validate({id:e,cartId:t,buyNow:r,mobileNo:u,checkoutMode:d,tags:p,isDefault:g},{abortEarly:!1,allowUnknown:!1});y&&c({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > getAddressById \n ${y}`});const b={};b.cart_id=t,b.buy_now=r,b.mobile_no=u,b.checkout_mode=d,b.tags=p,b.is_default=g;const h=await a.execute(this._conf,"get",s({url:this._urls.getAddressById,params:{id:e}}),b,void 0,{...m},{responseHeaders:w});let _=h;w&&(_=h[0]);const{error:v}=l.Address().validate(_,{abortEarly:!1,allowUnknown:!0});if(v){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(v));c({level:"WARN",message:`Response Validation Warnings for application > PosCart > getAddressById \n ${v}`})}return h}async getAddresses({cartId:e,buyNow:t,mobileNo:r,checkoutMode:u,tags:d,isDefault:p,requestHeaders:g}={requestHeaders:{}},{responseHeaders:m}={responseHeaders:!1}){const{error:w}=i.getAddresses().validate({cartId:e,buyNow:t,mobileNo:r,checkoutMode:u,tags:d,isDefault:p},{abortEarly:!1,allowUnknown:!0});if(w)return Promise.reject(new n(w));const{error:f}=i.getAddresses().validate({cartId:e,buyNow:t,mobileNo:r,checkoutMode:u,tags:d,isDefault:p},{abortEarly:!1,allowUnknown:!1});f&&c({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > getAddresses \n ${f}`});const y={};y.cart_id=e,y.buy_now=t,y.mobile_no=r,y.checkout_mode=u,y.tags=d,y.is_default=p;const b=await a.execute(this._conf,"get",s({url:this._urls.getAddresses,params:{}}),y,void 0,{...g},{responseHeaders:m});let h=b;m&&(h=b[0]);const{error:_}=l.GetAddressesResponse().validate(h,{abortEarly:!1,allowUnknown:!0});if(_){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(_));c({level:"WARN",message:`Response Validation Warnings for application > PosCart > getAddresses \n ${_}`})}return b}async getAvailableDeliveryModes({areaCode:e,id:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.getAvailableDeliveryModes().validate({areaCode:e,id:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.getAvailableDeliveryModes().validate({areaCode:e,id:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > getAvailableDeliveryModes \n ${p}`});const g={};g.area_code=e,g.id=t;const m=await a.execute(this._conf,"get",s({url:this._urls.getAvailableDeliveryModes,params:{}}),g,void 0,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.CartDeliveryModesResponse().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > PosCart > getAvailableDeliveryModes \n ${f}`})}return m}async getBulkDiscountOffers({itemId:e,articleId:t,uid:r,slug:u,requestHeaders:d}={requestHeaders:{}},{responseHeaders:p}={responseHeaders:!1}){const{error:g}=i.getBulkDiscountOffers().validate({itemId:e,articleId:t,uid:r,slug:u},{abortEarly:!1,allowUnknown:!0});if(g)return Promise.reject(new n(g));const{error:m}=i.getBulkDiscountOffers().validate({itemId:e,articleId:t,uid:r,slug:u},{abortEarly:!1,allowUnknown:!1});m&&c({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > getBulkDiscountOffers \n ${m}`});const w={};w.item_id=e,w.article_id=t,w.uid=r,w.slug=u;const f=await a.execute(this._conf,"get",s({url:this._urls.getBulkDiscountOffers,params:{}}),w,void 0,{...d},{responseHeaders:p});let y=f;p&&(y=f[0]);const{error:b}=l.BulkPriceResponse().validate(y,{abortEarly:!1,allowUnknown:!0});if(b){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(b));c({level:"WARN",message:`Response Validation Warnings for application > PosCart > getBulkDiscountOffers \n ${b}`})}return f}async getCart({id:e,i:t,b:r,c:u,assignCardId:d,areaCode:p,buyNow:g,requestHeaders:m}={requestHeaders:{}},{responseHeaders:w}={responseHeaders:!1}){const{error:f}=i.getCart().validate({id:e,i:t,b:r,c:u,assignCardId:d,areaCode:p,buyNow:g},{abortEarly:!1,allowUnknown:!0});if(f)return Promise.reject(new n(f));const{error:y}=i.getCart().validate({id:e,i:t,b:r,c:u,assignCardId:d,areaCode:p,buyNow:g},{abortEarly:!1,allowUnknown:!1});y&&c({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > getCart \n ${y}`});const b={};b.id=e,b.i=t,b.b=r,b.c=u,b.assign_card_id=d,b.area_code=p,b.buy_now=g;const h=await a.execute(this._conf,"get",s({url:this._urls.getCart,params:{}}),b,void 0,{...m},{responseHeaders:w});let _=h;w&&(_=h[0]);const{error:v}=l.CartDetailResponse().validate(_,{abortEarly:!1,allowUnknown:!0});if(v){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(v));c({level:"WARN",message:`Response Validation Warnings for application > PosCart > getCart \n ${v}`})}return h}async getCartLastModified({id:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:l}=i.getCartLastModified().validate({id:e},{abortEarly:!1,allowUnknown:!0});if(l)return Promise.reject(new n(l));const{error:d}=i.getCartLastModified().validate({id:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > getCartLastModified \n ${d}`});const p={};p.id=e;const g=await a.execute(this._conf,"head",s({url:this._urls.getCartLastModified,params:{}}),p,void 0,{...t},{responseHeaders:r});let m=g;r&&(m=g[0]);const{error:w}=u.string().allow("").validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > PosCart > getCartLastModified \n ${w}`})}return g}async getCartShareLink({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getCartShareLink().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getCartShareLink().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > getCartShareLink \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.getCartShareLink,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.GetShareCartLinkResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > PosCart > getCartShareLink \n ${m}`})}return p}async getCartSharedItems({token:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getCartSharedItems().validate({token:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getCartSharedItems().validate({token:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > getCartSharedItems \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getCartSharedItems,params:{token:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.SharedCartResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > PosCart > getCartSharedItems \n ${m}`})}return p}async getCoupons({id:e,buyNow:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.getCoupons().validate({id:e,buyNow:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.getCoupons().validate({id:e,buyNow:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > getCoupons \n ${p}`});const g={};g.id=e,g.buy_now=t;const m=await a.execute(this._conf,"get",s({url:this._urls.getCoupons,params:{}}),g,void 0,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.GetCouponResponse().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > PosCart > getCoupons \n ${f}`})}return m}async getItemCount({id:e,buyNow:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.getItemCount().validate({id:e,buyNow:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.getItemCount().validate({id:e,buyNow:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > getItemCount \n ${p}`});const g={};g.id=e,g.buy_now=t;const m=await a.execute(this._conf,"get",s({url:this._urls.getItemCount,params:{}}),g,void 0,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.CartItemCountResponse().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > PosCart > getItemCount \n ${f}`})}return m}async getShipments({pickAtStoreUid:e,orderingStoreId:t,p:r,id:u,addressId:d,areaCode:p,orderType:g,requestHeaders:m}={requestHeaders:{}},{responseHeaders:w}={responseHeaders:!1}){const{error:f}=i.getShipments().validate({pickAtStoreUid:e,orderingStoreId:t,p:r,id:u,addressId:d,areaCode:p,orderType:g},{abortEarly:!1,allowUnknown:!0});if(f)return Promise.reject(new n(f));const{error:y}=i.getShipments().validate({pickAtStoreUid:e,orderingStoreId:t,p:r,id:u,addressId:d,areaCode:p,orderType:g},{abortEarly:!1,allowUnknown:!1});y&&c({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > getShipments \n ${y}`});const b={};b.pick_at_store_uid=e,b.ordering_store_id=t,b.p=r,b.id=u,b.address_id=d,b.area_code=p,b.order_type=g;const h=await a.execute(this._conf,"get",s({url:this._urls.getShipments,params:{}}),b,void 0,{...m},{responseHeaders:w});let _=h;w&&(_=h[0]);const{error:v}=l.CartShipmentsResponse().validate(_,{abortEarly:!1,allowUnknown:!0});if(v){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(v));c({level:"WARN",message:`Response Validation Warnings for application > PosCart > getShipments \n ${v}`})}return h}async getStoreAddressByUid({storeUid:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getStoreAddressByUid().validate({storeUid:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getStoreAddressByUid().validate({storeUid:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > getStoreAddressByUid \n ${d}`});const p={};p.store_uid=e;const g=await a.execute(this._conf,"get",s({url:this._urls.getStoreAddressByUid,params:{}}),p,void 0,{...t},{responseHeaders:r});let m=g;r&&(m=g[0]);const{error:w}=l.StoreDetailsResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > PosCart > getStoreAddressByUid \n ${w}`})}return g}async removeAddress({id:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.removeAddress().validate({id:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.removeAddress().validate({id:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > removeAddress \n ${d}`});const p=await a.execute(this._conf,"delete",s({url:this._urls.removeAddress,params:{id:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.DeleteAddressResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > PosCart > removeAddress \n ${m}`})}return p}async removeCoupon({id:e,buyNow:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.removeCoupon().validate({id:e,buyNow:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.removeCoupon().validate({id:e,buyNow:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > removeCoupon \n ${p}`});const g={};g.id=e,g.buy_now=t;const m=await a.execute(this._conf,"delete",s({url:this._urls.removeCoupon,params:{}}),g,void 0,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.CartDetailResponse().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > PosCart > removeCoupon \n ${f}`})}return m}async selectAddress({body:e,cartId:t,buyNow:r,i:u,b:d,requestHeaders:p}={requestHeaders:{}},{responseHeaders:g}={responseHeaders:!1}){const{error:m}=i.selectAddress().validate({body:e,cartId:t,buyNow:r,i:u,b:d},{abortEarly:!1,allowUnknown:!0});if(m)return Promise.reject(new n(m));const{error:w}=i.selectAddress().validate({body:e,cartId:t,buyNow:r,i:u,b:d},{abortEarly:!1,allowUnknown:!1});w&&c({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > selectAddress \n ${w}`});const f={};f.cart_id=t,f.buy_now=r,f.i=u,f.b=d;const y=await a.execute(this._conf,"post",s({url:this._urls.selectAddress,params:{}}),f,e,{...p},{responseHeaders:g});let b=y;g&&(b=y[0]);const{error:h}=l.CartDetailResponse().validate(b,{abortEarly:!1,allowUnknown:!0});if(h){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(h));c({level:"WARN",message:`Response Validation Warnings for application > PosCart > selectAddress \n ${h}`})}return y}async selectPaymentMode({body:e,id:t,buyNow:r,requestHeaders:u}={requestHeaders:{}},{responseHeaders:d}={responseHeaders:!1}){const{error:p}=i.selectPaymentMode().validate({body:e,id:t,buyNow:r},{abortEarly:!1,allowUnknown:!0});if(p)return Promise.reject(new n(p));const{error:g}=i.selectPaymentMode().validate({body:e,id:t,buyNow:r},{abortEarly:!1,allowUnknown:!1});g&&c({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > selectPaymentMode \n ${g}`});const m={};m.id=t,m.buy_now=r;const w=await a.execute(this._conf,"put",s({url:this._urls.selectPaymentMode,params:{}}),m,e,{...u},{responseHeaders:d});let f=w;d&&(f=w[0]);const{error:y}=l.CartDetailResponse().validate(f,{abortEarly:!1,allowUnknown:!0});if(y){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(y));c({level:"WARN",message:`Response Validation Warnings for application > PosCart > selectPaymentMode \n ${y}`})}return w}async updateAddress({id:e,body:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.updateAddress().validate({id:e,body:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.updateAddress().validate({id:e,body:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > updateAddress \n ${p}`});const g=await a.execute(this._conf,"put",s({url:this._urls.updateAddress,params:{id:e}}),{},t,{...r},{responseHeaders:u});let m=g;u&&(m=g[0]);const{error:w}=l.UpdateAddressResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > PosCart > updateAddress \n ${w}`})}return g}async updateCart({body:e,id:t,i:r,b:u,areaCode:d,buyNow:p,requestHeaders:g}={requestHeaders:{}},{responseHeaders:m}={responseHeaders:!1}){const{error:w}=i.updateCart().validate({body:e,id:t,i:r,b:u,areaCode:d,buyNow:p},{abortEarly:!1,allowUnknown:!0});if(w)return Promise.reject(new n(w));const{error:f}=i.updateCart().validate({body:e,id:t,i:r,b:u,areaCode:d,buyNow:p},{abortEarly:!1,allowUnknown:!1});f&&c({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > updateCart \n ${f}`});const y={};y.id=t,y.i=r,y.b=u,y.area_code=d,y.buy_now=p;const b=await a.execute(this._conf,"put",s({url:this._urls.updateCart,params:{}}),y,e,{...g},{responseHeaders:m});let h=b;m&&(h=b[0]);const{error:_}=l.UpdateCartDetailResponse().validate(h,{abortEarly:!1,allowUnknown:!0});if(_){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(_));c({level:"WARN",message:`Response Validation Warnings for application > PosCart > updateCart \n ${_}`})}return b}async updateCartMeta({body:e,id:t,buyNow:r,requestHeaders:u}={requestHeaders:{}},{responseHeaders:d}={responseHeaders:!1}){const{error:p}=i.updateCartMeta().validate({body:e,id:t,buyNow:r},{abortEarly:!1,allowUnknown:!0});if(p)return Promise.reject(new n(p));const{error:g}=i.updateCartMeta().validate({body:e,id:t,buyNow:r},{abortEarly:!1,allowUnknown:!1});g&&c({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > updateCartMeta \n ${g}`});const m={};m.id=t,m.buy_now=r;const w=await a.execute(this._conf,"put",s({url:this._urls.updateCartMeta,params:{}}),m,e,{...u},{responseHeaders:d});let f=w;d&&(f=w[0]);const{error:y}=l.CartMetaResponse().validate(f,{abortEarly:!1,allowUnknown:!0});if(y){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(y));c({level:"WARN",message:`Response Validation Warnings for application > PosCart > updateCartMeta \n ${y}`})}return w}async updateCartWithSharedItems({token:e,action:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.updateCartWithSharedItems().validate({token:e,action:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.updateCartWithSharedItems().validate({token:e,action:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > updateCartWithSharedItems \n ${p}`});const g=await a.execute(this._conf,"post",s({url:this._urls.updateCartWithSharedItems,params:{token:e,action:t}}),{},void 0,{...r},{responseHeaders:u});let m=g;u&&(m=g[0]);const{error:w}=l.SharedCartResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > PosCart > updateCartWithSharedItems \n ${w}`})}return g}async updateShipments({body:e,i:t,p:r,id:u,addressId:d,areaCode:p,orderType:g,requestHeaders:m}={requestHeaders:{}},{responseHeaders:w}={responseHeaders:!1}){const{error:f}=i.updateShipments().validate({body:e,i:t,p:r,id:u,addressId:d,areaCode:p,orderType:g},{abortEarly:!1,allowUnknown:!0});if(f)return Promise.reject(new n(f));const{error:y}=i.updateShipments().validate({body:e,i:t,p:r,id:u,addressId:d,areaCode:p,orderType:g},{abortEarly:!1,allowUnknown:!1});y&&c({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > updateShipments \n ${y}`});const b={};b.i=t,b.p=r,b.id=u,b.address_id=d,b.area_code=p,b.order_type=g;const h=await a.execute(this._conf,"put",s({url:this._urls.updateShipments,params:{}}),b,e,{...m},{responseHeaders:w});let _=h;w&&(_=h[0]);const{error:v}=l.CartShipmentsResponse().validate(_,{abortEarly:!1,allowUnknown:!0});if(v){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(v));c({level:"WARN",message:`Response Validation Warnings for application > PosCart > updateShipments \n ${v}`})}return h}async validateCouponForPayment({id:e,buyNow:t,addressId:r,paymentMode:u,paymentIdentifier:d,aggregatorName:p,merchantCode:g,iin:m,network:w,type:f,cardId:y,requestHeaders:b}={requestHeaders:{}},{responseHeaders:h}={responseHeaders:!1}){const{error:_}=i.validateCouponForPayment().validate({id:e,buyNow:t,addressId:r,paymentMode:u,paymentIdentifier:d,aggregatorName:p,merchantCode:g,iin:m,network:w,type:f,cardId:y},{abortEarly:!1,allowUnknown:!0});if(_)return Promise.reject(new n(_));const{error:v}=i.validateCouponForPayment().validate({id:e,buyNow:t,addressId:r,paymentMode:u,paymentIdentifier:d,aggregatorName:p,merchantCode:g,iin:m,network:w,type:f,cardId:y},{abortEarly:!1,allowUnknown:!1});v&&c({level:"WARN",message:`Parameter Validation warrnings for application > PosCart > validateCouponForPayment \n ${v}`});const k={};k.id=e,k.buy_now=t,k.address_id=r,k.payment_mode=u,k.payment_identifier=d,k.aggregator_name=p,k.merchant_code=g,k.iin=m,k.network=w,k.type=f,k.card_id=y;const R=await a.execute(this._conf,"get",s({url:this._urls.validateCouponForPayment,params:{}}),k,void 0,{...b},{responseHeaders:h});let P=R;h&&(P=R[0]);const{error:j}=l.PaymentCouponValidate().validate(P,{abortEarly:!1,allowUnknown:!0});if(j){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(j));c({level:"WARN",message:`Response Validation Warnings for application > PosCart > validateCouponForPayment \n ${j}`})}return R}}},1408:(e,t,r)=>{const a=r(9955);class n{static BuyRules(){return a.object({cart_conditions:a.any(),item_criteria:a.any()})}static DiscountRulesApp(){return a.object({matched_buy_rules:a.array().items(a.string().allow("")),offer:a.any(),item_criteria:a.any(),raw_offer:a.any()})}static FreeGiftItem(){return a.object({item_slug:a.string().allow(""),item_price_details:a.any(),item_images_url:a.array().items(a.string().allow("")),item_name:a.string().allow(""),item_id:a.number(),item_brand_name:a.string().allow("")})}static AppliedFreeArticles(){return a.object({quantity:a.number(),parent_item_identifier:a.string().allow(""),article_id:a.string().allow(""),free_gift_item_details:n.FreeGiftItem()})}static Ownership(){return a.object({payable_category:a.string().allow(""),payable_by:a.string().allow("")})}static AppliedPromotion(){return a.object({promotion_name:a.string().allow(""),mrp_promotion:a.boolean(),buy_rules:a.array().items(n.BuyRules()),promotion_type:a.string().allow(""),article_quantity:a.number(),amount:a.number(),discount_rules:a.array().items(n.DiscountRulesApp()),offer_text:a.string().allow(""),promo_id:a.string().allow(""),applied_free_articles:a.array().items(n.AppliedFreeArticles()),ownership:n.Ownership(),currency:n.CartCurrency(),promotion_group:a.string().allow("")})}static LoyaltyPoints(){return a.object({description:a.string().allow(""),is_applied:a.boolean(),applicable:a.number(),total:a.number()})}static RawBreakup(){return a.object({discount:a.number(),you_saved:a.number(),mrp_total:a.number(),gst_charges:a.number(),total:a.number(),vog:a.number(),coupon:a.number(),subtotal:a.number(),delivery_charge:a.number(),cod_charge:a.number(),fynd_cash:a.number(),gift_card:a.number(),convenience_fee:a.number()})}static DisplayBreakup(){return a.object({currency_code:a.string().allow(""),currency_symbol:a.string().allow(""),display:a.string().allow(""),message:a.array().items(a.string().allow("")),key:a.string().allow(""),value:a.number()})}static CouponBreakup(){return a.object({max_discount_value:a.number(),message:a.string().allow(""),is_applied:a.boolean(),uid:a.string().allow(""),type:a.string().allow(""),coupon_type:a.string().allow("").allow(null),sub_title:a.string().allow("").allow(null),coupon_value:a.number(),description:a.string().allow("").allow(null),code:a.string().allow(""),minimum_cart_value:a.number(),value:a.number(),title:a.string().allow("").allow(null)})}static CartBreakup(){return a.object({loyalty_points:n.LoyaltyPoints(),raw:n.RawBreakup(),display:a.array().items(n.DisplayBreakup()),coupon:n.CouponBreakup()})}static PaymentSelectionLock(){return a.object({default_options:a.string().allow(""),enabled:a.boolean(),payment_identifier:a.string().allow("")})}static PromiseTimestamp(){return a.object({max:a.number(),min:a.number()})}static PromiseFormatted(){return a.object({max:a.string().allow(""),min:a.string().allow("")})}static PromiseISOFormat(){return a.object({max:a.string().allow(""),min:a.string().allow("")})}static ShipmentPromise(){return a.object({timestamp:n.PromiseTimestamp(),formatted:n.PromiseFormatted(),iso:n.PromiseISOFormat()})}static StoreInfo(){return a.object({uid:a.number(),store_code:a.string().allow(""),name:a.string().allow("")})}static BaseInfo(){return a.object({uid:a.number(),name:a.string().allow("")})}static BasePrice(){return a.object({effective:a.number(),currency_code:a.string().allow(""),currency_symbol:a.string().allow(""),marked:a.number()})}static ArticlePriceInfo(){return a.object({converted:n.BasePrice(),base:n.BasePrice()})}static ProductArticle(){return a.object({meta:a.any(),store:n.StoreInfo(),_custom_json:a.any(),seller_identifier:a.string().allow(""),identifier:a.any(),quantity:a.number(),seller:n.BaseInfo(),mto_quantity:a.number(),uid:a.string().allow(""),cart_item_meta:a.any(),type:a.string().allow(""),price:n.ArticlePriceInfo(),parent_item_identifiers:a.any(),size:a.string().allow(""),extra_meta:a.any(),gift_card:a.any(),product_group_tags:a.array().items(a.string().allow("")),is_gift_visible:a.boolean(),tags:a.array().items(a.string().allow(""))})}static Tags(){return a.object({tags:a.any()})}static CategoryInfo(){return a.object({uid:a.number(),name:a.string().allow("")})}static ProductImage(){return a.object({aspect_ratio:a.string().allow(""),url:a.string().allow(""),secure_url:a.string().allow("")})}static ActionQuery(){return a.object({product_slug:a.array().items(a.string().allow(""))})}static ProductAction(){return a.object({query:n.ActionQuery(),url:a.string().allow(""),type:a.string().allow("")})}static CartProduct(){return a.object({teaser_tag:n.Tags(),_custom_json:a.any(),categories:a.array().items(n.CategoryInfo()),item_code:a.string().allow("").allow(null),tags:a.array().items(a.string().allow("")),uid:a.number(),type:a.string().allow(""),images:a.array().items(n.ProductImage()),name:a.string().allow(""),slug:a.string().allow(""),action:n.ProductAction(),brand:n.BaseInfo()})}static ProductPrice(){return a.object({effective:a.number(),currency_code:a.string().allow(""),currency_symbol:a.string().allow(""),marked:a.number(),selling:a.number(),add_on:a.number()})}static ProductPriceInfo(){return a.object({converted:n.ProductPrice(),base:n.ProductPrice()})}static CouponDetails(){return a.object({discount_total_quantity:a.number(),discount_single_quantity:a.number(),code:a.string().allow("")})}static PromoMeta(){return a.object({message:a.string().allow("")})}static ProductAvailabilitySize(){return a.object({is_available:a.boolean(),value:a.string().allow(""),display:a.string().allow("")})}static ProductAvailability(){return a.object({available_sizes:a.array().items(n.ProductAvailabilitySize()),other_store_quantity:a.number(),deliverable:a.boolean(),out_of_stock:a.boolean(),is_valid:a.boolean(),sizes:a.array().items(a.string().allow(""))})}static CartProductIdentifer(){return a.object({identifier:a.string().allow("")})}static CartProductInfo(){return a.object({custom_order:a.any(),article:n.ProductArticle(),product:n.CartProduct(),quantity:a.number(),moq:a.any(),promotions_applied:a.array().items(n.AppliedPromotion()),price_per_unit:n.ProductPriceInfo(),key:a.string().allow(""),price:n.ProductPriceInfo(),parent_item_identifiers:a.any(),is_set:a.boolean(),coupon_message:a.string().allow(""),message:a.string().allow(""),coupon:n.CouponDetails(),discount:a.string().allow(""),bulk_offer:a.any(),promo_meta:n.PromoMeta(),delivery_promise:n.ShipmentPromise(),availability:n.ProductAvailability(),identifiers:n.CartProductIdentifer().required()})}static CartCurrency(){return a.object({symbol:a.string().allow(""),code:a.string().allow("")})}static CartDetailResponse(){return a.object({comment:a.string().allow(""),coupon_text:a.string().allow(""),last_modified:a.string().allow(""),pan_config:a.any(),is_valid:a.boolean(),id:a.string().allow(""),applied_promo_details:a.array().items(n.AppliedPromotion()),checkout_mode:a.string().allow(""),restrict_checkout:a.boolean(),message:a.string().allow(""),buy_now:a.boolean(),breakup_values:n.CartBreakup(),delivery_charge_info:a.string().allow(""),payment_selection_lock:n.PaymentSelectionLock(),gstin:a.string().allow(""),delivery_promise:n.ShipmentPromise(),pan_no:a.string().allow(""),items:a.array().items(n.CartProductInfo()),currency:n.CartCurrency()})}static AddProductCart(){return a.object({seller_id:a.number(),_custom_json:a.any(),meta:a.any(),display:a.string().allow(""),quantity:a.number(),item_size:a.string().allow(""),item_id:a.number(),store_id:a.number(),pos:a.boolean(),parent_item_identifiers:a.array().items(a.object().pattern(/\S/,a.string().allow(""))),extra_meta:a.any(),product_group_tags:a.array().items(a.string().allow("").allow(null)),article_assignment:a.any(),article_id:a.string().allow("")})}static AddCartRequest(){return a.object({items:a.array().items(n.AddProductCart()),new_cart:a.boolean()})}static AddCartDetailResponse(){return a.object({cart:n.CartDetailResponse(),message:a.string().allow(""),partial:a.boolean(),success:a.boolean()})}static UpdateProductCart(){return a.object({meta:a.any(),_custom_json:a.any(),quantity:a.number(),item_size:a.string().allow(""),item_id:a.number(),item_index:a.number(),identifiers:n.CartProductIdentifer().required(),parent_item_identifiers:a.any(),extra_meta:a.any(),article_id:a.string().allow("")})}static UpdateCartRequest(){return a.object({operation:a.string().allow("").required(),items:a.array().items(n.UpdateProductCart())})}static UpdateCartDetailResponse(){return a.object({cart:n.CartDetailResponse(),message:a.string().allow(""),success:a.boolean()})}static CartItemCountResponse(){return a.object({user_cart_items_count:a.number()})}static PageCoupon(){return a.object({has_previous:a.boolean(),current:a.number(),total:a.number(),total_item_count:a.number(),has_next:a.boolean()})}static Coupon(){return a.object({max_discount_value:a.number(),coupon_code:a.string().allow(""),message:a.string().allow(""),is_applied:a.boolean(),coupon_type:a.string().allow("").allow(null),sub_title:a.string().allow(""),coupon_value:a.number(),is_applicable:a.boolean(),description:a.string().allow("").allow(null),minimum_cart_value:a.number(),title:a.string().allow(""),expires_on:a.string().allow("")})}static GetCouponResponse(){return a.object({page:n.PageCoupon(),available_coupon_list:a.array().items(n.Coupon())})}static ApplyCouponRequest(){return a.object({coupon_code:a.string().allow("").required()})}static OfferSeller(){return a.object({uid:a.number(),name:a.string().allow("")})}static OfferPrice(){return a.object({effective:a.number(),currency_code:a.string().allow(""),currency_symbol:a.string().allow(""),marked:a.number(),bulk_effective:a.number()})}static OfferItem(){return a.object({margin:a.number(),quantity:a.number(),total:a.number(),best:a.boolean(),type:a.string().allow(""),price:n.OfferPrice(),auto_applied:a.boolean()})}static BulkPriceOffer(){return a.object({seller:n.OfferSeller(),offers:a.array().items(n.OfferItem())})}static BulkPriceResponse(){return a.object({data:a.array().items(n.BulkPriceOffer())})}static RewardPointRequest(){return a.object({points:a.boolean().required()})}static GeoLocation(){return a.object({latitude:a.number(),longitude:a.number()})}static Address(){return a.object({meta:a.any(),country_code:a.string().allow(""),country_iso_code:a.string().allow(""),country:a.string().allow(""),id:a.string().allow(""),checkout_mode:a.string().allow(""),created_by_user_id:a.string().allow(""),area:a.string().allow(""),is_active:a.boolean(),city:a.string().allow(""),sector:a.string().allow(""),state_code:a.string().allow(""),address_type:a.string().allow(""),state:a.string().allow(""),is_default_address:a.boolean(),_custom_json:a.any(),country_phone_code:a.string().allow(""),area_code_slug:a.string().allow(""),area_code:a.string().allow(""),email:a.string().allow(""),google_map_point:a.any(),geo_location:n.GeoLocation(),address:a.string().allow(""),tags:a.array().items(a.string().allow("")),name:a.string().allow(""),landmark:a.string().allow(""),user_id:a.string().allow(""),phone:a.string().allow("")})}static GetAddressesResponse(){return a.object({pii_masking:a.boolean(),address:a.array().items(n.Address())})}static SaveAddressResponse(){return a.object({is_default_address:a.boolean(),success:a.boolean(),id:a.string().allow("")})}static UpdateAddressResponse(){return a.object({is_updated:a.boolean(),is_default_address:a.boolean(),success:a.boolean(),id:a.string().allow("")})}static DeleteAddressResponse(){return a.object({is_deleted:a.boolean(),id:a.string().allow("")})}static SelectCartAddressRequest(){return a.object({billing_address_id:a.string().allow(""),cart_id:a.string().allow(""),id:a.string().allow("")})}static UpdateCartPaymentRequest(){return a.object({payment_identifier:a.string().allow("").allow(null),aggregator_name:a.string().allow(""),address_id:a.string().allow(""),merchant_code:a.string().allow(""),payment_mode:a.string().allow(""),id:a.string().allow("")})}static CouponValidity(){return a.object({discount:a.number(),valid:a.boolean(),next_validation_required:a.boolean().allow(null),display_message_en:a.string().allow("").allow(null),code:a.string().allow("").allow(null),title:a.string().allow("")})}static PaymentCouponValidate(){return a.object({message:a.string().allow(""),success:a.boolean().required(),coupon_validity:n.CouponValidity()})}static ShipmentResponse(){return a.object({shipments:a.number(),fulfillment_type:a.string().allow(""),promise:n.ShipmentPromise(),dp_id:a.string().allow("").allow(null),box_type:a.string().allow("").allow(null),dp_options:a.any().allow(null),items:a.array().items(n.CartProductInfo()),order_type:a.string().allow(""),shipment_type:a.string().allow(""),fulfillment_id:a.number()})}static CartShipmentsResponse(){return a.object({comment:a.string().allow(""),restrict_checkout:a.boolean(),message:a.string().allow(""),buy_now:a.boolean(),coupon_text:a.string().allow(""),last_modified:a.string().allow(""),cart_id:a.number(),breakup_values:n.CartBreakup(),is_valid:a.boolean(),delivery_charge_info:a.string().allow(""),id:a.string().allow(""),payment_selection_lock:n.PaymentSelectionLock(),gstin:a.string().allow(""),shipments:a.array().items(n.ShipmentResponse()),error:a.boolean(),delivery_promise:n.ShipmentPromise(),uid:a.string().allow(""),checkout_mode:a.string().allow(""),currency:n.CartCurrency()})}static UpdateCartShipmentItem(){return a.object({quantity:a.number(),shipment_type:a.string().allow("").required(),article_uid:a.string().allow("").required()})}static UpdateCartShipmentRequest(){return a.object({shipments:a.array().items(n.UpdateCartShipmentItem()).required()})}static StaffCheckout(){return a.object({first_name:a.string().allow("").required(),user:a.string().allow("").required(),employee_code:a.string().allow(""),_id:a.string().allow("").required(),last_name:a.string().allow("").required()})}static CustomerDetails(){return a.object({mobile:a.string().allow("").required(),name:a.string().allow(""),email:a.string().allow("").allow(null)})}static CartCheckoutCustomMeta(){return a.object({value:a.string().allow("").required(),key:a.string().allow("").required()})}static Files(){return a.object({values:a.array().items(a.string().allow("")).required(),key:a.string().allow("").required()})}static CartPosCheckoutDetailRequest(){return a.object({meta:a.any(),pick_at_store_uid:a.number().allow(null),billing_address:a.any(),payment_auto_confirm:a.boolean(),callback_url:a.string().allow("").allow(null),delivery_address:a.any(),merchant_code:a.string().allow(""),order_type:a.string().allow("").required(),id:a.string().allow("").allow(null),staff:n.StaffCheckout(),customer_details:a.any().allow(null),address_id:a.string().allow(""),aggregator:a.string().allow(""),payment_params:a.any().allow(null),billing_address_id:a.string().allow(""),payment_mode:a.string().allow("").required(),pos:a.boolean(),extra_meta:a.any(),custom_meta:a.array().items(n.CartCheckoutCustomMeta()),payment_identifier:a.string().allow("").allow(null),ordering_store:a.number().allow(null),files:a.array().items(n.Files())})}static CheckCart(){return a.object({comment:a.string().allow(""),delivery_charges:a.number(),coupon_text:a.string().allow(""),last_modified:a.string().allow(""),is_valid:a.boolean(),cod_message:a.string().allow(""),success:a.boolean(),id:a.string().allow(""),uid:a.string().allow(""),checkout_mode:a.string().allow(""),error_message:a.string().allow(""),store_emps:a.array().items(a.any()),store_code:a.string().allow(""),restrict_checkout:a.boolean(),message:a.string().allow(""),buy_now:a.boolean(),cod_available:a.boolean(),cart_id:a.number(),breakup_values:n.CartBreakup(),order_id:a.string().allow(""),cod_charges:a.number(),delivery_charge_info:a.string().allow(""),user_type:a.string().allow(""),payment_selection_lock:n.PaymentSelectionLock(),gstin:a.string().allow(""),delivery_promise:n.ShipmentPromise(),items:a.array().items(n.CartProductInfo()),currency:n.CartCurrency(),delivery_charge_order_value:a.number()})}static CartCheckoutResponse(){return a.object({cart:n.CheckCart(),app_intercept_url:a.string().allow(""),callback_url:a.string().allow(""),message:a.string().allow(""),data:a.any(),order_id:a.string().allow(""),success:a.boolean(),payment_confirm_url:a.string().allow("")})}static GiftDetail(){return a.object({gift_message:a.string().allow(""),is_gift_applied:a.boolean()})}static ArticleGiftDetail(){return a.object({article_id:n.GiftDetail()})}static CartMetaRequest(){return a.object({comment:a.string().allow(""),gstin:a.string().allow(""),pick_up_customer_details:a.any(),checkout_mode:a.string().allow(""),gift_details:n.ArticleGiftDetail(),delivery_slots:a.any()})}static CartMetaResponse(){return a.object({message:a.string().allow(""),is_valid:a.boolean()})}static CartMetaMissingResponse(){return a.object({errors:a.array().items(a.string().allow(""))})}static CartDeliveryModesResponse(){return a.object({available_modes:a.array().items(a.string().allow("")),pickup_stores:a.array().items(a.number())})}static PickupStoreDetail(){return a.object({city:a.string().allow(""),address_type:a.string().allow(""),address:a.string().allow(""),state:a.string().allow(""),store_code:a.string().allow(""),uid:a.number(),pincode:a.number(),area_code_slug:a.string().allow(""),area_code:a.string().allow(""),email:a.string().allow(""),name:a.string().allow(""),landmark:a.string().allow(""),area:a.string().allow(""),country:a.string().allow(""),phone:a.string().allow(""),id:a.number()})}static StoreDetailsResponse(){return a.object({items:a.array().items(n.PickupStoreDetail())})}static GetShareCartLinkRequest(){return a.object({meta:a.any(),id:a.string().allow("")})}static GetShareCartLinkResponse(){return a.object({share_url:a.string().allow(""),token:a.string().allow("")})}static SharedCartDetails(){return a.object({meta:a.any(),user:a.any(),created_on:a.string().allow(""),token:a.string().allow(""),source:a.any()})}static SharedCart(){return a.object({comment:a.string().allow(""),coupon_text:a.string().allow(""),last_modified:a.string().allow(""),shared_cart_details:n.SharedCartDetails(),is_valid:a.boolean(),id:a.string().allow(""),uid:a.string().allow(""),checkout_mode:a.string().allow(""),restrict_checkout:a.boolean(),message:a.string().allow(""),buy_now:a.boolean(),cart_id:a.number(),breakup_values:n.CartBreakup(),delivery_charge_info:a.string().allow(""),payment_selection_lock:n.PaymentSelectionLock(),gstin:a.string().allow(""),delivery_promise:n.ShipmentPromise(),items:a.array().items(n.CartProductInfo()),currency:n.CartCurrency()})}static SharedCartResponse(){return a.object({error:a.string().allow(""),cart:n.SharedCart()})}}e.exports=n},6744:(e,t,r)=>{const a=r(9955),n=r(1408);e.exports=class{static addAddress(){return a.object({body:n.Address().required()}).required()}static addItems(){return a.object({i:a.boolean(),b:a.boolean(),areaCode:a.string().allow(""),buyNow:a.boolean(),id:a.string().allow(""),body:n.AddCartRequest().required()}).required()}static applyCoupon(){return a.object({i:a.boolean(),b:a.boolean(),p:a.boolean(),id:a.string().allow(""),buyNow:a.boolean(),body:n.ApplyCouponRequest().required()}).required()}static applyRewardPoints(){return a.object({id:a.string().allow(""),i:a.boolean(),b:a.boolean(),buyNow:a.boolean(),body:n.RewardPointRequest().required()}).required()}static checkoutCart(){return a.object({id:a.string().allow(""),body:n.CartPosCheckoutDetailRequest().required()}).required()}static getAddressById(){return a.object({id:a.string().allow("").required(),cartId:a.string().allow(""),buyNow:a.boolean(),mobileNo:a.string().allow(""),checkoutMode:a.string().allow(""),tags:a.string().allow(""),isDefault:a.boolean()}).required()}static getAddresses(){return a.object({cartId:a.string().allow(""),buyNow:a.boolean(),mobileNo:a.string().allow(""),checkoutMode:a.string().allow(""),tags:a.string().allow(""),isDefault:a.boolean()})}static getAvailableDeliveryModes(){return a.object({areaCode:a.string().allow("").required(),id:a.string().allow("")}).required()}static getBulkDiscountOffers(){return a.object({itemId:a.number(),articleId:a.string().allow(""),uid:a.number(),slug:a.string().allow("")})}static getCart(){return a.object({id:a.string().allow(""),i:a.boolean(),b:a.boolean(),c:a.boolean(),assignCardId:a.number(),areaCode:a.string().allow(""),buyNow:a.boolean()})}static getCartLastModified(){return a.object({id:a.string().allow("")})}static getCartShareLink(){return a.object({body:n.GetShareCartLinkRequest().required()}).required()}static getCartSharedItems(){return a.object({token:a.string().allow("").required()}).required()}static getCoupons(){return a.object({id:a.string().allow(""),buyNow:a.boolean()})}static getItemCount(){return a.object({id:a.string().allow(""),buyNow:a.boolean()})}static getShipments(){return a.object({pickAtStoreUid:a.number(),orderingStoreId:a.number(),p:a.boolean(),id:a.string().allow(""),addressId:a.string().allow(""),areaCode:a.string().allow(""),orderType:a.string().allow("")})}static getStoreAddressByUid(){return a.object({storeUid:a.number().required()}).required()}static removeAddress(){return a.object({id:a.string().allow("").required()}).required()}static removeCoupon(){return a.object({id:a.string().allow(""),buyNow:a.boolean()})}static selectAddress(){return a.object({cartId:a.string().allow(""),buyNow:a.boolean(),i:a.boolean(),b:a.boolean(),body:n.SelectCartAddressRequest().required()}).required()}static selectPaymentMode(){return a.object({id:a.string().allow(""),buyNow:a.boolean(),body:n.UpdateCartPaymentRequest().required()}).required()}static updateAddress(){return a.object({id:a.string().allow("").required(),body:n.Address().required()}).required()}static updateCart(){return a.object({id:a.string().allow(""),i:a.boolean(),b:a.boolean(),areaCode:a.string().allow(""),buyNow:a.boolean(),body:n.UpdateCartRequest().required()}).required()}static updateCartMeta(){return a.object({id:a.string().allow(""),buyNow:a.boolean(),body:n.CartMetaRequest().required()}).required()}static updateCartWithSharedItems(){return a.object({token:a.string().allow("").required(),action:a.string().allow("").required()}).required()}static updateShipments(){return a.object({i:a.boolean(),p:a.boolean(),id:a.string().allow(""),addressId:a.string().allow(""),areaCode:a.string().allow(""),orderType:a.string().allow(""),body:n.UpdateCartShipmentRequest().required()}).required()}static validateCouponForPayment(){return a.object({id:a.string().allow(""),buyNow:a.boolean(),addressId:a.string().allow(""),paymentMode:a.string().allow(""),paymentIdentifier:a.string().allow(""),aggregatorName:a.string().allow(""),merchantCode:a.string().allow(""),iin:a.string().allow(""),network:a.string().allow(""),type:a.string().allow(""),cardId:a.string().allow("")})}}},7044:(e,t,r)=>{const a=r(8336),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(9916),s=r(4776),i=r(3768),l=r(1704),c=r(6216),{Logger:u}=r(1544);r(9955),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={catalogueOrder:"/service/application/rewards/v1.0/catalogue/offer/order/",getOfferByName:"/service/application/rewards/v1.0/offers/{name}/",getOrderDiscount:"/service/application/rewards/v1.0/user/offer/order-discount/",getUserPoints:"/service/application/rewards/v1.0/user/points/",getUserPointsHistory:"/service/application/rewards/v1.0/user/points/history/",getUserReferralDetails:"/service/application/rewards/v1.0/user/referral/",redeemReferralCode:"/service/application/rewards/v1.0/user/referral/redeem/"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async catalogueOrder({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:i}=l.catalogueOrder().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(i)return Promise.reject(new n(i));const{error:d}=l.catalogueOrder().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&u({level:"WARN",message:`Parameter Validation warrnings for application > Rewards > catalogueOrder \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.catalogueOrder,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=c.CatalogueOrderResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));u({level:"WARN",message:`Response Validation Warnings for application > Rewards > catalogueOrder \n ${m}`})}return p}async getOfferByName({name:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:i}=l.getOfferByName().validate({name:e},{abortEarly:!1,allowUnknown:!0});if(i)return Promise.reject(new n(i));const{error:d}=l.getOfferByName().validate({name:e},{abortEarly:!1,allowUnknown:!1});d&&u({level:"WARN",message:`Parameter Validation warrnings for application > Rewards > getOfferByName \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getOfferByName,params:{name:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=c.Offer().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));u({level:"WARN",message:`Response Validation Warnings for application > Rewards > getOfferByName \n ${m}`})}return p}async getOrderDiscount({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:i}=l.getOrderDiscount().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(i)return Promise.reject(new n(i));const{error:d}=l.getOrderDiscount().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&u({level:"WARN",message:`Parameter Validation warrnings for application > Rewards > getOrderDiscount \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.getOrderDiscount,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=c.OrderDiscountResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));u({level:"WARN",message:`Response Validation Warnings for application > Rewards > getOrderDiscount \n ${m}`})}return p}async getUserPoints({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=l.getUserPoints().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:i}=l.getUserPoints().validate({},{abortEarly:!1,allowUnknown:!1});i&&u({level:"WARN",message:`Parameter Validation warrnings for application > Rewards > getUserPoints \n ${i}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getUserPoints,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=c.PointsResponse().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));u({level:"WARN",message:`Response Validation Warnings for application > Rewards > getUserPoints \n ${g}`})}return d}async getUserPointsHistory({pageId:e,pageSize:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:i}={responseHeaders:!1}){const{error:d}=l.getUserPointsHistory().validate({pageId:e,pageSize:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=l.getUserPointsHistory().validate({pageId:e,pageSize:t},{abortEarly:!1,allowUnknown:!1});p&&u({level:"WARN",message:`Parameter Validation warrnings for application > Rewards > getUserPointsHistory \n ${p}`});const g={};g.page_id=e,g.page_size=t;const m=await a.execute(this._conf,"get",s({url:this._urls.getUserPointsHistory,params:{}}),g,void 0,{...r},{responseHeaders:i});let w=m;i&&(w=m[0]);const{error:f}=c.PointsHistoryResponse().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));u({level:"WARN",message:`Response Validation Warnings for application > Rewards > getUserPointsHistory \n ${f}`})}return m}getUserPointsHistoryPaginator({pageSize:e}={}){const t=new i;return t.setCallback((async()=>{const r=t.nextId,a=(t.pageNo,await this.getUserPointsHistory({pageId:r,pageSize:e}));return t.setPaginator({hasNext:!!a.page.has_next,nextId:a.page.next_id}),a}).bind(this)),t}async getUserReferralDetails({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=l.getUserReferralDetails().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:i}=l.getUserReferralDetails().validate({},{abortEarly:!1,allowUnknown:!1});i&&u({level:"WARN",message:`Parameter Validation warrnings for application > Rewards > getUserReferralDetails \n ${i}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getUserReferralDetails,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=c.ReferralDetailsResponse().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));u({level:"WARN",message:`Response Validation Warnings for application > Rewards > getUserReferralDetails \n ${g}`})}return d}async redeemReferralCode({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:i}=l.redeemReferralCode().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(i)return Promise.reject(new n(i));const{error:d}=l.redeemReferralCode().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&u({level:"WARN",message:`Parameter Validation warrnings for application > Rewards > redeemReferralCode \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.redeemReferralCode,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=c.RedeemReferralCodeResponse().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));u({level:"WARN",message:`Response Validation Warnings for application > Rewards > redeemReferralCode \n ${m}`})}return p}}},6216:(e,t,r)=>{const a=r(9955);class n{static RewardsArticle(){return a.object({id:a.string().allow(""),points:a.number(),price:a.number()})}static CatalogueOrderResponse(){return a.object({articles:a.array().items(n.RewardsArticle())})}static CatalogueOrderRequest(){return a.object({articles:a.array().items(n.RewardsArticle())})}static PointsResponse(){return a.object({points:a.number()})}static ReferralDetailsUser(){return a.object({blocked:a.boolean(),points:a.number(),redeemed:a.boolean(),referral_code:a.string().allow("")})}static Offer(){return a.object({_schedule:n.Schedule(),active:a.boolean(),application_id:a.string().allow(""),banner_image:n.Asset(),created_at:a.string().allow(""),name:a.string().allow(""),rule:a.any(),share:n.ShareMessages(),sub_text:a.string().allow(""),text:a.string().allow(""),type:a.string().allow(""),updated_at:a.string().allow(""),updated_by:a.string().allow(""),url:a.string().allow("")})}static Schedule(){return a.object({duration:a.number(),end:a.string().allow(""),start:a.string().allow(""),cron:a.string().allow("")})}static Error(){return a.object({code:a.number(),exception:a.string().allow(""),info:a.string().allow(""),message:a.string().allow("")})}static Asset(){return a.object({aspect_ratio:a.string().allow(""),id:a.string().allow(""),secure_url:a.string().allow("")})}static ShareMessages(){return a.object({email:a.number(),facebook:a.string().allow(""),fallback:a.string().allow(""),message:a.string().allow(""),messenger:a.string().allow(""),sms:a.string().allow(""),text:a.string().allow(""),twitter:a.string().allow(""),whatsapp:a.string().allow("")})}static ReferralDetailsResponse(){return a.object({referral:n.Offer(),share:n.ShareMessages(),user:n.ReferralDetailsUser(),referrer_info:a.string().allow(""),terms_conditions_link:a.string().allow("")})}static OrderDiscountRequest(){return a.object({order_amount:a.number().required(),currency:a.string().allow("")})}static OrderDiscountRuleBucket(){return a.object({high:a.number(),low:a.number(),max:a.number(),value:a.number(),value_type:a.string().allow("")})}static DiscountProperties(){return a.object({absolute:a.number(),currency:a.string().allow(""),display_absolute:a.string().allow(""),display_percent:a.string().allow(""),percent:a.number()})}static OrderDiscountResponse(){return a.object({order_amount:a.number(),points:a.number(),discount:n.DiscountProperties(),base_discount:n.DiscountProperties(),applied_rule_bucket:n.OrderDiscountRuleBucket()})}static RedeemReferralCodeRequest(){return a.object({device_id:a.string().allow(""),referral_code:a.string().allow("")})}static RedeemReferralCodeResponse(){return a.object({redeemed:a.boolean(),message:a.string().allow(""),referrer_info:a.string().allow(""),referrer_id:a.string().allow(""),points:a.number()})}static PointsHistoryResponse(){return a.object({items:a.array().items(n.PointsHistory()),page:n.Page()})}static PointsHistory(){return a.object({_id:a.string().allow(""),application_id:a.string().allow(""),claimed:a.boolean(),created_at:a.string().allow(""),expires_on:a.string().allow(""),meta:a.any(),points:a.number(),remaining_points:a.number(),text_1:a.string().allow(""),text_2:a.string().allow(""),text_3:a.string().allow(""),txn_name:a.string().allow(""),updated_at:a.string().allow(""),user_id:a.string().allow("")})}static Page(){return a.object({item_total:a.number(),next_id:a.string().allow(""),has_previous:a.boolean(),has_next:a.boolean(),current:a.number(),type:a.string().allow("").required(),size:a.number()})}}e.exports=n},1704:(e,t,r)=>{const a=r(9955),n=r(6216);e.exports=class{static catalogueOrder(){return a.object({body:n.CatalogueOrderRequest().required()}).required()}static getOfferByName(){return a.object({name:a.string().allow("").required()}).required()}static getOrderDiscount(){return a.object({body:n.OrderDiscountRequest().required()}).required()}static getUserPoints(){return a.object({})}static getUserPointsHistory(){return a.object({pageId:a.string().allow(""),pageSize:a.number()})}static getUserReferralDetails(){return a.object({})}static redeemReferralCode(){return a.object({body:n.RedeemReferralCodeRequest().required()}).required()}}},7960:(e,t,r)=>{const a=r(8336),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(9916),s=r(4776),i=(r(3768),r(9372)),l=r(9228),{Logger:c}=r(1544);r(9955),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={createShortLink:"/service/application/share/v1.0/links/short-link/",getApplicationQRCode:"/service/application/share/v1.0/qr/",getCollectionQRCodeBySlug:"/service/application/share/v1.0/qr/collection/{slug}/",getOriginalShortLinkByHash:"/service/application/share/v1.0/links/short-link/{hash}/original/",getProductQRCodeBySlug:"/service/application/share/v1.0/qr/products/{slug}/",getShortLinkByHash:"/service/application/share/v1.0/links/short-link/{hash}/",getUrlQRCode:"/service/application/share/v1.0/qr/url/"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async createShortLink({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.createShortLink().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.createShortLink().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Share > createShortLink \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.createShortLink,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.ShortLinkRes().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Share > createShortLink \n ${m}`})}return p}async getApplicationQRCode({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getApplicationQRCode().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:u}=i.getApplicationQRCode().validate({},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Share > getApplicationQRCode \n ${u}`});const d=await a.execute(this._conf,"post",s({url:this._urls.getApplicationQRCode,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=l.QRCodeResp().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));c({level:"WARN",message:`Response Validation Warnings for application > Share > getApplicationQRCode \n ${g}`})}return d}async getCollectionQRCodeBySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getCollectionQRCodeBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getCollectionQRCodeBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Share > getCollectionQRCodeBySlug \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.getCollectionQRCodeBySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.QRCodeResp().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Share > getCollectionQRCodeBySlug \n ${m}`})}return p}async getOriginalShortLinkByHash({hash:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getOriginalShortLinkByHash().validate({hash:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getOriginalShortLinkByHash().validate({hash:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Share > getOriginalShortLinkByHash \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getOriginalShortLinkByHash,params:{hash:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.ShortLinkRes().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Share > getOriginalShortLinkByHash \n ${m}`})}return p}async getProductQRCodeBySlug({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getProductQRCodeBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getProductQRCodeBySlug().validate({slug:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Share > getProductQRCodeBySlug \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.getProductQRCodeBySlug,params:{slug:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.QRCodeResp().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Share > getProductQRCodeBySlug \n ${m}`})}return p}async getShortLinkByHash({hash:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getShortLinkByHash().validate({hash:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getShortLinkByHash().validate({hash:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Share > getShortLinkByHash \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getShortLinkByHash,params:{hash:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.ShortLinkRes().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Share > getShortLinkByHash \n ${m}`})}return p}async getUrlQRCode({url:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getUrlQRCode().validate({url:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getUrlQRCode().validate({url:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Share > getUrlQRCode \n ${d}`});const p={};p.url=e;const g=await a.execute(this._conf,"post",s({url:this._urls.getUrlQRCode,params:{}}),p,void 0,{...t},{responseHeaders:r});let m=g;r&&(m=g[0]);const{error:w}=l.QRCodeResp().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > Share > getUrlQRCode \n ${w}`})}return g}}},9228:(e,t,r)=>{const a=r(9955);class n{static QRCodeResp(){return a.object({link:a.string().allow(""),svg:a.string().allow("")})}static RedirectDevice(){return a.object({link:a.string().allow(""),type:a.string().allow("")})}static WebRedirect(){return a.object({link:a.string().allow(""),type:a.string().allow("")})}static Redirects(){return a.object({ios:n.RedirectDevice(),android:n.RedirectDevice(),web:n.WebRedirect(),force_web:a.boolean()})}static CampaignShortLink(){return a.object({source:a.string().allow(""),medium:a.string().allow("")})}static Attribution(){return a.object({campaign_cookie_expiry:a.string().allow("")})}static SocialMediaTags(){return a.object({title:a.string().allow(""),description:a.string().allow(""),image:a.string().allow("")})}static ShortLinkReq(){return a.object({title:a.string().allow("").required(),url:a.string().allow("").required(),hash:a.string().allow(""),active:a.boolean(),expire_at:a.string().allow(""),enable_tracking:a.boolean(),personalized:a.boolean(),campaign:n.CampaignShortLink(),redirects:n.Redirects(),attribution:n.Attribution(),social_media_tags:n.SocialMediaTags(),count:a.number()})}static UrlInfo(){return a.object({original:a.string().allow(""),short:a.string().allow(""),hash:a.string().allow("")})}static ShortLinkRes(){return a.object({title:a.string().allow(""),url:n.UrlInfo(),created_by:a.string().allow(""),app_redirect:a.boolean(),fallback:a.string().allow(""),active:a.boolean(),_id:a.string().allow(""),enable_tracking:a.boolean(),expire_at:a.string().allow(""),application:a.string().allow(""),user_id:a.string().allow(""),created_at:a.string().allow(""),meta:a.any(),updated_at:a.string().allow(""),personalized:a.boolean(),campaign:n.CampaignShortLink(),redirects:n.Redirects(),attribution:n.Attribution(),social_media_tags:n.SocialMediaTags(),count:a.number()})}static ErrorRes(){return a.object({message:a.string().allow("")})}}e.exports=n},9372:(e,t,r)=>{const a=r(9955),n=r(9228);e.exports=class{static createShortLink(){return a.object({body:n.ShortLinkReq().required()}).required()}static getApplicationQRCode(){return a.object({})}static getCollectionQRCodeBySlug(){return a.object({slug:a.string().allow("").required()}).required()}static getOriginalShortLinkByHash(){return a.object({hash:a.string().allow("").required()}).required()}static getProductQRCodeBySlug(){return a.object({slug:a.string().allow("").required()}).required()}static getShortLinkByHash(){return a.object({hash:a.string().allow("").required()}).required()}static getUrlQRCode(){return a.object({url:a.string().allow("").required()}).required()}}},4236:(e,t,r)=>{const a=r(8336),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(9916),s=r(4776),i=(r(3768),r(5900)),l=r(5416),{Logger:c}=r(1544);r(9955),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={getAllPages:"/service/application/theme/v1.0/{theme_id}/page",getAppliedTheme:"/service/application/theme/v2.0/applied-theme",getPage:"/service/application/theme/v1.0/{theme_id}/{page_value}",getThemeForPreview:"/service/application/theme/v2.0/{theme_id}/preview"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async getAllPages({themeId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getAllPages().validate({themeId:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getAllPages().validate({themeId:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Theme > getAllPages \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getAllPages,params:{themeId:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.AllAvailablePageSchema().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Theme > getAllPages \n ${m}`})}return p}async getAppliedTheme({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getAppliedTheme().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:u}=i.getAppliedTheme().validate({},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Theme > getAppliedTheme \n ${u}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getAppliedTheme,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=l.ThemesSchema().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));c({level:"WARN",message:`Response Validation Warnings for application > Theme > getAppliedTheme \n ${g}`})}return d}async getPage({themeId:e,pageValue:t,filters:r,company:u,requestHeaders:d}={requestHeaders:{}},{responseHeaders:p}={responseHeaders:!1}){const{error:g}=i.getPage().validate({themeId:e,pageValue:t,filters:r,company:u},{abortEarly:!1,allowUnknown:!0});if(g)return Promise.reject(new n(g));const{error:m}=i.getPage().validate({themeId:e,pageValue:t,filters:r,company:u},{abortEarly:!1,allowUnknown:!1});m&&c({level:"WARN",message:`Parameter Validation warrnings for application > Theme > getPage \n ${m}`});const w={};w.filters=r,w.company=u;const f=await a.execute(this._conf,"get",s({url:this._urls.getPage,params:{themeId:e,pageValue:t}}),w,void 0,{...d},{responseHeaders:p});let y=f;p&&(y=f[0]);const{error:b}=l.AvailablePageSchema().validate(y,{abortEarly:!1,allowUnknown:!0});if(b){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(b));c({level:"WARN",message:`Response Validation Warnings for application > Theme > getPage \n ${b}`})}return f}async getThemeForPreview({themeId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getThemeForPreview().validate({themeId:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getThemeForPreview().validate({themeId:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Theme > getThemeForPreview \n ${d}`});const p=await a.execute(this._conf,"get",s({url:this._urls.getThemeForPreview,params:{themeId:e}}),{},void 0,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.ThemesSchema().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > Theme > getThemeForPreview \n ${m}`})}return p}}},5416:(e,t,r)=>{const a=r(9955);class n{static AllAvailablePageSchema(){return a.object({pages:a.array().items(n.AvailablePageSchema())})}static AvailablePageSchema(){return a.object({value:a.string().allow(""),text:a.string().allow(""),path:a.string().allow(""),type:a.string().allow(""),sections:a.array().items(n.AvailablePageSchemaSections()),sections_meta:a.array().items(n.AvailablePageSectionMetaAttributes()),theme:a.string().allow(""),seo:n.AvailablePageSeo(),props:a.array().items(a.any()),_id:a.string().allow("")})}static AvailablePageSectionMetaAttributes(){return a.object({attributes:a.any()})}static SEOMetaItem(){return a.object({title:a.string().allow(""),items:a.array().items(n.SEOMetaItems())})}static SEOMetaItems(){return a.object({key:a.string().allow(""),value:a.string().allow("")})}static SEOSitemap(){return a.object({priority:a.number(),frequency:a.string().allow("")})}static SEObreadcrumb(){return a.object({url:a.string().allow(""),action:n.Action()})}static Action(){return a.object({page:n.ActionPage(),popup:n.ActionPage(),type:a.string().allow("")})}static ActionPage(){return a.object({params:a.object().pattern(/\S/,a.array().items(a.string().allow(""))),query:a.object().pattern(/\S/,a.array().items(a.string().allow(""))),url:a.string().allow(""),type:n.PageType().required()})}static AvailablePageSeo(){return a.object({title:a.string().allow(""),description:a.string().allow(""),canonical_url:a.string().allow(""),meta_tags:a.array().items(n.SEOMetaItem()),sitemap:n.SEOSitemap(),breadcrumb:a.array().items(n.SEObreadcrumb()),_id:a.string().allow("")})}static AvailablePageSchemaSections(){return a.object({name:a.string().allow(""),label:a.string().allow(""),props:a.any(),blocks:a.array().items(a.any()),preset:a.any(),predicate:n.AvailablePagePredicate()})}static AvailablePagePredicate(){return a.object({screen:n.AvailablePageScreenPredicate(),user:n.AvailablePageUserPredicate(),route:n.AvailablePageRoutePredicate(),schedule:n.AvailablePageSchedulePredicate(),platform:n.AvailablePagePlatformPredicate(),zones:a.array().items(a.string().allow(""))})}static AvailablePageScreenPredicate(){return a.object({mobile:a.boolean(),desktop:a.boolean(),tablet:a.boolean()})}static AvailablePageUserPredicate(){return a.object({authenticated:a.boolean(),anonymous:a.boolean()})}static AvailablePageRoutePredicate(){return a.object({selected:a.string().allow(""),exact_url:a.string().allow(""),query:a.any()})}static AvailablePageSchedulePredicate(){return a.object({cron:a.string().allow(""),start:a.string().allow(""),end:a.string().allow("")})}static ThemesSchema(){return a.object({font:n.Font(),config:n.Config(),applied:a.boolean(),is_private:a.boolean(),tags:a.array().items(a.string().allow("")),_id:a.string().allow(""),application_id:a.string().allow(""),marketplace_theme_id:a.string().allow(""),meta:n.ThemeMeta(),name:a.string().allow(""),template_theme_id:a.string().allow(""),version:a.string().allow(""),styles:a.any(),created_at:a.string().allow(""),updated_at:a.string().allow(""),assets:n.Assets(),available_sections:a.array().items(n.SectionItem()),theme_type:a.string().allow(""),company_id:a.number()})}static Font(){return a.object({variants:n.FontVariants().required(),family:a.string().allow("").required()})}static FontVariants(){return a.object({light:n.FontVariant(),regular:n.FontVariant(),medium:n.FontVariant(),semi_bold:n.FontVariant(),bold:n.FontVariant()})}static FontVariant(){return a.object({name:a.string().allow("").required(),file:a.string().allow("").required()})}static Config(){return a.object({current:a.string().allow("").required(),list:a.array().items(n.ThemeConfiguration()).required(),global_schema:n.GlobalSchema(),preset:n.Preset()})}static ThemeConfiguration(){return a.object({name:a.string().allow(""),global_config:a.any(),page:a.array().items(a.string().allow(""))})}static CustomConfig(){return a.object({props:n.CustomProps()})}static CustomProps(){return a.object({header_bg_color:a.string().allow(""),header_text_color:a.string().allow(""),header_border_color:a.string().allow(""),header_icon_color:a.string().allow(""),header_cart_notification_bg_color:a.string().allow(""),header_cart_notification_text_color:a.string().allow(""),header_nav_hover_color:a.string().allow(""),button_primary_color:a.string().allow(""),button_primary_label_color:a.string().allow(""),button_add_to_cart_color:a.string().allow(""),button_add_to_cart_label_color:a.string().allow(""),button_secondary_color:a.string().allow(""),button_secondary_label_color:a.string().allow(""),button_tertiary_color:a.string().allow(""),button_tertiary_label_color:a.string().allow(""),button_tertiary_hover_color:a.string().allow(""),button_tertiary_hover_text_color:a.string().allow(""),text_heading_link_color:a.string().allow(""),text_body_color:a.string().allow(""),text_price_color:a.string().allow(""),text_sale_price_color:a.string().allow(""),text_strikethrough_price_color:a.string().allow(""),text_discount_color:a.string().allow(""),footer_bg_color:a.string().allow(""),footer_text_color:a.string().allow(""),footer_border_color:a.string().allow(""),footer_nav_hover_color:a.string().allow(""),disable_cart:a.boolean(),is_menu_below_logo:a.boolean(),menu_position:a.string().allow("")})}static GlobalConfig(){return a.object({statics:n.StaticConfig(),custom:n.CustomConfig()})}static GeneralSetting(){return a.object({theme:n.ThemeSetting(),text:n.TextSetting(),button:n.ButtonSetting(),sale_discount:n.SaleDiscountSetting(),header:n.HeaderSetting(),footer:n.FooterSetting()})}static AdvanceSetting(){return a.object({overlay_popup:n.OverlayPopupSetting(),divider_stroke_highlight:n.DividerStrokeHighlightSetting(),user_alerts:n.UserAlertsSetting()})}static UserAlertsSetting(){return a.object({success_background:a.string().allow(""),success_text:a.string().allow(""),error_background:a.string().allow(""),error_text:a.string().allow(""),info_background:a.string().allow(""),info_text:a.string().allow("")})}static ThemeSetting(){return a.object({page_background:a.string().allow(""),theme_accent:a.string().allow("")})}static TextSetting(){return a.object({text_heading:a.string().allow(""),text_body:a.string().allow(""),text_label:a.string().allow(""),text_secondary:a.string().allow("")})}static ButtonSetting(){return a.object({button_primary:a.string().allow(""),button_secondary:a.string().allow(""),button_link:a.string().allow("")})}static SaleDiscountSetting(){return a.object({sale_badge_background:a.string().allow(""),sale_badge_text:a.string().allow(""),sale_discount_text:a.string().allow(""),sale_timer:a.string().allow("")})}static HeaderSetting(){return a.object({header_background:a.string().allow(""),header_nav:a.string().allow(""),header_icon:a.string().allow("")})}static FooterSetting(){return a.object({footer_background:a.string().allow(""),footer_bottom_background:a.string().allow(""),footer_heading_text:a.string().allow(""),footer_body_text:a.string().allow(""),footer_icon:a.string().allow("")})}static OverlayPopupSetting(){return a.object({dialog_backgroung:a.string().allow(""),overlay:a.string().allow("")})}static DividerStrokeHighlightSetting(){return a.object({divider_strokes:a.string().allow(""),highlight:a.string().allow("")})}static StaticConfig(){return a.object({props:n.StaticProps()})}static StaticProps(){return a.object({colors:n.Colors(),auth:n.AuthConfig(),palette:n.PaletteConfig()})}static Colors(){return a.object({primary_color:a.string().allow(""),secondary_color:a.string().allow(""),accent_color:a.string().allow(""),link_color:a.string().allow(""),button_secondary_color:a.string().allow(""),bg_color:a.string().allow("")})}static AuthConfig(){return a.object({show_header_auth:a.boolean(),show_footer_auth:a.boolean()})}static PaletteConfig(){return a.object({general_setting:n.GeneralSetting(),advance_setting:n.AdvanceSetting()})}static ThemeMeta(){return a.object({payment:n.ThemePayment(),description:a.string().allow(""),industry:a.array().items(a.string().allow("")),release:n.Release(),images:n.Images(),slug:a.string().allow(""),name:a.string().allow("")})}static ThemePayment(){return a.object({is_paid:a.boolean(),amount:a.number()})}static Release(){return a.object({notes:a.string().allow(""),version:a.string().allow("")})}static Images(){return a.object({desktop:a.string().allow(""),mobile:a.string().allow("")})}static Assets(){return a.object({umd_js:n.UMDJs(),common_js:n.CommonJS(),css:n.CSS()})}static UMDJs(){return a.object({links:a.array().items(a.string().allow(""))})}static CommonJS(){return a.object({link:a.string().allow("")})}static CSS(){return a.object({links:a.array().items(a.string().allow(""))})}static SectionItem(){return a.object({props:a.array().items(a.any()),blocks:a.array().items(a.any()),name:a.string().allow(""),label:a.string().allow("")})}static GlobalSchema(){return a.object({props:a.array().items(n.Prop())})}static Prop(){return a.object({type:a.string().allow(""),category:a.string().allow(""),id:a.string().allow(""),label:a.string().allow(""),info:a.string().allow("")})}static Preset(){return a.object({pages:a.array().items(n.Page())})}static Page(){return a.object({item_total:a.number(),next_id:a.string().allow(""),has_previous:a.boolean(),has_next:a.boolean(),current:a.number(),type:a.string().allow("").required(),size:a.number()})}static SectionProps(){return a.object({title:n.TextProp(),item_margin:n.TextProp(),autoplay:n.CheckboxProp(),slide_interval:n.RangeProp()})}static SectionPreset(){return a.object({blocks:a.array().items(n.Block())})}static ImagePickerProp(){return a.object({type:a.string().allow(""),value:a.string().allow("")})}static UrlProp(){return a.object({type:a.string().allow(""),value:a.string().allow("")})}static BlockProps(){return a.object({image:n.ImagePickerProp(),slide_link:n.UrlProp()})}static TextProp(){return a.object({value:a.string().allow(""),type:a.string().allow("")})}static CheckboxProp(){return a.object({value:a.boolean(),type:a.string().allow("")})}static RangeProp(){return a.object({value:a.number(),type:a.string().allow("")})}static Section(){return a.object({blocks:a.array().items(n.Block()),predicate:n.Predicate(),name:a.string().allow(""),props:n.SectionProps(),preset:n.SectionPreset()})}static Block(){return a.object({type:a.string().allow(""),name:a.string().allow(""),props:n.BlockProps()})}static Predicate(){return a.object({screen:n.Screen(),user:n.ThemeUserSchema(),route:n.Route()})}static Screen(){return a.object({mobile:a.boolean(),desktop:a.boolean(),tablet:a.boolean()})}static ThemeUserSchema(){return a.object({authenticated:a.boolean(),anonymous:a.boolean()})}static Route(){return a.object({selected:a.string().allow(""),exact_url:a.string().allow("")})}static AvailablePagePlatformPredicate(){return a.object({ios:a.boolean(),android:a.boolean(),web:a.boolean()})}static BlitzkriegInternalServerErrorSchema(){return a.object({message:a.string().allow("")})}static BlitzkriegApiErrorSchema(){return a.object({message:a.string().allow("")})}static PageType(){return a.string().valid("about-us","addresses","blog","brands","cards","cart","categories","brand","category","collection","collections","contact-us","external","faq","freshchat","home","notification-settings","orders","page","policy","product","product-request","products","profile","profile-order-shipment","profile-basic","profile-company","profile-emails","profile-phones","rate-us","refer-earn","settings","shared-cart","tnc","track-order","wishlist","sections","form","cart-delivery","cart-payment","cart-review","login","register","shipping-policy","return-policy","order-status")}}e.exports=n},5900:(e,t,r)=>{const a=r(9955);r(5416),e.exports=class{static getAllPages(){return a.object({themeId:a.string().allow("").required()}).required()}static getAppliedTheme(){return a.object({})}static getPage(){return a.object({themeId:a.string().allow("").required(),pageValue:a.string().allow("").required(),filters:a.string().allow(""),company:a.number()}).required()}static getThemeForPreview(){return a.object({themeId:a.string().allow("").required()}).required()}}},8408:(e,t,r)=>{const a=r(8336),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(9916),s=r(4776),i=(r(3768),r(1144)),l=r(5884),{Logger:c}=r(1544),u=r(9955);e.exports=class{constructor(e){this._conf=e,this._relativeUrls={addEmail:"/service/application/user/profile/v1.0/email",addMobileNumber:"/service/application/user/profile/v1.0/mobile",deleteEmail:"/service/application/user/profile/v1.0/email",deleteMobileNumber:"/service/application/user/profile/v1.0/mobile",deleteUser:"/service/application/user/authentication/v1.0/delete",forgotPassword:"/service/application/user/authentication/v1.0/login/password/reset/forgot",getListOfActiveSessions:"/service/application/user/authentication/v1.0/sessions",getLoggedInUser:"/service/application/user/authentication/v1.0/session",getPlatformConfig:"/service/application/user/platform/v1.0/config",getUserAttributes:"/service/application/user/profile/v1.0/user-attributes",hasPassword:"/service/application/user/authentication/v1.0/has-password",loginWithAppleIOS:"/service/application/user/authentication/v1.0/login/apple-ios",loginWithEmailAndPassword:"/service/application/user/authentication/v1.0/login/password",loginWithFacebook:"/service/application/user/authentication/v1.0/login/facebook-token",loginWithGoogle:"/service/application/user/authentication/v1.0/login/google-token",loginWithGoogleAndroid:"/service/application/user/authentication/v1.0/login/google-android",loginWithGoogleIOS:"/service/application/user/authentication/v1.0/login/google-ios",loginWithOTP:"/service/application/user/authentication/v1.0/login/otp",loginWithToken:"/service/application/user/authentication/v1.0/login/token",logout:"/service/application/user/authentication/v1.0/logout",registerWithForm:"/service/application/user/authentication/v1.0/register/form",resetForgotPassword:"/service/application/user/authentication/v1.0/login/password/forgot",sendForgotOTPOnEmail:"/service/application/user/authentication/v1.0/otp/forgot/email/send",sendForgotOTPOnMobile:"/service/application/user/authentication/v1.0/otp/forgot/mobile/send",sendOTPOnEmail:"/service/application/user/authentication/v1.0/otp/email/send",sendOTPOnMobile:"/service/application/user/authentication/v1.0/otp/mobile/send",sendResetPasswordEmail:"/service/application/user/authentication/v1.0/login/password/reset",sendResetPasswordMobile:"/service/application/user/authentication/v1.0/login/password/mobile/reset",sendResetToken:"/service/application/user/authentication/v1.0/login/password/reset/token",sendVerificationLinkToEmail:"/service/application/user/profile/v1.0/email/link/send",sendVerificationLinkToMobile:"/service/application/user/profile/v1.0/mobile/link/send",setEmailAsPrimary:"/service/application/user/profile/v1.0/email/primary",setMobileNumberAsPrimary:"/service/application/user/profile/v1.0/mobile/primary",updatePassword:"/service/application/user/authentication/v1.0/password",updateProfile:"/service/application/user/profile/v1.0/detail",updateUserAttributes:"/service/application/user/profile/v1.0/user-attributes",userExists:"/service/application/user/authentication/v1.0/user-exists",verifyEmail:"/service/application/user/authentication/v1.0/verify/email",verifyEmailForgotOTP:"/service/application/user/authentication/v1.0/otp/forgot/email/verify",verifyEmailOTP:"/service/application/user/authentication/v1.0/otp/email/verify",verifyMobile:"/service/application/user/authentication/v1.0/verify/mobile",verifyMobileForgotOTP:"/service/application/user/authentication/v1.0/otp/forgot/mobile/verify",verifyMobileOTP:"/service/application/user/authentication/v1.0/otp/mobile/verify"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async addEmail({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.addEmail().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.addEmail().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > addEmail \n ${p}`});const g={};g.platform=t;const m=await a.execute(this._conf,"put",s({url:this._urls.addEmail,params:{}}),g,e,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.VerifyEmailOTPSuccess().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > User > addEmail \n ${f}`})}return m}async addMobileNumber({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.addMobileNumber().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.addMobileNumber().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > addMobileNumber \n ${p}`});const g={};g.platform=t;const m=await a.execute(this._conf,"put",s({url:this._urls.addMobileNumber,params:{}}),g,e,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.VerifyMobileOTPSuccess().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > User > addMobileNumber \n ${f}`})}return m}async deleteEmail({active:e,primary:t,verified:r,email:u,platform:d,requestHeaders:p}={requestHeaders:{}},{responseHeaders:g}={responseHeaders:!1}){const{error:m}=i.deleteEmail().validate({active:e,primary:t,verified:r,email:u,platform:d},{abortEarly:!1,allowUnknown:!0});if(m)return Promise.reject(new n(m));const{error:w}=i.deleteEmail().validate({active:e,primary:t,verified:r,email:u,platform:d},{abortEarly:!1,allowUnknown:!1});w&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > deleteEmail \n ${w}`});const f={};f.platform=d,f.active=e,f.primary=t,f.verified=r,f.email=u;const y=await a.execute(this._conf,"delete",s({url:this._urls.deleteEmail,params:{}}),f,void 0,{...p},{responseHeaders:g});let b=y;g&&(b=y[0]);const{error:h}=l.LoginSuccess().validate(b,{abortEarly:!1,allowUnknown:!0});if(h){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(h));c({level:"WARN",message:`Response Validation Warnings for application > User > deleteEmail \n ${h}`})}return y}async deleteMobileNumber({active:e,primary:t,verified:r,countryCode:u,phone:d,platform:p,requestHeaders:g}={requestHeaders:{}},{responseHeaders:m}={responseHeaders:!1}){const{error:w}=i.deleteMobileNumber().validate({active:e,primary:t,verified:r,countryCode:u,phone:d,platform:p},{abortEarly:!1,allowUnknown:!0});if(w)return Promise.reject(new n(w));const{error:f}=i.deleteMobileNumber().validate({active:e,primary:t,verified:r,countryCode:u,phone:d,platform:p},{abortEarly:!1,allowUnknown:!1});f&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > deleteMobileNumber \n ${f}`});const y={};y.platform=p,y.active=e,y.primary=t,y.verified=r,y.country_code=u,y.phone=d;const b=await a.execute(this._conf,"delete",s({url:this._urls.deleteMobileNumber,params:{}}),y,void 0,{...g},{responseHeaders:m});let h=b;m&&(h=b[0]);const{error:_}=l.LoginSuccess().validate(h,{abortEarly:!1,allowUnknown:!0});if(_){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(_));c({level:"WARN",message:`Response Validation Warnings for application > User > deleteMobileNumber \n ${_}`})}return b}async deleteUser({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.deleteUser().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.deleteUser().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > deleteUser \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.deleteUser,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.DeleteUserSuccess().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > User > deleteUser \n ${m}`})}return p}async forgotPassword({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.forgotPassword().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.forgotPassword().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > forgotPassword \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.forgotPassword,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.LoginSuccess().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > User > forgotPassword \n ${m}`})}return p}async getListOfActiveSessions({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getListOfActiveSessions().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:u}=i.getListOfActiveSessions().validate({},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > getListOfActiveSessions \n ${u}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getListOfActiveSessions,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=l.SessionListSuccess().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));c({level:"WARN",message:`Response Validation Warnings for application > User > getListOfActiveSessions \n ${g}`})}return d}async getLoggedInUser({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getLoggedInUser().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:u}=i.getLoggedInUser().validate({},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > getLoggedInUser \n ${u}`});const d=await a.execute(this._conf,"get",s({url:this._urls.getLoggedInUser,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=l.UserObjectSchema().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));c({level:"WARN",message:`Response Validation Warnings for application > User > getLoggedInUser \n ${g}`})}return d}async getPlatformConfig({name:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getPlatformConfig().validate({name:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getPlatformConfig().validate({name:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > getPlatformConfig \n ${d}`});const p={};p.name=e;const g=await a.execute(this._conf,"get",s({url:this._urls.getPlatformConfig,params:{}}),p,void 0,{...t},{responseHeaders:r});let m=g;r&&(m=g[0]);const{error:w}=l.PlatformSchema().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > User > getPlatformConfig \n ${w}`})}return g}async getUserAttributes({slug:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getUserAttributes().validate({slug:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getUserAttributes().validate({slug:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > getUserAttributes \n ${d}`});const p={};p.slug=e;const g=await a.execute(this._conf,"get",s({url:this._urls.getUserAttributes,params:{}}),p,void 0,{...t},{responseHeaders:r});let m=g;r&&(m=g[0]);const{error:w}=l.UserAttributes().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > User > getUserAttributes \n ${w}`})}return g}async hasPassword({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.hasPassword().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:u}=i.hasPassword().validate({},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > hasPassword \n ${u}`});const d=await a.execute(this._conf,"get",s({url:this._urls.hasPassword,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=l.HasPasswordSuccess().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));c({level:"WARN",message:`Response Validation Warnings for application > User > hasPassword \n ${g}`})}return d}async loginWithAppleIOS({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.loginWithAppleIOS().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.loginWithAppleIOS().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > loginWithAppleIOS \n ${p}`});const g={};g.platform=t;const m=await a.execute(this._conf,"post",s({url:this._urls.loginWithAppleIOS,params:{}}),g,e,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.AuthSuccess().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > User > loginWithAppleIOS \n ${f}`})}return m}async loginWithEmailAndPassword({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.loginWithEmailAndPassword().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.loginWithEmailAndPassword().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > loginWithEmailAndPassword \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.loginWithEmailAndPassword,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.LoginSuccess().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > User > loginWithEmailAndPassword \n ${m}`})}return p}async loginWithFacebook({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.loginWithFacebook().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.loginWithFacebook().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > loginWithFacebook \n ${p}`});const g={};g.platform=t;const m=await a.execute(this._conf,"post",s({url:this._urls.loginWithFacebook,params:{}}),g,e,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.AuthSuccess().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > User > loginWithFacebook \n ${f}`})}return m}async loginWithGoogle({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.loginWithGoogle().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.loginWithGoogle().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > loginWithGoogle \n ${p}`});const g={};g.platform=t;const m=await a.execute(this._conf,"post",s({url:this._urls.loginWithGoogle,params:{}}),g,e,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.AuthSuccess().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > User > loginWithGoogle \n ${f}`})}return m}async loginWithGoogleAndroid({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.loginWithGoogleAndroid().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.loginWithGoogleAndroid().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > loginWithGoogleAndroid \n ${p}`});const g={};g.platform=t;const m=await a.execute(this._conf,"post",s({url:this._urls.loginWithGoogleAndroid,params:{}}),g,e,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.AuthSuccess().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > User > loginWithGoogleAndroid \n ${f}`})}return m}async loginWithGoogleIOS({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.loginWithGoogleIOS().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.loginWithGoogleIOS().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > loginWithGoogleIOS \n ${p}`});const g={};g.platform=t;const m=await a.execute(this._conf,"post",s({url:this._urls.loginWithGoogleIOS,params:{}}),g,e,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.AuthSuccess().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > User > loginWithGoogleIOS \n ${f}`})}return m}async loginWithOTP({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.loginWithOTP().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.loginWithOTP().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > loginWithOTP \n ${p}`});const g={};g.platform=t;const m=await a.execute(this._conf,"post",s({url:this._urls.loginWithOTP,params:{}}),g,e,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.SendOtpResponse().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > User > loginWithOTP \n ${f}`})}return m}async loginWithToken({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.loginWithToken().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.loginWithToken().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > loginWithToken \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.loginWithToken,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.LoginSuccess().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > User > loginWithToken \n ${m}`})}return p}async logout({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.logout().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:u}=i.logout().validate({},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > logout \n ${u}`});const d=await a.execute(this._conf,"get",s({url:this._urls.logout,params:{}}),{},void 0,{...e},{responseHeaders:t});let p=d;t&&(p=d[0]);const{error:g}=l.LogoutSuccess().validate(p,{abortEarly:!1,allowUnknown:!0});if(g){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(g));c({level:"WARN",message:`Response Validation Warnings for application > User > logout \n ${g}`})}return d}async registerWithForm({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.registerWithForm().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.registerWithForm().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > registerWithForm \n ${p}`});const g={};g.platform=t;const m=await a.execute(this._conf,"post",s({url:this._urls.registerWithForm,params:{}}),g,e,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.RegisterFormSuccess().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > User > registerWithForm \n ${f}`})}return m}async resetForgotPassword({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.resetForgotPassword().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.resetForgotPassword().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > resetForgotPassword \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.resetForgotPassword,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.ResetForgotPasswordSuccess().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > User > resetForgotPassword \n ${m}`})}return p}async sendForgotOTPOnEmail({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.sendForgotOTPOnEmail().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.sendForgotOTPOnEmail().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > sendForgotOTPOnEmail \n ${p}`});const g={};g.platform=t;const m=await a.execute(this._conf,"post",s({url:this._urls.sendForgotOTPOnEmail,params:{}}),g,e,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.EmailOtpSuccess().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > User > sendForgotOTPOnEmail \n ${f}`})}return m}async sendForgotOTPOnMobile({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.sendForgotOTPOnMobile().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.sendForgotOTPOnMobile().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > sendForgotOTPOnMobile \n ${p}`});const g={};g.platform=t;const m=await a.execute(this._conf,"post",s({url:this._urls.sendForgotOTPOnMobile,params:{}}),g,e,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.OtpSuccess().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > User > sendForgotOTPOnMobile \n ${f}`})}return m}async sendOTPOnEmail({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.sendOTPOnEmail().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.sendOTPOnEmail().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > sendOTPOnEmail \n ${p}`});const g={};g.platform=t;const m=await a.execute(this._conf,"post",s({url:this._urls.sendOTPOnEmail,params:{}}),g,e,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.EmailOtpSuccess().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > User > sendOTPOnEmail \n ${f}`})}return m}async sendOTPOnMobile({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.sendOTPOnMobile().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.sendOTPOnMobile().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > sendOTPOnMobile \n ${p}`});const g={};g.platform=t;const m=await a.execute(this._conf,"post",s({url:this._urls.sendOTPOnMobile,params:{}}),g,e,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.OtpSuccess().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > User > sendOTPOnMobile \n ${f}`})}return m}async sendResetPasswordEmail({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.sendResetPasswordEmail().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.sendResetPasswordEmail().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > sendResetPasswordEmail \n ${p}`});const g={};g.platform=t;const m=await a.execute(this._conf,"post",s({url:this._urls.sendResetPasswordEmail,params:{}}),g,e,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.ResetPasswordSuccess().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > User > sendResetPasswordEmail \n ${f}`})}return m}async sendResetPasswordMobile({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:l}={responseHeaders:!1}){const{error:d}=i.sendResetPasswordMobile().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.sendResetPasswordMobile().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > sendResetPasswordMobile \n ${p}`});const g={};g.platform=t;const m=await a.execute(this._conf,"post",s({url:this._urls.sendResetPasswordMobile,params:{}}),g,e,{...r},{responseHeaders:l});let w=m;l&&(w=m[0]);const{error:f}=u.string().allow("").validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > User > sendResetPasswordMobile \n ${f}`})}return m}async sendResetToken({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.sendResetToken().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.sendResetToken().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > sendResetToken \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.sendResetToken,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.ResetPasswordSuccess().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > User > sendResetToken \n ${m}`})}return p}async sendVerificationLinkToEmail({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.sendVerificationLinkToEmail().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.sendVerificationLinkToEmail().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > sendVerificationLinkToEmail \n ${p}`});const g={};g.platform=t;const m=await a.execute(this._conf,"post",s({url:this._urls.sendVerificationLinkToEmail,params:{}}),g,e,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.SendEmailVerifyLinkSuccess().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > User > sendVerificationLinkToEmail \n ${f}`})}return m}async sendVerificationLinkToMobile({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.sendVerificationLinkToMobile().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.sendVerificationLinkToMobile().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > sendVerificationLinkToMobile \n ${p}`});const g={};g.platform=t;const m=await a.execute(this._conf,"post",s({url:this._urls.sendVerificationLinkToMobile,params:{}}),g,e,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.SendMobileVerifyLinkSuccess().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > User > sendVerificationLinkToMobile \n ${f}`})}return m}async setEmailAsPrimary({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.setEmailAsPrimary().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.setEmailAsPrimary().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > setEmailAsPrimary \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.setEmailAsPrimary,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.LoginSuccess().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > User > setEmailAsPrimary \n ${m}`})}return p}async setMobileNumberAsPrimary({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.setMobileNumberAsPrimary().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.setMobileNumberAsPrimary().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > setMobileNumberAsPrimary \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.setMobileNumberAsPrimary,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.LoginSuccess().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > User > setMobileNumberAsPrimary \n ${m}`})}return p}async updatePassword({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.updatePassword().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.updatePassword().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > updatePassword \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.updatePassword,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.VerifyEmailSuccess().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > User > updatePassword \n ${m}`})}return p}async updateProfile({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.updateProfile().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.updateProfile().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > updateProfile \n ${p}`});const g={};g.platform=t;const m=await a.execute(this._conf,"post",s({url:this._urls.updateProfile,params:{}}),g,e,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.ProfileEditSuccess().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > User > updateProfile \n ${f}`})}return m}async updateUserAttributes({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.updateUserAttributes().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.updateUserAttributes().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > updateUserAttributes \n ${d}`});const p=await a.execute(this._conf,"patch",s({url:this._urls.updateUserAttributes,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.UserAttributes().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > User > updateUserAttributes \n ${m}`})}return p}async userExists({q:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.userExists().validate({q:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.userExists().validate({q:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > userExists \n ${d}`});const p={};p.q=e;const g=await a.execute(this._conf,"get",s({url:this._urls.userExists,params:{}}),p,void 0,{...t},{responseHeaders:r});let m=g;r&&(m=g[0]);const{error:w}=l.UserExistsResponse().validate(m,{abortEarly:!1,allowUnknown:!0});if(w){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(w));c({level:"WARN",message:`Response Validation Warnings for application > User > userExists \n ${w}`})}return g}async verifyEmail({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.verifyEmail().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.verifyEmail().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > verifyEmail \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.verifyEmail,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.VerifyEmailSuccess().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > User > verifyEmail \n ${m}`})}return p}async verifyEmailForgotOTP({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.verifyEmailForgotOTP().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.verifyEmailForgotOTP().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > verifyEmailForgotOTP \n ${p}`});const g={};g.platform=t;const m=await a.execute(this._conf,"post",s({url:this._urls.verifyEmailForgotOTP,params:{}}),g,e,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.VerifyForgotOtpSuccess().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > User > verifyEmailForgotOTP \n ${f}`})}return m}async verifyEmailOTP({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.verifyEmailOTP().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.verifyEmailOTP().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > verifyEmailOTP \n ${p}`});const g={};g.platform=t;const m=await a.execute(this._conf,"post",s({url:this._urls.verifyEmailOTP,params:{}}),g,e,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.VerifyOtpSuccess().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > User > verifyEmailOTP \n ${f}`})}return m}async verifyMobile({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.verifyMobile().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.verifyMobile().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > verifyMobile \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.verifyMobile,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.VerifyEmailSuccess().validate(g,{abortEarly:!1,allowUnknown:!0});if(m){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(m));c({level:"WARN",message:`Response Validation Warnings for application > User > verifyMobile \n ${m}`})}return p}async verifyMobileForgotOTP({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.verifyMobileForgotOTP().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.verifyMobileForgotOTP().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > verifyMobileForgotOTP \n ${p}`});const g={};g.platform=t;const m=await a.execute(this._conf,"post",s({url:this._urls.verifyMobileForgotOTP,params:{}}),g,e,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.VerifyForgotOtpSuccess().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > User > verifyMobileForgotOTP \n ${f}`})}return m}async verifyMobileOTP({body:e,platform:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.verifyMobileOTP().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.verifyMobileOTP().validate({body:e,platform:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > verifyMobileOTP \n ${p}`});const g={};g.platform=t;const m=await a.execute(this._conf,"post",s({url:this._urls.verifyMobileOTP,params:{}}),g,e,{...r},{responseHeaders:u});let w=m;u&&(w=m[0]);const{error:f}=l.VerifyOtpSuccess().validate(w,{abortEarly:!1,allowUnknown:!0});if(f){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(f));c({level:"WARN",message:`Response Validation Warnings for application > User > verifyMobileOTP \n ${f}`})}return m}}},5884:(e,t,r)=>{const a=r(9955);class n{static UpdateUserAttributesRequest(){return a.object({attributes:a.any()})}static UserAttributes(){return a.object({attributes:a.any()})}static DeleteApplicationUserRequestSchema(){return a.object({user_id:a.string().allow(""),reason:a.string().allow(""),reason_id:a.string().allow(""),request_id:a.string().allow(""),otp:a.string().allow("")})}static EditEmailRequestSchema(){return a.object({email:a.string().allow("")})}static SendVerificationLinkMobileRequestSchema(){return a.object({verified:a.boolean(),active:a.boolean(),country_code:a.string().allow(""),phone:a.string().allow(""),primary:a.boolean()})}static EditMobileRequestSchema(){return a.object({country_code:a.string().allow(""),phone:a.string().allow("")})}static EditProfileRequestSchema(){return a.object({encrypt_otp:a.boolean(),first_name:a.string().allow(""),last_name:a.string().allow(""),mobile:n.EditProfileMobileSchema(),country_code:a.string().allow(""),email:a.string().allow(""),gender:a.string().allow(""),dob:a.string().allow(""),profile_pic_url:a.string().allow(""),android_hash:a.string().allow(""),sender:a.string().allow(""),register_token:a.string().allow("")})}static EditProfileMobileSchema(){return a.object({phone:a.string().allow(""),country_code:a.string().allow("")})}static SendEmailOtpRequestSchema(){return a.object({email:a.string().allow(""),action:a.string().allow(""),token:a.string().allow(""),register_token:a.string().allow("")})}static SendEmailForgotOtpRequestSchema(){return a.object({email:a.string().allow(""),action:a.string().allow(""),token:a.string().allow("")})}static VerifyEmailOtpRequestSchema(){return a.object({email:a.string().allow(""),action:a.string().allow(""),register_token:a.string().allow(""),otp:a.string().allow("")})}static VerifyEmailForgotOtpRequestSchema(){return a.object({email:a.string().allow(""),otp:a.string().allow("")})}static VerifyOtpRequestSchema(){return a.object({request_id:a.string().allow(""),register_token:a.string().allow(""),otp:a.string().allow("")})}static VerifyMobileForgotOtpRequestSchema(){return a.object({request_id:a.string().allow(""),otp:a.string().allow("")})}static SendMobileOtpRequestSchema(){return a.object({encrypt_otp:a.boolean(),mobile:a.string().allow(""),country_code:a.string().allow(""),action:a.string().allow(""),token:a.string().allow(""),android_hash:a.string().allow(""),force:a.string().allow("")})}static SendMobileForgotOtpRequestSchema(){return a.object({mobile:a.string().allow(""),country_code:a.string().allow(""),action:a.string().allow(""),token:a.string().allow(""),android_hash:a.string().allow("")})}static UpdatePasswordRequestSchema(){return a.object({old_password:a.string().allow(""),new_password:a.string().allow("")})}static FormRegisterRequestSchema(){return a.object({first_name:a.string().allow(""),last_name:a.string().allow(""),gender:a.string().allow(""),email:a.string().allow(""),password:a.string().allow(""),phone:n.FormRegisterRequestSchemaPhone(),register_token:a.string().allow("")})}static TokenRequestBodySchema(){return a.object({token:a.string().allow("")})}static ForgotPasswordRequestSchema(){return a.object({code:a.string().allow(""),password:a.string().allow("")})}static CodeRequestBodySchema(){return a.object({code:a.string().allow("")})}static SendResetPasswordEmailRequestSchema(){return a.object({email:a.string().allow("")})}static SendResetPasswordMobileRequestSchema(){return a.object({country_code:a.string().allow(""),mobile:a.string().allow("")})}static PasswordLoginRequestSchema(){return a.object({password:a.string().allow(""),username:a.string().allow("")})}static SendOtpRequestSchema(){return a.object({encrypt_otp:a.boolean(),country_code:a.string().allow(""),mobile:a.string().allow(""),android_hash:a.string().allow("")})}static OAuthRequestSchema(){return a.object({is_signed_in:a.boolean(),oauth2:n.OAuthRequestSchemaOauth2(),profile:n.OAuthRequestSchemaProfile()})}static OAuthRequestAppleSchema(){return a.object({user_identifier:a.string().allow(""),oauth:n.OAuthRequestAppleSchemaOauth(),profile:n.OAuthRequestAppleSchemaProfile()})}static UserObjectSchema(){return a.object({user:n.UserSchema()})}static AuthSuccess(){return a.object({register_token:a.string().allow(""),user_exists:a.boolean(),user:n.UserSchema()})}static UserExistsResponse(){return a.object({user_exists:a.boolean()})}static SendOtpResponse(){return a.object({resend_timer:a.number(),resend_token:a.string().allow(""),success:a.boolean(),request_id:a.string().allow(""),message:a.string().allow(""),mobile:a.string().allow(""),country_code:a.string().allow(""),email:a.string().allow(""),resend_email_token:a.string().allow(""),register_token:a.string().allow(""),verify_email_otp:a.boolean(),verify_mobile_otp:a.boolean(),user_exists:a.boolean()})}static ProfileEditSuccess(){return a.object({user:n.UserSchema(),register_token:a.string().allow(""),resend_email_token:a.string().allow(""),user_exists:a.boolean(),verify_email_link:a.boolean(),verify_email_otp:a.boolean(),verify_mobile_otp:a.boolean(),email:a.string().allow(""),request_id:a.string().allow(""),country_code:a.string().allow(""),mobile:a.string().allow(""),success:a.boolean(),message:a.string().allow(""),resend_timer:a.number(),resend_token:a.string().allow("")})}static LoginSuccess(){return a.object({user:n.UserSchema(),request_id:a.string().allow(""),register_token:a.string().allow("")})}static ResetForgotPasswordSuccess(){return a.object({success:a.boolean()})}static VerifyOtpSuccess(){return a.object({user:n.UserSchema(),user_exists:a.boolean(),register_token:a.string().allow("")})}static VerifyForgotOtpSuccess(){return a.object({success:a.boolean(),forgot_token:a.string().allow("")})}static ResetPasswordSuccess(){return a.object({status:a.string().allow("")})}static RegisterFormSuccess(){return a.object({email:a.string().allow(""),resend_timer:a.number(),resend_token:a.string().allow(""),resend_email_token:a.string().allow(""),register_token:a.string().allow(""),success:a.boolean(),request_id:a.string().allow(""),message:a.string().allow(""),mobile:a.string().allow(""),country_code:a.string().allow(""),verify_email_otp:a.boolean(),verify_mobile_otp:a.boolean(),user_exists:a.boolean()})}static VerifyEmailSuccess(){return a.object({message:a.string().allow("")})}static HasPasswordSuccess(){return a.object({result:a.number()})}static LogoutSuccess(){return a.object({logout:a.boolean()})}static DeleteUserSuccess(){return a.object({success:a.boolean()})}static OtpSuccess(){return a.object({resend_timer:a.number(),resend_token:a.string().allow(""),register_token:a.string().allow(""),success:a.boolean(),request_id:a.string().allow(""),message:a.string().allow(""),mobile:a.string().allow(""),country_code:a.string().allow("")})}static EmailOtpSuccess(){return a.object({success:a.boolean(),resend_email_token:a.string().allow("")})}static SessionListSuccess(){return a.object({sessions:a.array().items(a.string().allow(""))})}static VerifyMobileOTPSuccess(){return a.object({user:n.UserSchema(),verify_mobile_link:a.boolean()})}static VerifyEmailOTPSuccess(){return a.object({user:n.UserSchema(),verify_email_link:a.boolean()})}static SendMobileVerifyLinkSuccess(){return a.object({verify_mobile_link:a.boolean()})}static SendEmailVerifyLinkSuccess(){return a.object({verify_email_link:a.boolean()})}static APIError(){return a.object({code:a.string().allow(""),message:a.string().allow(""),info:a.string().allow(""),request_id:a.string().allow(""),error:a.string().allow(""),meta:a.any(),authenticated:a.boolean()})}static FormRegisterRequestSchemaPhone(){return a.object({country_code:a.string().allow(""),mobile:a.string().allow("")})}static OAuthRequestSchemaOauth2(){return a.object({access_token:a.string().allow(""),expiry:a.number(),refresh_token:a.string().allow("")})}static OAuthRequestSchemaProfile(){return a.object({last_name:a.string().allow(""),image:a.string().allow(""),id:a.string().allow(""),email:a.string().allow(""),full_name:a.string().allow(""),first_name:a.string().allow("")})}static OAuthRequestAppleSchemaOauth(){return a.object({identity_token:a.string().allow("")})}static OAuthRequestAppleSchemaProfile(){return a.object({last_name:a.string().allow(""),full_name:a.string().allow(""),first_name:a.string().allow("")})}static PlatformSchema(){return a.object({display:a.string().allow(""),look_and_feel:n.LookAndFeel(),updated_at:a.string().allow(""),active:a.boolean(),forgot_password:a.boolean(),login:n.Login(),skip_captcha:a.boolean(),name:a.string().allow(""),meta:n.MetaSchema(),_id:a.string().allow(""),social:n.Social(),required_fields:n.RequiredFields(),register_required_fields:n.RegisterRequiredFields(),skip_login:a.boolean(),flash_card:n.FlashCard(),subtext:a.string().allow(""),social_tokens:n.SocialTokens(),created_at:a.string().allow(""),register:a.boolean(),mobile_image:a.string().allow(""),desktop_image:a.string().allow(""),delete_account_day:a.number(),delete_account_reasons:a.array().items(n.DeleteAccountReasons()),delete_account_consent:n.DeleteAccountConsent(),session_config:n.SessionExpiry(),__v:a.number()})}static LookAndFeel(){return a.object({card_position:a.string().allow(""),background_color:a.string().allow("")})}static Login(){return a.object({password:a.boolean(),otp:a.boolean()})}static MetaSchema(){return a.object({fynd_default:a.boolean()})}static Social(){return a.object({account_kit:a.boolean(),facebook:a.boolean(),google:a.boolean(),apple:a.boolean()})}static RequiredFields(){return a.object({email:n.PlatformEmail(),mobile:n.PlatformMobile()})}static PlatformEmail(){return a.object({is_required:a.boolean(),level:a.string().allow("")})}static PlatformMobile(){return a.object({is_required:a.boolean(),level:a.string().allow("")})}static RegisterRequiredFields(){return a.object({email:n.RegisterRequiredFieldsEmail(),mobile:n.RegisterRequiredFieldsMobile()})}static RegisterRequiredFieldsEmail(){return a.object({is_required:a.boolean(),level:a.string().allow("")})}static RegisterRequiredFieldsMobile(){return a.object({is_required:a.boolean(),level:a.string().allow("")})}static FlashCard(){return a.object({text:a.string().allow(""),text_color:a.string().allow(""),background_color:a.string().allow("")})}static SocialTokens(){return a.object({facebook:n.Facebook(),accountkit:n.Accountkit(),google:n.Google()})}static DeleteAccountReasons(){return a.object({reason_text:a.string().allow(""),reason_id:a.string().allow(""),show_text_area:a.boolean()})}static DeleteAccountConsent(){return a.object({consent_text:a.string().allow("")})}static Facebook(){return a.object({app_id:a.string().allow("")})}static Accountkit(){return a.object({app_id:a.string().allow("")})}static Google(){return a.object({app_id:a.string().allow("")})}static SessionExpiry(){return a.object({duration:a.number(),type:a.string().allow(""),is_rolling:a.boolean()})}static UserSchema(){return a.object({application_id:a.string().allow(""),user_id:a.string().allow(""),first_name:a.string().allow(""),meta:a.any(),last_name:a.string().allow(""),phone_numbers:a.array().items(n.PhoneNumber()),emails:a.array().items(n.Email()),gender:a.string().allow(""),dob:a.string().allow(""),active:a.boolean(),profile_pic_url:a.string().allow(""),username:a.string().allow(""),account_type:a.string().allow(""),_id:a.string().allow(""),created_at:a.string().allow(""),updated_at:a.string().allow("")})}static PhoneNumber(){return a.object({active:a.boolean(),primary:a.boolean(),verified:a.boolean(),phone:a.string().allow(""),country_code:a.number()})}static Email(){return a.object({primary:a.boolean(),verified:a.boolean(),email:a.string().allow(""),active:a.boolean()})}}e.exports=n},1144:(e,t,r)=>{const a=r(9955),n=r(5884);e.exports=class{static addEmail(){return a.object({platform:a.string().allow(""),body:n.EditEmailRequestSchema().required()}).required()}static addMobileNumber(){return a.object({platform:a.string().allow(""),body:n.EditMobileRequestSchema().required()}).required()}static deleteEmail(){return a.object({platform:a.string().allow(""),active:a.boolean().required(),primary:a.boolean().required(),verified:a.boolean().required(),email:a.string().allow("").required()}).required()}static deleteMobileNumber(){return a.object({platform:a.string().allow(""),active:a.boolean().required(),primary:a.boolean().required(),verified:a.boolean().required(),countryCode:a.string().allow("").required(),phone:a.string().allow("").required()}).required()}static deleteUser(){return a.object({body:n.DeleteApplicationUserRequestSchema().required()}).required()}static forgotPassword(){return a.object({body:n.ForgotPasswordRequestSchema().required()}).required()}static getListOfActiveSessions(){return a.object({})}static getLoggedInUser(){return a.object({})}static getPlatformConfig(){return a.object({name:a.string().allow("")})}static getUserAttributes(){return a.object({slug:a.string().allow("")})}static hasPassword(){return a.object({})}static loginWithAppleIOS(){return a.object({platform:a.string().allow(""),body:n.OAuthRequestAppleSchema().required()}).required()}static loginWithEmailAndPassword(){return a.object({body:n.PasswordLoginRequestSchema().required()}).required()}static loginWithFacebook(){return a.object({platform:a.string().allow(""),body:n.OAuthRequestSchema().required()}).required()}static loginWithGoogle(){return a.object({platform:a.string().allow(""),body:n.OAuthRequestSchema().required()}).required()}static loginWithGoogleAndroid(){return a.object({platform:a.string().allow(""),body:n.OAuthRequestSchema().required()}).required()}static loginWithGoogleIOS(){return a.object({platform:a.string().allow(""),body:n.OAuthRequestSchema().required()}).required()}static loginWithOTP(){return a.object({platform:a.string().allow(""),body:n.SendOtpRequestSchema().required()}).required()}static loginWithToken(){return a.object({body:n.TokenRequestBodySchema().required()}).required()}static logout(){return a.object({})}static registerWithForm(){return a.object({platform:a.string().allow(""),body:n.FormRegisterRequestSchema().required()}).required()}static resetForgotPassword(){return a.object({body:n.ForgotPasswordRequestSchema().required()}).required()}static sendForgotOTPOnEmail(){return a.object({platform:a.string().allow(""),body:n.SendEmailForgotOtpRequestSchema().required()}).required()}static sendForgotOTPOnMobile(){return a.object({platform:a.string().allow(""),body:n.SendMobileForgotOtpRequestSchema().required()}).required()}static sendOTPOnEmail(){return a.object({platform:a.string().allow(""),body:n.SendEmailOtpRequestSchema().required()}).required()}static sendOTPOnMobile(){return a.object({platform:a.string().allow(""),body:n.SendMobileOtpRequestSchema().required()}).required()}static sendResetPasswordEmail(){return a.object({platform:a.string().allow(""),body:n.SendResetPasswordEmailRequestSchema().required()}).required()}static sendResetPasswordMobile(){return a.object({platform:a.string().allow(""),body:n.SendResetPasswordMobileRequestSchema().required()}).required()}static sendResetToken(){return a.object({body:n.CodeRequestBodySchema().required()}).required()}static sendVerificationLinkToEmail(){return a.object({platform:a.string().allow(""),body:n.EditEmailRequestSchema().required()}).required()}static sendVerificationLinkToMobile(){return a.object({platform:a.string().allow(""),body:n.SendVerificationLinkMobileRequestSchema().required()}).required()}static setEmailAsPrimary(){return a.object({body:n.EditEmailRequestSchema().required()}).required()}static setMobileNumberAsPrimary(){return a.object({body:n.SendVerificationLinkMobileRequestSchema().required()}).required()}static updatePassword(){return a.object({body:n.UpdatePasswordRequestSchema().required()}).required()}static updateProfile(){return a.object({platform:a.string().allow(""),body:n.EditProfileRequestSchema().required()}).required()}static updateUserAttributes(){return a.object({body:n.UpdateUserAttributesRequest().required()}).required()}static userExists(){return a.object({q:a.string().allow("").required()}).required()}static verifyEmail(){return a.object({body:n.CodeRequestBodySchema().required()}).required()}static verifyEmailForgotOTP(){return a.object({platform:a.string().allow(""),body:n.VerifyEmailForgotOtpRequestSchema().required()}).required()}static verifyEmailOTP(){return a.object({platform:a.string().allow(""),body:n.VerifyEmailOtpRequestSchema().required()}).required()}static verifyMobile(){return a.object({body:n.CodeRequestBodySchema().required()}).required()}static verifyMobileForgotOTP(){return a.object({platform:a.string().allow(""),body:n.VerifyMobileForgotOtpRequestSchema().required()}).required()}static verifyMobileOTP(){return a.object({platform:a.string().allow(""),body:n.VerifyOtpRequestSchema().required()}).required()}}},4776:(e,t,r)=>{const a=r(2012);e.exports=({url:e,params:t})=>e.split("/").map((e=>("{"===e[0]&&"}"===e[e.length-1]&&(e=t[a(e.slice(1,e.length-1))]),e))).join("/")},4848:(e,t,r)=>{e.exports={ApplicationConfig:r(2288),ApplicationClient:r(8464),ApplicationModel:{CartApplicationModel:r(2108),CatalogApplicationModel:r(5104),CommonApplicationModel:r(3548),CommunicationApplicationModel:r(1839),ConfigurationApplicationModel:r(8288),ContentApplicationModel:r(1336),FileStorageApplicationModel:r(5248),LeadApplicationModel:r(5960),LogisticApplicationModel:r(3248),OrderApplicationModel:r(4920),PaymentApplicationModel:r(1068),PosCartApplicationModel:r(1408),RewardsApplicationModel:r(6216),ShareApplicationModel:r(9228),ThemeApplicationModel:r(5416),UserApplicationModel:r(5884)}}},4233:(e,t,r)=>{const a=r(344),n=r(7992),o=r(9899),s=r(3660),{sign:i}=r(5044),{FDKServerResponseError:l}=r(9916),{log:c,Logger:u,getLoggerLevel:d}=r(1544),p=r(6832),{version:g}=r(6604);o.defaults.withCredentials=!0;const m=o.create({paramsSerializer:e=>s.stringify(e)});m.interceptors.request.use((function(e){try{if(d()<=c.levels.DEBUG){const t=p(e);c.debug(t)}}catch(e){u({level:"ERROR",message:`Error Generating Curl: ${e}`})}finally{return e}}),(function(e){u({level:"ERROR",message:e.data||e.message,stack:e.data.stack||e.stack})})),m.interceptors.request.use((e=>{if(!e.url)throw new Error("No URL present in request config, unable to sign request");let t=e.url;e.baseURL&&!n(e.url)&&(t=a(e.baseURL,e.url));const{host:r,pathname:o,search:l}=new URL(t),{data:c,headers:u,method:d,params:p}=e;u["x-fp-sdk-version"]=g;let m=s.parse(l);m={...m,...p};let w,f="";if(m&&Object.keys(m).length&&""!==s.stringify(m).trim()&&(f=`?${s.stringify(m)}`),"get"!=d){const t=function(e){const{transformRequest:t}=e;if(t){if("function"==typeof t)return t;if(t.length)return t[0]}throw new Error("Could not get default transformRequest function from Axios defaults")}(e);w=t(c,u)}const{common:y,delete:b,get:h,head:_,post:v,put:k,patch:R,...P}=u,j={method:d&&d.toUpperCase(),host:r,path:o+l+f,body:w,headers:P},C=i(j);return e.headers["x-fp-date"]=C["x-fp-date"],e.headers["x-fp-signature"]=C["x-fp-signature"],e})),m.interceptors.response.use((function(e){return"head"==e.config.method?e.headers:(u({level:"DEBUG",type:"RESPONSE",message:e.data,url:e.config.url}),e.config.responseHeaders?[e.data,e.headers]:e.data)}),(function(e){throw e.response?(u({level:"ERROR",message:e.response.data||e.message,stack:e.response.data.stack||e.stack,request:{method:e.config.method,url:e.config.url,headers:e.config.headers}}),new l(e.response.data.message||e.message,e.response.data.stack||e.stack,e.response.statusText,e.response.status,e.response.data)):e.request?(u({level:"ERROR",message:e.data||e.message,stack:e.data.stack||e.stack,request:{method:e.config.method,url:e.config.url,headers:e.config.headers}}),new l(e.message,e.stack,e.code,e.code)):(u({level:"ERROR",message:e.message}),new l(e.message,e.stack))})),e.exports={fdkAxios:m}},9916:e=>{class t extends Error{constructor(e,t,r=null,a=null,n=null){super(e),this.name="FDKServerResponseError",this.stackTrace=t,this.status=r,this.code=a,this.details=n}}class r extends Error{constructor(e){super(e.message),this.name="FDKClientValidationError",this.details=e.details}}class a extends Error{constructor(e){super(e.message),this.name="FDKResponseValidationError",this.details=JSON.parse(JSON.stringify(e.details))}}class n extends Error{constructor(e){super(e),this.name="FDKInvalidCredentialError"}}class o extends Error{constructor(e){super(e),this.name="FDKTokenIssueError"}}class s extends Error{constructor(e){super(e),this.name="FDKOAuthCodeError"}}class i extends Error{constructor(e){super(e),this.name="FDKException"}}e.exports={FDKServerResponseError:t,FDKClientValidationError:r,FDKResponseValidationError:a,FDKInvalidCredentialError:n,FDKTokenIssueError:o,FDKOAuthCodeError:s,FDKException:i}},1544:(e,t,r)=>{const a=r(6220),n=r(6604).version;function o(){return(new Date).toString()}e.exports={log:a,Logger:function(e){const{level:t,message:r,...s}=e;"TRACE"===t&&a.trace(JSON.stringify({level:t,detail:r,...s,time:o(),version:n})),"DEBUG"===t&&a.debug(JSON.stringify({level:t,detail:r,...s,time:o(),version:n})),"INFO"===t&&a.info(JSON.stringify({level:t,detail:r,...s,time:o(),version:n})),"WARN"===t&&a.warn(JSON.stringify({level:t,detail:r,...s,time:o(),version:n})),"ERROR"===t&&a.error(JSON.stringify({level:t,detail:r,...s,time:o(),version:n}))},setLoggerLevel:function(e){a.setLevel(e)},getLoggerLevel:function(){return a.getLevel()}}},3768:e=>{e.exports=class{constructor(e){this.pageNo=e,this.callback=void 0}setCallback(e){this.callback=e}hasNext(){return this.isNext}setPaginator({hasNext:e,nextId:t,pageNo:r=1}){this.isNext=e,this.nextId=t,this.pageNo=r}next(){return this.callback()}}},6832:(e,t,r)=>{const a=r(3660),n=r(344),o=r(7992);let s;e.exports=function(e){return s=e,`curl ${`--request ${s.method.toUpperCase()}`.trim()} "${function(){let e=s.url;s.baseURL&&!o(e)&&(e=n(s.baseURL,e).trim());let{search:t}=new URL(e);queryParamObject={...a.parse(t),...s.params};let r="";return queryParamObject&&Object.keys(queryParamObject).length&&""!==a.stringify(queryParamObject).trim()&&(r=`?${a.stringify(queryParamObject).trim()}`),`${e}${t.trim()}${r}`}()}" ${function(){let e=["common","delete","get","head","post","put","patch"],t={};s.headers[s.method]&&(t=s.headers[s.method]),t=Object.keys(t).reduce(((e,r)=>(e[r.toLowerCase()]=t[r],e)),{});for(let r in s.headers)e.includes(r)||(s.headers[r]instanceof Object?t[r.toLowerCase()]=JSON.stringify(s.headers[r]):t[r.toLowerCase()]=s.headers[r]);let r="";for(let e in t)r+=` --header '${e}: ${t[e]}'`;return r.trim()}()} ${"GET"!==s.method.toUpperCase()&&null!==s.data&&""!==s.data&&s.data?`--data-raw '${JSON.stringify(s.data)}'`.trim():""}`.trim()}},3748:(e,t,r)=>{const{FDKException:a}=r(9916),n=":::",o=e=>{let t="";for(const r in e)if("object"!=typeof e[r]&&e[r]){const a=encodeURIComponent(e[r]);t+=`${r}=${a}&`}else Array.isArray(e[r])?e[r].forEach((e=>{const a=encodeURIComponent(e);t+=`${r}=${a}&`})):"object"==typeof e[r]&&e[r]&&(t+=o(e[r]));return t?t.slice(0,-1):t},s=(e="",t="/")=>{for(;e.charAt(0)==t;)e=e.substring(1);for(;e.charAt(e.length-1)==t;)e=e.substring(0,e.length-1);return e},i=()=>"undefined"!=typeof window&&void 0!==window.document,l=()=>"undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node;e.exports={transformRequestOptions:o,getParamsFromItem:e=>{let t="";for(let r in e)if(Array.isArray(e[r])){for(let a=0;a{let t=e.split("?");if(t.length>1){const e=new URLSearchParams(t[1]);let r={};for(let t of e){let e=t[0],a=t[1];r[e]=r[e]?[...r[e],a]:[a]}return r}return{}},trimChar:s,generateUrlWithParams:(e={},t)=>{if(!e||!e.link)return"";if(!t)return`/${s(e.link.split(":")[0])}`;const r={};for(let e in t)if(Array.isArray(t[e])){let a="";for(let r=0;r{let r={value:"",params:{}};t=s(t);for(let a=0;a{if(l())return Buffer.from(e,"utf-8").toString("base64");if(i())return window.btoa(e);throw new a("Base64 conversion error: Unsupported environment")},isBrowser:i,isNode:l,NAV_TYPE:{PAGE:"page",POPUP:"popup"}}},6604:e=>{"use strict";e.exports=JSON.parse('{"name":"@gofynd/fdk-client-javascript","version":"1.4.2-beta.4","description":"","main":"index.js","scripts":{"test":"jest --coverage","test:standalone":"npm run build && npx cypress run","build":"webpack","prettier":"npx prettier -w ./sdk ./tests && npx tsc"},"author":"Jigar Dafda","license":"ISC","dependencies":{"axios":"^0.27.2","camelcase":"^6.3.0","joi":"^17.7.0","loglevel":"^1.8.1","query-string":"^7.1.3","@gofynd/fp-signature":"^1.0.1"},"devDependencies":{"axios-cookiejar-support":"^4.0.6","axios-mock-adapter":"^1.21.2","clean-webpack-plugin":"^4.0.0","coveralls":"^3.1.1","cypress":"^9.2.0","dotenv":"^16.0.3","jest":"^29.5.0","tough-cookie":"^4.1.2","webpack":"^5.81.0","webpack-cli":"^5.0.2"},"files":["sdk/**/*.js","sdk/**/*.d.ts","./*.js","./*.d.ts","!**.config.*","!dist","!cypress"]}')}},t={},r=function r(a){var n=t[a];if(void 0!==n)return n.exports;var o=t[a]={exports:{}};return e[a].call(o.exports,o,o.exports,r),o.exports}(2492),a=window;for(var n in r)a[n]=r[n];r.__esModule&&Object.defineProperty(a,"__esModule",{value:!0})})(); \ No newline at end of file diff --git a/documentation/application/CART.md b/documentation/application/CART.md index 18cc5614b..aadac5932 100644 --- a/documentation/application/CART.md +++ b/documentation/application/CART.md @@ -22,13 +22,10 @@ Default * [getBulkDiscountOffers](#getbulkdiscountoffers) * [getCart](#getcart) * [getCartLastModified](#getcartlastmodified) -* [getCartMetaConfig](#getcartmetaconfig) -* [getCartMetaConfigs](#getcartmetaconfigs) * [getCartShareLink](#getcartsharelink) * [getCartSharedItems](#getcartshareditems) * [getCoupons](#getcoupons) * [getItemCount](#getitemcount) -* [getItemCountV2](#getitemcountv2) * [getLadderOffers](#getladderoffers) * [getPromotionOffers](#getpromotionoffers) * [getShipments](#getshipments) @@ -122,8 +119,7 @@ const promise = applicationClient.cart.addItems({ body : value, b : value, areaCode : value, buyNow : value, - id : value, - cartType : value }); + id : value }); // Async/Await const data = await applicationClient.cart.addItems({ body : value, @@ -131,8 +127,7 @@ const data = await applicationClient.cart.addItems({ body : value, b : value, areaCode : value, buyNow : value, - id : value, - cartType : value }); + id : value }); ``` @@ -141,12 +136,11 @@ const data = await applicationClient.cart.addItems({ body : value, | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| i | boolean | no | This is a boolean value. Select `true` to retrieve all the items added in the cart. | -| b | boolean | no | This is a boolean value. Select `true` to retrieve the price breakup of cart items. | -| areaCode | string | no | Customer servicable area_code | -| buyNow | boolean | no | This is a boolen value. Select `true` to set/initialize buy now cart | -| id | string | no | The unique identifier of the cart | -| cartType | string | no | The type of cart | +| i | boolean | no | | +| b | boolean | no | | +| areaCode | string | no | | +| buyNow | boolean | no | | +| id | string | no | | | body | [AddCartRequest](#AddCartRequest) | yes | Request body | @@ -898,7 +892,6 @@ Success. Returns a cart object as shown below. Refer `AddCartDetailResponse` for }, "identifiers": {}, "moq": {}, - "seller_count": 1, "delivery_promise": { "timestamp": { "min": 1646257339, @@ -922,7 +915,6 @@ Success. Returns a cart object as shown below. Refer `AddCartDetailResponse` for "name": "Motilal Nagar 1, Goregaon" }, "quantity": 4, - "product_name": "", "price": { "base": { "marked": 3999, @@ -1404,12 +1396,6 @@ Success. Returns a cart object as shown below. Refer `AddCartDetailResponse` for "discount": "11% OFF" } ], - "custom_cart": { - "cart_name": "Universal", - "cart_type": "universal", - "id": "659e3b6b33848a683efebf2c", - "is_universal": true - }, "delivery_charge_info": "", "coupon_text": "View all offers", "buy_now": false, @@ -1671,8 +1657,7 @@ const promise = applicationClient.cart.applyCoupon({ body : value, b : value, p : value, id : value, - buyNow : value, - cartType : value }); + buyNow : value }); // Async/Await const data = await applicationClient.cart.applyCoupon({ body : value, @@ -1680,8 +1665,7 @@ const data = await applicationClient.cart.applyCoupon({ body : value, b : value, p : value, id : value, - buyNow : value, - cartType : value }); + buyNow : value }); ``` @@ -1694,8 +1678,7 @@ const data = await applicationClient.cart.applyCoupon({ body : value, | b | boolean | no | | | p | boolean | no | | | id | string | no | | -| buyNow | boolean | no | | -| cartType | string | no | | +| buyNow | boolean | no | | | body | [ApplyCouponRequest](#ApplyCouponRequest) | yes | Request body | @@ -2369,16 +2352,14 @@ const promise = applicationClient.cart.applyRewardPoints({ body : value, id : value, i : value, b : value, - buyNow : value, - cartType : value }); + buyNow : value }); // Async/Await const data = await applicationClient.cart.applyRewardPoints({ body : value, id : value, i : value, b : value, - buyNow : value, - cartType : value }); + buyNow : value }); ``` @@ -2387,11 +2368,10 @@ const data = await applicationClient.cart.applyRewardPoints({ body : value, | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| id | string | no | The unique identifier of the cart | -| i | boolean | no | This is a boolean value. Select `true` to retrieve all the items added in the cart. | -| b | boolean | no | This is a boolean value. Select `true` to retrieve the price breakup of cart items. | -| buyNow | boolean | no | This is boolean to get buy_now cart | -| cartType | string | no | type of the cart | +| id | string | no | | +| i | boolean | no | | +| b | boolean | no | | +| buyNow | boolean | no | | | body | [RewardPointRequest](#RewardPointRequest) | yes | Request body | @@ -2621,13 +2601,11 @@ Checkout all items in the cart ```javascript // Promise const promise = applicationClient.cart.checkoutCart({ body : value, - buyNow : value, - cartType : value }); + buyNow : value }); // Async/Await const data = await applicationClient.cart.checkoutCart({ body : value, - buyNow : value, - cartType : value }); + buyNow : value }); ``` @@ -2636,8 +2614,7 @@ const data = await applicationClient.cart.checkoutCart({ body : value, | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| buyNow | boolean | no | This indicates the type of cart to checkout | -| cartType | string | no | The type of cart | +| buyNow | boolean | no | This indicates the type of cart to checkout | | body | [CartCheckoutDetailRequest](#CartCheckoutDetailRequest) | yes | Request body | @@ -3080,13 +3057,11 @@ Checkout all items in the cart ```javascript // Promise const promise = applicationClient.cart.checkoutCartV2({ body : value, - buyNow : value, - cartType : value }); + buyNow : value }); // Async/Await const data = await applicationClient.cart.checkoutCartV2({ body : value, - buyNow : value, - cartType : value }); + buyNow : value }); ``` @@ -3095,8 +3070,7 @@ const data = await applicationClient.cart.checkoutCartV2({ body : value, | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| buyNow | boolean | no | This indicates the type of cart to checkout | -| cartType | string | no | The type of cart | +| buyNow | boolean | no | This indicates the type of cart to checkout | | body | [CartCheckoutDetailV2Request](#CartCheckoutDetailV2Request) | yes | Request body | @@ -3538,12 +3512,10 @@ Delete cart once user made successful checkout ```javascript // Promise -const promise = applicationClient.cart.deleteCart({ id : value, - cartType : value }); +const promise = applicationClient.cart.deleteCart({ id : value }); // Async/Await -const data = await applicationClient.cart.deleteCart({ id : value, - cartType : value }); +const data = await applicationClient.cart.deleteCart({ id : value }); ``` @@ -3552,8 +3524,7 @@ const data = await applicationClient.cart.deleteCart({ id : value, | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| id | string | no | The unique identifier of the cart. | -| cartType | string | no | The type of cart | +| id | string | no | The unique identifier of the cart. | @@ -3857,15 +3828,13 @@ Get discount offers based on quantity const promise = applicationClient.cart.getBulkDiscountOffers({ itemId : value, articleId : value, uid : value, - slug : value, - cartType : value }); + slug : value }); // Async/Await const data = await applicationClient.cart.getBulkDiscountOffers({ itemId : value, articleId : value, uid : value, - slug : value, - cartType : value }); + slug : value }); ``` @@ -3877,8 +3846,7 @@ const data = await applicationClient.cart.getBulkDiscountOffers({ itemId : valu | itemId | number | no | The Item ID of the product | | articleId | string | no | Article Mongo ID | | uid | number | no | UID of the product | -| slug | string | no | A short, human-readable, URL-friendly identifier of a product. You can get slug value from the endpoint /service/application/catalog/v1.0/products/ | -| cartType | string | no | type of the cart | +| slug | string | no | A short, human-readable, URL-friendly identifier of a product. You can get slug value from the endpoint /service/application/catalog/v1.0/products/ | @@ -3999,8 +3967,7 @@ const promise = applicationClient.cart.getCart({ id : value, c : value, assignCardId : value, areaCode : value, - buyNow : value, - cartType : value }); + buyNow : value }); // Async/Await const data = await applicationClient.cart.getCart({ id : value, @@ -4009,8 +3976,7 @@ const data = await applicationClient.cart.getCart({ id : value, c : value, assignCardId : value, areaCode : value, - buyNow : value, - cartType : value }); + buyNow : value }); ``` @@ -4019,14 +3985,13 @@ const data = await applicationClient.cart.getCart({ id : value, | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| id | string | no | The unique identifier of the cart | -| i | boolean | no | This is a boolean value. Select `true` to retrieve all the items added in the cart. | -| b | boolean | no | This is a boolean value. Select `true` to retrieve the price breakup of cart items. | -| c | boolean | no | This is a boolean value. Select `true` to retrieve the cod charges in breakup of cart items. | -| assignCardId | number | no | Token of user's debit or credit card | -| areaCode | string | no | Customer servicable area_code | -| buyNow | boolean | no | This is a boolen value. Select `true` to set/initialize buy now cart | -| cartType | string | no | The type of cart | +| id | string | no | | +| i | boolean | no | | +| b | boolean | no | | +| c | boolean | no | | +| assignCardId | number | no | | +| areaCode | string | no | | +| buyNow | boolean | no | | @@ -4732,7 +4697,6 @@ Success. Returns a Cart object. Check the example shown below or refer `CartDeta "name": "Gandhi Nagar" }, "quantity": 108, - "product_name": "", "price": { "base": { "marked": 2999, @@ -4835,8 +4799,7 @@ Success. Returns a Cart object. Check the example shown below or refer `CartDeta } }, "message": "", - "quantity": 1, - "seller_count": 1 + "quantity": 1 } ], "buy_now": false, @@ -4900,12 +4863,6 @@ Success. Returns a Cart object. Check the example shown below or refer `CartDeta "description": "Your cashback, referrals, and refund amount get credited to Fynd Cash which can be redeemed while placing an order." } }, - "custom_cart": { - "cart_name": "Universal", - "cart_type": "universal", - "id": "659e3b6b33848a683efebf2c", - "is_universal": true - }, "delivery_charge_info": "", "coupon_text": "View all offers", "gstin": "", @@ -4962,169 +4919,6 @@ Use this API to fetch Last-Modified timestamp in header metadata. ---- - - -### getCartMetaConfig -Get cart configuration by id - - - -```javascript -// Promise -const promise = applicationClient.cart.getCartMetaConfig({ cartMetaId : value }); - -// Async/Await -const data = await applicationClient.cart.getCartMetaConfig({ cartMetaId : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| cartMetaId | string | yes | CartMeta mongo id for fetching single cart meta data | - - - -Get cart configuration by id - -*Returned Response:* - - - - -[CartConfigDetailResponse](#CartConfigDetailResponse) - -Cart Config Fetched successfully - - - - -
-  Example: - -```json -{ - "success": true, - "data": { - "id": "645ba594d414eb0669e6ee14", - "app_id": "60792ded7826bd09330ed90d", - "company_id": 884, - "bulk_coupons": false, - "delivery_charges": { - "charges": [], - "enabled": false - }, - "empty_cart": false, - "enabled": true, - "max_cart_items": 50, - "min_cart_value": 0, - "revenue_engine_coupon": false, - "gift_pricing": 50, - "gift_display_text": "", - "is_universal": false, - "is_active": true, - "order_placing": { - "enabled": true, - "message": "" - }, - "name": "Universal", - "slug": "universal", - "article_tags": [ - "sale", - "offer" - ], - "allow_coupon_with_rewards": false, - "gst_input": true, - "staff_selection": true, - "placing_for_customer": false, - "pan_card": { - "enabled": false, - "cod_threshold_amount": 0, - "online_threshold_amount": 0 - }, - "created_on": "2023-12-21T12:17:12", - "updated_on": "2023-12-21T12:17:12", - "last_modified_by": "5b84e9ffb02426353608c380" - } -} -``` -
- - - - - - - - - ---- - - -### getCartMetaConfigs -Get cart configuration - - - -```javascript -// Promise -const promise = applicationClient.cart.getCartMetaConfigs(); - -// Async/Await -const data = await applicationClient.cart.getCartMetaConfigs(); -``` - - - - - - -Get cart configuration - -*Returned Response:* - - - - -[CartConfigListResponse](#CartConfigListResponse) - -Cart Config fetched successfully - - - - -
-  Example: - -```json -{ - "success": true, - "data": [ - { - "id": "6203cb1393506f8a75ecd56b", - "name": "Universal", - "slug": "universal", - "article_tags": [ - "cloths" - ], - "created_on": "2023-12-21T12:17:12" - } - ] -} -``` -
- - - - - - - - - --- @@ -5721,78 +5515,6 @@ Success. Returns the total count of items in a user's cart. ---- - - -### getItemCountV2 -Count items in the cart according to cart_type - - - -```javascript -// Promise -const promise = applicationClient.cart.getItemCountV2({ id : value, - buyNow : value }); - -// Async/Await -const data = await applicationClient.cart.getItemCountV2({ id : value, - buyNow : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| id | string | no | The unique identifier of the cart | -| buyNow | boolean | no | Boolean value to get buy_now cart | - - - -Use this API to get the total number of items present in cart. - -*Returned Response:* - - - - -[CartItemCountResponseV2](#CartItemCountResponseV2) - -Success. Returns the total count of items in a user's cart. - - - - -
-  Example: - -```json -{ - "user_all_cart_articles_quantity_count": 7, - "user_all_cart_article_count": 2, - "custom_cart_count": { - "universal": { - "article_count": 1, - "article_quantity_count": 1 - }, - "fresh-cart": { - "article_count": 1, - "article_quantity_count": 6 - } - } -} -``` -
- - - - - - - - - --- @@ -5958,15 +5680,13 @@ Fetch available promotions const promise = applicationClient.cart.getPromotionOffers({ slug : value, pageSize : value, promotionGroup : value, - storeId : value, - cartType : value }); + storeId : value }); // Async/Await const data = await applicationClient.cart.getPromotionOffers({ slug : value, pageSize : value, promotionGroup : value, - storeId : value, - cartType : value }); + storeId : value }); ``` @@ -5978,8 +5698,7 @@ const data = await applicationClient.cart.getPromotionOffers({ slug : value, | slug | string | no | A short, human-readable, URL-friendly identifier of a product. You can get slug value from the endpoint /service/application/catalog/v1.0/products/ | | pageSize | number | no | Number of offers to be fetched to show | | promotionGroup | string | no | Type of promotion groups | -| storeId | number | no | Store id | -| cartType | string | no | The type of cart | +| storeId | number | no | Store id | @@ -6879,13 +6598,11 @@ Remove Coupon Applied ```javascript // Promise const promise = applicationClient.cart.removeCoupon({ id : value, - buyNow : value, - cartType : value }); + buyNow : value }); // Async/Await const data = await applicationClient.cart.removeCoupon({ id : value, - buyNow : value, - cartType : value }); + buyNow : value }); ``` @@ -6894,9 +6611,8 @@ const data = await applicationClient.cart.removeCoupon({ id : value, | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| id | string | no | The unique identifier of the cart | -| buyNow | boolean | no | This is boolean to get buy_now cart | -| cartType | string | no | The type of cart | +| id | string | no | | +| buyNow | boolean | no | | @@ -7904,8 +7620,7 @@ const promise = applicationClient.cart.updateCart({ body : value, i : value, b : value, areaCode : value, - buyNow : value, - cartType : value }); + buyNow : value }); // Async/Await const data = await applicationClient.cart.updateCart({ body : value, @@ -7913,8 +7628,7 @@ const data = await applicationClient.cart.updateCart({ body : value, i : value, b : value, areaCode : value, - buyNow : value, - cartType : value }); + buyNow : value }); ``` @@ -7923,12 +7637,11 @@ const data = await applicationClient.cart.updateCart({ body : value, | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| id | string | no | The unique identifier of the cart | -| i | boolean | no | This is a boolean value. Select `true` to retrieve all the items added in the cart. | -| b | boolean | no | This is a boolean value. Select `true` to retrieve the price breakup of cart items. | -| areaCode | string | no | Customer servicable area_code | -| buyNow | boolean | no | This is a boolen value. Select `true` to set/initialize buy now cart | -| cartType | string | no | The type of cart | +| id | string | no | | +| i | boolean | no | | +| b | boolean | no | | +| areaCode | string | no | | +| buyNow | boolean | no | | | body | [UpdateCartRequest](#UpdateCartRequest) | yes | Request body | @@ -8052,7 +7765,6 @@ Success. Updates and returns a cart object as shown below. Refer `UpdateCartDeta "name": "Gandhi Nagar" }, "quantity": 108, - "product_name": "", "price": { "base": { "marked": 2999, @@ -8148,8 +7860,7 @@ Success. Updates and returns a cart object as shown below. Refer `UpdateCartDeta } }, "message": "", - "quantity": 101, - "seller_count": 1 + "quantity": 101 } ], "delivery_charge_info": "", @@ -8893,7 +8604,6 @@ Success. Updates and returns a cart object as shown below. Refer `UpdateCartDeta "key": "437414_7", "message": "", "bulk_offer": {}, - "seller_count": 1, "price": { "base": { "add_on": 5499, @@ -8974,7 +8684,6 @@ Success. Updates and returns a cart object as shown below. Refer `UpdateCartDeta "name": "Colaba Causway" }, "quantity": 5, - "product_name": "", "price": { "base": { "marked": 5499, @@ -9520,8 +9229,7 @@ const promise = applicationClient.cart.validateCouponForPayment({ id : value, iin : value, network : value, type : value, - cardId : value, - cartType : value }); + cardId : value }); // Async/Await const data = await applicationClient.cart.validateCouponForPayment({ id : value, @@ -9534,8 +9242,7 @@ const data = await applicationClient.cart.validateCouponForPayment({ id : value iin : value, network : value, type : value, - cardId : value, - cartType : value }); + cardId : value }); ``` @@ -9544,18 +9251,17 @@ const data = await applicationClient.cart.validateCouponForPayment({ id : value | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| id | string | no | The unique identifier of the cart | -| buyNow | boolean | no | This is boolean to get buy_now cart | -| addressId | string | no | ID allotted to an address | -| paymentMode | string | no | Payment mode selected by the customer | -| paymentIdentifier | string | no | Identifier of payment like ICIC, PAYTM | -| aggregatorName | string | no | Payment gateway identifier | -| merchantCode | string | no | Identifier used by payment gateway for a given payment mode, e.g. NB_ICIC, PAYTM | -| iin | string | no | Debit/Credit card prefix (first 6 digit) | -| network | string | no | Credit/Debit card issuer, e.g. VISA, MASTERCARD, RUPAY | -| type | string | no | card type, e.g. Credit, Debit | -| cardId | string | no | saved card token reference id | -| cartType | string | no | type of the cart | +| id | string | no | | +| buyNow | boolean | no | | +| addressId | string | no | | +| paymentMode | string | no | | +| paymentIdentifier | string | no | | +| aggregatorName | string | no | | +| merchantCode | string | no | | +| iin | string | no | | +| network | string | no | | +| type | string | no | | +| cardId | string | no | | @@ -9653,7 +9359,6 @@ Success. Returns a success message and the coupon validity. Refer `PaymentCoupon | meta | string? | yes | | | parent_item_identifiers | [[String: string]]? | yes | | | pos | boolean? | yes | | - | price_factory_type_id | string? | yes | | | product_group_tags | [string]? | yes | | | quantity | number? | yes | | | seller_id | number? | yes | | @@ -9720,7 +9425,6 @@ Success. Returns a success message and the coupon validity. Refer `PaymentCoupon | article_quantity | number? | yes | Quantity of article on which promotion is applicable | | buy_rules | [[BuyRules](#BuyRules)]? | yes | Buy rules for promotions | | code | string? | yes | Promotion code | - | custom_field_meta | [string]? | yes | custom field meta for promotion. | | discount_rules | [[DiscountRulesApp](#DiscountRulesApp)]? | yes | Discount rules for promotions | | meta | string? | yes | Meta object for extra data | | mrp_promotion | boolean? | yes | If applied promotion is applied on product MRP or ESP | @@ -9923,71 +9627,6 @@ Success. Returns a success message and the coupon validity. Refer `PaymentCoupon | delivery_charges_config | [DeliveryChargesConfig](#DeliveryChargesConfig)? | yes | | ---- - -#### [CartConfigDetailObj](#CartConfigDetailObj) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | allow_coupon_with_rewards | boolean? | yes | | - | app_id | string? | yes | | - | article_tags | [string]? | yes | | - | bulk_coupons | boolean? | yes | | - | company_id | number? | yes | | - | created_on | string? | yes | | - | delivery_charges | [DeliveryChargesConfig](#DeliveryChargesConfig)? | yes | | - | enabled | boolean? | yes | | - | gift_display_text | string? | yes | | - | gift_pricing | number? | yes | | - | gst_input | boolean? | yes | | - | id | string? | yes | | - | is_active | boolean? | yes | | - | last_modified_by | string? | yes | | - | max_cart_items | number? | yes | | - | max_cart_value | number? | yes | | - | min_cart_value | number? | yes | | - | name | string? | yes | | - | order_placing | [OrderPlacing](#OrderPlacing)? | yes | | - | pan_card | [PanCard](#PanCard)? | yes | | - | placing_for_customer | boolean? | yes | | - | revenue_engine_coupon | boolean? | yes | | - | staff_selection | boolean? | yes | | - | updated_on | string? | yes | | - - ---- - -#### [CartConfigDetailResponse](#CartConfigDetailResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | data | [CartConfigDetailObj](#CartConfigDetailObj)? | yes | | - | success | boolean? | yes | | - - ---- - -#### [CartConfigListObj](#CartConfigListObj) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | article_tags | [string]? | yes | | - | created_on | string? | yes | | - | id | string? | yes | | - | name | string? | yes | | - | slug | string? | yes | | - - ---- - -#### [CartConfigListResponse](#CartConfigListResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | data | [[CartConfigListObj](#CartConfigListObj)]? | yes | | - | success | boolean? | yes | | - - --- #### [CartCurrency](#CartCurrency) @@ -10038,12 +9677,10 @@ Success. Returns a success message and the coupon validity. Refer `PaymentCoupon | coupon | [CartDetailCoupon](#CartDetailCoupon)? | yes | | | coupon_text | string? | yes | | | currency | [CartCurrency](#CartCurrency)? | yes | | - | custom_cart | [CustomCart](#CustomCart)? | yes | | | delivery_charge_info | string? | yes | | | delivery_promise | [ShipmentPromise](#ShipmentPromise)? | yes | | | gstin | string? | yes | | | id | string? | yes | | - | is_pan_received | boolean? | yes | | | is_valid | boolean? | yes | | | items | [[CartProductInfo](#CartProductInfo)]? | yes | | | last_modified | string? | yes | | @@ -10067,17 +9704,6 @@ Success. Returns a success message and the coupon validity. Refer `PaymentCoupon | user_cart_items_count | number? | yes | Item count present in cart | ---- - -#### [CartItemCountResponseV2](#CartItemCountResponseV2) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | custom_cart_count | string? | yes | | - | user_all_cart_article_count | number? | yes | | - | user_all_cart_articles_quantity_count | number? | yes | | - - --- #### [CartMetaMissingResponse](#CartMetaMissingResponse) @@ -10169,7 +9795,6 @@ Success. Returns a success message and the coupon validity. Refer `PaymentCoupon | promo_meta | [PromoMeta](#PromoMeta)? | yes | | | promotions_applied | [[AppliedPromotion](#AppliedPromotion)]? | yes | | | quantity | number? | yes | | - | seller_count | number? | yes | | --- @@ -10259,7 +9884,6 @@ Success. Returns a success message and the coupon validity. Refer `PaymentCoupon | comment | string? | yes | | | coupon_text | string? | yes | | | currency | [CartCurrency](#CartCurrency)? | yes | | - | custom_cart | [CustomCart](#CustomCart)? | yes | | | delivery_charge_info | string? | yes | | | delivery_charge_order_value | number? | yes | | | delivery_charges | number? | yes | | @@ -10361,18 +9985,6 @@ Success. Returns a success message and the coupon validity. Refer `PaymentCoupon | symbol | string? | yes | | ---- - -#### [CustomCart](#CustomCart) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | cart_name | string? | yes | Name of custom cart | - | cart_type | string? | yes | Type of custom cart | - | id | string? | yes | id of custom cart config | - | is_universal | boolean? | yes | By default all carts are universal, will be false for custom cart | - - --- #### [CustomerDetails](#CustomerDetails) @@ -10643,16 +10255,6 @@ Success. Returns a success message and the coupon validity. Refer `PaymentCoupon | success | boolean? | yes | | ---- - -#### [OrderPlacing](#OrderPlacing) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | enabled | boolean? | yes | | - | message | string? | yes | | - - --- #### [Ownership](#Ownership) @@ -10676,17 +10278,6 @@ Success. Returns a success message and the coupon validity. Refer `PaymentCoupon | total_item_count | number? | yes | | ---- - -#### [PanCard](#PanCard) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | cod_threshold_amount | number? | yes | | - | enabled | boolean? | yes | | - | online_threshold_amount | number? | yes | | - - --- #### [PaymentCouponValidate](#PaymentCouponValidate) @@ -10763,7 +10354,6 @@ Success. Returns a success message and the coupon validity. Refer `PaymentCoupon | parent_item_identifiers | string? | yes | | | price | [ArticlePriceInfo](#ArticlePriceInfo)? | yes | | | product_group_tags | [string]? | yes | | - | product_name | string? | yes | | | quantity | number? | yes | | | seller | [BaseInfo](#BaseInfo)? | yes | | | seller_identifier | string? | yes | | @@ -11150,7 +10740,6 @@ Success. Returns a success message and the coupon validity. Refer `PaymentCoupon | item_size | string? | yes | | | meta | string? | yes | | | parent_item_identifiers | string? | yes | | - | price_factory_type_id | string? | yes | | | quantity | number? | yes | | diff --git a/documentation/application/CATALOG.md b/documentation/application/CATALOG.md index 99caf0b15..510f659d4 100644 --- a/documentation/application/CATALOG.md +++ b/documentation/application/CATALOG.md @@ -4756,17 +4756,13 @@ Get the price of a product size at a PIN Code const promise = applicationClient.catalog.getProductPriceBySlug({ slug : value, size : value, storeId : value, - exchangeSellerIdentifier : value, - moq : value, - sellerId : value }); + moq : value }); // Async/Await const data = await applicationClient.catalog.getProductPriceBySlug({ slug : value, size : value, storeId : value, - exchangeSellerIdentifier : value, - moq : value, - sellerId : value }); + moq : value }); ``` @@ -4778,9 +4774,7 @@ const data = await applicationClient.catalog.getProductPriceBySlug({ slug : val | slug | string | yes | A short, human-readable, URL-friendly identifier of a product. You can get slug value from the endpoint /service/application/catalog/v1.0/products/ | | size | string | yes | A string indicating the size of the product, e.g. S, M, XL. You can get slug value from the endpoint /service/application/catalog/v1.0/products/sizes | | storeId | number | no | The ID of the store that is selling the product, e.g. 1,2,3. | -| exchangeSellerIdentifier | string | no | The seller identifier of the exchange product. | -| moq | number | no | An Integer indication the Minimum Order Quantity of a product, e.g. 100. | -| sellerId | number | no | The ID of the seller that is selling the product, e.g. 1,2,3. | +| moq | number | no | An Integer indication the Minimum Order Quantity of a product, e.g. 100. | @@ -7668,20 +7662,10 @@ Get relevant suggestions for a search query ```javascript // Promise -const promise = applicationClient.catalog.getSearchResults({ q : value, - categorySuggestion : value, - brandSuggestion : value, - collectionSuggestion : value, - productSuggestion : value, - querySuggestion : value }); +const promise = applicationClient.catalog.getSearchResults({ q : value }); // Async/Await -const data = await applicationClient.catalog.getSearchResults({ q : value, - categorySuggestion : value, - brandSuggestion : value, - collectionSuggestion : value, - productSuggestion : value, - querySuggestion : value }); +const data = await applicationClient.catalog.getSearchResults({ q : value }); ``` @@ -7689,13 +7673,8 @@ const data = await applicationClient.catalog.getSearchResults({ q : value, | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| q | string | no | The search query for entering partial or full name of a product, brand or category. For example, if the given search query `q` is _ski_, the relevant search suggestions could be _skirt_, _ski shoes_, __skin cream_ etc. | -| categorySuggestion | number | no | For getting related category suggestions. | -| brandSuggestion | number | no | For getting related brand suggestions. | -| collectionSuggestion | number | no | For getting related collection suggestions. | -| productSuggestion | number | no | For getting related product suggestions. | -| querySuggestion | number | no | For getting related query suggestions. | +| --------- | ----- | -------- | ----------- | +| q | string | yes | The search query for entering partial or full name of a product, brand or category. For example, if the given search query `q` is _ski_, the relevant search suggestions could be _skirt_, _ski shoes_, __skin cream_ etc. | @@ -7708,7 +7687,7 @@ Retrieves a list of suggestions for a given search query. Each suggestion is a v [AutoCompleteResponse](#AutoCompleteResponse) -Success. Returns a list autocomplete suggestions for the search query `q` along side provided suggestion configs. Check the example shown below or refer `AutoCompleteResponse` for more details. +Success. Returns a list autocomplete suggestions for the search query `q`. Check the example shown below or refer `AutoCompleteResponse` for more details. @@ -8881,7 +8860,6 @@ Success. Returns a response object. Check the example shown below or refer `Foll | custom_order | [ProductDetailCustomOrder](#ProductDetailCustomOrder)? | yes | | | description | string? | yes | | | discount | string? | yes | | - | discount_meta | [DiscountMeta](#DiscountMeta)? | yes | | | grouped_attributes | [[ProductDetailGroupedAttribute](#ProductDetailGroupedAttribute)]? | yes | | | has_variant | boolean? | yes | | | highlights | [string]? | yes | | @@ -8921,7 +8899,6 @@ Success. Returns a response object. Check the example shown below or refer `Foll | ---------- | ---- | -------- | ----------- | | effective | [Price](#Price)? | yes | | | marked | [Price](#Price)? | yes | | - | selling | [Price](#Price)? | yes | | --- diff --git a/documentation/application/CONFIGURATION.md b/documentation/application/CONFIGURATION.md index 6bed206e2..2fa4e0a12 100644 --- a/documentation/application/CONFIGURATION.md +++ b/documentation/application/CONFIGURATION.md @@ -941,11 +941,6 @@ Success. Check the example shown below or refer `AppFeatureResponse` for more de "order": { "buy_again": true }, - "buybox": { - "show_name": true, - "enable_selection": true, - "is_seller_buybox_enabled": false - }, "_id": "5e57643c986e4119c973df7d", "app": "000000000000000000000004", "created_at": "2020-02-27T06:39:56.088Z", @@ -1641,7 +1636,6 @@ Success | __v | number? | yes | Version key for tracking revisions. Default value is zero | | _id | string? | yes | The unique identifier (24-digit Mongo Object ID) for the sales channel features | | app | string? | yes | Application ID of the sales channel | - | buybox | [BuyboxFeature](#BuyboxFeature)? | yes | | | cart | [CartFeature](#CartFeature)? | yes | | | common | [CommonFeature](#CommonFeature)? | yes | | | created_at | string? | yes | ISO 8601 timestamp showing the date when the features were configured | @@ -1900,17 +1894,6 @@ Success | title | string? | yes | Title of the business highlight, e.g. Superfast Delivery | ---- - -#### [BuyboxFeature](#BuyboxFeature) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | enable_selection | boolean? | yes | Allow selection of sellers/stores on PDP (product detail page). | - | is_seller_buybox_enabled | boolean? | yes | Toggle buybox listing between sellers and stores. True indicates seller listing, while False indicates store listing. | - | show_name | boolean? | yes | Allow users to see seller/stores name on PDP (product detail page). | - - --- #### [CartFeature](#CartFeature) diff --git a/documentation/application/CONTENT.md b/documentation/application/CONTENT.md index 20e7a3479..8b79eeee1 100644 --- a/documentation/application/CONTENT.md +++ b/documentation/application/CONTENT.md @@ -2105,6 +2105,7 @@ Success. Returns a JSON object containing all the tags injected in the applicati | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | | page | [ActionPage](#ActionPage)? | yes | | + | popup | [ActionPage](#ActionPage)? | yes | | | type | string? | yes | | diff --git a/documentation/application/LEAD.md b/documentation/application/LEAD.md index f1ad9e4a8..ef3b4bc05 100644 --- a/documentation/application/LEAD.md +++ b/documentation/application/LEAD.md @@ -1372,7 +1372,7 @@ Success | feedback_form | [FeedbackForm](#FeedbackForm)? | yes | | | group_id | number? | yes | Group id of category releted data | | key | string | no | Category key value identifier | - | sub_categories | [[TicketCategory](#TicketCategory)]? | yes | | + | sub_categories | [TicketCategory](#TicketCategory)? | yes | | --- diff --git a/documentation/application/LOGISTIC.md b/documentation/application/LOGISTIC.md index 6a8fed301..702ea6bab 100644 --- a/documentation/application/LOGISTIC.md +++ b/documentation/application/LOGISTIC.md @@ -17,7 +17,9 @@ Default * [getLocality](#getlocality) * [getLocations](#getlocations) * [getOptimalLocations](#getoptimallocations) +* [getPincodeCity](#getpincodecity) * [getPincodeZones](#getpincodezones) +* [getTatProduct](#gettatproduct) * [validateAddress](#validateaddress) @@ -1141,6 +1143,157 @@ Response status_code +--- + + +### getPincodeCity +Get Pincode API + + + +```javascript +// Promise +const promise = applicationClient.logistic.getPincodeCity({ pincode : value }); + +// Async/Await +const data = await applicationClient.logistic.getPincodeCity({ pincode : value }); +``` + + + + + +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| pincode | string | yes | A `pincode` contains a specific address of a location. | + + + +Get pincode data + +*Returned Response:* + + + + +[PincodeApiResponse](#PincodeApiResponse) + +Get pincode data + + + + +
+  Examples: + + +
+  Pincode data found + +```json +{ + "value": { + "data": [ + { + "sub_type": "pincode", + "name": "421202", + "error": { + "type": null, + "value": null, + "message": null + }, + "uid": "pincode:INDIA|MAHARASHTRA|MUMBAI|421202", + "display_name": "421202", + "meta": { + "zone": "West", + "internal_zone_id": 4 + }, + "meta_code": { + "country_code": "IND", + "isd_code": "+91" + }, + "parents": [ + { + "sub_type": "country", + "name": "India", + "display_name": "India", + "uid": "country:INDIA" + }, + { + "sub_type": "state", + "name": "Maharashtra", + "display_name": "Maharashtra", + "uid": "state:INDIA|MAHARASHTRA" + }, + { + "sub_type": "city", + "name": "Thane", + "display_name": "Thane", + "uid": "city:INDIA|MAHARASHTRA|MUMBAI" + } + ], + "lat_long": { + "type": "Point", + "coordinates": [ + "3.8858955", + "7.2272335" + ] + } + } + ], + "request_uuid": "fce9f431215e71c9ee0e86e792ae1dce4", + "stormbreaker_uuid": "56cca764-9fab-41f4-adb8-6e9683532aa5", + "error": { + "type": null, + "value": null, + "message": null + }, + "success": true + } +} +``` +
+ +
+  Pincode not found + +```json +{ + "value": { + "data": [ + { + "sub_type": "pincode", + "name": "999999", + "error": { + "type": "DoesNotExist", + "value": "999999", + "message": "pincode 999999 does not exist" + } + } + ], + "request_uuid": "fce9fb9215e71c9ee0e86e792ae1dce4", + "stormbreaker_uuid": "03b353ed-9dbd-4629-80b2-2be337859a20", + "error": { + "type": null, + "value": null, + "message": null + }, + "success": false + } +} +``` +
+ +
+ + + + + + + + + --- @@ -1196,6 +1349,168 @@ Response status_code +--- + + +### getTatProduct +Get TAT API + + + +```javascript +// Promise +const promise = applicationClient.logistic.getTatProduct({ body : value }); + +// Async/Await +const data = await applicationClient.logistic.getTatProduct({ body : value }); +``` + + + + + +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| body | [TATViewRequest](#TATViewRequest) | yes | Request body | + + +Get TAT data + +*Returned Response:* + + + + +[TATViewResponse](#TATViewResponse) + +Get TAT data + + + + +
+  Examples: + + +
+  Pincode data found + +```json +{ + "value": { + "source": "FYND-APP", + "identifier": "PDP", + "journey": "forward", + "action": "get_tat", + "to_pincode": "143001", + "location_details": [ + { + "fulfillment_id": 8, + "from_pincode": "560023", + "articles": [ + { + "category": { + "level": "l3", + "id": 155 + }, + "manufacturing_time": 2, + "manufacturing_time_unit": "days", + "promise": { + "timestamp": { + "min": 1663564548, + "max": 1663650948 + }, + "formatted": { + "min": "19 Sep, Monday", + "max": "20 Sep, Tuesday" + } + }, + "error": { + "type": null, + "value": null, + "message": null + }, + "is_cod_available": true, + "_manufacturing_time_seconds": 172800 + } + ] + } + ], + "request_uuid": "b4adf5508e34f17971817c3581e16310", + "stormbreaker_uuid": "4b8084d4-ea74-45af-8ddc-c38e29bf0cfb", + "error": { + "type": null, + "value": null, + "message": null + }, + "to_city": "Amritsar", + "payment_mode": "prepaid", + "is_cod_available": true, + "success": true + } +} +``` +
+ +
+  Pincode not found + +```json +{ + "value": { + "source": "FYND-APP", + "identifier": "PDP", + "journey": "forward", + "action": "get_tat", + "to_pincode": "99999", + "location_details": [ + { + "fulfillment_id": 8, + "from_pincode": "560023", + "articles": [ + { + "category": { + "level": "l3", + "id": 155 + }, + "manufacturing_time": 2, + "manufacturing_time_unit": "days", + "promise": {}, + "error": { + "type": "ValueError", + "value": "99999", + "message": "We are not delivering to 99999" + } + } + ] + } + ], + "request_uuid": "4b99d15fddb2b9fc2d6ab99a1c933010", + "stormbreaker_uuid": "6a847909-1d59-43e7-9ae0-15f5de8fc7d7", + "error": { + "type": "ValueError", + "value": "99999", + "message": "All of the items in your cart are not deliverable to 99999" + }, + "to_city": "", + "payment_mode": "prepaid", + "is_cod_available": true, + "success": false + } +} +``` +
+ +
+ + + + + + + + + --- diff --git a/documentation/application/ORDER.md b/documentation/application/ORDER.md index bcff616cd..bb2b880f5 100644 --- a/documentation/application/ORDER.md +++ b/documentation/application/ORDER.md @@ -281,13 +281,6 @@ Success. Check the example shown below or refer `OrderById` for more details. "shipments": [ { "order_id": "FY632D541F01152493D0", - "order": { - "meta": { - "custom_cart_id": "652ce6972512f05477a32547", - "name": "Universal/Smart Bazar/Fresh Cart", - "slug": "universal/smart-bazar/fresh-cart" - } - }, "breakup_values": [ { "name": "mrp_total", @@ -556,14 +549,7 @@ Success. Check the example shown below or refer `OrderById` for more details. "can_cancel": true, "can_return": false, "delivery_date": null, - "returnable_date": null, - "article": [ - { - "tags": [ - "1P" - ] - } - ] + "returnable_date": null } ], "size_info": { @@ -1766,13 +1752,6 @@ Success. Check the example shown below or refer `ShipmentById` for more details. { "shipment": { "order_id": "FY62F3B8290150D13E36", - "order": { - "meta": { - "custom_cart_id": "652ce6972512f05477a32547", - "name": "Universal/Smart Bazar/Fresh Cart", - "slug": "universal/smart-bazar/fresh-cart" - } - }, "breakup_values": [ { "name": "mrp_total", @@ -1991,14 +1970,7 @@ Success. Check the example shown below or refer `ShipmentById` for more details. 31 ], "can_cancel": false, - "can_return": false, - "article": [ - { - "tags": [ - "1P" - ] - } - ] + "can_return": false } ], "size_info": { @@ -2625,15 +2597,6 @@ Success, the code is valid and returns a session token | promotion_type | string? | yes | | ---- - -#### [Article](#Article) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | tags | [string]? | yes | | - - --- #### [BagReasonMeta](#BagReasonMeta) @@ -2664,7 +2627,6 @@ Success, the code is valid and returns a session token | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | | applied_promos | [[AppliedPromos](#AppliedPromos)]? | yes | | - | article | [Article](#Article)? | yes | | | can_cancel | boolean? | yes | | | can_return | boolean? | yes | | | currency_code | string? | yes | | @@ -2993,15 +2955,6 @@ Success, the code is valid and returns a session token | type | string? | yes | | ---- - -#### [OrderRequest](#OrderRequest) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | meta | string? | yes | | - - --- #### [OrderSchema](#OrderSchema) @@ -3263,7 +3216,6 @@ Success, the code is valid and returns a session token | fulfilling_store | [FulfillingStore](#FulfillingStore)? | yes | | | invoice | [Invoice](#Invoice)? | yes | | | need_help_url | string? | yes | | - | order | [OrderRequest](#OrderRequest)? | yes | | | order_id | string? | yes | | | order_type | string? | yes | | | payment | [ShipmentPayment](#ShipmentPayment)? | yes | | diff --git a/documentation/application/PAYMENT.md b/documentation/application/PAYMENT.md index 424b2c662..8a685ceae 100644 --- a/documentation/application/PAYMENT.md +++ b/documentation/application/PAYMENT.md @@ -23,7 +23,6 @@ Default * [createPaymentOrder](#createpaymentorder) * [customerCreditSummary](#customercreditsummary) * [customerOnboard](#customeronboard) -* [deleteBeneficiaryDetails](#deletebeneficiarydetails) * [deleteUserCard](#deleteusercard) * [delinkWallet](#delinkwallet) * [enableOrDisableRefundTransferMode](#enableordisablerefundtransfermode) @@ -37,11 +36,8 @@ Default * [getPaymentModeRoutes](#getpaymentmoderoutes) * [getPaymentModeRoutesPaymentLink](#getpaymentmoderoutespaymentlink) * [getPosPaymentModeRoutes](#getpospaymentmoderoutes) -* [getRefundOptions](#getrefundoptions) * [getRupifiBannerDetails](#getrupifibannerdetails) -* [getSelectedRefundOption](#getselectedrefundoption) * [getUserBeneficiariesDetail](#getuserbeneficiariesdetail) -* [getUserBeneficiariesDetailV2](#getuserbeneficiariesdetailv2) * [initialisePayment](#initialisepayment) * [initialisePaymentPaymentLink](#initialisepaymentpaymentlink) * [linkWallet](#linkwallet) @@ -52,16 +48,14 @@ Default * [renderHTML](#renderhtml) * [resendOrCancelPayment](#resendorcancelpayment) * [resendPaymentLink](#resendpaymentlink) -* [setRefundOptionforShipment](#setrefundoptionforshipment) * [updateDefaultBeneficiary](#updatedefaultbeneficiary) -* [validateBeneficiaryAddress](#validatebeneficiaryaddress) * [validateVPA](#validatevpa) * [verifyAndChargePayment](#verifyandchargepayment) * [verifyCustomerForPayment](#verifycustomerforpayment) * [verifyIfscCode](#verifyifsccode) * [verifyOtpAndAddBeneficiaryForBank](#verifyotpandaddbeneficiaryforbank) * [verifyOtpAndAddBeneficiaryForWallet](#verifyotpandaddbeneficiaryforwallet) -* [walletLinkInitate](#walletlinkinitate) +* [walletLinkInitiate](#walletlinkinitiate) @@ -961,65 +955,6 @@ Success. Returns the status of payment. Check the example shown below or refer ` ---- - - -### deleteBeneficiaryDetails -Delete saved beneficiary details of customers - - - -```javascript -// Promise -const promise = applicationClient.payment.deleteBeneficiaryDetails({ beneficiaryId : value }); - -// Async/Await -const data = await applicationClient.payment.deleteBeneficiaryDetails({ beneficiaryId : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| beneficiaryId | string | yes | This is a String value that contains beneficiary_id as value. | - - - -Use this API to delete the saved beneficiary details provided beneficiary Id. - -*Returned Response:* - - - - -[DeleteRefundAccountResponse](#DeleteRefundAccountResponse) - -Success. Shows whether the beneficiary details were saved to a returned/cancelled order or not. - - - - -
-  Example: - -```json -{ - "success": true, - "refund_options": "Account successfully deleted" -} -``` -
- - - - - - - - - --- @@ -1398,7 +1333,6 @@ Success. Returns a list of cards saved by the user. Check the example shown belo "expired": false, "card_fingerprint": null, "card_brand_image": "https://hdn-1.fynd.com/payment/visa.png", - "bank_logo": "https://hdn-1.fynd.com/payment/bank.png", "compliant_with_tokenisation_guidelines": true } ] @@ -2184,10 +2118,6 @@ Success. Returns all available options for payment. Check the example shown belo "redirect": false, "callback_url": null, "action_url": "https://api.fyndx0.de/platform/payment/v2/external/payments/confirm/charge/?app_id=000000000000000000000001" - }, - "data": { - "user_phone": "9999632145", - "user_email": "app@fynd.com" } }, "return_url": null @@ -2731,10 +2661,6 @@ Success. Returns all available options for payment. Check the example shown belo "redirect": false, "callback_url": null, "action_url": "https://api.fyndx0.de/platform/payment/v2/external/payments/confirm/charge/?app_id=000000000000000000000001" - }, - "data": { - "user_phone": "9999632145", - "user_email": "app@fynd.com" } }, "return_url": null @@ -3007,10 +2933,6 @@ Success. Returns all available options for payment. Check the example shown belo "redirect": false, "callback_url": null, "action_url": "https://api.fyndx0.de/platform/payment/v2/external/payments/confirm/charge/?app_id=000000000000000000000001" - }, - "data": { - "user_phone": "9999632145", - "user_email": "app@fynd.com" } }, "return_url": null @@ -3090,117 +3012,6 @@ Success. Returns all available options for payment. Check the example shown belo ---- - - -### getRefundOptions -Refund Options Handler to fetch available refund options. - - - -```javascript -// Promise -const promise = applicationClient.payment.getRefundOptions({ configuration : value, - productType : value, - amount : value }); - -// Async/Await -const data = await applicationClient.payment.getRefundOptions({ configuration : value, - productType : value, - amount : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| configuration | string | yes | config type | -| productType | string | no | Product Type either 1P and 3P | -| amount | string | no | refunded amount | - - - -Refund Options Handler to fetch available refund options - -*Returned Response:* - - - - -[RefundOptionResponse](#RefundOptionResponse) - -Success. Returns the refund options for config type. Check the example shown below or refer `RefundOptionResponse` for more details. - - - - -
-  Example: - -```json -{ - "success": true, - "refund_options": { - "items": [ - { - "id": 4, - "name": "refund_to_source", - "display_name": "refund_to_source", - "is_active": true - }, - { - "id": 5, - "name": "creditnote", - "display_name": "CreditNote", - "is_active": true - }, - { - "id": 8, - "name": "Wallet", - "display_name": "Wallet", - "is_active": true - } - ] - }, - "offline_refund_options": { - "payment_modes": [ - "COD" - ], - "items": [ - { - "id": 1, - "name": "bank", - "display_name": "BANK", - "is_active": true - }, - { - "id": 2, - "name": "upi", - "display_name": "UPI", - "is_active": true - }, - { - "id": 3, - "name": "jm_wallet", - "display_name": "JM Wallet", - "is_active": true - } - ] - } -} -``` -
- - - - - - - - - --- @@ -3258,73 +3069,6 @@ Success. Return CreditLine Offer detail. Check the example shown below or refer ---- - - -### getSelectedRefundOption -API to get the selected refund options for shipment id - - - -```javascript -// Promise -const promise = applicationClient.payment.getSelectedRefundOption({ shipmentId : value, - orderId : value }); - -// Async/Await -const data = await applicationClient.payment.getSelectedRefundOption({ shipmentId : value, - orderId : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| shipmentId | string | yes | shipment Id | -| orderId | string | yes | Order Id | - - - -API to get the selected refund options for shipment id - -*Returned Response:* - - - - -[SelectedRefundOptionResponse](#SelectedRefundOptionResponse) - -Success. Returns the selected refund option for shipment. Check the example shown below or refer `SelectedRefundOptionResponseSchema` for more details. - - - - -
-  Example: - -```json -{ - "success": true, - "shipment_id": "1754345678232412312", - "transfer_mode": { - "mode": "refund_to_source", - "display_name": "Refund to Source" - }, - "message": "Refund Source" -} -``` -
- - - - - - - - - --- @@ -3406,135 +3150,6 @@ Success. Returns the details of the beneficiary getting a refund. Check the exam ---- - - -### getUserBeneficiariesDetailV2 -Lists the beneficiary of a refund - - - -```javascript -// Promise -const promise = applicationClient.payment.getUserBeneficiariesDetailV2({ orderId : value, - shipmentId : value, - mop : value }); - -// Async/Await -const data = await applicationClient.payment.getUserBeneficiariesDetailV2({ orderId : value, - shipmentId : value, - mop : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| orderId | string | no | A unique number used for identifying and tracking your orders. | -| shipmentId | string | no | A unique number used for identifying and tracking your orders. | -| mop | string | no | Mode of payment for which beneficiary data required | - - - -Use this API to get the details of all active beneficiary added by a user for refund. - -*Returned Response:* - - - - -[OrderBeneficiaryResponseSchemaV2](#OrderBeneficiaryResponseSchemaV2) - -Success. Returns the details of the beneficiary getting a refund. Check the example shown below or refer `OrderBeneficiaryResponse` for more details. - - - - -
-  Example: - -```json -{ - "data": { - "bank": [ - { - "id": 221, - "beneficiary_id": "0f7e44a922df352c05c5f73cb40ba115", - "bank_name": "Example Bank", - "branch_name": "Example Bank", - "account_holder": "DUMMY NAME", - "account_no": "XXXX-XXXX-9999", - "ifsc_code": "EXAM0009999", - "mobile": "9999999999", - "email": "dummy@example.com", - "address": "204A", - "comment": "", - "is_active": null, - "created_on": "2020-06-29 12:38:39", - "modified_on": "2020-06-29 12:38:39", - "display_name": "BANK", - "transfer_mode": "bank", - "title": "Bank Account", - "subtitle": "1234567891", - "delights_user_name": null, - "default": "true,", - "logo": "https://hdn-1.fynd.com/payment/paybycard.png" - } - ], - "upi": [ - { - "id": 222, - "beneficiary_id": "0f7e44a922df352c05c5f73cb40ba115", - "vpa_address": "success@upi", - "vpa": "success@upi", - "mobile": "9999999999", - "email": "dummy@example.com", - "address": "204A", - "comment": "", - "display_name": "UPI", - "transfer_mode": "vpa", - "title": "UPI Payment", - "subtitle": "success@upi", - "delights_user_name": null, - "default": "true,", - "logo": "https://hdn-1.fynd.com/payment/paybycard.png" - } - ], - "wallet": [ - { - "id": 223, - "beneficiary_id": "234567823213123", - "wallet_address": "1234567891", - "wallet": "1234567891", - "mobile": "9999999999", - "email": "dummy@example.com", - "address": "204A", - "comment": "", - "display_name": "Wallet", - "transfer_mode": "wallet", - "title": "DummyWallet", - "subtitle": "1234567891", - "delights_user_name": null, - "default": true, - "logo": "https://hdn-1.fynd.com/payment/paybycard.png" - } - ] - }, - "show_beneficiary_details": true -} -``` -
- - - - - - - - - --- @@ -4211,70 +3826,6 @@ Success. Check the example shown below ---- - - -### setRefundOptionforShipment -Save refund source against shipment and order - - - -```javascript -// Promise -const promise = applicationClient.payment.setRefundOptionforShipment({ body : value }); - -// Async/Await -const data = await applicationClient.payment.setRefundOptionforShipment({ body : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| body | [ShipmentRefundRequest](#ShipmentRefundRequest) | yes | Request body | - - -Save refund source against shipment and order - -*Returned Response:* - - - - -[ShipmentRefundResponse](#ShipmentRefundResponse) - -Success. Returns the status of saved refund source for shipment and order. Check the example shown below or refer `ShipmentRefundResponse` for more details. - - - - -
-  Example: - -```json -{ - "success": true, - "data": { - "order_id": "FY653A517A0EF2BEE7A7", - "shipment_id": "1754345678232412312", - "beneficiary_id": "213123213123", - "transfer_mode": "bank" - }, - "message": "Saved transfer mode for shipment" -} -``` -
- - - - - - - - - --- @@ -4333,90 +3884,6 @@ Success. Check the example shown below or refer `SetDefaultBeneficiaryResponse` ---- - - -### validateBeneficiaryAddress -API to Validate UPI ID and IFSC code - - - -```javascript -// Promise -const promise = applicationClient.payment.validateBeneficiaryAddress({ body : value }); - -// Async/Await -const data = await applicationClient.payment.validateBeneficiaryAddress({ body : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| body | [ValidateValidateAddressRequest](#ValidateValidateAddressRequest) | yes | Request body | - - -API to Validate UPI ID and IFSC code - -*Returned Response:* - - - - -[ValidateValidateAddressResponse](#ValidateValidateAddressResponse) - -Success. Returns the IFSC/VPA validation. Check the example shown below or refer `ValidateValidateAddressResponse` for more details. - - - - -
-  Example: - -```json -{ - "success": true, - "ifsc": { - "branch_name": "MANPUR", - "bank_name": "GAYA", - "BRANCH": "MANPUR", - "CENTRE": "GAYA", - "DISTRICT": "GAYA", - "STATE": "BIHAR", - "ADDRESS": "POBUNIYADGANJBIHAR", - "CONTACT": "00", - "MICR": "816002103", - "UPI": true, - "RTGS": true, - "CITY": "GAYA", - "NEFT": true, - "IMPS": true, - "SWIFT": "", - "BANK": "State Bank of India", - "BANKCODE": "SBIN", - "IFSC": "SBIN0005611", - "success": true - }, - "vpa": { - "upi_vpa": "success@razorpay", - "status": "VALID", - "is_valid": true, - "customer_name": "Verified" - } -} -``` -
- - - - - - - - - --- @@ -4837,17 +4304,17 @@ Success. Sends the OTP to the given mobile number. Check the example shown below --- -### walletLinkInitate +### walletLinkInitiate Initiate linking of wallet ```javascript // Promise -const promise = applicationClient.payment.walletLinkInitate({ body : value }); +const promise = applicationClient.payment.walletLinkInitiate({ body : value }); // Async/Await -const data = await applicationClient.payment.walletLinkInitate({ body : value }); +const data = await applicationClient.payment.walletLinkInitiate({ body : value }); ``` @@ -4937,7 +4404,7 @@ OTP for Wallet Linking sent | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | delights | boolean? | yes | True if beneficiary to be added by delights or False if by User | + | delights | boolean | no | True if beneficiary to be added by delights or False if by User | | details | [BeneficiaryModeDetails](#BeneficiaryModeDetails) | no | | | order_id | string | no | Merchant Order Id | | otp | string? | yes | | @@ -5008,13 +4475,13 @@ OTP for Wallet Linking sent | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | | api | string? | yes | Payment gateway api endpoint | - | config_type | string? | yes | Fynd or self payment gateway | - | key | string? | yes | Payment gateway api key | + | config_type | string | no | Fynd or self payment gateway | + | key | string | no | Payment gateway api key | | merchant_id | string? | yes | Unique merchant id | | merchant_key | string? | yes | Unique merchant key | | pin | string? | yes | Masked pin | | sdk | boolean? | yes | SDK | - | secret | string? | yes | Masked payment gateway api secret | + | secret | string | no | Masked payment gateway api secret | | user_id | string? | yes | Registered User id | | verify_api | string? | yes | Payment gateway verify payment api endpoint | @@ -5115,17 +4582,6 @@ OTP for Wallet Linking sent | wallet | string? | yes | | ---- - -#### [BeneficiaryRefundOptions](#BeneficiaryRefundOptions) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | bank | [OrderBeneficiaryDetails](#OrderBeneficiaryDetails)? | yes | List of all add bank beneficiary details. | - | upi | [UpiBeneficiaryDetails](#UpiBeneficiaryDetails)? | yes | List of all add UPI beneficiary details. | - | wallet | [WalletBeneficiaryDetails](#WalletBeneficiaryDetails)? | yes | List of all add Wallet beneficiary details. | - - --- #### [BusinessDetails](#BusinessDetails) @@ -5459,16 +4915,6 @@ OTP for Wallet Linking sent | card_id | string | no | Card token of payment gateway. | ---- - -#### [DeleteRefundAccountResponse](#DeleteRefundAccountResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | message | string | no | Message | - | success | boolean | no | Success/Failure of the deleted beneficiary | - - --- #### [DeviceDetails](#DeviceDetails) @@ -5672,16 +5118,6 @@ OTP for Wallet Linking sent | success | boolean | no | Response is successful or not | ---- - -#### [OfflineRefundOptions](#OfflineRefundOptions) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | items | [RefundOptionsDetails](#RefundOptionsDetails) | no | List of all refund options. | - | payment_modes | [string] | no | List of all offline payment options. MOP Code value | - - --- #### [OnboardSummary](#OnboardSummary) @@ -5734,17 +5170,6 @@ OTP for Wallet Linking sent | show_beneficiary_details | boolean? | yes | Show beneficiary details or not. | ---- - -#### [OrderBeneficiaryResponseSchemaV2](#OrderBeneficiaryResponseSchemaV2) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | data | [BeneficiaryRefundOptions](#BeneficiaryRefundOptions) | no | Beneficiary Data for Bank account, UPI and Wallets. | - | limit | string | no | Max Limit for adding bank account, UPI and wallet | - | show_beneficiary_details | boolean | no | Show Beneficiary details on UI or not. | - - --- #### [OutstandingOrderDetailsResponse](#OutstandingOrderDetailsResponse) @@ -5769,6 +5194,17 @@ OTP for Wallet Linking sent | success | boolean | no | Response is successful or not. | +--- + +#### [PaymentDefaultSelection](#PaymentDefaultSelection) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | identifier | string? | yes | Identifier for Payment Mode | + | mode | string? | yes | Default Selection Payment Mode | + | skip | boolean? | yes | Decide if the default payment mode will skip the payment options page altogether or just be preferred on the Frontend | + + --- #### [PaymentFlow](#PaymentFlow) @@ -5929,8 +5365,9 @@ OTP for Wallet Linking sent | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | + | payment_default_selection | [PaymentDefaultSelection](#PaymentDefaultSelection)? | yes | | | payment_flows | [PaymentFlow](#PaymentFlow) | no | | - | payment_option | [[RootPaymentMode](#RootPaymentMode)] | no | Payment options | + | payment_option | [RootPaymentMode](#RootPaymentMode) | no | | --- @@ -5987,7 +5424,7 @@ OTP for Wallet Linking sent | order_id | string? | yes | Merchant order id | | payment_confirm_url | string? | yes | Payment confirm url for aggregator | | status_code | number | no | HTTP status code | - | success | boolean? | yes | Successful or failure | + | success | boolean | no | Successful or failure | --- @@ -6074,38 +5511,6 @@ OTP for Wallet Linking sent | success | boolean | no | Success or failure flag. | ---- - -#### [RefundOptionResponse](#RefundOptionResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | offline_refund_options | [OfflineRefundOptions](#OfflineRefundOptions) | no | Available offline refund options data | - | refund_options | [RefundOptions](#RefundOptions) | no | Available refund options data | - | success | boolean | no | Success/Failure Of response | - - ---- - -#### [RefundOptions](#RefundOptions) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | items | [RefundOptionsDetails](#RefundOptionsDetails) | no | List of all refund options. | - - ---- - -#### [RefundOptionsDetails](#RefundOptionsDetails) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | display_name | string | no | refund option display name | - | id | number | no | Refund ID. It will be unique identifier | - | is_active | boolean? | yes | Refund option is active or not | - | name | string | no | refund option name | - - --- #### [renderHTMLRequest](#renderHTMLRequest) @@ -6195,18 +5600,6 @@ OTP for Wallet Linking sent | success | boolean | no | Successful or not. | ---- - -#### [SelectedRefundOptionResponse](#SelectedRefundOptionResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | message | string | no | message | - | shipment_id | string | no | Shipment ID | - | success | boolean | no | Successful or not. | - | transfer_mode | string | no | selected transfer mode for given shipment | - - --- #### [SetDefaultBeneficiaryRequest](#SetDefaultBeneficiaryRequest) @@ -6215,7 +5608,6 @@ OTP for Wallet Linking sent | ---------- | ---- | -------- | ----------- | | beneficiary_id | string | no | Beneficiary Hash Id of the beneficiary added | | order_id | string | no | Merchant Order Id | - | shipment_id | string? | yes | Shipment Id from respective merchant order ID | --- @@ -6228,41 +5620,6 @@ OTP for Wallet Linking sent | success | boolean? | yes | Response is successful or not | ---- - -#### [ShipmentRefundDetail](#ShipmentRefundDetail) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | beneficiary_id | string | no | Beneficiary ID | - | order_id | string | no | Order ID | - | shipment_id | string | no | Shipment ID | - | transfer_mode | string | no | TransferMode | - - ---- - -#### [ShipmentRefundRequest](#ShipmentRefundRequest) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | beneficiary_id | string? | yes | Beneficiary Hash Id of the beneficiary added | - | order_id | string | no | Merchant Order Id | - | shipment_id | string | no | Shipment Id of the respective Merchant Order Id | - | transfer_mode | string | no | Transfer Mode of the Beneficiary to be added | - - ---- - -#### [ShipmentRefundResponse](#ShipmentRefundResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | data | [ShipmentRefundDetail](#ShipmentRefundDetail) | no | Selected Shipment refund option details. | - | message | string | no | message | - | success | boolean | no | Successful or not. | - - --- #### [SplitObject](#SplitObject) @@ -6325,30 +5682,6 @@ OTP for Wallet Linking sent | success | boolean? | yes | Response is successful or not | ---- - -#### [UpiBeneficiaryDetails](#UpiBeneficiaryDetails) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | address | string | no | Address of User | - | beneficiary_id | string | no | Benenficiary Id | - | comment | string? | yes | Remarks | - | created_on | string | no | Creation Date of Beneficiary | - | delights_user_name | string? | yes | User Id Who filled the Beneficiary | - | display_name | string | no | Display Name Of Account | - | email | string | no | EMail of User | - | id | number | no | | - | is_active | boolean | no | Boolean Flag whether Beneficiary set or not | - | mobile | string? | yes | Mobile no of User | - | modified_on | string | no | MOdification Date of Beneficiary | - | subtitle | string | no | SHort Title Of Account | - | title | string | no | Title Of Account | - | transfer_mode | string | no | Transfer Mode Of Account | - | vpa | string? | yes | Branch Name Of Account | - | vpa_address | string | no | Bank Name Of Account | - - --- #### [UserPersonalInfoInDetails](#UserPersonalInfoInDetails) @@ -6412,34 +5745,13 @@ OTP for Wallet Linking sent | upi_vpa | string | no | UPI ID | ---- - -#### [ValidateValidateAddressRequest](#ValidateValidateAddressRequest) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | aggregator | string? | yes | Aggregator Name | - | ifsc_code | string? | yes | IFSC Code | - | upi_vpa | string? | yes | VPA Address | - - ---- - -#### [ValidateValidateAddressResponse](#ValidateValidateAddressResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | ifsc | string? | yes | IFSC details response data | - | success | boolean | no | Successful or not. | - | upi | [VPADetails](#VPADetails)? | yes | UPI validation details. | - - --- #### [ValidateVPARequest](#ValidateVPARequest) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | + | aggregator | string? | yes | aggregator slug | | upi_vpa | string | no | UPI ID | @@ -6453,42 +5765,6 @@ OTP for Wallet Linking sent | success | boolean | no | Response is successful or not. | ---- - -#### [VPADetails](#VPADetails) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | customer_name | string | no | VPA Customer Name | - | is_valid | boolean | no | Is VPA valid or not | - | status | string | no | VPA validation message | - | upi_vpa | string | no | VPA address | - - ---- - -#### [WalletBeneficiaryDetails](#WalletBeneficiaryDetails) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | address | string | no | Address of User | - | beneficiary_id | string | no | Benenficiary Id | - | comment | string? | yes | Remarks | - | created_on | string | no | Creation Date of Beneficiary | - | delights_user_name | string? | yes | User Id Who filled the Beneficiary | - | display_name | string | no | Display Name Of Account | - | email | string | no | EMail of User | - | id | number | no | | - | is_active | boolean | no | Boolean Flag whether Beneficiary set or not | - | mobile | string? | yes | MObile no of User | - | modified_on | string | no | MOdification Date of Beneficiary | - | subtitle | string | no | SHort Title Of Account | - | title | string | no | Title Of Account | - | transfer_mode | string | no | Transfer Mode Of Account | - | wallet | string? | yes | Branch Name Of Account | - | wallet_address | string | no | Bank Name Of Account | - - --- #### [WalletDelinkRequestSchema](#WalletDelinkRequestSchema) diff --git a/documentation/application/USER.md b/documentation/application/USER.md index d31d870a8..57291d723 100644 --- a/documentation/application/USER.md +++ b/documentation/application/USER.md @@ -2471,31 +2471,6 @@ Use this API to reset a password using the link sent on mobile. -[ResetPasswordSuccess](#ResetPasswordSuccess) - -Success. Check the example shown below or refer `ResetPasswordSuccess` for more details. - - - - -
-  Example: - -```json -{ - "status": "sent" -} -``` -
- - - - - - - - - --- @@ -3899,10 +3874,10 @@ Success. Returns a JSON object as shown below. Refer `VerifyOtpSuccess` for more | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | | android_hash | string? | yes | | - | ci | boolean? | yes | set to true if you want to encrypt the OTP. | | country_code | string? | yes | | | dob | string? | yes | | | email | string? | yes | | + | encrypt_otp | boolean? | yes | set to true if you want to encrypt the OTP. | | first_name | string? | yes | | | gender | string? | yes | | | last_name | string? | yes | | @@ -4371,8 +4346,8 @@ Success. Returns a JSON object as shown below. Refer `VerifyOtpSuccess` for more | ---------- | ---- | -------- | ----------- | | action | string? | yes | | | android_hash | string? | yes | | - | ci | boolean? | yes | set to true if you want to encrypt the OTP. | | country_code | string? | yes | | + | encrypt_otp | boolean? | yes | set to true if you want to encrypt the OTP. | | force | string? | yes | | | mobile | string? | yes | | | token | string? | yes | | @@ -4394,8 +4369,8 @@ Success. Returns a JSON object as shown below. Refer `VerifyOtpSuccess` for more | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | | android_hash | string? | yes | | - | ci | boolean? | yes | set to true if you want to encrypt the OTP. | | country_code | string? | yes | | + | encrypt_otp | boolean? | yes | set to true if you want to encrypt the OTP. | | mobile | string? | yes | | diff --git a/documentation/partner/LEAD.md b/documentation/partner/LEAD.md index 7e00f28f2..a66903cb5 100644 --- a/documentation/partner/LEAD.md +++ b/documentation/partner/LEAD.md @@ -719,14 +719,14 @@ Success { "type": "email", "title": "dfdafdsa", - "value": "test@gmail.com", + "value": "asdfad@kdfkd.coj", "description": "asdfadsf", "enabled": true }, { "type": "email", "title": "testanu", - "value": "testing@gmail.com", + "value": "anushkakamat@gofynd.com", "description": "tesr", "enabled": true } @@ -1334,6 +1334,7 @@ Success "key": "high" } ], + "assignees": [], "categories": [ { "form": { @@ -1603,6 +1604,7 @@ Success "key": "high" } ], + "assignees": [], "categories": [ { "form": { @@ -2008,7 +2010,7 @@ Success | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | assignees | [string]? | yes | List of support staff availble for tickets assignment | + | assignees | [string] | no | List of support staff availble for tickets assignment | | categories | [[TicketCategory](#TicketCategory)]? | yes | List of possible categories for tickets | | priorities | [[Priority](#Priority)] | no | List of possible priorities for tickets | | statuses | [[Status](#Status)] | no | List of possible statuses for tickets | @@ -2157,6 +2159,7 @@ Success | enabled | boolean? | yes | | | title | string? | yes | | | type | string? | yes | | + | value | string? | yes | | --- @@ -2206,7 +2209,7 @@ Success | feedback_form | [FeedbackForm](#FeedbackForm)? | yes | | | group_id | number? | yes | Group id of category releted data | | key | string | no | Category key value identifier | - | sub_categories | [[TicketCategory](#TicketCategory)]? | yes | | + | sub_categories | [TicketCategory](#TicketCategory)? | yes | | --- diff --git a/documentation/partner/WEBHOOK.md b/documentation/partner/WEBHOOK.md index 9f5685cbe..9ddb79482 100644 --- a/documentation/partner/WEBHOOK.md +++ b/documentation/partner/WEBHOOK.md @@ -11,18 +11,14 @@ Webhook dispatcher with retry and one event to many subscriber vice versa Default * [cancelReportDownload](#cancelreportdownload) -* [createKafkaConfiguration](#createkafkaconfiguration) * [fetchDeliverySummary](#fetchdeliverysummary) * [fetchDeliveryTs](#fetchdeliveryts) -* [fetchKafkaConfiguration](#fetchkafkaconfiguration) * [fetchReportFilters](#fetchreportfilters) * [fetchSubscribers](#fetchsubscribers) * [getDeliveryDetailInsights](#getdeliverydetailinsights) * [getHistoricalReports](#gethistoricalreports) * [getInvalidEventList](#getinvalideventlist) -* [updateKafkaConfiguration](#updatekafkaconfiguration) * [updateSubscriber](#updatesubscriber) -* [validateKafkaConfiguration](#validatekafkaconfiguration) @@ -103,78 +99,6 @@ Success ---- - - -### createKafkaConfiguration -Create Kafka configuration. - - - -```javascript -// Promise -const promise = partnerClient.webhook.createKafkaConfiguration({ organizationId : value, - extensionId : value, - body : value }); - -// Async/Await -const data = await partnerClient.webhook.createKafkaConfiguration({ organizationId : value, - extensionId : value, - body : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| organizationId | string | yes | organization_id | -| extensionId | string | yes | extension_id | -| body | [KafkaConfigRequest](#KafkaConfigRequest) | yes | Request body | - - -Create kafka configuration which will be used by sureshot to push event to corresponding kafka broker. - - -*Returned Response:* - - - - -[KafkaConfigResponse](#KafkaConfigResponse) - -It will create kafka configuration for that extension. - - - - -
-  Examples: - - -
-  success - -```json -{ - "value": { - "message": "Successfully created kafka configuration" - } -} -``` -
- -
- - - - - - - - - --- @@ -350,87 +274,6 @@ Success ---- - - -### fetchKafkaConfiguration -Fetch Kafka configuration. - - - -```javascript -// Promise -const promise = partnerClient.webhook.fetchKafkaConfiguration({ organizationId : value, - extensionId : value }); - -// Async/Await -const data = await partnerClient.webhook.fetchKafkaConfiguration({ organizationId : value, - extensionId : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| organizationId | string | yes | organization_id | -| extensionId | string | yes | extension_id | - - - -Fetch kafka configuration which will be used by sureshot to push event to corresponding kafka broker. - - -*Returned Response:* - - - - -[KafkaConfigResponse](#KafkaConfigResponse) - -It will give you subscriber config details. - - - - -
-  Examples: - - -
-  success - -```json -{ - "value": { - "name": "testConn", - "client_id": "test1-test", - "brokers": [ - "localhost:9092" - ], - "ssl_enabled": false, - "sasl_enabled": false, - "ssl_configuration": {}, - "sasl_configuration": {}, - "connection_timeout": 1000, - "authentication_timeout": 10000, - "request_timeout": 30000 - } -} -``` -
- -
- - - - - - - - - --- @@ -891,78 +734,6 @@ It will give list of all the invalid events that was failed to pushed to subscri ---- - - -### updateKafkaConfiguration -Update Kafka configuration. - - - -```javascript -// Promise -const promise = partnerClient.webhook.updateKafkaConfiguration({ organizationId : value, - extensionId : value, - body : value }); - -// Async/Await -const data = await partnerClient.webhook.updateKafkaConfiguration({ organizationId : value, - extensionId : value, - body : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| organizationId | string | yes | organization_id | -| extensionId | string | yes | extension_id | -| body | [KafkaConfigUpdateRequest](#KafkaConfigUpdateRequest) | yes | Request body | - - -Update kafka configuration which will be used by sureshot to push event to corresponding kafka broker. - - -*Returned Response:* - - - - -[KafkaConfigResponse](#KafkaConfigResponse) - -It will update kafka configuration for that extension. - - - - -
-  Examples: - - -
-  success - -```json -{ - "value": { - "message": "Successfully updated kafka configuration" - } -} -``` -
- -
- - - - - - - - - --- @@ -1038,78 +809,6 @@ It will give you subscriber config details of a selected subscribers. ---- - - -### validateKafkaConfiguration -Validate Kafka configuration. - - - -```javascript -// Promise -const promise = partnerClient.webhook.validateKafkaConfiguration({ organizationId : value, - extensionId : value, - body : value }); - -// Async/Await -const data = await partnerClient.webhook.validateKafkaConfiguration({ organizationId : value, - extensionId : value, - body : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| organizationId | string | yes | organization_id | -| extensionId | string | yes | extension_id | -| body | [KafkaConfigRequest](#KafkaConfigRequest) | yes | Request body | - - -Validate kafka configuration which will be used by sureshot to push event to corresponding kafka broker. - - -*Returned Response:* - - - - -[KafkaConfigValidateResponse](#KafkaConfigValidateResponse) - -It will update kafka configuration for that extension. - - - - -
-  Examples: - - -
-  success - -```json -{ - "value": { - "message": "Successfully validated kafka configuration" - } -} -``` -
- -
- - - - - - - - - --- @@ -1415,81 +1114,12 @@ It will update kafka configuration for that extension. | id | number? | yes | | | modified_by | string? | yes | | | name | string? | yes | | - | provider | string? | yes | | | status | string? | yes | | | type | string? | yes | | | updated_on | string? | yes | | | webhook_url | string? | yes | | ---- - -#### [KafkaConfigRequest](#KafkaConfigRequest) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | authentication_timeout | number? | yes | | - | brokers | [string]? | yes | | - | client_id | string? | yes | | - | connection_timeout | number? | yes | | - | name | string? | yes | | - | request_timeout | number? | yes | | - | sasl_configuration | string? | yes | | - | sasl_enabled | boolean? | yes | | - | ssl_configuration | string? | yes | | - | ssl_enabled | boolean? | yes | | - - ---- - -#### [KafkaConfigResponse](#KafkaConfigResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | association | string? | yes | | - | authentication_timeout | number? | yes | | - | brokers | [string]? | yes | | - | client_id | string? | yes | | - | connection_timeout | number? | yes | | - | created_on | string? | yes | | - | id | number? | yes | | - | name | string? | yes | | - | request_timeout | number? | yes | | - | sasl_configuration | string? | yes | | - | sasl_enabled | boolean? | yes | | - | ssl_configuration | string? | yes | | - | ssl_enabled | boolean? | yes | | - - ---- - -#### [KafkaConfigUpdateRequest](#KafkaConfigUpdateRequest) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | authentication_timeout | number? | yes | | - | brokers | [string]? | yes | | - | client_id | string? | yes | | - | connection_timeout | number? | yes | | - | id | number? | yes | | - | name | string? | yes | | - | request_timeout | number? | yes | | - | sasl_configuration | string? | yes | | - | sasl_enabled | boolean? | yes | | - | ssl_configuration | string? | yes | | - | ssl_enabled | boolean? | yes | | - - ---- - -#### [KafkaConfigValidateResponse](#KafkaConfigValidateResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | message | string? | yes | | - | status | boolean? | yes | | - - --- #### [Page](#Page) @@ -1525,7 +1155,6 @@ It will update kafka configuration for that extension. | event_id | number? | yes | | | id | number? | yes | | | subscriber_id | number? | yes | | - | topic | string? | yes | | --- diff --git a/documentation/platform/BILLING.md b/documentation/platform/BILLING.md index ebd7893db..ce061b47c 100644 --- a/documentation/platform/BILLING.md +++ b/documentation/platform/BILLING.md @@ -22,20 +22,12 @@ Default * [getFeatureLimitConfig](#getfeaturelimitconfig) * [getInvoiceById](#getinvoicebyid) * [getInvoices](#getinvoices) -* [getPaymentOptions](#getpaymentoptions) -* [getPaymentTransaction](#getpaymenttransaction) * [getSubscription](#getsubscription) * [getSubscriptionCharge](#getsubscriptioncharge) * [getentityDetail](#getentitydetail) -* [globalSettings](#globalsettings) -* [paymentOptions](#paymentoptions) * [planStatusUpdate](#planstatusupdate) * [subscripePlan](#subscripeplan) -* [subscriptionConfigs](#subscriptionconfigs) -* [subscriptionMethods](#subscriptionmethods) -* [subscriptionPlanChange](#subscriptionplanchange) * [upsertCustomerDetail](#upsertcustomerdetail) -* [verifyPayment](#verifypayment) @@ -1505,118 +1497,6 @@ Success ---- - - -### getPaymentOptions -API to get payment options - - - -```javascript -// Promise -const promise = platformClient.billing.getPaymentOptions({ transactionId : value }); - -// Async/Await -const data = await platformClient.billing.getPaymentOptions({ transactionId : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| transactionId | string | yes | ID of the payment transaction. | - - - -API to get payment options. - -*Returned Response:* - - - - -[GetPaymentOptions](#GetPaymentOptions) - -Success - - - - -
-  Example: - -```json - -``` -
- - - - - - - - - ---- - - -### getPaymentTransaction -API to get payment transaction details - - - -```javascript -// Promise -const promise = platformClient.billing.getPaymentTransaction({ transactionId : value }); - -// Async/Await -const data = await platformClient.billing.getPaymentTransaction({ transactionId : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| transactionId | string | yes | Payment Transaction unique id. | - - - -API to get payment transaction details. - -*Returned Response:* - - - - -[PaymentTransactionDetails](#PaymentTransactionDetails) - -Success - - - - -
-  Example: - -```json - -``` -
- - - - - - - - - --- @@ -1970,7 +1850,7 @@ Success "hash_identifier": "987abf78c61bfef585242bbbeaab1b59", "pdf_url": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/fyndnp/wrkr/addsale/company/13781/self/subscription/documents/invoices/original/U6ffgNlo_-PS-P-A00515-FY24-paid.pdf" }, - "mandate_amount": 630000, + "mandate_amount": "630000", "current_subscriptions": [ { "current_period": { @@ -2292,124 +2172,6 @@ Success ---- - - -### globalSettings -API to get global settings details - - - -```javascript -// Promise -const promise = platformClient.billing.globalSettings({ pageNo : value, - pageSize : value, - query : value }); - -// Async/Await -const data = await platformClient.billing.globalSettings({ pageNo : value, - pageSize : value, - query : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| pageNo | number | yes | number of pages needed | -| pageSize | number | yes | number of items to be there in page | -| query | Object | yes | field which will be used in db query | - - - -API to get global settings details. - -*Returned Response:* - - - - -[GlobalSettings](#GlobalSettings) - -Success - - - - -
-  Example: - -```json - -``` -
- - - - - - - - - ---- - - -### paymentOptions -API to get payment details of requested payment options - - - -```javascript -// Promise -const promise = platformClient.billing.paymentOptions({ code : value }); - -// Async/Await -const data = await platformClient.billing.paymentOptions({ code : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| code | string | yes | Payment options unique code. | - - - -API to get payment details of requested payment options. - -*Returned Response:* - - - - -[PaymentOptions](#PaymentOptions) - -Success - - - - -
-  Example: - -```json - -``` -
- - - - - - - - - --- @@ -2743,32 +2505,36 @@ Success --- -### subscriptionConfigs -API to get subscription config details +### upsertCustomerDetail +Upsert subscription customer detail ```javascript // Promise -const promise = platformClient.billing.subscriptionConfigs(); +const promise = platformClient.billing.upsertCustomerDetail({ body : value }); // Async/Await -const data = await platformClient.billing.subscriptionConfigs(); +const data = await platformClient.billing.upsertCustomerDetail({ body : value }); ``` +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| body | [SubscriptionCustomerCreate](#SubscriptionCustomerCreate) | yes | Request body | + -API to get subscription config details. +Upsert subscription customer detail. *Returned Response:* -[ConfigRes](#ConfigRes) +[SubscriptionCustomer](#SubscriptionCustomer) Success @@ -2776,13 +2542,44 @@ Success
-  Example: +  Examples: -```json +
+  default + +```json +{ + "value": { + "phone": { + "phone_number": "1234567890", + "phone_country_code": "91" + }, + "billing_address": { + "country": "India", + "state": "Maharastra", + "city": "Mumbai", + "line1": "test1", + "line2": "test2", + "postal_code": "400059" + }, + "_id": "5ee773e1351e5e84289ed9cf", + "unique_id": "1", + "type": "company", + "name": "test retail", + "email": "test@gmail.com", + "created_at": "2020-06-15T13:13:05.267Z", + "modified_at": "2021-02-04T00:58:45.356Z", + "data": { + "pg_user_exists": true, + "id": 2 + } + } +} ```
+
@@ -2791,320 +2588,25 @@ Success ---- +--- -### subscriptionMethods -API to get subscription methods -```javascript -// Promise -const promise = platformClient.billing.subscriptionMethods({ uniqueExternalId : value }); +### Schemas -// Async/Await -const data = await platformClient.billing.subscriptionMethods({ uniqueExternalId : value }); -``` +#### [BadRequest](#BadRequest) + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | message | string? | yes | Failure message. | + +--- - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| uniqueExternalId | Object | yes | unique id for external company | - - - -API to get subscription methods. - -*Returned Response:* - - - - -[SubscriptionMethods](#SubscriptionMethods) - -Success - - - - -
-  Example: - -```json - -``` -
- - - - - - - - - ---- - - -### subscriptionPlanChange -API to get plan change details of subscription - - - -```javascript -// Promise -const promise = platformClient.billing.subscriptionPlanChange({ productSuite : value, - uniqueId : value, - platform : value }); - -// Async/Await -const data = await platformClient.billing.subscriptionPlanChange({ productSuite : value, - uniqueId : value, - platform : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| productSuite | string | no | | -| uniqueId | number | no | | -| platform | string | no | | - - - -API to get plan change details of subscription. - -*Returned Response:* - - - - -[PlanChangeDetails](#PlanChangeDetails) - -Success - - - - -
-  Example: - -```json - -``` -
- - - - - - - - - ---- - - -### upsertCustomerDetail -Upsert subscription customer detail - - - -```javascript -// Promise -const promise = platformClient.billing.upsertCustomerDetail({ body : value }); - -// Async/Await -const data = await platformClient.billing.upsertCustomerDetail({ body : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| body | [SubscriptionCustomerCreate](#SubscriptionCustomerCreate) | yes | Request body | - - -Upsert subscription customer detail. - -*Returned Response:* - - - - -[SubscriptionCustomer](#SubscriptionCustomer) - -Success - - - - -
-  Examples: - - -
-  default - -```json -{ - "value": { - "phone": { - "phone_number": "1234567890", - "phone_country_code": "91" - }, - "billing_address": { - "country": "India", - "state": "Maharastra", - "city": "Mumbai", - "line1": "test1", - "line2": "test2", - "postal_code": "400059" - }, - "_id": "5ee773e1351e5e84289ed9cf", - "unique_id": "1", - "type": "company", - "name": "test retail", - "email": "test@gmail.com", - "created_at": "2020-06-15T13:13:05.267Z", - "modified_at": "2021-02-04T00:58:45.356Z", - "data": { - "pg_user_exists": true, - "id": 2 - } - } -} -``` -
- -
- - - - - - - - - ---- - - -### verifyPayment -API to verify subscription payment - - - -```javascript -// Promise -const promise = platformClient.billing.verifyPayment({ body : value }); - -// Async/Await -const data = await platformClient.billing.verifyPayment({ body : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| body | [VerifyPaymentReq](#VerifyPaymentReq) | yes | Request body | - - -API to verify subscription payment. - -*Returned Response:* - - - - -[VerifyPaymentRes](#VerifyPaymentRes) - -Success - - - - -
-  Example: - -```json - -``` -
- - - - - - - - - ---- - - - - -### Schemas - - -#### [Author](#Author) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | modified_by_details | string? | yes | | - - ---- - -#### [BadRequest](#BadRequest) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | message | string? | yes | Failure message. | - - ---- - -#### [BillingAddress](#BillingAddress) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | city | string? | yes | | - | country | string? | yes | | - | country_code | string? | yes | | - | line1 | string? | yes | | - | line2 | string? | yes | | - | postal_code | string? | yes | | - | state | string? | yes | | - - ---- - -#### [BusinessCountryInfo](#BusinessCountryInfo) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | country | string? | yes | | - | country_code | string? | yes | | - | currency | [Currency](#Currency)? | yes | | - | timezone | string? | yes | | - - ---- - -#### [CancelSubscriptionReq](#CancelSubscriptionReq) +#### [CancelSubscriptionReq](#CancelSubscriptionReq) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | @@ -3151,26 +2653,6 @@ Success | is_valid | boolean? | yes | | ---- - -#### [ConfigPublicKey](#ConfigPublicKey) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | public_key | string? | yes | | - - ---- - -#### [ConfigRes](#ConfigRes) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | aggregator | string? | yes | | - | config | [ConfigPublicKey](#ConfigPublicKey)? | yes | | - | success | boolean? | yes | | - - --- #### [CreateOneTimeCharge](#CreateOneTimeCharge) @@ -3216,38 +2698,6 @@ Success | subscription | [EntitySubscription](#EntitySubscription)? | yes | | ---- - -#### [CreditTransaction](#CreditTransaction) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | _id | string? | yes | | - | amount | number? | yes | | - | author | [Author](#Author)? | yes | | - | created_at | string? | yes | | - | currency | string? | yes | | - | description | string? | yes | | - | ending_balance | [EndingBalance](#EndingBalance)? | yes | | - | entity | string? | yes | | - | is_test | boolean? | yes | | - | modified_at | string? | yes | | - | payment | [PaymentData](#PaymentData)? | yes | | - | subscriber_id | string? | yes | | - | type | string? | yes | | - - ---- - -#### [Currency](#Currency) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | code | string? | yes | | - | name | string? | yes | | - | symbol | string? | yes | | - - --- #### [CurrentPeriod](#CurrentPeriod) @@ -3258,15 +2708,6 @@ Success | start_date | string? | yes | | ---- - -#### [DefaultMerchants](#DefaultMerchants) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | stripe | string? | yes | | - - --- #### [Details](#Details) @@ -3277,25 +2718,6 @@ Success | fee_components | [[FeeComponents](#FeeComponents)]? | yes | | ---- - -#### [Documents](#Documents) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | pan | string? | yes | | - - ---- - -#### [EndingBalance](#EndingBalance) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | amount | number? | yes | | - | old_entry_ref | string? | yes | | - - --- #### [EntityChargePrice](#EntityChargePrice) @@ -3374,47 +2796,6 @@ Success | settlement_type | string? | yes | | ---- - -#### [GetPaymentOptions](#GetPaymentOptions) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | payment_options | [[PaymentItems](#PaymentItems)]? | yes | | - - ---- - -#### [GlobalSettings](#GlobalSettings) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | data | [GlobalSettingsData](#GlobalSettingsData)? | yes | | - | status | string? | yes | | - - ---- - -#### [GlobalSettingsData](#GlobalSettingsData) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | _id | string? | yes | | - | created_at | string? | yes | | - | freeze_panel | boolean? | yes | | - | modified_at | string? | yes | | - | payment | [GlobalSettingsPayment](#GlobalSettingsPayment)? | yes | | - - ---- - -#### [GlobalSettingsPayment](#GlobalSettingsPayment) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | default_merchants | [DefaultMerchants](#DefaultMerchants)? | yes | | - - --- #### [InternalServerError](#InternalServerError) @@ -3703,64 +3084,6 @@ Success | term | string? | yes | | ---- - -#### [PaymentData](#PaymentData) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | aggregator | string? | yes | | - | aggregator_order_id | string? | yes | | - | transaction_id | string? | yes | | - - ---- - -#### [PaymentItems](#PaymentItems) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | aggregator | string? | yes | | - | code | string? | yes | | - | name | string? | yes | | - - ---- - -#### [PaymentOptions](#PaymentOptions) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | __v | number? | yes | | - | _id | string? | yes | | - | aggregator | string? | yes | | - | aggregator_id | string? | yes | | - | created_at | string? | yes | | - | description | string? | yes | | - | logo | string? | yes | | - | modified_at | string? | yes | | - | name | string? | yes | | - - ---- - -#### [PaymentTransactionDetails](#PaymentTransactionDetails) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | _id | string? | yes | | - | aggregator | string? | yes | | - | amount | number? | yes | | - | collection_type | string? | yes | | - | created_at | string? | yes | | - | currency | string? | yes | | - | current_status | string? | yes | | - | entity_type | string? | yes | | - | meta | [Meta](#Meta)? | yes | | - | modified_at | string? | yes | | - | subscriber_id | string? | yes | | - - --- #### [Phone](#Phone) @@ -3798,30 +3121,6 @@ Success | type | string? | yes | | ---- - -#### [PlanChangeData](#PlanChangeData) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | credit_note_amount | number? | yes | | - | gross_total | number? | yes | | - | gst | number? | yes | | - | gst_amount | number? | yes | | - | taxable_amount | number? | yes | | - | total | number? | yes | | - - ---- - -#### [PlanChangeDetails](#PlanChangeDetails) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | data | [PlanChangeData](#PlanChangeData)? | yes | | - | success | boolean? | yes | | - - --- #### [PlanRecurring](#PlanRecurring) @@ -3864,40 +3163,6 @@ Success | transaction_id | string? | yes | | ---- - -#### [Subscriber](#Subscriber) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | _id | string? | yes | | - | billing_address | [BillingAddress](#BillingAddress)? | yes | | - | business_country_info | [BusinessCountryInfo](#BusinessCountryInfo)? | yes | | - | comms | boolean? | yes | | - | consent | boolean? | yes | | - | created_at | string? | yes | | - | credit_balance | number? | yes | | - | data | [SubscriberData](#SubscriberData)? | yes | | - | documents | [Documents](#Documents)? | yes | | - | email | string? | yes | | - | modified_at | string? | yes | | - | name | string? | yes | | - | phone | string? | yes | | - | type | string? | yes | | - | unique_id | string? | yes | | - - ---- - -#### [SubscriberData](#SubscriberData) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | id | string? | yes | | - | pg_customer_id | string? | yes | | - | pg_user_exists | boolean? | yes | | - - --- #### [Subscription](#Subscription) @@ -4118,16 +3383,6 @@ Success | limit | number? | yes | | ---- - -#### [SubscriptionMethods](#SubscriptionMethods) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | data | [string]? | yes | | - | success | boolean? | yes | | - - --- #### [SubscriptionPauseCollection](#SubscriptionPauseCollection) @@ -4147,7 +3402,7 @@ Success | current_subscriptions | [[Subscription](#Subscription)]? | yes | | | is_enabled | boolean? | yes | | | latest_invoice | [InvoicesData](#InvoicesData)? | yes | | - | mandate_amount | number? | yes | | + | mandate_amount | string? | yes | | | next_plan | [Plan](#Plan)? | yes | | | subscription | [Subscription](#Subscription)? | yes | | @@ -4187,40 +3442,6 @@ Success --- -#### [VerifyPaymentData](#VerifyPaymentData) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | credit_transaction | [CreditTransaction](#CreditTransaction)? | yes | | - | subscriber | [Subscriber](#Subscriber)? | yes | | - | success | boolean? | yes | | - - ---- - -#### [VerifyPaymentReq](#VerifyPaymentReq) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | provider_type | string? | yes | | - | razorpay_order_id | string? | yes | | - | razorpay_payment_id | string? | yes | | - | razorpay_signature | string? | yes | | - | status_code | number? | yes | | - - ---- - -#### [VerifyPaymentRes](#VerifyPaymentRes) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | data | [VerifyPaymentData](#VerifyPaymentData)? | yes | | - | status | string? | yes | | - - ---- - diff --git a/documentation/platform/CART.md b/documentation/platform/CART.md index 36fd76d14..31d36b518 100644 --- a/documentation/platform/CART.md +++ b/documentation/platform/CART.md @@ -20,8 +20,8 @@ Default * [createCoupon](#createcoupon) * [createPromotion](#createpromotion) * [deleteCart](#deletecart) -* [deleteCartMetaConfig](#deletecartmetaconfig) * [fetchAndvalidateCartItems](#fetchandvalidatecartitems) +* [fetchCartMetaConfig](#fetchcartmetaconfig) * [getAbandonedCart](#getabandonedcart) * [getAbandonedCartDetails](#getabandonedcartdetails) * [getAddressById](#getaddressbyid) @@ -30,21 +30,16 @@ Default * [getAvailableDeliveryModes](#getavailabledeliverymodes) * [getCart](#getcart) * [getCartList](#getcartlist) -* [getCartMetaConfig](#getcartmetaconfig) -* [getCartMetaConfigs](#getcartmetaconfigs) * [getCartShareLink](#getcartsharelink) * [getCartSharedItems](#getcartshareditems) * [getCouponById](#getcouponbyid) * [getCouponCodeExists](#getcouponcodeexists) * [getCouponOptionValues](#getcouponoptionvalues) -* [getCouponTags](#getcoupontags) * [getCoupons](#getcoupons) * [getItemCount](#getitemcount) -* [getPriceAdjustments](#getpriceadjustments) * [getPromosCouponConfig](#getpromoscouponconfig) * [getPromotionById](#getpromotionbyid) * [getPromotionCodeExists](#getpromotioncodeexists) -* [getPromotionTags](#getpromotiontags) * [getPromotions](#getpromotions) * [getShipments](#getshipments) * [getStoreAddressByUid](#getstoreaddressbyuid) @@ -59,7 +54,6 @@ Default * [selectAddress](#selectaddress) * [selectPaymentMode](#selectpaymentmode) * [selectPaymentModeV2](#selectpaymentmodev2) -* [upateCartMetaActiveStatus](#upatecartmetaactivestatus) * [updateAddress](#updateaddress) * [updateCart](#updatecart) * [updateCartMeta](#updatecartmeta) @@ -933,9 +927,7 @@ Price Adjustment Created successfully "cancellation_allowed": false, "return_allowed": false } - }, - "remove_articles": false, - "auto_remove": true + } } } ``` @@ -2262,7 +2254,7 @@ Create new cart meta configuration -[CartMetaConfigDetailResponse](#CartMetaConfigDetailResponse) +[CartMetaConfigAdd](#CartMetaConfigAdd) Cart Meta Config Created successfully @@ -2274,7 +2266,7 @@ Cart Meta Config Created successfully ```json { - "id": "645ba594d414eb0669e6ee14", + "_id": "645ba594d414eb0669e6ee14", "app_id": "60792ded7826bd09330ed90d", "company_id": 884, "bulk_coupons": false, @@ -2288,31 +2280,7 @@ Cart Meta Config Created successfully "min_cart_value": 0, "revenue_engine_coupon": false, "gift_pricing": 50, - "gift_display_text": "", - "is_universal": false, - "is_active": true, - "order_placing": { - "enabled": true, - "message": "" - }, - "name": "Universal", - "slug": "universal", - "article_tags": [ - "sale", - "offer" - ], - "allow_coupon_with_rewards": false, - "gst_input": true, - "staff_selection": true, - "placing_for_customer": false, - "pan_card": { - "enabled": false, - "cod_threshold_amount": 0, - "online_threshold_amount": 0 - }, - "created_on": "2023-12-21T12:17:12", - "updated_on": "2023-12-21T12:17:12", - "last_modified_by": "5b84e9ffb02426353608c380" + "gift_display_text": "" } ``` @@ -2563,13 +2531,11 @@ Delete cart once user made successful checkout ```javascript // Promise const promise = platformClient.application("").cart.deleteCart({ body : value, - id : value, - cartType : value }); + id : value }); // Async/Await const data = await platformClient.application("").cart.deleteCart({ body : value, - id : value, - cartType : value }); + id : value }); ``` @@ -2578,8 +2544,7 @@ const data = await platformClient.application("").cart.deleteCar | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| id | string | no | The unique identifier of the cart. | -| cartType | string | no | The type of cart | +| id | string | no | The unique identifier of the cart. | | body | [DeleteCartRequest](#DeleteCartRequest) | yes | Request body | @@ -2616,65 +2581,6 @@ Success. Returns whether the cart has been deleted or not. ---- - - -### deleteCartMetaConfig -Delete cart meta configuration - - - -```javascript -// Promise -const promise = platformClient.application("").cart.deleteCartMetaConfig({ cartMetaId : value }); - -// Async/Await -const data = await platformClient.application("").cart.deleteCartMetaConfig({ cartMetaId : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| cartMetaId | string | yes | CartMeta mongo _id for fetching single cart meta data for editing | - - - -Delete cart meta configuration - -*Returned Response:* - - - - -[SuccessMessage](#SuccessMessage) - -Cart Meta Config deleted successfully - - - - -
-  Example: - -```json -{ - "success": true, - "message": "" -} -``` -
- - - - - - - - - --- @@ -3016,6 +2922,73 @@ Cart details with breakup +--- + + +### fetchCartMetaConfig +Fetch cart meta configuration + + + +```javascript +// Promise +const promise = platformClient.application("").cart.fetchCartMetaConfig(); + +// Async/Await +const data = await platformClient.application("").cart.fetchCartMetaConfig(); +``` + + + + + + +Fetch cart meta configuration + +*Returned Response:* + + + + +[CartMetaConfigAdd](#CartMetaConfigAdd) + +Cart Meta Config Fetched successfully + + + + +
+  Example: + +```json +{ + "_id": "645ba594d414eb0669e6ee14", + "app_id": "60792ded7826bd09330ed90d", + "company_id": 884, + "bulk_coupons": false, + "delivery_charges": { + "charges": [], + "enabled": false + }, + "empty_cart": false, + "enabled": true, + "max_cart_items": 50, + "min_cart_value": 0, + "revenue_engine_coupon": false, + "gift_pricing": 50, + "gift_display_text": "" +} +``` +
+ + + + + + + + + --- @@ -3927,8 +3900,7 @@ const promise = platformClient.application("").cart.getCart({ i i : value, b : value, assignCardId : value, - buyNow : value, - cartType : value }); + buyNow : value }); // Async/Await const data = await platformClient.application("").cart.getCart({ id : value, @@ -3936,8 +3908,7 @@ const data = await platformClient.application("").cart.getCart({ i : value, b : value, assignCardId : value, - buyNow : value, - cartType : value }); + buyNow : value }); ``` @@ -3946,13 +3917,12 @@ const data = await platformClient.application("").cart.getCart({ | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| id | string | no | The unique identifier of the cart | -| userId | string | no | Option to fetch cart for the provided user_id. | -| i | boolean | no | This is a boolean value. Select `true` to retrieve all the items added in the cart. | -| b | boolean | no | This is a boolean value. Select `true` to retrieve the price breakup of cart items. | -| assignCardId | number | no | Token of user's debit or credit card | -| buyNow | boolean | no | This is a boolen value. Select `true` to set/initialize buy now cart | -| cartType | string | no | The type of cart | +| id | string | no | | +| userId | string | no | | +| i | boolean | no | | +| b | boolean | no | | +| assignCardId | number | no | | +| buyNow | boolean | no | | @@ -3996,7 +3966,6 @@ Success. Returns a Cart object. Check the example shown below or refer `CartDeta "name": "Gandhi Nagar" }, "quantity": 108, - "product_name": "", "price": { "base": { "marked": 2999, @@ -4077,8 +4046,7 @@ Success. Returns a Cart object. Check the example shown below or refer `CartDeta } }, "message": "", - "quantity": 1, - "seller_count": 1 + "quantity": 1 } ], "buy_now": false, @@ -4252,171 +4220,6 @@ Platform user cart list ---- - - -### getCartMetaConfig -Get cart meta configuration by id - - - -```javascript -// Promise -const promise = platformClient.application("").cart.getCartMetaConfig({ cartMetaId : value }); - -// Async/Await -const data = await platformClient.application("").cart.getCartMetaConfig({ cartMetaId : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| cartMetaId | string | yes | CartMeta mongo _id for fetching single cart meta data for editing | - - - -Get cart meta configuration by id - -*Returned Response:* - - - - -[CartMetaConfigDetailResponse](#CartMetaConfigDetailResponse) - -Cart Meta Config Fetched successfully - - - - -
-  Example: - -```json -{ - "success": true, - "data": { - "id": "645ba594d414eb0669e6ee14", - "app_id": "60792ded7826bd09330ed90d", - "company_id": 884, - "bulk_coupons": false, - "delivery_charges": { - "charges": [], - "enabled": false - }, - "international_delivery_charges": { - "charges": [], - "enabled": false - }, - "empty_cart": false, - "enabled": true, - "max_cart_items": 50, - "min_cart_value": 0, - "revenue_engine_coupon": false, - "gift_pricing": 50, - "gift_display_text": "", - "is_universal": false, - "is_active": true, - "order_placing": { - "enabled": true, - "message": "" - }, - "name": "Universal", - "slug": "universal", - "article_tags": [ - "sale", - "offer" - ], - "allow_coupon_with_rewards": false, - "gst_input": true, - "staff_selection": true, - "placing_for_customer": false, - "pan_card": { - "enabled": false, - "cod_threshold_amount": 0, - "online_threshold_amount": 0 - }, - "created_on": "2023-12-21T12:17:12", - "updated_on": "2023-12-21T12:17:12", - "last_modified_by": "5b84e9ffb02426353608c380" - } -} -``` -
- - - - - - - - - ---- - - -### getCartMetaConfigs -Get cart meta configuration - - - -```javascript -// Promise -const promise = platformClient.application("").cart.getCartMetaConfigs(); - -// Async/Await -const data = await platformClient.application("").cart.getCartMetaConfigs(); -``` - - - - - - -Get cart meta configuration - -*Returned Response:* - - - - -[CartMetaConfigListResponse](#CartMetaConfigListResponse) - -Cart Meta Configs fetched successfully - - - - -
-  Example: - -```json -{ - "success": true, - "data": [ - { - "id": "645ba594d414eb0669e6ee14", - "is_active": true, - "name": "Universal", - "slug": "universal", - "created_on": "2023-12-21T12:17:12" - } - ] -} -``` -
- - - - - - - - - --- @@ -5173,70 +4976,6 @@ Coupon options enums ---- - - -### getCouponTags -Get a list of all coupon tags associated with a application. - - - -```javascript -// Promise -const promise = platformClient.application("").cart.getCouponTags(); - -// Async/Await -const data = await platformClient.application("").cart.getCouponTags(); -``` - - - - - - -This API helps to get coupon tags data associated to a particular application. - -*Returned Response:* - - - - -[TagsViewResponse](#TagsViewResponse) - -Tag List. See example below for details - - - - -
-  Examples: - - -
-  Tags list for sent - -```json -{ - "value": { - "items": [ - "platform", - "custom" - ] - } -} -``` -
- -
- - - - - - - - - --- @@ -5386,13 +5125,11 @@ Count items in the customer's cart ```javascript // Promise const promise = platformClient.application("").cart.getItemCount({ id : value, - buyNow : value, - cartType : value }); + buyNow : value }); // Async/Await const data = await platformClient.application("").cart.getItemCount({ id : value, - buyNow : value, - cartType : value }); + buyNow : value }); ``` @@ -5402,8 +5139,7 @@ const data = await platformClient.application("").cart.getItemCo | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | | id | string | no | The unique identifier of the cart. | -| buyNow | boolean | no | Boolean value to get buy_now cart. | -| cartType | string | no | The type of cart | +| buyNow | boolean | no | | @@ -5425,98 +5161,8 @@ Success. Returns the total count of items in a user's cart.   Example: ```json -{ - "user_cart_items_count": 0 -} -``` - - - - - - - - - - ---- - - -### getPriceAdjustments -Get a list of all price adjustments associated with a cart - - - -```javascript -// Promise -const promise = platformClient.application("").cart.getPriceAdjustments({ cartId : value }); - -// Async/Await -const data = await platformClient.application("").cart.getPriceAdjustments({ cartId : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| cartId | string | yes | Cart Id | - - - -This API helps to get price adjustments data associated to a particular cart - -*Returned Response:* - - - - -[PriceAdjustmentResponse](#PriceAdjustmentResponse) - -Price Adjustments List. See example below for details - - - - -
-  Example: - -```json -{ - "success": true, - "data": { - "id": "cc8154592ccb42c88b481ce4c21ab602", - "cart_id": "fa45f5cbd3764a6297bfa79d6bedf71c", - "is_authenticated": true, - "article_ids": [ - { - "article_id": "f322167ce70f4dca8f8ac0efdc496abe", - "value": 100, - "code": "abs120", - "meta": {}, - "quantity": 2 - } - ], - "type": "discount", - "message": "Fynd Campaign 100 Rs off", - "value": 100, - "article_level_distribution": true, - "allow_refund": true, - "meta": {}, - "collection": { - "collected_by": "FYND", - "refund_by": "FYND" - }, - "restrictions": { - "post_order": { - "cancellation_allowed": false, - "return_allowed": false - } - }, - "remove_articles": false, - "auto_remove": true - } +{ + "user_cart_items_count": 0 } ```
@@ -5854,70 +5500,6 @@ Valid response with existing promotion code count ---- - - -### getPromotionTags -Get a list of all Promotion tags associated with a application. - - - -```javascript -// Promise -const promise = platformClient.application("").cart.getPromotionTags(); - -// Async/Await -const data = await platformClient.application("").cart.getPromotionTags(); -``` - - - - - - -This API helps to get Promotion tags data associated to a particular application. - -*Returned Response:* - - - - -[TagsViewResponse](#TagsViewResponse) - -Tag List. See example below for details - - - - -
-  Examples: - - -
-  Tags list for sent - -```json -{ - "value": { - "items": [ - "platform", - "custom" - ] - } -} -``` -
- -
- - - - - - - - - --- @@ -7278,16 +6860,14 @@ const promise = platformClient.application("").cart.platformAddI i : value, b : value, buyNow : value, - id : value, - cartType : value }); + id : value }); // Async/Await const data = await platformClient.application("").cart.platformAddItems({ body : value, i : value, b : value, buyNow : value, - id : value, - cartType : value }); + id : value }); ``` @@ -7296,11 +6876,10 @@ const data = await platformClient.application("").cart.platformA | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| i | boolean | no | This is a boolean value. Select `true` to retrieve all the items added in the cart. | -| b | boolean | no | This is a boolean value. Select `true` to retrieve the price breakup of cart items. | -| buyNow | boolean | no | This is a boolen value. Select `true` to set/initialize buy now cart | -| id | string | no | The unique identifier of the cart | -| cartType | string | no | The type of cart | +| i | boolean | no | | +| b | boolean | no | | +| buyNow | boolean | no | | +| id | string | no | | | body | [PlatformAddCartRequest](#PlatformAddCartRequest) | yes | Request body | @@ -7398,12 +6977,10 @@ Success. Returns a cart object as shown below. Refer `AddCartDetailResponse` for "parent_item_id": 7501190, "parent_item_size": "OS" }, - "seller_count": 1, "article": { "type": "article", "uid": "612_9_SE61201_19100302_10", "size": "10", - "product_name": "", "seller": { "uid": 612, "name": "SSR ENTERPRISE" @@ -7868,7 +7445,6 @@ Success. Returns a cart object as shown below. Refer `AddCartDetailResponse` for "identifier": "5mPyy88URXuh3Lo35uaTg" }, "discount": "67% OFF", - "seller_count": 1, "parent_item_identifiers": { "identifier": "ZASFF", "parent_item_id": 7501190, @@ -7887,7 +7463,6 @@ Success. Returns a cart object as shown below. Refer `AddCartDetailResponse` for "name": "Gandhi Nagar" }, "quantity": 108, - "product_name": "", "price": { "base": { "marked": 2999, @@ -8009,13 +7584,11 @@ Checkout all items in the cart ```javascript // Promise const promise = platformClient.application("").cart.platformCheckoutCart({ body : value, - id : value, - cartType : value }); + id : value }); // Async/Await const data = await platformClient.application("").cart.platformCheckoutCart({ body : value, - id : value, - cartType : value }); + id : value }); ``` @@ -8024,8 +7597,7 @@ const data = await platformClient.application("").cart.platformC | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| id | string | no | The unique identifier of the cart | -| cartType | string | no | The type of cart | +| id | string | no | | | body | [PlatformCartCheckoutDetailRequest](#PlatformCartCheckoutDetailRequest) | yes | Request body | @@ -8453,13 +8025,11 @@ Checkout all items in the cart ```javascript // Promise const promise = platformClient.application("").cart.platformCheckoutCartV2({ body : value, - id : value, - cartType : value }); + id : value }); // Async/Await const data = await platformClient.application("").cart.platformCheckoutCartV2({ body : value, - id : value, - cartType : value }); + id : value }); ``` @@ -8468,8 +8038,7 @@ const data = await platformClient.application("").cart.platformC | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| id | string | no | The unique identifier of the cart | -| cartType | string | no | The type of cart | +| id | string | no | | | body | [PlatformCartCheckoutDetailV2Request](#PlatformCartCheckoutDetailV2Request) | yes | Request body | @@ -8900,16 +8469,14 @@ const promise = platformClient.application("").cart.platformUpda id : value, i : value, b : value, - buyNow : value, - cartType : value }); + buyNow : value }); // Async/Await const data = await platformClient.application("").cart.platformUpdateCart({ body : value, id : value, i : value, b : value, - buyNow : value, - cartType : value }); + buyNow : value }); ``` @@ -8918,11 +8485,10 @@ const data = await platformClient.application("").cart.platformU | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| id | string | no | The unique identifier of the cart | -| i | boolean | no | This is a boolean value. Select `true` to retrieve all the items added in the cart. | -| b | boolean | no | This is a boolean value. Select `true` to retrieve the price breakup of cart items. | -| buyNow | boolean | no | This is a boolen value. Select `true` to set/initialize buy now cart | -| cartType | string | no | The type of cart | +| id | string | no | | +| i | boolean | no | | +| b | boolean | no | | +| buyNow | boolean | no | | | body | [PlatformUpdateCartRequest](#PlatformUpdateCartRequest) | yes | Request body | @@ -9014,7 +8580,6 @@ Success. Updates and returns a cart object as shown below. Refer `UpdateCartDeta "identifier": "5mPyy88URXuh3Lo35uaTg" }, "discount": "67% OFF", - "seller_count": 1, "parent_item_identifiers": { "identifier": "ZASFF", "parent_item_id": 7501190, @@ -9033,7 +8598,6 @@ Success. Updates and returns a cart object as shown below. Refer `UpdateCartDeta "name": "Gandhi Nagar" }, "quantity": 108, - "product_name": "", "price": { "base": { "marked": 2999, @@ -9205,7 +8769,6 @@ Success. Updates and returns a cart object as shown below. Refer `UpdateCartDeta "identifier": "5mPyy88URXuh3Lo35uaTg" }, "message": "", - "seller_count": 1, "bulk_offer": {}, "price": { "base": { @@ -9275,7 +8838,6 @@ Success. Updates and returns a cart object as shown below. Refer `UpdateCartDeta "name": "Colaba Causway" }, "quantity": 5, - "product_name": "", "price": { "base": { "marked": 5499, @@ -10686,111 +10248,6 @@ Success. Returns a Cart object as shown below. Refer `CartDetailResponse` for mo ---- - - -### upateCartMetaActiveStatus -Update cart meta configuration - - - -```javascript -// Promise -const promise = platformClient.application("").cart.upateCartMetaActiveStatus({ cartMetaId : value, - body : value }); - -// Async/Await -const data = await platformClient.application("").cart.upateCartMetaActiveStatus({ cartMetaId : value, - body : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| cartMetaId | string | yes | CartMeta mongo _id for fetching single cart meta data for editing | -| body | [CartMetaConfigUpdate](#CartMetaConfigUpdate) | yes | Request body | - - -Update cart meta configuration - -*Returned Response:* - - - - -[CartMetaConfigDetailResponse](#CartMetaConfigDetailResponse) - -Cart Meta Config updated successfully - - - - -
-  Example: - -```json -{ - "success": true, - "data": { - "id": "645ba594d414eb0669e6ee14", - "app_id": "60792ded7826bd09330ed90d", - "company_id": 884, - "bulk_coupons": false, - "delivery_charges": { - "charges": [], - "enabled": false - }, - "international_delivery_charges": { - "charges": [], - "enabled": false - }, - "empty_cart": false, - "enabled": true, - "max_cart_items": 50, - "min_cart_value": 0, - "revenue_engine_coupon": false, - "gift_pricing": 50, - "gift_display_text": "", - "is_universal": false, - "is_active": true, - "order_placing": { - "enabled": true, - "message": "" - }, - "name": "Universal", - "slug": "universal", - "article_tags": [ - "sale", - "offer" - ], - "allow_coupon_with_rewards": false, - "gst_input": true, - "staff_selection": true, - "placing_for_customer": false, - "pan_card": { - "enabled": false, - "cod_threshold_amount": 0, - "online_threshold_amount": 0 - }, - "created_on": "2023-12-21T12:17:12", - "updated_on": "2023-12-21T12:17:12", - "last_modified_by": "5b84e9ffb02426353608c380" - } -} -``` -
- - - - - - - - - --- @@ -11516,7 +10973,7 @@ const data = await platformClient.application("").cart.updateCar | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| cartMetaId | string | yes | CartMeta mongo _id for fetching single cart meta data for editing | +| cartMetaId | string | yes | | | body | [CartMetaConfigUpdate](#CartMetaConfigUpdate) | yes | Request body | @@ -11527,9 +10984,9 @@ Update cart meta configuration -[CartMetaConfigDetailResponse](#CartMetaConfigDetailResponse) +[CartMetaConfigUpdate](#CartMetaConfigUpdate) -Cart Meta Config updated successfully +Cart Meta Config Created successfully @@ -11539,48 +10996,21 @@ Cart Meta Config updated successfully ```json { - "success": true, - "data": { - "id": "645ba594d414eb0669e6ee14", - "app_id": "60792ded7826bd09330ed90d", - "company_id": 884, - "bulk_coupons": false, - "delivery_charges": { - "charges": [], - "enabled": false - }, - "empty_cart": false, - "enabled": true, - "max_cart_items": 50, - "min_cart_value": 0, - "revenue_engine_coupon": false, - "gift_pricing": 50, - "gift_display_text": "", - "is_universal": false, - "is_active": true, - "order_placing": { - "enabled": true, - "message": "" - }, - "name": "Universal", - "slug": "universal", - "article_tags": [ - "sale", - "offer" - ], - "allow_coupon_with_rewards": false, - "gst_input": true, - "staff_selection": true, - "placing_for_customer": false, - "pan_card": { - "enabled": false, - "cod_threshold_amount": 0, - "online_threshold_amount": 0 - }, - "created_on": "2023-12-21T12:17:12", - "updated_on": "2023-12-21T12:17:12", - "last_modified_by": "5b84e9ffb02426353608c380" - } + "_id": "645ba594d414eb0669e6ee14", + "app_id": "60792ded7826bd09330ed90d", + "company_id": 884, + "bulk_coupons": false, + "delivery_charges": { + "charges": [], + "enabled": false + }, + "empty_cart": false, + "enabled": true, + "max_cart_items": 50, + "min_cart_value": 0, + "revenue_engine_coupon": false, + "gift_pricing": 50, + "gift_display_text": "" } ``` @@ -12547,9 +11977,7 @@ Price Adjustment Updated successfully "cancellation_allowed": false, "return_allowed": false } - }, - "remove_articles": false, - "auto_remove": true + } } } ``` @@ -13747,7 +13175,6 @@ Success. Returns a success message and the coupon validity. Refer `PaymentCoupon | meta | string? | yes | | | parent_item_identifiers | [[String: string]]? | yes | | | pos | boolean? | yes | | - | price_factory_type_id | string? | yes | | | product_group_tags | [string]? | yes | | | quantity | number? | yes | | | seller_id | number? | yes | | @@ -13779,7 +13206,6 @@ Success. Returns a success message and the coupon validity. Refer `PaymentCoupon | buy_rules | [[BuyRules](#BuyRules)]? | yes | Buy rules for promotions | | code | string? | yes | Promotion code | | currency | [CartCurrency](#CartCurrency)? | yes | | - | custom_field_meta | [string]? | yes | custom field meta for promotion. | | discount_rules | [[DiscountRulesApp](#DiscountRulesApp)]? | yes | Discount rules for promotions | | meta | string? | yes | Meta object for extra data | | mrp_promotion | boolean? | yes | If applied promotion is applied on product MRP or ESP | @@ -13972,12 +13398,10 @@ Success. Returns a success message and the coupon validity. Refer `PaymentCoupon | coupon | [CartDetailCoupon](#CartDetailCoupon)? | yes | | | coupon_text | string? | yes | | | currency | [CartCurrency](#CartCurrency)? | yes | | - | custom_cart | [CustomCart](#CustomCart)? | yes | | | delivery_charge_info | string? | yes | | | delivery_promise | [ShipmentPromise](#ShipmentPromise)? | yes | | | gstin | string? | yes | | | id | string? | yes | | - | is_pan_received | boolean? | yes | | | is_valid | boolean? | yes | | | items | [[CartProductInfo](#CartProductInfo)]? | yes | | | last_modified | string? | yes | | @@ -14043,59 +13467,14 @@ Success. Returns a success message and the coupon validity. Refer `PaymentCoupon | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | allow_coupon_with_rewards | boolean? | yes | | - | article_tags | [string]? | yes | | | bulk_coupons | boolean? | yes | | | delivery_charges | [DeliveryCharges](#DeliveryCharges)? | yes | | | enabled | boolean? | yes | | | gift_display_text | string? | yes | | | gift_pricing | number? | yes | | - | gst_input | boolean? | yes | | - | international_delivery_charges | [DeliveryCharges](#DeliveryCharges)? | yes | | - | is_active | boolean? | yes | | | max_cart_items | number? | yes | | - | max_cart_value | number? | yes | | | min_cart_value | number? | yes | | - | name | string | no | | - | order_placing | [OrderPlacing](#OrderPlacing)? | yes | | - | pan_card | [PanCard](#PanCard)? | yes | | - | placing_for_customer | boolean? | yes | | | revenue_engine_coupon | boolean? | yes | | - | slug | string | no | | - | staff_selection | boolean? | yes | | - - ---- - -#### [CartMetaConfigDetailResponse](#CartMetaConfigDetailResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | data | [CartMetaConfigUpdate](#CartMetaConfigUpdate)? | yes | | - | success | boolean? | yes | | - - ---- - -#### [CartMetaConfigListObj](#CartMetaConfigListObj) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | created_on | string? | yes | | - | id | string? | yes | | - | is_active | boolean? | yes | | - | name | string? | yes | | - | slug | string? | yes | | - - ---- - -#### [CartMetaConfigListResponse](#CartMetaConfigListResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | data | [[CartMetaConfigListObj](#CartMetaConfigListObj)]? | yes | | - | success | boolean? | yes | | --- @@ -14104,25 +13483,14 @@ Success. Returns a success message and the coupon validity. Refer `PaymentCoupon | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | allow_coupon_with_rewards | boolean? | yes | | - | article_tags | [string]? | yes | | | bulk_coupons | boolean? | yes | | | delivery_charges | [DeliveryCharges](#DeliveryCharges)? | yes | | | enabled | boolean? | yes | | | gift_display_text | string? | yes | | | gift_pricing | number? | yes | | - | gst_input | boolean? | yes | | - | international_delivery_charges | [DeliveryCharges](#DeliveryCharges)? | yes | | - | is_active | boolean? | yes | | | max_cart_items | number? | yes | | - | max_cart_value | number? | yes | | | min_cart_value | number? | yes | | - | name | string? | yes | | - | order_placing | [OrderPlacing](#OrderPlacing)? | yes | | - | pan_card | [PanCard](#PanCard)? | yes | | - | placing_for_customer | boolean? | yes | | | revenue_engine_coupon | boolean? | yes | | - | staff_selection | boolean? | yes | | --- @@ -14201,7 +13569,6 @@ Success. Returns a success message and the coupon validity. Refer `PaymentCoupon | promo_meta | [PromoMeta](#PromoMeta)? | yes | | | promotions_applied | [[AppliedPromotion](#AppliedPromotion)]? | yes | | | quantity | number? | yes | | - | seller_count | number? | yes | | --- @@ -14250,7 +13617,6 @@ Success. Returns a success message and the coupon validity. Refer `PaymentCoupon | comment | string? | yes | | | coupon_text | string? | yes | | | currency | [CartCurrency](#CartCurrency)? | yes | | - | custom_cart | [CustomCart](#CustomCart)? | yes | | | delivery_charge_info | string? | yes | | | delivery_charge_order_value | number? | yes | | | delivery_charges | number? | yes | | @@ -14476,18 +13842,6 @@ Success. Returns a success message and the coupon validity. Refer `PaymentCoupon | valid | boolean? | yes | | ---- - -#### [CustomCart](#CustomCart) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | cart_name | string? | yes | Name of custom cart | - | cart_type | string? | yes | Type of custom cart | - | id | string? | yes | id of custom cart config | - | is_universal | boolean? | yes | By default all carts are universal, will be false for custom cart | - - --- #### [CustomerDetails](#CustomerDetails) @@ -14940,21 +14294,10 @@ Success. Returns a success message and the coupon validity. Refer `PaymentCoupon | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | error | string? | yes | | | message | string? | yes | | | success | boolean? | yes | | ---- - -#### [OrderPlacing](#OrderPlacing) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | enabled | boolean? | yes | | - | message | string? | yes | | - - --- #### [OverrideCartItem](#OverrideCartItem) @@ -15079,17 +14422,6 @@ Success. Returns a success message and the coupon validity. Refer `PaymentCoupon | total_item_count | number? | yes | | ---- - -#### [PanCard](#PanCard) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | cod_threshold_amount | number? | yes | | - | enabled | boolean? | yes | | - | online_threshold_amount | number? | yes | | - - --- #### [PaymentAllowValue](#PaymentAllowValue) @@ -15278,7 +14610,7 @@ Success. Returns a success message and the coupon validity. Refer `PaymentCoupon | pos | boolean? | yes | | | staff | [StaffCheckout](#StaffCheckout)? | yes | | | type | string? | yes | | - | user_id | string? | yes | | + | user_id | string | no | | --- @@ -15317,7 +14649,7 @@ Success. Returns a success message and the coupon validity. Refer `PaymentCoupon | pos | boolean? | yes | | | staff | [StaffCheckout](#StaffCheckout)? | yes | | | type | string? | yes | | - | user_id | string? | yes | | + | user_id | string | no | | --- @@ -15330,7 +14662,6 @@ Success. Returns a success message and the coupon validity. Refer `PaymentCoupon | comment | string? | yes | | | gift_details | string? | yes | | | gstin | string? | yes | | - | is_pan_received | boolean? | yes | | | pan_no | string? | yes | | | pick_up_customer_details | string? | yes | Customer contact details for customer pickup at store | | staff_user_id | string? | yes | staff user id | @@ -15354,7 +14685,6 @@ Success. Returns a success message and the coupon validity. Refer `PaymentCoupon | error | boolean? | yes | | | gstin | string? | yes | | | id | string? | yes | | - | is_pan_received | boolean? | yes | | | is_valid | boolean? | yes | | | items | [[CartProductInfo](#CartProductInfo)]? | yes | | | last_modified | string? | yes | | @@ -15449,16 +14779,12 @@ Success. Returns a success message and the coupon validity. Refer `PaymentCoupon | apply_expiry | string? | yes | The date and time when the expiry should be applied | | article_ids | [[Article](#Article)] | no | The list of article object in the price adjustment | | article_level_distribution | boolean | no | Flag indicating whether the distribution should is done at the article level | - | auto_remove | boolean? | yes | This field if set true will remove mop type price adjustment. | | cart_id | string | no | The ID of the cart | | collection | [Collection](#Collection) | no | | - | distribution_level | string? | yes | distribution level of price adjusment | - | distribution_type | string? | yes | distribution type of price adjusment in case of shipment distribution level | | id | string? | yes | | | is_authenticated | boolean | no | Flag indicating whether the user is authenticated | | message | string | no | The message associated with the price adjustment | | meta | string? | yes | | - | remove_articles | boolean? | yes | This field if set true will remove all articles in price adjustment if article_ids are present | | restrictions | [PriceAdjustmentRestrictions](#PriceAdjustmentRestrictions)? | yes | This field accepts the restrictions applied to this particular item or service, including whether or not cancellation and return are allowed, etc | | type | string | no | type of price adjusment | | value | number | no | | @@ -15474,16 +14800,12 @@ Success. Returns a success message and the coupon validity. Refer `PaymentCoupon | apply_expiry | string? | yes | The date and time when the expiry should be applied | | article_ids | [[Article](#Article)] | no | The list of article object in the price adjustment | | article_level_distribution | boolean | no | Flag indicating whether the distribution should is done at the article level | - | auto_remove | boolean? | yes | This field if set true will remove mop type price adjustment. | | cart_id | string | no | The ID of the cart | | collection | [Collection](#Collection) | no | | | created_by | string? | yes | The entity that created the field | - | distribution_level | string? | yes | distribution level of price adjusment | - | distribution_type | string? | yes | distribution type of price adjusment in case of shipment distribution level | | is_authenticated | boolean | no | Flag indicating whether the user is authenticated | | message | string | no | The message associated with the price adjustment | | meta | string? | yes | | - | remove_articles | boolean? | yes | This field if set true will remove all articles in price adjustment if article_ids are present | | restrictions | [PriceAdjustmentRestrictions](#PriceAdjustmentRestrictions)? | yes | This field accepts the restrictions applied to this particular item or service, including whether or not cancellation and return are allowed, etc | | type | string | no | type of price adjusment | | value | number | no | | @@ -15517,14 +14839,12 @@ Success. Returns a success message and the coupon validity. Refer `PaymentCoupon | apply_expiry | string? | yes | The date and time when the expiry should be applied | | article_ids | [[Article](#Article)] | no | The list of article object in the price adjustment | | article_level_distribution | boolean | no | Flag indicating whether the distribution should is done at the article level | - | auto_remove | boolean? | yes | This field if set true will remove mop type price adjustment. | | cart_id | string | no | The ID of the cart | | collection | [Collection](#Collection) | no | | | is_authenticated | boolean | no | Flag indicating whether the user is authenticated | | message | string | no | The message associated with the price adjustment | | meta | string? | yes | | | modified_by | string? | yes | The entity that modified the field | - | remove_articles | boolean? | yes | This field if set true will remove all articles in price adjustment if article_ids are present | | restrictions | [PriceAdjustmentRestrictions](#PriceAdjustmentRestrictions)? | yes | restrictions applied to this particular item or product, including whether or not cancellation and return are allowed. | | type | string | no | type of price adjusment | | value | number | no | | @@ -15568,7 +14888,6 @@ Success. Returns a success message and the coupon validity. Refer `PaymentCoupon | parent_item_identifiers | string? | yes | | | price | [ArticlePriceInfo](#ArticlePriceInfo)? | yes | | | product_group_tags | [string]? | yes | | - | product_name | string? | yes | | | quantity | number? | yes | | | seller | [BaseInfo](#BaseInfo)? | yes | | | seller_identifier | string? | yes | | @@ -15715,7 +15034,6 @@ Success. Returns a success message and the coupon validity. Refer `PaymentCoupon | promotion_type | string | no | | | restrictions | [Restrictions1](#Restrictions1)? | yes | | | stackable | boolean? | yes | | - | tags | [string]? | yes | | | visiblility | [Visibility](#Visibility)? | yes | | @@ -15757,7 +15075,6 @@ Success. Returns a success message and the coupon validity. Refer `PaymentCoupon | calculate_on | string? | yes | Only available for Contract pricing and Ladder pricing promotion type | | code | string? | yes | Promotion code | | currency | string? | yes | Currency used for promotion | - | custom_field_meta | [string]? | yes | custom field meta for promotion. | | date_meta | [PromotionDateMeta](#PromotionDateMeta)? | yes | | | discount_rules | [[DiscountRule](#DiscountRule)] | no | Discount rules based on which promotion will be applied | | display_meta | [DisplayMeta1](#DisplayMeta1) | no | | @@ -15768,7 +15085,6 @@ Success. Returns a success message and the coupon validity. Refer `PaymentCoupon | promotion_type | string | no | Type of the promotion | | restrictions | [Restrictions1](#Restrictions1)? | yes | | | stackable | boolean? | yes | Allows more than one promotion to get combined benefits | - | tags | [string]? | yes | | | visiblility | [Visibility](#Visibility)? | yes | | @@ -15834,7 +15150,6 @@ Success. Returns a success message and the coupon validity. Refer `PaymentCoupon | calculate_on | string? | yes | Only available for Contract pricing and Ladder pricing promotion type | | code | string? | yes | | | currency | string? | yes | | - | custom_field_meta | [string]? | yes | custom field meta for promotion. | | date_meta | [PromotionDateMeta](#PromotionDateMeta)? | yes | | | discount_rules | [[DiscountRule](#DiscountRule)] | no | | | display_meta | [DisplayMeta1](#DisplayMeta1) | no | | @@ -15845,7 +15160,6 @@ Success. Returns a success message and the coupon validity. Refer `PaymentCoupon | promotion_type | string | no | | | restrictions | [Restrictions1](#Restrictions1)? | yes | | | stackable | boolean? | yes | | - | tags | [string]? | yes | | | visiblility | [Visibility](#Visibility)? | yes | | @@ -16106,30 +15420,6 @@ Success. Returns a success message and the coupon validity. Refer `PaymentCoupon | tags | string? | yes | | ---- - -#### [TagsViewResponse](#TagsViewResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | items | [string]? | yes | | - | success | boolean? | yes | | - - ---- - -#### [TimeStampIDResponse](#TimeStampIDResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | app_id | string? | yes | | - | company_id | number? | yes | | - | created_on | string? | yes | | - | id | string? | yes | | - | last_modified_by | string? | yes | | - | updated_on | string? | yes | | - - --- #### [UpdateAddressResponse](#UpdateAddressResponse) @@ -16227,7 +15517,6 @@ Success. Returns a success message and the coupon validity. Refer `PaymentCoupon | item_size | string? | yes | | | meta | string? | yes | | | parent_item_identifiers | string? | yes | | - | price_factory_type_id | string? | yes | | | quantity | number? | yes | | @@ -16257,7 +15546,6 @@ Success. Returns a success message and the coupon validity. Refer `PaymentCoupon | delivery_promise | [ShipmentPromise](#ShipmentPromise)? | yes | | | gstin | string? | yes | | | id | string? | yes | | - | is_pan_received | boolean? | yes | | | is_valid | boolean? | yes | | | items | [[CartProductInfo](#CartProductInfo)]? | yes | | | last_modified | string? | yes | | diff --git a/documentation/platform/CATALOG.md b/documentation/platform/CATALOG.md index 4a2832c11..0882eeaf2 100644 --- a/documentation/platform/CATALOG.md +++ b/documentation/platform/CATALOG.md @@ -11,13 +11,11 @@ Catalog - Platform Front API's' API's allows you to access list of products, pri Default * [addCollectionItems](#addcollectionitems) -* [addProductsInPriceFactoryByZoneId](#addproductsinpricefactorybyzoneid) +* [addInventory](#addinventory) * [allSizes](#allsizes) * [bulkHsnCode](#bulkhsncode) * [createAppCategoryReturnConfiguration](#createappcategoryreturnconfiguration) -* [createAppPriceFactory](#createapppricefactory) * [createAppReturnConfiguration](#createappreturnconfiguration) -* [createAutocompleteSettings](#createautocompletesettings) * [createBulkInventory](#createbulkinventory) * [createBulkInventoryJob](#createbulkinventoryjob) * [createBulkProductUploadJob](#createbulkproductuploadjob) @@ -33,19 +31,12 @@ Default * [createInventoryExportJob](#createinventoryexportjob) * [createListingConfiguration](#createlistingconfiguration) * [createMarketplaceOptin](#createmarketplaceoptin) -* [createMerchandisingRuleBoostAction](#createmerchandisingruleboostaction) -* [createMerchandisingRuleBuryAction](#createmerchandisingruleburyaction) -* [createMerchandisingRuleHideAction](#createmerchandisingrulehideaction) -* [createMerchandisingRulePinAction](#createmerchandisingrulepinaction) -* [createMerchandisingRuleQuery](#createmerchandisingrulequery) * [createProduct](#createproduct) * [createProductAssetsInBulk](#createproductassetsinbulk) * [createProductBundle](#createproductbundle) * [createProductExportJob](#createproductexportjob) -* [createProductPriceFactoryBulkJob](#createproductpricefactorybulkjob) * [createProductsInBulk](#createproductsinbulk) * [createSearchConfiguration](#createsearchconfiguration) -* [createSearchRerank](#createsearchrerank) * [createSizeGuide](#createsizeguide) * [deleteAppCategoryReturnConfiguration](#deleteappcategoryreturnconfiguration) * [deleteAutocompleteKeyword](#deleteautocompletekeyword) @@ -58,11 +49,9 @@ Default * [deleteRealtimeInventory](#deleterealtimeinventory) * [deleteSearchConfiguration](#deletesearchconfiguration) * [deleteSearchKeywords](#deletesearchkeywords) -* [deleteSearchRerankConfiguration](#deletesearchrerankconfiguration) * [deleteSize](#deletesize) * [downloadInventoryTemplateView](#downloadinventorytemplateview) * [downloadProductTemplateViews](#downloadproducttemplateviews) -* [editAppPriceFactory](#editapppricefactory) * [editProduct](#editproduct) * [exportInventoryConfig](#exportinventoryconfig) * [getAllCollections](#getallcollections) @@ -71,8 +60,6 @@ Default * [getAppCategoryReturnConfig](#getappcategoryreturnconfig) * [getAppInventory](#getappinventory) * [getAppLocations](#getapplocations) -* [getAppPriceFactories](#getapppricefactories) -* [getAppPriceFactory](#getapppricefactory) * [getAppProduct](#getappproduct) * [getAppProducts](#getappproducts) * [getAppReturnConfiguration](#getappreturnconfiguration) @@ -81,23 +68,22 @@ Default * [getApplicationBrands](#getapplicationbrands) * [getApplicationCategoryListing](#getapplicationcategorylisting) * [getApplicationDepartmentListing](#getapplicationdepartmentlisting) +* [getApplicationFilterKeys](#getapplicationfilterkeys) +* [getApplicationFilterValues](#getapplicationfiltervalues) * [getAutocompleteConfig](#getautocompleteconfig) * [getAutocompleteKeywordDetail](#getautocompletekeyworddetail) -* [getAutocompletePreview](#getautocompletepreview) -* [getAutocompleteSettings](#getautocompletesettings) * [getCatalogConfiguration](#getcatalogconfiguration) * [getCatalogInsights](#getcataloginsights) * [getCategories](#getcategories) * [getCategoryData](#getcategorydata) * [getCollectionDetail](#getcollectiondetail) +* [getCollectionItems](#getcollectionitems) * [getCompanyBrandDetail](#getcompanybranddetail) * [getCompanyDetail](#getcompanydetail) * [getCompanyMetrics](#getcompanymetrics) -* [getCompanyVerification](#getcompanyverification) * [getConfigurationByType](#getconfigurationbytype) * [getConfigurationMetadata](#getconfigurationmetadata) * [getConfigurations](#getconfigurations) -* [getConfigurationsFilterMetadata](#getconfigurationsfiltermetadata) * [getDepartmentData](#getdepartmentdata) * [getDepartments](#getdepartments) * [getDiscountedInventoryBySizeIdentifier](#getdiscountedinventorybysizeidentifier) @@ -109,16 +95,9 @@ Default * [getInventoryBySize](#getinventorybysize) * [getInventoryBySizeIdentifier](#getinventorybysizeidentifier) * [getInventoryExport](#getinventoryexport) -* [getInventoryExportDetail](#getinventoryexportdetail) * [getListingConfigurations](#getlistingconfigurations) -* [getLivePreview](#getlivepreview) +* [getMarketplaceOptinDetail](#getmarketplaceoptindetail) * [getMarketplaces](#getmarketplaces) -* [getMerchandisingQuery](#getmerchandisingquery) -* [getMerchandisingRuleBoostAction](#getmerchandisingruleboostaction) -* [getMerchandisingRuleBuryAction](#getmerchandisingruleburyaction) -* [getMerchandisingRuleHideAction](#getmerchandisingrulehideaction) -* [getMerchandisingRulePinAction](#getmerchandisingrulepinaction) -* [getMerchandisingRules](#getmerchandisingrules) * [getOptimalLocations](#getoptimallocations) * [getProduct](#getproduct) * [getProductAssetsInBulk](#getproductassetsinbulk) @@ -127,26 +106,19 @@ Default * [getProductBundle](#getproductbundle) * [getProductBundleDetail](#getproductbundledetail) * [getProductDetailBySlug](#getproductdetailbyslug) -* [getProductExportDetail](#getproductexportdetail) * [getProductExportJobs](#getproductexportjobs) * [getProductSize](#getproductsize) * [getProductTags](#getproducttags) -* [getProductTemplateBySlug](#getproducttemplatebyslug) * [getProductValidation](#getproductvalidation) -* [getProductVerificationDetails](#getproductverificationdetails) * [getProducts](#getproducts) -* [getProductsInPriceFactoryByZoneId](#getproductsinpricefactorybyzoneid) * [getQueryFilters](#getqueryfilters) * [getSearchConfiguration](#getsearchconfiguration) * [getSearchKeywords](#getsearchkeywords) -* [getSearchRerank](#getsearchrerank) -* [getSearchRerankDetail](#getsearchrerankdetail) * [getSellerInsights](#getsellerinsights) * [getSingleProductHSNCode](#getsingleproducthsncode) * [getSizeGuide](#getsizeguide) * [getSizeGuides](#getsizeguides) * [getStoreDetail](#getstoredetail) -* [getVariantTypes](#getvarianttypes) * [getVariantsOfProducts](#getvariantsofproducts) * [listCategories](#listcategories) * [listDepartmentsData](#listdepartmentsdata) @@ -156,10 +128,6 @@ Default * [listProductTemplateCategories](#listproducttemplatecategories) * [listProductTemplateExportDetails](#listproducttemplateexportdetails) * [listTemplateBrandTypeValues](#listtemplatebrandtypevalues) -* [patchInventoryExportDetail](#patchinventoryexportdetail) -* [patchProductExportDetail](#patchproductexportdetail) -* [pollProductPriceFactoryBulkJob](#pollproductpricefactorybulkjob) -* [processProductPriceFactoryBulkJob](#processproductpricefactorybulkjob) * [updateAllowSingle](#updateallowsingle) * [updateAppBrand](#updateappbrand) * [updateAppCategory](#updateappcategory) @@ -169,7 +137,6 @@ Default * [updateAppProduct](#updateappproduct) * [updateAppReturnConfiguration](#updateappreturnconfiguration) * [updateAutocompleteKeyword](#updateautocompletekeyword) -* [updateAutocompleteSettings](#updateautocompletesettings) * [updateCategory](#updatecategory) * [updateCollection](#updatecollection) * [updateDefaultSort](#updatedefaultsort) @@ -179,20 +146,12 @@ Default * [updateInventories](#updateinventories) * [updateListingConfiguration](#updatelistingconfiguration) * [updateMarketplaceOptin](#updatemarketplaceoptin) -* [updateMerchandisingRuleBoostAction](#updatemerchandisingruleboostaction) -* [updateMerchandisingRuleBuryAction](#updatemerchandisingruleburyaction) -* [updateMerchandisingRuleHideAction](#updatemerchandisingrulehideaction) -* [updateMerchandisingRulePinAction](#updatemerchandisingrulepinaction) -* [updateMerchandisingRuleQuery](#updatemerchandisingrulequery) * [updateProductBundle](#updateproductbundle) -* [updateProductPriceByZoneInPriceFactory](#updateproductpricebyzoneinpricefactory) * [updateRealtimeInventory](#updaterealtimeinventory) * [updateSearchConfiguration](#updatesearchconfiguration) * [updateSearchKeywords](#updatesearchkeywords) -* [updateSearchRerankConfiguration](#updatesearchrerankconfiguration) * [updateSizeGuide](#updatesizeguide) * [uploadBulkProducts](#uploadbulkproducts) -* [validateProductPriceFactoryBulkJob](#validateproductpricefactorybulkjob) * [validateProductTemplate](#validateproducttemplate) * [validateProductTemplateSchema](#validateproducttemplateschema) @@ -227,7 +186,7 @@ const data = await platformClient.application("").catalog.addCol | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | | id | string | yes | A `id` is a unique identifier of a collection. | -| body | [CollectionItemUpdateSchema](#CollectionItemUpdateSchema) | yes | Request body | +| body | [CollectionItemUpdate](#CollectionItemUpdate) | yes | Request body | Adds items to a collection specified by its `id`. See `CollectionItemRequest` for the list of attributes needed to add items to an collection. @@ -237,7 +196,7 @@ Adds items to a collection specified by its `id`. See `CollectionItemRequest` fo -[CommonResponseSchemaCollection](#CommonResponseSchemaCollection) +[UpdatedResponse](#UpdatedResponse) Status object. Tells whether the operation was successful. @@ -245,23 +204,15 @@ Status object. Tells whether the operation was successful.
-  Examples: - - -
-  success +  Example: ```json { - "value": { - "message": "items updated" - } + "message": "items updated" } ```
-
- @@ -273,20 +224,20 @@ Status object. Tells whether the operation was successful. --- -### addProductsInPriceFactoryByZoneId - +### addInventory +Add Inventory for particular size and store. ```javascript // Promise -const promise = platformClient.application("").catalog.addProductsInPriceFactoryByZoneId({ id : value, - zoneId : value, +const promise = platformClient.catalog.addInventory({ itemId : value, + size : value, body : value }); // Async/Await -const data = await platformClient.application("").catalog.addProductsInPriceFactoryByZoneId({ id : value, - zoneId : value, +const data = await platformClient.catalog.addInventory({ itemId : value, + size : value, body : value }); ``` @@ -296,21 +247,21 @@ const data = await platformClient.application("").catalog.addPro | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| id | string | yes | An `id` is a unique identifier for a particular price factory. | -| zoneId | string | yes | An `zone_id` is a unique identifier for a particular price factory zone. | -| body | [CreateAppPriceFactoryProductRequest](#CreateAppPriceFactoryProductRequest) | yes | Request body | +| itemId | number | yes | Item code of the product of which size is to be get. | +| size | string | yes | Size in which inventory is to be added. | +| body | [InventoryRequest](#InventoryRequest) | yes | Request body | -This API allows to add products in price factory. +This API allows add Inventory for particular size and store. *Returned Response:* -[CreateAppPriceFactoryProductsResponse](#CreateAppPriceFactoryProductsResponse) +[SuccessResponse](#SuccessResponse) -Success response +Returns a success response @@ -320,43 +271,7 @@ Success response ```json { - "items": [ - { - "item_id": 1234, - "name": "Test-01", - "item_code": "TEST-01", - "brand": "Test Brand", - "category": "Abayas", - "factory_type_id": [ - "507f1f77bcf86cd799439011" - ], - "media": [ - { - "type": "image", - "url": "/x0/products/pictures/item/free/original/Hsw-U3Kut-Test-01.jpeg" - } - ], - "sizes": [ - { - "seller-identifier": "qwert123", - "size_name": "XL", - "marked_price": 1500, - "selling_price": 1400, - "currency": "INR", - "is_active": true - } - ], - "company_sizes": [ - { - "seller-identifier": "qwert123", - "size_name": "XL", - "marked_price": 1200, - "selling_price": 1100, - "currency": "INR" - } - ] - } - ] + "success": true } ``` @@ -410,40 +325,32 @@ List Product Sizes. See example below or refer `AllSizes` for details
-  Examples: - - -
-  success +  Example: ```json { - "value": { - "all_sizes": [ - { - "identifiers": [ - { - "gtin_type": "ean", - "gtin_value": "74352323423", - "primary": true - } - ], - "item_dimensions_unit_of_measure": "cm", - "item_height": 100, - "item_length": 1000, - "item_weight": 100, - "item_weight_unit_of_measure": "gram", - "item_width": 1000, - "size": "OS" - } - ] - } + "all_sizes": [ + { + "identifiers": [ + { + "gtin_type": "ean", + "gtin_value": "74352323423", + "primary": true + } + ], + "item_dimensions_unit_of_measure": "cm", + "item_height": 100, + "item_length": 1000, + "item_weight": 100, + "item_weight_unit_of_measure": "gram", + "item_width": 1000, + "size": "OS" + } + ] } ```
-
- @@ -492,25 +399,15 @@ See example below for details
-  Examples: - - -
-  success +  Example: ```json { - "value": { - "data": { - "success": true - } - } + "success": true } ```
-
- @@ -563,7 +460,7 @@ success message will tell whether the operation was successful.
-  success +  default ```json { @@ -584,74 +481,6 @@ success message will tell whether the operation was successful. ---- - - -### createAppPriceFactory -Create price factory - - - -```javascript -// Promise -const promise = platformClient.application("").catalog.createAppPriceFactory({ body : value }); - -// Async/Await -const data = await platformClient.application("").catalog.createAppPriceFactory({ body : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| body | [CreateAppPriceFactoryRequest](#CreateAppPriceFactoryRequest) | yes | Request body | - - -This API allows to create price factory. - -*Returned Response:* - - - - -[CreateAppPriceFactoryResponse](#CreateAppPriceFactoryResponse) - -Returns a success response - - - - -
-  Example: - -```json -{ - "id": "507f1f77bcf86cd799439011", - "type": "pricezone", - "factory_type_id": [ - "507f1f77bcf86cd799439011" - ], - "code": "pricezone", - "name": "pricezone", - "is_active": true, - "departments": [ - 123, - 24 - ] -} -``` -
- - - - - - - - - --- @@ -696,7 +525,7 @@ success message will tell whether the operation was successful.
-  success +  default ```json { @@ -717,65 +546,6 @@ success message will tell whether the operation was successful. ---- - - -### createAutocompleteSettings -Create autocomplete settings config for an application - - - -```javascript -// Promise -const promise = platformClient.application("").catalog.createAutocompleteSettings({ body : value }); - -// Async/Await -const data = await platformClient.application("").catalog.createAutocompleteSettings({ body : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| body | [AutocompleteRequestSchema](#AutocompleteRequestSchema) | yes | Request body | - - -This API allows to create autocomplete settings for an application. - -*Returned Response:* - - - - -[AutocompleteUpsertResponseSchema](#AutocompleteUpsertResponseSchema) - -return success true/false based on create operation - - - - -
-  Example: - -```json -{ - "success": true, - "id": "657884575e12e699f8187f47", - "message": "Autocomplete settings created successfully!" -} -``` -
- - - - - - - - - --- @@ -819,23 +589,15 @@ Returns a success response
-  Examples: - - -
-  success +  Example: ```json { - "value": { - "success": true - } + "success": true } ```
-
- @@ -866,7 +628,7 @@ const data = await platformClient.catalog.createBulkInventoryJob({ body : value | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| body | [InventoryBulkJob](#InventoryBulkJob) | yes | Request body | +| body | [BulkJob](#BulkJob) | yes | Request body | This API helps to create a bulk Inventory upload job. @@ -876,7 +638,7 @@ This API helps to create a bulk Inventory upload job. -[InventoryBulkResponse](#InventoryBulkResponse) +[BulkResponse](#BulkResponse) Returns a success response @@ -884,23 +646,16 @@ Returns a success response
-  Examples: - - -
-  success +  Example: ```json { - "value": { - "batch_id": "507f1f77bcf86cd799439011" - } + "batch_id": "507f1f77bcf86cd799439011", + "created_on": "2021-04-02T15:43:59.410000Z" } ```
-
- @@ -931,7 +686,7 @@ const data = await platformClient.catalog.createBulkProductUploadJob({ body : v | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| body | [BulkProductUploadJob](#BulkProductUploadJob) | yes | Request body | +| body | [BulkJob](#BulkJob) | yes | Request body | This API helps to create a bulk products upload job. @@ -941,7 +696,7 @@ This API helps to create a bulk products upload job. -[ProductBulkResponse](#ProductBulkResponse) +[BulkResponse](#BulkResponse) Returns a success response @@ -949,23 +704,16 @@ Returns a success response
-  Examples: - - -
-  success +  Example: ```json { - "value": { - "batch_id": "507f1f77bcf86cd799439011" - } + "batch_id": "507f1f77bcf86cd799439011", + "created_on": "2021-04-02T15:43:59.410000Z" } ```
-
- @@ -1014,24 +762,16 @@ Category Meta. See example below or refer `CategoryCreateResponse` for details
-  Examples: - - -
-  success +  Example: ```json { - "value": { - "message": "Success", - "uid": 0 - } + "message": "Success", + "uid": 0 } ```
-
- @@ -1080,87 +820,73 @@ List of all the collections including the one you added. See example below or re
-  Examples: - - -
-  success +  Example: ```json { - "value": { - "uid": "6561be32276bfeb0d50091bd", - "type": "query", - "query": [], - "name": "test", - "banners": { - "portrait": { - "type": "image", - "url": "https://res.cloudinary.com/dwzm9bysq/image/upload/v1588858137/production/applications/app_000000000000000000000001/media/collection/portrait/xzuftshmmw4yuwzb12pm.png" - }, - "landscape": { - "type": "image", - "url": "https://res.cloudinary.com/dwzm9bysq/image/upload/v1588857999/production/applications/app_000000000000000000000001/media/collection/landscape/avm7xibo2jgk8glc4bwl.png" + "_custom_json": {}, + "_locale_language": {}, + "_schedule": { + "end": null, + "next_schedule": [ + { + "end": null, + "start": "2021-03-15T12:51:21.333000+00:00Z" } - }, - "logo": { - "type": "image", - "url": "https://res.cloudinary.com/dwzm9bysq/image/upload/v1588857854/production/applications/app_000000000000000000000001/media/collection/logo/w9ns7nfgv7fk45xqrpoh.png" - }, - "published": true, - "description": "test-description", - "is_active": true, - "tags": [ - "Test Collection 123" ], - "slug": "testslug", - "action": { - "page": { - "type": "collection", - "query": { - "collection": [ - "testslug" - ] - } - }, - "type": "page" - }, - "allow_facets": true, - "allow_sort": true, - "visible_facets_keys": [], - "meta": {}, - "badge": { - "color": "#ffffff", - "text": "" - }, - "sort_on": "latest", - "_custom_json": {}, - "_locale_language": {}, - "seo": { - "title": "test", - "description": "test-description", - "breadcrumbs": [ - {} - ], - "sitemap": { - "priority": 0.5, - "frequency": "never" + "start": "2021-03-15T12:51:21.333000+00:00Z" + }, + "action": { + "page": { + "query": { + "collection": [ + "new" + ] }, - "meta_tags": [] + "type": "collection" }, - "is_visible": true, - "priority": 7, - "_schedule": { - "start": "2023-11-25T09:25:11.831Z" + "type": "page" + }, + "allow_facets": true, + "allow_sort": true, + "badge": { + "color": "#ffffff", + "text": "" + }, + "banners": { + "landscape": { + "type": "image", + "url": "https://res.cloudinary.com/dwzm9bysq/image/upload/v1588857999/production/applications/app_000000000000000000000001/media/collection/landscape/avm7xibo2jgk8glc4bwl.png" }, - "app_id": "64aed377b1fd04565d0dff30" - } + "portrait": { + "type": "image", + "url": "https://res.cloudinary.com/dwzm9bysq/image/upload/v1588858137/production/applications/app_000000000000000000000001/media/collection/portrait/xzuftshmmw4yuwzb12pm.png" + } + }, + "description": "", + "is_active": true, + "logo": { + "type": "image", + "url": "https://res.cloudinary.com/dwzm9bysq/image/upload/v1588857854/production/applications/app_000000000000000000000001/media/collection/logo/w9ns7nfgv7fk45xqrpoh.png" + }, + "meta": {}, + "name": "New", + "published": true, + "query": [], + "seo": { + "description": "Test description", + "title": "Test" + }, + "slug": "new", + "sort_on": "depth_desc", + "tags": [], + "type": "query", + "uid": "604f585a7051e30001173ac1", + "visible_facets_keys": [] } ```
-
- @@ -1212,228 +938,11 @@ success flag will tell whether the operation was successful.
-  Examples: - - -
-  success +  Example: ```json -{ - "value": { - "data": { - "product": { - "details_groups": { - "config": [ - { - "is_active": true, - "template_slugs": [ - "activewear-accessories", - "baby-care", - "bags", - "beauty-and-personal-care", - "books", - "bottomwear", - "cable-cords-and-accessories", - "camera-and-accessories", - "car-and-motorbike", - "computer-and-laptops", - "electrical-equipments", - "electronic-accessories", - "ethnicwear", - "extended-warranty", - "fashion-accessories", - "footwear", - "grocery", - "home-and-kitchen-appliances", - "home-and-living", - "industrial-supplies", - "innerwear-and-sleepwear", - "jewellery", - "kids-accessories", - "kids-furniture", - "lighting-and-accessories", - "mobiles-and-tablets", - "office-stationery", - "snacks-and-beverages", - "sports-accessories", - "sunglasses-and-frames", - "supplementary", - "swimwear", - "switches-and-fuses", - "television-and-audio-systems", - "topwear", - "toys-and-games", - "video-games", - "watches-and-wearables" - ], - "slug": "product-details", - "priority": 1, - "attributes": [ - { - "is_active": true, - "slug": "gender", - "priority": 78, - "display_type": "text", - "name": "Gender" - }, - { - "is_active": true, - "slug": "color", - "priority": 77, - "display_type": "text", - "name": "Colour" - }, - { - "is_active": true, - "slug": "material", - "priority": 7, - "display_type": "text", - "name": "Material" - } - ], - "name": "Product Details" - }, - { - "is_active": true, - "template_slugs": [ - "activewear-accessories", - "baby-care", - "bags", - "beauty-and-personal-care", - "books", - "bottomwear", - "cable-cords-and-accessories", - "camera-and-accessories", - "car-and-motorbike", - "computer-and-laptops", - "electrical-equipments", - "electronic-accessories", - "ethnicwear", - "extended-warranty", - "fashion-accessories", - "footwear", - "grocery", - "home-and-kitchen-appliances", - "home-and-living", - "industrial-supplies", - "innerwear-and-sleepwear", - "jewellery", - "kids-accessories", - "kids-furniture", - "lighting-and-accessories", - "mobiles-and-tablets", - "office-stationery", - "snacks-and-beverages", - "sports-accessories", - "sunglasses-and-frames", - "supplementary", - "swimwear", - "switches-and-fuses", - "television-and-audio-systems", - "topwear", - "toys-and-games", - "video-games", - "watches-and-wearables" - ], - "slug": "product-identifiers", - "priority": 2, - "attributes": [ - { - "is_active": true, - "key": "item_code", - "slug": "item_code", - "priority": 3, - "display_type": "details", - "name": "Item Code" - }, - { - "is_active": true, - "key": "product_identifiers", - "slug": "product_identifiers", - "priority": 11, - "display_type": "details", - "name": "Product Identifiers" - }, - { - "is_active": true, - "key": "variant", - "slug": "variant", - "priority": 93, - "display_type": "details", - "name": "Variant" - } - ], - "name": "Product Identifiers" - }, - { - "is_active": true, - "template_slugs": [ - "activewear-accessories", - "baby-care", - "ethnicwear", - "extended-warranty", - "fashion-accessories", - "footwear", - "grocery", - "home-and-kitchen-appliances", - "home-and-living", - "industrial-supplies", - "innerwear-and-sleepwear", - "jewellery", - "kids-accessories", - "kids-furniture", - "lighting-and-accessories", - "mobiles-and-tablets", - "office-stationery", - "snacks-and-beverages", - "sports-accessories", - "sunglasses-and-frames", - "supplementary", - "swimwear", - "switches-and-fuses", - "television-and-audio-systems", - "topwear", - "toys-and-games", - "video-games", - "watches-and-wearables" - ], - "slug": "general-information", - "priority": 3, - "attributes": [ - { - "is_active": true, - "key": "general_information", - "slug": "general_information", - "priority": 4, - "display_type": "text", - "name": "General Information" - } - ], - "name": "General Information" - } - ] - } - }, - "app_id": "000000000000000000000001", - "config_type": "details_groups", - "listing": {}, - "modified_on": "2023-11-28T16:15:57.432632", - "modified_by": { - "username": "app@fynd.com", - "user_id": "000000000000000016841367" - }, - "created_on": "2023-11-28T16:15:57.432636", - "created_by": { - "username": "app@fynd.com", - "user_id": "000000000000000016841367" - } - } - } -} -``` -
+```
@@ -1484,103 +993,11 @@ success flag will tell whether the operation was successful.
-  Examples: - - -
-  success +  Example: ```json -{ - "value": { - "data": { - "type": "exampleType", - "config_type": "app", - "created_by": { - "user_id": "exampleUserId", - "username": "exampleUsername" - }, - "app_id": "000000000000000000000001", - "modified_by": { - "username": "rohanshah@fynd.com", - "user_id": "5e199e6998cfe1776f1385dc" - }, - "product": { - "variant": { - "config": [ - { - "key": "example_variant", - "priority": 1, - "name": "Example Variant", - "size": { - "min": 5, - "max": 15 - }, - "display_type": "example_display_type", - "is_active": true, - "logo": "https://example.com/variant_logo.png" - } - ] - }, - "similar": { - "config": [ - { - "key": "cushion-colour", - "priority": 27, - "size": { - "min": 1, - "max": 10 - }, - "subtitle": "Example Subtitle", - "is_active": true, - "logo": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/fyndnp/wrkr/addsale/misc/default-assets/original/popular.png", - "title": "Example Title" - } - ] - } - }, - "listing": { - "filter": { - "allow_single": false, - "attribute_config": [ - { - "key": "cushion-colour", - "type": "multivalued", - "priority": 27, - "name": "Cushion Colour", - "value_config": { - "condition": "OR", - "map": {}, - "value": "", - "bucket_points": [], - "sort": "count" - }, - "is_active": true, - "logo": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/fyndnp/wrkr/addsale/misc/default-assets/original/popular.png" - } - ] - }, - "sort": { - "config": [ - { - "key": "example_sort", - "priority": 1, - "name": "Example Sort", - "is_active": true, - "logo": "https://example.com/sort_logo.png" - } - ], - "default_key": "example_sort" - } - }, - "config_id": "000000000000000000000001", - "modified_on": "2023-12-04T06:35:57.161782" - } - } -} -``` -
+```
@@ -1631,48 +1048,11 @@ List of all the collections including the one you added. See example below or re
-  Examples: - - -
-  success +  Example: ```json -{ - "value": { - "results": [ - { - "logo": { - "url": "https://cdn.fynd.com/v2/falling-surf-7c8bb8/fyndnp/wrkr/addsale/company/10189/applications/64f9dd40a6fbe9f0dd1ef427/search/pictures/square-logo/original/N4FNal616-.webp", - "aspect_ratio": "1:1" - }, - "_custom_json": {}, - "display": "testfx2", - "action": { - "type": "page", - "page": { - "url": "/products/?brand=bernhard7788838818720231650253", - "query": { - "brand": [ - "bernhard7788838818720231650253" - ] - }, - "type": "products" - } - } - } - ], - "words": [ - "testfx2" - ], - "is_active": true, - "app_id": "64aed377b1fd04565d0dff30", - "uid": "656976a53f3646dd5917849f" - } -} -``` -
+```
@@ -1723,37 +1103,29 @@ Get keyword object with id that is added. See example below or refer `GetSearchW
-  Examples: - - -
-  success +  Example: ```json { - "value": { - "uid": "65685994b480f69f74090000", - "words": [ - "tx" - ], - "app_id": "64aed377b1fd04565d0dff30", - "is_active": true, - "result": { - "query": { - "category": [ - "stefan803249891872023121772" - ] - }, - "sort_on": "price_asc" + "_custom_json": {}, + "app_id": "000000000000000000000001", + "is_active": true, + "result": { + "query": { + "department": [ + "men" + ] }, - "_custom_json": {} - } + "sort_on": "popular" + }, + "uid": "602fa1e9a596ce349563f6b9", + "words": [ + "sds" + ] } ```
-
- @@ -1802,24 +1174,16 @@ Success Response. See example below or refer `DepartmentCreateResponseSchema` fo
-  Examples: - - -
-  success +  Example: ```json { - "value": { - "message": "Success", - "uid": 2 - } + "message": "Success", + "uid": 2 } ```
-
- @@ -1853,7 +1217,7 @@ const data = await platformClient.application("").catalog.create | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | | configType | string | yes | A `config_type` is a unique identifier for a particular group configuration type. | -| body | [AppConfigurationCreateDetail](#AppConfigurationCreateDetail) | yes | Request body | +| body | [AppConfigurationDetail](#AppConfigurationDetail) | yes | Request body | Create configuration for Group config types. @@ -1871,40 +1235,34 @@ success flag will tell whether the operation was successful.
-  Examples: - - -
-  success +  Example: ```json { - "value": { - "is_active": true, - "slug": "testnew80", - "attributes": [ - { - "unit": "mm", - "is_active": true, - "slug": "length", - "key": "length", - "priority": 1, - "name": "Length", - "display_type": "text" - } - ], - "priority": 6, - "name": "testnew", - "app_id": "5d63686df2a4f7806b76bb32", - "is_default": false, - "id": "656c38ecbada751dd8324c49" - } + "app_id": "5d64e3500bcad8693a821c0d", + "attributes": [ + { + "display_type": "text", + "is_active": true, + "key": "features", + "name": "Features", + "priority": 1, + "slug": "features" + } + ], + "id": "62b1cdab15c88fa867ee4dac", + "is_active": true, + "is_default": false, + "name": "test", + "priority": 1, + "slug": "test15", + "template_slugs": [ + "bags" + ] } ```
-
- @@ -1953,43 +1311,11 @@ Returns a success response
-  Examples: - - -
-  success +  Example: ```json -{ - "value": { - "created_on": "2023-12-17T12:33:13.051283", - "filters": { - "brand_ids": [ - 19 - ], - "store_ids": [ - 1 - ] - }, - "task_id": "71c29cd8-9cd8-11ee-b775-eafa25acbfec", - "type": "excel", - "seller_id": 1, - "created_by": { - "username": "purvashukla_gofynd_com_01172", - "user_id": "492cc0ee949ef72b996a8d6e" - }, - "status": "pending", - "notification_emails": [], - "stats": { - "total": 1 - }, - "modified_on": "2023-12-17T12:33:13.051289", - "id": "657eea896a9d1426aa23d303" - } -} -``` -
+```
@@ -2040,40 +1366,11 @@ Returns a success response
-  Examples: - - -
-  success +  Example: ```json -{ - "value": { - "_id": "657ed134c39a2476add14169", - "created_on": "2023-12-17T10:45:08.298503Z", - "status": "pending", - "modified_on": "2023-12-17T10:45:08.298521", - "created_by": { - "user_id": "5e199e6998cfe1776f1385dc", - "username": "rohanshah@fynd.com" - }, - "notification_emails": [], - "stats": {}, - "seller_id": 10, - "task_id": "588bd932-9cc9-11ee-8cc4-d6fb2161153f", - "type": "excel", - "trigger_on": "2023-12-17T10:45:08.298503Z", - "brand": [ - 19 - ], - "store": [ - 1 - ] - } -} -``` -
+```
@@ -2109,7 +1406,7 @@ const data = await platformClient.application("").catalog.create | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | | configType | string | yes | A `config_type` is a unique identifier for a particular listing configuration type. | -| body | [AppConfigurationsFilter](#AppConfigurationsFilter) | yes | Request body | +| body | [AppConfigurationsSort](#AppConfigurationsSort) | yes | Request body | Add configuration for listing. @@ -2119,7 +1416,7 @@ Add configuration for listing. -[AppConfigurationsFilterResponse](#AppConfigurationsFilterResponse) +[AppConfigurationsSort](#AppConfigurationsSort) success flag will tell whether the operation was successful. @@ -2127,39 +1424,23 @@ success flag will tell whether the operation was successful.
-  Examples: - - -
-  success +  Example: ```json { - "value": { - "is_default": false, - "priority": 27, - "name": "Cushion Colour", - "value_config": { - "value": "", - "map": {}, - "condition": "OR", - "sort": "count", - "bucket_points": [] - }, - "type": "multivalued", - "app_id": "5d63686df2a4f7806b76bb32", - "key": "cushion-colour", - "logo": "/misc/default-assets/original/popular.png", - "allow_single": false, - "is_active": true, - "id": "656c6fb2a28ce84a37ec40cd" - } + "app_id": "5d64e3500bcad8693a821c0d", + "default_key": "", + "id": "62b1ccb815c88fa867ee4dab", + "is_active": true, + "is_default": false, + "key": "discount_dsc", + "logo": "https://hdn-1.fynd.com/products/pictures/attribute/logo/original/iG82Qjay9X-Popularity.png", + "name": "Discount High to Low", + "priority": 4 } ```
-
- @@ -2172,7 +1453,7 @@ success flag will tell whether the operation was successful. ### createMarketplaceOptin -Update marketplace optin +Create/Update opt-in infomation. @@ -2192,58 +1473,30 @@ const data = await platformClient.catalog.createMarketplaceOptin({ marketplace | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| marketplace | string | yes | Slug of the marketplace . | -| body | [CreateMarketplaceOptinRequest](#CreateMarketplaceOptinRequest) | yes | Request body | +| marketplace | string | yes | The marketplace for which the detail needs to be retrieved. | +| body | [OptInPostRequest](#OptInPostRequest) | yes | Request body | -This API allows to create marketplace optin for a company. +Use this API to create/update opt-in information for given platform. If successful, returns data in the response body as specified in `OptInPostResponseSchema` *Returned Response:* -[CreateMarketplaceOptinResponse](#CreateMarketplaceOptinResponse) - -Update marketplace optin config. - +[UpdatedResponse](#UpdatedResponse) +See example below or refer `UpdatedResponse` for details. -
-  Examples:
-  success +  Example: ```json -{ - "value": { - "store_ids": [ - 10 - ], - "brand_ids": [ - 1 - ], - "company_id": 10, - "opt_level": "9", - "platform": "test", - "enabled": true, - "created_by": { - "username": "rohanshah@fynd.com", - "user_id": "5e199e6998cfe1776f1385dc" - }, - "modified_by": { - "username": "rohanshah@fynd.com", - "user_id": "5e199e6998cfe1776f1385dc" - }, - "app_id": "" - } -} -``` -
+```
@@ -2257,19 +1510,17 @@ Update marketplace optin config. --- -### createMerchandisingRuleBoostAction -Create Merchandising Rule's Boost action details +### createProduct +Create a product. ```javascript // Promise -const promise = platformClient.application("").catalog.createMerchandisingRuleBoostAction({ merchandisingRuleId : value, - body : value }); +const promise = platformClient.catalog.createProduct({ body : value }); // Async/Await -const data = await platformClient.application("").catalog.createMerchandisingRuleBoostAction({ merchandisingRuleId : value, - body : value }); +const data = await platformClient.catalog.createProduct({ body : value }); ``` @@ -2277,21 +1528,20 @@ const data = await platformClient.application("").catalog.create | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| merchandisingRuleId | string | yes | A `merchandising_rule_id` is a unique identifier for a particular merchandising rule. | -| body | [GetMerchandisingRuleBoostAction](#GetMerchandisingRuleBoostAction) | yes | Request body | +| --------- | ----- | -------- | ----------- | +| body | [ProductCreateUpdateSchemaV2](#ProductCreateUpdateSchemaV2) | yes | Request body | -This allows you to create Boost action of a merchandising rule. +This API allows to create product. *Returned Response:* -[SuccessResponseMerchandising](#SuccessResponseMerchandising) +[SuccessResponse1](#SuccessResponse1) -List of Boost conditions. See example below or refer `SuccessResponseMerchandising` for details +Returns a success response @@ -2301,7 +1551,7 @@ List of Boost conditions. See example below or refer `SuccessResponseMerchandisi ```json { - "message": "ok" + "success": true } ```
@@ -2317,19 +1567,17 @@ List of Boost conditions. See example below or refer `SuccessResponseMerchandisi --- -### createMerchandisingRuleBuryAction -Get Merchandising Rule's Bury action details +### createProductAssetsInBulk +Create a Bulk asset upload Job. ```javascript // Promise -const promise = platformClient.application("").catalog.createMerchandisingRuleBuryAction({ merchandisingRuleId : value, - body : value }); +const promise = platformClient.catalog.createProductAssetsInBulk({ body : value }); // Async/Await -const data = await platformClient.application("").catalog.createMerchandisingRuleBuryAction({ merchandisingRuleId : value, - body : value }); +const data = await platformClient.catalog.createProductAssetsInBulk({ body : value }); ``` @@ -2337,21 +1585,20 @@ const data = await platformClient.application("").catalog.create | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| merchandisingRuleId | string | yes | A `merchandising_rule_id` is a unique identifier for a particular merchandising rule. | -| body | [GetMerchandisingRuleBuryAction](#GetMerchandisingRuleBuryAction) | yes | Request body | +| --------- | ----- | -------- | ----------- | +| body | [ProductBulkAssets](#ProductBulkAssets) | yes | Request body | -This allows you to create Bury action of a merchandising rule. +This API helps to create a bulk asset upload job. *Returned Response:* -[SuccessResponseMerchandising](#SuccessResponseMerchandising) +[SuccessResponse](#SuccessResponse) -List of Bury conditions. See example below or refer `SuccessResponseMerchandising` for details +Returns a success response @@ -2360,7 +1607,9 @@ List of Bury conditions. See example below or refer `SuccessResponseMerchandisin   Example: ```json -null +{ + "success": true +} ```
@@ -2375,19 +1624,17 @@ null --- -### createMerchandisingRuleHideAction -Create Merchandising Rule's Hide action details +### createProductBundle +Create Product Bundle ```javascript // Promise -const promise = platformClient.application("").catalog.createMerchandisingRuleHideAction({ merchandisingRuleId : value, - body : value }); +const promise = platformClient.catalog.createProductBundle({ body : value }); // Async/Await -const data = await platformClient.application("").catalog.createMerchandisingRuleHideAction({ merchandisingRuleId : value, - body : value }); +const data = await platformClient.catalog.createProductBundle({ body : value }); ``` @@ -2395,21 +1642,20 @@ const data = await platformClient.application("").catalog.create | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| merchandisingRuleId | string | yes | A `merchandising_rule_id` is a unique identifier for a particular merchandising rule. | -| body | [HideRequest](#HideRequest) | yes | Request body | +| --------- | ----- | -------- | ----------- | +| body | [ProductBundleRequest](#ProductBundleRequest) | yes | Request body | -This allows you to create hide action of a merchandising rule. +Create Product Bundle. See `ProductBundleRequest` for the request body parameter need to create a product bundle. On successful request, returns in `ProductBundleRequest` with id *Returned Response:* -[SuccessResponseMerchandising](#SuccessResponseMerchandising) +[GetProductBundleCreateResponse](#GetProductBundleCreateResponse) -List of hide items. See example below or refer `SuccessResponseMerchandising` for details +Get bundle with id that is added. See example below or refer `GetProductBundleCreateResponse` for details @@ -2419,7 +1665,38 @@ List of hide items. See example below or refer `SuccessResponseMerchandising` fo ```json { - "message": "ok" + "choice": "multi", + "company_id": 1, + "created_by": { + "uid": "123", + "username": "917827311650_22960" + }, + "created_on": "2021-02-19 16:40:26.310007", + "id": "602f9ca2a596ce312f5956f9", + "is_active": true, + "logo": "http://g.com/poo.png/", + "meta": {}, + "modified_by": { + "uid": "123", + "username": "917827311650_22960" + }, + "modified_on": "2021-02-19 16:40:26.310027", + "name": "Bag", + "page_visibility": [ + "pdp" + ], + "products": [ + { + "allow_remove": true, + "auto_add_to_cart": false, + "auto_select": false, + "max_quantity": 1, + "min_quantity": 1, + "product_uid": 7500001 + } + ], + "same_store_assignment": true, + "slug": "bag" } ``` @@ -2435,19 +1712,17 @@ List of hide items. See example below or refer `SuccessResponseMerchandising` fo --- -### createMerchandisingRulePinAction -Create Merchandising Rule's action details +### createProductExportJob +Create a product export job. ```javascript // Promise -const promise = platformClient.application("").catalog.createMerchandisingRulePinAction({ merchandisingRuleId : value, - body : value }); +const promise = platformClient.catalog.createProductExportJob({ body : value }); // Async/Await -const data = await platformClient.application("").catalog.createMerchandisingRulePinAction({ merchandisingRuleId : value, - body : value }); +const data = await platformClient.catalog.createProductExportJob({ body : value }); ``` @@ -2455,21 +1730,20 @@ const data = await platformClient.application("").catalog.create | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| merchandisingRuleId | string | yes | A `merchandising_rule_id` is a unique identifier for a particular merchandising rule. | -| body | [PinRequest](#PinRequest) | yes | Request body | +| --------- | ----- | -------- | ----------- | +| body | [ProductTemplateDownloadsExport](#ProductTemplateDownloadsExport) | yes | Request body | -This allows you to create pin action of a merchandising rule. +This API helps to create a Inventory export job. *Returned Response:* -[SuccessResponseMerchandising](#SuccessResponseMerchandising) +[ProductDownloadsResponse](#ProductDownloadsResponse) -List of pinned items. See example below or refer `SuccessResponseMerchandising` for details +Returns a success response @@ -2479,7 +1753,30 @@ List of pinned items. See example below or refer `SuccessResponseMerchandising` ```json { - "message": "ok" + "data": { + "_id": "6401cb6729885c34aa30b0c6", + "created_by": { + "user_id": "550fe8ce436ea332b9e4b4b0", + "username": "purvashukla_gofynd_com_44895" + }, + "created_on": "2023-03-03T10:26:47.047171Z", + "filters": { + "brands": [], + "catalogue_types": [ + "standard" + ], + "templates": [ + "footwear" + ] + }, + "modified_on": "2023-03-03T10:26:47.047179", + "notification_emails": [], + "seller_id": 577, + "stats": {}, + "status": "pending", + "task_id": "e6c47f1a-b9ad-11ed-b7a0-3ef7b700888d", + "type": "excel" + } } ``` @@ -2495,17 +1792,19 @@ List of pinned items. See example below or refer `SuccessResponseMerchandising` --- -### createMerchandisingRuleQuery -Create a Merchandising Rule's query +### createProductsInBulk +Create products in bulk associated with given batch Id. ```javascript // Promise -const promise = platformClient.application("").catalog.createMerchandisingRuleQuery({ body : value }); +const promise = platformClient.catalog.createProductsInBulk({ batchId : value, + body : value }); // Async/Await -const data = await platformClient.application("").catalog.createMerchandisingRuleQuery({ body : value }); +const data = await platformClient.catalog.createProductsInBulk({ batchId : value, + body : value }); ``` @@ -2513,20 +1812,21 @@ const data = await platformClient.application("").catalog.create | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| body | [MerchandisingRuleQueryPost](#MerchandisingRuleQueryPost) | yes | Request body | +| --------- | ----- | -------- | ----------- | +| batchId | string | yes | Batch Id in which assets to be uploaded. | +| body | [BulkProductRequest](#BulkProductRequest) | yes | Request body | -This allows you to Create a merchandising rule's query. +This API helps to create products in bulk push to kafka for approval/creation. *Returned Response:* -[MerchandiseQueryResponse](#MerchandiseQueryResponse) +[SuccessResponse](#SuccessResponse) -Update a merchandise rule's query. See example below or refer `MerchandiseQueryResponse` for details +Returns a success response @@ -2536,8 +1836,7 @@ Update a merchandise rule's query. See example below or refer `MerchandiseQueryR ```json { - "message": "ok", - "merchandising_rule_id": "r4f34f3f" + "success": true } ``` @@ -2553,17 +1852,17 @@ Update a merchandise rule's query. See example below or refer `MerchandiseQueryR --- -### createProduct -Create a product. +### createSearchConfiguration +Update search configuration for an application ```javascript // Promise -const promise = platformClient.catalog.createProduct({ body : value }); +const promise = platformClient.application("").catalog.createSearchConfiguration({ body : value }); // Async/Await -const data = await platformClient.catalog.createProduct({ body : value }); +const data = await platformClient.application("").catalog.createSearchConfiguration({ body : value }); ``` @@ -2572,42 +1871,46 @@ const data = await platformClient.catalog.createProduct({ body : value }); | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| body | [ProductCreateUpdateSchemaV2](#ProductCreateUpdateSchemaV2) | yes | Request body | +| body | [CreateSearchConfigurationRequest](#CreateSearchConfigurationRequest) | yes | Request body | -This API allows to create product. +This view allows you to modify searchable attributes for an application *Returned Response:* -[SuccessResponse1](#SuccessResponse1) - -Returns a success response - +[CreateSearchConfigurationResponse](#CreateSearchConfigurationResponse) +List of custom search keywords. See example below or refer `CreateSearchConfigurationResponse` for details -
-  Examples:
-  success +  Example: ```json { - "value": { - "success": true, - "uid": 7500000 - } + "application_id": 1234, + "company_id": 1, + "is_proximity_enabled": false, + "proximity": 2, + "searchable_attributes": [ + { + "key": "brand_uid", + "priority": 1 + }, + { + "key": "category_uid", + "priority": 2 + } + ] } ```
-
- @@ -2619,17 +1922,17 @@ Returns a success response --- -### createProductAssetsInBulk -Create a Bulk asset upload Job. +### createSizeGuide +Create a size guide. ```javascript // Promise -const promise = platformClient.catalog.createProductAssetsInBulk({ body : value }); +const promise = platformClient.catalog.createSizeGuide({ body : value }); // Async/Await -const data = await platformClient.catalog.createProductAssetsInBulk({ body : value }); +const data = await platformClient.catalog.createSizeGuide({ body : value }); ``` @@ -2638,10 +1941,10 @@ const data = await platformClient.catalog.createProductAssetsInBulk({ body : va | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| body | [ProductBulkAssets](#ProductBulkAssets) | yes | Request body | +| body | [ValidateSizeGuide](#ValidateSizeGuide) | yes | Request body | -This API helps to create a bulk asset upload job. +This API allows to create a size guide associated to a brand. *Returned Response:* @@ -2656,23 +1959,15 @@ Returns a success response
-  Examples: - - -
-  success +  Example: ```json { - "value": { - "success": true - } + "success": true } ```
-
- @@ -2684,17 +1979,17 @@ Returns a success response --- -### createProductBundle -Create Product Bundle +### deleteAppCategoryReturnConfiguration +Delete Category level Application Return Configuration setttings ```javascript // Promise -const promise = platformClient.catalog.createProductBundle({ body : value }); +const promise = platformClient.application("").catalog.deleteAppCategoryReturnConfiguration({ body : value }); // Async/Await -const data = await platformClient.catalog.createProductBundle({ body : value }); +const data = await platformClient.application("").catalog.deleteAppCategoryReturnConfiguration({ body : value }); ``` @@ -2703,19 +1998,19 @@ const data = await platformClient.catalog.createProductBundle({ body : value }) | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| body | [ProductBundleRequest](#ProductBundleRequest) | yes | Request body | +| body | [DeleteAppCategoryReturnConfig](#DeleteAppCategoryReturnConfig) | yes | Request body | -Create Product Bundle. See `ProductBundleRequest` for the request body parameter need to create a product bundle. On successful request, returns in `ProductBundleRequest` with id +Delete Category level Application Return Configuration setttings *Returned Response:* -[GetProductBundleCreateResponse](#GetProductBundleCreateResponse) +[SuccessResponse](#SuccessResponse) -Get bundle with id that is added. See example below or refer `GetProductBundleCreateResponse` for details +success message will tell whether the operation was successful. @@ -2725,42 +2020,12 @@ Get bundle with id that is added. See example below or refer `GetProductBundleCr
-  success +  default ```json { "value": { - "choice": "single", - "slug": "bundlename", - "created_on": "2023-11-30T06:47:07.688761", - "meta": {}, - "is_active": true, - "name": "bundlename", - "_id": "65682febbccabf31d2e6cc9e", - "products": [ - { - "auto_select": false, - "max_quantity": 1, - "product_uid": 7582054, - "auto_add_to_cart": false, - "min_quantity": 1, - "allow_remove": true - } - ], - "modified_by": { - "username": "test", - "user_id": "492cc0ee949ef72b996a8d6e" - }, - "company_id": 1, - "modified_on": "2023-11-30T06:47:07.688770", - "same_store_assignment": true, - "page_visibility": [], - "logo": "https://cdn.fynd.com/v2/falling-surf-7c8bb8/fyndnp/wrkr/addsale/products/pictures/bundle/free/original/DkFGbYsDf-K1Yy48yxL-Samsung-Galaxy-A14-5G-128-GB-6-GB-RAM-Light-Green-Mobile-Phone.webp", - "created_by": { - "username": "test", - "user_id": "492cc0ee949ef72b996a8d6e" - }, - "id": "65682febbccabf31d2e6cc9e" + "success": true } } ``` @@ -2779,17 +2044,17 @@ Get bundle with id that is added. See example below or refer `GetProductBundleCr --- -### createProductExportJob -Create a product export job. +### deleteAutocompleteKeyword +Delete a Autocomplete Keywords ```javascript // Promise -const promise = platformClient.catalog.createProductExportJob({ body : value }); +const promise = platformClient.application("").catalog.deleteAutocompleteKeyword({ id : value }); // Async/Await -const data = await platformClient.catalog.createProductExportJob({ body : value }); +const data = await platformClient.application("").catalog.deleteAutocompleteKeyword({ id : value }); ``` @@ -2797,65 +2062,35 @@ const data = await platformClient.catalog.createProductExportJob({ body : value | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| body | [ProductTemplateDownloadsExport](#ProductTemplateDownloadsExport) | yes | Request body | - +| --------- | ----- | -------- | ----------- | +| id | string | yes | A `id` is a unique identifier for a particular detail. Pass the `id` of the keywords which you want to delete. | -This API helps to create a Inventory export job. -*Returned Response:* +Delete a keywords by it's id. Returns an object that tells whether the keywords was deleted successfully +*Returned Response:* -[CreateProductDownloadsResponse](#CreateProductDownloadsResponse) -Returns a success response +[DeleteResponse](#DeleteResponse) +Status object. Tells whether the operation was successful. See example below or refer `DeleteResponse` -
-  Examples:
-  success +  Example: ```json { - "value": { - "data": { - "_id": "6401cb6729885c34aa30b0c6", - "created_by": { - "user_id": "550fe8ce436ea332b9e4b4b0", - "username": "purvashukla_gofynd_com_44895" - }, - "created_on": "2023-03-03T10:26:47.047171Z", - "filters": { - "brands": [], - "catalogue_types": [ - "standard" - ], - "templates": [ - "footwear" - ] - }, - "modified_on": "2023-03-03T10:26:47.047179", - "notification_emails": [], - "seller_id": 577, - "stats": {}, - "status": "pending", - "task_id": "e6c47f1a-b9ad-11ed-b7a0-3ef7b700888d", - "type": "excel" - } - } + "message": "Words Deleted" } ```
-
- @@ -2867,19 +2102,17 @@ Returns a success response --- -### createProductPriceFactoryBulkJob - +### deleteBulkInventoryJob +Delete Bulk Inventory job. ```javascript // Promise -const promise = platformClient.application("").catalog.createProductPriceFactoryBulkJob({ id : value, - body : value }); +const promise = platformClient.catalog.deleteBulkInventoryJob({ batchId : value }); // Async/Await -const data = await platformClient.application("").catalog.createProductPriceFactoryBulkJob({ id : value, - body : value }); +const data = await platformClient.catalog.deleteBulkInventoryJob({ batchId : value }); ``` @@ -2888,20 +2121,20 @@ const data = await platformClient.application("").catalog.create | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| id | string | yes | An `id` is a unique identifier for a particular price factory. | -| body | [CreateAppPriceFactoryProductBulkJobRequest](#CreateAppPriceFactoryProductBulkJobRequest) | yes | Request body | +| batchId | string | yes | Batch Id of the bulk delete job. | + -This API allows to create bulk job for adding products in price factory. +This API allows to delete bulk Inventory job associated with company. *Returned Response:* -[CreateAppPriceFactoryProductBulkJobResponse](#CreateAppPriceFactoryProductBulkJobResponse) +[SuccessResponse](#SuccessResponse) -Success response +Returns a success response @@ -2911,18 +2144,7 @@ Success response ```json { - "job_id": "507f1f77bcf86cd799439011", - "status": "pending", - "created_on": "2021-09-23T12:00:00.000000Z", - "modified_on": "2021-09-23T12:00:00.000000Z", - "created_by": { - "user_id": "507f1f77bcf86cd799439011", - "username": "testuser" - }, - "modified_by": { - "user_id": "507f1f77bcf86cd799439011", - "username": "testuser" - } + "success": true } ```
@@ -2938,19 +2160,17 @@ Success response --- -### createProductsInBulk -Create products in bulk associated with given batch Id. +### deleteCollection +Delete a Collection ```javascript // Promise -const promise = platformClient.catalog.createProductsInBulk({ batchId : value, - body : value }); +const promise = platformClient.application("").catalog.deleteCollection({ id : value }); // Async/Await -const data = await platformClient.catalog.createProductsInBulk({ batchId : value, - body : value }); +const data = await platformClient.application("").catalog.deleteCollection({ id : value }); ``` @@ -2959,42 +2179,34 @@ const data = await platformClient.catalog.createProductsInBulk({ batchId : valu | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| batchId | string | yes | Batch Id in which assets to be uploaded. | -| body | [BulkProductRequest](#BulkProductRequest) | yes | Request body | - +| id | string | yes | A `id` is a unique identifier of a collection. | -This API helps to create products in bulk push to kafka for approval/creation. -*Returned Response:* +Delete a collection by it's id. Returns an object that tells whether the collection was deleted successfully +*Returned Response:* -[SuccessResponse](#SuccessResponse) -Returns a success response +[CommonResponseSchemaCollection](#CommonResponseSchemaCollection) +Status object. Tells whether the operation was successful. -
-  Examples:
-  success +  Example: ```json { - "value": { - "success": true - } + "message": "Collection Deleted" } ```
-
- @@ -3006,17 +2218,19 @@ Returns a success response --- -### createSearchConfiguration -Update search configuration for an application +### deleteGroupConfiguration +Delete configuration of the product config type of the application. ```javascript // Promise -const promise = platformClient.application("").catalog.createSearchConfiguration({ body : value }); +const promise = platformClient.application("").catalog.deleteGroupConfiguration({ configType : value, + groupSlug : value }); // Async/Await -const data = await platformClient.application("").catalog.createSearchConfiguration({ body : value }); +const data = await platformClient.application("").catalog.deleteGroupConfiguration({ configType : value, + groupSlug : value }); ``` @@ -3024,42 +2238,36 @@ const data = await platformClient.application("").catalog.create | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| body | [CreateSearchConfigurationRequest](#CreateSearchConfigurationRequest) | yes | Request body | +| --------- | ----- | -------- | ----------- | +| configType | string | yes | A `config_type` is a unique identifier for a particular group configuration type. | +| groupSlug | string | yes | A `group_slug` is a unique identifier of a particular configuration. | -This view allows you to modify searchable attributes for an application + +Delete configuration of the product config type of the application. *Returned Response:* -[CreateSearchConfigurationResponse](#CreateSearchConfigurationResponse) +[ConfigSuccessResponse](#ConfigSuccessResponse) -List of custom search keywords. See example below or refer `CreateSearchConfigurationResponse` for details +success message will tell whether the operation was successful.
-  Examples: - - -
-  success +  Example: ```json { - "value": { - "success": true - } + "message": "Config Item deleted successfully." } ```
-
- @@ -3071,17 +2279,19 @@ List of custom search keywords. See example below or refer `CreateSearchConfigur --- -### createSearchRerank -Create search rerank for an application +### deleteListingConfiguration +Delete configuration for listings ```javascript // Promise -const promise = platformClient.application("").catalog.createSearchRerank({ body : value }); +const promise = platformClient.application("").catalog.deleteListingConfiguration({ configType : value, + configId : value }); // Async/Await -const data = await platformClient.application("").catalog.createSearchRerank({ body : value }); +const data = await platformClient.application("").catalog.deleteListingConfiguration({ configType : value, + configId : value }); ``` @@ -3089,64 +2299,36 @@ const data = await platformClient.application("").catalog.create | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| body | [CreateSearchRerankRequest](#CreateSearchRerankRequest) | yes | Request body | - +| --------- | ----- | -------- | ----------- | +| configType | string | yes | A `config_type` is a unique identifier for a particular listing configuration type. | +| configId | string | yes | A `config_id` is a unique identifier of a particular configuration. | -This view allows you to create search rerank attributes for an application -*Returned Response:* +Delete configuration for listing. +*Returned Response:* -[CreateSearchRerankResponse](#CreateSearchRerankResponse) -List of custom search keywords. See example below or refer `CreateSearchRerankResponse` for details +[ConfigSuccessResponse](#ConfigSuccessResponse) +success message will tell whether the operation was successful. -
-  Examples:
-  success +  Example: ```json { - "value": { - "words": [ - "test" - ], - "app_id": "64aed475db2cfb5b8a9f623d", - "ranking": { - "boost": [ - { - "attribute_value": "test", - "attribute_key": "l3_category_slugs" - } - ] - }, - "is_active": true, - "created_on": "2023-12-24T07:10:55.725539", - "created_by": { - "username": "rohanshah@fynd.com", - "user_id": "5e199e6998cfe1776f1385dc" - }, - "modified_on": "2023-12-24T07:10:55.725553", - "modified_by": { - "username": "rohanshah@fynd.com", - "user_id": "5e199e6998cfe1776f1385dc" - } - } + "message": "Config Item deleted successfully." } ```
-
- @@ -3158,17 +2340,17 @@ List of custom search keywords. See example below or refer `CreateSearchRerankRe --- -### createSizeGuide -Create a size guide. +### deleteProduct +Delete a product. ```javascript // Promise -const promise = platformClient.catalog.createSizeGuide({ body : value }); +const promise = platformClient.catalog.deleteProduct({ itemId : value }); // Async/Await -const data = await platformClient.catalog.createSizeGuide({ body : value }); +const data = await platformClient.catalog.deleteProduct({ itemId : value }); ``` @@ -3176,11 +2358,12 @@ const data = await platformClient.catalog.createSizeGuide({ body : value }); | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| body | [ValidateSizeGuide](#ValidateSizeGuide) | yes | Request body | +| --------- | ----- | -------- | ----------- | +| itemId | number | yes | Id of the product to be updated. | -This API allows to create a size guide associated to a brand. + +This API allows to delete product. *Returned Response:* @@ -3195,23 +2378,15 @@ Returns a success response
-  Examples: - - -
-  success +  Example: ```json { - "value": { - "success": true - } + "success": true } ```
-
- @@ -3223,17 +2398,17 @@ Returns a success response --- -### deleteAppCategoryReturnConfiguration -Delete Category level Application Return Configuration setttings +### deleteProductBulkJob +Delete Bulk product job. ```javascript // Promise -const promise = platformClient.application("").catalog.deleteAppCategoryReturnConfiguration({ body : value }); +const promise = platformClient.catalog.deleteProductBulkJob({ batchId : value }); // Async/Await -const data = await platformClient.application("").catalog.deleteAppCategoryReturnConfiguration({ body : value }); +const data = await platformClient.catalog.deleteProductBulkJob({ batchId : value }); ``` @@ -3241,11 +2416,12 @@ const data = await platformClient.application("").catalog.delete | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| body | [DeleteAppCategoryReturnConfig](#DeleteAppCategoryReturnConfig) | yes | Request body | +| --------- | ----- | -------- | ----------- | +| batchId | number | yes | Batch Id of the bulk product job to be deleted. | -Delete Category level Application Return Configuration setttings + +This API allows to delete bulk product job associated with company. *Returned Response:* @@ -3254,29 +2430,21 @@ Delete Category level Application Return Configuration setttings [SuccessResponse](#SuccessResponse) -success message will tell whether the operation was successful. - - +Returns a success response -
-  Examples:
-  success +  Example: ```json { - "value": { - "success": true - } + "success": true } ```
-
- @@ -3288,17 +2456,21 @@ success message will tell whether the operation was successful. --- -### deleteAutocompleteKeyword -Delete a Autocomplete Keywords +### deleteRealtimeInventory +Add Inventory for particular size and store. ```javascript // Promise -const promise = platformClient.application("").catalog.deleteAutocompleteKeyword({ id : value }); +const promise = platformClient.catalog.deleteRealtimeInventory({ itemId : value, + sellerIdentifier : value, + body : value }); // Async/Await -const data = await platformClient.application("").catalog.deleteAutocompleteKeyword({ id : value }); +const data = await platformClient.catalog.deleteRealtimeInventory({ itemId : value, + sellerIdentifier : value, + body : value }); ``` @@ -3307,42 +2479,65 @@ const data = await platformClient.application("").catalog.delete | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| id | string | yes | A `id` is a unique identifier for a particular detail. Pass the `id` of the keywords which you want to delete. | - +| itemId | number | yes | Item code of the product of which size is to be get. | +| sellerIdentifier | string | yes | Size Identifier (Seller Identifier or Primary Identifier) of which inventory is to get. | +| body | [InventoryRequestSchemaV2](#InventoryRequestSchemaV2) | yes | Request body | -Delete a keywords by it's id. Returns an object that tells whether the keywords was deleted successfully +This API allows add Inventory for particular size and store. *Returned Response:* -[DeleteResponse](#DeleteResponse) - -Status object. Tells whether the operation was successful. See example below or refer `DeleteResponse` - +[InventoryUpdateResponse](#InventoryUpdateResponse) +Returns a success response -
-  Examples:
-  success +  Example: ```json { - "value": { - "message": "Words Deleted" - } + "items": [ + { + "data": { + "expiration_date": "9998-01-30T23:59:00", + "price_effective": 109.01, + "price_marked": 130, + "seller_identifier": "SELLER123", + "store_id": 124, + "total_quantity": 34 + }, + "reason": { + "message": "Product not found", + "reason_code": 2005 + } + }, + { + "data": { + "expiration_date": "9998-01-30T23:59:00", + "price_effective": 109.01, + "price_marked": 130, + "seller_identifier": "SELLER123", + "store_id": 124, + "total_quantity": 34 + }, + "reason": { + "message": "Size not found", + "reason_code": 2004 + } + } + ], + "message": "Partially Successful" } ```
-
- @@ -3354,61 +2549,48 @@ Status object. Tells whether the operation was successful. See example below or --- -### deleteBulkInventoryJob -Delete Bulk Inventory job. +### deleteSearchConfiguration +Delete search configuration for an application ```javascript // Promise -const promise = platformClient.catalog.deleteBulkInventoryJob({ batchId : value }); +const promise = platformClient.application("").catalog.deleteSearchConfiguration(); // Async/Await -const data = await platformClient.catalog.deleteBulkInventoryJob({ batchId : value }); +const data = await platformClient.application("").catalog.deleteSearchConfiguration(); ``` -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| batchId | string | yes | Batch Id of the bulk delete job. | - - -This API allows to delete bulk Inventory job associated with company. +This view allows you to reset search config for an application *Returned Response:* -[SuccessResponse](#SuccessResponse) - -Returns a success response - +[DeleteSearchConfigurationResponse](#DeleteSearchConfigurationResponse) +Status of the delete operation. See `DeleteSearchConfigurationResponse` for details -
-  Examples:
-  success +  Example: ```json { - "value": { - "success": true - } + "success": true } ```
-
- @@ -3420,17 +2602,17 @@ Returns a success response --- -### deleteCollection -Delete a Collection +### deleteSearchKeywords +Delete a Search Keywords ```javascript // Promise -const promise = platformClient.application("").catalog.deleteCollection({ id : value }); +const promise = platformClient.application("").catalog.deleteSearchKeywords({ id : value }); // Async/Await -const data = await platformClient.application("").catalog.deleteCollection({ id : value }); +const data = await platformClient.application("").catalog.deleteSearchKeywords({ id : value }); ``` @@ -3439,42 +2621,34 @@ const data = await platformClient.application("").catalog.delete | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| id | string | yes | A `id` is a unique identifier of a collection. | +| id | string | yes | A `id` is a unique identifier for a particular detail. Pass the `id` of the keywords which you want to delete. | -Delete a collection by it's id. Returns an object that tells whether the collection was deleted successfully +Delete a keywords by it's id. Returns an object that tells whether the keywords was deleted successfully *Returned Response:* -[CommonResponseSchemaCollection](#CommonResponseSchemaCollection) - -Status object. Tells whether the operation was successful. - +[DeleteResponse](#DeleteResponse) +Status object. Tells whether the operation was successful. See example below or refer `DeleteResponse` -
-  Examples:
-  success +  Example: ```json { - "value": { - "message": "Collection Deleted" - } + "message": "Words Deleted" } ```
-
- @@ -3486,19 +2660,19 @@ Status object. Tells whether the operation was successful. --- -### deleteGroupConfiguration -Delete configuration of the product config type of the application. +### deleteSize +Delete a Size associated with product. ```javascript // Promise -const promise = platformClient.application("").catalog.deleteGroupConfiguration({ configType : value, - groupSlug : value }); +const promise = platformClient.catalog.deleteSize({ itemId : value, + size : value }); // Async/Await -const data = await platformClient.application("").catalog.deleteGroupConfiguration({ configType : value, - groupSlug : value }); +const data = await platformClient.catalog.deleteSize({ itemId : value, + size : value }); ``` @@ -3507,43 +2681,40 @@ const data = await platformClient.application("").catalog.delete | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| configType | string | yes | A `config_type` is a unique identifier for a particular group configuration type. | -| groupSlug | string | yes | A `group_slug` is a unique identifier of a particular configuration. | +| itemId | number | yes | Item Id of the product associated with size to be deleted. | +| size | string | yes | size to be deleted. | -Delete configuration of the product config type of the application. +This API allows to delete size associated with product. *Returned Response:* -[ConfigSuccessResponse](#ConfigSuccessResponse) - -success message will tell whether the operation was successful. - +[ProductSizeDeleteResponse](#ProductSizeDeleteResponse) +Returns a success response -
-  Examples:
-  success +  Example: ```json { - "value": { - "message": "Config Item deleted successfully." - } + "data": { + "company_id": 1, + "item_id": 114, + "size": "3" + }, + "success": true } ```
-
- @@ -3555,19 +2726,17 @@ success message will tell whether the operation was successful. --- -### deleteListingConfiguration -Delete configuration for listings +### downloadInventoryTemplateView +Download Product Template View ```javascript // Promise -const promise = platformClient.application("").catalog.deleteListingConfiguration({ configType : value, - configId : value }); +const promise = platformClient.catalog.downloadInventoryTemplateView({ itemType : value }); // Async/Await -const data = await platformClient.application("").catalog.deleteListingConfiguration({ configType : value, - configId : value }); +const data = await platformClient.catalog.downloadInventoryTemplateView({ itemType : value }); ``` @@ -3576,41 +2745,30 @@ const data = await platformClient.application("").catalog.delete | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| configType | string | yes | A `config_type` is a unique identifier for a particular listing configuration type. | -| configId | string | yes | A `config_id` is a unique identifier of a particular configuration. | +| itemType | string | yes | An `item_type` defines the type of item. | -Delete configuration for listing. +Allows you to download product template data *Returned Response:* -[ConfigSuccessResponse](#ConfigSuccessResponse) - -success message will tell whether the operation was successful. - +[string](#string) +CSV File of product template data. -
-  Examples:
-  success +  Example: ```json -{ - "value": { - "message": "Config Item deleted successfully." - } -} -``` -
+```
@@ -3624,83 +2782,21 @@ success message will tell whether the operation was successful. --- -### deleteProduct -Delete a product. +### downloadProductTemplateViews +Download Product Template View ```javascript // Promise -const promise = platformClient.catalog.deleteProduct({ itemId : value }); - -// Async/Await -const data = await platformClient.catalog.deleteProduct({ itemId : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| itemId | number | yes | Id of the product to be updated. | - - - -This API allows to delete product. - -*Returned Response:* - - - - -[SuccessResponse](#SuccessResponse) - -Returns a success response - - - - -
-  Examples: - - -
-  success - -```json -{ - "value": { - "success": true - } -} -``` -
- -
- - - - - - - - - ---- - - -### deleteProductBulkJob -Delete Bulk product job. - - - -```javascript -// Promise -const promise = platformClient.catalog.deleteProductBulkJob({ batchId : value }); +const promise = platformClient.catalog.downloadProductTemplateViews({ slug : value, + itemType : value, + type : value }); // Async/Await -const data = await platformClient.catalog.deleteProductBulkJob({ batchId : value }); +const data = await platformClient.catalog.downloadProductTemplateViews({ slug : value, + itemType : value, + type : value }); ``` @@ -3709,40 +2805,32 @@ const data = await platformClient.catalog.deleteProductBulkJob({ batchId : valu | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| batchId | string | yes | Batch Id of the bulk product job to be deleted. | +| slug | string | yes | A `slug` is a unique identifier for a particular template. | +| itemType | string | no | An `item_type` defines the type of item. The default value is standard. | +| type | string | no | Format type of the sample file. The default value is excel. | -This API allows to delete bulk product job associated with company. +Allows you to download product template data *Returned Response:* -[SuccessResponse](#SuccessResponse) - -Returns a success response - +[string](#string) +CSV File of product template data. See example below or refer `TemplatesResponse` for details -
-  Examples:
-  success +  Example: ```json -{ - "value": { - "success": true - } -} -``` -
+```
@@ -3756,20 +2844,18 @@ Returns a success response --- -### deleteRealtimeInventory -Add Inventory for particular size and store. +### editProduct +Edit a product. ```javascript // Promise -const promise = platformClient.catalog.deleteRealtimeInventory({ itemId : value, - sellerIdentifier : value, +const promise = platformClient.catalog.editProduct({ itemId : value, body : value }); // Async/Await -const data = await platformClient.catalog.deleteRealtimeInventory({ itemId : value, - sellerIdentifier : value, +const data = await platformClient.catalog.editProduct({ itemId : value, body : value }); ``` @@ -3779,19 +2865,18 @@ const data = await platformClient.catalog.deleteRealtimeInventory({ itemId : va | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| itemId | number | yes | Item code of the product of which size is to be get. | -| sellerIdentifier | string | yes | Size Identifier (Seller Identifier or Primary Identifier) of which inventory is to get. | -| body | [InventoryRequestSchemaV2](#InventoryRequestSchemaV2) | yes | Request body | +| itemId | number | yes | Id of the product to be updated. | +| body | [ProductCreateUpdateSchemaV2](#ProductCreateUpdateSchemaV2) | yes | Request body | -This API allows add Inventory for particular size and store. +This API allows to edit product. *Returned Response:* -[InventoryUpdateResponse](#InventoryUpdateResponse) +[SuccessResponse](#SuccessResponse) Returns a success response @@ -3799,84 +2884,15 @@ Returns a success response
-  Examples: - - -
-  success - -```json -{ - "value": { - "success": true - } -} -``` -
- -
- - - - - - - - - ---- - - -### deleteSearchConfiguration -Delete search configuration for an application - - - -```javascript -// Promise -const promise = platformClient.application("").catalog.deleteSearchConfiguration(); - -// Async/Await -const data = await platformClient.application("").catalog.deleteSearchConfiguration(); -``` - - - - - - -This view allows you to reset search config for an application - -*Returned Response:* - - - - -[DeleteSearchConfigurationResponse](#DeleteSearchConfigurationResponse) - -Status of the delete operation. See `DeleteSearchConfigurationResponse` for details - - - - -
-  Examples: - - -
-  success +  Example: ```json { - "value": { - "success": true - } + "success": true } ```
-
- @@ -3888,17 +2904,17 @@ Status of the delete operation. See `DeleteSearchConfigurationResponse` for deta --- -### deleteSearchKeywords -Delete a Search Keywords +### exportInventoryConfig +Get List of different filters for inventory export ```javascript // Promise -const promise = platformClient.application("").catalog.deleteSearchKeywords({ id : value }); +const promise = platformClient.catalog.exportInventoryConfig({ filterType : value }); // Async/Await -const data = await platformClient.application("").catalog.deleteSearchKeywords({ id : value }); +const data = await platformClient.catalog.exportInventoryConfig({ filterType : value }); ``` @@ -3906,43 +2922,45 @@ const data = await platformClient.application("").catalog.delete | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| id | string | yes | A `id` is a unique identifier for a particular detail. Pass the `id` of the keywords which you want to delete. | +| --------- | ----- | -------- | ----------- | +| filterType | string | no | filter type from any one of ['brand', 'store', 'type'] | -Delete a keywords by it's id. Returns an object that tells whether the keywords was deleted successfully +This API allows get List of different filters like brand, store, and type for inventory export. *Returned Response:* -[DeleteResponse](#DeleteResponse) - -Status object. Tells whether the operation was successful. See example below or refer `DeleteResponse` - +[InventoryConfig](#InventoryConfig) +returns filters configuration for inventory export -
-  Examples:
-  success +  Example: ```json { - "value": { - "message": "Words Deleted" - } + "data": [ + { + "display": "csv", + "value": "csv" + }, + { + "display": "excel", + "value": "excel" + } + ], + "multivalues": true } ```
-
- @@ -3954,17 +2972,29 @@ Status object. Tells whether the operation was successful. See example below or --- -### deleteSearchRerankConfiguration -Delete search rerank configuration for an application +### getAllCollections +List all the collections ```javascript // Promise -const promise = platformClient.application("").catalog.deleteSearchRerankConfiguration({ id : value }); +const promise = platformClient.application("").catalog.getAllCollections({ q : value, + scheduleStatus : value, + type : value, + tags : value, + isActive : value, + pageNo : value, + pageSize : value }); // Async/Await -const data = await platformClient.application("").catalog.deleteSearchRerankConfiguration({ id : value }); +const data = await platformClient.application("").catalog.getAllCollections({ q : value, + scheduleStatus : value, + type : value, + tags : value, + isActive : value, + pageNo : value, + pageSize : value }); ``` @@ -3972,48 +3002,295 @@ const data = await platformClient.application("").catalog.delete | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| id | string | yes | An `id` is the identifier for a particular search rerank configuration. channel. | +| --------- | ----- | -------- | ----------- | +| q | string | no | Get collection list filtered by q string, | +| scheduleStatus | string | no | Get collection list filtered by scheduled status, | +| type | string | no | type of the collections | +| tags | Array | no | Each response will contain next_id param, which should be sent back to make pagination work. | +| isActive | boolean | no | get collections filtered by active status. | +| pageNo | number | no | The page number to navigate through the given set of results. | +| pageSize | number | no | Number of items to retrieve in each page. Default is 12. | -This view allows you to delete search rerank configuration for an application +A Collection allows you to organize your products into hierarchical groups. For example, a dress might be in the category _Clothing_, the individual product might also be in the collection _Summer_. On successful request, returns all the collections as specified in `CollectionListingSchema` *Returned Response:* -[DeleteSearchRerankConfigurationResponse](#DeleteSearchRerankConfigurationResponse) - -Status of the delete operation. See `DeleteSearchRerankConfigurationResponse` for details - +[GetCollectionListingResponse](#GetCollectionListingResponse) +List of collections. See example below or refer `GetCollectionListingResponse` for details -
-  Examples:
-  success +  Example: ```json { - "value": { - "success": true, - "message": "Ranking Config deleted" - } -} -``` -
- -
- - - - - + "filters": { + "tags": [ + { + "display": "1+", + "is_selected": false, + "name": "1+" + }, + { + "display": "aa", + "is_selected": false, + "name": "aa" + }, + { + "display": "asd", + "is_selected": false, + "name": "asd" + }, + { + "display": "dda", + "is_selected": false, + "name": "dda" + }, + { + "display": "fahim", + "is_selected": false, + "name": "fahim" + }, + { + "display": "gfg", + "is_selected": false, + "name": "gfg" + }, + { + "display": "sakri", + "is_selected": false, + "name": "sakri" + }, + { + "display": "sdsadas", + "is_selected": false, + "name": "sdsadas" + }, + { + "display": "uuy", + "is_selected": false, + "name": "uuy" + } + ], + "type": [ + { + "display": "items", + "is_selected": false, + "name": "items" + }, + { + "display": "query", + "is_selected": false, + "name": "query" + } + ] + }, + "items": [ + { + "_custom_json": {}, + "_locale_language": {}, + "_schedule": { + "end": null, + "next_schedule": [ + { + "end": null, + "start": "2021-03-04T15:35:13.640000Z" + } + ], + "start": "2021-03-04T15:35:13.640000Z" + }, + "action": { + "page": { + "query": { + "collection": [ + "test1" + ] + }, + "type": "collection" + }, + "type": "page" + }, + "allow_facets": true, + "allow_sort": true, + "badge": { + "color": "#ffffff", + "text": "" + }, + "banners": { + "landscape": { + "type": "image", + "url": "https://hdn-1.addsale.com/x0/company/1/applications/000000000000000000000001/collections/pictures/landscape-banner/original/3jSEzw9CN-1601465376892.jpeg" + }, + "portrait": { + "type": "image", + "url": "https://hdn-1.addsale.com/x0/company/1/applications/000000000000000000000001/collections/pictures/portrait-banner/original/mP6OnINGR-1601466767814.jpeg" + } + }, + "description": "this is description", + "is_active": true, + "logo": { + "type": "image", + "url": "https://hdn-1.addsale.com/x0/company/1/applications/000000000000000000000001/collections/pictures/square-logo/original/y_-XUYXwx-1602326103322.jpeg" + }, + "meta": {}, + "name": "test1", + "published": true, + "query": [], + "slug": "test1", + "sort_on": "price_asc", + "tags": [], + "type": "query", + "uid": "6040fed076d8a500011ef829", + "visible_facets_keys": [] + }, + { + "_custom_json": {}, + "_locale_language": {}, + "_schedule": { + "end": null, + "next_schedule": [ + { + "end": null, + "start": "2021-03-04T09:33:53.686000Z" + } + ], + "start": "2021-03-04T09:33:53.686000Z" + }, + "action": { + "page": { + "query": { + "collection": [ + "newapiplaform" + ] + }, + "type": "collection" + }, + "type": "page" + }, + "allow_facets": true, + "allow_sort": true, + "badge": { + "color": "#aa2727", + "text": "" + }, + "banners": { + "landscape": { + "type": "image", + "url": "https://res.cloudinary.com/dwzm9bysq/image/upload/v1588857999/production/applications/app_000000000000000000000001/media/collection/landscape/avm7xibo2jgk8glc4bwl.png" + }, + "portrait": { + "type": "image", + "url": "https://res.cloudinary.com/dwzm9bysq/image/upload/v1588858137/production/applications/app_000000000000000000000001/media/collection/portrait/xzuftshmmw4yuwzb12pm.png" + } + }, + "description": "sadasd", + "is_active": true, + "logo": { + "type": "image", + "url": "https://res.cloudinary.com/dwzm9bysq/image/upload/v1588857854/production/applications/app_000000000000000000000001/media/collection/logo/w9ns7nfgv7fk45xqrpoh.png" + }, + "meta": {}, + "name": "newapiplaform", + "published": true, + "query": [ + { + "attribute": "catalogue", + "op": "in", + "value": [] + } + ], + "slug": "newapiplaform", + "sort_on": "popular", + "tags": [ + "sdsadas", + "asd" + ], + "type": "items", + "uid": "6040a9b250f97e0001886294", + "visible_facets_keys": [] + }, + { + "_custom_json": {}, + "_locale_language": {}, + "_schedule": { + "end": null, + "next_schedule": [ + { + "end": null, + "start": "2021-03-03T10:45:40.544000Z" + } + ], + "start": "2021-03-03T10:45:40.544000Z" + }, + "action": { + "page": { + "query": { + "collection": [ + "old" + ] + }, + "type": "collection" + }, + "type": "page" + }, + "allow_facets": true, + "allow_sort": true, + "badge": { + "color": "#ffffff", + "text": "" + }, + "banners": { + "landscape": { + "type": "image", + "url": "https://res.cloudinary.com/dwzm9bysq/image/upload/v1588857999/production/applications/app_000000000000000000000001/media/collection/landscape/avm7xibo2jgk8glc4bwl.png" + }, + "portrait": { + "type": "image", + "url": "https://res.cloudinary.com/dwzm9bysq/image/upload/v1588858137/production/applications/app_000000000000000000000001/media/collection/portrait/xzuftshmmw4yuwzb12pm.png" + } + }, + "description": "", + "is_active": true, + "logo": { + "type": "image", + "url": "https://res.cloudinary.com/dwzm9bysq/image/upload/v1588857854/production/applications/app_000000000000000000000001/media/collection/logo/w9ns7nfgv7fk45xqrpoh.png" + }, + "meta": {}, + "name": "new", + "published": true, + "query": [], + "slug": "old", + "sort_on": "popular", + "tags": [], + "type": "query", + "uid": "603f68fd953a69000145dc92", + "visible_facets_keys": [] + } + ], + "page": { + "current": 1, + "has_next": true, + "has_previous": false, + "item_total": 190, + "size": 19, + "type": "collection" + } +} +``` + + + + + + @@ -4021,19 +3298,23 @@ Status of the delete operation. See `DeleteSearchRerankConfigurationResponse` fo --- -### deleteSize -Delete a Size associated with product. +### getAllProductHsnCodes +Hsn Code List. ```javascript // Promise -const promise = platformClient.catalog.deleteSize({ itemId : value, - size : value }); +const promise = platformClient.catalog.getAllProductHsnCodes({ pageNo : value, + pageSize : value, + q : value, + type : value }); // Async/Await -const data = await platformClient.catalog.deleteSize({ itemId : value, - size : value }); +const data = await platformClient.catalog.getAllProductHsnCodes({ pageNo : value, + pageSize : value, + q : value, + type : value }); ``` @@ -4041,49 +3322,79 @@ const data = await platformClient.catalog.deleteSize({ itemId : value, | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| itemId | number | yes | Item Id of the product associated with size to be deleted. | -| size | string | yes | size to be deleted. | +| --------- | ----- | -------- | ----------- | +| pageNo | number | no | page no | +| pageSize | number | no | page size | +| q | string | no | search using hsn code, description, reporting_hsn | +| type | string | no | search using type | -This API allows to delete size associated with product. +Hsn Code List. *Returned Response:* -[ProductSizeDeleteResponse](#ProductSizeDeleteResponse) - -Returns a success response - +[HsnCodesListingResponseSchemaV2](#HsnCodesListingResponseSchemaV2) +List of all HSN Codes. See example below or refer `HsnCodesListingResponseSchema` for details -
-  Examples:
-  success +  Example: ```json { - "value": { - "data": { - "company_id": 1, - "item_id": 114, - "size": "3" - }, - "success": true + "items": [ + { + "country_code": "INDIA", + "description": "final test updated", + "hs2_code": "26", + "hsn_code": "123fght3", + "id": "619e17925e3d3ea77d6fe8cf", + "modified_on": "2021-11-25T06:37:00.880000Z", + "reporting_hsn": "12345678", + "slabs": [ + { + "effective_date": "2021-11-18T10:00:31.798000+00:00", + "tax": 10, + "threshold": 100 + }, + { + "effective_date": "2022-11-18T10:00:31.798000+00:00", + "tax": 20, + "threshold": 200 + } + ], + "tax_on_esp": true, + "tax_on_mrp": false, + "taxes": [ + { + "effective_date": "2021-04-02T15:43:59.410000Z", + "rate": 0, + "threshold": 0.5 + } + ], + "type": "goods", + "uid": "123fgh43-1" + } + ], + "page": { + "current": "1", + "has_next": true, + "has_previous": false, + "item_total": 8, + "size": 8, + "type": "number" } } ```
-
- @@ -4095,59 +3406,74 @@ Returns a success response --- -### downloadInventoryTemplateView -Download Product Template View +### getAllSearchKeyword +List all Search Custom Keyword Listing ```javascript // Promise -const promise = platformClient.catalog.downloadInventoryTemplateView({ type : value }); +const promise = platformClient.application("").catalog.getAllSearchKeyword(); // Async/Await -const data = await platformClient.catalog.downloadInventoryTemplateView({ type : value }); +const data = await platformClient.application("").catalog.getAllSearchKeyword(); ``` -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| type | string | yes | Type of file | - - -Allows you to download product template data +Custom Search Keyword allows you to map conditions with keywords to give you the ultimate results *Returned Response:* -[string](#string) - -CSV File of product template data. - +[GetSearchWordsResponse](#GetSearchWordsResponse) +List of custom search keywords. See example below or refer `GetSearchWordsResponseSchema` for details -
-  Examples:
-  success +  Example: ```json { - "value": "XML" + "items": [ + { + "_custom_json": {}, + "app_id": "000000000000000000000001", + "is_active": true, + "result": { + "query": { + "department": [ + "men" + ] + }, + "sort_on": "popular" + }, + "uid": "602fa1e9a596ce349563f6b9", + "words": [ + "sds" + ] + } + ], + "page": { + "current": 1, + "has_next": false, + "has_previous": false, + "item_count": 1, + "size": 1, + "type": "number" + } } ```
-
- @@ -4159,45 +3485,34 @@ CSV File of product template data. --- -### downloadProductTemplateViews -Download Product Template View +### getAppCategoryReturnConfig +Get all category level configuration level set for an application ```javascript // Promise -const promise = platformClient.catalog.downloadProductTemplateViews({ slug : value, - itemType : value, - type : value }); +const promise = platformClient.application("").catalog.getAppCategoryReturnConfig(); // Async/Await -const data = await platformClient.catalog.downloadProductTemplateViews({ slug : value, - itemType : value, - type : value }); +const data = await platformClient.application("").catalog.getAppCategoryReturnConfig(); ``` -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| slug | string | yes | A `slug` is a unique identifier for a particular template. | -| itemType | string | no | An `item_type` defines the type of item. The default value is standard. | -| type | string | no | Format type of the sample file. The default value is excel. | - - -Allows you to download product template data +Get all category level configuration level set for an application. *Returned Response:* -[string](#string) +[BaseAppCategoryReturnConfigResponse](#BaseAppCategoryReturnConfigResponse) -CSV File of product template data. See example below or refer `TemplatesResponse` for details +success message will tell whether the operation was successful. @@ -4207,11 +3522,33 @@ CSV File of product template data. See example below or refer `TemplatesResponse
-  success +  default ```json { - "value": "XML" + "value": { + "data": [ + { + "app_id": "5d638512c9accedcd910591a", + "category_id": 1659, + "logo": "https://hdn-1.addsale.com/addsale/category/pictures/square-logo/original/7hR5xHVUi0-eTdgOunCZ-.jpeg", + "name": "MG TEST DIGITAL", + "return_config": { + "returnable": true, + "time": 10, + "unit": "days" + } + } + ], + "page": { + "current": "1", + "has_next": false, + "has_previous": false, + "item_total": 1, + "size": 1, + "type": "number" + } + } } ```
@@ -4229,19 +3566,29 @@ CSV File of product template data. See example below or refer `TemplatesResponse --- -### editAppPriceFactory - +### getAppInventory +Get the stock of a product ```javascript // Promise -const promise = platformClient.application("").catalog.editAppPriceFactory({ id : value, - body : value }); +const promise = platformClient.application("").catalog.getAppInventory({ itemIds : value, + storeIds : value, + brandIds : value, + sellerIdentifiers : value, + timestamp : value, + pageSize : value, + pageId : value }); // Async/Await -const data = await platformClient.application("").catalog.editAppPriceFactory({ id : value, - body : value }); +const data = await platformClient.application("").catalog.getAppInventory({ itemIds : value, + storeIds : value, + brandIds : value, + sellerIdentifiers : value, + timestamp : value, + pageSize : value, + pageId : value }); ``` @@ -4249,21 +3596,27 @@ const data = await platformClient.application("").catalog.editAp | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| id | string | yes | An `id` is a unique identifier for a particular price factory. | -| body | [EditAppPriceFactoryRequest](#EditAppPriceFactoryRequest) | yes | Request body | +| --------- | ----- | -------- | ----------- | +| itemIds | Array | no | The Item Id of the product. | +| storeIds | Array | no | The Store Id of products to fetch inventory. | +| brandIds | Array | no | The Brand Id of products to fetch inventory. | +| sellerIdentifiers | Array | no | Unique seller_identifier of the product. | +| timestamp | string | no | Timestamp in UTC format (2020-07-23T10:27:50Z) | +| pageSize | number | no | The number of items to retrieve in each page. | +| pageId | string | no | Page ID to retrieve next set of results. | -This API allows to update price factory. + +Retrieve the available Inventory of the products. Use this API to get the Inventory status of products with the filters of timestamp, store_ids, brand_ids, item_id - Items - Pagination *Returned Response:* -[AppPriceFactory](#AppPriceFactory) +[InventoryStockResponse](#InventoryStockResponse) -Success response +Success. Returns the article/stock of the product stock. @@ -4273,28 +3626,423 @@ Success response ```json { - "application_id": "507f1f77bcf86cd799439011", - "department_ids": [ - "fashion" - ], - "factory_type": "pricezone", - "factory_type_ids": [ - "507f1f77bcf86cd799439011" + "items": [ + { + "_custom_json": {}, + "_id": "62d809eebeed53f4e27824b0", + "brand": { + "id": 2586 + }, + "company": { + "id": 3 + }, + "country_of_origin": "India", + "created_by": { + "user_id": "2a00eecae43d7e7f4340e7cf", + "username": "mohitkhare_gofynd_com_12594" + }, + "date_meta": { + "added_on_store": 1658325486, + "created_on": 1658325486, + "inventory_updated_on": 1658325486, + "modified_on": 1660913492 + }, + "dimension": { + "height": 30, + "is_default": true, + "length": 10, + "unit": "cm", + "width": 20 + }, + "discount_applied": null, + "expiration_date": "9998-01-30T23:59:00", + "fragile": false, + "fynd_article_code": "LS101269_11", + "fynd_item_code": "LS101269", + "identifier": { + "ean": "LSRS401269" + }, + "is_active": true, + "is_set": false, + "item_id": 7523701, + "manufacturer": { + "address": "POLARIS, 2ND FLOOR, ANDHERI, JSNLCA, MAHARASHTRA, THANE", + "is_default": true, + "name": "Test 21" + }, + "meta": { + "service": "Inventory Job" + }, + "modified_by": { + "user_id": "2a00eecae43d7e7f4340e7cf", + "username": "mohitkhare_gofynd_com_12594" + }, + "platforms": { + "fynd": false, + "uniket_wholesale": true + }, + "price": { + "currency": "INR", + "effective": 3250, + "marked": 5000, + "transfer": 0, + "updated_at": "2022-07-20T13:58:06.122914+00:00" + }, + "quantities": { + "sellable": { + "count": 100, + "updated_at": 1658325486 + } + }, + "raw_meta": { + "fynd_identifier": "624_LSRS401269" + }, + "return_config": { + "returnable": true, + "time": 30, + "unit": "days" + }, + "seller_identifier": "LSRS401269", + "size": "11", + "stage": "verified", + "store": { + "id": 624 + }, + "tax_identifier": { + "hsn_code_id": "000000000000000000000001" + }, + "total_quantity": 100, + "track_inventory": true, + "trader": [ + { + "address": [ + "Load Galli, Mumbai" + ], + "name": "Load Company", + "type": "Importer" + } + ], + "uid": "624_LSRS401269", + "weight": { + "is_default": true, + "shipping": 40, + "unit": "gram" + } + }, + { + "_custom_json": {}, + "_id": "62d809eebeed53f4e27824b2", + "brand": { + "id": 2586 + }, + "company": { + "id": 3 + }, + "country_of_origin": "India", + "created_by": { + "user_id": "2a00eecae43d7e7f4340e7cf", + "username": "mohitkhare_gofynd_com_12594" + }, + "date_meta": { + "added_on_store": 1658325486, + "created_on": 1658325486, + "inventory_updated_on": 1658325486, + "modified_on": 1660913492 + }, + "dimension": { + "height": 30, + "is_default": true, + "length": 10, + "unit": "cm", + "width": 20 + }, + "discount_applied": null, + "expiration_date": "9998-01-30T23:59:00", + "fragile": false, + "fynd_article_code": "LS101163_11", + "fynd_item_code": "LS101163", + "identifier": { + "ean": "LSRS401163" + }, + "is_active": true, + "is_set": false, + "item_id": 7523925, + "manufacturer": { + "address": "POLARIS, 2ND FLOOR, ANDHERI, JSNLCA, MAHARASHTRA, THANE", + "is_default": true, + "name": "Test 21" + }, + "meta": { + "service": "Inventory Job" + }, + "modified_by": { + "user_id": "2a00eecae43d7e7f4340e7cf", + "username": "mohitkhare_gofynd_com_12594" + }, + "platforms": { + "fynd": false, + "uniket_wholesale": true + }, + "price": { + "currency": "INR", + "effective": 3250, + "marked": 5000, + "transfer": 0, + "updated_at": "2022-07-20T13:58:06.396235+00:00" + }, + "quantities": { + "sellable": { + "count": 100, + "updated_at": 1658325486 + } + }, + "raw_meta": { + "fynd_identifier": "624_LSRS401163" + }, + "return_config": { + "returnable": true, + "time": 30, + "unit": "days" + }, + "seller_identifier": "LSRS401163", + "size": "11", + "stage": "verified", + "store": { + "id": 624 + }, + "tax_identifier": { + "hsn_code_id": "000000000000000000000001" + }, + "total_quantity": 100, + "track_inventory": true, + "trader": [ + { + "address": [ + "Load Galli, Mumbai" + ], + "name": "Load Company", + "type": "Importer" + } + ], + "uid": "624_LSRS401163", + "weight": { + "is_default": true, + "shipping": 40, + "unit": "gram" + } + }, + { + "_custom_json": {}, + "_id": "62d809eebeed53f4e27824b4", + "brand": { + "id": 2586 + }, + "company": { + "id": 3 + }, + "country_of_origin": "India", + "created_by": { + "user_id": "2a00eecae43d7e7f4340e7cf", + "username": "mohitkhare_gofynd_com_12594" + }, + "date_meta": { + "added_on_store": 1658325486, + "created_on": 1658325486, + "inventory_updated_on": 1658325486, + "modified_on": 1660913492 + }, + "dimension": { + "height": 30, + "is_default": true, + "length": 10, + "unit": "cm", + "width": 20 + }, + "discount_applied": null, + "expiration_date": "9998-01-30T23:59:00", + "fragile": false, + "fynd_article_code": "LS101173_11", + "fynd_item_code": "LS101173", + "identifier": { + "ean": "LSRS401173" + }, + "is_active": true, + "is_set": false, + "item_id": 7523691, + "manufacturer": { + "address": "POLARIS, 2ND FLOOR, ANDHERI, JSNLCA, MAHARASHTRA, THANE", + "is_default": true, + "name": "Test 21" + }, + "meta": { + "service": "Inventory Job" + }, + "modified_by": { + "user_id": "2a00eecae43d7e7f4340e7cf", + "username": "mohitkhare_gofynd_com_12594" + }, + "platforms": { + "fynd": false, + "uniket_wholesale": true + }, + "price": { + "currency": "INR", + "effective": 3250, + "marked": 5000, + "transfer": 0, + "updated_at": "2022-07-20T13:58:06.635248+00:00" + }, + "quantities": { + "sellable": { + "count": 100, + "updated_at": 1658325486 + } + }, + "raw_meta": { + "fynd_identifier": "624_LSRS401173" + }, + "return_config": { + "returnable": true, + "time": 30, + "unit": "days" + }, + "seller_identifier": "LSRS401173", + "size": "11", + "stage": "verified", + "store": { + "id": 624 + }, + "tax_identifier": { + "hsn_code_id": "000000000000000000000001" + }, + "total_quantity": 100, + "track_inventory": true, + "trader": [ + { + "address": [ + "Load Galli, Mumbai" + ], + "name": "Load Company", + "type": "Importer" + } + ], + "uid": "624_LSRS401173", + "weight": { + "is_default": true, + "shipping": 40, + "unit": "gram" + } + }, + { + "_custom_json": {}, + "_id": "62d809eebeed53f4e27824b6", + "brand": { + "id": 2586 + }, + "company": { + "id": 3 + }, + "country_of_origin": "India", + "created_by": { + "user_id": "2a00eecae43d7e7f4340e7cf", + "username": "mohitkhare_gofynd_com_12594" + }, + "date_meta": { + "added_on_store": 1658325486, + "created_on": 1658325486, + "inventory_updated_on": 1658325486, + "modified_on": 1660913492 + }, + "dimension": { + "height": 30, + "is_default": true, + "length": 10, + "unit": "cm", + "width": 20 + }, + "discount_applied": null, + "expiration_date": "9998-01-30T23:59:00", + "fragile": false, + "fynd_article_code": "LS101198_11", + "fynd_item_code": "LS101198", + "identifier": { + "ean": "LSRS401198" + }, + "is_active": true, + "is_set": false, + "item_id": 7524280, + "manufacturer": { + "address": "POLARIS, 2ND FLOOR, ANDHERI, JSNLCA, MAHARASHTRA, THANE", + "is_default": true, + "name": "Test 21" + }, + "meta": { + "service": "Inventory Job" + }, + "modified_by": { + "user_id": "2a00eecae43d7e7f4340e7cf", + "username": "mohitkhare_gofynd_com_12594" + }, + "platforms": { + "fynd": false, + "uniket_wholesale": true + }, + "price": { + "currency": "INR", + "effective": 3250, + "marked": 5000, + "transfer": 0, + "updated_at": "2022-07-20T13:58:06.898687+00:00" + }, + "quantities": { + "sellable": { + "count": 100, + "updated_at": 1658325486 + } + }, + "raw_meta": { + "fynd_identifier": "624_LSRS401198" + }, + "return_config": { + "returnable": true, + "time": 30, + "unit": "days" + }, + "seller_identifier": "LSRS401198", + "size": "11", + "stage": "verified", + "store": { + "id": 624 + }, + "tax_identifier": { + "hsn_code_id": "000000000000000000000001" + }, + "total_quantity": 100, + "track_inventory": true, + "trader": [ + { + "address": [ + "Load Galli, Mumbai" + ], + "name": "Load Company", + "type": "Importer" + } + ], + "uid": "624_LSRS401198", + "weight": { + "is_default": true, + "shipping": 40, + "unit": "gram" + } + } ], - "code": "pricezone", - "name": "pricezone", - "is_active": true, - "created_by": { - "user_id": "507f1f77bcf86cd799439011", - "username": "testuser" - }, - "modified_by": { - "user_id": "507f1f77bcf86cd799439011", - "username": "testuser" - }, - "created_on": "2021-09-23T12:00:00.000000Z", - "modified_on": "2021-09-23T12:00:00.000000Z", - "id": "507f1f77bcf86cd799439011" + "page": { + "has_next": true, + "has_previous": true, + "item_total": 1714, + "next_id": "62d809eebeed53f4e27824b6", + "type": "cursor" + } } ``` @@ -4310,19 +4058,31 @@ Success response --- -### editProduct -Edit a product. +### getAppLocations +Get list of locations ```javascript // Promise -const promise = platformClient.catalog.editProduct({ itemId : value, - body : value }); +const promise = platformClient.application("").catalog.getAppLocations({ storeType : value, + uid : value, + q : value, + stage : value, + pageNo : value, + pageSize : value, + tags : value, + storeTypes : value }); // Async/Await -const data = await platformClient.catalog.editProduct({ itemId : value, - body : value }); +const data = await platformClient.application("").catalog.getAppLocations({ storeType : value, + uid : value, + q : value, + stage : value, + pageNo : value, + pageSize : value, + tags : value, + storeTypes : value }); ``` @@ -4330,43 +4090,78 @@ const data = await platformClient.catalog.editProduct({ itemId : value, | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| itemId | number | yes | Id of the product to be updated. | -| body | [ProductCreateUpdateSchemaV2](#ProductCreateUpdateSchemaV2) | yes | Request body | +| --------- | ----- | -------- | ----------- | +| storeType | string | no | Helps to sort the location list on the basis of location type. | +| uid | Array | no | Helps to sort the location list on the basis of uid list. | +| q | string | no | Query that is to be searched. | +| stage | string | no | to filter companies on basis of verified or unverified companies. | +| pageNo | number | no | The page number to navigate through the given set of results | +| pageSize | number | no | Number of items to retrieve in each page. Default is 20. | +| tags | Array | no | Get locations filtered by tags. | +| storeTypes | Array | no | Get locations filtered by store types. | -This API allows to edit product. + +This API allows to view all the locations asscoiated to a application. *Returned Response:* -[SuccessResponse](#SuccessResponse) +[LocationListSerializer](#LocationListSerializer) -Returns a success response +Company profile object. See example below or refer `LocationListSerializer` for details
-  Examples: - - -
-  success +  Example: ```json { - "value": { - "success": true + "filters": [], + "items": [ + { + "address": { + "address1": "POLARIS 2ND FLOOR, ANDHERI", + "address2": "", + "city": "MUMBAI", + "country": "INDIA", + "landmark": "", + "lat_long": { + "coordinates": [ + 72.8776559, + 19.0759837 + ], + "type": "Point" + }, + "pincode": 400001, + "state": "MAHARASHTRA" + }, + "code": "", + "company_id": 2, + "display_name": "Test", + "name": "Test", + "phone_number": "", + "store_code": "HS-a0c85", + "store_type": "high_street", + "uid": 2 + } + ], + "page": { + "current": 1, + "has_next": true, + "has_previous": false, + "item_total": 3, + "size": 3, + "type": "number" } } ```
-
- @@ -4378,17 +4173,17 @@ Returns a success response --- -### exportInventoryConfig -Get List of different filters for inventory export +### getAppProduct +Get company application product data. ```javascript // Promise -const promise = platformClient.catalog.exportInventoryConfig({ filter : value }); +const promise = platformClient.application("").catalog.getAppProduct({ itemId : value }); // Async/Await -const data = await platformClient.catalog.exportInventoryConfig({ filter : value }); +const data = await platformClient.application("").catalog.getAppProduct({ itemId : value }); ``` @@ -4397,52 +4192,55 @@ const data = await platformClient.catalog.exportInventoryConfig({ filter : valu | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| filter | string | yes | filter type from any one of ['brand', 'store', 'type'] | +| itemId | string | yes | product id for a particular product. | -This API allows get List of different filters like brand, store, and type for inventory export. +Products are the core resource of an application. If successful, returns a Company Application Product resource in the response body depending upon filter sent. *Returned Response:* -[InventoryConfig](#InventoryConfig) - -returns filters configuration for inventory export - +[OwnerAppItemResponse](#OwnerAppItemResponse) +The Company Applicaton Product Data(MOQ/SEO). -
-  Examples:
-  success +  Example: ```json { - "value": { - "data": [ - { - "display": "csv", - "value": "csv" - }, - { - "display": "excel", - "value": "excel" - } - ], - "multivalue": true + "alt_text": { + "https://test-url.com/test.png": "test-alt" + }, + "is_cod": false, + "is_gift": false, + "moq": { + "increment_unit": 2, + "maximum": 10, + "minimum": 1 + }, + "seo": { + "description": "test-description", + "title": "test-title", + "breadcrumbs": [], + "sitemap": {}, + "meta_tags": [], + "canonical_url": "/test" + }, + "size_promotion_threshold": { + "threshold_type": "flat", + "threshold_value": 100 } } ```
-
- @@ -4454,29 +4252,31 @@ returns filters configuration for inventory export --- -### getAllCollections -List all the collections +### getAppProducts +Get applicationwise products ```javascript // Promise -const promise = platformClient.application("").catalog.getAllCollections({ q : value, - scheduleStatus : value, - type : value, - tag : value, - isActive : value, +const promise = platformClient.application("").catalog.getAppProducts({ brandIds : value, + categoryIds : value, + departmentIds : value, + tags : value, + itemIds : value, pageNo : value, - pageSize : value }); + pageSize : value, + q : value }); // Async/Await -const data = await platformClient.application("").catalog.getAllCollections({ q : value, - scheduleStatus : value, - type : value, - tag : value, - isActive : value, +const data = await platformClient.application("").catalog.getAppProducts({ brandIds : value, + categoryIds : value, + departmentIds : value, + tags : value, + itemIds : value, pageNo : value, - pageSize : value }); + pageSize : value, + q : value }); ``` @@ -4485,162 +4285,203 @@ const data = await platformClient.application("").catalog.getAll | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| q | string | no | Get collection list filtered by q string, | -| scheduleStatus | string | no | Get collection list filtered by scheduled status, | -| type | string | no | type of the collections | -| tag | Array | no | Each response will contain next_id param, which should be sent back to make pagination work. | -| isActive | boolean | no | get collections filtered by active status. | -| pageNo | number | no | The page number to navigate through the given set of results. | -| pageSize | number | no | Number of items to retrieve in each page. Default is 12. | +| brandIds | Array | no | Get multiple products filtered by Brand Ids | +| categoryIds | Array | no | Get multiple products filtered by Category Ids | +| departmentIds | Array | no | Get multiple products filtered by Department Ids | +| tags | Array | no | Get multiple products filtered by tags | +| itemIds | Array | no | Get multiple products filtered by Item Ids | +| pageNo | number | no | The page number to navigate through the given set of results | +| pageSize | number | no | Number of items to retrieve in each page. Default is 10. | +| q | string | no | Search with Item Code, Name, Slug or Identifier. | -A Collection allows you to organize your products into hierarchical groups. For example, a dress might be in the category _Clothing_, the individual product might also be in the collection _Summer_. On successful request, returns all the collections as specified in `CollectionListingSchema` +Products are the core resource of an application. Products can be associated by categories, collections, brands and more. If successful, returns a Product resource in the response body specified in `ApplicationProductListingResponseDatabasePowered` *Returned Response:* -[GetCollectionListingResponse](#GetCollectionListingResponse) - -List of collections. See example below or refer `GetCollectionListingResponse` for details - +[RawProductListingResponse](#RawProductListingResponse) +The Product object. See example below or refer `ApplicationProductListingResponseDatabasePowered` for details. -
-  Examples:
-  success +  Example: ```json { - "value": { - "page": { - "current": 1, - "type": "number", - "size": 1, - "has_previous": false, - "has_next": false, - "item_total": 1 - }, - "items": [ - { - "uid": "654334521e34d02409629ea0", - "type": "query", - "query": [ - { - "op": "in", - "attribute": "department", - "value": [ - "aaa-department", - "aaliyah1562455915820231137333", - "aaliyah4434813615820231146891", - "aaliyah4486972228620231333584" - ] - } - ], - "name": "Netflix Collection alpha1", - "banners": { - "portrait": { - "type": "image", - "url": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/fyndnp/wrkr/addsale/products/pictures/item/free/original/4es27guDG-collection-landscape-banner.webp" - }, - "landscape": { - "type": "image", - "url": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/fyndnp/wrkr/addsale/products/pictures/item/free/original/S7zmowcXS-collection-landscape-banner.webp" - } - }, + "items": [ + { + "_custom_json": {}, + "all_company_ids": [ + 1 + ], + "all_identifiers": [ + "19WE100" + ], + "all_sizes": [ + { + "brand_uid": 1, + "company_id": 1, + "identifiers": [ + { + "gtin_type": "ean", + "gtin_value": "HGS272727272", + "primary": true + } + ], + "item_code": "TVSET111", + "marked_price": 35000, + "seller_identifier": "HGS272727272", + "size": "XXLX23, MX11, LX67, XLX45 (146 PCS)" + } + ], + "brand": { "logo": { + "aspect_ratio": "1:1", + "aspect_ratio_f": 1, + "secure_url": "https://hdn-1.jiox0.de/jioecomm/seller/pictures/logo/50x0/apple-7f951c/logo_apple.png", + "url": "https://hdn-1.jiox0.de/jioecomm/seller/pictures/logo/50x0/apple-7f951c/logo_apple.png" + }, + "name": "Apple", + "uid": 13 + }, + "brand_uid": 1, + "category_slug": "qled-television", + "category_uid": 1, + "country_of_origin": "India", + "created_by": { + "user_id": "5", + "username": "919049753052_37528" + }, + "created_on": "2021-04-02T15:43:59.410000Z", + "currency": "INR", + "custom_order": { + "is_custom_order": true, + "manufacturing_time": 2, + "manufacturing_time_unit": "days" + }, + "departments": [ + 1 + ], + "description": "Tv", + "highlights": [ + "42 Inch" + ], + "hsn_code": "11111111", + "id": "5f4f2f6371a5970001f13655", + "image_nature": "standard", + "images": [ + "https://cdn.fynd.com/v2/falling-surf-7c8bb8/fyprod/wrkr/products/pictures/item/free/original/5050407896640/8hn0-cPlN0-1.jpg", + "https://cdn.fynd.com/v2/falling-surf-7c8bb8/fyprod/wrkr/products/pictures/item/free/original/5050407896640/1ODGjR9NLY-2.jpg", + "https://cdn.fynd.com/v2/falling-surf-7c8bb8/fyprod/wrkr/products/pictures/item/free/original/5050407896640/mJqqfEQilY-3.jpg", + "https://cdn.fynd.com/v2/falling-surf-7c8bb8/fyprod/wrkr/products/pictures/item/free/original/5050407896640/htM1r1aHwa-4.jpg" + ], + "is_dependent": false, + "is_image_less_product": false, + "is_physical": true, + "is_set": true, + "item_code": "TVSET111", + "item_type": "set", + "l3_mapping": [ + "electronics>qled_television" + ], + "media": [ + { "type": "image", - "url": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/fyndnp/wrkr/addsale/misc/pictures/free-icon/original/JPLCErr18-NetflixLogo2016.jpg" + "url": "https://hdn-1.addsale.com/x0/products/pictures/item/free/135x0/dcizgsG_Y-Tv-Set.png" + } + ], + "modified_by": { + "user_id": "xxxxxxxxxxx", + "username": "xxxxxxxxxx" + }, + "modified_on": "2021-04-02T15:43:59.410000Z", + "multi_size": true, + "name": "TV Set", + "no_of_boxes": 1, + "price": { + "effective": { + "max": 25000, + "min": 25000 }, - "published": true, - "description": "Testing Handpicked Collection", - "is_active": true, - "tags": [ - "Netflix Collection alpha1" - ], - "slug": "netflix-collection-alpha1", - "action": { - "page": { - "type": "collection", - "query": { - "collection": [ - "netflix-collection-alpha1" - ] - } - }, - "type": "page" + "marked": { + "max": 35000, + "min": 35000 + } + }, + "product_group_tag": [], + "product_publish": { + "is_set": false, + "product_online_date": 1627642009 + }, + "return_config": { + "returnable": false, + "time": 0, + "unit": "days" + }, + "short_description": "", + "size_guide": "slim-fit-shirts-for-men", + "sizes": [ + { + "size": "FGX33, GHX33 (66 PCS)", + "store_count": 1 }, - "allow_facets": true, - "allow_sort": true, - "visible_facets_keys": [], - "meta": {}, - "badge": { - "text": "Netflix Collection alpha1", - "color": "#ffffff" + { + "size": "XSE WE23X100 (100 PCS)", + "store_count": 2 }, - "sort_on": "latest", - "_custom_json": {}, - "_locale_language": {}, - "seo": { - "breadcrumbs": [ - {} - ], - "sitemap": { - "frequency": "never", - "priority": 0.5 - }, - "meta_tags": [], - "title": "Netflix Collection alpha1", - "description": "Netflix Collection alpha1" + { + "size": "XSEX100 (100 PCS)", + "store_count": 3 }, - "is_visible": true, - "priority": 1, - "_schedule": { - "end": "9998-01-30T23:59:00Z", - "start": "2023-11-02T05:29:35.667000Z", - "next_schedule": [ - { - "start": "2023-11-02T05:29:35.667000Z", - "end": null - } - ] - } - } - ], - "filters": { - "tags": [ { - "name": "Netflix Collection alpha1", - "is_selected": false, - "display": "Netflix Collection alpha1" + "size": "XXLX23, MX11, LX67, XLX45 (146 PCS)", + "store_count": 3 } ], - "type": [ - { - "name": "items", - "is_selected": false, - "display": "items" - }, + "slug": "tv-set", + "stage": "verified", + "synonyms": [], + "tags": [], + "teaser_tag": {}, + "template_tag": "television", + "trader": [ { - "name": "query", - "is_selected": false, - "display": "query" + "address": [ + "sdfdsfsdf" + ], + "name": "asdasd" } - ] + ], + "trader_type": "Packer", + "uid": 7501547, + "variants": {}, + "verification_status": "pending", + "verified_by": { + "user_id": "0", + "username": "Silverbolt" + }, + "verified_on": "2021-04-02T15:43:59.410000Z" } + ], + "page": { + "current": 1, + "has_next": false, + "has_previous": false, + "item_total": 1, + "size": 1, + "type": "number" } } ```
-
- @@ -4652,116 +4493,60 @@ List of collections. See example below or refer `GetCollectionListingResponse` f --- -### getAllProductHsnCodes -Hsn Code List. +### getAppReturnConfiguration +Get Return configuration level set for an application ```javascript // Promise -const promise = platformClient.catalog.getAllProductHsnCodes({ pageNo : value, - pageSize : value, - q : value, - type : value }); +const promise = platformClient.application("").catalog.getAppReturnConfiguration(); // Async/Await -const data = await platformClient.catalog.getAllProductHsnCodes({ pageNo : value, - pageSize : value, - q : value, - type : value }); +const data = await platformClient.application("").catalog.getAppReturnConfiguration(); ``` -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| pageNo | number | no | page no | -| pageSize | number | no | page size | -| q | string | no | search using hsn code, description, reporting_hsn | -| type | string | no | search using type | - - -Hsn Code List. +Get Product Return configuration set at an application level *Returned Response:* -[HsnCodesListingResponseSchemaV2](#HsnCodesListingResponseSchemaV2) - -List of all HSN Codes. See example below or refer `HsnCodesListingResponseSchema` for details - +[AppReturnConfigResponse](#AppReturnConfigResponse) +success message will tell whether the operation was successful. -
-  Examples:
-  success +  Example: ```json { - "value": { - "items": [ - { - "created_on": "2023-12-06T17:40:30", - "reporting_hsn": "615717171H1", - "hsn_code": "615717171", - "modified_by": { - "user_id": "000000000000000016841367", - "username": "app@fynd.com" - }, - "country_code": "IN", - "modified_on": "2023-12-06T17:40:30", - "type": "goods", - "taxes": [ - { - "effective_date": "2022-02-11T15:34:00", - "rate": 5, - "threshold": 10000, - "cess": 23 - }, - { - "effective_date": "2022-02-11T15:34:00", - "rate": 12, - "threshold": 12000 - }, - { - "effective_date": "2022-02-12T15:34:00", - "rate": 18, - "threshold": 5000 - } - ], - "created_by": { - "user_id": "000000000000000016841367", - "username": "app@fynd.com" - }, - "description": "Data for HSN Code", - "id": "657064b686a48746c269f402", - "hsn_code_id": "657064b686a48746c269f402" - } - ], - "page": { - "current": 1, - "type": "number", - "size": 1, - "has_previous": false, - "has_next": false, - "item_total": 1 - } - } + "app_id": "5d638512c9accedcd910591a", + "category_count": 32, + "company_id": 1, + "created_by": { + "user_id": "054bb99f009aece85a3fa087", + "username": "test" + }, + "modified_by": { + "user_id": "054bb99f009aece85a3fa087", + "username": "test" + }, + "modified_on": "2023-03-28T06:05:24.026000", + "return_config_level": "category" } ```
-
- @@ -4773,23 +4558,37 @@ List of all HSN Codes. See example below or refer `HsnCodesListingResponseSchema --- -### getAllSearchKeyword -List all Search Custom Keyword Listing +### getAppicationProducts +List the products ```javascript // Promise -const promise = platformClient.application("").catalog.getAllSearchKeyword({ pageNo : value, +const promise = platformClient.application("").catalog.getAppicationProducts({ q : value, + f : value, + c : value, + filters : value, + isDependent : value, + sortOn : value, + pageId : value, pageSize : value, - q : value, - isActive : value }); + pageNo : value, + pageType : value, + itemIds : value }); // Async/Await -const data = await platformClient.application("").catalog.getAllSearchKeyword({ pageNo : value, +const data = await platformClient.application("").catalog.getAppicationProducts({ q : value, + f : value, + c : value, + filters : value, + isDependent : value, + sortOn : value, + pageId : value, pageSize : value, - q : value, - isActive : value }); + pageNo : value, + pageType : value, + itemIds : value }); ``` @@ -4798,71 +4597,658 @@ const data = await platformClient.application("").catalog.getAll | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| pageNo | number | no | The page number to navigate through the given set of results | +| q | string | no | The search query. This can be a partial or complete name of a either a product, brand or category | +| f | string | no | The search filter parameters. All the parameter filtered from filter parameters will be passed in **f** parameter in this format. **?f=brand:voi-jeans\|\|and:::category:t-shirts\|\|shirts** | +| c | string | no | The search filter parameters for collection items. All the parameter filtered from filter parameters will be passed in **c** parameter in this format. **?c=brand:in:voi-jeans\|and:::category:nin:t-shirts\|shirts** | +| filters | boolean | no | Pass `filters` parameter to fetch the filter details. This flag is used to fetch all filters | +| isDependent | boolean | no | This query parameter is used to get the dependent products in the listing. | +| sortOn | string | no | The order to sort the list of products on. The supported sort parameters are popularity, price, redemption and discount in either ascending or descending order. See the supported values below. | +| pageId | string | no | Each response will contain **page_id** param, which should be sent back to make pagination work. | | pageSize | number | no | Number of items to retrieve in each page. Default is 12. | -| q | string | no | Search query with words name.Use this parameter to search keywords by words. | -| isActive | boolean | no | Can query for keywords based on whether they are active or inactive. | +| pageNo | number | no | If page_type is number then pass it to fetch page items. Default is 1. | +| pageType | string | no | For pagination type should be cursor or number. Default is cursor. | +| itemIds | Array | no | Item Ids of product | -Custom Search Keyword allows you to map conditions with keywords to give you the ultimate results +List all the products associated with a brand, collection or category in a requested sort order. The API additionally supports arbitrary search queries that may refer the name of any product, brand, category or collection. If successful, returns a paginated list of products specified in `ApplicationProductListingResponse` *Returned Response:* -[GetSearchWordsResponse](#GetSearchWordsResponse) - -List of custom search keywords. See example below or refer `GetSearchWordsResponseSchema` for details - +[ApplicationProductListingResponse](#ApplicationProductListingResponse) +List of Products. See example below or refer `ApplicationProductListingResponse` for details -
-  Examples:
-  success +  Example: ```json { - "value": { - "items": [ - { + "filters": [ + { + "key": { + "display": "Department", + "kind": "multivalued", + "logo": "https://hdn-1.fynd.com/global/menu-icons/Department.svg", + "name": "department" + }, + "values": [ + { + "count": 15, + "display": "Debra Villarreal", + "is_selected": false, + "logo": { + "type": "image", + "url": "http://cdn4.gofynd.com/media/category_tab_icons/department/Men.png" + }, + "value": "Debra-Villarreal" + }, + { + "count": 15, + "display": "Tracey Miller", + "is_selected": false, + "logo": { + "type": "image", + "url": "http://cdn4.gofynd.com/media/category_tab_icons/department/Men.png" + }, + "value": "Tracey-Miller" + } + ] + }, + { + "key": { + "display": "Category", + "kind": "multivalued", + "logo": "https://hdn-1.fynd.com/global/menu-icons/Category.svg", + "name": "category" + }, + "values": [ + { + "count": 15, + "display": "Amy Kim DDS", + "is_selected": false, + "logo": "http://cdn4.gofynd.com/media/banner/category/original/12063_a5bb91bd5cb44c3c9db98c2a0e6b3d99.jpg", + "value": "3" + } + ] + }, + { + "key": { + "display": "Gender", + "kind": "multivalued", + "logo": "https://hdn-1.fynd.com/global/menu-icons/Gender.svg", + "name": "gender" + }, + "values": [ + { + "count": 15, + "display": "Men", + "is_selected": false, + "value": "men" + }, + { + "count": 15, + "display": "Women", + "is_selected": false, + "value": "women" + } + ] + }, + { + "key": { + "display": "Size", + "kind": "multivalued", + "logo": "https://hdn-1.fynd.com/global/menu-icons/Sizes.svg", + "name": "sizes" + }, + "values": [ + { + "count": 15, + "display": "13", + "is_selected": false, + "value": "13" + } + ] + }, + { + "key": { + "display": "Brand", + "kind": "multivalued", + "logo": "https://hdn-1.fynd.com/global/menu-icons/Brand%20ID.svg", + "name": "brand" + }, + "values": [ + { + "count": 15, + "display": "Barry, Jennings and Larson", + "is_selected": false, + "logo": "https://hdn-1.fynd.com/media/logo/brand/original/12391_0d956c6c71a4427895c15e44cba82f88.jpg", + "value": "1" + } + ] + }, + { + "key": { + "display": "Rating", + "kind": "multivalued", + "logo": "https://hdn-1.fynd.com/global/menu-icons/Rating.svg", + "name": "rating" + }, + "values": [ + { + "count": 15, + "display": "2 - 3", + "is_selected": false, + "value": "[2 TO 3}" + } + ] + }, + { + "key": { + "display": "Image", + "kind": "multivalued", + "logo": "https://hdn-1.fynd.com/global/menu-icons/image%20Nature.svg", + "name": "image_nature" + }, + "values": [ + { + "count": 15, + "display": "GoodQuality", + "is_selected": false, + "value": "standard" + } + ] + }, + { + "key": { + "display": "Monica Hampton", + "kind": "multivalued", + "logo": "https://hdn-1.fynd.com/global/menu-icons/image%20Nature.svg", + "name": "material" + }, + "values": [ + { + "count": 15, + "display": "Neoprene", + "is_selected": false, + "value": "Neoprene" + } + ] + }, + { + "key": { + "display": "John Mendoza", + "kind": "multivalued", + "logo": "https://hdn-1.fynd.com/global/menu-icons/image%20Nature.svg", + "name": "weight" + }, + "values": [ + { + "count": 15, + "display": "100", + "is_selected": false, + "value": "100" + } + ] + }, + { + "key": { + "display": "Kimberly Mcdaniel", + "kind": "multivalued", + "logo": "https://hdn-1.fynd.com/global/menu-icons/image%20Nature.svg", + "name": "gender" + }, + "values": [ + { + "count": 15, + "display": "['Men', 'Women']", + "is_selected": false, + "value": "['Men', 'Women']" + } + ] + }, + { + "key": { + "display": "Kimberly Davidson", + "kind": "multivalued", + "logo": "https://hdn-1.fynd.com/global/menu-icons/image%20Nature.svg", + "name": "color" + }, + "values": [ + { + "count": 15, + "display": "Grey", + "is_selected": false, + "value": "808080" + } + ] + }, + { + "key": { + "display": "Available", + "kind": "singlevalued", + "logo": "https://hdn-1.fynd.com/global/menu-icons/image%20Nature.svg", + "name": "is_available" + }, + "values": [ + { + "count": 3, + "display": "Available", + "is_selected": false, + "value": true + } + ] + } + ], + "items": [ + { + "action": { + "page": { + "query": { + "slug": "benchmark-collaborative-paradigms" + }, + "type": "product" + }, + "type": "page" + }, + "attributes": { + "gender": "women", + "material": "Neoprene", + "primary_color": "DarkGrey", + "primary_color_hex": "808080", + "weight": "100" + }, + "brand": { "_custom_json": {}, - "app_id": "000000000000000000000001", - "is_active": true, - "result": { + "action": { + "page": { + "query": { + "brand": [ + "Hess-Inc" + ] + }, + "type": "products" + }, + "type": "page" + }, + "logo": { + "type": "image", + "url": "https://hdn-1.fynd.com/media/logo/brand/original/12391_0d956c6c71a4427895c15e44cba82f88.jpg" + }, + "name": "Hess Inc", + "type": "brand" + }, + "categories": [ + { + "_custom_json": {}, + "action": { + "page": { + "query": { + "category": [ + "Amy-Kim-DDS" + ] + }, + "type": "category" + }, + "type": "page" + }, + "id": 3, + "logo": { + "type": "image", + "url": "https://hdn-1.fynd.com/media/banner_portrait/brand/original/540_ecba3a1af141467da8abc20500f983db.jpg" + }, + "name": "Amy Kim DDS", + "uid": 3 + } + ], + "discount": "14% OFF", + "is_tryout": false, + "item_code": "ITEM_CODE_1", + "item_type": "set", + "medias": [ + { + "type": "image", + "url": "https://hdn-1.fynd.com/media/fynd_store_items/l2_category/original/2830_c5bb5fc02f414307a828c4c56483c30a.jpg" + } + ], + "name": "benchmark collaborative paradigms", + "price": { + "effective": { + "currency_code": "INR", + "currency_symbol": "₹", + "max": 1399, + "min": 1199 + }, + "marked": { + "currency_code": "INR", + "currency_symbol": "₹", + "max": 1499, + "min": 1399 + } + }, + "promo_meta": { + "subtitle": "", + "title": "" + }, + "rating": 2.7, + "sellable": true, + "slug": "benchmark-collaborative-paradigms", + "type": "product", + "uid": 1 + }, + { + "action": { + "page": { "query": { - "department": [ - "men" - ] + "slug": "architect-granular-e-business" }, - "sort_on": "popular" + "type": "product" }, - "uid": "602fa1e9a596ce349563f6b9", - "words": [ - "sds" - ] - } - ], - "page": { - "current": 1, - "has_next": false, - "has_previous": false, - "item_count": 1, - "size": 1, - "type": "number" + "type": "page" + }, + "attributes": { + "gender": "women", + "material": "Neoprene", + "primary_color": "DarkGrey", + "primary_color_hex": "808080", + "weight": "100" + }, + "brand": { + "_custom_json": {}, + "action": { + "page": { + "query": { + "brand": [ + "Hess-Inc" + ] + }, + "type": "products" + }, + "type": "page" + }, + "logo": { + "type": "image", + "url": "https://hdn-1.fynd.com/media/logo/brand/original/12391_0d956c6c71a4427895c15e44cba82f88.jpg" + }, + "name": "Hess Inc", + "type": "brand" + }, + "categories": [ + { + "_custom_json": {}, + "action": { + "page": { + "query": { + "category": [ + "Amy-Kim-DDS" + ] + }, + "type": "category" + }, + "type": "page" + }, + "id": 3, + "logo": { + "type": "image", + "url": "https://hdn-1.fynd.com/media/banner_portrait/brand/original/540_ecba3a1af141467da8abc20500f983db.jpg" + }, + "name": "Amy Kim DDS", + "uid": 3 + } + ], + "discount": "14% OFF", + "is_tryout": false, + "item_code": "ITEM_CODE_2", + "item_type": "set", + "medias": [ + { + "type": "image", + "url": "https://hdn-1.fynd.com/media/fynd_store_items/l2_category/original/2830_c5bb5fc02f414307a828c4c56483c30a.jpg" + } + ], + "name": "architect granular e-business", + "price": { + "effective": { + "currency_code": "INR", + "currency_symbol": "₹", + "max": 1399, + "min": 1199 + }, + "marked": { + "currency_code": "INR", + "currency_symbol": "₹", + "max": 1499, + "min": 1399 + } + }, + "promo_meta": { + "subtitle": "", + "title": "" + }, + "rating": 2.7, + "sellable": true, + "slug": "architect-granular-e-business", + "type": "product", + "uid": 10 + }, + { + "action": { + "page": { + "query": { + "slug": "facilitate-enterprise-supply-chains" + }, + "type": "product" + }, + "type": "page" + }, + "attributes": { + "gender": "women", + "material": "Neoprene", + "primary_color": "DarkGrey", + "primary_color_hex": "808080", + "weight": "100" + }, + "brand": { + "_custom_json": {}, + "action": { + "page": { + "query": { + "brand": [ + "Hess-Inc" + ] + }, + "type": "products" + }, + "type": "page" + }, + "logo": { + "type": "image", + "url": "https://hdn-1.fynd.com/media/logo/brand/original/12391_0d956c6c71a4427895c15e44cba82f88.jpg" + }, + "name": "Hess Inc", + "type": "brand" + }, + "categories": [ + { + "_custom_json": {}, + "action": { + "page": { + "query": { + "category": [ + "Amy-Kim-DDS" + ] + }, + "type": "category" + }, + "type": "page" + }, + "id": 3, + "logo": { + "type": "image", + "url": "https://hdn-1.fynd.com/media/banner_portrait/brand/original/540_ecba3a1af141467da8abc20500f983db.jpg" + }, + "name": "Amy Kim DDS", + "uid": 3 + } + ], + "discount": "14% OFF", + "is_tryout": false, + "item_code": "ITEM_CODE_3", + "item_type": "set", + "medias": [ + { + "type": "image", + "url": "https://hdn-1.fynd.com/media/fynd_store_items/l2_category/original/2830_c5bb5fc02f414307a828c4c56483c30a.jpg" + } + ], + "name": "facilitate enterprise supply-chains", + "price": { + "effective": { + "currency_code": "INR", + "currency_symbol": "₹", + "max": 1399, + "min": 1199 + }, + "marked": { + "currency_code": "INR", + "currency_symbol": "₹", + "max": 1499, + "min": 1399 + } + }, + "promo_meta": { + "subtitle": "", + "title": "" + }, + "rating": 2.7, + "sellable": true, + "slug": "facilitate-enterprise-supply-chains", + "type": "product", + "uid": 11 + }, + { + "action": { + "page": { + "query": { + "slug": "optimize-web-enabled-e-tailers" + }, + "type": "product" + }, + "type": "page" + }, + "attributes": { + "gender": "women", + "material": "Neoprene", + "primary_color": "DarkGrey", + "primary_color_hex": "808080", + "weight": "100" + }, + "brand": { + "_custom_json": {}, + "action": { + "page": { + "query": { + "brand": [ + "Hess-Inc" + ] + }, + "type": "products" + }, + "type": "page" + }, + "logo": { + "type": "image", + "url": "https://hdn-1.fynd.com/media/logo/brand/original/12391_0d956c6c71a4427895c15e44cba82f88.jpg" + }, + "name": "Hess Inc", + "type": "brand" + }, + "categories": [ + { + "_custom_json": {}, + "action": { + "page": { + "query": { + "category": [ + "Amy-Kim-DDS" + ] + }, + "type": "category" + }, + "type": "page" + }, + "id": 3, + "logo": { + "type": "image", + "url": "https://hdn-1.fynd.com/media/banner_portrait/brand/original/540_ecba3a1af141467da8abc20500f983db.jpg" + }, + "name": "Amy Kim DDS", + "uid": 3 + } + ], + "discount": "14% OFF", + "is_tryout": false, + "item_code": "ITEM_CODE_4", + "item_type": "set", + "medias": [ + { + "type": "image", + "url": "https://hdn-1.fynd.com/media/fynd_store_items/l2_category/original/2830_c5bb5fc02f414307a828c4c56483c30a.jpg" + } + ], + "name": "optimize web-enabled e-tailers", + "price": { + "effective": { + "currency_code": "INR", + "currency_symbol": "₹", + "max": 1399, + "min": 1199 + }, + "marked": { + "currency_code": "INR", + "currency_symbol": "₹", + "max": 1499, + "min": 1399 + } + }, + "promo_meta": { + "subtitle": "", + "title": "" + }, + "rating": 2.7, + "sellable": true, + "slug": "optimize-web-enabled-e-tailers", + "type": "product", + "uid": 12 } - } + ], + "page": { + "current": 1, + "has_next": true, + "has_previous": false, + "item_total": 15, + "total": 2, + "type": "number" + }, + "sort_on": [ + { + "display": "Latest Products.", + "is_selected": true, + "logo": "https://d2zv4gzhlr4ud6.cloudfront.net/media/pictures/tagged_items/360x0/56_MKT02AI060CORAL/1_1567590349681.jpg", + "name": "Latest Products.", + "value": "latest" + } + ] } ```
-
- @@ -4874,76 +5260,95 @@ List of custom search keywords. See example below or refer `GetSearchWordsRespon --- -### getAppCategoryReturnConfig -Get all category level configuration level set for an application +### getApplicationBrandListing +List all the brands for the application ```javascript // Promise -const promise = platformClient.application("").catalog.getAppCategoryReturnConfig(); +const promise = platformClient.application("").catalog.getApplicationBrandListing({ pageNo : value, + pageSize : value, + q : value }); // Async/Await -const data = await platformClient.application("").catalog.getAppCategoryReturnConfig(); +const data = await platformClient.application("").catalog.getApplicationBrandListing({ pageNo : value, + pageSize : value, + q : value }); ``` +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| pageNo | number | no | The page number to navigate through the given set of results | +| pageSize | number | no | Number of items to retrieve in each page. Default is 12. | +| q | string | no | Search query with brand name.Use this parameter to search brands by brand name. | -Get all category level configuration level set for an application. -*Returned Response:* +A brand is the name under which a product is being sold. Use this API to list all the brands. You can pass optionally filter the brands by the department. If successful, returns a paginated list of brands specified in `BrandListingResponse` +*Returned Response:* -[BaseAppCategoryReturnConfigResponse](#BaseAppCategoryReturnConfigResponse) -success message will tell whether the operation was successful. +[BrandListingResponse](#BrandListingResponse) +List of Brands. See example below or refer `BrandListingResponse` for details -
-  Examples:
-  success +  Example: ```json { - "value": { - "data": [ - { - "app_id": "5d638512c9accedcd910591a", - "category_id": 1659, - "logo": "https://hdn-1.addsale.com/addsale/category/pictures/square-logo/original/7hR5xHVUi0-eTdgOunCZ-.jpeg", - "name": "MG TEST DIGITAL", - "return_config": { - "returnable": true, - "time": 10, - "unit": "days" + "items": [ + { + "action": { + "page": { + "query": { + "brand": [ + "Hess-Inc" + ] + }, + "type": "products" + }, + "type": "page" + }, + "banners": { + "portrait": { + "type": "image", + "url": "https://hdn-1.fynd.com/media/banner_portrait/brand/original/12537_9cdfc6835e814b0986ee1643d38cf6cd.png" } - } - ], - "page": { - "current": 1, - "has_next": false, - "has_previous": false, - "item_total": 1, - "size": 1, - "type": "number" + }, + "en_name": "Barry, Jennings and Larson", + "logo": { + "type": "image", + "url": "https://hdn-1.fynd.com/media/logo/brand/original/12391_0d956c6c71a4427895c15e44cba82f88.jpg" + }, + "name": "Barry, Jennings and Larson", + "slug": "Hess-Inc", + "uid": 1 } + ], + "page": { + "current": 1, + "has_next": false, + "has_previous": false, + "item_total": 1, + "total": 1, + "type": "number" } } ```
-
- @@ -4955,29 +5360,25 @@ success message will tell whether the operation was successful. --- -### getAppInventory -Get the stock of a product +### getApplicationBrands +List all the brands ```javascript // Promise -const promise = platformClient.application("").catalog.getAppInventory({ itemIds : value, - storeIds : value, - brandIds : value, - sellerIdentifiers : value, - timestamp : value, +const promise = platformClient.application("").catalog.getApplicationBrands({ department : value, + pageNo : value, pageSize : value, - pageId : value }); + q : value, + brandId : value }); // Async/Await -const data = await platformClient.application("").catalog.getAppInventory({ itemIds : value, - storeIds : value, - brandIds : value, - sellerIdentifiers : value, - timestamp : value, +const data = await platformClient.application("").catalog.getApplicationBrands({ department : value, + pageNo : value, pageSize : value, - pageId : value }); + q : value, + brandId : value }); ``` @@ -4986,464 +5387,74 @@ const data = await platformClient.application("").catalog.getApp | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| itemIds | Array | no | The Item Id of the product. | -| storeIds | Array | no | The Store Id of products to fetch inventory. | -| brandIds | Array | no | The Brand Id of products to fetch inventory. | -| sellerIdentifiers | Array | no | Unique seller_identifier of the product. | -| timestamp | string | no | Timestamp in UTC format (2020-07-23T10:27:50Z) | -| pageSize | number | no | The number of items to retrieve in each page. | -| pageId | string | no | Page ID to retrieve next set of results. | +| department | string | no | The name of the department. Use this parameter to filter products by a particular department. See below the list of available departments. You can retrieve available departments from the **v1.0/departments/** API | +| pageNo | number | no | The page number to navigate through the given set of results | +| pageSize | number | no | Number of items to retrieve in each page. Default is 12. | +| q | string | no | Search query with brand name.Use this parameter to search brands by brand name. | +| brandId | Array | no | Helps to sort the brands list on the basis of uid list. | -Retrieve the available Inventory of the products. Use this API to get the Inventory status of products with the filters of timestamp, store_ids, brand_ids, item_id - Items - Pagination +A brand is the name under which a product is being sold. Use this API to list all the brands. You can pass optionally filter the brands by the department. If successful, returns a paginated list of brands specified in `BrandListingResponse` *Returned Response:* -[InventoryStockResponse](#InventoryStockResponse) - -Success. Returns the article/stock of the product stock. - +[BrandListingResponse](#BrandListingResponse) +List of Brands. See example below or refer `BrandListingResponse` for details -
-  Examples:
-  success +  Example: ```json { - "value": { - "items": [ - { - "_custom_json": {}, - "_id": "62d809eebeed53f4e27824b0", - "brand": { - "id": 2586 - }, - "company": { - "id": 3 - }, - "country_of_origin": "India", - "created_by": { - "user_id": "2a00eecae43d7e7f4340e7cf", - "username": "mohitkhare_gofynd_com_12594" - }, - "date_meta": { - "added_on_store": 1658325486, - "created_on": 1658325486, - "inventory_updated_on": 1658325486, - "modified_on": 1660913492 - }, - "dimension": { - "height": 30, - "is_default": true, - "length": 10, - "unit": "cm", - "width": 20 - }, - "discount_applied": null, - "expiration_date": "9998-01-30T23:59:00", - "fragile": false, - "fynd_article_code": "LS101269_11", - "fynd_item_code": "LS101269", - "identifier": { - "ean": "LSRS401269" - }, - "is_active": true, - "is_set": false, - "item_id": 7523701, - "manufacturer": { - "address": "POLARIS, 2ND FLOOR, ANDHERI, JSNLCA, MAHARASHTRA, THANE", - "is_default": true, - "name": "Test 21" - }, - "meta": { - "service": "Inventory Job" - }, - "modified_by": { - "user_id": "2a00eecae43d7e7f4340e7cf", - "username": "mohitkhare_gofynd_com_12594" - }, - "platforms": { - "fynd": false, - "uniket_wholesale": true - }, - "price": { - "currency": "INR", - "effective": 3250, - "marked": 5000, - "transfer": 0, - "updated_at": "2022-07-20T13:58:06.122914+00:00" - }, - "quantities": { - "sellable": { - "count": 100, - "updated_at": 1658325486 - } - }, - "raw_meta": { - "fynd_identifier": "624_LSRS401269" - }, - "return_config": { - "returnable": true, - "time": 30, - "unit": "days" - }, - "seller_identifier": "LSRS401269", - "size": "11", - "stage": "verified", - "store": { - "id": 624 - }, - "tax_identifier": { - "hsn_code_id": "000000000000000000000001" + "items": [ + { + "action": { + "page": { + "query": { + "brand": [ + "Hess-Inc" + ] + }, + "type": "products" }, - "total_quantity": 100, - "track_inventory": true, - "trader": [ - { - "address": [ - "Load Galli, Mumbai" - ], - "name": "Load Company", - "type": "Importer" - } - ], - "uid": "624_LSRS401269", - "weight": { - "is_default": true, - "shipping": 40, - "unit": "gram" - } + "type": "page" }, - { - "_custom_json": {}, - "_id": "62d809eebeed53f4e27824b2", - "brand": { - "id": 2586 - }, - "company": { - "id": 3 - }, - "country_of_origin": "India", - "created_by": { - "user_id": "2a00eecae43d7e7f4340e7cf", - "username": "mohitkhare_gofynd_com_12594" - }, - "date_meta": { - "added_on_store": 1658325486, - "created_on": 1658325486, - "inventory_updated_on": 1658325486, - "modified_on": 1660913492 - }, - "dimension": { - "height": 30, - "is_default": true, - "length": 10, - "unit": "cm", - "width": 20 - }, - "discount_applied": null, - "expiration_date": "9998-01-30T23:59:00", - "fragile": false, - "fynd_article_code": "LS101163_11", - "fynd_item_code": "LS101163", - "identifier": { - "ean": "LSRS401163" - }, - "is_active": true, - "is_set": false, - "item_id": 7523925, - "manufacturer": { - "address": "POLARIS, 2ND FLOOR, ANDHERI, JSNLCA, MAHARASHTRA, THANE", - "is_default": true, - "name": "Test 21" - }, - "meta": { - "service": "Inventory Job" - }, - "modified_by": { - "user_id": "2a00eecae43d7e7f4340e7cf", - "username": "mohitkhare_gofynd_com_12594" - }, - "platforms": { - "fynd": false, - "uniket_wholesale": true - }, - "price": { - "currency": "INR", - "effective": 3250, - "marked": 5000, - "transfer": 0, - "updated_at": "2022-07-20T13:58:06.396235+00:00" - }, - "quantities": { - "sellable": { - "count": 100, - "updated_at": 1658325486 - } - }, - "raw_meta": { - "fynd_identifier": "624_LSRS401163" - }, - "return_config": { - "returnable": true, - "time": 30, - "unit": "days" - }, - "seller_identifier": "LSRS401163", - "size": "11", - "stage": "verified", - "store": { - "id": 624 - }, - "tax_identifier": { - "hsn_code_id": "000000000000000000000001" - }, - "total_quantity": 100, - "track_inventory": true, - "trader": [ - { - "address": [ - "Load Galli, Mumbai" - ], - "name": "Load Company", - "type": "Importer" - } - ], - "uid": "624_LSRS401163", - "weight": { - "is_default": true, - "shipping": 40, - "unit": "gram" + "banners": { + "portrait": { + "type": "image", + "url": "https://hdn-1.fynd.com/media/banner_portrait/brand/original/12537_9cdfc6835e814b0986ee1643d38cf6cd.png" } }, - { - "_custom_json": {}, - "_id": "62d809eebeed53f4e27824b4", - "brand": { - "id": 2586 - }, - "company": { - "id": 3 - }, - "country_of_origin": "India", - "created_by": { - "user_id": "2a00eecae43d7e7f4340e7cf", - "username": "mohitkhare_gofynd_com_12594" - }, - "date_meta": { - "added_on_store": 1658325486, - "created_on": 1658325486, - "inventory_updated_on": 1658325486, - "modified_on": 1660913492 - }, - "dimension": { - "height": 30, - "is_default": true, - "length": 10, - "unit": "cm", - "width": 20 - }, - "discount_applied": null, - "expiration_date": "9998-01-30T23:59:00", - "fragile": false, - "fynd_article_code": "LS101173_11", - "fynd_item_code": "LS101173", - "identifier": { - "ean": "LSRS401173" - }, - "is_active": true, - "is_set": false, - "item_id": 7523691, - "manufacturer": { - "address": "POLARIS, 2ND FLOOR, ANDHERI, JSNLCA, MAHARASHTRA, THANE", - "is_default": true, - "name": "Test 21" - }, - "meta": { - "service": "Inventory Job" - }, - "modified_by": { - "user_id": "2a00eecae43d7e7f4340e7cf", - "username": "mohitkhare_gofynd_com_12594" - }, - "platforms": { - "fynd": false, - "uniket_wholesale": true - }, - "price": { - "currency": "INR", - "effective": 3250, - "marked": 5000, - "transfer": 0, - "updated_at": "2022-07-20T13:58:06.635248+00:00" - }, - "quantities": { - "sellable": { - "count": 100, - "updated_at": 1658325486 - } - }, - "raw_meta": { - "fynd_identifier": "624_LSRS401173" - }, - "return_config": { - "returnable": true, - "time": 30, - "unit": "days" - }, - "seller_identifier": "LSRS401173", - "size": "11", - "stage": "verified", - "store": { - "id": 624 - }, - "tax_identifier": { - "hsn_code_id": "000000000000000000000001" - }, - "total_quantity": 100, - "track_inventory": true, - "trader": [ - { - "address": [ - "Load Galli, Mumbai" - ], - "name": "Load Company", - "type": "Importer" - } - ], - "uid": "624_LSRS401173", - "weight": { - "is_default": true, - "shipping": 40, - "unit": "gram" - } + "en_name": "Barry, Jennings and Larson", + "logo": { + "type": "image", + "url": "https://hdn-1.fynd.com/media/logo/brand/original/12391_0d956c6c71a4427895c15e44cba82f88.jpg" }, - { - "_custom_json": {}, - "_id": "62d809eebeed53f4e27824b6", - "brand": { - "id": 2586 - }, - "company": { - "id": 3 - }, - "country_of_origin": "India", - "created_by": { - "user_id": "2a00eecae43d7e7f4340e7cf", - "username": "mohitkhare_gofynd_com_12594" - }, - "date_meta": { - "added_on_store": 1658325486, - "created_on": 1658325486, - "inventory_updated_on": 1658325486, - "modified_on": 1660913492 - }, - "dimension": { - "height": 30, - "is_default": true, - "length": 10, - "unit": "cm", - "width": 20 - }, - "discount_applied": null, - "expiration_date": "9998-01-30T23:59:00", - "fragile": false, - "fynd_article_code": "LS101198_11", - "fynd_item_code": "LS101198", - "identifier": { - "ean": "LSRS401198" - }, - "is_active": true, - "is_set": false, - "item_id": 7524280, - "manufacturer": { - "address": "POLARIS, 2ND FLOOR, ANDHERI, JSNLCA, MAHARASHTRA, THANE", - "is_default": true, - "name": "Test 21" - }, - "meta": { - "service": "Inventory Job" - }, - "modified_by": { - "user_id": "2a00eecae43d7e7f4340e7cf", - "username": "mohitkhare_gofynd_com_12594" - }, - "platforms": { - "fynd": false, - "uniket_wholesale": true - }, - "price": { - "currency": "INR", - "effective": 3250, - "marked": 5000, - "transfer": 0, - "updated_at": "2022-07-20T13:58:06.898687+00:00" - }, - "quantities": { - "sellable": { - "count": 100, - "updated_at": 1658325486 - } - }, - "raw_meta": { - "fynd_identifier": "624_LSRS401198" - }, - "return_config": { - "returnable": true, - "time": 30, - "unit": "days" - }, - "seller_identifier": "LSRS401198", - "size": "11", - "stage": "verified", - "store": { - "id": 624 - }, - "tax_identifier": { - "hsn_code_id": "000000000000000000000001" - }, - "total_quantity": 100, - "track_inventory": true, - "trader": [ - { - "address": [ - "Load Galli, Mumbai" - ], - "name": "Load Company", - "type": "Importer" - } - ], - "uid": "624_LSRS401198", - "weight": { - "is_default": true, - "shipping": 40, - "unit": "gram" - } - } - ], - "page": { - "has_next": true, - "has_previous": true, - "item_total": 1714, - "next_id": "62d809eebeed53f4e27824b6", - "type": "cursor" + "name": "Barry, Jennings and Larson", + "slug": "Hess-Inc", + "uid": 1 } + ], + "page": { + "current": 1, + "has_next": false, + "has_previous": false, + "item_total": 1, + "total": 1, + "type": "number" } } ```
-
- @@ -5455,33 +5466,23 @@ Success. Returns the article/stock of the product stock. --- -### getAppLocations -Get list of locations +### getApplicationCategoryListing +List all the brands for the application ```javascript // Promise -const promise = platformClient.application("").catalog.getAppLocations({ storeType : value, - uid : value, - q : value, - stage : value, +const promise = platformClient.application("").catalog.getApplicationCategoryListing({ departmentId : value, pageNo : value, pageSize : value, - tags : value, - storeTypes : value, - companyUids : value }); + q : value }); // Async/Await -const data = await platformClient.application("").catalog.getAppLocations({ storeType : value, - uid : value, - q : value, - stage : value, +const data = await platformClient.application("").catalog.getApplicationCategoryListing({ departmentId : value, pageNo : value, pageSize : value, - tags : value, - storeTypes : value, - companyUids : value }); + q : value }); ``` @@ -5490,86 +5491,73 @@ const data = await platformClient.application("").catalog.getApp | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| storeType | string | no | Helps to sort the location list on the basis of location type. | -| uid | string | no | Helps to sort the location list on the basis of uid list. | -| q | string | no | Query that is to be searched. | -| stage | string | no | to filter companies on basis of verified or unverified companies. | +| departmentId | number | no | A `department_id` is a unique identifier for a particular department. | | pageNo | number | no | The page number to navigate through the given set of results | -| pageSize | number | no | Number of items to retrieve in each page. Default is 20. | -| tags | Array | no | Get locations filtered by tags. | -| storeTypes | Array | no | Get locations filtered by store types. | -| companyUids | Array | no | Filter stores by company IDs available in the application. | +| pageSize | number | no | Number of items to retrieve in each page. Default is 12. | +| q | string | no | Search query with brand name.Use this parameter to search brands by brand name. | -This API allows to view all the locations asscoiated to a application. +A brand is the name under which a product is being sold. Use this API to list all the brands. You can pass optionally filter the brands by the department. If successful, returns a paginated list of brands specified in `BrandListingResponse` *Returned Response:* -[LocationListSerializer](#LocationListSerializer) - -Company profile object. See example below or refer `LocationListSerializer` for details - +[BrandListingResponse](#BrandListingResponse) +List of Brands. See example below or refer `BrandListingResponse` for details -
-  Examples:
-  success +  Example: ```json { - "value": { - "filters": [], - "items": [ - { - "address": { - "address1": "POLARIS 2ND FLOOR, ANDHERI", - "address2": "", - "city": "MUMBAI", - "country": "INDIA", - "landmark": "", - "lat_long": { - "coordinates": [ - 72.8776559, - 19.0759837 - ], - "type": "Point" + "items": [ + { + "action": { + "page": { + "query": { + "brand": [ + "Hess-Inc" + ] }, - "pincode": 400001, - "state": "MAHARASHTRA" + "type": "products" }, - "code": "", - "company_id": 2, - "display_name": "Test", - "name": "Test", - "phone_number": "", - "store_code": "HS-a0c85", - "store_type": "high_street", - "uid": 2 - } - ], - "page": { - "current": 1, - "has_next": true, - "has_previous": false, - "item_total": 3, - "size": 3, - "type": "number" + "type": "page" + }, + "banners": { + "portrait": { + "type": "image", + "url": "https://hdn-1.fynd.com/media/banner_portrait/brand/original/12537_9cdfc6835e814b0986ee1643d38cf6cd.png" + } + }, + "en_name": "Barry, Jennings and Larson", + "logo": { + "type": "image", + "url": "https://hdn-1.fynd.com/media/logo/brand/original/12391_0d956c6c71a4427895c15e44cba82f88.jpg" + }, + "name": "Barry, Jennings and Larson", + "slug": "Hess-Inc", + "uid": 1 } + ], + "page": { + "current": 1, + "has_next": false, + "has_previous": false, + "item_total": 1, + "total": 1, + "type": "number" } } ```
-
- @@ -5581,25 +5569,21 @@ Company profile object. See example below or refer `LocationListSerializer` for --- -### getAppPriceFactories -Get price factory +### getApplicationDepartmentListing +List all the departments for the application ```javascript // Promise -const promise = platformClient.application("").catalog.getAppPriceFactories({ isActive : value, - factoryTypeId : value, - code : value, - pageNo : value, - pageSize : value }); +const promise = platformClient.application("").catalog.getApplicationDepartmentListing({ pageNo : value, + pageSize : value, + q : value }); // Async/Await -const data = await platformClient.application("").catalog.getAppPriceFactories({ isActive : value, - factoryTypeId : value, - code : value, - pageNo : value, - pageSize : value }); +const data = await platformClient.application("").catalog.getApplicationDepartmentListing({ pageNo : value, + pageSize : value, + q : value }); ``` @@ -5608,24 +5592,22 @@ const data = await platformClient.application("").catalog.getApp | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| isActive | boolean | no | gets price factory filtered by active status. | -| factoryTypeId | string | no | gets price factory filtered by factory_type_id. | -| code | string | no | gets price factory filtered by pricezone code. | -| pageNo | number | no | The page number to navigate through the given set of results. | -| pageSize | number | no | Number of items to retrieve in each page. Default is 12. | +| pageNo | number | no | The page number to navigate through the given set of results | +| pageSize | number | no | Number of items to retrieve in each page. Default is 12. | +| q | string | no | Search query with brand name.Use this parameter to search department by name. | -This API allows to get price factories. +Departments are a way to categorise similar products. A product can lie in multiple departments. For example, a skirt can below to the 'Women's Fashion' Department while a handbag can lie in 'Women's Accessories' Department. Use this API to list all the application departments. If successful, returns the list of departments specified in `ApplicationDepartmentListingResponse` *Returned Response:* -[GetAppPriceFactoryResponse](#GetAppPriceFactoryResponse) +[ApplicationDepartmentListingResponse](#ApplicationDepartmentListingResponse) -Returns a success response +List of Departments. See example below or refer `BrandListingResponse` for details @@ -5637,31 +5619,39 @@ Returns a success response { "items": [ { - "application_id": "507f1f77bcf86cd799439011", - "department_ids": [ - 123, - 124 - ], - "factory_type": "pricezone", - "factory_type_ids": [ - "507f1f77bcf86cd799439011" - ], - "code": "pricezone", - "name": "pricezone", - "is_active": true, - "created_by": { - "user_id": "507f1f77bcf86cd799439011", - "username": "testuser" + "action": { + "page": { + "query": { + "brand": [ + "Hess-Inc" + ] + }, + "type": "products" + }, + "type": "page" }, - "modified_by": { - "user_id": "507f1f77bcf86cd799439011", - "username": "testuser" + "app_id": "000000000000000000000001", + "banners": { + "portrait": { + "type": "image", + "url": "https://hdn-1.fynd.com/media/banner_portrait/brand/original/12537_9cdfc6835e814b0986ee1643d38cf6cd.png" + } }, - "created_on": "2021-09-23T12:00:00.000000Z", - "modified_on": "2021-09-23T12:00:00.000000Z", - "id": "507f1f77bcf86cd799439011" + "en_name": "Barry, Jennings and Larson", + "logo": "https://hdn-1.fynd.com/media/logo/brand/original/12391_0d956c6c71a4427895c15e44cba82f88.jpg", + "name": "Barry, Jennings and Larson", + "slug": "Hess-Inc", + "uid": 1 } - ] + ], + "page": { + "current": 1, + "has_next": false, + "has_previous": false, + "item_total": 1, + "total": 1, + "type": "number" + } } ``` @@ -5677,17 +5667,17 @@ Returns a success response --- -### getAppPriceFactory -Get price factory +### getApplicationFilterKeys +Get filters keys of the filter options. ```javascript // Promise -const promise = platformClient.application("").catalog.getAppPriceFactory({ id : value }); +const promise = platformClient.application("").catalog.getApplicationFilterKeys({ c : value }); // Async/Await -const data = await platformClient.application("").catalog.getAppPriceFactory({ id : value }); +const data = await platformClient.application("").catalog.getApplicationFilterKeys({ c : value }); ``` @@ -5695,21 +5685,21 @@ const data = await platformClient.application("").catalog.getApp | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| id | string | yes | An `id` is a unique identifier for a particular price factory. | +| --------- | ----- | -------- | ----------- | +| c | string | no | The search filter parameters for collection items. All the parameter filtered from filter parameters will be passed in **c** parameter in this format. **?c=brand:in:voi-jeans\|and:::category:nin:t-shirts\|shirts** | -This API allows to get price factory. +Get query filters keys to configure a collection *Returned Response:* -[AppPriceFactory](#AppPriceFactory) +[GetQueryFiltersKeysResponse](#GetQueryFiltersKeysResponse) -Returns a success response +The attached items of an collection. See example below or refer `GetQueryFiltersKeysResponse` for details @@ -5719,28 +5709,111 @@ Returns a success response ```json { - "application_id": "507f1f77bcf86cd799439011", - "department_ids": [ - "fashion" - ], - "factory_type": "pricezone", - "factory_type_ids": [ - "507f1f77bcf86cd799439011" + "filters": [ + { + "key": { + "display": "Department", + "kind": "multivalued", + "logo": "https://hdn-1.fynd.com/global/menu-icons/Department.png", + "name": "department", + "operators": [ + "in", + "nin" + ] + } + }, + { + "key": { + "display": "Category", + "kind": "multivalued", + "logo": "https://hdn-1.fynd.com/global/menu-icons/Category.png", + "name": "category", + "operators": [ + "in", + "nin" + ] + } + }, + { + "key": { + "display": "Category L1", + "kind": "multivalued", + "logo": "https://hdn-1.fynd.com/global/menu-icons/Category.png", + "name": "category", + "operators": [ + "in", + "nin" + ] + } + } ], - "code": "pricezone", - "name": "pricezone", - "is_active": true, - "created_by": { - "user_id": "507f1f77bcf86cd799439011", - "username": "testuser" - }, - "modified_by": { - "user_id": "507f1f77bcf86cd799439011", - "username": "testuser" + "operators": { + "btw": "Between", + "lte": "Less than Equals", + "gte": "Greater than Equals", + "gt": "Greater than", + "lt": "Less than", + "in": "Equal to", + "nin": "Not Equal to" }, - "created_on": "2021-09-23T12:00:00.000000Z", - "modified_on": "2021-09-23T12:00:00.000000Z", - "id": "507f1f77bcf86cd799439011" + "sort_on": [ + { + "display": "Latest Products", + "is_selected": true, + "logo": "https://hdn-1.fynd.com/global/menu-icons/Latest%20Products.png", + "name": "Latest Products", + "value": "latest" + }, + { + "display": "Popularity", + "is_selected": false, + "logo": "https://hdn-1.fynd.com/global/menu-icons/Popularity.png", + "name": "Popularity", + "value": "popular" + }, + { + "display": "Price Low to High", + "is_selected": false, + "logo": "https://hdn-1.fynd.com/global/menu-icons/Price%20High%20to%20Low.png", + "name": "Price Low to High", + "value": "price_asc" + }, + { + "display": "Price High to Low", + "is_selected": false, + "logo": "https://hdn-1.fynd.com/global/menu-icons/Price%20High%20to%20Low.png", + "name": "Price High to Low", + "value": "price_dsc" + }, + { + "display": "Discount Low to High", + "is_selected": false, + "logo": "https://hdn-1.fynd.com/global/menu-icons/Discount%20Low%20to%20High.png", + "name": "Discount Low to High", + "value": "discount_asc" + }, + { + "display": "Discount High to Low", + "is_selected": false, + "logo": "https://hdn-1.fynd.com/global/menu-icons/Discount%20Low%20to%20High.png", + "name": "Discount High to Low", + "value": "discount_dsc" + }, + { + "display": "Rating", + "is_selected": false, + "logo": "https://hdn-1.fynd.com/global/menu-icons/Rating.png", + "name": "Rating", + "value": "rating_dsc" + }, + { + "display": "Size Depth (High to Low)", + "is_selected": false, + "logo": "https://hdn-1.fynd.com/global/menu-icons/Size%20Depth.png", + "name": "Size Depth (High to Low)", + "value": "depth_desc" + } + ] } ``` @@ -5756,17 +5829,27 @@ Returns a success response --- -### getAppProduct -Get company application product data. +### getApplicationFilterValues +Get values of the selected value for the filter options. ```javascript // Promise -const promise = platformClient.application("").catalog.getAppProduct({ itemId : value }); +const promise = platformClient.application("").catalog.getApplicationFilterValues({ filterKey : value, + c : value, + collectionId : value, + pageNo : value, + pageSize : value, + q : value }); // Async/Await -const data = await platformClient.application("").catalog.getAppProduct({ itemId : value }); +const data = await platformClient.application("").catalog.getApplicationFilterValues({ filterKey : value, + c : value, + collectionId : value, + pageNo : value, + pageSize : value, + q : value }); ``` @@ -5775,62 +5858,72 @@ const data = await platformClient.application("").catalog.getApp | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| itemId | number | yes | product id for a particular product. | +| filterKey | string | yes | A `filter_key` is a filter key for a for which all the available filter values will returned. channel. | +| c | string | no | The search filter parameters for collection items. All the parameter filtered from filter parameters will be passed in **c** parameter in this format. **?c=brand:in:voi-jeans\|and:::category:nin:t-shirts\|shirts** | +| collectionId | string | no | A `collection_id` is a unique identifier for a particular collection. channel. | +| pageNo | number | no | The page number to navigate through the given set of results | +| pageSize | number | no | Number of items to retrieve in each page. Default is 10. | +| q | string | no | Get Values filtered by q string | -Products are the core resource of an application. If successful, returns a Company Application Product resource in the response body depending upon filter sent. +Get query filters keys to configure a collection *Returned Response:* -[OwnerAppItemResponse](#OwnerAppItemResponse) - -The Company Applicaton Product Data(MOQ/SEO). - +[GetQueryFiltersValuesResponse](#GetQueryFiltersValuesResponse) +The attached items of an collection. See example below or refer `GetQueryFiltersValuesResponse` for details -
-  Examples:
-  success +  Example: ```json { - "value": { - "alt_text": { - "https://test-url.com/test.png": "test-alt" - }, - "is_cod": false, - "is_gift": false, - "moq": { - "increment_unit": 2, - "maximum": 10, - "minimum": 1 - }, - "seo": { - "description": "test-description", - "title": "test-title", - "breadcrumbs": [], - "sitemap": {}, - "meta_tags": [] - }, - "size_promotion_threshold": { - "threshold_type": "flat", - "threshold_value": 100 + "values": [ + { + "display": "OS", + "count": 2, + "is_selected": false, + "value": "OS" + }, + { + "display": "S", + "count": 2, + "is_selected": false, + "value": "S" + }, + { + "display": "M", + "count": 2, + "is_selected": false, + "value": "M" + }, + { + "display": "L", + "count": 2, + "is_selected": false, + "value": "L" } + ], + "page": { + "current": 1, + "has_next": false, + "has_previous": false, + "item_total": 12, + "size": 1, + "type": "number" } } ```
-
- @@ -5842,244 +5935,86 @@ The Company Applicaton Product Data(MOQ/SEO). --- -### getAppProducts -Get applicationwise products +### getAutocompleteConfig +List all Autocomplete Keyword Listing ```javascript // Promise -const promise = platformClient.application("").catalog.getAppProducts({ brandIds : value, - categoryIds : value, - departmentIds : value, - tags : value, - itemIds : value, - pageNo : value, - pageSize : value, - q : value }); +const promise = platformClient.application("").catalog.getAutocompleteConfig(); // Async/Await -const data = await platformClient.application("").catalog.getAppProducts({ brandIds : value, - categoryIds : value, - departmentIds : value, - tags : value, - itemIds : value, - pageNo : value, - pageSize : value, - q : value }); +const data = await platformClient.application("").catalog.getAutocompleteConfig(); ``` -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| brandIds | Array | no | Get multiple products filtered by Brand Ids | -| categoryIds | Array | no | Get multiple products filtered by Category Ids | -| departmentIds | Array | no | Get multiple products filtered by Department Ids | -| tags | Array | no | Get multiple products filtered by tags | -| itemIds | Array | no | Get multiple products filtered by Item Ids | -| pageNo | number | no | The page number to navigate through the given set of results | -| pageSize | number | no | Number of items to retrieve in each page. Default is 10. | -| q | string | no | Search with Item Code, Name, Slug or Identifier. | - - -Products are the core resource of an application. Products can be associated by categories, collections, brands and more. If successful, returns a Product resource in the response body specified in `ApplicationProductListingResponseDatabasePowered` +Custom Autocomplete Keyword allows you to map conditions with keywords to give you the ultimate results *Returned Response:* -[RawProductListingResponse](#RawProductListingResponse) - -The Product object. See example below or refer `ApplicationProductListingResponseDatabasePowered` for details. - +[GetAutocompleteWordsResponse](#GetAutocompleteWordsResponse) +List of custom autocomplete keywords. See example below or refer `GetAutocompleteWordsResponseSchema` for details -
-  Examples:
-  success +  Example: ```json { - "value": { - "items": [ - { - "_custom_json": {}, - "all_company_ids": [ - 1 - ], - "all_identifiers": [ - "19WE100" - ], - "all_sizes": [ - { - "brand_uid": 1, - "company_id": 1, - "identifiers": [ - { - "gtin_type": "ean", - "gtin_value": "HGS272727272", - "primary": true - } - ], - "item_code": "TVSET111", - "marked_price": 35000, - "seller_identifier": "HGS272727272", - "size": "XXLX23, MX11, LX67, XLX45 (146 PCS)" - } - ], - "brand": { - "logo": { - "aspect_ratio": "1:1", - "aspect_ratio_f": 1, - "secure_url": "https://hdn-1.jiox0.de/jioecomm/seller/pictures/logo/50x0/apple-7f951c/logo_apple.png", - "url": "https://hdn-1.jiox0.de/jioecomm/seller/pictures/logo/50x0/apple-7f951c/logo_apple.png" + "items": [ + { + "app_id": "000000000000000000000001", + "is_active": true, + "results": [ + { + "_custom_json": {}, + "action": { + "page": { + "query": { + "brand": [ + "nike" + ] + }, + "type": "products", + "url": "/products/?brand=nike" + }, + "type": "page" }, - "name": "Apple", - "uid": 13 - }, - "brand_uid": 1, - "category_slug": "qled-television", - "category_uid": 1, - "country_of_origin": "India", - "created_by": { - "user_id": "5", - "username": "919049753052_37528" - }, - "created_on": "2021-04-02T15:43:59.410000Z", - "currency": "INR", - "custom_order": { - "is_custom_order": true, - "manufacturing_time": 2, - "manufacturing_time_unit": "days" - }, - "departments": [ - 1 - ], - "description": "Tv", - "highlights": [ - "42 Inch" - ], - "hsn_code": "11111111", - "id": "5f4f2f6371a5970001f13655", - "image_nature": "standard", - "images": [ - "https://cdn.fynd.com/v2/falling-surf-7c8bb8/fyprod/wrkr/products/pictures/item/free/original/5050407896640/8hn0-cPlN0-1.jpg", - "https://cdn.fynd.com/v2/falling-surf-7c8bb8/fyprod/wrkr/products/pictures/item/free/original/5050407896640/1ODGjR9NLY-2.jpg", - "https://cdn.fynd.com/v2/falling-surf-7c8bb8/fyprod/wrkr/products/pictures/item/free/original/5050407896640/mJqqfEQilY-3.jpg", - "https://cdn.fynd.com/v2/falling-surf-7c8bb8/fyprod/wrkr/products/pictures/item/free/original/5050407896640/htM1r1aHwa-4.jpg" - ], - "is_dependent": false, - "is_image_less_product": false, - "is_physical": true, - "is_set": true, - "item_code": "TVSET111", - "item_type": "set", - "l3_mapping": [ - "electronics>qled_television" - ], - "media": [ - { - "type": "image", - "url": "https://hdn-1.addsale.com/x0/products/pictures/item/free/135x0/dcizgsG_Y-Tv-Set.png" - } - ], - "modified_by": { - "user_id": "xxxxxxxxxxx", - "username": "xxxxxxxxxx" - }, - "modified_on": "2021-04-02T15:43:59.410000Z", - "multi_size": true, - "name": "TV Set", - "no_of_boxes": 1, - "price": { - "effective": { - "max": 25000, - "min": 25000 - }, - "marked": { - "max": 35000, - "min": 35000 - } - }, - "product_group_tag": [], - "product_publish": { - "is_set": false, - "product_online_date": 1627642009 - }, - "return_config": { - "returnable": false, - "time": 0, - "unit": "days" - }, - "short_description": "", - "size_guide": "slim-fit-shirts-for-men", - "sizes": [ - { - "size": "FGX33, GHX33 (66 PCS)", - "store_count": 1 - }, - { - "size": "XSE WE23X100 (100 PCS)", - "store_count": 2 - }, - { - "size": "XSEX100 (100 PCS)", - "store_count": 3 - }, - { - "size": "XXLX23, MX11, LX67, XLX45 (146 PCS)", - "store_count": 3 - } - ], - "slug": "tv-set", - "stage": "verified", - "synonyms": [], - "tags": [], - "teaser_tag": {}, - "template_tag": "television", - "trader": [ - { - "address": [ - "sdfdsfsdf" - ], - "name": "asdasd" + "display": "Helllow", + "logo": { + "url": "https://hdn-1.addsale.com/addsale/company/61/applications/600a5b3fe0991a4718cdb448/company/1/application/000000000000000000000001/search/pictures/square-logo/original/n_8bvEaBw-Helllow.png" } - ], - "trader_type": "Packer", - "uid": 7501547, - "variants": {}, - "verification_status": "pending", - "verified_by": { - "user_id": "0", - "username": "Silverbolt" - }, - "verified_on": "2021-04-02T15:43:59.410000Z" - } - ], - "page": { - "current": 1, - "has_next": false, - "has_previous": false, - "item_total": 1, - "size": 1, - "type": "number" + } + ], + "uid": "602fa1eaa596ce349563f6c6", + "words": [ + "dasd" + ] } + ], + "page": { + "current": 1, + "has_next": false, + "has_previous": false, + "item_count": 1, + "size": 1, + "type": "number" } } ```
-
- @@ -6091,66 +6026,128 @@ The Product object. See example below or refer `ApplicationProductListingRespons --- -### getAppReturnConfiguration -Get Return configuration level set for an application +### getAutocompleteKeywordDetail +Get a Autocomplete Keywords Details ```javascript // Promise -const promise = platformClient.application("").catalog.getAppReturnConfiguration(); +const promise = platformClient.application("").catalog.getAutocompleteKeywordDetail({ id : value }); // Async/Await -const data = await platformClient.application("").catalog.getAppReturnConfiguration(); +const data = await platformClient.application("").catalog.getAutocompleteKeywordDetail({ id : value }); ``` +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| id | string | yes | A `id` is a unique identifier for a particular detail. Pass the `id` of the keywords which you want to retrieve. | -Get Product Return configuration set at an application level -*Returned Response:* +Get the details of a words by its `id`. If successful, returns a keywords resource in the response body specified in `GetAutocompleteWordsResponseSchema` +*Returned Response:* -[AppReturnConfigResponse](#AppReturnConfigResponse) -success message will tell whether the operation was successful. +[GetAutocompleteWordsResponse](#GetAutocompleteWordsResponse) +The mapping object. See example below or refer `GetAutocompleteWordsResponseSchema` for details -
-  Examples:
-  success +  Example: ```json { - "value": { - "app_id": "5d638512c9accedcd910591a", - "category_count": 32, - "company_id": 1, - "created_by": { - "user_id": "054bb99f009aece85a3fa087", - "username": "test" - }, - "modified_by": { - "user_id": "054bb99f009aece85a3fa087", - "username": "test" - }, - "modified_on": "2023-03-28T06:05:24.026000", - "return_config_level": "category" - } + "app_id": "000000000000000000000001", + "is_active": true, + "results": [ + { + "_custom_json": {}, + "action": { + "page": { + "query": { + "brand": [ + "nike" + ] + }, + "type": "products", + "url": "/products/?brand=nike" + }, + "type": "page" + }, + "display": "Helllow", + "logo": { + "url": "https://hdn-1.addsale.com/addsale/company/61/applications/600a5b3fe0991a4718cdb448/company/1/application/000000000000000000000001/search/pictures/square-logo/original/n_8bvEaBw-Helllow.png" + } + } + ], + "uid": "602fa1eaa596ce349563f6c6", + "words": [ + "dasd" + ] } ```
+ + + + + + + + +--- + + +### getCatalogConfiguration +Get configuration meta details for catalog for admin panel + + + +```javascript +// Promise +const promise = platformClient.application("").catalog.getCatalogConfiguration(); + +// Async/Await +const data = await platformClient.application("").catalog.getCatalogConfiguration(); +``` + + + + + + +configuration meta details for catalog. + +*Returned Response:* + + + + +[GetCatalogConfigurationMetaData](#GetCatalogConfigurationMetaData) + +configuration details for catalog. See example below or refer `GetCatalogConfigurationMetaDataSchema` for details + + + + +
+  Example: + +```json + +```
@@ -6164,37 +6161,17 @@ success message will tell whether the operation was successful. --- -### getAppicationProducts -List the products +### getCatalogInsights +Analytics data of catalog and inventory. ```javascript // Promise -const promise = platformClient.application("").catalog.getAppicationProducts({ q : value, - f : value, - c : value, - filters : value, - isDependent : value, - sortOn : value, - pageId : value, - pageSize : value, - pageNo : value, - pageType : value, - itemIds : value }); +const promise = platformClient.application("").catalog.getCatalogInsights({ brand : value }); // Async/Await -const data = await platformClient.application("").catalog.getAppicationProducts({ q : value, - f : value, - c : value, - filters : value, - isDependent : value, - sortOn : value, - pageId : value, - pageSize : value, - pageNo : value, - pageType : value, - itemIds : value }); +const data = await platformClient.application("").catalog.getCatalogInsights({ brand : value }); ``` @@ -6203,8198 +6180,178 @@ const data = await platformClient.application("").catalog.getApp | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| q | string | no | The search query. This can be a partial or complete name of a either a product, brand or category | -| f | string | no | The search filter parameters. All the parameter filtered from filter parameters will be passed in **f** parameter in this format. **?f=brand:voi-jeans\|\|and:::category:t-shirts\|\|shirts** | -| c | string | no | The search filter parameters for collection items. All the parameter filtered from filter parameters will be passed in **c** parameter in this format. **?c=brand:in:voi-jeans\|and:::category:nin:t-shirts\|shirts** | -| filters | boolean | no | Pass `filters` parameter to fetch the filter details. This flag is used to fetch all filters | -| isDependent | boolean | no | This query parameter is used to get the dependent products in the listing. | -| sortOn | string | no | The order to sort the list of products on. The supported sort parameters are popularity, price, redemption and discount in either ascending or descending order. See the supported values below. | -| pageId | string | no | Each response will contain **page_id** param, which should be sent back to make pagination work. | -| pageSize | number | no | Number of items to retrieve in each page. Default is 12. | -| pageNo | number | no | If page_type is number then pass it to fetch page items. Default is 1. | -| pageType | string | no | For pagination type should be cursor or number. Default is cursor. | -| itemIds | Array | no | Item Ids of product | +| brand | string | no | Brand slug | -List all the products associated with a brand, collection or category in a requested sort order. The API additionally supports arbitrary search queries that may refer the name of any product, brand, category or collection. If successful, returns a paginated list of products specified in `ApplicationProductListingResponse` +Catalog Insights api returns the count of catalog related data like products, brands, departments and categories that have been made live as per configuration of the app. *Returned Response:* -[ApplicationProductListingResponse](#ApplicationProductListingResponse) +[CatalogInsightResponse](#CatalogInsightResponse) -List of Products. See example below or refer `ApplicationProductListingResponse` for details +Response Data
-  Examples: +  Example: + +```json +{ + "item": { + "count": 637707, + "out_of_stock_count": 452806, + "sellable_count": 184901 + } +} +``` +
+ + + + + + + + + +--- + + +### getCategories +List all the categories + + + +```javascript +// Promise +const promise = platformClient.application("").catalog.getCategories({ department : value }); + +// Async/Await +const data = await platformClient.application("").catalog.getCategories({ department : value }); +``` + + + + + +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| department | string | no | The name of the department. Use this parameter to filter products by a particular department. See below the list of available departments. You can retrieve available departments from the **v1.0/departments/** API | + + + +List all the categories. You can optionally pass filter the brands by the department. If successful, returns a paginated list of brands specified in `CategoryListingResponse` + +*Returned Response:* + + + + +[CategoryListingResponse](#CategoryListingResponse) + +List of Categories. See example below or refer `CategoryListingResponse` for details. + +
-  success +  Example: ```json { - "value": { - "filters": [ - { - "key": { - "display": "Department", - "kind": "multivalued", - "logo": "https://hdn-1.fynd.com/global/menu-icons/Department.svg", - "name": "department" - }, - "values": [ - { - "count": 15, - "display": "Debra Villarreal", - "is_selected": false, - "logo": { - "type": "image", - "url": "http://cdn4.gofynd.com/media/category_tab_icons/department/Men.png" - }, - "value": "Debra-Villarreal" - }, - { - "count": 15, - "display": "Tracey Miller", - "is_selected": false, - "logo": { - "type": "image", - "url": "http://cdn4.gofynd.com/media/category_tab_icons/department/Men.png" - }, - "value": "Tracey-Miller" - } - ] - }, - { - "key": { - "display": "Category", - "kind": "multivalued", - "logo": "https://hdn-1.fynd.com/global/menu-icons/Category.svg", - "name": "category" - }, - "values": [ - { - "count": 15, - "display": "Amy Kim DDS", - "is_selected": false, - "logo": "http://cdn4.gofynd.com/media/banner/category/original/12063_a5bb91bd5cb44c3c9db98c2a0e6b3d99.jpg", - "value": "3" - } - ] - }, - { - "key": { - "display": "Gender", - "kind": "multivalued", - "logo": "https://hdn-1.fynd.com/global/menu-icons/Gender.svg", - "name": "gender" - }, - "values": [ - { - "count": 15, - "display": "Men", - "is_selected": false, - "value": "men" - }, - { - "count": 15, - "display": "Women", - "is_selected": false, - "value": "women" - } - ] - }, - { - "key": { - "display": "Size", - "kind": "multivalued", - "logo": "https://hdn-1.fynd.com/global/menu-icons/Sizes.svg", - "name": "sizes" - }, - "values": [ - { - "count": 15, - "display": "13", - "is_selected": false, - "value": "13" - } - ] - }, - { - "key": { - "display": "Brand", - "kind": "multivalued", - "logo": "https://hdn-1.fynd.com/global/menu-icons/Brand%20ID.svg", - "name": "brand" - }, - "values": [ - { - "count": 15, - "display": "Barry, Jennings and Larson", - "is_selected": false, - "logo": "https://hdn-1.fynd.com/media/logo/brand/original/12391_0d956c6c71a4427895c15e44cba82f88.jpg", - "value": "1" - } - ] - }, - { - "key": { - "display": "Rating", - "kind": "multivalued", - "logo": "https://hdn-1.fynd.com/global/menu-icons/Rating.svg", - "name": "rating" - }, - "values": [ - { - "count": 15, - "display": "2 - 3", - "is_selected": false, - "value": "[2 TO 3}" - } - ] - }, - { - "key": { - "display": "Image", - "kind": "multivalued", - "logo": "https://hdn-1.fynd.com/global/menu-icons/image%20Nature.svg", - "name": "image_nature" - }, - "values": [ - { - "count": 15, - "display": "GoodQuality", - "is_selected": false, - "value": "standard" - } - ] - }, - { - "key": { - "display": "Monica Hampton", - "kind": "multivalued", - "logo": "https://hdn-1.fynd.com/global/menu-icons/image%20Nature.svg", - "name": "material" - }, - "values": [ - { - "count": 15, - "display": "Neoprene", - "is_selected": false, - "value": "Neoprene" - } - ] - }, - { - "key": { - "display": "John Mendoza", - "kind": "multivalued", - "logo": "https://hdn-1.fynd.com/global/menu-icons/image%20Nature.svg", - "name": "weight" - }, - "values": [ - { - "count": 15, - "display": "100", - "is_selected": false, - "value": "100" - } - ] - }, - { - "key": { - "display": "Kimberly Mcdaniel", - "kind": "multivalued", - "logo": "https://hdn-1.fynd.com/global/menu-icons/image%20Nature.svg", - "name": "gender" - }, - "values": [ - { - "count": 15, - "display": "['Men', 'Women']", - "is_selected": false, - "value": "['Men', 'Women']" - } - ] - }, - { - "key": { - "display": "Kimberly Davidson", - "kind": "multivalued", - "logo": "https://hdn-1.fynd.com/global/menu-icons/image%20Nature.svg", - "name": "color" - }, - "values": [ - { - "count": 15, - "display": "Grey", - "is_selected": false, - "value": "808080" - } - ] - }, - { - "key": { - "display": "Available", - "kind": "singlevalued", - "logo": "https://hdn-1.fynd.com/global/menu-icons/image%20Nature.svg", - "name": "is_available" - }, - "values": [ - { - "count": 3, - "display": "Available", - "is_selected": false, - "value": true - } - ] - } - ], - "items": [ - { - "action": { - "page": { - "query": { - "slug": "benchmark-collaborative-paradigms" - }, - "type": "product" - }, - "type": "page" - }, - "attributes": { - "gender": "women", - "material": "Neoprene", - "primary_color": "DarkGrey", - "primary_color_hex": "808080", - "weight": "100" - }, - "brand": { - "_custom_json": {}, - "action": { - "page": { - "query": { - "brand": [ - "Hess-Inc" - ] - }, - "type": "products" - }, - "type": "page" - }, - "logo": { - "type": "image", - "url": "https://hdn-1.fynd.com/media/logo/brand/original/12391_0d956c6c71a4427895c15e44cba82f88.jpg" - }, - "name": "Hess Inc", - "type": "brand" - }, - "categories": [ - { - "_custom_json": {}, - "action": { - "page": { - "query": { - "category": [ - "Amy-Kim-DDS" - ] - }, - "type": "category" - }, - "type": "page" - }, - "id": 3, - "logo": { - "type": "image", - "url": "https://hdn-1.fynd.com/media/banner_portrait/brand/original/540_ecba3a1af141467da8abc20500f983db.jpg" - }, - "name": "Amy Kim DDS", - "uid": 3 - } - ], - "discount": "14% OFF", - "is_tryout": false, - "item_code": "ITEM_CODE_1", - "item_type": "set", - "medias": [ - { - "type": "image", - "url": "https://hdn-1.fynd.com/media/fynd_store_items/l2_category/original/2830_c5bb5fc02f414307a828c4c56483c30a.jpg" - } - ], - "name": "benchmark collaborative paradigms", - "price": { - "effective": { - "currency_code": "INR", - "currency_symbol": "₹", - "max": 1399, - "min": 1199 - }, - "marked": { - "currency_code": "INR", - "currency_symbol": "₹", - "max": 1499, - "min": 1399 - } - }, - "promo_meta": { - "subtitle": "", - "title": "" - }, - "rating": 2.7, - "sellable": true, - "slug": "benchmark-collaborative-paradigms", - "type": "product", - "uid": 1 - }, - { - "action": { - "page": { - "query": { - "slug": "architect-granular-e-business" - }, - "type": "product" - }, - "type": "page" - }, - "attributes": { - "gender": "women", - "material": "Neoprene", - "primary_color": "DarkGrey", - "primary_color_hex": "808080", - "weight": "100" - }, - "brand": { - "_custom_json": {}, - "action": { - "page": { - "query": { - "brand": [ - "Hess-Inc" - ] - }, - "type": "products" - }, - "type": "page" - }, - "logo": { - "type": "image", - "url": "https://hdn-1.fynd.com/media/logo/brand/original/12391_0d956c6c71a4427895c15e44cba82f88.jpg" - }, - "name": "Hess Inc", - "type": "brand" - }, - "categories": [ - { - "_custom_json": {}, - "action": { - "page": { - "query": { - "category": [ - "Amy-Kim-DDS" - ] - }, - "type": "category" - }, - "type": "page" - }, - "id": 3, - "logo": { - "type": "image", - "url": "https://hdn-1.fynd.com/media/banner_portrait/brand/original/540_ecba3a1af141467da8abc20500f983db.jpg" - }, - "name": "Amy Kim DDS", - "uid": 3 - } - ], - "discount": "14% OFF", - "is_tryout": false, - "item_code": "ITEM_CODE_2", - "item_type": "set", - "medias": [ - { - "type": "image", - "url": "https://hdn-1.fynd.com/media/fynd_store_items/l2_category/original/2830_c5bb5fc02f414307a828c4c56483c30a.jpg" - } - ], - "name": "architect granular e-business", - "price": { - "effective": { - "currency_code": "INR", - "currency_symbol": "₹", - "max": 1399, - "min": 1199 - }, - "marked": { - "currency_code": "INR", - "currency_symbol": "₹", - "max": 1499, - "min": 1399 - } - }, - "promo_meta": { - "subtitle": "", - "title": "" - }, - "rating": 2.7, - "sellable": true, - "slug": "architect-granular-e-business", - "type": "product", - "uid": 10 - }, - { - "action": { - "page": { - "query": { - "slug": "facilitate-enterprise-supply-chains" - }, - "type": "product" - }, - "type": "page" - }, - "attributes": { - "gender": "women", - "material": "Neoprene", - "primary_color": "DarkGrey", - "primary_color_hex": "808080", - "weight": "100" - }, - "brand": { - "_custom_json": {}, - "action": { - "page": { - "query": { - "brand": [ - "Hess-Inc" - ] - }, - "type": "products" - }, - "type": "page" - }, - "logo": { - "type": "image", - "url": "https://hdn-1.fynd.com/media/logo/brand/original/12391_0d956c6c71a4427895c15e44cba82f88.jpg" - }, - "name": "Hess Inc", - "type": "brand" - }, - "categories": [ - { - "_custom_json": {}, - "action": { - "page": { - "query": { - "category": [ - "Amy-Kim-DDS" - ] - }, - "type": "category" - }, - "type": "page" - }, - "id": 3, - "logo": { - "type": "image", - "url": "https://hdn-1.fynd.com/media/banner_portrait/brand/original/540_ecba3a1af141467da8abc20500f983db.jpg" - }, - "name": "Amy Kim DDS", - "uid": 3 - } - ], - "discount": "14% OFF", - "is_tryout": false, - "item_code": "ITEM_CODE_3", - "item_type": "set", - "medias": [ - { - "type": "image", - "url": "https://hdn-1.fynd.com/media/fynd_store_items/l2_category/original/2830_c5bb5fc02f414307a828c4c56483c30a.jpg" - } - ], - "name": "facilitate enterprise supply-chains", - "price": { - "effective": { - "currency_code": "INR", - "currency_symbol": "₹", - "max": 1399, - "min": 1199 - }, - "marked": { - "currency_code": "INR", - "currency_symbol": "₹", - "max": 1499, - "min": 1399 - } - }, - "promo_meta": { - "subtitle": "", - "title": "" - }, - "rating": 2.7, - "sellable": true, - "slug": "facilitate-enterprise-supply-chains", - "type": "product", - "uid": 11 - }, - { - "action": { - "page": { - "query": { - "slug": "optimize-web-enabled-e-tailers" - }, - "type": "product" - }, - "type": "page" - }, - "attributes": { - "gender": "women", - "material": "Neoprene", - "primary_color": "DarkGrey", - "primary_color_hex": "808080", - "weight": "100" - }, - "brand": { - "_custom_json": {}, - "action": { - "page": { - "query": { - "brand": [ - "Hess-Inc" - ] - }, - "type": "products" - }, - "type": "page" - }, - "logo": { - "type": "image", - "url": "https://hdn-1.fynd.com/media/logo/brand/original/12391_0d956c6c71a4427895c15e44cba82f88.jpg" - }, - "name": "Hess Inc", - "type": "brand" - }, - "categories": [ - { - "_custom_json": {}, - "action": { - "page": { - "query": { - "category": [ - "Amy-Kim-DDS" - ] - }, - "type": "category" - }, - "type": "page" - }, - "id": 3, - "logo": { - "type": "image", - "url": "https://hdn-1.fynd.com/media/banner_portrait/brand/original/540_ecba3a1af141467da8abc20500f983db.jpg" - }, - "name": "Amy Kim DDS", - "uid": 3 - } - ], - "discount": "14% OFF", - "is_tryout": false, - "item_code": "ITEM_CODE_4", - "item_type": "set", - "medias": [ - { - "type": "image", - "url": "https://hdn-1.fynd.com/media/fynd_store_items/l2_category/original/2830_c5bb5fc02f414307a828c4c56483c30a.jpg" - } - ], - "name": "optimize web-enabled e-tailers", - "price": { - "effective": { - "currency_code": "INR", - "currency_symbol": "₹", - "max": 1399, - "min": 1199 - }, - "marked": { - "currency_code": "INR", - "currency_symbol": "₹", - "max": 1499, - "min": 1399 - } - }, - "promo_meta": { - "subtitle": "", - "title": "" - }, - "rating": 2.7, - "sellable": true, - "slug": "optimize-web-enabled-e-tailers", - "type": "product", - "uid": 12 - } - ], - "page": { - "current": 1, - "has_next": true, - "has_previous": false, - "item_total": 15, - "total": 2, - "type": "number" - }, - "sort_on": [ - { - "display": "Latest Products.", - "is_selected": true, - "logo": "https://d2zv4gzhlr4ud6.cloudfront.net/media/pictures/tagged_items/360x0/56_MKT02AI060CORAL/1_1567590349681.jpg", - "name": "Latest Products.", - "value": "latest" - } - ] - } -} -``` -
- -
- - - - - - - - - ---- - - -### getApplicationBrandListing -List all the brands for the application - - - -```javascript -// Promise -const promise = platformClient.application("").catalog.getApplicationBrandListing({ pageNo : value, - pageSize : value, - q : value }); - -// Async/Await -const data = await platformClient.application("").catalog.getApplicationBrandListing({ pageNo : value, - pageSize : value, - q : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| pageNo | number | no | The page number to navigate through the given set of results | -| pageSize | number | no | Number of items to retrieve in each page. Default is 12. | -| q | string | no | Search query with brand name.Use this parameter to search brands by brand name. | - - - -A brand is the name under which a product is being sold. Use this API to list all the brands. You can pass optionally filter the brands by the department. If successful, returns a paginated list of brands specified in `BrandListingResponse` - -*Returned Response:* - - - - -[BrandListingResponse](#BrandListingResponse) - -List of Brands. See example below or refer `BrandListingResponse` for details - - - - -
-  Examples: - - -
-  success - -```json -{ - "value": { - "items": [ - { - "uid": 33, - "_custom_json": {}, - "_locale_language": {}, - "brand_banner_portrait_url": "/addsale/brands/pictures/portrait-banner/original/rFcp1aFv3-Portrait-Banner.png", - "brand_banner_url": "/addsale/brands/pictures/landscape-banner/original/-_G-K35Iz-Landsacpe-Banner.png", - "brand_logo_url": "/addsale/brands/pictures/square-logo/original/Wj9obvYLS-Logo.jpeg", - "created_on": "2023-07-14T05:55:22.772000", - "description": "Puma", - "last_updated": "2023-07-17T07:18:27.181000", - "name": "Puma", - "priority": 100, - "slug_key": "puma", - "is_active": false, - "departments": [ - 2080, - 864, - 2, - 13763, - 26213, - 4657, - 26194, - 595, - 26, - 27, - 28, - 29 - ], - "active": true - } - ], - "page": { - "current": 1, - "type": "number", - "size": 16, - "has_previous": false, - "has_next": true, - "item_total": 187 - } - } -} -``` -
- -
- - - - - - - - - ---- - - -### getApplicationBrands -List all the brands - - - -```javascript -// Promise -const promise = platformClient.application("").catalog.getApplicationBrands({ department : value, - pageNo : value, - pageSize : value, - q : value, - brandId : value }); - -// Async/Await -const data = await platformClient.application("").catalog.getApplicationBrands({ department : value, - pageNo : value, - pageSize : value, - q : value, - brandId : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| department | string | no | The name of the department. Use this parameter to filter products by a particular department. See below the list of available departments. You can retrieve available departments from the **v1.0/departments/** API | -| pageNo | number | no | The page number to navigate through the given set of results | -| pageSize | number | no | Number of items to retrieve in each page. Default is 12. | -| q | string | no | Search query with brand name.Use this parameter to search brands by brand name. | -| brandId | number | no | Helps to sort the brands list on the basis of uid list. | - - - -A brand is the name under which a product is being sold. Use this API to list all the brands. You can pass optionally filter the brands by the department. If successful, returns a paginated list of brands specified in `BrandListingResponse` - -*Returned Response:* - - - - -[BrandListingResponse](#BrandListingResponse) - -List of Brands. See example below or refer `BrandListingResponse` for details - - - - -
-  Examples: - - -
-  success - -```json -{ - "value": { - "items": [ - { - "action": { - "page": { - "query": { - "brand": [ - "Hess-Inc" - ] - }, - "type": "products" - }, - "type": "page" - }, - "banners": { - "portrait": { - "type": "image", - "url": "https://hdn-1.fynd.com/media/banner_portrait/brand/original/12537_9cdfc6835e814b0986ee1643d38cf6cd.png" - } - }, - "en_name": "Barry, Jennings and Larson", - "logo": { - "type": "image", - "url": "https://hdn-1.fynd.com/media/logo/brand/original/12391_0d956c6c71a4427895c15e44cba82f88.jpg" - }, - "name": "Barry, Jennings and Larson", - "slug": "Hess-Inc", - "uid": 1 - } - ], - "page": { - "current": 1, - "has_next": false, - "has_previous": false, - "item_total": 1, - "total": 1, - "type": "number" - } - } -} -``` -
- -
- - - - - - - - - ---- - - -### getApplicationCategoryListing -List all the brands for the application - - - -```javascript -// Promise -const promise = platformClient.application("").catalog.getApplicationCategoryListing({ departmentId : value, - pageNo : value, - pageSize : value, - q : value }); - -// Async/Await -const data = await platformClient.application("").catalog.getApplicationCategoryListing({ departmentId : value, - pageNo : value, - pageSize : value, - q : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| departmentId | number | no | A `department_id` is a unique identifier for a particular department. | -| pageNo | number | no | The page number to navigate through the given set of results | -| pageSize | number | no | Number of items to retrieve in each page. Default is 12. | -| q | string | no | Search query with brand name.Use this parameter to search brands by brand name. | - - - -A brand is the name under which a product is being sold. Use this API to list all the brands. You can pass optionally filter the brands by the department. If successful, returns a paginated list of brands specified in `BrandListingResponse` - -*Returned Response:* - - - - -[BrandListingResponse](#BrandListingResponse) - -List of Brands. See example below or refer `BrandListingResponse` for details - - - - -
-  Examples: - - -
-  success - -```json -{ - "value": { - "items": [ - { - "name": "Orlo2697726021620232141437", - "logo": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/fyndnp/wrkr/x0/category/pictures/square-logo/original/JbCOnGP1n-logo.jpeg", - "departments": [ - 93 - ], - "attr_name": "orlo2697726021620232141437", - "landscape_url": "/x0/category/pictures/landscape-banner/original/_BEuMoujb-dl0fHhTai-landscape.jpeg", - "portrait_url": "/x0/category/pictures/portrait-banner/original/Gn4HdXUWo-qF26AocDt-banner.jpeg", - "_custom_json": {}, - "priority": 16, - "created_by": { - "username": "wildrider", - "user_id": "-1" - }, - "created_on": "2023-08-03T04:47:29.932000", - "modified_by": { - "username": "wildrider", - "user_id": "-1" - }, - "modified_on": "2023-08-03T04:47:29.932000", - "app_id": "64aed475db2cfb5b8a9f623d", - "is_active": true, - "uid": 3300 - } - ], - "page": { - "current": 1, - "type": "number", - "size": 10, - "has_previous": false, - "has_next": true, - "item_total": 111 - } - } -} -``` -
- -
- - - - - - - - - ---- - - -### getApplicationDepartmentListing -List all the departments for the application - - - -```javascript -// Promise -const promise = platformClient.application("").catalog.getApplicationDepartmentListing({ pageNo : value, - pageSize : value, - q : value }); - -// Async/Await -const data = await platformClient.application("").catalog.getApplicationDepartmentListing({ pageNo : value, - pageSize : value, - q : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| pageNo | number | no | The page number to navigate through the given set of results | -| pageSize | number | no | Number of items to retrieve in each page. Default is 12. | -| q | string | no | Search query with brand name.Use this parameter to search department by name. | - - - -Departments are a way to categorise similar products. A product can lie in multiple departments. For example, a skirt can below to the 'Women's Fashion' Department while a handbag can lie in 'Women's Accessories' Department. Use this API to list all the application departments. If successful, returns the list of departments specified in `ApplicationDepartmentListingResponse` - -*Returned Response:* - - - - -[ApplicationDepartmentListingResponse](#ApplicationDepartmentListingResponse) - -List of Departments. See example below or refer `BrandListingResponse` for details - - - - -
-  Examples: - - -
-  success - -```json -{ - "value": { - "items": [ - { - "action": { - "page": { - "query": { - "brand": [ - "Hess-Inc" - ] - }, - "type": "products" - }, - "type": "page" - }, - "app_id": "000000000000000000000001", - "banners": { - "portrait": { - "type": "image", - "url": "https://hdn-1.fynd.com/media/banner_portrait/brand/original/12537_9cdfc6835e814b0986ee1643d38cf6cd.png" - } - }, - "en_name": "Barry, Jennings and Larson", - "logo": "https://hdn-1.fynd.com/media/logo/brand/original/12391_0d956c6c71a4427895c15e44cba82f88.jpg", - "name": "Barry, Jennings and Larson", - "slug": "Hess-Inc", - "uid": 1 - } - ], - "page": { - "current": 1, - "has_next": false, - "has_previous": false, - "item_total": 1, - "total": 1, - "type": "number" - } - } -} -``` -
- -
- - - - - - - - - ---- - - -### getAutocompleteConfig -List all Autocomplete Keyword Listing - - - -```javascript -// Promise -const promise = platformClient.application("").catalog.getAutocompleteConfig({ pageNo : value, - pageSize : value, - q : value, - isActive : value }); - -// Async/Await -const data = await platformClient.application("").catalog.getAutocompleteConfig({ pageNo : value, - pageSize : value, - q : value, - isActive : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| pageNo | number | no | The page number to navigate through the given set of results | -| pageSize | number | no | Number of items to retrieve in each page. Default is 12. | -| q | string | no | Search query with words name.Use this parameter to search keywords by words. | -| isActive | boolean | no | Can query for keywords based on whether they are active or inactive. | - - - -Custom Autocomplete Keyword allows you to map conditions with keywords to give you the ultimate results - -*Returned Response:* - - - - -[GetAutocompleteWordsResponse](#GetAutocompleteWordsResponse) - -List of custom autocomplete keywords. See example below or refer `GetAutocompleteWordsResponseSchema` for details - - - - -
-  Examples: - - -
-  success - -```json -{ - "value": { - "items": [ - { - "app_id": "000000000000000000000001", - "is_active": true, - "results": [ - { - "_custom_json": {}, - "action": { - "page": { - "query": { - "brand": [ - "nike" - ] - }, - "type": "products", - "url": "/products/?brand=nike" - }, - "type": "page" - }, - "display": "Helllow", - "logo": { - "url": "https://hdn-1.addsale.com/addsale/company/61/applications/600a5b3fe0991a4718cdb448/company/1/application/000000000000000000000001/search/pictures/square-logo/original/n_8bvEaBw-Helllow.png" - } - } - ], - "uid": "602fa1eaa596ce349563f6c6", - "words": [ - "dasd" - ] - } - ], - "page": { - "current": 1, - "has_next": false, - "has_previous": false, - "item_count": 1, - "size": 1, - "type": "number" - } - } -} -``` -
- -
- - - - - - - - - ---- - - -### getAutocompleteKeywordDetail -Get a Autocomplete Keywords Details - - - -```javascript -// Promise -const promise = platformClient.application("").catalog.getAutocompleteKeywordDetail({ id : value }); - -// Async/Await -const data = await platformClient.application("").catalog.getAutocompleteKeywordDetail({ id : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| id | string | yes | A `id` is a unique identifier for a particular detail. Pass the `id` of the keywords which you want to retrieve. | - - - -Get the details of a words by its `id`. If successful, returns a keywords resource in the response body specified in `GetAutocompleteWordsResponseSchema` - -*Returned Response:* - - - - -[GetAutocompleteWordsData](#GetAutocompleteWordsData) - -The mapping object. See example below or refer `GetAutocompleteWordsDataSchema` for details - - - - -
-  Examples: - - -
-  success - -```json -{ - "value": { - "app_id": "000000000000000000000001", - "is_active": true, - "results": [ - { - "_custom_json": {}, - "action": { - "page": { - "query": { - "brand": [ - "nike" - ] - }, - "type": "products", - "url": "/products/?brand=nike" - }, - "type": "page" - }, - "display": "Helllow", - "logo": { - "url": "https://hdn-1.addsale.com/addsale/company/61/applications/600a5b3fe0991a4718cdb448/company/1/application/000000000000000000000001/search/pictures/square-logo/original/n_8bvEaBw-Helllow.png" - } - } - ], - "uid": "602fa1eaa596ce349563f6c6", - "words": [ - "dasd" - ] - } -} -``` -
- -
- - - - - - - - - ---- - - -### getAutocompletePreview -Get autocomplete suggestions as per config for an application - - - -```javascript -// Promise -const promise = platformClient.application("").catalog.getAutocompletePreview({ q : value, - categorySuggestion : value, - brandSuggestion : value, - collectionSuggestion : value, - productSuggestion : value, - querySuggestion : value }); - -// Async/Await -const data = await platformClient.application("").catalog.getAutocompletePreview({ q : value, - categorySuggestion : value, - brandSuggestion : value, - collectionSuggestion : value, - productSuggestion : value, - querySuggestion : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| q | string | no | Get suggestions related to `q` string. | -| categorySuggestion | number | no | For getting related category suggestions. | -| brandSuggestion | number | no | For getting related brand suggestions. | -| collectionSuggestion | number | no | For getting collection suggestions. | -| productSuggestion | number | no | For getting product suggestions. | -| querySuggestion | number | no | For getting query suggestions. | - - - -This API allows to get autocomplete suggestions as per config. - -*Returned Response:* - - - - -[AutocompletePreviewResponseSchema](#AutocompletePreviewResponseSchema) - -return autocomplete suggestions - - - - -
-  Example: - -```json - -``` -
- - - - - - - - - ---- - - -### getAutocompleteSettings -Get autocomplete settings config for an application - - - -```javascript -// Promise -const promise = platformClient.application("").catalog.getAutocompleteSettings(); - -// Async/Await -const data = await platformClient.application("").catalog.getAutocompleteSettings(); -``` - - - - - - -This API allows to get autocomplete settings config for an application. - -*Returned Response:* - - - - -[AutocompleteResponseSchema](#AutocompleteResponseSchema) - -Object of autocomplete settings config - - - - -
-  Example: - -```json -{ - "id": "657884575e12e699f8187f47", - "query_suggestion": [ - { - "active": true - }, - { - "count": 1 - } - ], - "brand_suggestion": [ - { - "active": false - }, - { - "count": 0 - } - ], - "category_suggestion": [ - { - "active": true - }, - { - "count": 3 - } - ], - "collection_suggestion": [ - { - "active": true - }, - { - "count": 5 - } - ], - "product_suggestion": [ - { - "active": true - }, - { - "count": 1 - } - ] -} -``` -
- - - - - - - - - ---- - - -### getCatalogConfiguration -Get configuration meta details for catalog for admin panel - - - -```javascript -// Promise -const promise = platformClient.application("").catalog.getCatalogConfiguration(); - -// Async/Await -const data = await platformClient.application("").catalog.getCatalogConfiguration(); -``` - - - - - - -configuration meta details for catalog. - -*Returned Response:* - - - - -[GetCatalogConfigurationMetaData](#GetCatalogConfigurationMetaData) - -configuration details for catalog. See example below or refer `GetCatalogConfigurationMetaDataSchema` for details - - - - -
-  Examples: - - -
-  success - -```json -{ - "value": { - "listing": { - "sort": { - "data": [ - { - "key": "latest", - "display": "Latest" - }, - { - "key": "popular", - "display": "Popular" - }, - { - "key": "price_asc", - "display": "Price Low to High" - }, - { - "key": "price_dsc", - "display": "Price High to Low" - }, - { - "key": "discount_asc", - "display": "Discount Low to High" - }, - { - "key": "discount_dsc", - "display": "Discount High to Low" - }, - { - "key": "relevance", - "display": "Relevance" - }, - { - "key": "depth_desc", - "display": "Size Depth (High to Low)" - } - ] - }, - "filter": { - "data": [ - { - "key": "country_of_origin", - "display": "Country of Origin", - "filter_types": [ - "multivalued" - ], - "units": [] - }, - { - "key": "item_code", - "display": "Item Code", - "filter_types": [ - "multivalued" - ], - "units": [] - }, - { - "key": "item_code", - "display": "Item Code", - "filter_types": [ - "multivalued" - ], - "units": [] - }, - { - "key": "brand", - "display": "Brand", - "filter_types": [ - "multivalued" - ], - "units": [] - }, - { - "key": "country_of_origin", - "display": "Country Of Origin", - "filter_types": [ - "multivalued" - ], - "units": [] - }, - { - "key": "image_nature", - "display": "Image Type", - "filter_types": [ - "multivalued" - ] - }, - { - "key": "sizes", - "display": "Sizes", - "filter_types": [ - "multivalued" - ] - }, - { - "key": "discount", - "display": "Discount", - "filter_types": [ - "range", - "intervals", - "multivalued" - ] - }, - { - "key": "rating", - "display": "Rating", - "filter_types": [ - "range", - "intervals", - "multivalued" - ] - }, - { - "key": "min_price_effective", - "display": "Price", - "filter_types": [ - "range", - "intervals", - "multivalued" - ] - }, - { - "key": "departments", - "display": "Department", - "filter_types": [ - "multivalued" - ] - }, - { - "key": "l3_category_slugs", - "display": "Category", - "filter_types": [ - "multivalued" - ] - }, - { - "key": "brand_slug", - "display": "Brand", - "filter_types": [ - "multivalued" - ] - }, - { - "key": "size_depth", - "display": "Size Depth", - "filter_types": [ - "multivalued", - "range" - ] - }, - { - "key": "is_set", - "display": "Set", - "filter_types": [ - "multivalued" - ] - }, - { - "key": "country_of_origin", - "display": "Country of Origin", - "filter_types": [ - "multivalued" - ] - }, - { - "key": "item_code", - "display": "Item Code", - "filter_types": [ - "multivalued" - ] - }, - { - "key": "is_available", - "display": "Available", - "filter_types": [ - "singlevalued" - ] - } - ], - "values": { - "type": [ - { - "key": "range", - "display": "Range Bar" - }, - { - "key": "intervals", - "display": "Bucket Values" - }, - { - "key": "multivalued", - "display": "Single" - }, - { - "key": "singlevalued", - "display": "Single" - } - ], - "sort": [ - { - "key": "count", - "display": "Product Count" - }, - { - "key": "ascending", - "display": "Ascending" - }, - { - "key": "descending", - "display": "Descending" - } - ] - }, - "condition": [ - { - "key": "OR", - "display": "OR" - }, - { - "key": "AND", - "display": "AND" - } - ] - } - }, - "product": { - "compare": { - "data": [ - { - "key": "country_of_origin", - "display": "Country of Origin", - "filter_types": [ - "multivalued" - ], - "units": [] - }, - { - "key": "item_code", - "display": "Item Code", - "filter_types": [ - "multivalued" - ], - "units": [] - }, - { - "key": "item_code", - "display": "Item Code", - "filter_types": [ - "multivalued" - ], - "units": [] - }, - { - "key": "brand", - "display": "Brand", - "filter_types": [ - "multivalued" - ], - "units": [] - }, - { - "key": "country_of_origin", - "display": "Country Of Origin", - "filter_types": [ - "multivalued" - ], - "units": [] - }, - { - "key": "image_nature", - "display": "Image Type", - "filter_types": [ - "multivalued" - ] - }, - { - "key": "sizes", - "display": "Sizes", - "filter_types": [ - "multivalued" - ] - }, - { - "key": "discount", - "display": "Discount", - "filter_types": [ - "range", - "intervals", - "multivalued" - ] - }, - { - "key": "rating", - "display": "Rating", - "filter_types": [ - "range", - "intervals", - "multivalued" - ] - }, - { - "key": "min_price_effective", - "display": "Price", - "filter_types": [ - "range", - "intervals", - "multivalued" - ] - }, - { - "key": "departments", - "display": "Department", - "filter_types": [ - "multivalued" - ] - }, - { - "key": "l3_category_slugs", - "display": "Category", - "filter_types": [ - "multivalued" - ] - }, - { - "key": "brand_slug", - "display": "Brand", - "filter_types": [ - "multivalued" - ] - }, - { - "key": "size_depth", - "display": "Size Depth", - "filter_types": [ - "multivalued", - "range" - ] - }, - { - "key": "is_set", - "display": "Set", - "filter_types": [ - "multivalued" - ] - }, - { - "key": "country_of_origin", - "display": "Country of Origin", - "filter_types": [ - "multivalued" - ] - }, - { - "key": "item_code", - "display": "Item Code", - "filter_types": [ - "multivalued" - ] - }, - { - "key": "is_available", - "display": "Available", - "filter_types": [ - "singlevalued" - ] - } - ] - }, - "similar": { - "data": [ - { - "key": "brand", - "display": "Brand" - }, - { - "key": "category", - "display": "Category" - }, - { - "key": "price", - "display": "Price" - }, - { - "key": "specs", - "display": "Specs" - }, - { - "key": "seller", - "display": "Seller" - }, - { - "key": "compare", - "display": "Most Compared" - } - ] - }, - "variant": { - "data": [ - { - "key": "test", - "display": "Test" - } - ] - }, - "detail": { - "data": [ - { - "key": "country_of_origin", - "display": "Country of Origin", - "filter_types": [ - "multivalued" - ], - "units": [] - }, - { - "key": "item_code", - "display": "Item Code", - "filter_types": [ - "multivalued" - ], - "units": [] - }, - { - "key": "item_code", - "display": "Item Code", - "filter_types": [ - "multivalued" - ], - "units": [] - }, - { - "key": "brand", - "display": "Brand", - "filter_types": [ - "multivalued" - ], - "units": [] - }, - { - "key": "country_of_origin", - "display": "Country Of Origin", - "filter_types": [ - "multivalued" - ], - "units": [] - }, - { - "key": "image_nature", - "display": "Image Type", - "filter_types": [ - "multivalued" - ] - }, - { - "key": "sizes", - "display": "Sizes", - "filter_types": [ - "multivalued" - ] - }, - { - "key": "discount", - "display": "Discount", - "filter_types": [ - "range", - "intervals", - "multivalued" - ] - }, - { - "key": "rating", - "display": "Rating", - "filter_types": [ - "range", - "intervals", - "multivalued" - ] - }, - { - "key": "min_price_effective", - "display": "Price", - "filter_types": [ - "range", - "intervals", - "multivalued" - ] - }, - { - "key": "departments", - "display": "Department", - "filter_types": [ - "multivalued" - ] - }, - { - "key": "l3_category_slugs", - "display": "Category", - "filter_types": [ - "multivalued" - ] - }, - { - "key": "brand_slug", - "display": "Brand", - "filter_types": [ - "multivalued" - ] - }, - { - "key": "size_depth", - "display": "Size Depth", - "filter_types": [ - "multivalued", - "range" - ] - }, - { - "key": "is_set", - "display": "Set", - "filter_types": [ - "multivalued" - ] - }, - { - "key": "country_of_origin", - "display": "Country of Origin", - "filter_types": [ - "multivalued" - ] - }, - { - "key": "item_code", - "display": "Item Code", - "filter_types": [ - "multivalued" - ] - }, - { - "key": "is_available", - "display": "Available", - "filter_types": [ - "singlevalued" - ] - } - ], - "values": { - "display_type": [ - { - "key": "text", - "display": "Text" - }, - { - "key": "paragraph", - "display": "Paragraph" - }, - { - "key": "html", - "display": "HTML" - } - ] - } - } - } - } -} -``` -
- -
- - - - - - - - - ---- - - -### getCatalogInsights -Analytics data of catalog and inventory. - - - -```javascript -// Promise -const promise = platformClient.application("").catalog.getCatalogInsights({ brand : value }); - -// Async/Await -const data = await platformClient.application("").catalog.getCatalogInsights({ brand : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| brand | string | no | Brand slug | - - - -Catalog Insights api returns the count of catalog related data like products, brands, departments and categories that have been made live as per configuration of the app. - -*Returned Response:* - - - - -[CatalogInsightResponse](#CatalogInsightResponse) - -Response Data - - - - -
-  Examples: - - -
-  success - -```json -{ - "value": { - "item": { - "count": 637707, - "out_of_stock_count": 452806, - "sellable_count": 184901 - } - } -} -``` -
- -
- - - - - - - - - ---- - - -### getCategories -List all the categories - - - -```javascript -// Promise -const promise = platformClient.application("").catalog.getCategories({ department : value }); - -// Async/Await -const data = await platformClient.application("").catalog.getCategories({ department : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| department | string | no | The name of the department. Use this parameter to filter products by a particular department. See below the list of available departments. You can retrieve available departments from the **v1.0/departments/** API | - - - -List all the categories. You can optionally pass filter the brands by the department. If successful, returns a paginated list of brands specified in `CategoryListingResponse` - -*Returned Response:* - - - - -[CategoryListingResponse](#CategoryListingResponse) - -List of Categories. See example below or refer `CategoryListingResponse` for details. - - - - -
-  Examples: - - -
-  success - -```json -{ - "value": { - "data": [ - { - "department": "Cody-Doyle", - "items": [ - { - "_custom_json": {}, - "action": { - "query": { - "department": [ - "Jaime-Chambers" - ], - "l1_category": [ - "Janet-Parker" - ] - }, - "type": "category", - "url": "https://api.addsale.com/platform/content/v1/products/?l1_category=Janet-Parker&department=Jaime-Chambers" - }, - "childs": [ - { - "_custom_json": {}, - "action": { - "query": { - "department": [ - "Jaime-Chambers" - ], - "l2_category": [ - "Hannah-Lawson" - ] - }, - "type": "category", - "url": "https://api.addsale.com/platform/content/v1/products/?l2_category=Hannah-Lawson&department=Jaime-Chambers" - }, - "childs": [ - { - "_custom_json": {}, - "action": { - "query": { - "category": [ - "Logan-Black" - ], - "department": [ - "Jaime-Chambers" - ] - }, - "type": "category", - "url": "https://api.addsale.com/platform/content/v1/products/?category=Logan-Black&department=Jaime-Chambers" - }, - "childs": [], - "image": { - "aspect_ratio": "13:20", - "aspect_ratio_f": 0.65, - "url": "https://d2zv4gzhlr4ud6.cloudfront.net/media/banner_portrait/category/resize-w:130,h:200/12064_e69e1d8b5e934d3488f0dc8663d8a158.jpg" - }, - "name": "Logan Black", - "slug": "Logan-Black", - "uid": 3 - } - ], - "image": { - "aspect_ratio": "13:20", - "aspect_ratio_f": 0.65, - "url": "https://d2zv4gzhlr4ud6.cloudfront.net/media/banner_portrait/category/resize-w:130,h:200/12064_e69e1d8b5e934d3488f0dc8663d8a158.jpg" - }, - "name": "Hannah Lawson", - "slug": "Hannah-Lawson", - "uid": 2 - } - ], - "image": { - "aspect_ratio": "13:20", - "aspect_ratio_f": 0.65, - "url": "https://d2zv4gzhlr4ud6.cloudfront.net/media/banner_portrait/category/resize-w:130,h:200/12064_e69e1d8b5e934d3488f0dc8663d8a158.jpg" - }, - "name": "Janet Parker", - "slug": "Janet-Parker", - "uid": 1 - } - ] - } - ], - "departments": [ - { - "slug": "Cody-Doyle", - "uid": 1 - } - ] - } -} -``` -
- -
- - - - - - - - - ---- - - -### getCategoryData -Get product category by uid - - - -```javascript -// Promise -const promise = platformClient.catalog.getCategoryData({ uid : value }); - -// Async/Await -const data = await platformClient.catalog.getCategoryData({ uid : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| uid | string | yes | Category unique id | - - - -This API gets meta associated to product categories. - -*Returned Response:* - - - - -[SingleCategoryResponse](#SingleCategoryResponse) - -Get Data for one category. See example below or refer `CategoryResponse` for details - - - - -
-  Examples: - - -
-  success - -```json -{ - "value": { - "data": { - "created_by": { - "user_id": "5646", - "username": "917972410891_48194" - }, - "created_on": "2021-04-02T15:43:59.410000Z", - "departments": [ - 1 - ], - "hierarchy": [ - { - "department": 1, - "l1": 1, - "l2": 22329 - } - ], - "id": "60673bbf7896da00017885ad", - "is_active": true, - "level": 3, - "marketplaces": {}, - "media": { - "landscape": "https://hdn-1.addsale.com/x0/category/pictures/landscape-banner/original/nsi0nJ6gX-landscape.png", - "logo": "https://hdn-1.addsale.com/x0/category/pictures/square-logo/original/zTgh1zslj-.png", - "portrait": "https://hdn-1.addsale.com/x0/category/pictures/portrait-banner/original/_4p7Kz9Yp-banner.png" - }, - "modified_by": { - "user_id": "16", - "username": "nikhilmhatre_gofynd_com_97636" - }, - "modified_on": "2021-04-13T13:57:56.443000Z", - "name": "Air Conditioners", - "priority": 1, - "slug": "air-conditioners", - "synonyms": [], - "tryouts": [], - "uid": 22330 - } - } -} -``` -
- -
- - - - - - - - - ---- - - -### getCollectionDetail -Get a particular collection - - - -```javascript -// Promise -const promise = platformClient.application("").catalog.getCollectionDetail({ slug : value }); - -// Async/Await -const data = await platformClient.application("").catalog.getCollectionDetail({ slug : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| slug | string | yes | A `slug` is a human readable, URL friendly unique identifier of an object. Pass the `slug` of the collection which you want to retrieve. | - - - -Get the details of a collection by its `slug`. If successful, returns a Collection resource in the response body specified in `CollectionDetailResponse` - -*Returned Response:* - - - - -[GetCollectionDetailResponse](#GetCollectionDetailResponse) - -The Collection object. See example below or refer `GetCollectionDetailResponse` for details - - - - -
-  Examples: - - -
-  success - -```json -{ - "value": { - "uid": "65620443a7d23306c5d75df2", - "type": "query", - "query": [ - { - "attribute": "category", - "value": [ - "aaa-cat3" - ], - "op": "in" - } - ], - "name": "test2", - "banners": { - "portrait": { - "type": "image", - "url": "https://cdn.fynd.com/v2/falling-surf-7c8bb8/fyndnp/wrkr/addsale/products/pictures/item/free/original/JA1Rvx-42-collection-landscape-banner.jpeg" - }, - "landscape": { - "type": "image", - "url": "https://cdn.fynd.com/v2/falling-surf-7c8bb8/fyndnp/wrkr/addsale/products/pictures/item/free/original/1Sl3BF0Y4-collection-landscape-banner.jpeg" - } - }, - "logo": { - "type": "image", - "url": "https://res.cloudinary.com/dwzm9bysq/image/upload/v1588857854/production/applications/app_000000000000000000000001/media/collection/logo/w9ns7nfgv7fk45xqrpoh.png" - }, - "published": true, - "description": "test-description-2", - "is_active": true, - "tags": [ - "Test Collection 123" - ], - "slug": "testslug2", - "action": { - "page": { - "type": "collection", - "query": { - "collection": [ - "testslug2" - ] - } - }, - "type": "page" - }, - "allow_facets": true, - "allow_sort": true, - "visible_facets_keys": [], - "meta": {}, - "badge": { - "color": "#ffffff", - "text": "" - }, - "sort_on": "latest", - "_custom_json": {}, - "_locale_language": {}, - "seo": { - "description": "test-description2", - "meta_tags": [ - { - "title": "test-seo2", - "items": [] - } - ], - "breadcrumbs": [ - {} - ], - "title": "test2", - "sitemap": { - "priority": 0.5, - "frequency": "never" - } - }, - "is_visible": true, - "priority": 7, - "_schedule": { - "end": "2023-11-25T17:38:45.569000Z", - "next_schedule": [ - { - "start": "2023-11-25T17:38:45.569000Z", - "end": "2023-11-25T17:38:45.569000Z" - } - ], - "start": "2023-11-25T17:38:45.569000Z" - } - } -} -``` -
- -
- - - - - - - - - ---- - - -### getCompanyBrandDetail -Get the Company Brand details of Optin. - - - -```javascript -// Promise -const promise = platformClient.catalog.getCompanyBrandDetail({ isActive : value, - q : value, - pageNo : value, - pageSize : value, - marketplace : value }); - -// Async/Await -const data = await platformClient.catalog.getCompanyBrandDetail({ isActive : value, - q : value, - pageNo : value, - pageSize : value, - marketplace : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| isActive | boolean | no | The is_active status for the optin id. | -| q | string | no | The search value to filter the list. | -| pageNo | number | no | The number of page for the company id. | -| pageSize | number | no | Number of records that can be seen on the page for the company id. | -| marketplace | string | no | The marketplace platform associated with the company id. | - - - -Get the details of the Brands associated with the given company_id passed. - -*Returned Response:* - - - - -[OptinCompanyBrandDetailsView](#OptinCompanyBrandDetailsView) - -See example below or refer `OptinCompanyBrandDetailsView` for details - - - - -
-  Examples: - - -
-  success - -```json -{ - "value": { - "items": [ - { - "logo": {}, - "brand_name": "company", - "name": "company", - "id": 1, - "brand_id": 1, - "company_id": 1, - "total_article": 0 - }, - { - "logo": {}, - "brand_name": "company", - "name": "company", - "id": 1, - "brand_id": 1, - "company_id": 1, - "total_article": 0 - } - ], - "page": { - "type": "number", - "current": 1, - "has_next": false, - "item_total": 2 - } - } -} -``` -
- -
- - - - - - - - - ---- - - -### getCompanyDetail -Get the Company details. - - - -```javascript -// Promise -const promise = platformClient.catalog.getCompanyDetail(); - -// Async/Await -const data = await platformClient.catalog.getCompanyDetail(); -``` - - - - - - -Get the details of the company associated with the given company_id passed. - -*Returned Response:* - - - - -[OptinCompanyDetail](#OptinCompanyDetail) - -See example below or refer `OptinCompanyDetailSchema` for details - - - - -
-  Examples: - - -
-  success - -```json -{ - "value": { - "name": "New Company Ltd", - "uid": 1, - "business_info": "I am business", - "business_type": "huf", - "business_country_info": { - "country": "India", - "country_code": "IN" - }, - "address": { - "address1": "A/204, Sai Vandan, Tulinj Road. Nallasopara East, ", - "state": "Maharashtra", - "pincode": "400603", - "city": "Mumbai", - "country": "India", - "latitude": 19.4232024, - "longitude": 72.82315109999999, - "country_code": "IN" - }, - "document": { - "type": "pan", - "value": "CUYPP9644J", - "legal_name": "Gaurang Bharat Patel", - "verified": true - }, - "brands": [ - 1 - ], - "notification_emails": [ - "gaurangpatel@gofynd.com" - ], - "warnings": {}, - "stage": "verified" - } -} -``` -
- -
- - - - - - - - - ---- - - -### getCompanyMetrics -Get the Company metrics - - - -```javascript -// Promise -const promise = platformClient.catalog.getCompanyMetrics(); - -// Async/Await -const data = await platformClient.catalog.getCompanyMetrics(); -``` - - - - - - -Get the Company metrics associated with the company ID passed. - -*Returned Response:* - - - - -[OptinCompanyMetrics](#OptinCompanyMetrics) - -See example below or refer `OptinCompanyMetrics` for details - - - - -
-  Examples: - - -
-  success - -```json -{ - "value": { - "company": "verified", - "brand": 2, - "store": 0 - } -} -``` -
- -
- - - - - - - - - ---- - - -### getCompanyVerification -Get company verification status - - - -```javascript -// Promise -const promise = platformClient.catalog.getCompanyVerification({ q : value, - pageNo : value, - pageSize : value }); - -// Async/Await -const data = await platformClient.catalog.getCompanyVerification({ q : value, - pageNo : value, - pageSize : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| q | string | no | A `q` parameter is used to search the company by its name. | -| pageNo | number | no | A `page_no` parameter is a number of the page requested. | -| pageSize | number | no | A `page_size` is the no of items per page. | - - - -This API gets company verification details. - -*Returned Response:* - - - - -[CompanyVerificationResponse](#CompanyVerificationResponse) - -Product Meta. See example below for details - - - - -
-  Examples: - - -
-  success - -```json -{ - "value": { - "uid": 1, - "name": "Akshay Company", - "stats": { - "verified": 1 - } - } -} -``` -
- -
- - - - - - - - - ---- - - -### getConfigurationByType -Get configured details for catalog - - - -```javascript -// Promise -const promise = platformClient.application("").catalog.getConfigurationByType({ type : value }); - -// Async/Await -const data = await platformClient.application("").catalog.getConfigurationByType({ type : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| type | string | yes | type can be brands, categories etc. | - - - -configured details for catalog. - -*Returned Response:* - - - - -[GetAppCatalogEntityConfiguration](#GetAppCatalogEntityConfiguration) - -Get application level configured catalog details. See example below or refer `GetAppCatalogEntityConfigurationSchema` for details - - - - -
-  Examples: - - -
-  success - -```json -{ - "value": { - "data": { - "listing": { - "categories": { - "config": [ - { - "key": "2", - "name": "hello2", - "logo": "http://cdn4.gofynd.com/media/banner/category/original/12063_a5bb91bd5cb44c3c9db98c2a0e6b3d99.jpg", - "is_active": true, - "banners": [ - { - "department": 1, - "portrait_url": "http://cdn4.gofynd.com/media/banner/category/original/12063_a5bb91bd5cb44c3c9db98c2a0e6b3d99.jpg", - "landscape_url": "http://cdn4.gofynd.com/media/banner_portrait/category/original/12064_e69e1d8b5e934d3488f0dc8663d8a158.jpg" - } - ], - "_custom_json": {} - } - ] - } - } - }, - "is_default": true - } -} -``` -
- -
- - - - - - - - - ---- - - -### getConfigurationMetadata -Get configuration metadata details for catalog for admin panel - - - -```javascript -// Promise -const promise = platformClient.application("").catalog.getConfigurationMetadata({ configType : value, - templateSlug : value }); - -// Async/Await -const data = await platformClient.application("").catalog.getConfigurationMetadata({ configType : value, - templateSlug : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| configType | string | yes | A `config_type` is an identifier that defines a specific type of configuration. | -| templateSlug | string | no | Get configuration list filtered by `template_slug` string. This is for the details and comparision groups. | - - - -Get the configuraion metadata details for catalog. - -*Returned Response:* - - - - -[GetConfigMetadataResponse](#GetConfigMetadataResponse) - -configuration details for catalog. See example below or refer `GetConfigMetadataResponseSchema` for details - - - - -
-  Examples: - - -
-  success - -```json -{ - "value": { - "data": [ - { - "key": "image_nature", - "display": "Image Type", - "filter_types": [ - "multivalued" - ] - }, - { - "key": "sizes", - "display": "Sizes", - "filter_types": [ - "multivalued" - ] - }, - { - "key": "discount", - "display": "Discount", - "filter_types": [ - "range", - "intervals" - ] - }, - { - "key": "min_price_effective", - "display": "Price", - "filter_types": [ - "range", - "intervals" - ] - }, - { - "key": "departments", - "display": "Department", - "filter_types": [ - "multivalued" - ] - }, - { - "key": "l3_category_names", - "display": "Category", - "filter_types": [ - "multivalued" - ] - }, - { - "key": "brand_slug", - "display": "Brand", - "filter_types": [ - "multivalued" - ] - }, - { - "key": "size_depth", - "display": "Size Depth", - "filter_types": [ - "multivalued", - "range" - ] - }, - { - "key": "is_set", - "display": "Set", - "filter_types": [ - "multivalued" - ] - }, - { - "key": "country_of_origin", - "display": "Country of Origin", - "filter_types": [ - "multivalued" - ] - }, - { - "key": "item_code", - "display": "Item Code", - "filter_types": [ - "multivalued" - ] - }, - { - "key": "is_available", - "display": "Available", - "filter_types": [ - "singlevalued" - ] - }, - { - "key": "is_custom_order", - "display": "Shipping", - "filter_types": [ - "multivalued" - ] - }, - { - "key": "tags", - "display": "Tags", - "filter_types": [ - "multivalued" - ] - }, - { - "key": "rating", - "display": "Rating", - "filter_types": [ - "range", - "intervals", - "multivalued" - ] - } - ], - "values": { - "type": [ - { - "key": "range", - "display": "Range Bar" - }, - { - "key": "intervals", - "display": "Bucket Values" - }, - { - "key": "multivalued", - "display": "Single" - }, - { - "key": "singlevalued", - "display": "Single" - } - ], - "sort": [ - { - "key": "count", - "display": "Product Count" - }, - { - "key": "ascending", - "display": "Ascending" - }, - { - "key": "descending", - "display": "Descending" - } - ] - }, - "condition": [ - { - "key": "OR", - "display": "OR" - }, - { - "key": "AND", - "display": "AND" - } - ], - "page": { - "current": 1, - "type": "number", - "size": 1, - "has_previous": false, - "has_next": false, - "item_total": 15 - } - } -} -``` -
- -
- - - - - - - - - ---- - - -### getConfigurations -Get configured details for catalog - - - -```javascript -// Promise -const promise = platformClient.application("").catalog.getConfigurations(); - -// Async/Await -const data = await platformClient.application("").catalog.getConfigurations(); -``` - - - - - - -configured details for catalog. - -*Returned Response:* - - - - -[GetAppCatalogConfiguration](#GetAppCatalogConfiguration) - -Get application level configured catalog details. See example below or refer `GetAppCatalogConfigurationSchema` for details - - - - -
-  Examples: - - -
-  success - -```json -{ - "value": { - "data": { - "app_id": "000000000000000000000001", - "config_id": "000000000000000000000001", - "config_type": "app", - "listing": { - "filter": { - "allow_single": false, - "attribute_config": [ - { - "is_active": true, - "key": "gender", - "name": "Gender", - "priority": 1, - "type": "multivalued", - "value_config": { - "bucket_points": [], - "condition": "OR", - "map": {}, - "sort": "count", - "value": "" - } - }, - { - "is_active": true, - "key": "min_price_effective", - "name": "Price", - "priority": 2, - "type": "range", - "value_config": { - "bucket_points": [], - "condition": "OR", - "map": { - "< 500": "Below Rs. 500", - ">= 6000": "Above Rs. 6000" - }, - "sort": "count", - "value": "" - } - }, - { - "is_active": true, - "key": "departments", - "name": "Department", - "priority": 3, - "type": "multivalued", - "value_config": { - "bucket_points": [], - "condition": "OR", - "map": {}, - "sort": "count", - "value": "metadata" - } - }, - { - "is_active": true, - "key": "brand_id", - "name": "Brand", - "priority": 4, - "type": "multivalued", - "value_config": { - "bucket_points": [], - "condition": "OR", - "map": { - "5th Avenue": "A {{value}}" - }, - "sort": "ascending", - "value": "metadata" - } - }, - { - "is_active": false, - "key": "season", - "name": "Season", - "priority": 5, - "type": "multivalued", - "value_config": { - "bucket_points": [], - "condition": "OR", - "map": { - "": "" - }, - "sort": "count", - "value": "" - } - }, - { - "is_active": true, - "key": "is_set", - "name": "Set", - "priority": 6, - "type": "multivalued", - "value_config": { - "bucket_points": [], - "condition": "OR", - "map": { - "false": "No", - "true": "Yes" - }, - "sort": "descending", - "value": "" - } - }, - { - "is_active": true, - "key": "rating", - "name": "Rating", - "priority": 7, - "type": "multivalued", - "value_config": { - "bucket_points": [], - "condition": "OR", - "map": { - "": "" - }, - "sort": "count", - "value": "" - } - }, - { - "is_active": true, - "key": "size_depth", - "name": "Size Depth", - "priority": 8, - "type": "range", - "value_config": { - "bucket_points": [], - "condition": "OR", - "map": { - "{} - {}": "{} - {}" - }, - "sort": "count", - "value": "" - } - } - ] - }, - "sort": { - "config": [ - { - "is_active": false, - "key": "price_dsc", - "logo": "https://hdn-1.fynd.com/global/menu-icons/Price%20High%20to%20Low.png", - "name": "Price High to Low", - "priority": 1 - }, - { - "is_active": true, - "key": "rating_dsc", - "logo": "https://hdn-1.fynd.com/global/menu-icons/Rating.png", - "name": "Rating", - "priority": 2 - }, - { - "is_active": true, - "key": "depth_desc", - "name": "Size Depth (High to Low)", - "priority": 3 - }, - { - "is_active": true, - "key": "discount_dsc", - "logo": "https://hdn-1.fynd.com/global/menu-icons/Discount%20Low%20to%20High.png", - "name": "Discount High to Low", - "priority": 4 - }, - { - "is_active": true, - "key": "popular", - "logo": "https://hdn-1.fynd.com/global/menu-icons/Popularity.png", - "name": "Popularity", - "priority": 5 - }, - { - "is_active": true, - "key": "relevance", - "name": "Relevance", - "priority": 6 - }, - { - "is_active": true, - "key": "price_asc", - "logo": "https://hdn-1.fynd.com/global/menu-icons/Price%20Low%20to%20High.png", - "name": "Price Low to High", - "priority": 7 - } - ], - "default_key": "" - } - }, - "product": { - "similar": { - "config": [ - { - "is_active": true, - "key": "seller", - "priority": 1, - "size": { - "max": 10, - "min": 2 - }, - "subtitle": "", - "title": "Seller" - }, - { - "is_active": true, - "key": "visual", - "priority": 2, - "size": { - "max": 10, - "min": 2 - }, - "subtitle": "", - "title": "Visual" - }, - { - "is_active": true, - "key": "brand", - "priority": 3, - "size": { - "max": 10, - "min": 2 - }, - "subtitle": "", - "title": "Brand" - }, - { - "is_active": true, - "key": "specs", - "priority": 4, - "size": { - "max": 10, - "min": 2 - }, - "subtitle": "", - "title": "Specs" - } - ] - }, - "variant": { - "config": [ - { - "display_type": "image", - "is_active": true, - "key": "color", - "name": "Additional Colors12", - "priority": 1, - "size": { - "max": 10, - "min": 2 - } - }, - { - "display_type": "text", - "is_active": true, - "key": "storage", - "name": "Memory", - "priority": 2, - "size": { - "max": 10, - "min": 2 - } - }, - { - "display_type": "image", - "is_active": true, - "key": "visual", - "name": "Additional Colors", - "priority": 3, - "size": { - "max": 10, - "min": 2 - } - }, - { - "display_type": "text", - "is_active": true, - "key": "ram_storage", - "name": "Ram_Storage", - "priority": 4, - "size": { - "max": 10, - "min": 2 - } - }, - { - "display_type": "color", - "is_active": true, - "key": "shade", - "name": "Additional Shades", - "priority": 5, - "size": { - "max": 10, - "min": 2 - } - }, - { - "display_type": "text", - "is_active": true, - "key": "water_resistant", - "name": "Water_Resistant", - "priority": 6, - "size": { - "max": 10, - "min": 2 - } - } - ] - } - } - }, - "is_default": false - } -} -``` -
- -
- - - - - - - - - ---- - - -### getConfigurationsFilterMetadata -Get filter details for application - - - -```javascript -// Promise -const promise = platformClient.application("").catalog.getConfigurationsFilterMetadata({ filter : value }); - -// Async/Await -const data = await platformClient.application("").catalog.getConfigurationsFilterMetadata({ filter : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| filter | string | yes | Filter whose values needs to be fetched. | - - - -configured details for catalog. - -*Returned Response:* - - - - -[FilterResponse](#FilterResponse) - -Get application level filter details for metadata. See example below or refer `FilterResponse` for details - - - - -
-  Examples: - - -
-  success - -```json -{ - "value": { - "values": [ - { - "text": "standard", - "value": "standard" - } - ] - } -} -``` -
- -
- - - - - - - - - ---- - - -### getDepartmentData -Get specific departments details by passing in unique id of the department. - - - -```javascript -// Promise -const promise = platformClient.catalog.getDepartmentData({ uid : value }); - -// Async/Await -const data = await platformClient.catalog.getDepartmentData({ uid : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| uid | string | yes | A `uid` is a unique identifier of a department. | - - - -Allows you to get department data, by uid. - -*Returned Response:* - - - - -[DepartmentsResponse](#DepartmentsResponse) - -Departments Data. See example below or refer `DepartmentsResponse` for details - - - - -
-  Examples: - - -
-  success - -```json -{ - "value": { - "items": [ - { - "_cls": "Department", - "_custom_json": {}, - "created_by": { - "user_id": "3", - "username": "918793638893_86554" - }, - "created_on": "2020-07-01T05:33:39.325000Z", - "id": "5efc2033623d390001782238", - "is_active": true, - "logo": "https://hdn-1.addsale.com/x0/seller/pictures/logo/original/BSQ9Gk_123522-best-starry-sky-wallpaper-1920x1200-ipad-pro.jpgc7d0c15c-c1ff-47eb-8423-6e2df51f2ddf/BSQ9Gk_123522-best-starry-sky-wallpaper-1920x1200-ipad-pro.jpg", - "modified_by": { - "user_id": "5677", - "username": "917753852478_51632" - }, - "modified_on": "2021-03-03T15:55:25.118000Z", - "name": "Sample Dept", - "platforms": {}, - "priority_order": 111, - "slug": "sample-dept", - "synonyms": [ - "test", - "sampe" - ], - "tags": [], - "uid": 5 - }, - { - "_cls": "Department", - "_custom_json": {}, - "created_by": { - "user_id": "0", - "username": "app@fynd.com" - }, - "created_on": "2020-05-19T06:53:37.629000Z", - "id": "5ec3827156a7200001c9aeea", - "is_active": true, - "logo": "https://hdn-1.addsale.com/addsale/media/logo/department/original/15974_381e2236c2a348cc851c29a5d05c66a9.png", - "modified_by": { - "user_id": "10", - "username": "fahimsakri_gofynd_com_44938" - }, - "modified_on": "2021-03-04T14:01:02.556000Z", - "name": "Men's Fashion", - "platforms": { - "fynd": true, - "fynd_store": true, - "marketplace": true, - "openapi": true, - "uniket_store": true, - "uniket_wholesale": true - }, - "priority_order": 111, - "slug": "men-s-fashion", - "synonyms": [], - "tags": [], - "uid": 2 - }, - { - "_cls": "Department", - "_custom_json": {}, - "created_by": { - "user_id": "10", - "username": "fahimsakri_gofynd_com_44938" - }, - "created_on": "2020-06-29T10:59:33.620000Z", - "id": "5ef9c9959b04f00001e40dba", - "is_active": true, - "logo": "https://hdn-1.addsale.com/x0/seller/pictures/logo/original/ywPVrU_preview_a637ca6e4da6e38f03eb0d650ac5d6ba.jpgc73cc22f-b5ee-4fd4-a585-8ada35762d68/ywPVrU_preview_a637ca6e4da6e38f03eb0d650ac5d6ba.jpg", - "modified_by": { - "user_id": "3", - "username": "918793638893_86554" - }, - "modified_on": "2020-08-06T18:08:02.675000Z", - "name": "Groceries", - "platforms": {}, - "priority_order": 10, - "slug": "groceries", - "synonyms": [], - "tags": [], - "uid": 4 - }, - { - "_cls": "Department", - "_custom_json": {}, - "created_by": { - "user_id": "0", - "username": "app@fynd.com" - }, - "created_on": "2020-05-18T16:14:41.689000Z", - "id": "5ec2b471661a4100019fca0d", - "is_active": true, - "logo": "https://hdn-1.addsale.com/x0/platform/pictures/free-logo/original/_G1Z2Fg1L-http:d3p8ifzkmzds37.cloudfront.netmedialogodepartmentoriginal15870_c287d3c2431a432bb0e49363ef6b82bc.png.png", - "modified_by": { - "user_id": "5677", - "username": "917753852478_51632" - }, - "modified_on": "2021-03-04T15:39:38.528000Z", - "name": "Electronics", - "platforms": { - "fynd": true, - "fynd_store": true, - "marketplace": true, - "openapi": true, - "uniket_store": true, - "uniket_wholesale": true - }, - "priority_order": 100, - "slug": "electronics", - "synonyms": [], - "tags": [], - "uid": 1 - }, - { - "_cls": "Department", - "_custom_json": {}, - "created_by": { - "user_id": "3", - "username": "918793638893_86554" - }, - "created_on": "2020-05-27T12:04:19.111000Z", - "id": "5ece5743cd1bae0001440427", - "is_active": true, - "logo": "https://hdn-1.addsale.com/x0/seller/pictures/landscape-banner/original/g2plam_logo_Jio.pngeeb392ca-3958-46a0-9f13-23c205b596f7/g2plam_logo_Jio.png", - "modified_by": { - "user_id": "3", - "username": "918793638893_86554" - }, - "modified_on": "2020-08-06T18:07:46.060000Z", - "name": "Industrial Supplies", - "platforms": {}, - "priority_order": 111, - "slug": "industrial-supplies", - "synonyms": [], - "tags": [], - "uid": 3 - }, - { - "_cls": "Department", - "_custom_json": {}, - "created_by": { - "user_id": "13", - "username": "abhinavsrivastava_gofynd_com_05674" - }, - "created_on": "2020-07-06T07:56:01.508000Z", - "id": "5f02d9116b0ae500018923dd", - "is_active": false, - "logo": "https://hdn-1.addsale.com/x0/seller/pictures/logo/original/wTcfEi_crysis_-_1.jpg14580947-a659-486d-b2d3-d2ca025b1cac/wTcfEi_crysis_-_1.jpg", - "modified_by": { - "user_id": "3", - "username": "918793638893_86554" - }, - "modified_on": "2020-08-06T18:08:12.576000Z", - "name": "Clothing", - "platforms": {}, - "priority_order": 1, - "slug": "clothing", - "synonyms": [], - "tags": [], - "uid": 6 - }, - { - "_cls": "Department", - "_custom_json": {}, - "created_by": { - "user_id": "5634", - "username": "asavarijadhav_gofynd_com_99880" - }, - "created_on": "2020-08-05T09:04:33.604000Z", - "id": "5f2a762131c66700018cdc47", - "is_active": true, - "logo": "https://hdn-1.addsale.com/x0/seller/pictures/logo/original/RxTsd8_0DEFAULT-LOGO.jpg000ccfc1-2f79-4426-9ac3-de2468c2fcb9/RxTsd8_0DEFAULT-LOGO.jpg", - "modified_by": { - "user_id": "5634", - "username": "asavarijadhav_gofynd_com_99880" - }, - "modified_on": "2020-08-05T09:44:01.234000Z", - "name": "Kids", - "platforms": {}, - "priority_order": 3, - "slug": "kids", - "synonyms": [], - "tags": [], - "uid": 8 - }, - { - "_cls": "Department", - "_custom_json": {}, - "created_by": { - "user_id": "5634", - "username": "asavarijadhav_gofynd_com_99880" - }, - "created_on": "2020-08-05T09:44:46.632000Z", - "id": "5f2a7f8e31c66700018cdc49", - "is_active": true, - "logo": "https://hdn-1.addsale.com/x0/seller/pictures/logo/original/tKkDB8_0DEFAULT-LOGO.jpg1c324d4d-f667-4af8-8d98-37205d34e3b5/tKkDB8_0DEFAULT-LOGO.jpg", - "modified_by": { - "user_id": "3", - "username": "918793638893_86554" - }, - "modified_on": "2020-08-06T18:07:35.231000Z", - "name": "Women's Fashion", - "platforms": {}, - "priority_order": 2, - "slug": "women-s-fashion", - "synonyms": [], - "tags": [], - "uid": 9 - }, - { - "_cls": "Department", - "_custom_json": {}, - "created_by": { - "user_id": "5634", - "username": "asavarijadhav_gofynd_com_99880" - }, - "created_on": "2020-08-05T09:45:12.075000Z", - "id": "5f2a7fa831c66700018cdc4a", - "is_active": true, - "logo": "https://hdn-1.addsale.com/x0/seller/pictures/logo/original/oLoxiL_0DEFAULT-LOGO.jpgbd050200-700a-4a3e-9da6-e6b78fbee943/oLoxiL_0DEFAULT-LOGO.jpg", - "modified_by": { - "user_id": "5634", - "username": "asavarijadhav_gofynd_com_99880" - }, - "modified_on": "2020-08-05T09:48:01.660000Z", - "name": "Beauty & Personal Care", - "platforms": {}, - "priority_order": 4, - "slug": "beauty-personal-care", - "synonyms": [], - "tags": [], - "uid": 10 - }, - { - "_cls": "Department", - "_custom_json": {}, - "created_by": { - "user_id": "5634", - "username": "asavarijadhav_gofynd_com_99880" - }, - "created_on": "2020-08-05T09:45:39.797000Z", - "id": "5f2a7fc331c66700018cdc4b", - "is_active": true, - "logo": "https://hdn-1.addsale.com/x0/seller/pictures/logo/original/vQv4ot_0DEFAULT-LOGO.jpg701cb5af-2024-4abf-ae5d-b68bc1a3cd43/vQv4ot_0DEFAULT-LOGO.jpg", - "modified_by": { - "user_id": "3", - "username": "918793638893_86554" - }, - "modified_on": "2020-08-06T11:38:57.599000Z", - "name": "Home & Living", - "platforms": {}, - "priority_order": 5, - "slug": "home-living", - "synonyms": [], - "tags": [], - "uid": 11 - }, - { - "_cls": "Department", - "_custom_json": {}, - "created_by": { - "user_id": "5634", - "username": "asavarijadhav_gofynd_com_99880" - }, - "created_on": "2020-08-05T09:48:42.347000Z", - "id": "5f2a807a31c66700018cdc4e", - "is_active": false, - "logo": "https://hdn-1.addsale.com/x0/seller/pictures/logo/original/hTobjV_0DEFAULT-LOGO.jpga020159c-7fe7-4c1c-a11a-4be61a60da9f/hTobjV_0DEFAULT-LOGO.jpg", - "modified_by": { - "user_id": "5634", - "username": "asavarijadhav_gofynd_com_99880" - }, - "modified_on": "2020-08-05T09:48:42.347000Z", - "name": "Baby Care & Kids Essentials", - "platforms": {}, - "priority_order": 7, - "slug": "baby-care-kids-essentials", - "synonyms": [], - "tags": [], - "uid": 14 - }, - { - "_cls": "Department", - "_custom_json": {}, - "created_by": { - "user_id": "5721", - "username": "919821012599_75351" - }, - "created_on": "2021-01-13T10:12:33.002000Z", - "id": "5ffec79192813f0001eb6560", - "is_active": true, - "logo": "https://hdn-1.addsale.com/x0/department/pictures/square-logo/original/rNz8grLys-.png", - "modified_by": { - "user_id": "5721", - "username": "919821012599_75351" - }, - "modified_on": "2021-01-13T13:50:55.415000Z", - "name": "Skin care products", - "platforms": {}, - "priority_order": 10235, - "slug": "skin-care-produts", - "synonyms": [ - "skin", - "care" - ], - "tags": [], - "uid": 21 - } - ], - "page": { - "type": "" - } - } -} -``` -
- -
- - - - - - - - - ---- - - -### getDepartments -List all the departments - - - -```javascript -// Promise -const promise = platformClient.application("").catalog.getDepartments(); - -// Async/Await -const data = await platformClient.application("").catalog.getDepartments(); -``` - - - - - - -Departments are a way to categorise similar products. A product can lie in multiple departments. For example, a skirt can below to the 'Women's Fashion' Department while a handbag can lie in 'Women's Accessories' Department. Use this API to list all the departments. If successful, returns the list of departments specified in `DepartmentResponse` - -*Returned Response:* - - - - -[DepartmentResponse](#DepartmentResponse) - -List of Departments. See example below or refer `DepartmentResponse` for details. - - - - -
-  Examples: - - -
-  success - -```json -{ - "value": { - "items": [ - { - "logo": { - "type": "image", - "url": "http://cdn4.gofynd.com/media/category_tab_icons/department/Men.png" - }, - "name": "Zachary Harris", - "priority_order": 7, - "slug": "Zachary-Harris", - "uid": 1 - }, - { - "logo": { - "type": "image", - "url": "http://cdn4.gofynd.com/media/category_tab_icons/department/Men.png" - }, - "name": "Aaron Reilly", - "priority_order": 7, - "slug": "Aaron-Reilly", - "uid": 2 - }, - { - "logo": { - "type": "image", - "url": "http://cdn4.gofynd.com/media/category_tab_icons/department/Men.png" - }, - "name": "Bobby Sandoval", - "priority_order": 7, - "slug": "Bobby-Sandoval", - "uid": 3 - }, - { - "logo": { - "type": "image", - "url": "http://cdn4.gofynd.com/media/category_tab_icons/department/Men.png" - }, - "name": "Seth Hughes", - "priority_order": 7, - "slug": "Seth-Hughes", - "uid": 4 - }, - { - "logo": { - "type": "image", - "url": "http://cdn4.gofynd.com/media/category_tab_icons/department/Men.png" - }, - "name": "Michelle Moore", - "priority_order": 7, - "slug": "Michelle-Moore", - "uid": 5 - }, - { - "logo": { - "type": "image", - "url": "http://cdn4.gofynd.com/media/category_tab_icons/department/Men.png" - }, - "name": "Annette Baldwin", - "priority_order": 7, - "slug": "Annette-Baldwin", - "uid": 6 - }, - { - "logo": { - "type": "image", - "url": "http://cdn4.gofynd.com/media/category_tab_icons/department/Men.png" - }, - "name": "Chris Mata", - "priority_order": 7, - "slug": "Chris-Mata", - "uid": 7 - }, - { - "logo": { - "type": "image", - "url": "http://cdn4.gofynd.com/media/category_tab_icons/department/Men.png" - }, - "name": "Nicole Jacobs", - "priority_order": 7, - "slug": "Nicole-Jacobs", - "uid": 8 - }, - { - "logo": { - "type": "image", - "url": "http://cdn4.gofynd.com/media/category_tab_icons/department/Men.png" - }, - "name": "Pamela Smith", - "priority_order": 7, - "slug": "Pamela-Smith", - "uid": 9 - }, - { - "logo": { - "type": "image", - "url": "http://cdn4.gofynd.com/media/category_tab_icons/department/Men.png" - }, - "name": "Nicole Simon", - "priority_order": 7, - "slug": "Nicole-Simon", - "uid": 10 - } - ] - } -} -``` -
- -
- - - - - - - - - ---- - - -### getDiscountedInventoryBySizeIdentifier -Get Inventory for company - - - -```javascript -// Promise -const promise = platformClient.application("").catalog.getDiscountedInventoryBySizeIdentifier({ itemId : value, - sizeIdentifier : value, - pageNo : value, - pageSize : value, - locationIds : value }); - -// Async/Await -const data = await platformClient.application("").catalog.getDiscountedInventoryBySizeIdentifier({ itemId : value, - sizeIdentifier : value, - pageNo : value, - pageSize : value, - locationIds : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| itemId | number | yes | Item code of the product of which size is to be get. | -| sizeIdentifier | number | yes | Size Identifier (Seller Identifier or Primary Identifier) of which inventory is to get. | -| pageNo | number | no | The page number to navigate through the given set of results | -| pageSize | number | no | Number of items to retrieve in each page. Default is 12. | -| locationIds | Array | no | Search by store ids. | - - - -This API allows get Inventory data for particular company grouped by size and store. - -*Returned Response:* - - - - -[InventorySellerIdentifierResponsePaginated](#InventorySellerIdentifierResponsePaginated) - -returns a list of all inventory grouped by size and store - - - - -
-  Examples: - - -
-  success - -```json -{ - "value": { - "items": [ - { - "brand": { - "id": 1, - "name": "ab" - }, - "company": { - "id": 1 - }, - "country_of_origin": "", - "currency": "INR", - "dimension": { - "height": 15, - "is_default": true, - "length": 10.5, - "unit": "cm", - "width": 5.2 - }, - "fragile": true, - "fynd_article_code": "", - "fynd_item_code": "", - "identifier": { - "article_id": 1 - }, - "identifiers": [ - { - "gtin_type": "sku_code", - "gtin_value": "RTYUIDSDFV", - "primary": true - } - ], - "inventory_updated_on": "2021-04-06T03:30:01.487000", - "item_id": 7500651, - "manufacturer": { - "address": "st", - "is_default": true, - "name": "manufacturer" - }, - "price": { - "currency": "USD", - "effective": 79.99, - "marked": 99.99, - "transfer": 79.99 - }, - "price_effective": 1234, - "price_transfer": 0, - "quantity": 10, - "sellable_quantity": 10, - "seller_identifier": "RTYUIDSDFV", - "size": "AAX1 (1 PCS)", - "store": { - "id": 1 - }, - "total_quantity": 1, - "uid": "59_RTYUIDSDFV", - "weight": { - "is_default": true, - "shipping": 1.5, - "unit": "kg" - } - }, - { - "brand": { - "id": 1, - "name": "ab" - }, - "company": { - "id": 1 - }, - "country_of_origin": "", - "currency": "INR", - "dimension": { - "height": 15, - "is_default": true, - "length": 10.5, - "unit": "cm", - "width": 5.2 - }, - "fragile": true, - "fynd_article_code": "", - "fynd_item_code": "", - "identifier": { - "article_id": 1 - }, - "identifiers": [ - { - "gtin_type": "sku_code", - "gtin_value": "RTYUIDSDFV", - "primary": true - } - ], - "inventory_updated_on": "2021-04-06T03:29:35.291000", - "item_id": 7500651, - "manufacturer": { - "address": "st", - "is_default": true, - "name": "manufacturer" - }, - "price": { - "currency": "USD", - "effective": 79.99, - "marked": 99.99, - "transfer": 79.99 - }, - "price_effective": 1234, - "price_transfer": 0, - "quantity": 10, - "sellable_quantity": 10, - "seller_identifier": "RTYUIDSDFV", - "size": "AAX1 (1 PCS)", - "store": { - "id": 1 - }, - "total_quantity": 1, - "uid": "10_RTYUIDSDFV", - "weight": { - "is_default": true, - "shipping": 1.5, - "unit": "kg" - } - }, - { - "brand": { - "id": 1, - "name": "ab" - }, - "company": { - "id": 1 - }, - "country_of_origin": "", - "currency": "INR", - "dimension": { - "height": 15, - "is_default": true, - "length": 10.5, - "unit": "cm", - "width": 5.2 - }, - "fragile": true, - "fynd_article_code": "", - "fynd_item_code": "", - "identifier": { - "article_id": 1 - }, - "identifiers": [ - { - "gtin_type": "sku_code", - "gtin_value": "RTYUIDSDFV", - "primary": true - } - ], - "inventory_updated_on": "2021-03-17T12:35:29.992000", - "item_id": 7500651, - "manufacturer": { - "address": "st", - "is_default": true, - "name": "manufacturer" - }, - "order_committed_quantity": 0, - "price": { - "currency": "USD", - "effective": 79.99, - "marked": 99.99, - "transfer": 79.99 - }, - "price_effective": 1234, - "price_transfer": 0, - "quantity": 10000000, - "sellable_quantity": 10000000, - "seller_identifier": "RTYUIDSDFV", - "size": "AAX1 (1 PCS)", - "store": { - "id": 1 - }, - "total_quantity": 1, - "uid": "11061_RTYUIDSDFV", - "weight": { - "is_default": true, - "shipping": 1.5, - "unit": "kg" - } - }, - { - "brand": { - "id": 1, - "name": "ab" - }, - "company": { - "id": 1 - }, - "country_of_origin": "", - "currency": "INR", - "damaged_quantity": 0, - "dimension": { - "height": 15, - "is_default": true, - "length": 10.5, - "unit": "cm", - "width": 5.2 - }, - "fragile": true, - "fynd_article_code": "", - "fynd_item_code": "", - "identifier": { - "article_id": 1 - }, - "identifiers": [ - { - "gtin_type": "sku_code", - "gtin_value": "RTYUIDSDFV", - "primary": true - } - ], - "inventory_updated_on": "2021-03-31T19:00:10.943000", - "item_id": 7500651, - "manufacturer": { - "address": "st", - "is_default": true, - "name": "manufacturer" - }, - "not_available_quantity": 0, - "order_committed_quantity": 7, - "price": { - "currency": "USD", - "effective": 79.99, - "marked": 99.99, - "transfer": 79.99 - }, - "price_effective": 1234, - "price_transfer": 0, - "quantity": 39, - "sellable_quantity": 18, - "seller_identifier": "RTYUIDSDFV", - "size": "AAX1 (1 PCS)", - "store": { - "id": 1 - }, - "total_quantity": 1, - "uid": "1_RTYUIDSDFV", - "weight": { - "is_default": true, - "shipping": 1.5, - "unit": "kg" - } - }, - { - "brand": { - "id": 1, - "name": "ab" - }, - "company": { - "id": 1 - }, - "country_of_origin": "", - "currency": "INR", - "dimension": { - "height": 15, - "is_default": true, - "length": 10.5, - "unit": "cm", - "width": 5.2 - }, - "fragile": true, - "fynd_article_code": "", - "fynd_item_code": "", - "identifier": { - "article_id": 1 - }, - "identifiers": [ - { - "gtin_type": "sku_code", - "gtin_value": "RTYUIDSDFV", - "primary": true - } - ], - "inventory_updated_on": "2020-07-07T10:37:06.146000", - "item_id": 7500651, - "manufacturer": { - "address": "st", - "is_default": true, - "name": "manufacturer" - }, - "order_committed_quantity": 39, - "price": { - "currency": "USD", - "effective": 79.99, - "marked": 99.99, - "transfer": 79.99 - }, - "price_effective": 1234, - "price_transfer": 0, - "quantity": 39, - "sellable_quantity": 0, - "seller_identifier": "RTYUIDSDFV", - "size": "AAX1 (1 PCS)", - "store": { - "id": 1 - }, - "total_quantity": 1, - "uid": "1_rtyuidsdfv", - "weight": { - "is_default": true, - "shipping": 1.5, - "unit": "kg" - } - } - ], - "page": { - "current": 1, - "has_next": false, - "has_previous": false, - "item_total": 5, - "size": 1, - "type": "number" - } - } -} -``` -
- -
- - - - - - - - - ---- - - -### getGenderAttribute -Get gender attribute details - - - -```javascript -// Promise -const promise = platformClient.catalog.getGenderAttribute({ attributeSlug : value }); - -// Async/Await -const data = await platformClient.catalog.getGenderAttribute({ attributeSlug : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| attributeSlug | string | yes | slug of the attribute for which you want to view the genders | - - - -This API allows to view the gender attribute details. - -*Returned Response:* - - - - -[GenderDetail](#GenderDetail) - -Size guide object. See example below or refer `GenderDetailSchema` for details - - - - -
-  Examples: - - -
-  success - -```json -{ - "value": { - "name": "test", - "modified_by": { - "user_id": "000000000000000016841367", - "username": "app@fynd.com" - }, - "description": "Testing swatch attribute", - "created_on": "2022-10-07T06:42:08.286000", - "slug": "test", - "is_nested": true, - "details": { - "display_type": "text" - }, - "_id": "6571b582c1b29f5738dc994f", - "filters": { - "indexing": false - }, - "departments": [ - "men", - "fashion" - ], - "schema": { - "range": { - "min": 1 - }, - "mandatory": false, - "format": "", - "type": "str", - "allowed_values": [], - "multi": false - }, - "variant": false, - "modified_on": "2023-12-07T17:37:31.358000", - "created_by": { - "user_id": "fffac759abfde839d8d2bc2d", - "username": "mohammedansari_fynd_external_com_91689" - } - } -} -``` -
- -
- - - - - - - - - ---- - - -### getGroupConfigurations -Get the details of the application configured configurations of group config types. - - - -```javascript -// Promise -const promise = platformClient.application("").catalog.getGroupConfigurations({ configType : value, - pageNo : value, - pageSize : value, - search : value, - templateSlug : value }); - -// Async/Await -const data = await platformClient.application("").catalog.getGroupConfigurations({ configType : value, - pageNo : value, - pageSize : value, - search : value, - templateSlug : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| configType | string | yes | A `config_type` is an identifier that defines a specific type of configuration. | -| pageNo | number | no | The page number to navigate through the given set of results. | -| pageSize | number | no | Number of items to retrieve in each page. Default is 12. | -| search | string | no | Get configuration list filtered by `search` string. | -| templateSlug | string | no | Get configuration list filtered by `template_slug` string. This is for the details and comparision groups. | - - - -Get the details of the application configured configurations of group config types. - -*Returned Response:* - - - - -[GetConfigResponse](#GetConfigResponse) - -configuration details for catalog. See example below or refer `GetConfigResponseSchema` for details - - - - -
-  Examples: - - -
-  success - -```json -{ - "value": { - "data": [ - { - "attributes": [ - { - "key": "length", - "name": "Length", - "slug": "length", - "priority": 1, - "unit": "mm", - "is_active": true, - "display_type": "text" - } - ], - "name": "testnew78", - "slug": "testnew80", - "is_default": false, - "priority": 6, - "app_id": "000000000000000000000001", - "is_active": true, - "id": "656c3ae76159b98c5da285ed" - } - ], - "page": { - "current": 1, - "next": 2, - "has_next": true, - "total_count": 1 - } - } -} -``` -
- -
- - - - - - - - - ---- - - -### getHsnCode -Fetch Hsn Code. - - - -```javascript -// Promise -const promise = platformClient.catalog.getHsnCode({ id : value }); - -// Async/Await -const data = await platformClient.catalog.getHsnCode({ id : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| id | string | yes | Unique id | - - - -Fetch Hsn Code. - -*Returned Response:* - - - - -[HsnCode](#HsnCode) - -See example below details - - - - -
-  Examples: - - -
-  success - -```json -{ - "value": { - "data": { - "threshold2": 0, - "tax_on_mrp": false, - "hsn_code": "xxxxxxxx", - "tax1": 0, - "hs2_code": "xx", - "threshold1": 99, - "tax_on_esp": true, - "id": "5f32ce379780fb00015c2115", - "modified_on": "2023-12-07 06:12:38.553000", - "tax2": 0, - "company_id": 1 - } - } -} -``` -
- -
- - - - - - - - - ---- - - -### getInventories -Get Inventory for company - - - -```javascript -// Promise -const promise = platformClient.catalog.getInventories({ itemId : value, - size : value, - pageNo : value, - pageSize : value, - q : value, - sellable : value, - storeIds : value, - sizeIdentifier : value }); - -// Async/Await -const data = await platformClient.catalog.getInventories({ itemId : value, - size : value, - pageNo : value, - pageSize : value, - q : value, - sellable : value, - storeIds : value, - sizeIdentifier : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| itemId | number | no | Item code of the product of which size is to be get. | -| size | string | no | Size of which inventory is to get. | -| pageNo | number | no | The page number to navigate through the given set of results | -| pageSize | number | no | Number of items to retrieve in each page. Default is 12. | -| q | string | no | Search with help of store code. | -| sellable | boolean | no | Filter on whether product is in stock or not. | -| storeIds | Array | no | The Store Id of products to fetch inventory. | -| sizeIdentifier | number | no | Size Identifier (Seller Identifier or Primary Identifier) of which inventory is to get. | - - - -This API allows get Inventories data for particular company. - -*Returned Response:* - - - - -[GetInventoriesResponse](#GetInventoriesResponse) - -returns a list of all inventory grouped by size and store - - - - -
-  Examples: - - -
-  success - -```json -{ - "value": { - "items": [ - { - "brand": { - "id": 355 - }, - "company": { - "id": 46 - }, - "country_of_origin": "Malaysia", - "created_by": { - "user_id": "68c3800d602c0fda0dab4fea", - "username": "abhishekbhakurlekar_gofynd_com_63787" - }, - "date_meta": { - "added_on_store": "2023-01-20T07:26:18.834000", - "created_on": "2023-01-20T07:26:18.828000", - "inventory_updated_on": "2023-01-20T07:26:18.828000", - "modified_on": "2023-01-20T07:26:18.828000" - }, - "dimension": { - "height": 10, - "length": 25, - "unit": "cm", - "width": 15 - }, - "expiration_date": "9998-01-30T23:59:00", - "id": "63ca421a6fb0ce930685f46e", - "identifier": { - "alu": "410163085004", - "upc": "777697046" - }, - "is_set": false, - "manufacturer": { - "address": "5TH FLOOR, COURT HOUSE,LOKMANYA TILAK MARGA, DHOBI TALAOMUMBAI MAHARASHTRA, , MAHARASHTRA, MUMBAI", - "is_default": true, - "name": "RELIANCE BRANDS LIMITED" - }, - "modified_by": { - "user_id": "68c3800d602c0fda0dab4fea", - "username": "abhishekbhakurlekar_gofynd_com_63787" - }, - "platforms": { - "fynd": false, - "uniket_wholesale": false - }, - "price": { - "currency": "INR", - "effective": 8000, - "marked": 8000, - "transfer": 0 - }, - "quantities": { - "sellable": { - "count": 12 - } - }, - "return_config": { - "returnable": true, - "time": 30, - "unit": "days" - }, - "seller_identifier": "410163085004", - "size": "S", - "stage": "verified", - "store": { - "name": "Khan Market", - "store_code": "THR1", - "store_type": "high_street", - "uid": 10444 - }, - "tax_identifier": { - "hsn_code_id": "000000000000000000000001" - }, - "total_quantity": 12, - "trace_id": "inventory.bb475064-9893-11ed-88db-2efc0f0504bd", - "track_inventory": true, - "trader": [ - { - "address": [ - "Brooks Brothers India Private Limited registered address is 8th Floor, Maker Tower 'E' Cuffe Parade Mumbai MH 400005 IN" - ], - "name": "Imported & Marketed by Brooks Brothers India Pvt.Ltd", - "type": "Importer" - } - ], - "uid": "10444_410163085004", - "weight": { - "shipping": 999, - "unit": "gram" - } - }, - { - "brand": { - "id": 355 - }, - "company": { - "id": 46 - }, - "country_of_origin": "Malaysia", - "created_by": { - "user_id": "68c3800d602c0fda0dab4fea", - "username": "abhishekbhakurlekar_gofynd_com_63787" - }, - "date_meta": { - "added_on_store": "2023-01-16T05:25:49.491000", - "created_on": "2023-01-16T05:25:49.482000", - "inventory_updated_on": "2023-01-16T05:25:49.482000", - "modified_on": "2023-01-16T05:25:49.482000" - }, - "dimension": { - "height": 10, - "length": 25, - "unit": "cm", - "width": 15 - }, - "expiration_date": "9998-01-30T23:59:00", - "id": "63c4dfdd11e44ffd96d600bc", - "identifier": { - "alu": "410163085005", - "upc": "777697038" - }, - "is_set": false, - "manufacturer": { - "address": "5TH FLOOR, COURT HOUSE,LOKMANYA TILAK MARGA, DHOBI TALAOMUMBAI MAHARASHTRA, , MAHARASHTRA, MUMBAI", - "is_default": true, - "name": "RELIANCE BRANDS LIMITED" - }, - "modified_by": { - "user_id": "68c3800d602c0fda0dab4fea", - "username": "abhishekbhakurlekar_gofynd_com_63787" - }, - "platforms": { - "fynd": false, - "uniket_wholesale": false - }, - "price": { - "currency": "INR", - "effective": 8000, - "marked": 8000, - "transfer": 0 - }, - "quantities": { - "sellable": { - "count": 12 - } - }, - "return_config": { - "returnable": true, - "time": 30, - "unit": "days" - }, - "seller_identifier": "410163085005", - "size": "M", - "stage": "verified", - "store": { - "name": "Khan Market", - "store_code": "THR1", - "store_type": "high_street", - "uid": 10444 - }, - "tax_identifier": { - "hsn_code_id": "000000000000000000000001" - }, - "total_quantity": 12, - "trace_id": "inventory.3c9a25e4-955e-11ed-8584-92a07e366903", - "track_inventory": true, - "trader": [ - { - "address": [ - "Brooks Brothers India Private Limited registered address is 8th Floor, Maker Tower 'E' Cuffe Parade Mumbai MH 400005 IN" - ], - "name": "Imported & Marketed by Brooks Brothers India Pvt.Ltd", - "type": "Importer" - } - ], - "uid": "10444_410163085005", - "weight": { - "shipping": 999, - "unit": "gram" - } - }, - { - "brand": { - "id": 355 - }, - "company": { - "id": 46 - }, - "country_of_origin": "Malaysia", - "created_by": { - "user_id": "bc5fbaf5e6f4b5288e9a9a22", - "username": "sagardhiman_gofynd_com_43846" - }, - "date_meta": { - "added_on_store": "2023-01-05T10:45:41.988000", - "created_on": "2023-01-05T10:45:41.979000", - "inventory_updated_on": "2023-01-19T10:37:00.504000", - "modified_on": "2023-01-19T10:37:00.504000" - }, - "dimension": { - "height": 10, - "length": 25, - "unit": "cm", - "width": 15 - }, - "expiration_date": "9998-01-30T23:59:00", - "id": "63b6aa5558bf3ed100740c10", - "identifier": { - "alu": "410163085004", - "upc": "777697046" - }, - "is_set": false, - "manufacturer": { - "address": "5TH FLOOR, COURT HOUSE,LOKMANYA TILAK MARGA, DHOBI TALAOMUMBAI MAHARASHTRA, , MAHARASHTRA, MUMBAI", - "is_default": true, - "name": "RELIANCE BRANDS LIMITED" - }, - "modified_by": { - "user_id": "68c3800d602c0fda0dab4fea", - "username": "abhishekbhakurlekar_gofynd_com_63787" - }, - "platforms": { - "fynd": false, - "uniket_wholesale": false - }, - "price": { - "currency": "INR", - "effective": 7001, - "marked": 8000, - "transfer": 0 - }, - "quantities": { - "damaged": { - "count": 0 - }, - "not_available": { - "count": 0 - }, - "sellable": { - "count": 5001 - } - }, - "return_config": { - "returnable": true, - "time": 30, - "unit": "days" - }, - "seller_identifier": "410163085004", - "size": "S", - "stage": "verified", - "store": { - "name": "Reliance 2", - "store_code": "R591", - "store_type": "warehouse", - "uid": 11336 - }, - "tax_identifier": { - "hsn_code_id": "000000000000000000000001" - }, - "total_quantity": 5001, - "trace_id": "inventory.3485e8b4-97e5-11ed-a9d9-5eca1fff6de0", - "track_inventory": true, - "trader": [ - { - "address": [ - "Brooks Brothers India Private Limited registered address is 8th Floor, Maker Tower 'E' Cuffe Parade Mumbai MH 400005 IN" - ], - "name": "Imported & Marketed by Brooks Brothers India Pvt.Ltd", - "type": "Importer" - } - ], - "uid": "11336_410163085004", - "weight": { - "shipping": 999, - "unit": "gram" - } - }, - { - "brand": { - "id": 355 - }, - "company": { - "id": 46 - }, - "country_of_origin": "Malaysia", - "created_by": { - "user_id": "5f200182ee4d3377e83330c2", - "username": "meghanakate_gofynd_com_58351" - }, - "date_meta": { - "added_on_store": "2022-11-29T11:17:42.271000", - "created_on": "2022-11-29T11:17:42.263000", - "inventory_updated_on": "2022-11-29T11:18:35.183000", - "modified_on": "2022-11-29T11:18:35.183000" - }, - "dimension": { - "height": 10, - "length": 25, - "unit": "cm", - "width": 15 - }, - "expiration_date": "9998-01-30T23:59:00", - "id": "6385ea569715e74d8a92ce88", - "identifier": { - "alu": "410163085001", - "upc": "777697079" - }, - "is_set": false, - "manufacturer": { - "address": "5TH FLOOR, COURT HOUSE,LOKMANYA TILAK MARGA, DHOBI TALAOMUMBAI MAHARASHTRA, , MAHARASHTRA, MUMBAI", - "is_default": true, - "name": "RELIANCE BRANDS LIMITED" - }, - "modified_by": { - "user_id": "5f200182ee4d3377e83330c2", - "username": "meghanakate_gofynd_com_58351" - }, - "platforms": { - "fynd": false, - "uniket_wholesale": false - }, - "price": { - "currency": "INR", - "effective": 8000, - "marked": 8000, - "transfer": 0 - }, - "quantities": { - "damaged": { - "count": 0 - }, - "not_available": { - "count": 0 - }, - "sellable": { - "count": 1000 - } - }, - "return_config": { - "returnable": true, - "time": 30, - "unit": "days" - }, - "seller_identifier": "410163085001", - "size": "XXL", - "stage": "verified", - "store": { - "name": "Shopsense Retail Technologies", - "store_code": "SRT91", - "store_type": "warehouse", - "uid": 11701 - }, - "tax_identifier": { - "hsn_code_id": "000000000000000000000001" - }, - "total_quantity": 1000, - "track_inventory": true, - "trader": [ - { - "address": [ - "Brooks Brothers India Private Limited registered address is 8th Floor, Maker Tower 'E' Cuffe Parade Mumbai MH 400005 IN" - ], - "name": "Imported & Marketed by Brooks Brothers India Pvt.Ltd", - "type": "Importer" - } - ], - "uid": "11701_410163085001", - "weight": { - "shipping": 999, - "unit": "gram" - } - }, - { - "brand": { - "id": 355 - }, - "company": { - "id": 46 - }, - "country_of_origin": "Malaysia", - "created_by": { - "user_id": "5f200182ee4d3377e83330c2", - "username": "meghanakate_gofynd_com_58351" - }, - "date_meta": { - "added_on_store": "2022-11-29T11:17:34.431000", - "created_on": "2022-11-29T11:17:34.424000", - "inventory_updated_on": "2022-11-29T11:18:27.331000", - "modified_on": "2022-11-29T11:18:27.331000" - }, - "dimension": { - "height": 10, - "length": 25, - "unit": "cm", - "width": 15 - }, - "expiration_date": "9998-01-30T23:59:00", - "id": "6385ea4e9715e74d8a92ce86", - "identifier": { - "alu": "410163085003", - "upc": "777697053" - }, - "is_set": false, - "manufacturer": { - "address": "5TH FLOOR, COURT HOUSE,LOKMANYA TILAK MARGA, DHOBI TALAOMUMBAI MAHARASHTRA, , MAHARASHTRA, MUMBAI", - "is_default": true, - "name": "RELIANCE BRANDS LIMITED" - }, - "modified_by": { - "user_id": "5f200182ee4d3377e83330c2", - "username": "meghanakate_gofynd_com_58351" - }, - "platforms": { - "fynd": false, - "uniket_wholesale": false - }, - "price": { - "currency": "INR", - "effective": 8000, - "marked": 8000, - "transfer": 0 - }, - "quantities": { - "damaged": { - "count": 0 - }, - "not_available": { - "count": 0 - }, - "sellable": { - "count": 1000 - } - }, - "return_config": { - "returnable": true, - "time": 30, - "unit": "days" - }, - "seller_identifier": "410163085003", - "size": "XL", - "stage": "verified", - "store": { - "name": "Shopsense Retail Technologies", - "store_code": "SRT91", - "store_type": "warehouse", - "uid": 11701 - }, - "tax_identifier": { - "hsn_code_id": "000000000000000000000001" - }, - "total_quantity": 1000, - "track_inventory": true, - "trader": [ - { - "address": [ - "Brooks Brothers India Private Limited registered address is 8th Floor, Maker Tower 'E' Cuffe Parade Mumbai MH 400005 IN" - ], - "name": "Imported & Marketed by Brooks Brothers India Pvt.Ltd", - "type": "Importer" - } - ], - "uid": "11701_410163085003", - "weight": { - "shipping": 999, - "unit": "gram" - } - } - ], - "page": { - "current": 1, - "has_next": false, - "has_previous": false, - "item_total": 5, - "size": 1, - "type": "number" - } - } -} -``` -
- -
- - - - - - - - - ---- - - -### getInventoryBulkUploadHistory -Get a list of all bulk Inventory upload jobs. - - - -```javascript -// Promise -const promise = platformClient.catalog.getInventoryBulkUploadHistory({ pageNo : value, - pageSize : value }); - -// Async/Await -const data = await platformClient.catalog.getInventoryBulkUploadHistory({ pageNo : value, - pageSize : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| pageNo | number | no | The page number to navigate through the given set of results | -| pageSize | number | no | Number of items to retrieve in each page. Default is 12. | - - - -This API helps to get bulk Inventory upload jobs data. - -*Returned Response:* - - - - -[BulkInventoryGet](#BulkInventoryGet) - -List of bulk Inventory upload jobs. See `BulkInventoryGetSchema` for details - - - - -
-  Examples: - - -
-  success - -```json -{ - "value": { - "items": [ - { - "cancelled": 0, - "cancelled_records": [], - "company_id": 1, - "created_by": { - "full_name": "Nikhil Mhatre", - "user_id": "16", - "username": "nikhilmhatre_gofynd_com_97636" - }, - "created_on": "2021-03-11T10:54:44.998000Z", - "failed": 0, - "failed_records": [], - "file_path": "https://hdn-1.addsale.com/x0/company/1/self/documents/inventory-import/free/original/50DbgKLND-NtnL_EAVb-REicn1sDv-V8ZrKdnLt-product_inventory.csv", - "id": "6049f6f5723043000125a9ea", - "is_active": true, - "modified_by": { - "user_id": "0", - "username": "Silverbolt" - }, - "modified_on": "2021-03-11T10:54:45.296000Z", - "stage": "completed", - "succeed": 1, - "total": 1 - }, - { - "cancelled": 0, - "cancelled_records": [], - "company_id": 1, - "created_by": { - "user_id": "-1", - "username": "silverbolt" - }, - "created_on": "2021-03-04T09:46:51.714000Z", - "failed": 0, - "failed_records": [], - "file_path": "https://hdn-1.addsale.com/x0/company/1/self/documents/inventory-import/free/original/NtnL_EAVb-REicn1sDv-V8ZrKdnLt-product_inventory.csv", - "id": "6040ac8b1803830001fcc1ed", - "is_active": true, - "modified_by": { - "user_id": "0", - "username": "Silverbolt" - }, - "modified_on": "2021-03-04T09:46:55.349000Z", - "stage": "completed", - "succeed": 1, - "total": 1 - }, - { - "cancelled": 0, - "cancelled_records": [], - "company_id": 1, - "created_by": { - "user_id": "-1", - "username": "silverbolt" - }, - "created_on": "2021-03-04T09:22:32.222000Z", - "failed": 0, - "failed_records": [], - "file_path": "https://hdn-1.addsale.com/x0/company/1/self/documents/inventory-import/free/original/bmBZY9iAX-REicn1sDv-V8ZrKdnLt-product_inventory.csv", - "id": "6040a6d8104f110001a85061", - "is_active": true, - "modified_by": { - "user_id": "-1", - "username": "silverbolt" - }, - "modified_on": "2021-03-04T09:22:32.222000Z", - "stage": "terminated", - "succeed": 0, - "total": 1 - }, - { - "cancelled": 0, - "cancelled_records": [], - "company_id": 1, - "created_by": { - "user_id": "-1", - "username": "silverbolt" - }, - "created_on": "2021-03-04T09:20:29.719000Z", - "failed": 0, - "failed_records": [], - "file_path": "https://hdn-1.addsale.com/x0/company/1/self/documents/inventory-import/free/original/m73yWRT3v-REicn1sDv-V8ZrKdnLt-product_inventory.csv", - "id": "6040a65d104f110001a85060", - "is_active": true, - "modified_by": { - "user_id": "-1", - "username": "silverbolt" - }, - "modified_on": "2021-03-04T09:20:29.719000Z", - "stage": "terminated", - "succeed": 0, - "total": 1 - }, - { - "cancelled": 0, - "cancelled_records": [], - "company_id": 1, - "created_by": { - "user_id": "-1", - "username": "silverbolt" - }, - "created_on": "2021-03-04T08:50:49.367000Z", - "failed": 0, - "failed_records": [], - "file_path": "https://hdn-1.addsale.com/x0/company/1/self/documents/inventory-import/free/original/W9lxe19Uu-REicn1sDv-V8ZrKdnLt-product_inventory.csv", - "id": "60409f699b21e30001c1e6b5", - "is_active": true, - "modified_by": { - "user_id": "-1", - "username": "silverbolt" - }, - "modified_on": "2021-03-04T08:50:49.367000Z", - "stage": "terminated", - "succeed": 0, - "total": 1 - }, - { - "cancelled": 0, - "cancelled_records": [], - "company_id": 1, - "created_by": { - "full_name": "Sourabh Nilakhe", - "user_id": "5646", - "username": "917972410891_48194" - }, - "created_on": "2021-02-10T10:57:57.236000Z", - "failed": 0, - "failed_records": [], - "file_path": "https://hdn-1.addsale.com/x0/company/1/self/documents/inventory-import/free/original/REicn1sDv-V8ZrKdnLt-product_inventory.csv", - "id": "6023bc35c85ca1000171e08a", - "is_active": true, - "modified_by": { - "user_id": "0", - "username": "Silverbolt" - }, - "modified_on": "2021-02-10T10:57:57.571000Z", - "stage": "completed", - "succeed": 1, - "total": 1 - }, - { - "cancelled": 0, - "cancelled_records": [], - "company_id": 1, - "created_by": { - "full_name": "Sourabh Nilakhe", - "user_id": "5646", - "username": "917972410891_48194" - }, - "created_on": "2021-02-10T10:57:22.535000Z", - "failed": 0, - "failed_records": [], - "file_path": "https://hdn-1.addsale.com/x0/company/1/self/documents/inventory-import/free/original/Oth_LaVyI-V8ZrKdnLt-product_inventory.csv", - "id": "6023bc12c85ca1000171e089", - "is_active": true, - "modified_by": { - "user_id": "0", - "username": "Silverbolt" - }, - "modified_on": "2021-02-10T10:57:23.311000Z", - "stage": "completed", - "succeed": 1, - "total": 1 - }, - { - "cancelled": 0, - "cancelled_records": [], - "company_id": 1, - "created_by": { - "full_name": "Nikhil Mhatre", - "user_id": "16", - "username": "nikhilmhatre_gofynd_com_97636" - }, - "created_on": "2021-01-13T13:58:06.155000Z", - "failed": 0, - "failed_records": [], - "file_path": "https://hdn-1.addsale.com/x0/company/1/self/documents/inventory-import/free/original/V8ZrKdnLt-product_inventory.csv", - "id": "5ffefc6ee2db8f000183fab8", - "is_active": true, - "modified_by": { - "user_id": "0", - "username": "Silverbolt" - }, - "modified_on": "2021-01-13T13:58:06.369000Z", - "stage": "completed", - "succeed": 1, - "total": 1 - }, - { - "cancelled": 0, - "cancelled_records": [], - "company_id": 1, - "created_by": { - "full_name": "Nikhil Mhatre", - "user_id": "16", - "username": "nikhilmhatre_gofynd_com_97636" - }, - "created_on": "2021-01-13T13:57:38.598000Z", - "failed": 1, - "failed_records": [], - "file_path": "https://hdn-1.addsale.com/x0/company/1/self/documents/inventory-import/free/original/t3T6X2Riy-product_inventory.csv", - "id": "5ffefc5252f31100012ea981", - "is_active": true, - "modified_by": { - "user_id": "0", - "username": "Silverbolt" - }, - "modified_on": "2021-01-13T13:57:38.832000Z", - "stage": "failed", - "succeed": 0, - "total": 1 - }, - { - "cancelled": 0, - "cancelled_records": [], - "company_id": 1, - "created_by": { - "full_name": "Nikhil Mhatre", - "user_id": "16", - "username": "nikhilmhatre_gofynd_com_97636" - }, - "created_on": "2021-01-13T13:57:13.639000Z", - "failed": 1, - "failed_records": [], - "file_path": "https://hdn-1.addsale.com/x0/company/1/self/documents/inventory-import/free/original/NSTuhgsgq-product_inventory.csv", - "id": "5ffefc39a0d1e20001ae118c", - "is_active": true, - "modified_by": { - "user_id": "0", - "username": "Silverbolt" - }, - "modified_on": "2021-01-13T13:57:13.847000Z", - "stage": "failed", - "succeed": 0, - "total": 1 - }, - { - "cancelled": 0, - "cancelled_records": [], - "company_id": 1, - "created_by": { - "full_name": "Nikhil Mhatre", - "user_id": "16", - "username": "nikhilmhatre_gofynd_com_97636" - }, - "created_on": "2021-01-12T06:37:06.167000Z", - "failed": 0, - "failed_records": [], - "file_path": "https://hdn-1.addsale.com/x0/company/1/self/documents/inventory-import/free/original/cwQV-Z6gT-product_inventory.xlsx", - "id": "5ffd4392b4c34d000170697b", - "is_active": true, - "modified_by": { - "user_id": "0", - "username": "Silverbolt" - }, - "modified_on": "2021-01-12T06:37:06.307000Z", - "stage": "completed", - "succeed": 1, - "total": 1 - }, - { - "cancelled": 0, - "cancelled_records": [], - "company_id": 1, - "created_by": { - "full_name": "Nikhil Mhatre", - "user_id": "16", - "username": "nikhilmhatre_gofynd_com_97636" - }, - "created_on": "2021-01-12T06:36:24.292000Z", - "failed": 0, - "failed_records": [], - "file_path": "https://hdn-1.addsale.com/x0/company/1/self/documents/inventory-import/free/original/gccehef2f-product_inventory.xlsx", - "id": "5ffd4368b4c34d0001706960", - "is_active": true, - "modified_by": { - "user_id": "0", - "username": "Silverbolt" - }, - "modified_on": "2021-01-12T06:36:24.535000Z", - "stage": "completed", - "succeed": 1, - "total": 1 - } - ], - "page": { - "current": 1, - "has_next": true, - "has_previous": false, - "item_total": 39, - "size": 4, - "type": "number" - } - } -} -``` -
- -
- - - - - - - - - ---- - - -### getInventoryBySize -Get Inventory for company - - - -```javascript -// Promise -const promise = platformClient.catalog.getInventoryBySize({ itemId : value, - size : value, - pageNo : value, - pageSize : value, - q : value, - sellable : value }); - -// Async/Await -const data = await platformClient.catalog.getInventoryBySize({ itemId : value, - size : value, - pageNo : value, - pageSize : value, - q : value, - sellable : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| itemId | number | yes | Item code of the product of which size is to be get. | -| size | string | yes | Size of which inventory is to get. | -| pageNo | number | no | The page number to navigate through the given set of results | -| pageSize | number | no | Number of items to retrieve in each page. Default is 12. | -| q | string | no | Search with help of store code. | -| sellable | boolean | no | Filter on whether product is in stock or not. | - - - -This API allows get Inventory data for particular company grouped by size and store. - -*Returned Response:* - - - - -[InventoryResponsePaginated](#InventoryResponsePaginated) - -returns a list of all inventory grouped by size and store - - - - -
-  Examples: - - -
-  success - -```json -{ - "value": { - "items": [ - { - "currency": "INR", - "identifiers": { - "gtin_type": "sku_code", - "gtin_value": "RTYUIDSDFV", - "primary": true - }, - "inventory_updated_on": "2021-04-06T03:30:01.487000", - "item_id": 7500651, - "price": 1234, - "price_effective": 1234, - "price_transfer": 0, - "quantity": 10, - "sellable_quantity": 10, - "seller_identifier": "RTYUIDSDFV", - "size": "AAX1 (1 PCS)", - "store": { - "_custom_json": {}, - "address": { - "address1": "A/204, SAI VANDAN, NARAYAN NAGAR, TULINJ ROAD", - "address2": "", - "city": "MUMBAI", - "country": "INDIA", - "landmark": "", - "lat_long": { - "coordinates": [ - 72.8231511, - 19.4232024 - ], - "type": "Point" - }, - "pincode": 401209, - "state": "MAHARASHTRA" - }, - "integration_type": { - "inventory": "browntape", - "order": "browntape" - }, - "manager": { - "email": "a@b.com", - "mobile_no": { - "country_code": 91, - "number": "2382634324" - }, - "name": "abc" - }, - "name": "yosss sdd dsdyo", - "store_code": "sanic6sdfsf7", - "uid": 59 - }, - "uid": "59_RTYUIDSDFV" - }, - { - "currency": "INR", - "identifiers": { - "gtin_type": "sku_code", - "gtin_value": "RTYUIDSDFV", - "primary": true - }, - "inventory_updated_on": "2021-04-06T03:29:35.291000", - "item_id": 7500651, - "price": 1234, - "price_effective": 1234, - "price_transfer": 0, - "quantity": 10, - "sellable_quantity": 10, - "seller_identifier": "RTYUIDSDFV", - "size": "AAX1 (1 PCS)", - "store": { - "_custom_json": {}, - "address": { - "address1": "NO", - "address2": "", - "city": "MUMBAI", - "country": "INDIA", - "lat_long": { - "coordinates": [ - 1, - 1 - ], - "type": "Point" - }, - "pincode": 400072, - "state": "MAHA" - }, - "integration_type": { - "inventory": "browntape", - "order": "browntape" - }, - "manager": { - "email": "rehman@cashkart.com", - "mobile_no": { - "country_code": 91, - "number": "9167943983" - }, - "name": "abc" - }, - "name": "Saran Ledonne", - "store_code": "af6198fe-2c23-4441-bbf4-e694c96e255c", - "uid": 10 - }, - "uid": "10_RTYUIDSDFV" - }, - { - "currency": "INR", - "identifiers": { - "gtin_type": "sku_code", - "gtin_value": "RTYUIDSDFV", - "primary": true - }, - "inventory_updated_on": "2021-03-17T12:35:29.992000", - "item_id": 7500651, - "order_committed_quantity": 0, - "price": 1234, - "price_effective": 1234, - "price_transfer": 0, - "quantity": 10000000, - "sellable_quantity": 10000000, - "seller_identifier": "RTYUIDSDFV", - "size": "AAX1 (1 PCS)", - "store": { - "_custom_json": {}, - "address": { - "address1": "14/1, VINOBHA BHAVE NAGAR", - "address2": "VINOBHA BHAVE NAGAR, KURLA WEST, KURLA, ", - "city": "MUMBAI", - "country": "INDIA", - "lat_long": { - "coordinates": [ - 1, - 1 - ], - "type": "Point" - }, - "pincode": 400070, - "state": "MAHARASHTRA" - }, - "integration_type": { - "inventory": "browntape", - "order": "browntape" - }, - "manager": { - "email": "fahimsakri@gofynd.com", - "mobile_no": { - "country_code": 91, - "number": "9594495254" - }, - "name": "Fahim" - }, - "name": "ABC-1-17", - "store_code": "ABC-1-17", - "uid": 11061 - }, - "uid": "11061_RTYUIDSDFV" - }, - { - "currency": "INR", - "damaged_quantity": 0, - "identifiers": { - "gtin_type": "sku_code", - "gtin_value": "RTYUIDSDFV", - "primary": true - }, - "inventory_updated_on": "2021-03-31T19:00:10.943000", - "item_id": 7500651, - "not_available_quantity": 0, - "order_committed_quantity": 7, - "price": 1234, - "price_effective": 1234, - "price_transfer": 0, - "quantity": 39, - "sellable_quantity": 18, - "seller_identifier": "RTYUIDSDFV", - "size": "AAX1 (1 PCS)", - "store": { - "_custom_json": {}, - "address": { - "address1": "SHOPSENSE RETAIL TECHNOLOGIES PRIVATE LIMITED 1ST FLOOR WEWORK VIJAY DIAMOND, CROSS RD B, AJIT NAGAR,", - "address2": "KONDIVITA, ANDHERI EAST, MUMBAI, MAHARASHTRA 400069", - "city": "MUMBAI", - "country": "INDIA", - "lat_long": { - "coordinates": [ - 72.8691788, - 19.1174114 - ], - "type": "Point" - }, - "pincode": 400059, - "state": "MAHARASHTRA" - }, - "integration_type": { - "inventory": "browntape", - "order": "browntape" - }, - "manager": { - "email": "ASHISHCHANDORKAR@FYND.COM", - "mobile_no": { - "country_code": 91, - "number": "8369782851" - }, - "name": "ASHISH CHANDORKAR" - }, - "name": "RRL01", - "store_code": "WH_8513", - "uid": 1 - }, - "uid": "1_RTYUIDSDFV" - }, - { - "currency": "INR", - "identifiers": { - "gtin_type": "sku_code", - "gtin_value": "RTYUIDSDFV", - "primary": true - }, - "inventory_updated_on": "2020-07-07T10:37:06.146000", - "item_id": 7500651, - "order_committed_quantity": 39, - "price": 1234, - "price_effective": 1234, - "price_transfer": 0, - "quantity": 39, - "sellable_quantity": 0, - "seller_identifier": "RTYUIDSDFV", - "size": "AAX1 (1 PCS)", - "store": { - "_custom_json": {}, - "address": { - "address1": "SHOPSENSE RETAIL TECHNOLOGIES PRIVATE LIMITED 1ST FLOOR WEWORK VIJAY DIAMOND, CROSS RD B, AJIT NAGAR,", - "address2": "KONDIVITA, ANDHERI EAST, MUMBAI, MAHARASHTRA 400069", - "city": "MUMBAI", - "country": "INDIA", - "lat_long": { - "coordinates": [ - 72.8691788, - 19.1174114 - ], - "type": "Point" - }, - "pincode": 400059, - "state": "MAHARASHTRA" - }, - "integration_type": { - "inventory": "browntape", - "order": "browntape" - }, - "manager": { - "email": "ASHISHCHANDORKAR@FYND.COM", - "mobile_no": { - "country_code": 91, - "number": "8369782851" - }, - "name": "ASHISH CHANDORKAR" - }, - "name": "RRL01", - "store_code": "WH_8513", - "uid": 1 - }, - "uid": "1_rtyuidsdfv" - } - ], - "page": { - "current": 1, - "has_next": false, - "has_previous": false, - "item_total": 5, - "size": 1, - "type": "number" - } - } -} -``` -
- -
- - - - - - - - - ---- - - -### getInventoryBySizeIdentifier -Get Inventory for company - - - -```javascript -// Promise -const promise = platformClient.catalog.getInventoryBySizeIdentifier({ itemId : value, - sizeIdentifier : value, - pageNo : value, - pageSize : value, - q : value, - locationIds : value }); - -// Async/Await -const data = await platformClient.catalog.getInventoryBySizeIdentifier({ itemId : value, - sizeIdentifier : value, - pageNo : value, - pageSize : value, - q : value, - locationIds : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| itemId | number | yes | Item code of the product of which size is to be get. | -| sizeIdentifier | string | yes | Size Identifier (Seller Identifier or Primary Identifier) of which inventory is to get. | -| pageNo | number | no | The page number to navigate through the given set of results | -| pageSize | number | no | Number of items to retrieve in each page. Default is 12. | -| q | string | no | Search with help of store code. | -| locationIds | Array | no | Search by store ids. | - - - -This API allows get Inventory data for particular company grouped by size and store. - -*Returned Response:* - - - - -[InventorySellerIdentifierResponsePaginated](#InventorySellerIdentifierResponsePaginated) - -returns a list of all inventory grouped by size and store - - - - -
-  Examples: - - -
-  success - -```json -{ - "value": { - "items": [ - { - "brand": { - "id": 1, - "name": "ab" - }, - "company": { - "id": 1 - }, - "country_of_origin": "", - "currency": "INR", - "dimension": { - "height": 13.1, - "is_default": true, - "length": 1.3, - "unit": "cm", - "width": 23.4 - }, - "fragile": false, - "fynd_article_code": "", - "fynd_item_code": "", - "identifier": {}, - "identifiers": [ - { - "gtin_type": "sku_code", - "gtin_value": "RTYUIDSDFV", - "primary": true - } - ], - "inventory_updated_on": "2021-04-06T03:30:01.487000", - "item_id": 7500651, - "manufacturer": { - "address": "ab", - "is_default": true, - "name": "ab" - }, - "price": { - "currency": "USD", - "effective": 79.99, - "marked": 99.99, - "transfer": 89.99 - }, - "price_effective": 1234, - "price_transfer": 0, - "quantity": 10, - "sellable_quantity": 10, - "seller_identifier": "RTYUIDSDFV", - "size": "AAX1 (1 PCS)", - "store": { - "id": 1 - }, - "total_quantity": 1, - "uid": "59_RTYUIDSDFV", - "weight": { - "is_default": true, - "shipping": 1.5, - "unit": "kg" - } - }, - { - "brand": { - "id": 1, - "name": "ab" - }, - "company": { - "id": 1 - }, - "country_of_origin": "", - "currency": "INR", - "dimension": { - "height": 13.1, - "is_default": true, - "length": 1.3, - "unit": "cm", - "width": 23.4 - }, - "fragile": false, - "fynd_article_code": "", - "fynd_item_code": "", - "identifier": {}, - "identifiers": [ - { - "gtin_type": "sku_code", - "gtin_value": "RTYUIDSDFV", - "primary": true - } - ], - "inventory_updated_on": "2021-04-06T03:29:35.291000", - "item_id": 7500651, - "manufacturer": { - "address": "ab", - "is_default": true, - "name": "ab" - }, - "price": { - "currency": "USD", - "effective": 79.99, - "marked": 99.99, - "transfer": 89.99 - }, - "price_effective": 1234, - "price_transfer": 0, - "quantity": 10, - "sellable_quantity": 10, - "seller_identifier": "RTYUIDSDFV", - "size": "AAX1 (1 PCS)", - "store": { - "id": 1 - }, - "total_quantity": 1, - "uid": "10_RTYUIDSDFV", - "weight": { - "is_default": true, - "shipping": 1.5, - "unit": "kg" - } - }, - { - "brand": { - "id": 1, - "name": "ab" - }, - "company": { - "id": 1 - }, - "country_of_origin": "", - "currency": "INR", - "dimension": { - "height": 13.1, - "is_default": true, - "length": 1.3, - "unit": "cm", - "width": 23.4 - }, - "fragile": false, - "fynd_article_code": "", - "fynd_item_code": "", - "identifier": {}, - "identifiers": [ - { - "gtin_type": "sku_code", - "gtin_value": "RTYUIDSDFV", - "primary": true - } - ], - "inventory_updated_on": "2021-03-17T12:35:29.992000", - "item_id": 7500651, - "manufacturer": { - "address": "ab", - "is_default": true, - "name": "ab" - }, - "order_committed_quantity": 0, - "price": { - "currency": "USD", - "effective": 79.99, - "marked": 99.99, - "transfer": 89.99 - }, - "price_effective": 1234, - "price_transfer": 0, - "quantity": 10000000, - "sellable_quantity": 10000000, - "seller_identifier": "RTYUIDSDFV", - "size": "AAX1 (1 PCS)", - "store": { - "id": 1 - }, - "total_quantity": 1, - "uid": "11061_RTYUIDSDFV", - "weight": { - "is_default": true, - "shipping": 1.5, - "unit": "kg" - } - }, - { - "brand": { - "id": 1, - "name": "ab" - }, - "company": { - "id": 1 - }, - "country_of_origin": "", - "currency": "INR", - "damaged_quantity": 0, - "dimension": { - "height": 13.1, - "is_default": true, - "length": 1.3, - "unit": "cm", - "width": 23.4 - }, - "fragile": false, - "fynd_article_code": "", - "fynd_item_code": "", - "identifier": {}, - "identifiers": [ - { - "gtin_type": "sku_code", - "gtin_value": "RTYUIDSDFV", - "primary": true - } - ], - "inventory_updated_on": "2021-03-31T19:00:10.943000", - "item_id": 7500651, - "manufacturer": { - "address": "ab", - "is_default": true, - "name": "ab" - }, - "not_available_quantity": 0, - "order_committed_quantity": 7, - "price": { - "currency": "USD", - "effective": 79.99, - "marked": 99.99, - "transfer": 89.99 - }, - "price_effective": 1234, - "price_transfer": 0, - "quantity": 39, - "sellable_quantity": 18, - "seller_identifier": "RTYUIDSDFV", - "size": "AAX1 (1 PCS)", - "store": { - "id": 1 - }, - "total_quantity": 1, - "uid": "1_RTYUIDSDFV", - "weight": { - "is_default": true, - "shipping": 1.5, - "unit": "kg" - } - }, - { - "brand": { - "id": 1, - "name": "ab" - }, - "company": { - "id": 1 - }, - "country_of_origin": "", - "currency": "INR", - "dimension": { - "height": 13.1, - "is_default": true, - "length": 1.3, - "unit": "cm", - "width": 23.4 - }, - "fragile": false, - "fynd_article_code": "", - "fynd_item_code": "", - "identifier": {}, - "identifiers": [ - { - "gtin_type": "sku_code", - "gtin_value": "RTYUIDSDFV", - "primary": true - } - ], - "inventory_updated_on": "2020-07-07T10:37:06.146000", - "item_id": 7500651, - "manufacturer": { - "address": "ab", - "is_default": true, - "name": "ab" - }, - "order_committed_quantity": 39, - "price": { - "currency": "USD", - "effective": 79.99, - "marked": 99.99, - "transfer": 89.99 - }, - "price_effective": 1234, - "price_transfer": 0, - "quantity": 39, - "sellable_quantity": 0, - "seller_identifier": "RTYUIDSDFV", - "size": "AAX1 (1 PCS)", - "store": { - "id": 1 - }, - "total_quantity": 1, - "uid": "1_rtyuidsdfv", - "weight": { - "is_default": true, - "shipping": 1.5, - "unit": "kg" - } - } - ], - "page": { - "current": 1, - "has_next": false, - "has_previous": false, - "item_total": 5, - "size": 1, - "type": "number" - } - } -} -``` -
- -
- - - - - - - - - ---- - - -### getInventoryExport -Get Inventory export history. - - - -```javascript -// Promise -const promise = platformClient.catalog.getInventoryExport(); - -// Async/Await -const data = await platformClient.catalog.getInventoryExport(); -``` - - - - - - -This API helps to get Inventory export history. - -*Returned Response:* - - - - -[InventoryExportJobResponse](#InventoryExportJobResponse) - -Returns a list of inventory export jobs - - - - -
-  Examples: - - -
-  success - -```json -{ - "value": { - "items": [ - { - "_id": "657ed134c39a2476add14169", - "created_on": "2023-12-17T10:45:08.298000Z", - "status": "pending", - "modified_on": "2023-12-17T10:45:08.298000", - "created_by": { - "user_id": "5e199e6998cfe1776f1385dc", - "username": "rohanshah@fynd.com" - }, - "notification_emails": [], - "stats": {}, - "seller_id": 10, - "task_id": "588bd932-9cc9-11ee-8cc4-d6fb2161153f", - "type": "excel", - "trigger_on": "2023-12-17T10:45:08.298000Z", - "brand": [ - 19 - ], - "store": [ - 1 - ] - } - ] - } -} -``` -
- -
- - - - - - - - - ---- - - -### getInventoryExportDetail -Get Detail Product export detail. - - - -```javascript -// Promise -const promise = platformClient.catalog.getInventoryExportDetail({ jobId : value }); - -// Async/Await -const data = await platformClient.catalog.getInventoryExportDetail({ jobId : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| jobId | string | yes | Company Id in which assets to be uploaded. | - - - -This API helps to get detail of Product export. - -*Returned Response:* - - - - -[EditInventoryDownloadsResponse](#EditInventoryDownloadsResponse) - -Returns a detail of product export jobs - - - - -
-  Examples: - - -
-  success - -```json -{ - "value": { - "url": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/fyndnp/wrkr/x5/catalog/24/fffac430-829e-11ed-8ffa-f2f2a1c4d5d1/fffac430-829e-11ed-8ffa-f2f2a1c4d5d1.zip", - "completed_on": "2022-12-23T08:51:34.561000Z", - "seller_id": 24, - "task_id": "fffac430-829e-11ed-8ffa-f2f2a1c4d5d1", - "created_on": "2022-12-23T08:51:32.942000Z", - "modified_on": "2022-12-23T08:51:32.942000", - "_id": "63a56c14863953d1af0856a8", - "notification_emails": [ - "data@mail.com" - ], - "status": "success", - "id": "63a56c14863953d1af0856a8" - } -} -``` -
- -
- - - - - - - - - ---- - - -### getListingConfigurations -Get the details of the application configured configurations of listing config types. - - - -```javascript -// Promise -const promise = platformClient.application("").catalog.getListingConfigurations({ configType : value, - pageNo : value, - pageSize : value, - search : value, - uids : value }); - -// Async/Await -const data = await platformClient.application("").catalog.getListingConfigurations({ configType : value, - pageNo : value, - pageSize : value, - search : value, - uids : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| configType | string | yes | A `config_type` is an identifier that defines a specific type of configuration. | -| pageNo | number | no | The page number to navigate through the given set of results. | -| pageSize | number | no | Number of items to retrieve in each page. Default is 12. | -| search | string | no | Get configuration list filtered by `search` string. | -| uids | Array | no | Only for categories config type, Get configuration list filtered by `uids`. | - - - -Get the details of the application configured configurations of listing config types. - -*Returned Response:* - - - - -[GetListingConfigResponse](#GetListingConfigResponse) - -configuration details for catalog. See example below or refer `GetConfigResponseSchema` for details - - - - -
-  Examples: - - -
-  success - -```json -{ - "value": { - "data": [ - { - "app_id": "000000000000000000000001", - "allow_single": false, - "id": "656cc084eeedf45364ccb4fe", - "is_active": true, - "key": "cushion-colour", - "name": "Cushion Colour", - "is_default": false, - "priority": 27, - "logo": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/fyndnp/wrkr/addsale/misc/default-assets/original/popular.png", - "value_config": { - "sort": "count", - "bucket_points": [], - "map": {}, - "condition": "OR", - "value": "" - }, - "type": "multivalued" - } - ], - "page": { - "current": 1, - "next": 2, - "has_next": true, - "total_count": 1 - } - } -} -``` -
- -
- - - - - - - - - ---- - - -### getLivePreview -Get live preview of a Merchandising Rule - - - -```javascript -// Promise -const promise = platformClient.application("").catalog.getLivePreview({ merchandisingRuleId : value, - searchKeyword : value }); - -// Async/Await -const data = await platformClient.application("").catalog.getLivePreview({ merchandisingRuleId : value, - searchKeyword : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| merchandisingRuleId | string | yes | A `merchandising_rule_id` is a unique identifier for a particular merchandising rule. | -| searchKeyword | string | no | A sample query that can be used to get a live preview of the merchandising rule. | - - - -This allows you to get live preview of a merchandising rule. - -*Returned Response:* - - - - -[ProductListingResponse](#ProductListingResponse) - -Get live preview of a merchandise rule. See example below or refer `ProductListingResponse` for details - - - - -
-  Example: - -```json -{ - "items": [ - { - "type": "product", - "attributes": { - "primary_color_hex": null - }, - "categories": [ - { - "id": 9, - "uid": 9, - "name": "Krystel441740523020241757150", - "logo": { - "type": "image", - "url": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/sandbx/wrkr/media/banner_portrait/brand/original/540_ecba3a1af141467da8abc20500f983db.jpg" - }, - "action": "", - "_custom_json": {} - } - ], - "_custom_meta": [], - "sellable": true, - "name": "Cookie Box, Pack of 8", - "pinned": true, - "sizes": [ - "OS" - ], - "slug": "cookie-box-pack-of-8-7500520", - "tags": [], - "uid": 7500520, - "item_code": "COOKIES051", - "item_type": "standard", - "brand": { - "type": "brand", - "name": "Allen Solly", - "logo": { - "type": "image", - "url": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/sandbx/wrkr/rajatjain/brands/pictures/square-logo/original/qYk-zhgWQ-Logo.png" - }, - "action": { - "page": { - "type": "products", - "query": { - "brand": [ - "allen-solly" - ] - } - }, - "type": "page" - }, - "_custom_json": {} - }, - "action": { - "page": { - "type": "product", - "params": { - "slug": [ - "cookie-box-pack-of-8-7500520" - ] - } - }, - "type": "page" - }, - "medias": [ - { - "type": "image", - "url": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/sandbx/wrkr/rajatjain/products/pictures/item/free/original/allen-solly/COOKIES051/0/eMu_MHvv8f-81G00AyHv0L.jpg", - "alt": "Cookie Box, Pack of 8" - } - ], - "identifiers": [ - "COOKIES51", - "COOKIES051" - ], - "discount": "", - "price": { - "marked": { - "min": 116, - "max": 116, - "currency_code": "INR", - "currency_symbol": "₹" - }, - "effective": { - "min": 116, - "max": 116, - "currency_code": "INR", - "currency_symbol": "₹" - } - }, - "is_tryout": false, - "channel": "659b8f782d483329f0f3d201", - "_custom_json": {}, - "moq": { - "minimum": 1, - "increment_unit": 1 - }, - "net_quantity": { - "unit": "nos", - "value": 1 - }, - "seo": { - "title": "Cookie Box, Pack of 8", - "description": "" - }, - "short_description": "", - "country_of_origin": "India", - "variants": [] - }, - { - "type": "product", - "attributes": { - "primary_color_hex": null - }, - "categories": [ - { - "id": 9, - "uid": 9, - "name": "Krystel441740523020241757150", - "logo": { - "type": "image", - "url": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/sandbx/wrkr/media/banner_portrait/brand/original/540_ecba3a1af141467da8abc20500f983db.jpg" - }, - "action": "", - "_custom_json": {} - } - ], - "_custom_meta": [], - "sellable": true, - "name": "Chocobakes ChocoChip Cookies 167 g", - "sizes": [ - "OS" - ], - "slug": "chocobakes-chocochip-cookies-167-g-7500481", - "tags": [], - "uid": 7500481, - "item_code": "COOKIES015", - "item_type": "standard", - "brand": { - "type": "brand", - "name": "W for Woman", - "logo": { - "type": "image", - "url": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/sandbx/wrkr/addsale/brands/pictures/square-logo/original/QDbYsWm5D-Logo.webp" - }, - "action": { - "page": { - "type": "products", - "query": { - "brand": [ - "w-for-woman" - ] - } - }, - "type": "page" - }, - "_custom_json": {} - }, - "action": { - "page": { - "type": "product", - "params": { - "slug": [ - "chocobakes-chocochip-cookies-167-g-7500481" - ] - } - }, - "type": "page" - }, - "medias": [ - { - "type": "image", - "url": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/sandbx/wrkr/rajatjain/products/pictures/item/free/original/w-for-woman/COOKIES015/0/A2b4cNjnob-61LrAe-7JL.jpg", - "alt": "Chocobakes ChocoChip Cookies 167 g" - } - ], - "identifiers": [ - "COOKIES15", - "COOKIES015" - ], - "discount": "", - "price": { - "marked": { - "min": 66, - "max": 66, - "currency_code": "INR", - "currency_symbol": "₹" - }, - "effective": { - "min": 66, - "max": 66, - "currency_code": "INR", - "currency_symbol": "₹" - } - }, - "is_tryout": false, - "channel": "659b8f782d483329f0f3d201", - "_custom_json": {}, - "moq": { - "minimum": 1, - "increment_unit": 1 - }, - "net_quantity": { - "unit": "nos", - "value": 1 - }, - "seo": { - "title": "Chocobakes ChocoChip Cookies 167 g", - "description": "" - }, - "short_description": "", - "country_of_origin": "India", - "variants": [] - }, - { - "type": "product", - "attributes": { - "primary_color_hex": null - }, - "categories": [ - { - "id": 9, - "uid": 9, - "name": "Krystel441740523020241757150", - "logo": { - "type": "image", - "url": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/sandbx/wrkr/media/banner_portrait/brand/original/540_ecba3a1af141467da8abc20500f983db.jpg" - }, - "action": "", - "_custom_json": {} - } - ], - "_custom_meta": [], - "sellable": true, - "name": "Oats with Almonds cookies Biscuits, 150g", - "sizes": [ - "OS" - ], - "slug": "oats-with-almonds-cookies-biscuits-150g-7500517", - "tags": [], - "uid": 7500517, - "item_code": "COOKIES046", - "item_type": "standard", - "brand": { - "type": "brand", - "name": "Van Heusen", - "logo": { - "type": "image", - "url": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/sandbx/wrkr/addsale/brands/pictures/square-logo/original/QDbYsWm5D-Logo.webp" - }, - "action": { - "page": { - "type": "products", - "query": { - "brand": [ - "van-heusen" - ] - } - }, - "type": "page" - }, - "_custom_json": {} - }, - "action": { - "page": { - "type": "product", - "params": { - "slug": [ - "oats-with-almonds-cookies-biscuits-150g-7500517" - ] - } - }, - "type": "page" - }, - "medias": [ - { - "type": "image", - "url": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/sandbx/wrkr/rajatjain/products/pictures/item/free/original/van-heusen/COOKIES046/0/-aboJbiHYa-61ewIMzO6jL.jpg", - "alt": "Oats with Almonds cookies Biscuits, 150g" - } - ], - "identifiers": [ - "COOKIES46", - "COOKIES046" - ], - "discount": "", - "price": { - "marked": { - "min": 50, - "max": 50, - "currency_code": "INR", - "currency_symbol": "₹" - }, - "effective": { - "min": 50, - "max": 50, - "currency_code": "INR", - "currency_symbol": "₹" - } - }, - "is_tryout": false, - "channel": "659b8f782d483329f0f3d201", - "_custom_json": {}, - "moq": { - "minimum": 1, - "increment_unit": 1 - }, - "net_quantity": { - "unit": "nos", - "value": 1 - }, - "seo": { - "title": "Oats with Almonds cookies Biscuits, 150g", - "description": "" - }, - "short_description": "", - "country_of_origin": "India", - "variants": [] - }, - { - "type": "product", - "attributes": { - "primary_color_hex": null - }, - "categories": [ - { - "id": 9, - "uid": 9, - "name": "Krystel441740523020241757150", - "logo": { - "type": "image", - "url": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/sandbx/wrkr/media/banner_portrait/brand/original/540_ecba3a1af141467da8abc20500f983db.jpg" - }, - "action": "", - "_custom_json": {} - } - ], - "_custom_meta": [], - "sellable": true, - "name": "Oats Cranberry Cookies (Pack of 2 x 125g)", - "sizes": [ - "OS" - ], - "slug": "oats-cranberry-cookies-pack-of-2-x-125g-7500506", - "tags": [], - "uid": 7500506, - "item_code": "COOKIES059", - "item_type": "standard", - "brand": { - "type": "brand", - "name": "Biba", - "logo": { - "type": "image", - "url": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/sandbx/wrkr/addsale/brands/pictures/square-logo/original/QDbYsWm5D-Logo.webp" - }, - "action": { - "page": { - "type": "products", - "query": { - "brand": [ - "biba" - ] - } - }, - "type": "page" - }, - "_custom_json": {} - }, - "action": { - "page": { - "type": "product", - "params": { - "slug": [ - "oats-cranberry-cookies-pack-of-2-x-125g-7500506" - ] - } - }, - "type": "page" - }, - "medias": [ - { - "type": "image", - "url": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/sandbx/wrkr/rajatjain/products/pictures/item/free/original/biba/COOKIES059/0/V7R6AYjEyJ-811waMWHTzL.jpg", - "alt": "Oats Cranberry Cookies (Pack of 2 x 125g)" - } - ], - "identifiers": [ - "COOKIES059", - "COOKIES59" - ], - "discount": "", - "price": { - "marked": { - "min": 189, - "max": 189, - "currency_code": "INR", - "currency_symbol": "₹" - }, - "effective": { - "min": 189, - "max": 189, - "currency_code": "INR", - "currency_symbol": "₹" - } - }, - "is_tryout": false, - "channel": "659b8f782d483329f0f3d201", - "_custom_json": {}, - "moq": { - "minimum": 1, - "increment_unit": 1 - }, - "net_quantity": { - "unit": "nos", - "value": 1 - }, - "seo": { - "title": "Oats Cranberry Cookies (Pack of 2 x 125g)", - "description": "" - }, - "short_description": "", - "country_of_origin": "India", - "variants": [] - }, - { - "type": "product", - "attributes": { - "primary_color_hex": null - }, - "categories": [ - { - "id": 9, - "uid": 9, - "name": "Krystel441740523020241757150", - "logo": { - "type": "image", - "url": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/sandbx/wrkr/media/banner_portrait/brand/original/540_ecba3a1af141467da8abc20500f983db.jpg" - }, - "action": "", - "_custom_json": {} - } - ], - "_custom_meta": [], - "sellable": true, - "name": "7 Grain Breakfast Cookies|Assorted,Pack Of 6 (330G)", - "sizes": [ - "OS" - ], - "slug": "7-grain-breakfast-cookies-assorted-pack-of-6-330g-7500509", - "tags": [], - "uid": 7500509, - "item_code": "COOKIES026", - "item_type": "standard", - "brand": { - "type": "brand", - "name": "Van Heusen", - "logo": { - "type": "image", - "url": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/sandbx/wrkr/addsale/brands/pictures/square-logo/original/QDbYsWm5D-Logo.webp" - }, - "action": { - "page": { - "type": "products", - "query": { - "brand": [ - "van-heusen" - ] - } - }, - "type": "page" - }, - "_custom_json": {} - }, - "action": { - "page": { - "type": "product", - "params": { - "slug": [ - "7-grain-breakfast-cookies-assorted-pack-of-6-330g-7500509" - ] - } - }, - "type": "page" - }, - "medias": [ - { - "type": "image", - "url": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/sandbx/wrkr/rajatjain/products/pictures/item/free/original/van-heusen/COOKIES026/0/SqZsagaLAC-61ZolESmSZL.jpg", - "alt": "7 Grain Breakfast Cookies|Assorted,Pack Of 6 (330G)" - } - ], - "identifiers": [ - "COOKIES26", - "COOKIES026" - ], - "discount": "", - "price": { - "marked": { - "min": 291, - "max": 291, - "currency_code": "INR", - "currency_symbol": "₹" - }, - "effective": { - "min": 291, - "max": 291, - "currency_code": "INR", - "currency_symbol": "₹" - } - }, - "is_tryout": false, - "channel": "659b8f782d483329f0f3d201", - "_custom_json": {}, - "moq": { - "minimum": 1, - "increment_unit": 1 - }, - "net_quantity": { - "unit": "nos", - "value": 1 - }, - "seo": { - "title": "7 Grain Breakfast Cookies|Assorted,Pack Of 6 (330G)", - "description": "" - }, - "short_description": "", - "country_of_origin": "India", - "variants": [] - }, - { - "type": "product", - "attributes": { - "primary_color_hex": null - }, - "categories": [ - { - "id": 9, - "uid": 9, - "name": "Krystel441740523020241757150", - "logo": { - "type": "image", - "url": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/sandbx/wrkr/media/banner_portrait/brand/original/540_ecba3a1af141467da8abc20500f983db.jpg" - }, - "action": "", - "_custom_json": {} - } - ], - "_custom_meta": [], - "sellable": true, - "name": "Max Protein Cookies – Trail Mix [Pack of 12 ] 7 Grain Breakfast Cookie loaded with Protein, Fiber and calcium, NO MAIDA, GMO FREE, NO Preservatives", - "sizes": [ - "OS" - ], - "slug": "max-protein-cookies-trail-mix-pack-of-12-7-grain-breakfast-cookie-loaded-with-protein-fiber-and-calcium-no-maida-gmo-free-no-preservatives-7500501", - "tags": [], - "uid": 7500501, - "item_code": "COOKIES035", - "item_type": "standard", - "brand": { - "type": "brand", - "name": "W for Woman", - "logo": { - "type": "image", - "url": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/sandbx/wrkr/addsale/brands/pictures/square-logo/original/QDbYsWm5D-Logo.webp" - }, - "action": { - "page": { - "type": "products", - "query": { - "brand": [ - "w-for-woman" - ] - } - }, - "type": "page" - }, - "_custom_json": {} - }, - "action": { - "page": { - "type": "product", - "params": { - "slug": [ - "max-protein-cookies-trail-mix-pack-of-12-7-grain-breakfast-cookie-loaded-with-protein-fiber-and-calcium-no-maida-gmo-free-no-preservatives-7500501" - ] - } - }, - "type": "page" - }, - "medias": [ - { - "type": "image", - "url": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/sandbx/wrkr/rajatjain/products/pictures/item/free/original/w-for-woman/COOKIES035/0/QD-mtDSdjg-71kdPR6YUmL.jpg", - "alt": "Max Protein Cookies – Trail Mix [Pack of 12 ] 7 Grain Breakfast Cookie loaded with Protein, Fiber and calcium, NO MAIDA, GMO FREE, NO Preservatives" - } - ], - "identifiers": [ - "COOKIES035", - "COOKIES35" - ], - "discount": "", - "price": { - "marked": { - "min": 570, - "max": 570, - "currency_code": "INR", - "currency_symbol": "₹" - }, - "effective": { - "min": 570, - "max": 570, - "currency_code": "INR", - "currency_symbol": "₹" - } - }, - "is_tryout": false, - "channel": "659b8f782d483329f0f3d201", - "_custom_json": {}, - "moq": { - "minimum": 1, - "increment_unit": 1 - }, - "net_quantity": { - "unit": "nos", - "value": 1 - }, - "seo": { - "title": "Max Protein Cookies – Trail Mix [Pack of 12 ] 7 Grain Breakfast Cookie loaded with Protein, Fiber and calcium, NO MAIDA, GMO FREE, NO Preservatives", - "description": "" - }, - "short_description": "", - "country_of_origin": "India", - "variants": [] - }, - { - "type": "product", - "attributes": { - "primary_color_hex": null - }, - "categories": [ - { - "id": 9, - "uid": 9, - "name": "Krystel441740523020241757150", - "logo": { - "type": "image", - "url": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/sandbx/wrkr/media/banner_portrait/brand/original/540_ecba3a1af141467da8abc20500f983db.jpg" - }, - "action": "", - "_custom_json": {} - } - ], - "_custom_meta": [], - "sellable": true, - "name": "Choco Chip, Chocolate Cookies Loaded with Choco Chips, 357.5g", - "sizes": [ - "OS" - ], - "slug": "choco-chip-chocolate-cookies-loaded-with-choco-chips-357-5g-7500529", - "tags": [], - "uid": 7500529, - "item_code": "COOKIES043", - "item_type": "standard", - "brand": { - "type": "brand", - "name": "Levi's", - "logo": { - "type": "image", - "url": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/sandbx/wrkr/addsale/brands/pictures/square-logo/original/QDbYsWm5D-Logo.webp" - }, - "action": { - "page": { - "type": "products", - "query": { - "brand": [ - "levi-s" - ] - } - }, - "type": "page" - }, - "_custom_json": {} - }, - "action": { - "page": { - "type": "product", - "params": { - "slug": [ - "choco-chip-chocolate-cookies-loaded-with-choco-chips-357-5g-7500529" - ] - } - }, - "type": "page" - }, - "medias": [ - { - "type": "image", - "url": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/sandbx/wrkr/rajatjain/products/pictures/item/free/original/levi-s/COOKIES043/0/N4kgc6mxMa-71BoLifelZL.jpg", - "alt": "Choco Chip, Chocolate Cookies Loaded with Choco Chips, 357.5g" - } - ], - "identifiers": [ - "COOKIES043", - "COOKIES43" - ], - "discount": "", - "price": { - "marked": { - "min": 70, - "max": 70, - "currency_code": "INR", - "currency_symbol": "₹" - }, - "effective": { - "min": 70, - "max": 70, - "currency_code": "INR", - "currency_symbol": "₹" - } - }, - "is_tryout": false, - "channel": "659b8f782d483329f0f3d201", - "_custom_json": {}, - "moq": { - "minimum": 1, - "increment_unit": 1 - }, - "net_quantity": { - "unit": "nos", - "value": 1 - }, - "seo": { - "title": "Choco Chip, Chocolate Cookies Loaded with Choco Chips, 357.5g", - "description": "" - }, - "short_description": "", - "country_of_origin": "India", - "variants": [] - }, - { - "type": "product", - "attributes": { - "primary_color_hex": null - }, - "categories": [ - { - "id": 9, - "uid": 9, - "name": "Krystel441740523020241757150", - "logo": { - "type": "image", - "url": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/sandbx/wrkr/media/banner_portrait/brand/original/540_ecba3a1af141467da8abc20500f983db.jpg" - }, - "action": "", - "_custom_json": {} - } - ], - "_custom_meta": [], - "sellable": true, - "name": "Choco Fills, 300g, Original Filled Cookies with Choco Crème", - "sizes": [ - "OS" - ], - "slug": "choco-fills-300g-original-filled-cookies-with-choco-cr-me-7500480", - "tags": [], - "uid": 7500480, - "item_code": "COOKIES013", - "item_type": "standard", - "brand": { - "type": "brand", - "name": "Levi's", - "logo": { - "type": "image", - "url": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/sandbx/wrkr/addsale/brands/pictures/square-logo/original/QDbYsWm5D-Logo.webp" - }, - "action": { - "page": { - "type": "products", - "query": { - "brand": [ - "levi-s" - ] - } - }, - "type": "page" - }, - "_custom_json": {} - }, - "action": { - "page": { - "type": "product", - "params": { - "slug": [ - "choco-fills-300g-original-filled-cookies-with-choco-cr-me-7500480" - ] - } - }, - "type": "page" - }, - "medias": [ - { - "type": "image", - "url": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/sandbx/wrkr/rajatjain/products/pictures/item/free/original/levi-s/COOKIES013/0/nDD3hau8cJ-81egmZT3u-L.jpg", - "alt": "Choco Fills, 300g, Original Filled Cookies with Choco Crème" - } - ], - "identifiers": [ - "COOKIES13", - "COOKIES013" - ], - "discount": "", - "price": { - "marked": { - "min": 144, - "max": 144, - "currency_code": "INR", - "currency_symbol": "₹" - }, - "effective": { - "min": 144, - "max": 144, - "currency_code": "INR", - "currency_symbol": "₹" - } - }, - "is_tryout": false, - "channel": "659b8f782d483329f0f3d201", - "_custom_json": {}, - "moq": { - "minimum": 1, - "increment_unit": 1 - }, - "net_quantity": { - "unit": "nos", - "value": 1 - }, - "seo": { - "title": "Choco Fills, 300g, Original Filled Cookies with Choco Crème", - "description": "" - }, - "short_description": "", - "country_of_origin": "India", - "variants": [] - }, - { - "type": "product", - "attributes": { - "primary_color_hex": null - }, - "categories": [ - { - "id": 9, - "uid": 9, - "name": "Krystel441740523020241757150", - "logo": { - "type": "image", - "url": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/sandbx/wrkr/media/banner_portrait/brand/original/540_ecba3a1af141467da8abc20500f983db.jpg" - }, - "action": "", - "_custom_json": {} - } - ], - "_custom_meta": [], - "sellable": true, - "name": "Choco Almond Story Box | 1 Healthy Choco Almond Cookies Story Box|Nutty & Chocolatey | Family Snacks Biscuit | No Added Maida | 6 Cookies Per Box, 75 gm", - "sizes": [ - "OS" - ], - "slug": "choco-almond-story-box-1-healthy-choco-almond-cookies-story-box-nutty-chocolatey-family-snacks-biscuit-no-added-maida-6-cookies-per-box-75-gm-7500516", - "tags": [], - "uid": 7500516, - "item_code": "COOKIES044", - "item_type": "standard", - "brand": { - "type": "brand", - "name": "Pantaloons", - "logo": { - "type": "image", - "url": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/sandbx/wrkr/addsale/brands/pictures/square-logo/original/QDbYsWm5D-Logo.webp" - }, - "action": { - "page": { - "type": "products", - "query": { - "brand": [ - "pantaloons" - ] - } - }, - "type": "page" - }, - "_custom_json": {} - }, - "action": { - "page": { - "type": "product", - "params": { - "slug": [ - "choco-almond-story-box-1-healthy-choco-almond-cookies-story-box-nutty-chocolatey-family-snacks-biscuit-no-added-maida-6-cookies-per-box-75-gm-7500516" - ] - } - }, - "type": "page" - }, - "medias": [ - { - "type": "image", - "url": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/sandbx/wrkr/rajatjain/products/pictures/item/free/original/pantaloons/COOKIES044/0/Q8RrtzO3dw-61LB-ljQL.jpg", - "alt": "Choco Almond Story Box | 1 Healthy Choco Almond Cookies Story Box|Nutty & Chocolatey | Family Snacks Biscuit | No Added Maida | 6 Cookies Per Box, 75 gm" - } - ], - "identifiers": [ - "COOKIES044", - "COOKIES44" - ], - "discount": "", - "price": { - "marked": { - "min": 94, - "max": 94, - "currency_code": "INR", - "currency_symbol": "₹" - }, - "effective": { - "min": 94, - "max": 94, - "currency_code": "INR", - "currency_symbol": "₹" - } - }, - "is_tryout": false, - "channel": "659b8f782d483329f0f3d201", - "_custom_json": {}, - "moq": { - "minimum": 1, - "increment_unit": 1 - }, - "net_quantity": { - "unit": "nos", - "value": 1 - }, - "seo": { - "title": "Choco Almond Story Box | 1 Healthy Choco Almond Cookies Story Box|Nutty & Chocolatey | Family Snacks Biscuit | No Added Maida | 6 Cookies Per Box, 75 gm", - "description": "" - }, - "short_description": "", - "country_of_origin": "India", - "variants": [] - }, - { - "type": "product", - "attributes": { - "primary_color_hex": null - }, - "categories": [ - { - "id": 9, - "uid": 9, - "name": "Krystel441740523020241757150", - "logo": { - "type": "image", - "url": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/sandbx/wrkr/media/banner_portrait/brand/original/540_ecba3a1af141467da8abc20500f983db.jpg" - }, - "action": "", - "_custom_json": {} - } - ], - "_custom_meta": [], - "sellable": true, - "name": "Premium Dark Chocolate Cookies | Handcrafted with Butter and Rich Dark Chocolate Chunks | Eggless Cookies | Perfect Snack for Mid- Meal Cravings | Pack of 1 | 200g", - "sizes": [ - "OS" - ], - "slug": "premium-dark-chocolate-cookies-handcrafted-with-butter-and-rich-dark-chocolate-chunks-eggless-cookies-perfect-snack-for-mid-meal-cravings-pack-of-1-200g-7500510", - "tags": [], - "uid": 7500510, - "item_code": "COOKIES027", - "item_type": "standard", - "brand": { - "type": "brand", - "name": "Zara", - "logo": { - "type": "image", - "url": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/sandbx/wrkr/addsale/brands/pictures/square-logo/original/QDbYsWm5D-Logo.webp" - }, - "action": { - "page": { - "type": "products", - "query": { - "brand": [ - "zara" - ] - } - }, - "type": "page" - }, - "_custom_json": {} - }, - "action": { - "page": { - "type": "product", - "params": { - "slug": [ - "premium-dark-chocolate-cookies-handcrafted-with-butter-and-rich-dark-chocolate-chunks-eggless-cookies-perfect-snack-for-mid-meal-cravings-pack-of-1-200g-7500510" - ] - } - }, - "type": "page" - }, - "medias": [ - { - "type": "image", - "url": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/sandbx/wrkr/rajatjain/products/pictures/item/free/original/zara/COOKIES027/0/CRAXBOSA8S-618icP0ydgL.jpg", - "alt": "Premium Dark Chocolate Cookies | Handcrafted with Butter and Rich Dark Chocolate Chunks | Eggless Cookies | Perfect Snack for Mid- Meal Cravings | Pack of 1 | 200g" - } - ], - "identifiers": [ - "COOKIES027", - "COOKIES27" - ], - "discount": "", - "price": { - "marked": { - "min": 189, - "max": 189, - "currency_code": "INR", - "currency_symbol": "₹" - }, - "effective": { - "min": 189, - "max": 189, - "currency_code": "INR", - "currency_symbol": "₹" - } - }, - "is_tryout": false, - "channel": "659b8f782d483329f0f3d201", - "_custom_json": {}, - "moq": { - "minimum": 1, - "increment_unit": 1 - }, - "net_quantity": { - "unit": "nos", - "value": 1 - }, - "seo": { - "title": "Premium Dark Chocolate Cookies | Handcrafted with Butter and Rich Dark Chocolate Chunks | Eggless Cookies | Perfect Snack for Mid- Meal Cravings | Pack of 1 | 200g", - "description": "" - }, - "short_description": "", - "country_of_origin": "India", - "variants": [] - }, - { - "type": "product", - "attributes": { - "primary_color_hex": null - }, - "categories": [ - { - "id": 9, - "uid": 9, - "name": "Krystel441740523020241757150", - "logo": { - "type": "image", - "url": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/sandbx/wrkr/media/banner_portrait/brand/original/540_ecba3a1af141467da8abc20500f983db.jpg" - }, - "action": "", - "_custom_json": {} - } - ], - "_custom_meta": [], - "sellable": true, - "name": "Quadratini Chocolate Bite Size Wafer Cookies,125 GMS", - "sizes": [ - "OS" - ], - "slug": "quadratini-chocolate-bite-size-wafer-cookies-125-gms-7500518", - "tags": [], - "uid": 7500518, - "item_code": "COOKIES048", - "item_type": "standard", - "brand": { - "type": "brand", - "name": "H&M (Hennes & Mauritz)", - "logo": { - "type": "image", - "url": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/sandbx/wrkr/addsale/brands/pictures/square-logo/original/QDbYsWm5D-Logo.webp" - }, - "action": { - "page": { - "type": "products", - "query": { - "brand": [ - "h-m-hennes-mauritz" - ] - } - }, - "type": "page" - }, - "_custom_json": {} - }, - "action": { - "page": { - "type": "product", - "params": { - "slug": [ - "quadratini-chocolate-bite-size-wafer-cookies-125-gms-7500518" - ] - } - }, - "type": "page" - }, - "medias": [ - { - "type": "image", - "url": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/sandbx/wrkr/rajatjain/products/pictures/item/free/original/h-m-hennes-mauritz/COOKIES048/0/tvMT-gW7Ny-61834q2fz2L.jpg", - "alt": "Quadratini Chocolate Bite Size Wafer Cookies,125 GMS" - } - ], - "identifiers": [ - "COOKIES48", - "COOKIES048" - ], - "discount": "", - "price": { - "marked": { - "min": 199, - "max": 199, - "currency_code": "INR", - "currency_symbol": "₹" - }, - "effective": { - "min": 199, - "max": 199, - "currency_code": "INR", - "currency_symbol": "₹" - } - }, - "is_tryout": false, - "channel": "659b8f782d483329f0f3d201", - "_custom_json": {}, - "moq": { - "minimum": 1, - "increment_unit": 1 - }, - "net_quantity": { - "unit": "nos", - "value": 1 - }, - "seo": { - "title": "Quadratini Chocolate Bite Size Wafer Cookies,125 GMS", - "description": "" - }, - "short_description": "", - "country_of_origin": "India", - "variants": [] - }, - { - "type": "product", - "attributes": { - "primary_color_hex": null - }, - "categories": [ - { - "id": 9, - "uid": 9, - "name": "Krystel441740523020241757150", - "logo": { - "type": "image", - "url": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/sandbx/wrkr/media/banner_portrait/brand/original/540_ecba3a1af141467da8abc20500f983db.jpg" - }, - "action": "", - "_custom_json": {} - } - ], - "_custom_meta": [], - "sellable": true, - "name": "Assorted Cookies, Brown Butter (Pack Of 10), 750 Gram", - "sizes": [ - "OS" - ], - "slug": "assorted-cookies-brown-butter-pack-of-10-750-gram-7500476", - "tags": [], - "uid": 7500476, - "item_code": "COOKIES001", - "item_type": "standard", - "brand": { - "type": "brand", - "name": "Allen Solly", - "logo": { - "type": "image", - "url": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/sandbx/wrkr/rajatjain/brands/pictures/square-logo/original/qYk-zhgWQ-Logo.png" - }, - "action": { - "page": { - "type": "products", - "query": { - "brand": [ - "allen-solly" - ] - } - }, - "type": "page" - }, - "_custom_json": {} - }, - "action": { - "page": { - "type": "product", - "params": { - "slug": [ - "assorted-cookies-brown-butter-pack-of-10-750-gram-7500476" - ] - } - }, - "type": "page" - }, - "medias": [ - { - "type": "image", - "url": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/sandbx/wrkr/rajatjain/products/pictures/item/free/original/allen-solly/COOKIES001/0/K7rLeuNZjn-81EgwRfgLiL.jpg", - "alt": "Assorted Cookies, Brown Butter (Pack Of 10), 750 Gram" - } - ], - "identifiers": [ - "COOKIES01", - "COOKIES001" - ], - "discount": "", - "price": { - "marked": { - "min": 255, - "max": 255, - "currency_code": "INR", - "currency_symbol": "₹" - }, - "effective": { - "min": 255, - "max": 255, - "currency_code": "INR", - "currency_symbol": "₹" - } - }, - "is_tryout": false, - "channel": "659b8f782d483329f0f3d201", - "_custom_json": {}, - "moq": { - "minimum": 1, - "increment_unit": 1 - }, - "net_quantity": { - "unit": "nos", - "value": 1 - }, - "seo": { - "title": "Assorted Cookies, Brown Butter (Pack Of 10), 750 Gram", - "description": "" - }, - "short_description": "", - "country_of_origin": "India", - "variants": [] - } - ], - "sort_on": [ - { - "display": "Relevance", - "name": "Relevance", - "logo": "https://hdn-1.fynd.com/global/menu-icons/Relevance.svg", - "value": "relevance", - "is_selected": true - }, - { - "display": "Latest Products", - "name": "Latest Products", - "logo": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/sandbx/wrkr/products/pictures/attribute/logo/original/QEvUfhsfyg-Latest-Products.png", - "value": "latest", - "is_selected": false - }, - { - "display": "Popularity", - "name": "Popularity", - "logo": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/sandbx/wrkr/products/pictures/attribute/logo/original/iG82Qjay9X-Popularity.png", - "value": "popular", - "is_selected": false - }, - { - "display": "Price Low to High", - "name": "Price Low to High", - "logo": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/sandbx/wrkr/products/pictures/attribute/logo/original/dLUtvNwoQt-Price-High-to-Low.png", - "value": "price_asc", - "is_selected": false - }, - { - "display": "Price High to Low", - "name": "Price High to Low", - "logo": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/sandbx/wrkr/products/pictures/attribute/logo/original/dLUtvNwoQt-Price-High-to-Low.png", - "value": "price_dsc", - "is_selected": false - }, - { - "display": "Discount Low to High", - "name": "Discount Low to High", - "logo": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/sandbx/wrkr/products/pictures/attribute/logo/original/9VdjDVc_aR-Discount-Low-to-High.png", - "value": "discount_asc", - "is_selected": false - }, - { - "display": "Discount High to Low", - "name": "Discount High to Low", - "logo": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/sandbx/wrkr/products/pictures/attribute/logo/original/9VdjDVc_aR-Discount-Low-to-High.png", - "value": "discount_dsc", - "is_selected": false - }, - { - "display": "Rating", - "name": "Rating", - "logo": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/sandbx/wrkr/products/pictures/attribute/logo/original/IyaIm4EZXI-Rating.png", - "value": "rating_dsc", - "is_selected": false - }, - { - "display": "Size Depth (High to Low)", - "name": "Size Depth (High to Low)", - "logo": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/sandbx/wrkr/products/pictures/attribute/logo/original/hyWWrNJ1A--Size-Depth.png", - "value": "depth_desc", - "is_selected": false + "data": [ + { + "department": "Cody-Doyle", + "items": [ + { + "_custom_json": {}, + "action": { + "query": { + "department": [ + "Jaime-Chambers" + ], + "l1_category": [ + "Janet-Parker" + ] + }, + "type": "category", + "url": "https://api.addsale.com/platform/content/v1/products/?l1_category=Janet-Parker&department=Jaime-Chambers" + }, + "childs": [ + { + "_custom_json": {}, + "action": { + "query": { + "department": [ + "Jaime-Chambers" + ], + "l2_category": [ + "Hannah-Lawson" + ] + }, + "type": "category", + "url": "https://api.addsale.com/platform/content/v1/products/?l2_category=Hannah-Lawson&department=Jaime-Chambers" + }, + "childs": [ + { + "_custom_json": {}, + "action": { + "query": { + "category": [ + "Logan-Black" + ], + "department": [ + "Jaime-Chambers" + ] + }, + "type": "category", + "url": "https://api.addsale.com/platform/content/v1/products/?category=Logan-Black&department=Jaime-Chambers" + }, + "childs": [], + "image": { + "aspect_ratio": "13:20", + "aspect_ratio_f": 0.65, + "url": "https://d2zv4gzhlr4ud6.cloudfront.net/media/banner_portrait/category/resize-w:130,h:200/12064_e69e1d8b5e934d3488f0dc8663d8a158.jpg" + }, + "name": "Logan Black", + "slug": "Logan-Black", + "uid": 3 + } + ], + "image": { + "aspect_ratio": "13:20", + "aspect_ratio_f": 0.65, + "url": "https://d2zv4gzhlr4ud6.cloudfront.net/media/banner_portrait/category/resize-w:130,h:200/12064_e69e1d8b5e934d3488f0dc8663d8a158.jpg" + }, + "name": "Hannah Lawson", + "slug": "Hannah-Lawson", + "uid": 2 + } + ], + "image": { + "aspect_ratio": "13:20", + "aspect_ratio_f": 0.65, + "url": "https://d2zv4gzhlr4ud6.cloudfront.net/media/banner_portrait/category/resize-w:130,h:200/12064_e69e1d8b5e934d3488f0dc8663d8a158.jpg" + }, + "name": "Janet Parker", + "slug": "Janet-Parker", + "uid": 1 + } + ] } ], - "page": { - "type": "cursor", - "next_id": "AoMIQCqRBQVAiVGGwAAAAD8HNzUwMDQ3NiE2NTliOGY3ODJkNDgzMzI5ZjBmM2QyMDEhX2FsbF8=", - "has_previous": true, - "has_next": true, - "item_total": 74 - } + "departments": [ + { + "slug": "Cody-Doyle", + "uid": 1 + } + ] } ```
@@ -14410,85 +6367,89 @@ Get live preview of a merchandise rule. See example below or refer `ProductListi --- -### getMarketplaces -List all marketplaces +### getCategoryData +Get product category by uid ```javascript // Promise -const promise = platformClient.catalog.getMarketplaces(); +const promise = platformClient.catalog.getCategoryData({ uid : value }); // Async/Await -const data = await platformClient.catalog.getMarketplaces(); +const data = await platformClient.catalog.getCategoryData({ uid : value }); ``` +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| uid | string | yes | Category unique id | -This API allows to get marketplace information. -*Returned Response:* +This API gets meta associated to product categories. +*Returned Response:* -[GetAllMarketplaces](#GetAllMarketplaces) -List all Marketplace details. +[SingleCategoryResponse](#SingleCategoryResponse) +Get Data for one category. See example below or refer `CategoryResponse` for details -
-  Examples:
-  success +  Example: ```json { - "value": { - "items": [ + "data": { + "created_by": { + "user_id": "5646", + "username": "917972410891_48194" + }, + "created_on": "2021-04-02T15:43:59.410000Z", + "departments": [ + 1 + ], + "hierarchy": [ { - "brand_ids": [], - "app_id": "000000000000000000000001", - "enabled": true, - "created_by": { - "username": "test@gofynd.com", - "user_id": "ef56cde2dc3227c44bcb73fd" - }, - "created_on": "2023-07-11T18:27:10.477000", - "opt_level": "company", - "company_id": 1, - "modified_by": { - "username": "test@gofynd.com", - "user_id": "ef56cde2dc3227c44bcb73fd" - }, - "store_ids": [], - "modified_on": "2023-07-11T18:27:10.477000", - "platform": "fynd", - "_id": "64ad9efe8069f0f413265003" + "department": 1, + "l1": 1, + "l2": 22329 } ], - "page": { - "current": 1, - "has_next": false, - "has_previous": false, - "item_total": 6, - "size": 1, - "type": "number" - } + "id": "60673bbf7896da00017885ad", + "is_active": true, + "level": 3, + "marketplaces": {}, + "media": { + "landscape": "https://hdn-1.addsale.com/x0/category/pictures/landscape-banner/original/nsi0nJ6gX-landscape.png", + "logo": "https://hdn-1.addsale.com/x0/category/pictures/square-logo/original/zTgh1zslj-.png", + "portrait": "https://hdn-1.addsale.com/x0/category/pictures/portrait-banner/original/_4p7Kz9Yp-banner.png" + }, + "modified_by": { + "user_id": "16", + "username": "nikhilmhatre_gofynd_com_97636" + }, + "modified_on": "2021-04-13T13:57:56.443000Z", + "name": "Air Conditioners", + "priority": 1, + "slug": "air-conditioners", + "synonyms": [], + "tryouts": [], + "uid": 22330 } } ```
-
- @@ -14500,17 +6461,17 @@ List all Marketplace details. --- -### getMerchandisingQuery -Get Merchandising Rule's query details +### getCollectionDetail +Get a particular collection ```javascript // Promise -const promise = platformClient.application("").catalog.getMerchandisingQuery({ merchandisingRuleId : value }); +const promise = platformClient.application("").catalog.getCollectionDetail({ slug : value }); // Async/Await -const data = await platformClient.application("").catalog.getMerchandisingQuery({ merchandisingRuleId : value }); +const data = await platformClient.application("").catalog.getCollectionDetail({ slug : value }); ``` @@ -14519,20 +6480,20 @@ const data = await platformClient.application("").catalog.getMer | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| merchandisingRuleId | string | yes | A `merchandising_rule_id` is a unique identifier for a particular merchandising rule. | +| slug | string | yes | A `slug` is a human readable, URL friendly unique identifier of an object. Pass the `slug` of the collection which you want to retrieve. | -This allows you to get details of a merchandising rule's query. +Get the details of a collection by its `slug`. If successful, returns a Collection resource in the response body specified in `CollectionDetailResponse` *Returned Response:* -[SearchRequest](#SearchRequest) +[GetCollectionDetailResponse](#GetCollectionDetailResponse) -Details of merchandise query. See example below or refer `SearchRequest` for details +The Collection object. See example below or refer `GetCollectionDetailResponse` for details @@ -14542,30 +6503,66 @@ Details of merchandise query. See example below or refer `SearchRequest` for det ```json { - "_id": "65b36fefe0b368503c28774b", - "zone_ids": [ - 1, - 2, - 3 - ], - "query": { - "filter": [ - { - "attribute": "is_set", - "value": "No" - }, + "_custom_json": {}, + "_locale_language": {}, + "_schedule": { + "end": null, + "next_schedule": [ { - "attribute": "image_nature", - "value": "Good Quality" + "end": null, + "start": "2020-05-21T03:58:41.237000Z" } ], - "query_condition": "search_query" + "start": "2020-05-21T03:58:41.237000Z" + }, + "action": { + "page": { + "query": { + "collection": [ + "new" + ] + }, + "type": "collection" + }, + "type": "page" + }, + "allow_facets": true, + "allow_sort": true, + "badge": { + "color": "#ffffff", + "text": "" + }, + "banners": { + "landscape": { + "type": "image", + "url": "https://res.cloudinary.com/dwzm9bysq/image/upload/v1588857999/production/applications/app_000000000000000000000001/media/collection/landscape/avm7xibo2jgk8glc4bwl.png" + }, + "portrait": { + "type": "image", + "url": "https://res.cloudinary.com/dwzm9bysq/image/upload/v1588858137/production/applications/app_000000000000000000000001/media/collection/portrait/xzuftshmmw4yuwzb12pm.png" + } + }, + "description": "", + "is_active": true, + "logo": { + "type": "image", + "url": "https://res.cloudinary.com/dwzm9bysq/image/upload/v1588857854/production/applications/app_000000000000000000000001/media/collection/logo/w9ns7nfgv7fk45xqrpoh.png" + }, + "meta": {}, + "name": "new", + "published": true, + "query": { + "l3_categories": [ + "12" + ], + "sort_on": "discount_asc" }, - "application_id": "000000000000000000000001", - "merchandising_rule_id": "u5hp1f2uwi", - "status": "preview", - "created_on": "2024-01-26T08:39:53.220095", - "modified_on": "2024-01-26T08:39:53.220120" + "slug": "new", + "sort_on": "popular", + "tags": [], + "type": "query", + "uid": "5ec5fc757cb1e4740a17da23", + "visible_facets_keys": [] } ``` @@ -14581,17 +6578,23 @@ Details of merchandise query. See example below or refer `SearchRequest` for det --- -### getMerchandisingRuleBoostAction -Get Merchandising Rule's Boost action details +### getCollectionItems +Get the items for a collection ```javascript // Promise -const promise = platformClient.application("").catalog.getMerchandisingRuleBoostAction({ merchandisingRuleId : value }); +const promise = platformClient.application("").catalog.getCollectionItems({ id : value, + sortOn : value, + pageId : value, + pageSize : value }); // Async/Await -const data = await platformClient.application("").catalog.getMerchandisingRuleBoostAction({ merchandisingRuleId : value }); +const data = await platformClient.application("").catalog.getCollectionItems({ id : value, + sortOn : value, + pageId : value, + pageSize : value }); ``` @@ -14600,20 +6603,23 @@ const data = await platformClient.application("").catalog.getMer | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| merchandisingRuleId | string | yes | A `merchandising_rule_id` is a unique identifier for a particular merchandising rule. | +| id | string | yes | A `id` is a unique identifier of a collection. | +| sortOn | string | no | Each response will contain sort_on param, which should be sent back to make pagination work. | +| pageId | string | no | Each response will contain next_id param, which should be sent back to make pagination work. | +| pageSize | number | no | Number of items to retrieve in each page. Default is 12. | -This allows you to get details of Boost action of a merchandising rule. +Get items from a collection specified by its `id`. *Returned Response:* -[GetMerchandisingRuleBoostAction](#GetMerchandisingRuleBoostAction) +[GetCollectionItemsResponse](#GetCollectionItemsResponse) -List of Boost conditions. See example below or refer `GetMerchandisingRuleBoostAction` for details +The attached items of an collection. See example below or refer `GetCollectionItemsResponseSchema` for details @@ -14622,20 +6628,7 @@ List of Boost conditions. See example below or refer `GetMerchandisingRuleBoostA   Example: ```json -{ - "data": [ - { - "attribute": "brand", - "value": "MAC", - "strength": 80 - }, - { - "attribute": "name", - "value": "Intel", - "strength": 20 - } - ] -} + ``` @@ -14650,17 +6643,25 @@ List of Boost conditions. See example below or refer `GetMerchandisingRuleBoostA --- -### getMerchandisingRuleBuryAction -Get Merchandising Rule's Bury action details +### getCompanyBrandDetail +Get the Company Brand details of Optin. ```javascript // Promise -const promise = platformClient.application("").catalog.getMerchandisingRuleBuryAction({ merchandisingRuleId : value }); +const promise = platformClient.catalog.getCompanyBrandDetail({ isActive : value, + q : value, + pageNo : value, + pageSize : value, + marketplace : value }); // Async/Await -const data = await platformClient.application("").catalog.getMerchandisingRuleBuryAction({ merchandisingRuleId : value }); +const data = await platformClient.catalog.getCompanyBrandDetail({ isActive : value, + q : value, + pageNo : value, + pageSize : value, + marketplace : value }); ``` @@ -14668,21 +6669,25 @@ const data = await platformClient.application("").catalog.getMer | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| merchandisingRuleId | string | yes | A `merchandising_rule_id` is a unique identifier for a particular merchandising rule. | +| --------- | ----- | -------- | ----------- | +| isActive | boolean | no | The is_active status for the optin id. | +| q | string | no | The search value to filter the list. | +| pageNo | number | no | The number of page for the company id. | +| pageSize | number | no | Number of records that can be seen on the page for the company id. | +| marketplace | string | no | The marketplace platform associated with the company id. | -This allows you to get details of Bury action of a merchandising rule. +Get the details of the Brands associated with the given company_id passed. *Returned Response:* -[GetMerchandisingRuleBuryAction](#GetMerchandisingRuleBuryAction) +[OptinCompanyBrandDetailsView](#OptinCompanyBrandDetailsView) -List of Bury conditions. See example below or refer `GetMerchandisingRuleBuryAction` for details +See example below or refer `OptinCompanyBrandDetailsView` for details @@ -14691,20 +6696,7 @@ List of Bury conditions. See example below or refer `GetMerchandisingRuleBuryAct   Example: ```json -{ - "data": [ - { - "attribute": "brand", - "value": "MAC", - "strength": 80 - }, - { - "attribute": "name", - "value": "Intel", - "strength": 20 - } - ] -} + ``` @@ -14719,39 +6711,34 @@ List of Bury conditions. See example below or refer `GetMerchandisingRuleBuryAct --- -### getMerchandisingRuleHideAction -Get Merchandising Rule's Hide action details +### getCompanyDetail +Get the Company details. ```javascript // Promise -const promise = platformClient.application("").catalog.getMerchandisingRuleHideAction({ merchandisingRuleId : value }); +const promise = platformClient.catalog.getCompanyDetail(); // Async/Await -const data = await platformClient.application("").catalog.getMerchandisingRuleHideAction({ merchandisingRuleId : value }); +const data = await platformClient.catalog.getCompanyDetail(); ``` -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| merchandisingRuleId | string | yes | A `merchandising_rule_id` is a unique identifier for a particular merchandising rule. | - - -This allows you to get details of hide action of a merchandising rule. +Get the details of the company associated with the given company_id passed. *Returned Response:* -[HideResponse](#HideResponse) +[OptinCompanyDetail](#OptinCompanyDetail) -List of hide items. See example below or refer `GetMerchandisingRuleHideAction` for details +See example below or refer `OptinCompanyDetailSchema` for details @@ -14760,22 +6747,7 @@ List of hide items. See example below or refer `GetMerchandisingRuleHideAction`   Example: ```json -{ - "data": [ - { - "uid": 1, - "name": "facilitate value-added infrastructures" - }, - { - "uid": 2, - "name": "extend back-end relationships" - }, - { - "uid": 3, - "name": "incentivize cross-media portals" - } - ] -} + ``` @@ -14790,39 +6762,34 @@ List of hide items. See example below or refer `GetMerchandisingRuleHideAction` --- -### getMerchandisingRulePinAction -Get Merchandising Rule's action details +### getCompanyMetrics +Get the Company metrics ```javascript // Promise -const promise = platformClient.application("").catalog.getMerchandisingRulePinAction({ merchandisingRuleId : value }); +const promise = platformClient.catalog.getCompanyMetrics(); // Async/Await -const data = await platformClient.application("").catalog.getMerchandisingRulePinAction({ merchandisingRuleId : value }); +const data = await platformClient.catalog.getCompanyMetrics(); ``` -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| merchandisingRuleId | string | yes | A `merchandising_rule_id` is a unique identifier for a particular merchandising rule. | - - -This allows you to get details of pin action of a merchandising rule. +Get the Company metrics associated with the company ID passed. *Returned Response:* -[PinResponse](#PinResponse) +[OptinCompanyMetrics](#OptinCompanyMetrics) -List of pinned items. See example below or refer `PinResponse` for details +See example below or refer `OptinCompanyMetrics` for details @@ -14831,15 +6798,7 @@ List of pinned items. See example below or refer `PinResponse` for details   Example: ```json -{ - "data": [ - { - "uid": 7500094, - "name": "Realme Techlife T100 TWS Earbuds with 28 Hours Playback, IPX5 Water Resistance, Al Noise Cancellation for", - "position": 0 - } - ] -} + ``` @@ -14854,19 +6813,17 @@ List of pinned items. See example below or refer `PinResponse` for details --- -### getMerchandisingRules -Get list of all Merchandising Rule's details +### getConfigurationByType +Get configured details for catalog ```javascript // Promise -const promise = platformClient.application("").catalog.getMerchandisingRules({ pageId : value, - pageSize : value }); +const promise = platformClient.application("").catalog.getConfigurationByType({ type : value }); // Async/Await -const data = await platformClient.application("").catalog.getMerchandisingRules({ pageId : value, - pageSize : value }); +const data = await platformClient.application("").catalog.getConfigurationByType({ type : value }); ``` @@ -14874,22 +6831,21 @@ const data = await platformClient.application("").catalog.getMer | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| pageId | string | no | Each response will contain next_id param, which should be sent back to make pagination work. | -| pageSize | number | no | Number of items to retrieve in each page. Default is 12. | +| --------- | ----- | -------- | ----------- | +| type | string | yes | type can be brands, categories etc. | -This allows you to get details of all merchandising rule's details. +configured details for catalog. *Returned Response:* -[MerchandisingRulesList](#MerchandisingRulesList) +[GetAppCatalogEntityConfiguration](#GetAppCatalogEntityConfiguration) -Details of all merchandise rule's details. See example below or refer `MerchandisingRulesList` for details +Get application level configured catalog details. See example below or refer `GetAppCatalogEntityConfigurationSchema` for details @@ -14898,55 +6854,7 @@ Details of all merchandise rule's details. See example below or refer `Merchandi   Example: ```json -{ - "data": [ - { - "query": { - "_id": "65a8f6f70c18ced33f6c434e", - "query": { - "query_condition": "search_query", - "query": { - "condition": "contains", - "search_query": "abcd", - "synonyms": "true" - }, - "filter": [ - { - "attribute": "Category", - "value": "selected" - }, - { - "attribute": "Department", - "value": "kids" - } - ] - }, - "is_active": true, - "merchandising_rule_id": "xsb1w2wjxb", - "rule_name": "Merchandising Rule Name 1", - "status": "live", - "zone_ids": [ - 1, - 2, - 3 - ], - "application_id": "000000000000000000000001" - }, - "action": [ - "bury", - "hide" - ] - } - ], - "page": { - "current": 1, - "type": "number", - "size": 1, - "has_previous": false, - "has_next": false, - "item_total": 1 - } -} + ``` @@ -14961,61 +6869,827 @@ Details of all merchandise rule's details. See example below or refer `Merchandi --- -### getOptimalLocations -Location Reassignment +### getConfigurationMetadata +Get configuration metadata details for catalog for admin panel ```javascript // Promise -const promise = platformClient.catalog.getOptimalLocations({ body : value }); +const promise = platformClient.application("").catalog.getConfigurationMetadata({ configType : value, + templateSlug : value, + pageNo : value, + pageSize : value, + q : value }); // Async/Await -const data = await platformClient.catalog.getOptimalLocations({ body : value }); +const data = await platformClient.application("").catalog.getConfigurationMetadata({ configType : value, + templateSlug : value, + pageNo : value, + pageSize : value, + q : value }); ``` -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| body | [AssignStore](#AssignStore) | yes | Request body | - - -Allows you to reassign locations +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| configType | string | yes | A `config_type` is an identifier that defines a specific type of configuration. | +| templateSlug | string | no | Get configuration list filtered by `template_slug` string. This is for the details and comparision groups. | +| pageNo | number | no | The page number to navigate through the given set of results. | +| pageSize | number | no | Number of items to retrieve in each page. | +| q | string | no | Get configuration list filtered by `q` string. | -*Returned Response:* +Get the configuraion metadata details for catalog. +*Returned Response:* -[StoreAssignResponse](#StoreAssignResponse) -Returns a success response +[GetConfigMetadataResponse](#GetConfigMetadataResponse) + +configuration details for catalog. See example below or refer `GetConfigMetadataResponseSchema` for details -
-  Examples:
-  success +  Example: ```json { - "value": { - "success": true, - "items": [] - } + "condition": [ + { + "display": "OR", + "key": "OR" + }, + { + "display": "AND", + "key": "AND" + } + ], + "data": [ + { + "compatible_units": [], + "display": "Screen Size", + "filter_types": [ + "multivalued" + ], + "key": "screen_size_filter" + }, + { + "compatible_units": [], + "display": "Primary Camera (duplicate)", + "filter_types": [ + "multivalued" + ], + "key": "primary_camera_filter" + }, + { + "compatible_units": [], + "display": "Selfie Camera (Duplicate)", + "filter_types": [ + "multivalued" + ], + "key": "selfie_camera_filter" + }, + { + "compatible_units": [], + "display": "Weight Group", + "filter_types": [ + "multivalued" + ], + "key": "weight_group" + }, + { + "compatible_units": [], + "display": "pallet", + "filter_types": [ + "multivalued" + ], + "key": "pallet" + }, + { + "compatible_units": [], + "display": "General Information", + "filter_types": [ + "multivalued" + ], + "key": "general_information" + }, + { + "compatible_units": [], + "display": "brand", + "filter_types": [ + "multivalued" + ], + "key": "brand_name" + }, + { + "compatible_units": [], + "display": "Gender", + "filter_types": [ + "multivalued" + ], + "key": "gender" + }, + { + "compatible_units": [], + "display": "Socks Length", + "filter_types": [ + "multivalued" + ], + "key": "socks_length" + }, + { + "compatible_units": [], + "display": "Sub-brand", + "filter_types": [ + "multivalued" + ], + "key": "sub_brand" + }, + { + "compatible_units": [], + "display": "Colour", + "filter_types": [ + "multivalued" + ], + "key": "color" + }, + { + "compatible_units": [], + "display": "Boot Length", + "filter_types": [ + "multivalued" + ], + "key": "boot_length" + }, + { + "compatible_units": [], + "display": "Bottomwear Length", + "filter_types": [ + "multivalued" + ], + "key": "bottomwear_length" + }, + { + "compatible_units": [], + "display": "Thread Count", + "filter_types": [ + "multivalued" + ], + "key": "thread_count" + }, + { + "compatible_units": [], + "display": "Sleeve Type", + "filter_types": [ + "multivalued" + ], + "key": "sleeve_type" + }, + { + "compatible_units": [], + "display": "Collar Type", + "filter_types": [ + "multivalued" + ], + "key": "collar_type" + }, + { + "compatible_units": [], + "display": "Food Preference", + "filter_types": [ + "multivalued" + ], + "key": "food-preference" + }, + { + "compatible_units": [], + "display": "Guitar Types", + "filter_types": [ + "multivalued" + ], + "key": "guitar-types" + }, + { + "compatible_units": [], + "display": "Storage", + "filter_types": [ + "multivalued" + ], + "key": "storage" + }, + { + "compatible_units": [], + "display": "Quality", + "filter_types": [ + "multivalued" + ], + "key": "quality" + }, + { + "compatible_units": [], + "display": "Material", + "filter_types": [ + "multivalued" + ], + "key": "material" + }, + { + "compatible_units": [], + "display": "Arch Type", + "filter_types": [ + "multivalued" + ], + "key": "arch_type" + }, + { + "compatible_units": [], + "display": "Like & Dislike", + "filter_types": [ + "multivalued" + ], + "key": "like-dislike" + }, + { + "compatible_units": [], + "display": "Dietary preference", + "filter_types": [ + "multivalued" + ], + "key": "dietary-preference" + }, + { + "compatible_units": [], + "display": "organic", + "filter_types": [ + "multivalued" + ], + "key": "organic" + }, + { + "compatible_units": [], + "display": "Utility", + "filter_types": [ + "multivalued" + ], + "key": "utility" + }, + { + "compatible_units": [], + "display": "Dial Shape", + "filter_types": [ + "multivalued" + ], + "key": "dial_shape" + }, + { + "compatible_units": [], + "display": "Sheet Size", + "filter_types": [ + "multivalued" + ], + "key": "sheet_size" + }, + { + "compatible_units": [], + "display": "Strap Type", + "filter_types": [ + "multivalued" + ], + "key": "strap_type" + }, + { + "compatible_units": [], + "display": "Movement Type", + "filter_types": [ + "multivalued" + ], + "key": "movement_type" + }, + { + "compatible_units": [], + "display": "Sleeve Length", + "filter_types": [ + "multivalued" + ], + "key": "sleeve_length" + }, + { + "compatible_units": [], + "display": "Neck Type", + "filter_types": [ + "multivalued" + ], + "key": "neck_type" + }, + { + "compatible_units": [], + "display": "Denim Type", + "filter_types": [ + "multivalued" + ], + "key": "denim_type" + }, + { + "compatible_units": [], + "display": "Bed Size", + "filter_types": [ + "multivalued" + ], + "key": "bed_size" + }, + { + "compatible_units": [], + "display": "Pattern", + "filter_types": [ + "multivalued" + ], + "key": "pattern" + }, + { + "compatible_units": [], + "display": "Topwear Length", + "filter_types": [ + "multivalued" + ], + "key": "topwear_length" + }, + { + "compatible_units": [], + "display": "Closure Type", + "filter_types": [ + "multivalued" + ], + "key": "closure_type" + }, + { + "compatible_units": [], + "display": "Product Fit", + "filter_types": [ + "multivalued" + ], + "key": "product_fit" + }, + { + "compatible_units": [], + "display": "Clasp Type", + "filter_types": [ + "multivalued" + ], + "key": "clasp_type" + }, + { + "compatible_units": [], + "display": "Toe Type", + "filter_types": [ + "multivalued" + ], + "key": "toe_type" + }, + { + "compatible_units": [], + "display": "Memory (RAM)", + "filter_types": [ + "multivalued" + ], + "key": "ram" + }, + { + "compatible_units": [], + "display": "Stone Type", + "filter_types": [ + "multivalued" + ], + "key": "stone_type" + }, + { + "compatible_units": [], + "display": "Hair Type", + "filter_types": [ + "multivalued" + ], + "key": "hair_type" + }, + { + "compatible_units": [], + "display": "Care Instructions", + "filter_types": [ + "multivalued" + ], + "key": "care_instructions" + }, + { + "compatible_units": [], + "display": "Warranty", + "filter_types": [ + "multivalued" + ], + "key": "warranty" + }, + { + "compatible_units": [], + "display": "Spf", + "filter_types": [ + "multivalued" + ], + "key": "spf" + }, + { + "compatible_units": [], + "display": "Fragrance Type", + "filter_types": [ + "multivalued" + ], + "key": "fragrance_type" + }, + { + "compatible_units": [], + "display": "Primary Colour", + "filter_types": [ + "multivalued" + ], + "key": "primary-colour" + }, + { + "compatible_units": [], + "display": "Fretboard Material", + "filter_types": [ + "multivalued" + ], + "key": "fretboard-material" + }, + { + "compatible_units": [], + "display": "Cleaning Type", + "filter_types": [ + "multivalued" + ], + "key": "cleaning-type" + }, + { + "compatible_units": [], + "display": "Lens Material", + "filter_types": [ + "multivalued" + ], + "key": "lens_material" + }, + { + "compatible_units": [], + "display": "Maximum Shelf Life", + "filter_types": [ + "multivalued" + ], + "key": "maximum-shelf-life" + }, + { + "compatible_units": [], + "display": "Base Flavour", + "filter_types": [ + "multivalued" + ], + "key": "base-flavour" + }, + { + "compatible_units": [], + "display": "Battery", + "filter_types": [ + "multivalued" + ], + "key": "battery" + }, + { + "compatible_units": [], + "display": "Net Quantity", + "filter_types": [ + "multivalued" + ], + "key": "net-quantity" + }, + { + "compatible_units": [], + "display": "Marketer Address", + "filter_types": [ + "multivalued" + ], + "key": "marketer-address" + }, + { + "compatible_units": [], + "display": "Marketer Name", + "filter_types": [ + "multivalued" + ], + "key": "marketer-name" + }, + { + "compatible_units": [], + "display": "Import Month & Year", + "filter_types": [ + "multivalued" + ], + "key": "import-month-and-year" + }, + { + "compatible_units": [], + "display": "Name of the commodity", + "filter_types": [ + "multivalued" + ], + "key": "name-of-the-commodity" + }, + { + "compatible_units": [], + "display": "Date first available", + "filter_types": [ + "multivalued" + ], + "key": "date-first-available" + }, + { + "compatible_units": [], + "display": "iron_attribute", + "filter_types": [ + "multivalued" + ], + "key": "iron" + }, + { + "compatible_units": [], + "display": "iron-template2", + "filter_types": [ + "multivalued" + ], + "key": "iron-template2" + }, + { + "compatible_units": [ + "mg", + "g", + "oz", + "kg", + "lb" + ], + "display": "Mg", + "filter_types": [ + "multivalued" + ], + "key": "mg" + }, + { + "compatible_units": [], + "display": "Name", + "filter_types": [ + "multivalued" + ], + "key": "name" + }, + { + "compatible_units": [ + "mm", + "cm", + "in", + "ft", + "m", + "km" + ], + "display": "Sassy Level", + "filter_types": [ + "multivalued" + ], + "key": "sassy-level" + }, + { + "compatible_units": [], + "display": "Test Attribute", + "filter_types": [ + "multivalued" + ], + "key": "test-attribute" + }, + { + "compatible_units": [], + "display": "Filter Type", + "filter_types": [ + "multivalued" + ], + "key": "filter-type" + }, + { + "compatible_units": [], + "display": "L3 Category", + "filter_types": [ + "multivalued" + ], + "key": "l3-category" + }, + { + "compatible_units": [], + "display": "Country of Origin", + "filter_types": [ + "multivalued" + ], + "key": "country_of_origin" + }, + { + "compatible_units": [], + "display": "Item Code", + "filter_types": [ + "multivalued" + ], + "key": "item_code" + }, + { + "display": "Item Code", + "filter_types": [ + "multivalued" + ], + "key": "item_code", + "units": [] + }, + { + "display": "Brand", + "filter_types": [ + "multivalued" + ], + "key": "brand", + "units": [] + }, + { + "display": "Country Of Origin", + "filter_types": [ + "multivalued" + ], + "key": "country_of_origin", + "units": [] + }, + { + "display": "Image Type", + "filter_types": [ + "multivalued" + ], + "key": "image_nature" + }, + { + "display": "Sizes", + "filter_types": [ + "multivalued" + ], + "key": "sizes" + }, + { + "display": "Discount", + "filter_types": [ + "range", + "intervals", + "multivalued" + ], + "key": "discount" + }, + { + "display": "Price", + "filter_types": [ + "range", + "intervals", + "multivalued" + ], + "key": "min_price_effective" + }, + { + "display": "Department", + "filter_types": [ + "multivalued" + ], + "key": "departments" + }, + { + "display": "Category", + "filter_types": [ + "multivalued" + ], + "key": "l3_category_slugs" + }, + { + "display": "Brand", + "filter_types": [ + "multivalued" + ], + "key": "brand_slug" + }, + { + "display": "Size Depth", + "filter_types": [ + "multivalued", + "range" + ], + "key": "size_depth" + }, + { + "display": "Set", + "filter_types": [ + "multivalued" + ], + "key": "is_set" + }, + { + "display": "Country of Origin", + "filter_types": [ + "multivalued" + ], + "key": "country_of_origin" + }, + { + "display": "Item Code", + "filter_types": [ + "multivalued" + ], + "key": "item_code" + }, + { + "display": "Available", + "filter_types": [ + "singlevalued" + ], + "key": "is_available" + }, + { + "display": "Rating", + "filter_types": [ + "range", + "intervals", + "multivalued" + ], + "key": "rating" + } + ], + "page": [ + { + "current": 1 + }, + { + "type": "number" + }, + { + "size": 1 + }, + { + "has_previous": false + }, + { + "has_next": false + }, + { + "item_total": 3 + } + ], + "values": [ + { + "sort": [ + { + "display": "Product Count", + "key": "count" + }, + { + "display": "Ascending", + "key": "ascending" + }, + { + "display": "Descending", + "key": "descending" + } + ], + "type": [ + { + "display": "Range Bar", + "key": "range" + }, + { + "display": "Bucket Values", + "key": "intervals" + }, + { + "display": "Single", + "key": "multivalued" + }, + { + "display": "Single", + "key": "singlevalued" + } + ] + } + ] } ```
-
- @@ -15027,328 +7701,358 @@ Returns a success response --- -### getProduct -Get a single product. +### getConfigurations +Get configured details for catalog ```javascript // Promise -const promise = platformClient.catalog.getProduct({ itemId : value, - brandUid : value, - itemCode : value }); +const promise = platformClient.application("").catalog.getConfigurations(); // Async/Await -const data = await platformClient.catalog.getProduct({ itemId : value, - brandUid : value, - itemCode : value }); +const data = await platformClient.application("").catalog.getConfigurations(); ``` -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| itemId | number | yes | Item Id of the product. | -| brandUid | number | no | Brand Id of the product. | -| itemCode | string | no | Item code of the product. | - - -This API helps to get data associated to a particular product. +configured details for catalog. *Returned Response:* -[SingleProductResponse](#SingleProductResponse) - -Product object. See example below or refer `product.utils.format_product_response` for details - +[GetAppCatalogConfiguration](#GetAppCatalogConfiguration) +Get application level configured catalog details. See example below or refer `GetAppCatalogConfigurationSchema` for details -
-  Examples:
-  success +  Example: ```json { - "value": { - "data": { - "_custom_json": {}, - "all_company_ids": [ - 835 - ], - "all_identifiers": [ - "TEST-015434" - ], - "attributes": { - "essential": "No", - "gender": [ - "Men" - ], - "marketer-address": "dfg", - "marketer-name": "gfdfd", - "pattern": "Printed", - "primary_color": "Black", - "primary_material": "Cotton Blend" - }, - "brand": { - "logo": { - "aspect_ratio": "1:1", - "aspect_ratio_f": 1, - "secure_url": "", - "url": "" - }, - "name": "product1", - "uid": 3272 - }, - "brand_uid": 3272, - "category": { - "l1": { - "name": "Ethnic Wear", - "slug": "ethnic-wear", - "uid": 443 - }, - "l2": { - "name": "Hijabs & Abayas", - "slug": "hijabs-abayas", - "uid": 414 - }, - "l3": { - "name": "Abayas", - "slug": "abayas", - "uid": 441 - } - }, - "category_slug": "abayas", - "category_uid": 441, - "country_of_origin": "India", - "created_by": { - "super_user": false, - "user_id": "757bf08ff5dd4ba95f8778cf", - "username": "mdnehalahmed_fynd_external_com_90136" - }, - "created_on": "2023-02-16T09:37:31.304000", - "currency": "INR", - "custom_order": { - "is_custom_order": false, - "manufacturing_time": 0, - "manufacturing_time_unit": "days" - }, - "departments": [ - 21 - ], - "description": "", - "highlights": [], - "id": "63edf95bf314486d44a6b361", - "is_active": true, - "is_dependent": false, - "is_expirable": false, - "is_image_less_product": false, - "is_set": false, - "item_code": "TEST-01", - "item_type": "standard", - "media": [ - { - "type": "image", - "url": "/x0/products/pictures/item/free/original/Hsw-U3Kut-Test-01.jpeg" - } - ], - "modified_by": { - "super_user": false, - "user_id": "757bf08ff5dd4ba95f8778cf", - "username": "mdnehalahmed_fynd_external_com_90136" - }, - "modified_on": "2023-02-16T09:37:31.304000", - "multi_size": false, - "name": "Test-01", - "net_quantity": {}, - "no_of_boxes": 1, - "product_group_tag": [], - "product_publish": { - "is_set": false, - "product_online_date": "2023-02-16T09:37:29.620000Z" - }, - "return_config": { - "returnable": false, - "time": 0, - "unit": "days" - }, - "short_description": "", - "size_guide": "", - "sizes": [ - { - "_custom_json": {}, - "brand_uid": 3272, - "company_id": 835, - "created_on": "2023-02-16T09:37:31.352000", - "currency": "INR", - "id": "63edf95bf314486d44a6b364", - "identifiers": [ - { - "gtin_type": "ean", - "gtin_value": "TEST-015434", - "primary": true + "data": { + "app_id": "000000000000000000000001", + "config_id": "000000000000000000000001", + "config_type": "app", + "listing": { + "filter": { + "allow_single": false, + "attribute_config": [ + { + "is_active": true, + "key": "gender", + "name": "Gender", + "priority": 1, + "type": "multivalued", + "value_config": { + "bucket_points": [], + "condition": "OR", + "map": {}, + "sort": "count", + "value": "" } - ], - "is_set": false, - "item_code": "TEST-01", - "item_dimensions_unit_of_measure": "cm", - "item_height": 10, - "item_length": 10, - "item_weight": 10, - "item_weight_unit_of_measure": "gram", - "item_width": 10, - "modified_on": "2023-02-16T09:37:31.352000", - "price": 10, - "price_effective": 10, - "price_transfer": 0, - "seller_identifier": "TEST-015434", - "size": "OS", - "track_inventory": true - } - ], - "slug": "test-01-7542894", - "stage": "pending", - "tags": [], - "tax_identifier": { - "hsn_code": "97211110", - "hsn_code_id": "63d78f483c1714abdd406766", - "reporting_hsn": "97211110H1" + }, + { + "is_active": true, + "key": "min_price_effective", + "name": "Price", + "priority": 2, + "type": "range", + "value_config": { + "bucket_points": [], + "condition": "OR", + "map": { + "< 500": "Below Rs. 500", + ">= 6000": "Above Rs. 6000" + }, + "sort": "count", + "value": "" + } + }, + { + "is_active": true, + "key": "departments", + "name": "Department", + "priority": 3, + "type": "multivalued", + "value_config": { + "bucket_points": [], + "condition": "OR", + "map": {}, + "sort": "count", + "value": "metadata" + } + }, + { + "is_active": true, + "key": "brand_id", + "name": "Brand", + "priority": 4, + "type": "multivalued", + "value_config": { + "bucket_points": [], + "condition": "OR", + "map": { + "5th Avenue": "A {{value}}" + }, + "sort": "ascending", + "value": "metadata" + } + }, + { + "is_active": false, + "key": "season", + "name": "Season", + "priority": 5, + "type": "multivalued", + "value_config": { + "bucket_points": [], + "condition": "OR", + "map": { + "": "" + }, + "sort": "count", + "value": "" + } + }, + { + "is_active": true, + "key": "is_set", + "name": "Set", + "priority": 6, + "type": "multivalued", + "value_config": { + "bucket_points": [], + "condition": "OR", + "map": { + "false": "No", + "true": "Yes" + }, + "sort": "descending", + "value": "" + } + }, + { + "is_active": true, + "key": "rating", + "name": "Rating", + "priority": 7, + "type": "multivalued", + "value_config": { + "bucket_points": [], + "condition": "OR", + "map": { + "": "" + }, + "sort": "count", + "value": "" + } + }, + { + "is_active": true, + "key": "size_depth", + "name": "Size Depth", + "priority": 8, + "type": "range", + "value_config": { + "bucket_points": [], + "condition": "OR", + "map": { + "{} - {}": "{} - {}" + }, + "sort": "count", + "value": "" + } + } + ] + }, + "sort": { + "config": [ + { + "is_active": false, + "key": "price_dsc", + "logo": "https://hdn-1.fynd.com/global/menu-icons/Price%20High%20to%20Low.png", + "name": "Price High to Low", + "priority": 1 + }, + { + "is_active": true, + "key": "rating_dsc", + "logo": "https://hdn-1.fynd.com/global/menu-icons/Rating.png", + "name": "Rating", + "priority": 2 + }, + { + "is_active": true, + "key": "depth_desc", + "name": "Size Depth (High to Low)", + "priority": 3 + }, + { + "is_active": true, + "key": "discount_dsc", + "logo": "https://hdn-1.fynd.com/global/menu-icons/Discount%20Low%20to%20High.png", + "name": "Discount High to Low", + "priority": 4 + }, + { + "is_active": true, + "key": "popular", + "logo": "https://hdn-1.fynd.com/global/menu-icons/Popularity.png", + "name": "Popularity", + "priority": 5 + }, + { + "is_active": true, + "key": "relevance", + "name": "Relevance", + "priority": 6 + }, + { + "is_active": true, + "key": "price_asc", + "logo": "https://hdn-1.fynd.com/global/menu-icons/Price%20Low%20to%20High.png", + "name": "Price Low to High", + "priority": 7 + } + ], + "default_key": "" + } + }, + "product": { + "similar": { + "config": [ + { + "is_active": true, + "key": "seller", + "priority": 1, + "size": { + "max": 10, + "min": 2 + }, + "subtitle": "", + "title": "Seller" + }, + { + "is_active": true, + "key": "visual", + "priority": 2, + "size": { + "max": 10, + "min": 2 + }, + "subtitle": "", + "title": "Visual" + }, + { + "is_active": true, + "key": "brand", + "priority": 3, + "size": { + "max": 10, + "min": 2 + }, + "subtitle": "", + "title": "Brand" + }, + { + "is_active": true, + "key": "specs", + "priority": 4, + "size": { + "max": 10, + "min": 2 + }, + "subtitle": "", + "title": "Specs" + } + ] }, - "teaser_tag": {}, - "template_tag": "ethnicwear", - "trader": [ - { - "address": [ - "fdgh" - ], - "name": "fgt", - "type": "Manufacturer" - } - ], - "uid": 7542894, - "variant_media": {}, - "variants": {} - } - } -} -``` -
- -
- - - - - - - - - ---- - - -### getProductAssetsInBulk -Get a list of all bulk asset jobs. - - - -```javascript -// Promise -const promise = platformClient.catalog.getProductAssetsInBulk({ pageNo : value, - pageSize : value }); - -// Async/Await -const data = await platformClient.catalog.getProductAssetsInBulk({ pageNo : value, - pageSize : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| pageNo | number | no | The page number to navigate through the given set of results | -| pageSize | number | no | Number of items to retrieve in each page. Default is 12. | - - - -This API helps to get bulk asset jobs data associated to a particular company. - -*Returned Response:* - - - - -[BulkAssetResponse](#BulkAssetResponse) - -List of bulk asset jobs List. See `BulkUtil.modify_batch_response` for details - - - - -
-  Examples: - - -
-  success - -```json -{ - "value": { - "items": [ - { - "cancelled": 0, - "cancelled_records": [], - "company_id": 61, - "created_by": { - "full_name": "nikhil mhatre", - "user_id": "23175373", - "username": "nikhilmhatre_gofynd_com_28085_23175373" - }, - "created_on": "2021-02-25T16:45:22.425000Z", - "failed": 0, - "failed_records": [], - "file_path": "https://hdn-1.fynd.com/company/61/self/documents/product-import/free/original/ZUSmmXHmZ-U8mTYx3KR-Nike-hoddie.zip", - "id": "6037d422aa879600015c6d1d", - "is_active": true, - "modified_by": { - "user_id": "23175373", - "username": "nikhilmhatre_gofynd_com_28085_23175373" - }, - "modified_on": "2021-02-25T16:47:24.551000Z", - "retry": 1, - "stage": "completed", - "succeed": 1, - "total": 1, - "tracking_url": "https://api.fynd.com/common/assets/v1/asset/status/extract-zips/3296" + "variant": { + "config": [ + { + "display_type": "image", + "is_active": true, + "key": "color", + "name": "Additional Colors12", + "priority": 1, + "size": { + "max": 10, + "min": 2 + } + }, + { + "display_type": "text", + "is_active": true, + "key": "storage", + "name": "Memory", + "priority": 2, + "size": { + "max": 10, + "min": 2 + } + }, + { + "display_type": "image", + "is_active": true, + "key": "visual", + "name": "Additional Colors", + "priority": 3, + "size": { + "max": 10, + "min": 2 + } + }, + { + "display_type": "text", + "is_active": true, + "key": "ram_storage", + "name": "Ram_Storage", + "priority": 4, + "size": { + "max": 10, + "min": 2 + } + }, + { + "display_type": "color", + "is_active": true, + "key": "shade", + "name": "Additional Shades", + "priority": 5, + "size": { + "max": 10, + "min": 2 + } + }, + { + "display_type": "text", + "is_active": true, + "key": "water_resistant", + "name": "Water_Resistant", + "priority": 6, + "size": { + "max": 10, + "min": 2 + } + } + ] } - ], - "page": { - "current": 1, - "has_next": false, - "has_previous": false, - "item_total": 1, - "size": 3, - "type": "number" } - } + }, + "is_default": false } ```
-
- @@ -15360,19 +8064,17 @@ List of bulk asset jobs List. See `BulkUtil.modify_batch_response` for details --- -### getProductAttributes -Get list of all the attributes by their l3_categories +### getDepartmentData +Get specific departments details by passing in unique id of the department. ```javascript // Promise -const promise = platformClient.catalog.getProductAttributes({ category : value, - filter : value }); +const promise = platformClient.catalog.getDepartmentData({ uid : value }); // Async/Await -const data = await platformClient.catalog.getProductAttributes({ category : value, - filter : value }); +const data = await platformClient.catalog.getDepartmentData({ uid : value }); ``` @@ -15381,82 +8083,346 @@ const data = await platformClient.catalog.getProductAttributes({ category : val | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| category | string | yes | It is the name of the l3 cateogry | -| filter | boolean | no | If true, returns filtered values, else returns all the attributes | +| uid | string | yes | A `uid` is a unique identifier of a department. | -This API allows to list all the attributes by their l3_categories. +Allows you to get department data, by uid. *Returned Response:* -[ProductAttributesResponse](#ProductAttributesResponse) - -Size guide object. See example below or refer `ProductAttributesResponseSchema` for details - +[DepartmentsResponse](#DepartmentsResponse) +Departments Data. See example below or refer `DepartmentsResponse` for details -
-  Examples:
-  success +  Example: ```json { - "value": { - "items": [ - { - "variant": false, - "schema": { - "allowed_values": [], - "type": "str", - "mandatory": false, - "multi": false, - "format": "", - "range": { - "min": 1 - } - }, - "details": { - "display_type": "text" - }, - "description": "Testing swatch attribute", - "created_on": "2022-10-07T06:42:08.286000Z", - "name": "test", - "modified_on": "2023-12-07T17:37:31.358000Z", - "departments": [ - "men", - "fashion" - ], - "modified_by": { - "username": "app@fynd.com", - "user_id": "000000000000000016841367" - }, - "created_by": { - "username": "mohammedansari_fynd_external_com_91689", - "user_id": "fffac759abfde839d8d2bc2d" - }, - "filters": { - "indexing": false - }, - "slug": "test", - "is_nested": true, - "id": "6571b582c1b29f5738dc994f" - } - ] + "items": [ + { + "_cls": "Department", + "_custom_json": {}, + "created_by": { + "user_id": "3", + "username": "918793638893_86554" + }, + "created_on": "2020-07-01T05:33:39.325000Z", + "id": "5efc2033623d390001782238", + "is_active": true, + "logo": "https://hdn-1.addsale.com/x0/seller/pictures/logo/original/BSQ9Gk_123522-best-starry-sky-wallpaper-1920x1200-ipad-pro.jpgc7d0c15c-c1ff-47eb-8423-6e2df51f2ddf/BSQ9Gk_123522-best-starry-sky-wallpaper-1920x1200-ipad-pro.jpg", + "modified_by": { + "user_id": "5677", + "username": "917753852478_51632" + }, + "modified_on": "2021-03-03T15:55:25.118000Z", + "name": "Sample Dept", + "platforms": {}, + "priority_order": 111, + "slug": "sample-dept", + "synonyms": [ + "test", + "sampe" + ], + "tags": [], + "uid": 5 + }, + { + "_cls": "Department", + "_custom_json": {}, + "created_by": { + "user_id": "0", + "username": "app@fynd.com" + }, + "created_on": "2020-05-19T06:53:37.629000Z", + "id": "5ec3827156a7200001c9aeea", + "is_active": true, + "logo": "https://hdn-1.addsale.com/addsale/media/logo/department/original/15974_381e2236c2a348cc851c29a5d05c66a9.png", + "modified_by": { + "user_id": "10", + "username": "fahimsakri_gofynd_com_44938" + }, + "modified_on": "2021-03-04T14:01:02.556000Z", + "name": "Men's Fashion", + "platforms": { + "fynd": true, + "fynd_store": true, + "marketplace": true, + "openapi": true, + "uniket_store": true, + "uniket_wholesale": true + }, + "priority_order": 111, + "slug": "men-s-fashion", + "synonyms": [], + "tags": [], + "uid": 2 + }, + { + "_cls": "Department", + "_custom_json": {}, + "created_by": { + "user_id": "10", + "username": "fahimsakri_gofynd_com_44938" + }, + "created_on": "2020-06-29T10:59:33.620000Z", + "id": "5ef9c9959b04f00001e40dba", + "is_active": true, + "logo": "https://hdn-1.addsale.com/x0/seller/pictures/logo/original/ywPVrU_preview_a637ca6e4da6e38f03eb0d650ac5d6ba.jpgc73cc22f-b5ee-4fd4-a585-8ada35762d68/ywPVrU_preview_a637ca6e4da6e38f03eb0d650ac5d6ba.jpg", + "modified_by": { + "user_id": "3", + "username": "918793638893_86554" + }, + "modified_on": "2020-08-06T18:08:02.675000Z", + "name": "Groceries", + "platforms": {}, + "priority_order": 10, + "slug": "groceries", + "synonyms": [], + "tags": [], + "uid": 4 + }, + { + "_cls": "Department", + "_custom_json": {}, + "created_by": { + "user_id": "0", + "username": "app@fynd.com" + }, + "created_on": "2020-05-18T16:14:41.689000Z", + "id": "5ec2b471661a4100019fca0d", + "is_active": true, + "logo": "https://hdn-1.addsale.com/x0/platform/pictures/free-logo/original/_G1Z2Fg1L-http:d3p8ifzkmzds37.cloudfront.netmedialogodepartmentoriginal15870_c287d3c2431a432bb0e49363ef6b82bc.png.png", + "modified_by": { + "user_id": "5677", + "username": "917753852478_51632" + }, + "modified_on": "2021-03-04T15:39:38.528000Z", + "name": "Electronics", + "platforms": { + "fynd": true, + "fynd_store": true, + "marketplace": true, + "openapi": true, + "uniket_store": true, + "uniket_wholesale": true + }, + "priority_order": 100, + "slug": "electronics", + "synonyms": [], + "tags": [], + "uid": 1 + }, + { + "_cls": "Department", + "_custom_json": {}, + "created_by": { + "user_id": "3", + "username": "918793638893_86554" + }, + "created_on": "2020-05-27T12:04:19.111000Z", + "id": "5ece5743cd1bae0001440427", + "is_active": true, + "logo": "https://hdn-1.addsale.com/x0/seller/pictures/landscape-banner/original/g2plam_logo_Jio.pngeeb392ca-3958-46a0-9f13-23c205b596f7/g2plam_logo_Jio.png", + "modified_by": { + "user_id": "3", + "username": "918793638893_86554" + }, + "modified_on": "2020-08-06T18:07:46.060000Z", + "name": "Industrial Supplies", + "platforms": {}, + "priority_order": 111, + "slug": "industrial-supplies", + "synonyms": [], + "tags": [], + "uid": 3 + }, + { + "_cls": "Department", + "_custom_json": {}, + "created_by": { + "user_id": "13", + "username": "abhinavsrivastava_gofynd_com_05674" + }, + "created_on": "2020-07-06T07:56:01.508000Z", + "id": "5f02d9116b0ae500018923dd", + "is_active": false, + "logo": "https://hdn-1.addsale.com/x0/seller/pictures/logo/original/wTcfEi_crysis_-_1.jpg14580947-a659-486d-b2d3-d2ca025b1cac/wTcfEi_crysis_-_1.jpg", + "modified_by": { + "user_id": "3", + "username": "918793638893_86554" + }, + "modified_on": "2020-08-06T18:08:12.576000Z", + "name": "Clothing", + "platforms": {}, + "priority_order": 1, + "slug": "clothing", + "synonyms": [], + "tags": [], + "uid": 6 + }, + { + "_cls": "Department", + "_custom_json": {}, + "created_by": { + "user_id": "5634", + "username": "asavarijadhav_gofynd_com_99880" + }, + "created_on": "2020-08-05T09:04:33.604000Z", + "id": "5f2a762131c66700018cdc47", + "is_active": true, + "logo": "https://hdn-1.addsale.com/x0/seller/pictures/logo/original/RxTsd8_0DEFAULT-LOGO.jpg000ccfc1-2f79-4426-9ac3-de2468c2fcb9/RxTsd8_0DEFAULT-LOGO.jpg", + "modified_by": { + "user_id": "5634", + "username": "asavarijadhav_gofynd_com_99880" + }, + "modified_on": "2020-08-05T09:44:01.234000Z", + "name": "Kids", + "platforms": {}, + "priority_order": 3, + "slug": "kids", + "synonyms": [], + "tags": [], + "uid": 8 + }, + { + "_cls": "Department", + "_custom_json": {}, + "created_by": { + "user_id": "5634", + "username": "asavarijadhav_gofynd_com_99880" + }, + "created_on": "2020-08-05T09:44:46.632000Z", + "id": "5f2a7f8e31c66700018cdc49", + "is_active": true, + "logo": "https://hdn-1.addsale.com/x0/seller/pictures/logo/original/tKkDB8_0DEFAULT-LOGO.jpg1c324d4d-f667-4af8-8d98-37205d34e3b5/tKkDB8_0DEFAULT-LOGO.jpg", + "modified_by": { + "user_id": "3", + "username": "918793638893_86554" + }, + "modified_on": "2020-08-06T18:07:35.231000Z", + "name": "Women's Fashion", + "platforms": {}, + "priority_order": 2, + "slug": "women-s-fashion", + "synonyms": [], + "tags": [], + "uid": 9 + }, + { + "_cls": "Department", + "_custom_json": {}, + "created_by": { + "user_id": "5634", + "username": "asavarijadhav_gofynd_com_99880" + }, + "created_on": "2020-08-05T09:45:12.075000Z", + "id": "5f2a7fa831c66700018cdc4a", + "is_active": true, + "logo": "https://hdn-1.addsale.com/x0/seller/pictures/logo/original/oLoxiL_0DEFAULT-LOGO.jpgbd050200-700a-4a3e-9da6-e6b78fbee943/oLoxiL_0DEFAULT-LOGO.jpg", + "modified_by": { + "user_id": "5634", + "username": "asavarijadhav_gofynd_com_99880" + }, + "modified_on": "2020-08-05T09:48:01.660000Z", + "name": "Beauty & Personal Care", + "platforms": {}, + "priority_order": 4, + "slug": "beauty-personal-care", + "synonyms": [], + "tags": [], + "uid": 10 + }, + { + "_cls": "Department", + "_custom_json": {}, + "created_by": { + "user_id": "5634", + "username": "asavarijadhav_gofynd_com_99880" + }, + "created_on": "2020-08-05T09:45:39.797000Z", + "id": "5f2a7fc331c66700018cdc4b", + "is_active": true, + "logo": "https://hdn-1.addsale.com/x0/seller/pictures/logo/original/vQv4ot_0DEFAULT-LOGO.jpg701cb5af-2024-4abf-ae5d-b68bc1a3cd43/vQv4ot_0DEFAULT-LOGO.jpg", + "modified_by": { + "user_id": "3", + "username": "918793638893_86554" + }, + "modified_on": "2020-08-06T11:38:57.599000Z", + "name": "Home & Living", + "platforms": {}, + "priority_order": 5, + "slug": "home-living", + "synonyms": [], + "tags": [], + "uid": 11 + }, + { + "_cls": "Department", + "_custom_json": {}, + "created_by": { + "user_id": "5634", + "username": "asavarijadhav_gofynd_com_99880" + }, + "created_on": "2020-08-05T09:48:42.347000Z", + "id": "5f2a807a31c66700018cdc4e", + "is_active": false, + "logo": "https://hdn-1.addsale.com/x0/seller/pictures/logo/original/hTobjV_0DEFAULT-LOGO.jpga020159c-7fe7-4c1c-a11a-4be61a60da9f/hTobjV_0DEFAULT-LOGO.jpg", + "modified_by": { + "user_id": "5634", + "username": "asavarijadhav_gofynd_com_99880" + }, + "modified_on": "2020-08-05T09:48:42.347000Z", + "name": "Baby Care & Kids Essentials", + "platforms": {}, + "priority_order": 7, + "slug": "baby-care-kids-essentials", + "synonyms": [], + "tags": [], + "uid": 14 + }, + { + "_cls": "Department", + "_custom_json": {}, + "created_by": { + "user_id": "5721", + "username": "919821012599_75351" + }, + "created_on": "2021-01-13T10:12:33.002000Z", + "id": "5ffec79192813f0001eb6560", + "is_active": true, + "logo": "https://hdn-1.addsale.com/x0/department/pictures/square-logo/original/rNz8grLys-.png", + "modified_by": { + "user_id": "5721", + "username": "919821012599_75351" + }, + "modified_on": "2021-01-13T13:50:55.415000Z", + "name": "Skin care products", + "platforms": {}, + "priority_order": 10235, + "slug": "skin-care-produts", + "synonyms": [ + "skin", + "care" + ], + "tags": [], + "uid": 21 + } + ], + "page": { + "type": "" } } ```
-
- @@ -15468,116 +8434,149 @@ Size guide object. See example below or refer `ProductAttributesResponseSchema` --- -### getProductBulkUploadHistory -Get a list of all bulk product upload jobs. +### getDepartments +List all the departments ```javascript // Promise -const promise = platformClient.catalog.getProductBulkUploadHistory({ search : value, - pageNo : value, - pageSize : value }); +const promise = platformClient.application("").catalog.getDepartments(); // Async/Await -const data = await platformClient.catalog.getProductBulkUploadHistory({ search : value, - pageNo : value, - pageSize : value }); +const data = await platformClient.application("").catalog.getDepartments(); ``` -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| search | string | no | Search string to filter the results by batch id | -| pageNo | number | no | The page number to navigate through the given set of results | -| pageSize | number | no | Number of items to retrieve in each page. Default is 12. | - - -This API helps to get bulk product upload jobs data. +Departments are a way to categorise similar products. A product can lie in multiple departments. For example, a skirt can below to the 'Women's Fashion' Department while a handbag can lie in 'Women's Accessories' Department. Use this API to list all the departments. If successful, returns the list of departments specified in `DepartmentResponse` *Returned Response:* -[ProductBulkRequestList](#ProductBulkRequestList) - -List of bulk product upload jobs. See `BulkRequestGetSchema` for details - +[DepartmentResponse](#DepartmentResponse) +List of Departments. See example below or refer `DepartmentResponse` for details. -
-  Examples:
-  success +  Example: ```json { - "value": { - "items": [ - { - "cancelled": 0, - "cancelled_records": [], - "company_id": 61, - "created_by": { - "full_name": "Anuja Yadav", - "user_id": "23218433", - "username": "yadavanuja039_gmail_com_82948" - }, - "created_on": "2021-03-12T08:11:06.848000Z", - "failed": 0, - "failed_records": [], - "file_path": "https://hdn-1.fynd.com/company/61/self/documents/product-import/free/original/mkX5ApRmw-sample_bulk_products_footwear.xlsx", - "id": "604b221a73bfa20001cb00e8", - "is_active": true, - "modified_by": { - "user_id": "0", - "username": "Silverbolt" - }, - "modified_on": "2021-03-12T08:11:08.646000Z", - "stage": "completed", - "succeed": 1, - "template": { - "banner": "https://hdn-1.fynd.com/seller/pictures/landscape-banner/original/nFPtXR_Beauty_&_Personal_Care_L.jpgf30455a5-d265-4382-b513-65afb9240320/nFPtXR_Beauty_and_Personal_Care_L.jpg", - "departments": [ - "men", - "women", - "kids", - "fashion" - ], - "description": "Footwear is a garment worn on the feet to protect against environmental adversities like heat or ground textures. Example: Sports Shoes", - "is_expirable": true, - "is_physical": true, - "logo": "https://hdn-1.fynd.com/seller/pictures/logo/original/9Y2UEp_ssssss.jpg7359e4c6-4c53-4dbe-a920-ef8ac658afb1/9Y2UEp_ssssss.jpg", - "name": "Footwear", - "slug": "footwear" - }, - "template_tag": "footwear", - "total": 1 - } - ], - "page": { - "current": 1, - "has_next": true, - "has_previous": false, - "item_total": 251, - "size": 26, - "type": "number" + "items": [ + { + "logo": { + "type": "image", + "url": "http://cdn4.gofynd.com/media/category_tab_icons/department/Men.png" + }, + "name": "Zachary Harris", + "priority_order": 7, + "slug": "Zachary-Harris", + "uid": 1 + }, + { + "logo": { + "type": "image", + "url": "http://cdn4.gofynd.com/media/category_tab_icons/department/Men.png" + }, + "name": "Aaron Reilly", + "priority_order": 7, + "slug": "Aaron-Reilly", + "uid": 2 + }, + { + "logo": { + "type": "image", + "url": "http://cdn4.gofynd.com/media/category_tab_icons/department/Men.png" + }, + "name": "Bobby Sandoval", + "priority_order": 7, + "slug": "Bobby-Sandoval", + "uid": 3 + }, + { + "logo": { + "type": "image", + "url": "http://cdn4.gofynd.com/media/category_tab_icons/department/Men.png" + }, + "name": "Seth Hughes", + "priority_order": 7, + "slug": "Seth-Hughes", + "uid": 4 + }, + { + "logo": { + "type": "image", + "url": "http://cdn4.gofynd.com/media/category_tab_icons/department/Men.png" + }, + "name": "Michelle Moore", + "priority_order": 7, + "slug": "Michelle-Moore", + "uid": 5 + }, + { + "logo": { + "type": "image", + "url": "http://cdn4.gofynd.com/media/category_tab_icons/department/Men.png" + }, + "name": "Annette Baldwin", + "priority_order": 7, + "slug": "Annette-Baldwin", + "uid": 6 + }, + { + "logo": { + "type": "image", + "url": "http://cdn4.gofynd.com/media/category_tab_icons/department/Men.png" + }, + "name": "Chris Mata", + "priority_order": 7, + "slug": "Chris-Mata", + "uid": 7 + }, + { + "logo": { + "type": "image", + "url": "http://cdn4.gofynd.com/media/category_tab_icons/department/Men.png" + }, + "name": "Nicole Jacobs", + "priority_order": 7, + "slug": "Nicole-Jacobs", + "uid": 8 + }, + { + "logo": { + "type": "image", + "url": "http://cdn4.gofynd.com/media/category_tab_icons/department/Men.png" + }, + "name": "Pamela Smith", + "priority_order": 7, + "slug": "Pamela-Smith", + "uid": 9 + }, + { + "logo": { + "type": "image", + "url": "http://cdn4.gofynd.com/media/category_tab_icons/department/Men.png" + }, + "name": "Nicole Simon", + "priority_order": 7, + "slug": "Nicole-Simon", + "uid": 10 } - } + ] } ```
-
- @@ -15589,23 +8588,27 @@ List of bulk product upload jobs. See `BulkRequestGetSchema` for details --- -### getProductBundle -List all Product Bundles +### getDiscountedInventoryBySizeIdentifier +Get Inventory for company ```javascript // Promise -const promise = platformClient.catalog.getProductBundle({ q : value, - slug : value, +const promise = platformClient.application("").catalog.getDiscountedInventoryBySizeIdentifier({ itemId : value, + sizeIdentifier : value, pageNo : value, - pageSize : value }); + pageSize : value, + q : value, + locationIds : value }); // Async/Await -const data = await platformClient.catalog.getProductBundle({ q : value, - slug : value, +const data = await platformClient.application("").catalog.getDiscountedInventoryBySizeIdentifier({ itemId : value, + sizeIdentifier : value, pageNo : value, - pageSize : value }); + pageSize : value, + q : value, + locationIds : value }); ``` @@ -15613,191 +8616,354 @@ const data = await platformClient.catalog.getProductBundle({ q : value, | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| q | string | no | A search string that is searched with product bundle name. | -| slug | Array | no | slugs of bundles to be retrieved. | +| --------- | ----- | -------- | ----------- | +| itemId | number | yes | Item code of the product of which size is to be get. | +| sizeIdentifier | string | yes | Size Identifier (Seller Identifier or Primary Identifier) of which inventory is to get. | | pageNo | number | no | The page number to navigate through the given set of results | -| pageSize | number | no | Number of items to retrieve in each page. Default is 12. | +| pageSize | number | no | Number of items to retrieve in each page. Default is 12. | +| q | string | no | Search with help of store code. | +| locationIds | Array | no | Search by store ids. | -Get all product bundles for a particular company +This API allows get Inventory data for particular company grouped by size and store. *Returned Response:* -[GetProductBundleListingResponse](#GetProductBundleListingResponse) - -List of bundle configured for a company. See example below or refer `GetProductBundleListingResponse` for details - +[InventorySellerIdentifierResponsePaginated](#InventorySellerIdentifierResponsePaginated) +returns a list of all inventory grouped by size and store -
-  Examples:
-  success +  Example: ```json { - "value": { - "items": [ - { - "choice": "multi", - "company_id": 1, - "created_by": { - "uid": "123", - "username": "917827311650_22960" - }, - "created_on": "2021-02-19 16:40:26.310007", - "id": "602f9ca2a596ce312f5956f9", - "is_active": true, - "logo": "http://g.com/poo.png/", - "meta": {}, - "modified_by": { - "uid": "123", - "username": "917827311650_22960" - }, - "modified_on": "2021-02-19 16:40:26.310027", - "name": "Bag", - "page_visibility": [ - "pdp" - ], - "products": [ - { - "allow_remove": true, - "auto_add_to_cart": false, - "auto_select": false, - "max_quantity": 1, - "min_quantity": 1, - "product_uid": 7500001 - } - ], - "same_store_assignment": true, - "slug": "bag" + "items": [ + { + "brand": { + "id": 1, + "name": "ab" }, - { - "choice": "multi", - "company_id": 1, - "created_by": { - "uid": "123", - "username": "917827311650_22960" - }, - "created_on": "2021-02-19 16:21:35.091512", - "id": "602f9837a596ce2edf9868e2", - "is_active": true, - "logo": "http://g.com/poo.png/", - "meta": {}, - "modified_by": { - "uid": "123", - "username": "917827311650_22960" - }, - "modified_on": "2021-02-19 16:21:35.091540", - "name": "Bag", - "page_visibility": [ - "pdp" - ], - "products": [ - { - "allow_remove": true, - "auto_add_to_cart": false, - "auto_select": false, - "max_quantity": 1, - "min_quantity": 1, - "product_uid": 7500001 - } - ], - "same_store_assignment": true, - "slug": "bag" + "company": { + "id": 1 + }, + "country_of_origin": "", + "currency": "INR", + "dimension": { + "height": 15, + "is_default": true, + "length": 10.5, + "unit": "cm", + "width": 5.2 + }, + "fragile": true, + "fynd_article_code": "", + "fynd_item_code": "", + "identifier": { + "article_id": 1 + }, + "identifiers": [ + { + "gtin_type": "sku_code", + "gtin_value": "RTYUIDSDFV", + "primary": true + } + ], + "inventory_updated_on": "2021-04-06T03:30:01.487000", + "item_id": 7500651, + "manufacturer": { + "address": "st", + "is_default": true, + "name": "manufacturer" + }, + "price": { + "currency": "USD", + "effective": 79.99, + "marked": 99.99, + "transfer": 79.99 + }, + "price_effective": 1234, + "price_transfer": 0, + "quantity": 10, + "sellable_quantity": 10, + "seller_identifier": "RTYUIDSDFV", + "size": "AAX1 (1 PCS)", + "store": { + "id": 1 + }, + "total_quantity": 1, + "uid": "59_RTYUIDSDFV", + "weight": { + "is_default": true, + "shipping": 1.5, + "unit": "kg" + } + }, + { + "brand": { + "id": 1, + "name": "ab" + }, + "company": { + "id": 1 + }, + "country_of_origin": "", + "currency": "INR", + "dimension": { + "height": 15, + "is_default": true, + "length": 10.5, + "unit": "cm", + "width": 5.2 + }, + "fragile": true, + "fynd_article_code": "", + "fynd_item_code": "", + "identifier": { + "article_id": 1 + }, + "identifiers": [ + { + "gtin_type": "sku_code", + "gtin_value": "RTYUIDSDFV", + "primary": true + } + ], + "inventory_updated_on": "2021-04-06T03:29:35.291000", + "item_id": 7500651, + "manufacturer": { + "address": "st", + "is_default": true, + "name": "manufacturer" + }, + "price": { + "currency": "USD", + "effective": 79.99, + "marked": 99.99, + "transfer": 79.99 + }, + "price_effective": 1234, + "price_transfer": 0, + "quantity": 10, + "sellable_quantity": 10, + "seller_identifier": "RTYUIDSDFV", + "size": "AAX1 (1 PCS)", + "store": { + "id": 1 + }, + "total_quantity": 1, + "uid": "10_RTYUIDSDFV", + "weight": { + "is_default": true, + "shipping": 1.5, + "unit": "kg" + } + }, + { + "brand": { + "id": 1, + "name": "ab" + }, + "company": { + "id": 1 + }, + "country_of_origin": "", + "currency": "INR", + "dimension": { + "height": 15, + "is_default": true, + "length": 10.5, + "unit": "cm", + "width": 5.2 + }, + "fragile": true, + "fynd_article_code": "", + "fynd_item_code": "", + "identifier": { + "article_id": 1 + }, + "identifiers": [ + { + "gtin_type": "sku_code", + "gtin_value": "RTYUIDSDFV", + "primary": true + } + ], + "inventory_updated_on": "2021-03-17T12:35:29.992000", + "item_id": 7500651, + "manufacturer": { + "address": "st", + "is_default": true, + "name": "manufacturer" + }, + "order_committed_quantity": 0, + "price": { + "currency": "USD", + "effective": 79.99, + "marked": 99.99, + "transfer": 79.99 + }, + "price_effective": 1234, + "price_transfer": 0, + "quantity": 10000000, + "sellable_quantity": 10000000, + "seller_identifier": "RTYUIDSDFV", + "size": "AAX1 (1 PCS)", + "store": { + "id": 1 + }, + "total_quantity": 1, + "uid": "11061_RTYUIDSDFV", + "weight": { + "is_default": true, + "shipping": 1.5, + "unit": "kg" + } + }, + { + "brand": { + "id": 1, + "name": "ab" + }, + "company": { + "id": 1 + }, + "country_of_origin": "", + "currency": "INR", + "damaged_quantity": 0, + "dimension": { + "height": 15, + "is_default": true, + "length": 10.5, + "unit": "cm", + "width": 5.2 + }, + "fragile": true, + "fynd_article_code": "", + "fynd_item_code": "", + "identifier": { + "article_id": 1 + }, + "identifiers": [ + { + "gtin_type": "sku_code", + "gtin_value": "RTYUIDSDFV", + "primary": true + } + ], + "inventory_updated_on": "2021-03-31T19:00:10.943000", + "item_id": 7500651, + "manufacturer": { + "address": "st", + "is_default": true, + "name": "manufacturer" + }, + "not_available_quantity": 0, + "order_committed_quantity": 7, + "price": { + "currency": "USD", + "effective": 79.99, + "marked": 99.99, + "transfer": 79.99 + }, + "price_effective": 1234, + "price_transfer": 0, + "quantity": 39, + "sellable_quantity": 18, + "seller_identifier": "RTYUIDSDFV", + "size": "AAX1 (1 PCS)", + "store": { + "id": 1 + }, + "total_quantity": 1, + "uid": "1_RTYUIDSDFV", + "weight": { + "is_default": true, + "shipping": 1.5, + "unit": "kg" + } + }, + { + "brand": { + "id": 1, + "name": "ab" + }, + "company": { + "id": 1 }, - { - "choice": "multi", - "company_id": 1, - "created_by": { - "uid": "123", - "username": "917827311650_22960" - }, - "created_on": "2021-02-19 16:20:24.605207", - "id": "602f97f0a596ce2ead47cd0b", - "is_active": true, - "logo": "http://g.com/poo.png/", - "meta": {}, - "modified_by": { - "uid": "123", - "username": "917827311650_22960" - }, - "modified_on": "2021-02-19 16:20:24.605230", - "name": "Bag", - "page_visibility": [ - "pdp" - ], - "products": [ - { - "allow_remove": true, - "auto_add_to_cart": false, - "auto_select": false, - "max_quantity": 1, - "min_quantity": 1, - "product_uid": 7500001 - } - ], - "same_store_assignment": true, - "slug": "bag" + "country_of_origin": "", + "currency": "INR", + "dimension": { + "height": 15, + "is_default": true, + "length": 10.5, + "unit": "cm", + "width": 5.2 }, - { - "choice": "multi", - "company_id": 1, - "created_by": { - "uid": "123", - "username": "917827311650_22960" - }, - "created_on": "2021-02-19 16:16:46.196449", - "id": "602f9716a596ce2e415196df", - "is_active": true, - "logo": "http://g.com/poo.png/", - "meta": {}, - "modified_by": { - "uid": "123", - "username": "917827311650_22960" - }, - "modified_on": "2021-02-19 16:16:46.196467", - "name": "Bag", - "page_visibility": [ - "pdp" - ], - "products": [ - { - "allow_remove": true, - "auto_add_to_cart": false, - "auto_select": false, - "max_quantity": 1, - "min_quantity": 1, - "product_uid": 7500001 - } - ], - "same_store_assignment": true, - "slug": "bag" + "fragile": true, + "fynd_article_code": "", + "fynd_item_code": "", + "identifier": { + "article_id": 1 + }, + "identifiers": [ + { + "gtin_type": "sku_code", + "gtin_value": "RTYUIDSDFV", + "primary": true + } + ], + "inventory_updated_on": "2020-07-07T10:37:06.146000", + "item_id": 7500651, + "manufacturer": { + "address": "st", + "is_default": true, + "name": "manufacturer" + }, + "order_committed_quantity": 39, + "price": { + "currency": "USD", + "effective": 79.99, + "marked": 99.99, + "transfer": 79.99 + }, + "price_effective": 1234, + "price_transfer": 0, + "quantity": 39, + "sellable_quantity": 0, + "seller_identifier": "RTYUIDSDFV", + "size": "AAX1 (1 PCS)", + "store": { + "id": 1 + }, + "total_quantity": 1, + "uid": "1_rtyuidsdfv", + "weight": { + "is_default": true, + "shipping": 1.5, + "unit": "kg" } - ], - "page": { - "current": 1, - "has_next": false, - "has_previous": false, - "total": 1, - "total_item_count": 4, - "type": "number" } + ], + "page": { + "current": 1, + "has_next": false, + "has_previous": false, + "item_total": 5, + "size": 1, + "type": "number" } } ```
-
- @@ -15809,17 +8975,17 @@ List of bundle configured for a company. See example below or refer `GetProductB --- -### getProductBundleDetail -Get a particular Product Bundle details +### getGenderAttribute +Get gender attribute details ```javascript // Promise -const promise = platformClient.catalog.getProductBundleDetail({ id : value }); +const promise = platformClient.catalog.getGenderAttribute({ attributeSlug : value }); // Async/Await -const data = await platformClient.catalog.getProductBundleDetail({ id : value }); +const data = await platformClient.catalog.getGenderAttribute({ attributeSlug : value }); ``` @@ -15828,74 +8994,73 @@ const data = await platformClient.catalog.getProductBundleDetail({ id : value } | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| id | string | yes | A `id` is a unique identifier for a particular detail. Pass the `id` of the keywords which you want to retrieve. | +| attributeSlug | string | yes | slug of the attribute for which you want to view the genders | -Get a particular Bundle details by its `id`. If successful, returns a Product bundle resource in the response body specified in `GetProductBundleResponse` +This API allows to view the gender attribute details. *Returned Response:* -[GetProductBundleResponse](#GetProductBundleResponse) - -The Collection object. See example below or refer `GetProductBundleResponse` for details - +[GenderDetail](#GenderDetail) +Size guide object. See example below or refer `GenderDetailSchema` for details -
-  Examples:
-  success +  Example: ```json { - "value": { - "choice": "multi", - "company_id": 1, - "logo": "http://g.com/poo.png/", - "meta": {}, - "name": "Bag", - "page_visibility": [ - "pdp" - ], - "products": [ - { - "allow_remove": true, - "auto_add_to_cart": false, - "auto_select": false, - "max_quantity": 1, - "min_quantity": 1, - "product_details": { - "attributes": { - "brand_name": "brand 2" - }, - "country_of_origin": "India", - "images": [ - "https://hdn-1.addsale.com/x0/media/pictures/tagged_items/original/random_code_4/FE6DUR_000000.png" - ], - "item_code": "760B3BFF-4905-44B8-A50E-082829E7107F", - "name": "Some Phone", - "slug": "slug-1", - "uid": 7500001 - }, - "product_uid": 7500001 - } + "departments": [ + "men-s-fashion", + "kids", + "women-s-fashion", + "beauty-personal-care" + ], + "description": "Clothing department needs gener attribute", + "details": { + "display_type": "text" + }, + "enabled_for_end_consumer": true, + "filters": { + "indexing": true, + "priority": 2 + }, + "id": "5ed11eb0be8d5e00016f0335", + "is_nested": true, + "logo": "https://hdn-1.addsale.com/x0/products/pictures/attribute/logo/original/Rhv89tqRo-brand-website-logo.png", + "meta": { + "enriched": false, + "mandatory_details": { + "l3_keys": [] + } + }, + "name": "Gender", + "schema": { + "enum": [ + "Men", + "Women", + "Boy", + "Girl", + "more", + "men" ], - "same_store_assignment": true, - "slug": "bag" - } + "format": "", + "mandatory": false, + "multi": true, + "type": "str" + }, + "slug": "gender" } ```
-
- @@ -15907,17 +9072,25 @@ The Collection object. See example below or refer `GetProductBundleResponse` for --- -### getProductDetailBySlug -Get a product +### getGroupConfigurations +Get the details of the application configured configurations of group config types. ```javascript // Promise -const promise = platformClient.application("").catalog.getProductDetailBySlug({ slug : value }); +const promise = platformClient.application("").catalog.getGroupConfigurations({ configType : value, + pageNo : value, + pageSize : value, + search : value, + templateSlug : value }); // Async/Await -const data = await platformClient.application("").catalog.getProductDetailBySlug({ slug : value }); +const data = await platformClient.application("").catalog.getGroupConfigurations({ configType : value, + pageNo : value, + pageSize : value, + search : value, + templateSlug : value }); ``` @@ -15926,245 +9099,129 @@ const data = await platformClient.application("").catalog.getPro | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| slug | string | yes | The unique identifier of a product. i.e; `slug` of a product or `uid` of a product. You can retrieve these from the APIs that list products like **v1.0/products/** | +| configType | string | yes | A `config_type` is an identifier that defines a specific type of configuration. | +| pageNo | number | no | The page number to navigate through the given set of results. | +| pageSize | number | no | Number of items to retrieve in each page. Default is 12. | +| search | string | no | Get configuration list filtered by `search` string. | +| templateSlug | string | no | Get configuration list filtered by `template_slug` string. This is for the details and comparision groups. | -Products are the core resource of an application. Products can be associated by categories, collections, brands and more. This API retrieves the product specified by the given **slug**. If successful, returns a Product resource in the response body specified in `ProductDetail` +Get the details of the application configured configurations of group config types. *Returned Response:* -[ProductDetail](#ProductDetail) - -The Product object. See example below or refer `ProductDetail` for details. - +[GetConfigResponse](#GetConfigResponse) +configuration details for catalog. See example below or refer `GetConfigResponseSchema` for details -
-  Examples:
-  success +  Example: ```json { - "value": { - "attributes": { - "brand": "Barry, Jennings and Larson", - "color": "DarkGrey", - "color_hex": "808080", - "gender": [ - "Men", - "Women" + "data": [ + { + "app_id": "5d65089e031f9029f8e8dc2f", + "attributes": [ + { + "display_type": "text", + "is_active": true, + "key": "item_code", + "name": "Item Code", + "priority": 1, + "slug": "item_code" + }, + { + "display_type": "text", + "is_active": true, + "key": "brand", + "name": "Brand", + "priority": 2, + "slug": "brand" + } ], - "item_code": "LGLAPTOPSLEEVE5", - "material": "Neoprene", - "occasion": "Casual", - "primary_color": "Grey", - "primary_color_hex": "808080", - "primary_material": "Others", - "product_details": "This is a Unisex Product.", - "product_type": "LaptopBags", - "style_note": "Shape up your overall appeal with this stunning laptop bag. The amazing storage and great design will let you carry your laptop in style!", - "variant": "LGLAPTOPSLEEVE5", - "weight": 100 + "id": "62a84b90bd43c0fe4cf53574", + "is_active": true, + "is_default": false, + "name": "Test Group12 ", + "priority": 1, + "slug": "test-group12-31", + "template_slugs": [ + "atesttemplate" + ] }, - "brand": { - "_custom_json": {}, - "action": { - "page": { - "query": { - "brand": [ - "Hess-Inc" - ] - }, - "type": "products" + { + "app_id": "5d65089e031f9029f8e8dc2f", + "attributes": [ + { + "display_type": "text", + "is_active": true, + "key": "item_code", + "name": "Item Code", + "priority": 1, + "slug": "item_code" }, - "type": "page" - }, - "logo": { - "type": "image", - "url": "https://hdn-1.fynd.com/media/logo/brand/original/12391_0d956c6c71a4427895c15e44cba82f88.jpg" - }, - "name": "Barry, Jennings and Larson", - "uid": 1 - }, - "categories": [ - { - "_custom_json": {}, - "action": { - "page": { - "query": { - "category": [ - "Amy-Kim-DDS" - ] - }, - "type": "category" - }, - "type": "page" + { + "display_type": "text", + "is_active": true, + "key": "brand", + "name": "Brand", + "priority": 2, + "slug": "brand" }, - "id": 3, - "logo": { - "type": "image", - "url": "https://hdn-1.fynd.com/media/banner_portrait/brand/original/540_ecba3a1af141467da8abc20500f983db.jpg" + { + "display_type": "text", + "is_active": true, + "key": "country_of_origin", + "name": "Country Of Origin", + "priority": 3, + "slug": "country_of_origin" }, - "name": "Amy Kim DDS", - "uid": 3 - } - ], - "color": "808080", - "custom_order": {}, - "grouped_attributes": [ - { - "details": [ - { - "key": "Kimberly Davidson", - "type": "text", - "value": "DarkGrey" - }, - { - "key": "Kimberly Mcdaniel", - "type": "text", - "value": "Men,Women" - }, - { - "key": "Monica Hampton", - "type": "text", - "value": "Neoprene" - }, - { - "key": "John Mendoza", - "type": "text", - "value": "100 g" - } - ], - "title": "Alexander Sawyer" - } - ], - "has_variant": true, - "image_nature": "standard", - "medias": [ - { - "type": "image", - "url": "http://cdn4.gofynd.com/media/pictures/tagged_items/original/1309_LGLAPTOPSLEEVE5/1_1564735832806.jpg" - } - ], - "name": "benchmark collaborative paradigms", - "no_of_boxes": 1, - "product_online_date": "2021-02-03T07:22:29Z", - "rating": 2.7, - "rating_count": 2, - "similars": [ - "brand" - ], - "slug": "benchmark-collaborative-paradigms", - "tags": [ - "Digital" - ], - "teaser_tag": {}, - "tryouts": [], - "type": "product", - "uid": 1 - } -} -``` -
- -
- - - - - - - - - ---- - - -### getProductExportDetail -Get Detail Product export detail. - - - -```javascript -// Promise -const promise = platformClient.catalog.getProductExportDetail({ jobId : value }); - -// Async/Await -const data = await platformClient.catalog.getProductExportDetail({ jobId : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| jobId | string | yes | Company Id in which assets to be uploaded. | - - - -This API helps to get detail of Product export. - -*Returned Response:* - - - - -[GetProductDownloadsResponse](#GetProductDownloadsResponse) - -Returns a detail of product export jobs - - - - -
-  Examples: - - -
-  success - -```json -{ - "value": { - "status": "pending", - "created_by": { - "username": "app@fynd.com", - "user_id": "000000000000000016841367" - }, - "stats": { - "total": 1 - }, - "notification_emails": [], - "seller_id": 10, - "filters": { - "templates": [], - "catalogue_types": [ - "standard" + { + "display_type": "text", + "is_active": true, + "key": "image_nature", + "name": "Image Type", + "priority": 4, + "slug": "image_nature" + }, + { + "display_type": "text", + "is_active": true, + "key": "discount", + "name": "Discount", + "priority": 5, + "slug": "discount" + } ], - "brands": [] - }, - "task_id": "afcfccb2-9e31-11ee-a3ca-d6fb2161153f", - "modified_on": "2023-12-19T05:44:33.528000", - "_id": "65812dc1f4199a68512e69ff", - "type": "excel", - "created_on": "2023-12-19T05:44:33.528000Z", - "id": "65812dc1f4199a68512e69ff" + "id": "62a84b9ebd43c0fe4cf53576", + "is_active": true, + "is_default": false, + "name": "ET", + "priority": 2, + "slug": "et14", + "template_slugs": [ + "atesttemplate" + ] + } + ], + "page": { + "current": 1, + "has_next": false, + "next": 2, + "total_count": 2 } } ```
-
- @@ -16176,23 +9233,17 @@ Returns a detail of product export jobs --- -### getProductExportJobs -Allows you to list all product templates export list details +### getHsnCode +Fetch Hsn Code. ```javascript // Promise -const promise = platformClient.catalog.getProductExportJobs({ status : value, - fromDate : value, - toDate : value, - q : value }); +const promise = platformClient.catalog.getHsnCode({ id : value }); // Async/Await -const data = await platformClient.catalog.getProductExportJobs({ status : value, - fromDate : value, - toDate : value, - q : value }); +const data = await platformClient.catalog.getHsnCode({ id : value }); ``` @@ -16200,76 +9251,55 @@ const data = await platformClient.catalog.getProductExportJobs({ status : value | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| status | string | no | This is a parameter used to find all the jobs with the specified status. | -| fromDate | string | no | This is a parameter used to find the job from the date specified to the current date. | -| toDate | string | no | This is a parameter used to find the job from the from_date specified to the to_date. | -| q | string | no | It is a query parameter to search the export job with the task ID. | +| --------- | ----- | -------- | ----------- | +| id | string | yes | Unique id | -Can view details including trigger data, task id , etc. +Fetch Hsn Code. *Returned Response:* -[ProductDownloadsResponse](#ProductDownloadsResponse) - -List of Product Downloads Data. See example below or refer `ProductDownloadsResponse` for details - +[HsnCode](#HsnCode) +See example below details -
-  Examples:
-  success +  Example: ```json { - "value": { - "items": [ + "data": { + "company_id": 1, + "hs2_code": "xx", + "hsn_code": "xxxxxxxx", + "id": "xxxxxxxxxxxx", + "modified_by": { + "user_id": "0", + "username": "narutouzumaki" + }, + "slabs": [ { - "completed_on": "2020-12-23T07:23:41.031000Z", - "created_by": { - "user_id": "5646", - "username": "917972410891_48194" - }, - "data": { - "brand": [ - "ruosh" - ], - "templates": [ - "mobile-phones-and-tablet" - ], - "type": "csv" - }, - "id": "5fe2f077516d980001880943", - "seller_id": 3, - "status": "success", - "task_id": "c4b54ace-44ef-11eb-9806-1ef9bc4a2da1", - "template_tags": { - "mobile-phones-and-tablet": { - "display": "Mobile Phones & Tablet", - "logo": "https://hdn-1.jiox0.de/jiox0/seller/pictures/logo/original/Oda39B_99946594-portable-devices-with-tablet-and-mobile-phone-vector-icon-for-apps-and-websites.jpgcc2dff44-7fae-4002-9ebe-d2b59c8bee91/Oda39B_99946594-portable-devices-with-tablet-and-mobile-phone-vector-icon-for-apps-and-websites.jpg" - } - }, - "trigger_on": "2020-12-23T07:23:35.302000Z", - "url": "https://regrowth.s3.amazonaws.com/slingshot-catalogues/seller-catalog/3/c4b54ace-44ef-11eb-9806-1ef9bc4a2da1/c4b54ace-44ef-11eb-9806-1ef9bc4a2da1.zip" + "tax": 0, + "threshold": 999999 + }, + { + "tax": 0, + "threshold": 0 } ], - "page": {} + "tax_on": "esp" } } ```
-
- @@ -16281,17 +9311,31 @@ List of Product Downloads Data. See example below or refer `ProductDownloadsResp --- -### getProductSize -Get a single product size. +### getInventories +Get Inventory for company ```javascript // Promise -const promise = platformClient.catalog.getProductSize({ itemId : value }); +const promise = platformClient.catalog.getInventories({ itemId : value, + size : value, + pageNo : value, + pageSize : value, + q : value, + sellable : value, + storeIds : value, + sizeIdentifier : value }); // Async/Await -const data = await platformClient.catalog.getProductSize({ itemId : value }); +const data = await platformClient.catalog.getInventories({ itemId : value, + size : value, + pageNo : value, + pageSize : value, + q : value, + sellable : value, + storeIds : value, + sizeIdentifier : value }); ``` @@ -16299,205 +9343,517 @@ const data = await platformClient.catalog.getProductSize({ itemId : value }); | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| itemId | number | yes | Item Id of the product size. | +| --------- | ----- | -------- | ----------- | +| itemId | string | no | Item code of the product of which size is to be get. | +| size | string | no | Size of which inventory is to get. | +| pageNo | number | no | The page number to navigate through the given set of results | +| pageSize | number | no | Number of items to retrieve in each page. Default is 12. | +| q | string | no | Search with help of store code. | +| sellable | boolean | no | Filter on whether product is in stock or not. | +| storeIds | Array | no | The Store Id of products to fetch inventory. | +| sizeIdentifier | string | no | Size Identifier (Seller Identifier or Primary Identifier) of which inventory is to get. | -This API helps to get data associated to a particular product size. +This API allows get Inventories data for particular company. *Returned Response:* -[Product](#Product) - -Product object. See example below for details - +[GetInventoriesResponse](#GetInventoriesResponse) +returns a list of all inventory grouped by size and store -
-  Examples:
-  success +  Example: ```json { - "value": { - "all_sizes": [ - "3XL" - ], - "attributes": { - "color": "Red", + "items": [ + { + "brand": { + "id": 355 + }, + "company": { + "id": 46 + }, + "country_of_origin": "Malaysia", "created_by": { - "company_id": 1181, - "user_id": "-1", - "username": "silverbolt" + "user_id": "68c3800d602c0fda0dab4fea", + "username": "abhishekbhakurlekar_gofynd_com_63787" + }, + "date_meta": { + "added_on_store": "2023-01-20T07:26:18.834000", + "created_on": "2023-01-20T07:26:18.828000", + "inventory_updated_on": "2023-01-20T07:26:18.828000", + "modified_on": "2023-01-20T07:26:18.828000" + }, + "dimension": { + "height": 10, + "length": 25, + "unit": "cm", + "width": 15 }, - "created_on": "2020-07-23T04:20:43.810000Z", - "essential": "Yes", - "gender": [ - "Men" + "expiration_date": "9998-01-30T23:59:00", + "id": "63ca421a6fb0ce930685f46e", + "identifier": { + "alu": "410163085004", + "upc": "777697046" + }, + "is_set": false, + "manufacturer": { + "address": "5TH FLOOR, COURT HOUSE,LOKMANYA TILAK MARGA, DHOBI TALAOMUMBAI MAHARASHTRA, , MAHARASHTRA, MUMBAI", + "is_default": true, + "name": "RELIANCE BRANDS LIMITED" + }, + "modified_by": { + "user_id": "68c3800d602c0fda0dab4fea", + "username": "abhishekbhakurlekar_gofynd_com_63787" + }, + "platforms": { + "fynd": false, + "uniket_wholesale": false + }, + "price": { + "currency": "INR", + "effective": 8000, + "marked": 8000, + "transfer": 0 + }, + "quantities": { + "sellable": { + "count": 12 + } + }, + "return_config": { + "returnable": true, + "time": 30, + "unit": "days" + }, + "seller_identifier": "410163085004", + "size": "S", + "stage": "verified", + "store": { + "name": "Khan Market", + "store_code": "THR1", + "store_type": "high_street", + "uid": 10444 + }, + "tax_identifier": { + "hsn_code_id": "000000000000000000000001" + }, + "total_quantity": 12, + "trace_id": "inventory.bb475064-9893-11ed-88db-2efc0f0504bd", + "track_inventory": true, + "trader": [ + { + "address": [ + "Brooks Brothers India Private Limited registered address is 8th Floor, Maker Tower 'E' Cuffe Parade Mumbai MH 400005 IN" + ], + "name": "Imported & Marketed by Brooks Brothers India Pvt.Ltd", + "type": "Importer" + } ], - "image_nature": "standard", - "is_image_less_product": false, - "l3_mapping": [ - "men>casual_tees", - "women>casual_tees", - "girls>casual_tees", - "more>casual_tees" + "uid": "10444_410163085004", + "weight": { + "shipping": 999, + "unit": "gram" + } + }, + { + "brand": { + "id": 355 + }, + "company": { + "id": 46 + }, + "country_of_origin": "Malaysia", + "created_by": { + "user_id": "68c3800d602c0fda0dab4fea", + "username": "abhishekbhakurlekar_gofynd_com_63787" + }, + "date_meta": { + "added_on_store": "2023-01-16T05:25:49.491000", + "created_on": "2023-01-16T05:25:49.482000", + "inventory_updated_on": "2023-01-16T05:25:49.482000", + "modified_on": "2023-01-16T05:25:49.482000" + }, + "dimension": { + "height": 10, + "length": 25, + "unit": "cm", + "width": 15 + }, + "expiration_date": "9998-01-30T23:59:00", + "id": "63c4dfdd11e44ffd96d600bc", + "identifier": { + "alu": "410163085005", + "upc": "777697038" + }, + "is_set": false, + "manufacturer": { + "address": "5TH FLOOR, COURT HOUSE,LOKMANYA TILAK MARGA, DHOBI TALAOMUMBAI MAHARASHTRA, , MAHARASHTRA, MUMBAI", + "is_default": true, + "name": "RELIANCE BRANDS LIMITED" + }, + "modified_by": { + "user_id": "68c3800d602c0fda0dab4fea", + "username": "abhishekbhakurlekar_gofynd_com_63787" + }, + "platforms": { + "fynd": false, + "uniket_wholesale": false + }, + "price": { + "currency": "INR", + "effective": 8000, + "marked": 8000, + "transfer": 0 + }, + "quantities": { + "sellable": { + "count": 12 + } + }, + "return_config": { + "returnable": true, + "time": 30, + "unit": "days" + }, + "seller_identifier": "410163085005", + "size": "M", + "stage": "verified", + "store": { + "name": "Khan Market", + "store_code": "THR1", + "store_type": "high_street", + "uid": 10444 + }, + "tax_identifier": { + "hsn_code_id": "000000000000000000000001" + }, + "total_quantity": 12, + "trace_id": "inventory.3c9a25e4-955e-11ed-8584-92a07e366903", + "track_inventory": true, + "trader": [ + { + "address": [ + "Brooks Brothers India Private Limited registered address is 8th Floor, Maker Tower 'E' Cuffe Parade Mumbai MH 400005 IN" + ], + "name": "Imported & Marketed by Brooks Brothers India Pvt.Ltd", + "type": "Importer" + } ], - "material": "cotton", - "meta_nature": "standard", + "uid": "10444_410163085005", + "weight": { + "shipping": 999, + "unit": "gram" + } + }, + { + "brand": { + "id": 355 + }, + "company": { + "id": 46 + }, + "country_of_origin": "Malaysia", + "created_by": { + "user_id": "bc5fbaf5e6f4b5288e9a9a22", + "username": "sagardhiman_gofynd_com_43846" + }, + "date_meta": { + "added_on_store": "2023-01-05T10:45:41.988000", + "created_on": "2023-01-05T10:45:41.979000", + "inventory_updated_on": "2023-01-19T10:37:00.504000", + "modified_on": "2023-01-19T10:37:00.504000" + }, + "dimension": { + "height": 10, + "length": 25, + "unit": "cm", + "width": 15 + }, + "expiration_date": "9998-01-30T23:59:00", + "id": "63b6aa5558bf3ed100740c10", + "identifier": { + "alu": "410163085004", + "upc": "777697046" + }, + "is_set": false, + "manufacturer": { + "address": "5TH FLOOR, COURT HOUSE,LOKMANYA TILAK MARGA, DHOBI TALAOMUMBAI MAHARASHTRA, , MAHARASHTRA, MUMBAI", + "is_default": true, + "name": "RELIANCE BRANDS LIMITED" + }, "modified_by": { - "company_id": 61, - "user_id": "-1", - "username": "silverbolt" + "user_id": "68c3800d602c0fda0dab4fea", + "username": "abhishekbhakurlekar_gofynd_com_63787" + }, + "platforms": { + "fynd": false, + "uniket_wholesale": false + }, + "price": { + "currency": "INR", + "effective": 7001, + "marked": 8000, + "transfer": 0 + }, + "quantities": { + "damaged": { + "count": 0 + }, + "not_available": { + "count": 0 + }, + "sellable": { + "count": 5001 + } + }, + "return_config": { + "returnable": true, + "time": 30, + "unit": "days" + }, + "seller_identifier": "410163085004", + "size": "S", + "stage": "verified", + "store": { + "name": "Reliance 2", + "store_code": "R591", + "store_type": "warehouse", + "uid": 11336 + }, + "tax_identifier": { + "hsn_code_id": "000000000000000000000001" + }, + "total_quantity": 5001, + "trace_id": "inventory.3485e8b4-97e5-11ed-a9d9-5eca1fff6de0", + "track_inventory": true, + "trader": [ + { + "address": [ + "Brooks Brothers India Private Limited registered address is 8th Floor, Maker Tower 'E' Cuffe Parade Mumbai MH 400005 IN" + ], + "name": "Imported & Marketed by Brooks Brothers India Pvt.Ltd", + "type": "Importer" + } + ], + "uid": "11336_410163085004", + "weight": { + "shipping": 999, + "unit": "gram" + } + }, + { + "brand": { + "id": 355 + }, + "company": { + "id": 46 + }, + "country_of_origin": "Malaysia", + "created_by": { + "user_id": "5f200182ee4d3377e83330c2", + "username": "meghanakate_gofynd_com_58351" + }, + "date_meta": { + "added_on_store": "2022-11-29T11:17:42.271000", + "created_on": "2022-11-29T11:17:42.263000", + "inventory_updated_on": "2022-11-29T11:18:35.183000", + "modified_on": "2022-11-29T11:18:35.183000" + }, + "dimension": { + "height": 10, + "length": 25, + "unit": "cm", + "width": 15 + }, + "expiration_date": "9998-01-30T23:59:00", + "id": "6385ea569715e74d8a92ce88", + "identifier": { + "alu": "410163085001", + "upc": "777697079" + }, + "is_set": false, + "manufacturer": { + "address": "5TH FLOOR, COURT HOUSE,LOKMANYA TILAK MARGA, DHOBI TALAOMUMBAI MAHARASHTRA, , MAHARASHTRA, MUMBAI", + "is_default": true, + "name": "RELIANCE BRANDS LIMITED" + }, + "modified_by": { + "user_id": "5f200182ee4d3377e83330c2", + "username": "meghanakate_gofynd_com_58351" + }, + "platforms": { + "fynd": false, + "uniket_wholesale": false + }, + "price": { + "currency": "INR", + "effective": 8000, + "marked": 8000, + "transfer": 0 + }, + "quantities": { + "damaged": { + "count": 0 + }, + "not_available": { + "count": 0 + }, + "sellable": { + "count": 1000 + } + }, + "return_config": { + "returnable": true, + "time": 30, + "unit": "days" + }, + "seller_identifier": "410163085001", + "size": "XXL", + "stage": "verified", + "store": { + "name": "Shopsense Retail Technologies", + "store_code": "SRT91", + "store_type": "warehouse", + "uid": 11701 + }, + "tax_identifier": { + "hsn_code_id": "000000000000000000000001" + }, + "total_quantity": 1000, + "track_inventory": true, + "trader": [ + { + "address": [ + "Brooks Brothers India Private Limited registered address is 8th Floor, Maker Tower 'E' Cuffe Parade Mumbai MH 400005 IN" + ], + "name": "Imported & Marketed by Brooks Brothers India Pvt.Ltd", + "type": "Importer" + } + ], + "uid": "11701_410163085001", + "weight": { + "shipping": 999, + "unit": "gram" + } + }, + { + "brand": { + "id": 355 + }, + "company": { + "id": 46 + }, + "country_of_origin": "Malaysia", + "created_by": { + "user_id": "5f200182ee4d3377e83330c2", + "username": "meghanakate_gofynd_com_58351" + }, + "date_meta": { + "added_on_store": "2022-11-29T11:17:34.431000", + "created_on": "2022-11-29T11:17:34.424000", + "inventory_updated_on": "2022-11-29T11:18:27.331000", + "modified_on": "2022-11-29T11:18:27.331000" + }, + "dimension": { + "height": 10, + "length": 25, + "unit": "cm", + "width": 15 + }, + "expiration_date": "9998-01-30T23:59:00", + "id": "6385ea4e9715e74d8a92ce86", + "identifier": { + "alu": "410163085003", + "upc": "777697053" + }, + "is_set": false, + "manufacturer": { + "address": "5TH FLOOR, COURT HOUSE,LOKMANYA TILAK MARGA, DHOBI TALAOMUMBAI MAHARASHTRA, , MAHARASHTRA, MUMBAI", + "is_default": true, + "name": "RELIANCE BRANDS LIMITED" + }, + "modified_by": { + "user_id": "5f200182ee4d3377e83330c2", + "username": "meghanakate_gofynd_com_58351" + }, + "platforms": { + "fynd": false, + "uniket_wholesale": false + }, + "price": { + "currency": "INR", + "effective": 8000, + "marked": 8000, + "transfer": 0 + }, + "quantities": { + "damaged": { + "count": 0 + }, + "not_available": { + "count": 0 + }, + "sellable": { + "count": 1000 + } }, - "modified_on": "2020-07-23T04:20:44.185000Z", - "neck_type": "Round Neck", - "pattern": "Printed", - "primary_color": "Red", - "primary_material": "Others", - "product_fit": "Regular", - "sleeve_length": "Short", + "return_config": { + "returnable": true, + "time": 30, + "unit": "days" + }, + "seller_identifier": "410163085003", + "size": "XL", "stage": "verified", - "verified_by": { - "user_id": "0", - "username": "Silverbolt" + "store": { + "name": "Shopsense Retail Technologies", + "store_code": "SRT91", + "store_type": "warehouse", + "uid": 11701 }, - "verified_on": 1595478044 - }, - "brand": { - "logo": { - "aspect_ratio": "1:1", - "aspect_ratio_f": 1, - "secure_url": "https://hdn-1.fynd.com/brands/pictures/square-logo/50x0/zjt4-wU8Lk-VQYu0pcokb-r6yteuannoorjkq9f4tk.jpg", - "url": "https://hdn-1.fynd.com/brands/pictures/square-logo/50x0/zjt4-wU8Lk-VQYu0pcokb-r6yteuannoorjkq9f4tk.jpg" + "tax_identifier": { + "hsn_code_id": "000000000000000000000001" }, - "name": "play clan", - "uid": 85 - }, - "category_slug": "t-shirts", - "company_id": 61, - "country_of_origin": "India", - "currency": "INR", - "departments": [ - 1 - ], - "description": "", - "highlights": null, - "hsn_code": "61099090", - "id": "5f19101b99ee0500011dc896", - "images": [], - "is_active": false, - "is_dependent": false, - "is_set": false, - "item_code": "ACTESTCREATELISTING1", - "item_type": "standard", - "media": [], - "multi_size": true, - "name": "SQUADMTGIVESPACE", - "product_publish": { - "is_set": false, - "product_online_date": 1595478043 - }, - "size_guide": "play-clan-men-casual-tees", - "sizes": [ - { - "currency": "INR", - "identifiers": [ - { - "gtin_type": "sku_code", - "gtin_value": "ACTESTCREATELISTING1_3XL", - "primary": true - } - ], - "is_set": false, - "price": 10000, - "price_effective": 10000, - "price_transfer": 0, - "size": "3XL" + "total_quantity": 1000, + "track_inventory": true, + "trader": [ + { + "address": [ + "Brooks Brothers India Private Limited registered address is 8th Floor, Maker Tower 'E' Cuffe Parade Mumbai MH 400005 IN" + ], + "name": "Imported & Marketed by Brooks Brothers India Pvt.Ltd", + "type": "Importer" + } + ], + "uid": "11701_410163085003", + "weight": { + "shipping": 999, + "unit": "gram" } - ], - "slug": "play-clan-squadmtgivespace-857587-e928b0", - "template_tag": "topwear", - "uid": 857587 - } -} -``` -
- -
- - - - - - - - - ---- - - -### getProductTags -Get a list of all tags associated with company. - - - -```javascript -// Promise -const promise = platformClient.catalog.getProductTags(); - -// Async/Await -const data = await platformClient.catalog.getProductTags(); -``` - - - - - - -This API helps to get tags data associated to a particular company. - -*Returned Response:* - - - - -[ProductTagsViewResponse](#ProductTagsViewResponse) - -Tag List. See example below for details - - - - -
-  Examples: - - -
-  success - -```json -{ - "value": { - "items": [ - "demo", - "custom" - ] + } + ], + "page": { + "current": 1, + "has_next": false, + "has_previous": false, + "item_total": 5, + "size": 1, + "type": "number" } } ```
-
- @@ -16509,17 +9865,19 @@ Tag List. See example below for details --- -### getProductTemplateBySlug -Update marketplace optin +### getInventoryBulkUploadHistory +Get a list of all bulk Inventory upload jobs. ```javascript // Promise -const promise = platformClient.catalog.getProductTemplateBySlug({ slug : value }); +const promise = platformClient.catalog.getInventoryBulkUploadHistory({ pageNo : value, + pageSize : value }); // Async/Await -const data = await platformClient.catalog.getProductTemplateBySlug({ slug : value }); +const data = await platformClient.catalog.getInventoryBulkUploadHistory({ pageNo : value, + pageSize : value }); ``` @@ -16527,74 +9885,329 @@ const data = await platformClient.catalog.getProductTemplateBySlug({ slug : val | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| slug | string | yes | Slug of the template. | +| --------- | ----- | -------- | ----------- | +| pageNo | number | no | The page number to navigate through the given set of results | +| pageSize | number | no | Number of items to retrieve in each page. Default is 12. | -This API retrieves template for a given slug. +This API helps to get bulk Inventory upload jobs data. *Returned Response:* -[GetProductTemplateSlugResponse](#GetProductTemplateSlugResponse) - -Update marketplace optin config. - +[BulkInventoryGet](#BulkInventoryGet) +List of bulk Inventory upload jobs. See `BulkInventoryGetSchema` for details -
-  Examples:
-  success +  Example: ```json { - "value": { - "page": { - "current": 1, - "type": "number", - "size": 1, - "has_previous": false, - "has_next": false, - "item_total": 1 + "items": [ + { + "cancelled": 0, + "cancelled_records": [], + "company_id": 1, + "created_by": { + "full_name": "Nikhil Mhatre", + "user_id": "16", + "username": "nikhilmhatre_gofynd_com_97636" + }, + "created_on": "2021-03-11T10:54:44.998000Z", + "failed": 0, + "failed_records": [], + "file_path": "https://hdn-1.addsale.com/x0/company/1/self/documents/inventory-import/free/original/50DbgKLND-NtnL_EAVb-REicn1sDv-V8ZrKdnLt-product_inventory.csv", + "id": "6049f6f5723043000125a9ea", + "is_active": true, + "modified_by": { + "user_id": "0", + "username": "Silverbolt" + }, + "modified_on": "2021-03-11T10:54:45.296000Z", + "stage": "completed", + "succeed": 1, + "total": 1 + }, + { + "cancelled": 0, + "cancelled_records": [], + "company_id": 1, + "created_by": { + "user_id": "-1", + "username": "silverbolt" + }, + "created_on": "2021-03-04T09:46:51.714000Z", + "failed": 0, + "failed_records": [], + "file_path": "https://hdn-1.addsale.com/x0/company/1/self/documents/inventory-import/free/original/NtnL_EAVb-REicn1sDv-V8ZrKdnLt-product_inventory.csv", + "id": "6040ac8b1803830001fcc1ed", + "is_active": true, + "modified_by": { + "user_id": "0", + "username": "Silverbolt" + }, + "modified_on": "2021-03-04T09:46:55.349000Z", + "stage": "completed", + "succeed": 1, + "total": 1 + }, + { + "cancelled": 0, + "cancelled_records": [], + "company_id": 1, + "created_by": { + "user_id": "-1", + "username": "silverbolt" + }, + "created_on": "2021-03-04T09:22:32.222000Z", + "failed": 0, + "failed_records": [], + "file_path": "https://hdn-1.addsale.com/x0/company/1/self/documents/inventory-import/free/original/bmBZY9iAX-REicn1sDv-V8ZrKdnLt-product_inventory.csv", + "id": "6040a6d8104f110001a85061", + "is_active": true, + "modified_by": { + "user_id": "-1", + "username": "silverbolt" + }, + "modified_on": "2021-03-04T09:22:32.222000Z", + "stage": "terminated", + "succeed": 0, + "total": 1 + }, + { + "cancelled": 0, + "cancelled_records": [], + "company_id": 1, + "created_by": { + "user_id": "-1", + "username": "silverbolt" + }, + "created_on": "2021-03-04T09:20:29.719000Z", + "failed": 0, + "failed_records": [], + "file_path": "https://hdn-1.addsale.com/x0/company/1/self/documents/inventory-import/free/original/m73yWRT3v-REicn1sDv-V8ZrKdnLt-product_inventory.csv", + "id": "6040a65d104f110001a85060", + "is_active": true, + "modified_by": { + "user_id": "-1", + "username": "silverbolt" + }, + "modified_on": "2021-03-04T09:20:29.719000Z", + "stage": "terminated", + "succeed": 0, + "total": 1 + }, + { + "cancelled": 0, + "cancelled_records": [], + "company_id": 1, + "created_by": { + "user_id": "-1", + "username": "silverbolt" + }, + "created_on": "2021-03-04T08:50:49.367000Z", + "failed": 0, + "failed_records": [], + "file_path": "https://hdn-1.addsale.com/x0/company/1/self/documents/inventory-import/free/original/W9lxe19Uu-REicn1sDv-V8ZrKdnLt-product_inventory.csv", + "id": "60409f699b21e30001c1e6b5", + "is_active": true, + "modified_by": { + "user_id": "-1", + "username": "silverbolt" + }, + "modified_on": "2021-03-04T08:50:49.367000Z", + "stage": "terminated", + "succeed": 0, + "total": 1 + }, + { + "cancelled": 0, + "cancelled_records": [], + "company_id": 1, + "created_by": { + "full_name": "Sourabh Nilakhe", + "user_id": "5646", + "username": "917972410891_48194" + }, + "created_on": "2021-02-10T10:57:57.236000Z", + "failed": 0, + "failed_records": [], + "file_path": "https://hdn-1.addsale.com/x0/company/1/self/documents/inventory-import/free/original/REicn1sDv-V8ZrKdnLt-product_inventory.csv", + "id": "6023bc35c85ca1000171e08a", + "is_active": true, + "modified_by": { + "user_id": "0", + "username": "Silverbolt" + }, + "modified_on": "2021-02-10T10:57:57.571000Z", + "stage": "completed", + "succeed": 1, + "total": 1 + }, + { + "cancelled": 0, + "cancelled_records": [], + "company_id": 1, + "created_by": { + "full_name": "Sourabh Nilakhe", + "user_id": "5646", + "username": "917972410891_48194" + }, + "created_on": "2021-02-10T10:57:22.535000Z", + "failed": 0, + "failed_records": [], + "file_path": "https://hdn-1.addsale.com/x0/company/1/self/documents/inventory-import/free/original/Oth_LaVyI-V8ZrKdnLt-product_inventory.csv", + "id": "6023bc12c85ca1000171e089", + "is_active": true, + "modified_by": { + "user_id": "0", + "username": "Silverbolt" + }, + "modified_on": "2021-02-10T10:57:23.311000Z", + "stage": "completed", + "succeed": 1, + "total": 1 + }, + { + "cancelled": 0, + "cancelled_records": [], + "company_id": 1, + "created_by": { + "full_name": "Nikhil Mhatre", + "user_id": "16", + "username": "nikhilmhatre_gofynd_com_97636" + }, + "created_on": "2021-01-13T13:58:06.155000Z", + "failed": 0, + "failed_records": [], + "file_path": "https://hdn-1.addsale.com/x0/company/1/self/documents/inventory-import/free/original/V8ZrKdnLt-product_inventory.csv", + "id": "5ffefc6ee2db8f000183fab8", + "is_active": true, + "modified_by": { + "user_id": "0", + "username": "Silverbolt" + }, + "modified_on": "2021-01-13T13:58:06.369000Z", + "stage": "completed", + "succeed": 1, + "total": 1 + }, + { + "cancelled": 0, + "cancelled_records": [], + "company_id": 1, + "created_by": { + "full_name": "Nikhil Mhatre", + "user_id": "16", + "username": "nikhilmhatre_gofynd_com_97636" + }, + "created_on": "2021-01-13T13:57:38.598000Z", + "failed": 1, + "failed_records": [], + "file_path": "https://hdn-1.addsale.com/x0/company/1/self/documents/inventory-import/free/original/t3T6X2Riy-product_inventory.csv", + "id": "5ffefc5252f31100012ea981", + "is_active": true, + "modified_by": { + "user_id": "0", + "username": "Silverbolt" + }, + "modified_on": "2021-01-13T13:57:38.832000Z", + "stage": "failed", + "succeed": 0, + "total": 1 }, - "items": [ - { - "attributes": [ - "test" - ], - "departments": [ - "electronics", - "fashion" - ], - "is_active": true, - "tag": "test", - "is_physical": false, - "description": "test", - "logo": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/fyndnp/wrkr/x0/seller/pictures/logo/original/bPpx16_newplot.png120c05f3-138b-4130-9b2b-596c771d61da/bPpx16_newplot.png", - "is_archived": false, - "slug": "test", - "categories": [ - "smart-cellphone" - ], - "is_expirable": false, - "name": "Test", - "id": "6587d3f3bf65f561004fabdd" - } - ] + { + "cancelled": 0, + "cancelled_records": [], + "company_id": 1, + "created_by": { + "full_name": "Nikhil Mhatre", + "user_id": "16", + "username": "nikhilmhatre_gofynd_com_97636" + }, + "created_on": "2021-01-13T13:57:13.639000Z", + "failed": 1, + "failed_records": [], + "file_path": "https://hdn-1.addsale.com/x0/company/1/self/documents/inventory-import/free/original/NSTuhgsgq-product_inventory.csv", + "id": "5ffefc39a0d1e20001ae118c", + "is_active": true, + "modified_by": { + "user_id": "0", + "username": "Silverbolt" + }, + "modified_on": "2021-01-13T13:57:13.847000Z", + "stage": "failed", + "succeed": 0, + "total": 1 + }, + { + "cancelled": 0, + "cancelled_records": [], + "company_id": 1, + "created_by": { + "full_name": "Nikhil Mhatre", + "user_id": "16", + "username": "nikhilmhatre_gofynd_com_97636" + }, + "created_on": "2021-01-12T06:37:06.167000Z", + "failed": 0, + "failed_records": [], + "file_path": "https://hdn-1.addsale.com/x0/company/1/self/documents/inventory-import/free/original/cwQV-Z6gT-product_inventory.xlsx", + "id": "5ffd4392b4c34d000170697b", + "is_active": true, + "modified_by": { + "user_id": "0", + "username": "Silverbolt" + }, + "modified_on": "2021-01-12T06:37:06.307000Z", + "stage": "completed", + "succeed": 1, + "total": 1 + }, + { + "cancelled": 0, + "cancelled_records": [], + "company_id": 1, + "created_by": { + "full_name": "Nikhil Mhatre", + "user_id": "16", + "username": "nikhilmhatre_gofynd_com_97636" + }, + "created_on": "2021-01-12T06:36:24.292000Z", + "failed": 0, + "failed_records": [], + "file_path": "https://hdn-1.addsale.com/x0/company/1/self/documents/inventory-import/free/original/gccehef2f-product_inventory.xlsx", + "id": "5ffd4368b4c34d0001706960", + "is_active": true, + "modified_by": { + "user_id": "0", + "username": "Silverbolt" + }, + "modified_on": "2021-01-12T06:36:24.535000Z", + "stage": "completed", + "succeed": 1, + "total": 1 + } + ], + "page": { + "current": 1, + "has_next": true, + "has_previous": false, + "item_total": 39, + "size": 4, + "type": "number" } } ```
-
- @@ -16606,19 +10219,27 @@ Update marketplace optin config. --- -### getProductValidation -Validate product/size data +### getInventoryBySize +Get Inventory for company ```javascript // Promise -const promise = platformClient.catalog.getProductValidation({ type : value, - slug : value }); +const promise = platformClient.catalog.getInventoryBySize({ itemId : value, + size : value, + pageNo : value, + pageSize : value, + q : value, + sellable : value }); // Async/Await -const data = await platformClient.catalog.getProductValidation({ type : value, - slug : value }); +const data = await platformClient.catalog.getInventoryBySize({ itemId : value, + size : value, + pageNo : value, + pageSize : value, + q : value, + sellable : value }); ``` @@ -16627,56 +10248,309 @@ const data = await platformClient.catalog.getProductValidation({ type : value, | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| type | string | yes | Type of identifier to validate the product against. | -| slug | string | yes | Type of identifier to validate the product against. | +| itemId | number | yes | Item code of the product of which size is to be get. | +| size | string | yes | Size of which inventory is to get. | +| pageNo | number | no | The page number to navigate through the given set of results | +| pageSize | number | no | Number of items to retrieve in each page. Default is 12. | +| q | string | no | Search with help of store code. | +| sellable | boolean | no | Filter on whether product is in stock or not. | -This API validates product data. +This API allows get Inventory data for particular company grouped by size and store. *Returned Response:* -[ValidateProduct](#ValidateProduct) - -Validate Meta. See example below for details - - - +[InventoryResponsePaginated](#InventoryResponsePaginated) -
-  Examples: +returns a list of all inventory grouped by size and store -
-  success -```json -{ - "value": { - "valid": true - } -} -``` -
-  success_existing_product +  Example: ```json { - "value": { - "valid": false, - "message": "Product already exists for given slug." + "items": [ + { + "currency": "INR", + "identifiers": { + "gtin_type": "sku_code", + "gtin_value": "RTYUIDSDFV", + "primary": true + }, + "inventory_updated_on": "2021-04-06T03:30:01.487000", + "item_id": 7500651, + "price": 1234, + "price_effective": 1234, + "price_transfer": 0, + "quantity": 10, + "sellable_quantity": 10, + "seller_identifier": "RTYUIDSDFV", + "size": "AAX1 (1 PCS)", + "store": { + "_custom_json": {}, + "address": { + "address1": "A/204, SAI VANDAN, NARAYAN NAGAR, TULINJ ROAD", + "address2": "", + "city": "MUMBAI", + "country": "INDIA", + "landmark": "", + "lat_long": { + "coordinates": [ + 72.8231511, + 19.4232024 + ], + "type": "Point" + }, + "pincode": 401209, + "state": "MAHARASHTRA" + }, + "integration_type": { + "inventory": "browntape", + "order": "browntape" + }, + "manager": { + "email": "a@b.com", + "mobile_no": { + "country_code": 91, + "number": "2382634324" + }, + "name": "abc" + }, + "name": "yosss sdd dsdyo", + "store_code": "sanic6sdfsf7", + "uid": 59 + }, + "uid": "59_RTYUIDSDFV" + }, + { + "currency": "INR", + "identifiers": { + "gtin_type": "sku_code", + "gtin_value": "RTYUIDSDFV", + "primary": true + }, + "inventory_updated_on": "2021-04-06T03:29:35.291000", + "item_id": 7500651, + "price": 1234, + "price_effective": 1234, + "price_transfer": 0, + "quantity": 10, + "sellable_quantity": 10, + "seller_identifier": "RTYUIDSDFV", + "size": "AAX1 (1 PCS)", + "store": { + "_custom_json": {}, + "address": { + "address1": "NO", + "address2": "", + "city": "MUMBAI", + "country": "INDIA", + "lat_long": { + "coordinates": [ + 1, + 1 + ], + "type": "Point" + }, + "pincode": 400072, + "state": "MAHA" + }, + "integration_type": { + "inventory": "browntape", + "order": "browntape" + }, + "manager": { + "email": "rehman@cashkart.com", + "mobile_no": { + "country_code": 91, + "number": "9167943983" + }, + "name": "abc" + }, + "name": "Saran Ledonne", + "store_code": "af6198fe-2c23-4441-bbf4-e694c96e255c", + "uid": 10 + }, + "uid": "10_RTYUIDSDFV" + }, + { + "currency": "INR", + "identifiers": { + "gtin_type": "sku_code", + "gtin_value": "RTYUIDSDFV", + "primary": true + }, + "inventory_updated_on": "2021-03-17T12:35:29.992000", + "item_id": 7500651, + "order_committed_quantity": 0, + "price": 1234, + "price_effective": 1234, + "price_transfer": 0, + "quantity": 10000000, + "sellable_quantity": 10000000, + "seller_identifier": "RTYUIDSDFV", + "size": "AAX1 (1 PCS)", + "store": { + "_custom_json": {}, + "address": { + "address1": "14/1, VINOBHA BHAVE NAGAR", + "address2": "VINOBHA BHAVE NAGAR, KURLA WEST, KURLA, ", + "city": "MUMBAI", + "country": "INDIA", + "lat_long": { + "coordinates": [ + 1, + 1 + ], + "type": "Point" + }, + "pincode": 400070, + "state": "MAHARASHTRA" + }, + "integration_type": { + "inventory": "browntape", + "order": "browntape" + }, + "manager": { + "email": "fahimsakri@gofynd.com", + "mobile_no": { + "country_code": 91, + "number": "9594495254" + }, + "name": "Fahim" + }, + "name": "ABC-1-17", + "store_code": "ABC-1-17", + "uid": 11061 + }, + "uid": "11061_RTYUIDSDFV" + }, + { + "currency": "INR", + "damaged_quantity": 0, + "identifiers": { + "gtin_type": "sku_code", + "gtin_value": "RTYUIDSDFV", + "primary": true + }, + "inventory_updated_on": "2021-03-31T19:00:10.943000", + "item_id": 7500651, + "not_available_quantity": 0, + "order_committed_quantity": 7, + "price": 1234, + "price_effective": 1234, + "price_transfer": 0, + "quantity": 39, + "sellable_quantity": 18, + "seller_identifier": "RTYUIDSDFV", + "size": "AAX1 (1 PCS)", + "store": { + "_custom_json": {}, + "address": { + "address1": "SHOPSENSE RETAIL TECHNOLOGIES PRIVATE LIMITED 1ST FLOOR WEWORK VIJAY DIAMOND, CROSS RD B, AJIT NAGAR,", + "address2": "KONDIVITA, ANDHERI EAST, MUMBAI, MAHARASHTRA 400069", + "city": "MUMBAI", + "country": "INDIA", + "lat_long": { + "coordinates": [ + 72.8691788, + 19.1174114 + ], + "type": "Point" + }, + "pincode": 400059, + "state": "MAHARASHTRA" + }, + "integration_type": { + "inventory": "browntape", + "order": "browntape" + }, + "manager": { + "email": "ASHISHCHANDORKAR@FYND.COM", + "mobile_no": { + "country_code": 91, + "number": "8369782851" + }, + "name": "ASHISH CHANDORKAR" + }, + "name": "RRL01", + "store_code": "WH_8513", + "uid": 1 + }, + "uid": "1_RTYUIDSDFV" + }, + { + "currency": "INR", + "identifiers": { + "gtin_type": "sku_code", + "gtin_value": "RTYUIDSDFV", + "primary": true + }, + "inventory_updated_on": "2020-07-07T10:37:06.146000", + "item_id": 7500651, + "order_committed_quantity": 39, + "price": 1234, + "price_effective": 1234, + "price_transfer": 0, + "quantity": 39, + "sellable_quantity": 0, + "seller_identifier": "RTYUIDSDFV", + "size": "AAX1 (1 PCS)", + "store": { + "_custom_json": {}, + "address": { + "address1": "SHOPSENSE RETAIL TECHNOLOGIES PRIVATE LIMITED 1ST FLOOR WEWORK VIJAY DIAMOND, CROSS RD B, AJIT NAGAR,", + "address2": "KONDIVITA, ANDHERI EAST, MUMBAI, MAHARASHTRA 400069", + "city": "MUMBAI", + "country": "INDIA", + "lat_long": { + "coordinates": [ + 72.8691788, + 19.1174114 + ], + "type": "Point" + }, + "pincode": 400059, + "state": "MAHARASHTRA" + }, + "integration_type": { + "inventory": "browntape", + "order": "browntape" + }, + "manager": { + "email": "ASHISHCHANDORKAR@FYND.COM", + "mobile_no": { + "country_code": 91, + "number": "8369782851" + }, + "name": "ASHISH CHANDORKAR" + }, + "name": "RRL01", + "store_code": "WH_8513", + "uid": 1 + }, + "uid": "1_rtyuidsdfv" + } + ], + "page": { + "current": 1, + "has_next": false, + "has_previous": false, + "item_total": 5, + "size": 1, + "type": "number" } } ```
-
- @@ -16688,17 +10562,27 @@ Validate Meta. See example below for details --- -### getProductVerificationDetails -Get the verification detail of a product +### getInventoryBySizeIdentifier +Get Inventory for company ```javascript // Promise -const promise = platformClient.catalog.getProductVerificationDetails({ itemId : value }); +const promise = platformClient.catalog.getInventoryBySizeIdentifier({ itemId : value, + sizeIdentifier : value, + pageNo : value, + pageSize : value, + q : value, + locationIds : value }); // Async/Await -const data = await platformClient.catalog.getProductVerificationDetails({ itemId : value }); +const data = await platformClient.catalog.getInventoryBySizeIdentifier({ itemId : value, + sizeIdentifier : value, + pageNo : value, + pageSize : value, + q : value, + locationIds : value }); ``` @@ -16707,63 +10591,343 @@ const data = await platformClient.catalog.getProductVerificationDetails({ itemI | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| itemId | number | yes | A `item_id` is a unique identifier for a specific product. | +| itemId | number | yes | Item code of the product of which size is to be get. | +| sizeIdentifier | string | yes | Size Identifier (Seller Identifier or Primary Identifier) of which inventory is to get. | +| pageNo | number | no | The page number to navigate through the given set of results | +| pageSize | number | no | Number of items to retrieve in each page. Default is 12. | +| q | string | no | Search with help of store code. | +| locationIds | Array | no | Search by store ids. | -Get the verification detail of a product +This API allows get Inventory data for particular company grouped by size and store. *Returned Response:* -[ProductVerificationModel](#ProductVerificationModel) - -Product verification data. See example below or refer `ProductVerificationModelSchema` for details - +[InventorySellerIdentifierResponsePaginated](#InventorySellerIdentifierResponsePaginated) +returns a list of all inventory grouped by size and store -
-  Examples:
-  success +  Example: ```json { - "value": { - "rejected_fields": {}, - "status": "verified", - "brand_uid": 335, - "_id": "65842100bd7817e212c71243", - "created_on": "2023-12-21T11:27:34.657000", - "company_ids": [ - 1 - ], - "item_code": "DELETE", - "remark": "", - "created_by": { - "user_id": "000000000000000016841367", - "username": "app@fynd.com" + "items": [ + { + "brand": { + "id": 1, + "name": "ab" + }, + "company": { + "id": 1 + }, + "country_of_origin": "", + "currency": "INR", + "dimension": { + "height": 13.1, + "is_default": true, + "length": 1.3, + "unit": "cm", + "width": 23.4 + }, + "fragile": false, + "fynd_article_code": "", + "fynd_item_code": "", + "identifier": {}, + "identifiers": [ + { + "gtin_type": "sku_code", + "gtin_value": "RTYUIDSDFV", + "primary": true + } + ], + "inventory_updated_on": "2021-04-06T03:30:01.487000", + "item_id": 7500651, + "manufacturer": { + "address": "ab", + "is_default": true, + "name": "ab" + }, + "price": { + "currency": "USD", + "effective": 79.99, + "marked": 99.99, + "transfer": 89.99 + }, + "price_effective": 1234, + "price_transfer": 0, + "quantity": 10, + "sellable_quantity": 10, + "seller_identifier": "RTYUIDSDFV", + "size": "AAX1 (1 PCS)", + "store": { + "id": 1 + }, + "total_quantity": 1, + "uid": "59_RTYUIDSDFV", + "weight": { + "is_default": true, + "shipping": 1.5, + "unit": "kg" + } }, - "modified_on": "2023-12-21T11:27:34.657000", - "slug": "being-human-blue-flat-front-jeans", - "modified_by": { - "user_id": "000000000000000016841367", - "username": "app@fynd.com" + { + "brand": { + "id": 1, + "name": "ab" + }, + "company": { + "id": 1 + }, + "country_of_origin": "", + "currency": "INR", + "dimension": { + "height": 13.1, + "is_default": true, + "length": 1.3, + "unit": "cm", + "width": 23.4 + }, + "fragile": false, + "fynd_article_code": "", + "fynd_item_code": "", + "identifier": {}, + "identifiers": [ + { + "gtin_type": "sku_code", + "gtin_value": "RTYUIDSDFV", + "primary": true + } + ], + "inventory_updated_on": "2021-04-06T03:29:35.291000", + "item_id": 7500651, + "manufacturer": { + "address": "ab", + "is_default": true, + "name": "ab" + }, + "price": { + "currency": "USD", + "effective": 79.99, + "marked": 99.99, + "transfer": 89.99 + }, + "price_effective": 1234, + "price_transfer": 0, + "quantity": 10, + "sellable_quantity": 10, + "seller_identifier": "RTYUIDSDFV", + "size": "AAX1 (1 PCS)", + "store": { + "id": 1 + }, + "total_quantity": 1, + "uid": "10_RTYUIDSDFV", + "weight": { + "is_default": true, + "shipping": 1.5, + "unit": "kg" + } + }, + { + "brand": { + "id": 1, + "name": "ab" + }, + "company": { + "id": 1 + }, + "country_of_origin": "", + "currency": "INR", + "dimension": { + "height": 13.1, + "is_default": true, + "length": 1.3, + "unit": "cm", + "width": 23.4 + }, + "fragile": false, + "fynd_article_code": "", + "fynd_item_code": "", + "identifier": {}, + "identifiers": [ + { + "gtin_type": "sku_code", + "gtin_value": "RTYUIDSDFV", + "primary": true + } + ], + "inventory_updated_on": "2021-03-17T12:35:29.992000", + "item_id": 7500651, + "manufacturer": { + "address": "ab", + "is_default": true, + "name": "ab" + }, + "order_committed_quantity": 0, + "price": { + "currency": "USD", + "effective": 79.99, + "marked": 99.99, + "transfer": 89.99 + }, + "price_effective": 1234, + "price_transfer": 0, + "quantity": 10000000, + "sellable_quantity": 10000000, + "seller_identifier": "RTYUIDSDFV", + "size": "AAX1 (1 PCS)", + "store": { + "id": 1 + }, + "total_quantity": 1, + "uid": "11061_RTYUIDSDFV", + "weight": { + "is_default": true, + "shipping": 1.5, + "unit": "kg" + } + }, + { + "brand": { + "id": 1, + "name": "ab" + }, + "company": { + "id": 1 + }, + "country_of_origin": "", + "currency": "INR", + "damaged_quantity": 0, + "dimension": { + "height": 13.1, + "is_default": true, + "length": 1.3, + "unit": "cm", + "width": 23.4 + }, + "fragile": false, + "fynd_article_code": "", + "fynd_item_code": "", + "identifier": {}, + "identifiers": [ + { + "gtin_type": "sku_code", + "gtin_value": "RTYUIDSDFV", + "primary": true + } + ], + "inventory_updated_on": "2021-03-31T19:00:10.943000", + "item_id": 7500651, + "manufacturer": { + "address": "ab", + "is_default": true, + "name": "ab" + }, + "not_available_quantity": 0, + "order_committed_quantity": 7, + "price": { + "currency": "USD", + "effective": 79.99, + "marked": 99.99, + "transfer": 89.99 + }, + "price_effective": 1234, + "price_transfer": 0, + "quantity": 39, + "sellable_quantity": 18, + "seller_identifier": "RTYUIDSDFV", + "size": "AAX1 (1 PCS)", + "store": { + "id": 1 + }, + "total_quantity": 1, + "uid": "1_RTYUIDSDFV", + "weight": { + "is_default": true, + "shipping": 1.5, + "unit": "kg" + } }, - "item_id": 2, - "id": "65842100bd7817e212c71243" + { + "brand": { + "id": 1, + "name": "ab" + }, + "company": { + "id": 1 + }, + "country_of_origin": "", + "currency": "INR", + "dimension": { + "height": 13.1, + "is_default": true, + "length": 1.3, + "unit": "cm", + "width": 23.4 + }, + "fragile": false, + "fynd_article_code": "", + "fynd_item_code": "", + "identifier": {}, + "identifiers": [ + { + "gtin_type": "sku_code", + "gtin_value": "RTYUIDSDFV", + "primary": true + } + ], + "inventory_updated_on": "2020-07-07T10:37:06.146000", + "item_id": 7500651, + "manufacturer": { + "address": "ab", + "is_default": true, + "name": "ab" + }, + "order_committed_quantity": 39, + "price": { + "currency": "USD", + "effective": 79.99, + "marked": 99.99, + "transfer": 89.99 + }, + "price_effective": 1234, + "price_transfer": 0, + "quantity": 39, + "sellable_quantity": 0, + "seller_identifier": "RTYUIDSDFV", + "size": "AAX1 (1 PCS)", + "store": { + "id": 1 + }, + "total_quantity": 1, + "uid": "1_rtyuidsdfv", + "weight": { + "is_default": true, + "shipping": 1.5, + "unit": "kg" + } + } + ], + "page": { + "current": 1, + "has_next": false, + "has_previous": false, + "item_total": 5, + "size": 1, + "type": "number" } } ```
-
- @@ -16775,247 +10939,44 @@ Product verification data. See example below or refer `ProductVerificationModelS --- -### getProducts -Get product list +### getInventoryExport +Get Inventory export history. ```javascript // Promise -const promise = platformClient.catalog.getProducts({ brandIds : value, - categoryIds : value, - itemIds : value, - departmentIds : value, - itemCode : value, - q : value, - tags : value, - pageNo : value, - pageSize : value }); +const promise = platformClient.catalog.getInventoryExport(); // Async/Await -const data = await platformClient.catalog.getProducts({ brandIds : value, - categoryIds : value, - itemIds : value, - departmentIds : value, - itemCode : value, - q : value, - tags : value, - pageNo : value, - pageSize : value }); +const data = await platformClient.catalog.getInventoryExport(); ``` -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| brandIds | Array | no | Get multiple products filtered by Brand Ids | -| categoryIds | Array | no | Get multiple products filtered by Category Ids | -| itemIds | Array | no | Get multiple products filtered by Item Ids | -| departmentIds | Array | no | Get multiple products filtered by Department Ids | -| itemCode | Array | no | Get multiple products filtered by Item Code | -| q | string | no | Get multiple products filtered by q string | -| tags | Array | no | Get multiple products filtered by tags | -| pageNo | number | no | The page number to navigate through the given set of results | -| pageSize | number | no | Number of items to retrieve in each page. Default is 10. | - - -This API gets meta associated to products. +This API helps to get Inventory export history. *Returned Response:* -[ProductListingResponseV2](#ProductListingResponseV2) - -Product Meta. See example below for details - +[InventoryExportJob](#InventoryExportJob) +Returns a list of inventory export jobs -
-  Examples:
-  success +  Example: ```json -{ - "value": { - "items": [ - { - "_custom_json": {}, - "all_company_ids": [ - 1 - ], - "all_identifiers": [ - "19WE100" - ], - "all_sizes": [ - { - "brand_uid": 1, - "company_id": 1, - "identifiers": [ - { - "gtin_type": "ean", - "gtin_value": "HGS272727272", - "primary": true - } - ], - "item_code": "TVSET111", - "marked_price": 35000, - "seller_identifier": "HGS272727272", - "size": "XXLX23, MX11, LX67, XLX45 (146 PCS)" - } - ], - "brand": { - "logo": { - "aspect_ratio": "1:1", - "aspect_ratio_f": 1, - "secure_url": "https://hdn-1.jiox0.de/jioecomm/seller/pictures/logo/50x0/apple-7f951c/logo_apple.png", - "url": "https://hdn-1.jiox0.de/jioecomm/seller/pictures/logo/50x0/apple-7f951c/logo_apple.png" - }, - "name": "Apple", - "uid": 13 - }, - "brand_uid": 1, - "category_slug": "qled-television", - "category_uid": 1, - "country_of_origin": "India", - "created_by": { - "user_id": "5", - "username": "919049753052_37528" - }, - "created_on": "2021-04-02T15:43:59.410000Z", - "currency": "INR", - "custom_order": { - "is_custom_order": true, - "manufacturing_time": 2, - "manufacturing_time_unit": "days" - }, - "departments": [ - 1 - ], - "description": "Tv", - "highlights": [ - "42 Inch" - ], - "hsn_code": "11111111", - "id": "5f4f2f6371a5970001f13655", - "image_nature": "standard", - "images": [ - { - "aspect_ratio": "16:25", - "aspect_ratio_f": 0.64, - "secure_url": "https://hdn-1.addsale.com/x0/products/pictures/item/free/135x0/dcizgsG_Y-Tv-Set.png", - "url": "https://hdn-1.addsale.com/x0/products/pictures/item/free/135x0/dcizgsG_Y-Tv-Set.png" - } - ], - "is_dependent": false, - "is_image_less_product": false, - "is_physical": true, - "is_set": true, - "item_code": "TVSET111", - "item_type": "set", - "l3_mapping": [ - "electronics>qled_television" - ], - "media": [ - { - "type": "image", - "url": "https://hdn-1.addsale.com/x0/products/pictures/item/free/135x0/dcizgsG_Y-Tv-Set.png" - } - ], - "modified_by": { - "user_id": "xxxxxxxxxxx", - "username": "xxxxxxxxxx" - }, - "modified_on": "2021-04-02T15:43:59.410000Z", - "multi_size": true, - "name": "TV Set", - "no_of_boxes": 1, - "price": { - "effective": { - "max": 25000, - "min": 25000 - }, - "marked": { - "max": 35000, - "min": 35000 - } - }, - "product_group_tag": [], - "product_publish": { - "is_set": false, - "product_online_date": "2021-04-02T15:43:59.410000Z" - }, - "return_config": { - "returnable": false, - "time": 0, - "unit": "days" - }, - "short_description": "", - "size_guide": "slim-fit-shirts-for-men", - "sizes": [ - { - "size": "FGX33, GHX33 (66 PCS)", - "store_count": 1 - }, - { - "size": "XSE WE23X100 (100 PCS)", - "store_count": 2 - }, - { - "size": "XSEX100 (100 PCS)", - "store_count": 3 - }, - { - "size": "XXLX23, MX11, LX67, XLX45 (146 PCS)", - "store_count": 3 - } - ], - "slug": "tv-set", - "stage": "verified", - "synonyms": [], - "tags": [], - "teaser_tag": {}, - "template_tag": "television", - "trader": [ - { - "address": [ - "sdfdsfsdf" - ], - "name": "asdasd" - } - ], - "trader_type": "Packer", - "uid": 7501547, - "variants": {}, - "verification_status": "pending", - "verified_by": { - "user_id": "0", - "username": "Silverbolt" - }, - "verified_on": "2020-07-23T04:20:43.810000Z" - } - ], - "page": { - "current": 1, - "has_next": false, - "has_previous": false, - "item_total": 1, - "size": 1, - "type": "number" - } - } -} -``` -
+```
@@ -17029,27 +10990,23 @@ Product Meta. See example below for details --- -### getProductsInPriceFactoryByZoneId - +### getListingConfigurations +Get the details of the application configured configurations of listing config types. ```javascript // Promise -const promise = platformClient.application("").catalog.getProductsInPriceFactoryByZoneId({ id : value, - zoneId : value, - itemId : value, - sellerIdentifier : value, +const promise = platformClient.application("").catalog.getListingConfigurations({ configType : value, pageNo : value, - pageSize : value }); + pageSize : value, + search : value }); // Async/Await -const data = await platformClient.application("").catalog.getProductsInPriceFactoryByZoneId({ id : value, - zoneId : value, - itemId : value, - sellerIdentifier : value, +const data = await platformClient.application("").catalog.getListingConfigurations({ configType : value, pageNo : value, - pageSize : value }); + pageSize : value, + search : value }); ``` @@ -17058,25 +11015,23 @@ const data = await platformClient.application("").catalog.getPro | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| id | string | yes | An `id` is a unique identifier for a particular price factory. | -| zoneId | string | yes | An `zone_id` is a unique identifier for a particular price factory zone. | -| itemId | boolean | no | gets price factory filtered by item_id. | -| sellerIdentifier | string | no | gets price factory filtered by seller_identifier. | +| configType | string | yes | A `config_type` is an identifier that defines a specific type of configuration. | | pageNo | number | no | The page number to navigate through the given set of results. | -| pageSize | number | no | Number of items to retrieve in each page. Default is 12. | +| pageSize | number | no | Number of items to retrieve in each page. Default is 12. | +| search | string | no | Get configuration list filtered by `search` string. | -This API allows to get products in price factory. +Get the details of the application configured configurations of listing config types. *Returned Response:* -[CreateAppPriceFactoryProductsResponse](#CreateAppPriceFactoryProductsResponse) +[GetConfigResponse](#GetConfigResponse) -Success response +configuration details for catalog. See example below or refer `GetConfigResponseSchema` for details @@ -17086,43 +11041,99 @@ Success response ```json { - "items": [ + "data": [ { - "item_id": 1234, - "name": "Test-01", - "item_code": "TEST-01", - "brand": "Test Brand", - "category": "Abayas", - "factory_type_id": [ - "507f1f77bcf86cd799439011" - ], - "media": [ + "app_id": "5d65089e031f9029f8e8dc2f", + "attributes": [ { - "type": "image", - "url": "/x0/products/pictures/item/free/original/Hsw-U3Kut-Test-01.jpeg" - } - ], - "sizes": [ + "display_type": "text", + "is_active": true, + "key": "item_code", + "name": "Item Code", + "priority": 1, + "slug": "item_code" + }, { - "seller-identifier": "qwert123", - "size_name": "XL", - "marked_price": 1500, - "selling_price": 1400, - "currency": "INR", - "is_active": true + "display_type": "text", + "is_active": true, + "key": "brand", + "name": "Brand", + "priority": 2, + "slug": "brand" } ], - "company_sizes": [ + "id": "62a84b90bd43c0fe4cf53574", + "is_active": true, + "is_default": false, + "name": "Test Group12 ", + "priority": 1, + "slug": "test-group12-31", + "template_slugs": [ + "atesttemplate" + ] + }, + { + "app_id": "5d65089e031f9029f8e8dc2f", + "attributes": [ + { + "display_type": "text", + "is_active": true, + "key": "item_code", + "name": "Item Code", + "priority": 1, + "slug": "item_code" + }, + { + "display_type": "text", + "is_active": true, + "key": "brand", + "name": "Brand", + "priority": 2, + "slug": "brand" + }, + { + "display_type": "text", + "is_active": true, + "key": "country_of_origin", + "name": "Country Of Origin", + "priority": 3, + "slug": "country_of_origin" + }, + { + "display_type": "text", + "is_active": true, + "key": "image_nature", + "name": "Image Type", + "priority": 4, + "slug": "image_nature" + }, { - "seller-identifier": "qwert123", - "size_name": "XL", - "marked_price": 1200, - "selling_price": 1100, - "currency": "INR" + "display_type": "text", + "is_active": true, + "key": "discount", + "name": "Discount", + "priority": 5, + "slug": "discount" } + ], + "id": "62a84b9ebd43c0fe4cf53576", + "is_active": true, + "is_default": false, + "name": "ET", + "priority": 2, + "slug": "et14", + "template_slugs": [ + "atesttemplate" ] } - ] + ], + "page": { + "current": 1, + "has_next": false, + "next": 2, + "total_count": 2, + "type": "number" + } } ``` @@ -17138,17 +11149,17 @@ Success response --- -### getQueryFilters -Get query filters to configure a collection +### getMarketplaceOptinDetail +Get opt-in infomation. ```javascript // Promise -const promise = platformClient.application("").catalog.getQueryFilters(); +const promise = platformClient.catalog.getMarketplaceOptinDetail(); // Async/Await -const data = await platformClient.application("").catalog.getQueryFilters(); +const data = await platformClient.catalog.getMarketplaceOptinDetail(); ``` @@ -17156,418 +11167,26 @@ const data = await platformClient.application("").catalog.getQue -Get query filters to configure a collection +Use this API to fetch opt-in information for all the platforms. If successful, returns a logs in the response body as specified in `GetOptInPlatformSchema` *Returned Response:* -[GetQueryFiltersResponse](#GetQueryFiltersResponse) - -The attached items of an collection. See example below or refer `GetQueryFiltersResponse` for details - +[GetOptInPlatform](#GetOptInPlatform) +See example below or refer `GetOptInPlatformSchema` for details. -
-  Examples:
-  success +  Example: ```json -{ - "value": { - "filters": [ - { - "key": { - "display": "Department", - "kind": "multivalued", - "logo": "https://hdn-1.fynd.com/global/menu-icons/Department.png", - "name": "department" - }, - "values": [ - { - "count": 2113, - "display": "Men's Fashion", - "is_selected": false, - "logo": { - "type": "image", - "url": "https://hdn-1.fynd.com/media/category_tab_icons/department/Men.png" - }, - "value": "men" - } - ] - }, - { - "key": { - "display": "Category", - "kind": "multivalued", - "logo": "https://hdn-1.fynd.com/global/menu-icons/Category.png", - "name": "category" - }, - "values": [ - { - "count": 968, - "display": "T-Shirts", - "is_selected": false, - "logo": "https://hdn-1.fynd.com/media/logo/category/original/15442_57fdc97abfd248aaaf8841f097a4ed67.jpg", - "value": "192" - } - ] - }, - { - "key": { - "display": "Category L1", - "kind": "multivalued", - "logo": "https://hdn-1.fynd.com/global/menu-icons/Category.png", - "name": "category" - }, - "values": [ - { - "count": 968, - "display": "T-Shirts", - "is_selected": false, - "logo": "https://hdn-1.fynd.com/media/logo/category/original/15442_57fdc97abfd248aaaf8841f097a4ed67.jpg", - "value": "192" - } - ] - }, - { - "key": { - "display": "Category L2", - "kind": "multivalued", - "logo": "https://hdn-1.fynd.com/global/menu-icons/Category.png", - "name": "category" - }, - "values": [ - { - "count": 968, - "display": "T-Shirts", - "is_selected": false, - "logo": "https://hdn-1.fynd.com/media/logo/category/original/15442_57fdc97abfd248aaaf8841f097a4ed67.jpg", - "value": "192" - } - ] - }, - { - "key": { - "display": "Size", - "kind": "multivalued", - "logo": "https://hdn-1.fynd.com/global/menu-icons/Sizes.png", - "name": "sizes" - }, - "values": [ - { - "count": 1438, - "display": "S", - "is_selected": false, - "value": "S" - } - ] - }, - { - "key": { - "display": "Brand", - "kind": "multivalued", - "logo": "https://hdn-1.fynd.com/global/menu-icons/Brand%20ID.png", - "name": "brand" - }, - "values": [ - { - "count": 4263, - "display": "Superdry", - "is_selected": false, - "logo": "https://hdn-1.fynd.com/media/logo/brand/original/1008_238113b8e11448f792e9bf860aac30f2.jpg", - "value": "235" - } - ] - }, - { - "key": { - "display": "Rating", - "kind": "multivalued", - "logo": "https://hdn-1.fynd.com/global/menu-icons/Rating.png", - "name": "rating" - }, - "values": [ - { - "count": 3, - "display": "5 ★", - "is_selected": false, - "value": "[4 TO *}" - } - ] - }, - { - "key": { - "display": "Company", - "kind": "multivalued", - "logo": "https://hdn-1.fynd.com/global/menu-icons/Store%20ID%20List.png", - "name": "company_id_list" - }, - "values": [ - { - "count": 4262, - "display": "RELIANCE BRANDS LIMITED", - "is_selected": false, - "value": "46" - } - ] - }, - { - "key": { - "display": "Store Ids", - "kind": "multivalued", - "logo": "https://hdn-1.fynd.com/global/menu-icons/Store%20ID%20List.png", - "name": "store_id_list" - }, - "values": [ - { - "count": 1385, - "display": "PHOENIX, ,PALLADIUM, LOWER PAREL - 5410", - "is_selected": false, - "value": "2201" - } - ] - }, - { - "key": { - "display": "Image", - "kind": "multivalued", - "logo": "https://hdn-1.fynd.com/global/menu-icons/image%20Nature.png", - "name": "image_nature" - }, - "values": [ - { - "count": 3111, - "display": "Good Quality", - "is_selected": false, - "value": "standard" - }, - { - "count": 1152, - "display": "No Image", - "is_selected": false, - "value": "default" - } - ] - }, - { - "key": { - "display": "Set", - "kind": "multivalued", - "logo": "", - "name": "is_set" - }, - "values": [ - { - "count": 4263, - "display": "No", - "is_selected": false, - "value": false - } - ] - }, - { - "key": { - "display": "Product Fit", - "kind": "multivalued", - "logo": "", - "name": "product_fit" - }, - "values": [ - { - "count": 14, - "display": "Regular", - "is_selected": false, - "value": "Regular" - } - ] - }, - { - "key": { - "display": "Primary Material", - "kind": "multivalued", - "logo": "", - "name": "primary_material" - }, - "values": [ - { - "count": 1246, - "display": "Cotton", - "is_selected": false, - "value": "Cotton" - } - ] - }, - { - "key": { - "display": "Gender", - "kind": "multivalued", - "logo": "", - "name": "gender" - }, - "values": [ - { - "count": 2125, - "display": "Men", - "is_selected": false, - "value": "Men" - }, - { - "count": 1492, - "display": "Women", - "is_selected": false, - "value": "Women" - } - ] - }, - { - "key": { - "display": "Primary Colour", - "kind": "multivalued", - "logo": "", - "name": "primary_color" - }, - "values": [ - { - "count": 1403, - "display": "Multi", - "is_selected": false, - "value": "Multi" - } - ] - }, - { - "key": { - "display": "Size Depth", - "kind": "range", - "logo": "https://hdn-1.fynd.com/global/menu-icons/Size%20Depth.png", - "name": "size_depth" - }, - "values": [ - { - "count": 4263, - "display": "0 - 9", - "display_format": "{} - {}", - "is_selected": false, - "max": 9, - "min": 0, - "query_format": "[{} TO {}]", - "selected_max": 9, - "selected_min": 0 - } - ] - }, - { - "key": { - "display": "Price", - "kind": "range", - "logo": "https://hdn-1.fynd.com/global/menu-icons/Min%20price%20effective.png", - "name": "min_price_effective" - }, - "values": [ - { - "count": 4263, - "currency_code": "INR", - "currency_symbol": "₹", - "is_selected": false, - "max": 24999, - "min": 398, - "query_format": "[{},INR TO {},INR]", - "selected_max": 24998.77, - "selected_min": 398.8 - } - ] - }, - { - "key": { - "display": "Discount", - "kind": "range", - "logo": "https://hdn-1.fynd.com/global/menu-icons/Platform%20Discount.png", - "name": "platform_discount" - }, - "values": [ - { - "count": 4263, - "display": "0 - 50", - "display_format": "{} - {}", - "is_selected": false, - "max": 50, - "min": 0, - "query_format": "[{} TO {}]", - "selected_max": 50, - "selected_min": 0 - } - ] - } - ], - "sort_on": [ - { - "display": "Latest Products", - "is_selected": true, - "logo": "https://hdn-1.fynd.com/global/menu-icons/Latest%20Products.png", - "name": "Latest Products", - "value": "latest" - }, - { - "display": "Popularity", - "is_selected": false, - "logo": "https://hdn-1.fynd.com/global/menu-icons/Popularity.png", - "name": "Popularity", - "value": "popular" - }, - { - "display": "Price Low to High", - "is_selected": false, - "logo": "https://hdn-1.fynd.com/global/menu-icons/Price%20High%20to%20Low.png", - "name": "Price Low to High", - "value": "price_asc" - }, - { - "display": "Price High to Low", - "is_selected": false, - "logo": "https://hdn-1.fynd.com/global/menu-icons/Price%20High%20to%20Low.png", - "name": "Price High to Low", - "value": "price_dsc" - }, - { - "display": "Discount Low to High", - "is_selected": false, - "logo": "https://hdn-1.fynd.com/global/menu-icons/Discount%20Low%20to%20High.png", - "name": "Discount Low to High", - "value": "discount_asc" - }, - { - "display": "Discount High to Low", - "is_selected": false, - "logo": "https://hdn-1.fynd.com/global/menu-icons/Discount%20Low%20to%20High.png", - "name": "Discount High to Low", - "value": "discount_dsc" - }, - { - "display": "Rating", - "is_selected": false, - "logo": "https://hdn-1.fynd.com/global/menu-icons/Rating.png", - "name": "Rating", - "value": "rating_dsc" - }, - { - "display": "Size Depth (High to Low)", - "is_selected": false, - "logo": "https://hdn-1.fynd.com/global/menu-icons/Size%20Depth.png", - "name": "Size Depth (High to Low)", - "value": "depth_desc" - } - ] - } -} -``` -
+```
@@ -17581,17 +11200,17 @@ The attached items of an collection. See example below or refer `GetQueryFilters --- -### getSearchConfiguration -List search configuration for an application +### getMarketplaces +List all marketplaces ```javascript // Promise -const promise = platformClient.application("").catalog.getSearchConfiguration(); +const promise = platformClient.catalog.getMarketplaces(); // Async/Await -const data = await platformClient.application("").catalog.getSearchConfiguration(); +const data = await platformClient.catalog.getMarketplaces(); ``` @@ -17599,51 +11218,59 @@ const data = await platformClient.application("").catalog.getSea -This view allows you to add/modify searchable attributes for an application +This API allows to get marketplace information. *Returned Response:* -[GetSearchConfigurationResponse](#GetSearchConfigurationResponse) - -Search configuration for the specified application. See example below or refer `GetSearchConfigurationResponse` for details - +[GetAllMarketplaces](#GetAllMarketplaces) +List all Marketplace details. -
-  Examples:
-  success +  Example: ```json { - "value": { - "_id": "64f6ec9c6fcd148be1ddd29c", - "company_id": 1, - "application_id": "64c00b72c07acacc1357503b", - "searchable_attributes": [], - "created_on": "2023-09-05T08:53:48.466071", - "created_by": { - "username": "919987119900_30638", - "user_id": "a37523d27344c3ba7b4f982d" - }, - "modified_on": "2023-09-05T08:53:48.466081", - "modified_by": { - "username": "919987119900_30638", - "user_id": "a37523d27344c3ba7b4f982d" + "items": [ + { + "brand_ids": [], + "app_id": "000000000000000000000001", + "enabled": true, + "created_by": { + "username": "test@gofynd.com", + "user_id": "ef56cde2dc3227c44bcb73fd" + }, + "created_on": "2023-07-11T18:27:10.477000", + "opt_level": "company", + "company_id": 1, + "modified_by": { + "username": "test@gofynd.com", + "user_id": "ef56cde2dc3227c44bcb73fd" + }, + "store_ids": [], + "modified_on": "2023-07-11T18:27:10.477000", + "platform": "fynd", + "_id": "64ad9efe8069f0f413265003" } + ], + "page": { + "current": 1, + "has_next": false, + "has_previous": false, + "item_total": 6, + "size": 1, + "type": "number" } } ```
-
- @@ -17655,17 +11282,17 @@ Search configuration for the specified application. See example below or refer ` --- -### getSearchKeywords -Get a Search Keywords Details +### getOptimalLocations +Location Reassignment ```javascript // Promise -const promise = platformClient.application("").catalog.getSearchKeywords({ id : value }); +const promise = platformClient.catalog.getOptimalLocations({ body : value }); // Async/Await -const data = await platformClient.application("").catalog.getSearchKeywords({ id : value }); +const data = await platformClient.catalog.getOptimalLocations({ body : value }); ``` @@ -17673,57 +11300,51 @@ const data = await platformClient.application("").catalog.getSea | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| id | string | yes | A `id` is a unique identifier for a particular detail. Pass the `id` of the keywords which you want to retrieve. | +| --------- | ----- | -------- | ----------- | +| body | [AssignStore](#AssignStore) | yes | Request body | -Get the details of a words by its `id`. If successful, returns a Collection resource in the response body specified in `GetSearchWordsDetailResponseSchema` *Returned Response:* -[GetSearchWordsData](#GetSearchWordsData) - -The Collection object. See example below or refer `GetSearchWordsData` for details - +[StoreAssignResponse](#StoreAssignResponse) +Returns a success response -
-  Examples:
-  success +  Example: ```json { - "value": { - "_custom_json": {}, - "app_id": "000000000000000000000001", - "is_active": true, - "result": { - "query": { - "department": [ - "men" - ] - }, - "sort_on": "popular" - }, - "uid": "602fa1e9a596ce349563f6b9", - "words": [ - "sds" - ] - } + "_id": "61161830f1061e7c7f81d8ed", + "article_assignment": { + "level": "multi-company", + "strategy": "app-config" + }, + "company_id": 783, + "index": 0, + "item_id": 75252658, + "price_effective": 995, + "price_marked": 995, + "quantity": 1, + "s_city": "NOIDA", + "size": "OS", + "status": true, + "store_id": 11550, + "store_pincode": 201303, + "strategy_wise_listing": [], + "uid": "11550_000000410234883001" } ```
-
- @@ -17735,92 +11356,216 @@ The Collection object. See example below or refer `GetSearchWordsData` for detai --- -### getSearchRerank -Get search rerank for an application +### getProduct +Get a single product. ```javascript // Promise -const promise = platformClient.application("").catalog.getSearchRerank(); +const promise = platformClient.catalog.getProduct({ itemId : value, + brandUid : value, + itemCode : value }); // Async/Await -const data = await platformClient.application("").catalog.getSearchRerank(); +const data = await platformClient.catalog.getProduct({ itemId : value, + brandUid : value, + itemCode : value }); ``` +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| itemId | number | yes | Item Id of the product. | +| brandUid | number | no | Brand Id of the product. | +| itemCode | string | no | Item code of the product. | -This view allows you to create search rerank attributes for an application -*Returned Response:* +This API helps to get data associated to a particular product. +*Returned Response:* -[GetSearchRerankResponse](#GetSearchRerankResponse) -List of custom search keywords. See example below or refer `GetSearchRerankResponse` for details +[SingleProductResponse](#SingleProductResponse) +Product object. See example below or refer `product.utils.format_product_response` for details -
-  Examples:
-  success +  Example: ```json { - "value": { - "page": { - "current": 1, - "type": "number", - "size": 1, - "has_previous": false, - "has_next": false, - "item_total": 1 + "data": { + "_custom_json": {}, + "all_company_ids": [ + 835 + ], + "all_identifiers": [ + "TEST-015434" + ], + "attributes": { + "essential": "No", + "gender": [ + "Men" + ], + "marketer-address": "dfg", + "marketer-name": "gfdfd", + "pattern": "Printed", + "primary_color": "Black", + "primary_material": "Cotton Blend" + }, + "brand": { + "logo": { + "aspect_ratio": "1:1", + "aspect_ratio_f": 1, + "secure_url": "", + "url": "" + }, + "name": "product1", + "uid": 3272 + }, + "brand_uid": 3272, + "category": { + "l1": { + "name": "Ethnic Wear", + "slug": "ethnic-wear", + "uid": 443 + }, + "l2": { + "name": "Hijabs & Abayas", + "slug": "hijabs-abayas", + "uid": 414 + }, + "l3": { + "name": "Abayas", + "slug": "abayas", + "uid": 441 + } + }, + "category_slug": "abayas", + "category_uid": 441, + "country_of_origin": "India", + "created_by": { + "super_user": false, + "user_id": "757bf08ff5dd4ba95f8778cf", + "username": "mdnehalahmed_fynd_external_com_90136" + }, + "created_on": "2023-02-16T09:37:31.304000", + "currency": "INR", + "custom_order": { + "is_custom_order": false, + "manufacturing_time": 0, + "manufacturing_time_unit": "days" + }, + "departments": [ + 21 + ], + "description": "", + "highlights": [], + "id": "63edf95bf314486d44a6b361", + "is_active": true, + "is_dependent": false, + "is_expirable": false, + "is_image_less_product": false, + "is_set": false, + "item_code": "TEST-01", + "item_type": "standard", + "media": [ + { + "type": "image", + "url": "/x0/products/pictures/item/free/original/Hsw-U3Kut-Test-01.jpeg" + } + ], + "modified_by": { + "super_user": false, + "user_id": "757bf08ff5dd4ba95f8778cf", + "username": "mdnehalahmed_fynd_external_com_90136" + }, + "modified_on": "2023-02-16T09:37:31.304000", + "multi_size": false, + "name": "Test-01", + "net_quantity": {}, + "no_of_boxes": 1, + "product_group_tag": [], + "product_publish": { + "is_set": false, + "product_online_date": "2023-02-16T09:37:29.620000Z" + }, + "return_config": { + "returnable": false, + "time": 0, + "unit": "days" }, - "items": [ + "short_description": "", + "size_guide": "", + "sizes": [ { - "created_on": "2023-12-24T07:10:55.725000", - "modified_on": "2023-12-24T07:10:55.725000", - "words": [ - "test" + "_custom_json": {}, + "brand_uid": 3272, + "company_id": 835, + "created_on": "2023-02-16T09:37:31.352000", + "currency": "INR", + "id": "63edf95bf314486d44a6b364", + "identifiers": [ + { + "gtin_type": "ean", + "gtin_value": "TEST-015434", + "primary": true + } ], - "app_id": "64aed475db2cfb5b8a9f623d", - "modified_by": { - "username": "rohanshah@fynd.com", - "user_id": "5e199e6998cfe1776f1385dc" - }, - "ranking": { - "boost": [ - { - "attribute_value": "test", - "attribute_key": "l3_category_slugs" - } - ] - }, - "created_by": { - "username": "rohanshah@fynd.com", - "user_id": "5e199e6998cfe1776f1385dc" - }, - "_id": "6587d97f00f4aedbd0d1b382", - "is_active": true, - "id": "6587d97f00f4aedbd0d1b382" + "is_set": false, + "item_code": "TEST-01", + "item_dimensions_unit_of_measure": "cm", + "item_height": 10, + "item_length": 10, + "item_weight": 10, + "item_weight_unit_of_measure": "gram", + "item_width": 10, + "modified_on": "2023-02-16T09:37:31.352000", + "price": 10, + "price_effective": 10, + "price_transfer": 0, + "seller_identifier": "TEST-015434", + "size": "OS", + "track_inventory": true } - ] + ], + "slug": "test-01-7542894", + "stage": "pending", + "tags": [], + "tax_identifier": { + "hsn_code": "97211110", + "hsn_code_id": "63d78f483c1714abdd406766", + "reporting_hsn": "97211110H1" + }, + "teaser_tag": {}, + "template_tag": "ethnicwear", + "trader": [ + { + "address": [ + "fdgh" + ], + "name": "fgt", + "type": "Manufacturer" + } + ], + "uid": 7542894, + "variant_media": {}, + "variants": {} } } ```
-
- @@ -17832,17 +11577,19 @@ List of custom search keywords. See example below or refer `GetSearchRerankRespo --- -### getSearchRerankDetail -Get search rerank for an application +### getProductAssetsInBulk +Get a list of all bulk asset jobs. ```javascript // Promise -const promise = platformClient.application("").catalog.getSearchRerankDetail({ id : value }); +const promise = platformClient.catalog.getProductAssetsInBulk({ pageNo : value, + pageSize : value }); // Async/Await -const data = await platformClient.application("").catalog.getSearchRerankDetail({ id : value }); +const data = await platformClient.catalog.getProductAssetsInBulk({ pageNo : value, + pageSize : value }); ``` @@ -17850,66 +11597,71 @@ const data = await platformClient.application("").catalog.getSea | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| id | string | yes | An `id` is the identifier for a particular search rerank configuration. channel. | +| --------- | ----- | -------- | ----------- | +| pageNo | number | no | The page number to navigate through the given set of results | +| pageSize | number | no | Number of items to retrieve in each page. Default is 12. | -This view allows you to retrieve search rerank attribute detail for an application +This API helps to get bulk asset jobs data associated to a particular company. *Returned Response:* -[GetSearchRerankDetailResponse](#GetSearchRerankDetailResponse) - -Create search rerank configuration. See example below or refer `GetSearchRerankDetailResponse` for details - +[BulkAssetResponse](#BulkAssetResponse) +List of bulk asset jobs List. See `BulkUtil.modify_batch_response` for details -
-  Examples:
-  success +  Example: ```json { - "value": { - "ranking": { - "boost": [ - { - "attribute_key": "l3_category_slugs", - "attribute_value": "testspec3" - } - ] - }, - "is_active": true, - "modified_by": { - "user_id": "5e199e6998cfe1776f1385dc", - "username": "rohanshah@fynd.com" - }, - "created_by": { - "user_id": "5e199e6998cfe1776f1385dc", - "username": "rohanshah@fynd.com" - }, - "words": [ - "testspec3" - ], - "app_id": "64aed475db2cfb5b8a9f623d", - "modified_on": "2023-12-25T16:08:48.694000", - "created_on": "2023-12-25T16:08:48.694000", - "id": "6589a91055565ca43767b2e2" + "items": [ + { + "cancelled": 0, + "cancelled_records": [], + "company_id": 61, + "created_by": { + "full_name": "nikhil mhatre", + "user_id": "23175373", + "username": "nikhilmhatre_gofynd_com_28085_23175373" + }, + "created_on": "2021-02-25T16:45:22.425000Z", + "failed": 0, + "failed_records": [], + "file_path": "https://hdn-1.fynd.com/company/61/self/documents/product-import/free/original/ZUSmmXHmZ-U8mTYx3KR-Nike-hoddie.zip", + "id": "6037d422aa879600015c6d1d", + "is_active": true, + "modified_by": { + "user_id": "23175373", + "username": "nikhilmhatre_gofynd_com_28085_23175373" + }, + "modified_on": "2021-02-25T16:47:24.551000Z", + "retry": 1, + "stage": "completed", + "succeed": 1, + "total": 1, + "tracking_url": "https://api.fynd.com/common/assets/v1/asset/status/extract-zips/3296" + } + ], + "page": { + "current": 1, + "has_next": false, + "has_previous": false, + "item_total": 1, + "size": 3, + "type": "number" } } ```
-
- @@ -17921,17 +11673,19 @@ Create search rerank configuration. See example below or refer `GetSearchRerankD --- -### getSellerInsights -Analytics data of catalog and inventory that are being cross-selled. +### getProductAttributes +Get list of all the attributes by their l3_categories ```javascript // Promise -const promise = platformClient.catalog.getSellerInsights({ sellerAppId : value }); +const promise = platformClient.catalog.getProductAttributes({ category : value, + filter : value }); // Async/Await -const data = await platformClient.catalog.getSellerInsights({ sellerAppId : value }); +const data = await platformClient.catalog.getProductAttributes({ category : value, + filter : value }); ``` @@ -17940,43 +11694,417 @@ const data = await platformClient.catalog.getSellerInsights({ sellerAppId : val | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| sellerAppId | string | yes | Id of the seller application which is serving the invetory/catalog of the company | +| category | string | yes | It is the name of the l3 cateogry | +| filter | boolean | no | If true, returns filtered values, else returns all the attributes | -Analytics data of catalog and inventory that are being cross-selled. +This API allows to list all the attributes by their l3_categories. *Returned Response:* -[CrossSellingResponse](#CrossSellingResponse) - -Response Data - +[ProductAttributesResponse](#ProductAttributesResponse) +Size guide object. See example below or refer `ProductAttributesResponseSchema` for details -
-  Examples:
-  success +  Example: ```json { - "value": { - "articles": 18, - "products": 18 - } + "items": [ + { + "created_by": { + "user_id": "8ec76d9df98f4246a9d6e5a6", + "username": "anveshreddy_fynd_external_com_85084" + }, + "created_on": "2022-05-25T16:15:01.276000Z", + "departments": [ + "men-s-fashion" + ], + "description": "to test the attribute that represents area", + "details": { + "display_type": "text" + }, + "filters": { + "indexing": false + }, + "id": "628e5605c71589dba709c365", + "modified_by": { + "user_id": "8ec76d9df98f4246a9d6e5a6", + "username": "anveshreddy_fynd_external_com_85084" + }, + "modified_on": "2022-05-25T16:15:01.276000Z", + "name": "test number area", + "schema": { + "allowed_values": [], + "format": "", + "multi": true, + "range": {}, + "type": "int" + }, + "slug": "test-number-area", + "unit": "ft**2", + "variant": false + }, + { + "created_by": { + "user_id": "8ec76d9df98f4246a9d6e5a6", + "username": "anveshreddy_fynd_external_com_85084" + }, + "created_on": "2022-05-05T09:40:00.453000Z", + "departments": [ + "men-s-fashion", + "anvesh-department" + ], + "description": "tells the power of the motor", + "details": { + "display_type": "text" + }, + "enabled_for_end_consumer": true, + "filters": { + "indexing": true, + "priority": 26 + }, + "id": "62739b7043385c1f314d4868", + "logo": "https://hdn-1.jiomarketx0.de/x0/products/pictures/attribute/logo/original/UYTUHgLGj-Color.png", + "modified_by": { + "user_id": "8ec76d9df98f4246a9d6e5a6", + "username": "anveshreddy_fynd_external_com_85084" + }, + "modified_on": "2022-05-05T09:40:00.453000Z", + "name": "Motor Power", + "schema": { + "allowed_values": [], + "format": "", + "mandatory": true, + "multi": false, + "range": { + "max": 10, + "min": 1 + }, + "type": "int" + }, + "slug": "motor-power", + "unit": "hp", + "variant": true + }, + { + "created_by": { + "user_id": "8ec76d9df98f4246a9d6e5a6", + "username": "anveshreddy_fynd_external_com_85084" + }, + "created_on": "2022-05-05T08:56:59.483000Z", + "departments": [ + "men-s-fashion", + "electronics-test", + "anvesh-department", + "fashion", + "test1" + ], + "description": "describes the size of the item", + "details": { + "display_type": "text" + }, + "enabled_for_end_consumer": true, + "filters": { + "indexing": true, + "priority": 25 + }, + "id": "6273915b43385c1f314d4867", + "logo": "https://hdn-1.jiomarketx0.de/x0/products/pictures/attribute/logo/original/UYTUHgLGj-Color.png", + "modified_by": { + "user_id": "8ec76d9df98f4246a9d6e5a6", + "username": "anveshreddy_fynd_external_com_85084" + }, + "modified_on": "2022-05-05T13:25:33.353000Z", + "name": "SIZE NEW", + "schema": { + "allowed_values": [ + "XS", + "S", + "M", + "L", + "XXL", + "XXXL" + ], + "format": "upper case", + "mandatory": true, + "multi": false, + "range": {}, + "type": "str" + }, + "slug": "size-new", + "variant": false + }, + { + "created_by": { + "user_id": "5d9aa3ca5acdcb33fdcc8472", + "username": "piyushsinha_fynd_external_com_34090" + }, + "created_on": "2022-04-13T13:35:53.611000Z", + "departments": [ + "men-s-fashion" + ], + "details": { + "display_type": "text" + }, + "filters": { + "indexing": false + }, + "id": "6256d1b9635e136dc2cb9a02", + "modified_by": { + "user_id": "5d9aa3ca5acdcb33fdcc8472", + "username": "piyushsinha_fynd_external_com_34090" + }, + "modified_on": "2022-04-13T13:35:53.611000Z", + "name": "White", + "schema": { + "allowed_values": [], + "format": "title case", + "multi": false, + "range": {}, + "type": "str" + }, + "slug": "white", + "variant": false + }, + { + "created_by": { + "user_id": "f6fccadda27e6b365b87c027", + "username": "jagadeshsahadevan_gofynd_com_66706" + }, + "created_on": "2022-03-24T07:16:59.998000Z", + "departments": [ + "men-s-fashion" + ], + "description": "Hello World", + "details": { + "display_type": "text" + }, + "filters": { + "indexing": false + }, + "id": "623c1aecb9e8edcfeb8d076a", + "modified_by": { + "user_id": "f6fccadda27e6b365b87c027", + "username": "jagadeshsahadevan_gofynd_com_66706" + }, + "modified_on": "2022-03-24T07:16:59.998000Z", + "name": "Test Attributes", + "schema": { + "allowed_values": [ + "A", + "B" + ], + "format": "", + "multi": true, + "range": {}, + "type": "str" + }, + "slug": "test-attributes", + "variant": false + }, + { + "created_by": { + "user_id": "59ad6a452775bfd63674f0a5", + "username": "rockypatro_gofynd_com_32787" + }, + "created_on": "2022-03-17T14:54:41.251000Z", + "departments": [ + "men-s-fashion" + ], + "description": "Any specific care instruction note or Safety instructions that needs to be followed", + "details": { + "display_type": "text" + }, + "enabled_for_end_consumer": true, + "filters": { + "indexing": true, + "priority": 9 + }, + "id": "62334bb1d6b144588682e1c0", + "modified_by": { + "user_id": "59ad6a452775bfd63674f0a5", + "username": "rockypatro_gofynd_com_32787" + }, + "modified_on": "2022-03-17T14:54:41.251000Z", + "name": "Care Instructions", + "schema": { + "allowed_values": [], + "format": "", + "multi": false, + "range": {}, + "type": "str" + }, + "slug": "care-instructions", + "variant": false + }, + { + "created_by": { + "user_id": "59ad6a452775bfd63674f0a5", + "username": "rockypatro_gofynd_com_32787" + }, + "created_on": "2022-03-17T14:53:45.700000Z", + "departments": [ + "men-s-fashion" + ], + "description": "Specify the length of the sleeve. Select the value from the dropdown", + "details": { + "display_type": "text" + }, + "enabled_for_end_consumer": true, + "filters": { + "indexing": true, + "priority": 8 + }, + "id": "62334b79d6b144588682e1bf", + "modified_by": { + "user_id": "59ad6a452775bfd63674f0a5", + "username": "rockypatro_gofynd_com_32787" + }, + "modified_on": "2022-03-17T14:53:45.700000Z", + "name": "Sleeve Length", + "schema": { + "allowed_values": [ + "Sleeveless", + "Short", + "Long" + ], + "format": "", + "multi": false, + "range": {}, + "type": "str" + }, + "slug": "sleeve-length", + "variant": false + }, + { + "created_by": { + "user_id": "59ad6a452775bfd63674f0a5", + "username": "rockypatro_gofynd_com_32787" + }, + "created_on": "2022-03-17T14:52:12.367000Z", + "departments": [ + "men-s-fashion", + "women-s-fashion" + ], + "description": "A repeated form or design on the product, Select the values from the dropdown.", + "details": { + "display_type": "text" + }, + "enabled_for_end_consumer": true, + "filters": { + "indexing": true, + "priority": 7 + }, + "id": "62334b1cd6b144588682e1be", + "modified_by": { + "user_id": "f6fccadda27e6b365b87c027", + "username": "jagadeshsahadevan_gofynd_com_66706" + }, + "modified_on": "2022-03-24T07:23:32.752000Z", + "name": "Pattern", + "schema": { + "allowed_values": [ + "Solid", + "Printed", + "Ripped", + "Checked" + ], + "format": "", + "multi": false, + "range": {}, + "type": "str" + }, + "slug": "pattern", + "variant": false + }, + { + "created_by": { + "user_id": "59ad6a452775bfd63674f0a5", + "username": "rockypatro_gofynd_com_32787" + }, + "created_on": "2022-03-17T14:50:30.717000Z", + "departments": [ + "men-s-fashion", + "beauty-and-personal-care", + "electronics" + ], + "description": "Specify the Material name or Material composition of the product", + "details": { + "display_type": "text" + }, + "enabled_for_end_consumer": true, + "filters": { + "indexing": true, + "priority": 6 + }, + "id": "62334ab6d6b144588682e1bd", + "modified_by": { + "user_id": "59ad6a452775bfd63674f0a5", + "username": "rockypatro_gofynd_com_32787" + }, + "modified_on": "2022-03-17T14:50:30.717000Z", + "name": "Material", + "schema": { + "allowed_values": [], + "format": "", + "multi": false, + "range": {}, + "type": "str" + }, + "slug": "material", + "variant": false + }, + { + "created_by": { + "user_id": "59ad6a452775bfd63674f0a5", + "username": "rockypatro_gofynd_com_32787" + }, + "created_on": "2022-03-17T14:49:43.160000Z", + "departments": [ + "men-s-fashion", + "beauty-and-personal-care", + "electronics" + ], + "description": "Specify the colour of the product, if you have any customized colour name Specify in this column.", + "details": { + "display_type": "text" + }, + "enabled_for_end_consumer": true, + "filters": { + "indexing": true, + "priority": 5 + }, + "id": "62334a87d6b144588682e1bc", + "modified_by": { + "user_id": "59ad6a452775bfd63674f0a5", + "username": "rockypatro_gofynd_com_32787" + }, + "modified_on": "2022-03-17T14:49:43.160000Z", + "name": "Colour", + "schema": { + "allowed_values": [], + "format": "", + "multi": false, + "range": {}, + "type": "str" + }, + "slug": "colour", + "variant": false + } + ] } ```
-
- @@ -17988,17 +12116,21 @@ Response Data --- -### getSingleProductHSNCode -Hsn Code List. +### getProductBulkUploadHistory +Get a list of all bulk product upload jobs. ```javascript // Promise -const promise = platformClient.catalog.getSingleProductHSNCode({ reportingHsn : value }); +const promise = platformClient.catalog.getProductBulkUploadHistory({ search : value, + pageNo : value, + pageSize : value }); // Async/Await -const data = await platformClient.catalog.getSingleProductHSNCode({ reportingHsn : value }); +const data = await platformClient.catalog.getProductBulkUploadHistory({ search : value, + pageNo : value, + pageSize : value }); ``` @@ -18006,76 +12138,86 @@ const data = await platformClient.catalog.getSingleProductHSNCode({ reportingHs | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| reportingHsn | string | yes | reporting_hsn | +| --------- | ----- | -------- | ----------- | +| search | string | no | Search string to filter the results by batch id | +| pageNo | number | no | The page number to navigate through the given set of results | +| pageSize | number | no | Number of items to retrieve in each page. Default is 12. | -Hsn Code List. +This API helps to get bulk product upload jobs data. *Returned Response:* -[HSNDataInsertV2](#HSNDataInsertV2) - -Get specific HSN details. See example below or refer `HsnCodesListingResponseSchema` for details - +[ProductBulkRequestList](#ProductBulkRequestList) +List of bulk product upload jobs. See `BulkRequestGetSchema` for details -
-  Examples:
-  success +  Example: ```json { - "value": { - "country_code": "IN", - "created_by": { - "user_id": -1, - "username": "silverbolt" - }, - "created_on": "2022-02-24T09:14:03Z", - "description": "Data for HSN Code", - "hsn_code": "89787179", - "id": "6216ff0378da3f906fc82544", - "modified_by": { - "user_id": -1, - "username": "silverbolt" - }, - "modified_on": "2022-02-24T09:14:03Z", - "reporting_hsn": "89787179H29", - "taxes": [ - { - "cess": 23, - "effective_date": "2022-02-11T15:00:00", - "rate": 5, - "threshold": 10000 + "items": [ + { + "cancelled": 0, + "cancelled_records": [], + "company_id": 61, + "created_by": { + "full_name": "Anuja Yadav", + "user_id": "23218433", + "username": "yadavanuja039_gmail_com_82948" + }, + "created_on": "2021-03-12T08:11:06.848000Z", + "failed": 0, + "failed_records": [], + "file_path": "https://hdn-1.fynd.com/company/61/self/documents/product-import/free/original/mkX5ApRmw-sample_bulk_products_footwear.xlsx", + "id": "604b221a73bfa20001cb00e8", + "is_active": true, + "modified_by": { + "user_id": "0", + "username": "Silverbolt" }, - { - "effective_date": "2022-02-11T15:00:00", - "rate": 12, - "threshold": 12000 + "modified_on": "2021-03-12T08:11:08.646000Z", + "stage": "completed", + "succeed": 1, + "template": { + "banner": "https://hdn-1.fynd.com/seller/pictures/landscape-banner/original/nFPtXR_Beauty_&_Personal_Care_L.jpgf30455a5-d265-4382-b513-65afb9240320/nFPtXR_Beauty_and_Personal_Care_L.jpg", + "departments": [ + "men", + "women", + "kids", + "fashion" + ], + "description": "Footwear is a garment worn on the feet to protect against environmental adversities like heat or ground textures. Example: Sports Shoes", + "is_expirable": true, + "is_physical": true, + "logo": "https://hdn-1.fynd.com/seller/pictures/logo/original/9Y2UEp_ssssss.jpg7359e4c6-4c53-4dbe-a920-ef8ac658afb1/9Y2UEp_ssssss.jpg", + "name": "Footwear", + "slug": "footwear" }, - { - "effective_date": "2022-02-12T15:00:00", - "rate": 18, - "threshold": 5000 - } - ], - "type": "goods" + "template_tag": "footwear", + "total": 1 + } + ], + "page": { + "current": 1, + "has_next": true, + "has_previous": false, + "item_total": 251, + "size": 26, + "type": "number" } } ```
-
- @@ -18087,17 +12229,19 @@ Get specific HSN details. See example below or refer `HsnCodesListingResponseSch --- -### getSizeGuide -Get a single size guide. +### getProductBundle +List all Product Bundles ```javascript // Promise -const promise = platformClient.catalog.getSizeGuide({ id : value }); +const promise = platformClient.catalog.getProductBundle({ q : value, + slug : value }); // Async/Await -const data = await platformClient.catalog.getSizeGuide({ id : value }); +const data = await platformClient.catalog.getProductBundle({ q : value, + slug : value }); ``` @@ -18105,89 +12249,181 @@ const data = await platformClient.catalog.getSizeGuide({ id : value }); | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| id | string | yes | Id of the size guide to be viewed. | +| --------- | ----- | -------- | ----------- | +| q | string | no | A search string that is searched with product bundle name. | +| slug | Array | no | slugs of bundles to be retrieved. | -This API helps to get data associated to a size guide. +Get all product bundles for a particular company *Returned Response:* -[SizeGuideResponse](#SizeGuideResponse) - -Brand object. See example below or refer `SizeGuideResponseSchema` for details - +[GetProductBundleListingResponse](#GetProductBundleListingResponse) +List of bundle configured for a company. See example below or refer `GetProductBundleListingResponse` for details -
-  Examples:
-  success +  Example: ```json { - "value": { - "active": true, - "brand_id": 1, - "company_id": 1, - "created_by": { - "user_id": "-1", - "username": "silverbolt" + "items": [ + { + "choice": "multi", + "company_id": 1, + "created_by": { + "uid": "123", + "username": "917827311650_22960" + }, + "created_on": "2021-02-19 16:40:26.310007", + "id": "602f9ca2a596ce312f5956f9", + "is_active": true, + "logo": "http://g.com/poo.png/", + "meta": {}, + "modified_by": { + "uid": "123", + "username": "917827311650_22960" + }, + "modified_on": "2021-02-19 16:40:26.310027", + "name": "Bag", + "page_visibility": [ + "pdp" + ], + "products": [ + { + "allow_remove": true, + "auto_add_to_cart": false, + "auto_select": false, + "max_quantity": 1, + "min_quantity": 1, + "product_uid": 7500001 + } + ], + "same_store_assignment": true, + "slug": "bag" }, - "created_on": "2021-02-24T17:46:04.146000Z", - "guide": { - "meta": { - "headers": { - "col_1": { - "convertable": false, - "value": "Head" - }, - "col_2": { - "convertable": true, - "value": "Shoulder" - } - }, - "unit": "cm", - "values": [ - { - "col_1": "10", - "col_2": "20" - }, - { - "col_1": "12", - "col_2": "22" - }, - { - "col_1": "14", - "col_2": "24" - } - ] - } + { + "choice": "multi", + "company_id": 1, + "created_by": { + "uid": "123", + "username": "917827311650_22960" + }, + "created_on": "2021-02-19 16:21:35.091512", + "id": "602f9837a596ce2edf9868e2", + "is_active": true, + "logo": "http://g.com/poo.png/", + "meta": {}, + "modified_by": { + "uid": "123", + "username": "917827311650_22960" + }, + "modified_on": "2021-02-19 16:21:35.091540", + "name": "Bag", + "page_visibility": [ + "pdp" + ], + "products": [ + { + "allow_remove": true, + "auto_add_to_cart": false, + "auto_select": false, + "max_quantity": 1, + "min_quantity": 1, + "product_uid": 7500001 + } + ], + "same_store_assignment": true, + "slug": "bag" }, - "id": "60364384f08385bee776f83d", - "modified_by": { - "user_id": "123", - "username": "917827311650_22960" - }, - "modified_on": "2021-02-25T15:19:30.822000Z", - "name": "edited size guide", - "subtitle": "I am demo", - "tag": "demo", - "title": "Demo SG" + { + "choice": "multi", + "company_id": 1, + "created_by": { + "uid": "123", + "username": "917827311650_22960" + }, + "created_on": "2021-02-19 16:20:24.605207", + "id": "602f97f0a596ce2ead47cd0b", + "is_active": true, + "logo": "http://g.com/poo.png/", + "meta": {}, + "modified_by": { + "uid": "123", + "username": "917827311650_22960" + }, + "modified_on": "2021-02-19 16:20:24.605230", + "name": "Bag", + "page_visibility": [ + "pdp" + ], + "products": [ + { + "allow_remove": true, + "auto_add_to_cart": false, + "auto_select": false, + "max_quantity": 1, + "min_quantity": 1, + "product_uid": 7500001 + } + ], + "same_store_assignment": true, + "slug": "bag" + }, + { + "choice": "multi", + "company_id": 1, + "created_by": { + "uid": "123", + "username": "917827311650_22960" + }, + "created_on": "2021-02-19 16:16:46.196449", + "id": "602f9716a596ce2e415196df", + "is_active": true, + "logo": "http://g.com/poo.png/", + "meta": {}, + "modified_by": { + "uid": "123", + "username": "917827311650_22960" + }, + "modified_on": "2021-02-19 16:16:46.196467", + "name": "Bag", + "page_visibility": [ + "pdp" + ], + "products": [ + { + "allow_remove": true, + "auto_add_to_cart": false, + "auto_select": false, + "max_quantity": 1, + "min_quantity": 1, + "product_uid": 7500001 + } + ], + "same_store_assignment": true, + "slug": "bag" + } + ], + "page": { + "current": 1, + "has_next": false, + "has_previous": false, + "total": 1, + "total_item_count": 4, + "type": "number" } } ```
-
- @@ -18199,27 +12435,17 @@ Brand object. See example below or refer `SizeGuideResponseSchema` for details --- -### getSizeGuides -Get list of size guides +### getProductBundleDetail +Get a particular Product Bundle details ```javascript // Promise -const promise = platformClient.catalog.getSizeGuides({ active : value, - q : value, - brandId : value, - tag : value, - pageNo : value, - pageSize : value }); +const promise = platformClient.catalog.getProductBundleDetail({ id : value }); // Async/Await -const data = await platformClient.catalog.getSizeGuides({ active : value, - q : value, - brandId : value, - tag : value, - pageNo : value, - pageSize : value }); +const data = await platformClient.catalog.getProductBundleDetail({ id : value }); ``` @@ -18227,105 +12453,67 @@ const data = await platformClient.catalog.getSizeGuides({ active : value, | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| active | boolean | no | filter size guide on basis of active, in-active | -| q | string | no | Query that is to be searched. | -| brandId | number | no | Brand id that is to be searched. | -| tag | string | no | to filter size guide on basis of tag. | -| pageNo | number | no | The page number to navigate through the given set of results | -| pageSize | number | no | Number of items to retrieve in each page. Default is 10. | +| --------- | ----- | -------- | ----------- | +| id | string | yes | A `id` is a unique identifier for a particular detail. Pass the `id` of the keywords which you want to retrieve. | -This API allows to view all the size guides associated to the seller. +Get a particular Bundle details by its `id`. If successful, returns a Product bundle resource in the response body specified in `GetProductBundleResponse` *Returned Response:* -[ListSizeGuide](#ListSizeGuide) - -Size guide object. See example below or refer `ListSizeGuide` for details - +[GetProductBundleResponse](#GetProductBundleResponse) +The Collection object. See example below or refer `GetProductBundleResponse` for details -
-  Examples:
-  success +  Example: ```json { - "value": { - "items": [ - { - "active": true, - "brand_id": 2, - "company_id": 12, - "created_by": { - "user_id": "-1", - "username": "silverbolt" - }, - "created_on": "2021-02-24T17:46:04.146000Z", - "guide": { - "meta": { - "headers": { - "col_1": { - "convertable": false, - "value": "Head" - }, - "col_2": { - "convertable": true, - "value": "Shoulder" - } - }, - "unit": "cm", - "values": [ - { - "col_1": "10", - "col_2": "20" - }, - { - "col_1": "12", - "col_2": "22" - }, - { - "col_1": "14", - "col_2": "24" - } - ] - } - }, - "id": "60364384f08385bee776f83d", - "modified_by": { - "user_id": "-1", - "username": "silverbolt" + "choice": "multi", + "company_id": 1, + "logo": "http://g.com/poo.png/", + "meta": {}, + "name": "Bag", + "page_visibility": [ + "pdp" + ], + "products": [ + { + "allow_remove": true, + "auto_add_to_cart": false, + "auto_select": false, + "max_quantity": 1, + "min_quantity": 1, + "product_details": { + "attributes": { + "brand_name": "brand 2" }, - "modified_on": "2021-02-24T17:46:04.146000Z", - "name": "Demo", - "subtitle": "I am demo", - "tag": "demo", - "title": "Demo SG" - } - ], - "page": { - "current": 1, - "has_next": false, - "has_previous": false, - "item_count": 1, - "size": 1 + "country_of_origin": "India", + "images": [ + "https://hdn-1.addsale.com/x0/media/pictures/tagged_items/original/random_code_4/FE6DUR_000000.png" + ], + "item_code": "760B3BFF-4905-44B8-A50E-082829E7107F", + "name": "Some Phone", + "slug": "slug-1", + "uid": 7500001 + }, + "product_uid": 7500001 } - } + ], + "same_store_assignment": true, + "slug": "bag" } ```
-
- @@ -18337,21 +12525,17 @@ Size guide object. See example below or refer `ListSizeGuide` for details --- -### getStoreDetail -Get the Store details. +### getProductDetailBySlug +Get a product ```javascript // Promise -const promise = platformClient.catalog.getStoreDetail({ q : value, - pageNo : value, - pageSize : value }); +const promise = platformClient.application("").catalog.getProductDetailBySlug({ slug : value }); // Async/Await -const data = await platformClient.catalog.getStoreDetail({ q : value, - pageNo : value, - pageSize : value }); +const data = await platformClient.application("").catalog.getProductDetailBySlug({ slug : value }); ``` @@ -18359,193 +12543,150 @@ const data = await platformClient.catalog.getStoreDetail({ q : value, | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| q | string | no | The search related the store for the company id. | -| pageNo | number | no | The number of page for the company id. | -| pageSize | number | no | Number of records that can be seen on the page for the company id. | - - +| --------- | ----- | -------- | ----------- | +| slug | string | yes | The unique identifier of a product. i.e; `slug` of a product. You can retrieve these from the APIs that list products like **v1.0/products/** | -Get the details of the store associated with the company ID passed. -*Returned Response:* +Products are the core resource of an application. Products can be associated by categories, collections, brands and more. This API retrieves the product specified by the given **slug**. If successful, returns a Product resource in the response body specified in `ProductDetail` +*Returned Response:* -[OptinStoreDetails](#OptinStoreDetails) -See example below or refer `OptinStoreDetailsSchema` for details +[ProductDetail](#ProductDetail) +The Product object. See example below or refer `ProductDetail` for details. -
-  Examples:
-  success +  Example: ```json { - "value": { - "items": [ - { - "name": "Test Store 1", - "manager": { - "mobile_no": { - "number": "08104556147", - "country_code": 91 - }, - "name": "talha", - "email": "talha1891@gmail.com" + "attributes": { + "brand": "Barry, Jennings and Larson", + "color": "DarkGrey", + "color_hex": "808080", + "gender": [ + "Men", + "Women" + ], + "item_code": "LGLAPTOPSLEEVE5", + "material": "Neoprene", + "occasion": "Casual", + "primary_color": "Grey", + "primary_color_hex": "808080", + "primary_material": "Others", + "product_details": "This is a Unisex Product.", + "product_type": "LaptopBags", + "style_note": "Shape up your overall appeal with this stunning laptop bag. The amazing storage and great design will let you carry your laptop in style!", + "variant": "LGLAPTOPSLEEVE5", + "weight": 100 + }, + "brand": { + "_custom_json": {}, + "action": { + "page": { + "query": { + "brand": [ + "Hess-Inc" + ] }, - "_custom_json": {}, - "store_type": "warehouse", - "stage": "verified", - "modified_on": "2022-03-16T13:18:46.470000", - "verified_by": { - "username": "WheelJack", - "user_id": "0" + "type": "products" + }, + "type": "page" + }, + "logo": { + "type": "image", + "url": "https://hdn-1.fynd.com/media/logo/brand/original/12391_0d956c6c71a4427895c15e44cba82f88.jpg" + }, + "name": "Barry, Jennings and Larson", + "uid": 1 + }, + "categories": [ + { + "_custom_json": {}, + "action": { + "page": { + "query": { + "category": [ + "Amy-Kim-DDS" + ] + }, + "type": "category" }, - "company_id": 47, - "integration_type": { - "order": "rbl_sap", - "inventory": "rbl_sap" + "type": "page" + }, + "id": 3, + "logo": { + "type": "image", + "url": "https://hdn-1.fynd.com/media/banner_portrait/brand/original/540_ecba3a1af141467da8abc20500f983db.jpg" + }, + "name": "Amy Kim DDS", + "uid": 3 + } + ], + "color": "808080", + "custom_order": {}, + "grouped_attributes": [ + { + "details": [ + { + "key": "Kimberly Davidson", + "type": "text", + "value": "DarkGrey" }, - "created_by": { - "username": "talhakhan_gofynd_com_20256", - "user_id": "21" + { + "key": "Kimberly Mcdaniel", + "type": "text", + "value": "Men,Women" }, - "display_name": "Test Store 1", - "created_on": "2020-09-15T11:51:09.676000", - "documents": [ - { - "value": "27AADCR7395F1Z0", - "verified": true, - "legal_name": "RELIANCE BRANDS LIMITED", - "type": "gst" - } - ], - "timing": [ - { - "closing": { - "hour": 22, - "minute": 0 - }, - "weekday": "monday", - "opening": { - "hour": 11, - "minute": 0 - }, - "open": true - }, - { - "closing": { - "hour": 22, - "minute": 0 - }, - "weekday": "tuesday", - "opening": { - "hour": 11, - "minute": 0 - }, - "open": true - }, - { - "closing": { - "hour": 22, - "minute": 0 - }, - "weekday": "wednesday", - "opening": { - "hour": 11, - "minute": 0 - }, - "open": true - }, - { - "closing": { - "hour": 22, - "minute": 0 - }, - "weekday": "thursday", - "opening": { - "hour": 11, - "minute": 0 - }, - "open": true - }, - { - "closing": { - "hour": 22, - "minute": 0 - }, - "weekday": "friday", - "opening": { - "hour": 11, - "minute": 0 - }, - "open": true - }, - { - "closing": { - "hour": 22, - "minute": 0 - }, - "weekday": "saturday", - "opening": { - "hour": 11, - "minute": 0 - }, - "open": true - }, - { - "closing": { - "hour": 22, - "minute": 0 - }, - "weekday": "sunday", - "opening": { - "hour": 11, - "minute": 0 - }, - "open": true - } - ], - "address": { - "address1": "B WING GREEN VIEW SOSAITY, LOWER PAREL", - "landmark": "", - "address2": "FRIENDS COLONY, BABHAI NAKA, BORIVALI WEST,", - "country": "INDIA", - "state": "MAHARASHTRA", - "country_code": "IN", - "city": "MUMBAI SUBURBAN", - "pincode": 400070 + { + "key": "Monica Hampton", + "type": "text", + "value": "Neoprene" }, - "notification_emails": [], - "uid": 113366, - "verified_on": "2022-07-20T09:50:12.635000", - "modified_by": { - "username": "radhikaluvani_gofynd_com_73095", - "user_id": "ff2d78d2e93a0a92e9dd60f6" + { + "key": "John Mendoza", + "type": "text", + "value": "100 g" } - } - ], - "page": { - "type": "number", - "current": 1, - "has_next": true, - "item_total": 2 + ], + "title": "Alexander Sawyer" } - } + ], + "has_variant": true, + "image_nature": "standard", + "medias": [ + { + "type": "image", + "url": "http://cdn4.gofynd.com/media/pictures/tagged_items/original/1309_LGLAPTOPSLEEVE5/1_1564735832806.jpg" + } + ], + "name": "benchmark collaborative paradigms", + "no_of_boxes": 1, + "product_online_date": "2021-02-03T07:22:29Z", + "rating": 2.7, + "rating_count": 2, + "similars": [ + "brand" + ], + "slug": "benchmark-collaborative-paradigms", + "tags": [ + "Digital" + ], + "teaser_tag": {}, + "tryouts": [], + "type": "product", + "uid": 1 } ```
-
- @@ -18557,17 +12698,23 @@ See example below or refer `OptinStoreDetailsSchema` for details --- -### getVariantTypes -Get variant type list +### getProductExportJobs +Allows you to list all product templates export list details ```javascript // Promise -const promise = platformClient.catalog.getVariantTypes({ templateTag : value }); +const promise = platformClient.catalog.getProductExportJobs({ status : value, + fromDate : value, + toDate : value, + q : value }); // Async/Await -const data = await platformClient.catalog.getVariantTypes({ templateTag : value }); +const data = await platformClient.catalog.getProductExportJobs({ status : value, + fromDate : value, + toDate : value, + q : value }); ``` @@ -18575,52 +12722,68 @@ const data = await platformClient.catalog.getVariantTypes({ templateTag : value | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| templateTag | string | yes | The page number to navigate through the given set of results | +| --------- | ----- | -------- | ----------- | +| status | string | no | This is a parameter used to find all the jobs with the specified status. | +| fromDate | string | no | This is a parameter used to find the job from the date specified to the current date. | +| toDate | string | no | This is a parameter used to find the job from the from_date specified to the to_date. | +| q | string | no | It is a query parameter to search the export job with the task ID. | -This API gets meta associated to products. +Can view details including trigger data, task id , etc. *Returned Response:* -[VariantTypesResponse](#VariantTypesResponse) - -Product Meta. See example below for details - +[ProductDownloadsResponse](#ProductDownloadsResponse) +List of Product Downloads Data. See example below or refer `ProductDownloadsResponse` for details -
-  Examples:
-  success +  Example: ```json { - "value": { - "items": [ - { - "name": "Additional Colorsasd", - "key": "test", - "type": [ - "text" + "items": [ + { + "completed_on": "2020-12-23T07:23:41.031000Z", + "created_by": { + "user_id": "5646", + "username": "917972410891_48194" + }, + "data": { + "brand": [ + "ruosh" ], - "image_config": {} - } - ] - } + "templates": [ + "mobile-phones-and-tablet" + ], + "type": "csv" + }, + "id": "5fe2f077516d980001880943", + "seller_id": 3, + "status": "success", + "task_id": "c4b54ace-44ef-11eb-9806-1ef9bc4a2da1", + "template_tags": { + "mobile-phones-and-tablet": { + "display": "Mobile Phones & Tablet", + "logo": "https://hdn-1.jiox0.de/jiox0/seller/pictures/logo/original/Oda39B_99946594-portable-devices-with-tablet-and-mobile-phone-vector-icon-for-apps-and-websites.jpgcc2dff44-7fae-4002-9ebe-d2b59c8bee91/Oda39B_99946594-portable-devices-with-tablet-and-mobile-phone-vector-icon-for-apps-and-websites.jpg" + } + }, + "trigger_on": "2020-12-23T07:23:35.302000Z", + "url": "https://regrowth.s3.amazonaws.com/slingshot-catalogues/seller-catalog/3/c4b54ace-44ef-11eb-9806-1ef9bc4a2da1/c4b54ace-44ef-11eb-9806-1ef9bc4a2da1.zip" + } + ], + "page": {} } ```
-
- @@ -18632,23 +12795,23 @@ Product Meta. See example below for details --- -### getVariantsOfProducts -Get product list +### getProductSize +Get a single product size. ```javascript // Promise -const promise = platformClient.catalog.getVariantsOfProducts({ itemId : value, - variantType : value, - pageNo : value, - pageSize : value }); +const promise = platformClient.catalog.getProductSize({ itemId : value, + itemCode : value, + brandUid : value, + uid : value }); // Async/Await -const data = await platformClient.catalog.getVariantsOfProducts({ itemId : value, - variantType : value, - pageNo : value, - pageSize : value }); +const data = await platformClient.catalog.getProductSize({ itemId : value, + itemCode : value, + brandUid : value, + uid : value }); ``` @@ -18656,69 +12819,136 @@ const data = await platformClient.catalog.getVariantsOfProducts({ itemId : valu | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| itemId | number | yes | Get list of variants of item Id | -| variantType | string | yes | Get multiple products filtered by variant type | -| pageNo | number | no | The page number to navigate through the given set of results | -| pageSize | number | no | Number of items to retrieve in each page. Default is 10. | +| --------- | ----- | -------- | ----------- | +| itemCode | string | no | Item code of the product size. | +| itemId | number | yes | Item Id of the product size. | +| brandUid | number | no | Brand Id of the product size. | +| uid | number | no | Id of the product size. | -This API gets meta associated to products. +This API helps to get data associated to a particular product size. *Returned Response:* -[ProductVariantsResponse](#ProductVariantsResponse) - -Product Meta. See example below for details - +[ProductListingResponse](#ProductListingResponse) +Product object. See example below for details -
-  Examples:
-  success +  Example: ```json { - "value": { - "page": { - "current": 1, - "has_next": false, - "has_previous": false, - "item_total": 1, - "size": 1, - "type": "number" + "all_sizes": [ + "3XL" + ], + "attributes": { + "color": "Red", + "created_by": { + "company_id": 1181, + "user_id": "-1", + "username": "silverbolt" }, - "variants": [ - { - "brand_uid": 401, - "category_uid": 3938, - "item_code": "TEST-MSA-6", - "media": [ - { - "type": "image", - "url": "https://hdn-1.jiox0.de/jiox0/products/pictures/item/free/original/7cGLXZLpO-iN3Jd9uro-Wiv-7J9qC-product.png" - } - ], - "name": "test-msa-6", - "slug": "test-msa-6", - "uid": 7526471 - } - ] - } + "created_on": "2020-07-23T04:20:43.810000Z", + "essential": "Yes", + "gender": [ + "Men" + ], + "image_nature": "standard", + "is_image_less_product": false, + "l3_mapping": [ + "men>casual_tees", + "women>casual_tees", + "girls>casual_tees", + "more>casual_tees" + ], + "material": "cotton", + "meta_nature": "standard", + "modified_by": { + "company_id": 61, + "user_id": "-1", + "username": "silverbolt" + }, + "modified_on": "2020-07-23T04:20:44.185000Z", + "neck_type": "Round Neck", + "pattern": "Printed", + "primary_color": "Red", + "primary_material": "Others", + "product_fit": "Regular", + "sleeve_length": "Short", + "stage": "verified", + "verified_by": { + "user_id": "0", + "username": "Silverbolt" + }, + "verified_on": 1595478044 + }, + "brand": { + "logo": { + "aspect_ratio": "1:1", + "aspect_ratio_f": 1, + "secure_url": "https://hdn-1.fynd.com/brands/pictures/square-logo/50x0/zjt4-wU8Lk-VQYu0pcokb-r6yteuannoorjkq9f4tk.jpg", + "url": "https://hdn-1.fynd.com/brands/pictures/square-logo/50x0/zjt4-wU8Lk-VQYu0pcokb-r6yteuannoorjkq9f4tk.jpg" + }, + "name": "play clan", + "uid": 85 + }, + "category_slug": "t-shirts", + "company_id": 61, + "country_of_origin": "India", + "currency": "INR", + "departments": [ + 1 + ], + "description": "", + "highlights": null, + "hsn_code": "61099090", + "id": "5f19101b99ee0500011dc896", + "images": [], + "is_active": false, + "is_dependent": false, + "is_set": false, + "item_code": "ACTESTCREATELISTING1", + "item_type": "standard", + "media": [], + "multi_size": true, + "name": "SQUADMTGIVESPACE", + "product_publish": { + "is_set": false, + "product_online_date": 1595478043 + }, + "size_guide": "play-clan-men-casual-tees", + "sizes": [ + { + "currency": "INR", + "identifiers": [ + { + "gtin_type": "sku_code", + "gtin_value": "ACTESTCREATELISTING1_3XL", + "primary": true + } + ], + "is_set": false, + "price": 10000, + "price_effective": 10000, + "price_transfer": 0, + "size": "3XL" + } + ], + "slug": "play-clan-squadmtgivespace-857587-e928b0", + "template_tag": "topwear", + "uid": 857587 } ```
-
- @@ -18730,473 +12960,51 @@ Product Meta. See example below for details --- -### listCategories -Get product categories list +### getProductTags +Get a list of all tags associated with company. ```javascript // Promise -const promise = platformClient.catalog.listCategories({ level : value, - department : value, - q : value, - pageNo : value, - pageSize : value, - uids : value }); +const promise = platformClient.catalog.getProductTags(); // Async/Await -const data = await platformClient.catalog.listCategories({ level : value, - department : value, - q : value, - pageNo : value, - pageSize : value, - uids : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| level | string | no | Get category for multiple levels | -| department | number | no | Get category for multiple departments filtered | -| q | string | no | Get multiple categories filtered by search string | -| pageNo | number | no | The page number to navigate through the given set of results | -| pageSize | number | no | Number of items to retrieve in each page. Default is 10. | -| uids | Array | no | Get multiple categories filtered by category uids. | +const data = await platformClient.catalog.getProductTags(); +``` -This API gets meta associated to product categories. -*Returned Response:* +This API helps to get tags data associated to a particular company. +*Returned Response:* -[CategoryResponse](#CategoryResponse) -Category Meta. See example below or refer `CategoryResponse` for details +[ProductTagsViewResponse](#ProductTagsViewResponse) + +Tag List. See example below for details -
-  Examples:
-  success +  Example: ```json { - "value": { - "items": [ - { - "created_by": { - "user_id": "5646", - "username": "917972410891_48194" - }, - "created_on": "2021-04-02T15:43:59.410000Z", - "departments": [ - 1 - ], - "hierarchy": [ - { - "department": 1, - "l1": 1, - "l2": 22329 - } - ], - "id": "60673bbf7896da00017885ad", - "is_active": true, - "level": 3, - "marketplaces": {}, - "media": { - "landscape": "https://hdn-1.addsale.com/x0/category/pictures/landscape-banner/original/_7GDi3tyi-.png", - "logo": "https://hdn-1.addsale.com/x0/category/pictures/square-logo/original/zTgh1zslj-.png", - "portrait": "https://hdn-1.addsale.com/x0/category/pictures/portrait-banner/original/VKqwRngFh-.png" - }, - "modified_by": { - "user_id": "5646", - "username": "917972410891_48194" - }, - "modified_on": "2021-04-02T15:43:59.410000Z", - "name": "Air Conditioners", - "priority": 1, - "slug": "air-conditioners", - "synonyms": [], - "tryouts": [], - "uid": 22330 - }, - { - "created_by": { - "user_id": "5646", - "username": "917972410891_48194" - }, - "created_on": "2021-04-02T15:42:55.405000Z", - "departments": [ - 1 - ], - "hierarchy": [], - "id": "60673b7f7896da00017885ac", - "is_active": true, - "level": 2, - "media": { - "landscape": "https://hdn-1.addsale.com/x0/category/pictures/landscape-banner/original/_7GDi3tyi-.png", - "logo": "https://hdn-1.addsale.com/x0/category/pictures/square-logo/original/zTgh1zslj-.png", - "portrait": "https://hdn-1.addsale.com/x0/category/pictures/portrait-banner/original/VKqwRngFh-.png" - }, - "modified_by": { - "user_id": "5646", - "username": "917972410891_48194" - }, - "modified_on": "2021-04-02T15:42:55.405000Z", - "name": "Home Appliances", - "priority": 1, - "slug": "home-appliances", - "synonyms": [], - "uid": 22329 - }, - { - "created_by": { - "user_id": "5721", - "username": "919821012599_75351" - }, - "created_on": "2021-01-14T05:28:02.148000Z", - "departments": [ - 21 - ], - "hierarchy": [], - "id": "5fffd662e64eb40001fc8a42", - "is_active": true, - "level": 2, - "media": { - "landscape": "https://hdn-1.addsale.com/x0/category/pictures/landscape-banner/original/0wCdjxWpI-.png", - "logo": "https://hdn-1.addsale.com/x0/category/pictures/square-logo/original/zTgh1zslj-.png", - "portrait": "https://hdn-1.addsale.com/x0/category/pictures/portrait-banner/original/VKqwRngFh-.png" - }, - "modified_by": { - "user_id": "5677", - "username": "917753852478_51632" - }, - "modified_on": "2021-03-04T15:43:50.495000Z", - "name": "Dummy category level 2 by fahim", - "priority": 123456, - "slug": "dummy-category-level-2", - "synonyms": [ - "skin", - "care", - "asdasd" - ], - "uid": 22323 - }, - { - "created_by": { - "user_id": "-1", - "username": "silverbolt" - }, - "created_on": "2021-02-25T00:00:47.589000Z", - "departments": [ - 21 - ], - "hierarchy": [ - { - "department": 21, - "l1": 22322, - "l2": 22323 - } - ], - "id": "60369b57d23031d14be92c18", - "is_active": true, - "level": 3, - "marketplaces": {}, - "media": { - "landscape": "https://hdn-1.addsale.com/x0/category/pictures/landscape-banner/original/0wCdjxWpI-.png", - "logo": "https://hdn-1.addsale.com/x0/category/pictures/square-logo/original/EfCt9iXx8-http/d3p8ifzkmzds37.cloudfront.net/media/logo/department/original/15870_c287d3c2431a432bb0e49363ef6b82bc.png.jpeg", - "portrait": "https://hdn-1.addsale.com/x0/category/pictures/portrait-banner/original/S1axCMOJ4-.png" - }, - "modified_by": { - "user_id": "5677", - "username": "917753852478_51632" - }, - "modified_on": "2021-03-04T15:39:52.108000Z", - "name": "Dummy level 4", - "priority": 986532, - "slug": "dummy-level-4", - "synonyms": [], - "tryouts": [], - "uid": 22325 - }, - { - "created_by": { - "user_id": "5721", - "username": "919821012599_75351" - }, - "created_on": "2021-01-14T05:28:59.852000Z", - "departments": [ - 2, - 4, - 21 - ], - "hierarchy": [ - { - "department": 21, - "l1": 22322, - "l2": 22323 - }, - { - "department": 4, - "l1": 3672, - "l2": 3732 - }, - { - "department": 2, - "l1": 595, - "l2": 730 - } - ], - "id": "5fffd69be64eb40001fc8a65", - "is_active": true, - "level": 3, - "marketplaces": {}, - "media": { - "landscape": "https://hdn-1.addsale.com/x0/category/pictures/landscape-banner/original/0wCdjxWpI-.png", - "logo": "https://hdn-1.addsale.com/x0/category/pictures/square-logo/original/EfCt9iXx8-http/d3p8ifzkmzds37.cloudfront.net/media/logo/department/original/15870_c287d3c2431a432bb0e49363ef6b82bc.png.jpeg", - "portrait": "https://hdn-1.addsale.com/x0/category/pictures/portrait-banner/original/S1axCMOJ4-.png" - }, - "modified_by": { - "user_id": "5677", - "username": "917753852478_51632" - }, - "modified_on": "2021-03-04T15:39:46.246000Z", - "name": "Dummy level 3 by fahim", - "priority": 986532, - "slug": "dummy-level-3", - "synonyms": [], - "tryouts": [ - "Lipstick", - "Eyeliner" - ], - "uid": 22324 - }, - { - "created_on": "2016-04-09T06:44:35Z", - "departments": [ - 4 - ], - "hierarchy": [], - "id": "5fabab8ea18a1284b97ff6c4", - "is_active": true, - "level": 1, - "media": { - "landscape": "https://hdn-1.addsale.com/x0/seller/pictures/logo/original/ywPVrU_preview_a637ca6e4da6e38f03eb0d650ac5d6ba.jpgc73cc22f-b5ee-4fd4-a585-8ada35762d68/ywPVrU_preview_a637ca6e4da6e38f03eb0d650ac5d6ba.jpg", - "logo": "https://hdn-1.addsale.com/x0/seller/pictures/logo/original/YHIeoQ_fruit___vegetable_logo.jpg16aab608-a78a-458f-b60b-524525f27dec/YHIeoQ_fruit___vegetable_logo.jpg", - "portrait": "https://hdn-1.addsale.com/x0/seller/pictures/logo/original/ywPVrU_preview_a637ca6e4da6e38f03eb0d650ac5d6ba.jpgc73cc22f-b5ee-4fd4-a585-8ada35762d68/ywPVrU_preview_a637ca6e4da6e38f03eb0d650ac5d6ba.jpg" - }, - "modified_by": { - "uid": "5677", - "username": "917753852478_51632" - }, - "modified_on": "2021-03-03T09:35:50.415000Z", - "name": "Gourmet & World Food", - "priority": 123, - "slug": "gourmet-world-food", - "synonyms": [ - "gourmet & world food", - "food", - "gourmet" - ], - "uid": 3151 - }, - { - "created_by": { - "uid": "5677", - "username": "917753852478_51632" - }, - "created_on": "2021-03-03T06:30:08.342000Z", - "departments": [ - 1, - 2 - ], - "hierarchy": [ - { - "department": 2, - "l1": 595, - "l2": 714 - }, - { - "department": 1, - "l1": 2, - "l2": 4 - } - ], - "id": "603f2cf0aac0360001c00731", - "is_active": true, - "level": 3, - "marketplaces": {}, - "media": { - "landscape": "https://hdn-1.addsale.com/x0/category/pictures/landscape-banner/original/0wCdjxWpI-.png", - "logo": "https://hdn-1.addsale.com/x0/category/pictures/square-logo/original/EfCt9iXx8-http/d3p8ifzkmzds37.cloudfront.net/media/logo/department/original/15870_c287d3c2431a432bb0e49363ef6b82bc.png.jpeg", - "portrait": "https://hdn-1.addsale.com/x0/category/pictures/portrait-banner/original/VKqwRngFh-.png" - }, - "modified_by": { - "uid": "5677", - "username": "917753852478_51632" - }, - "modified_on": "2021-03-03T08:34:47.999000Z", - "name": "Test Category kaf", - "priority": 23, - "slug": "test-category-kaf", - "synonyms": [ - "test", - "category" - ], - "tryouts": [ - "Lipstick", - "Blush" - ], - "uid": 22328 - }, - { - "created_by": { - "user_id": "-1", - "username": "silverbolt" - }, - "created_on": "2021-02-25T09:26:53.123000Z", - "departments": [ - 1 - ], - "hierarchy": [ - { - "department": 1, - "l1": 2, - "l2": 3 - } - ], - "id": "60372005d230311fe9e51f0b", - "is_active": false, - "level": 3, - "marketplaces": {}, - "media": { - "landscape": "https://hdn-1.fynd.com/media/banner/category/original/16128_380bed8bff064a0b981041df65e0d8b3.jpg", - "logo": "http://d3p8ifzkmzds37.cloudfront.net/media/logo/department/original/15870_c287d3c2431a432bb0e49363ef6b82bc.png", - "portrait": "http://cdn4.gofynd.com/media/logo/department/original/13239_660c6f5b2b8d458789de4552d241ea1b.jpg" - }, - "modified_by": { - "user_id": "-1", - "username": "silverbolt" - }, - "modified_on": "2021-02-25T09:26:53.123000Z", - "name": "Smart Cell", - "priority": 5, - "slug": "smart-cell", - "synonyms": [], - "tryouts": [], - "uid": 22327 - }, - { - "created_by": { - "user_id": "-1", - "username": "silverbolt" - }, - "created_on": "2021-02-25T00:09:35.026000Z", - "departments": [ - 21 - ], - "hierarchy": [ - { - "department": 21, - "l1": 22322, - "l2": 22323 - } - ], - "id": "60369d67d2303111b8924dcf", - "is_active": true, - "level": 3, - "marketplaces": {}, - "media": { - "landscape": "https://hdn-1.addsale.com/x0/category/pictures/landscape-banner/original/0wCdjxWpI-.png", - "logo": "https://hdn-1.addsale.com/x0/category/pictures/square-logo/original/EfCt9iXx8-http/d3p8ifzkmzds37.cloudfront.net/media/logo/department/original/15870_c287d3c2431a432bb0e49363ef6b82bc.png.jpeg", - "portrait": "https://hdn-1.addsale.com/x0/category/pictures/portrait-banner/original/S1axCMOJ4-.png" - }, - "modified_by": { - "user_id": "-1", - "username": "silverbolt" - }, - "modified_on": "2021-02-25T00:09:35.026000Z", - "name": "Dummy level 98", - "priority": 986532, - "slug": "dummy-level-98", - "synonyms": [], - "tryouts": [], - "uid": 22326 - }, - { - "created_on": "2016-04-09T06:44:35Z", - "departments": [ - 2, - 3 - ], - "hierarchy": [ - { - "department": 2, - "l1": 65, - "l2": 66 - }, - { - "department": 2, - "l1": 442, - "l2": 26 - }, - { - "department": 3, - "l1": 442, - "l2": 26 - } - ], - "id": "5fdba984642de8d93efb0d71", - "is_active": true, - "level": 3, - "marketplaces": {}, - "media": { - "landscape": "https://hdn-1.fynd.com/media/banner/category/original/19961_f042f1f4a90f4e828b6d77d6dbea264d.jpg", - "logo": "https://hdn-1.fynd.com/media/logo/category/original/81ef023d375044e9b9daa66b81ec411f.jpg", - "portrait": "https://hdn-1.fynd.com/media/banner_portrait/category/original/19960_c679d51cb1bd4ca99f00f9050aa647a4.jpg" - }, - "modified_by": { - "user_id": "5677", - "username": "917753852478_51632" - }, - "modified_on": "2021-02-15T15:48:05.329000Z", - "name": "Sports Bra", - "priority": 281, - "slug": "sports-bra", - "synonyms": [ - "Sports Bra", - "activewear bra", - "gym bra" - ], - "tryouts": [], - "uid": 315 - } - ], - "page": { - "current": 1, - "has_next": true, - "has_previous": false, - "item_total": 574, - "size": 58, - "type": "number" - } - } + "items": [ + "demo", + "custom" + ] } ```
-
- @@ -19208,396 +13016,48 @@ Category Meta. See example below or refer `CategoryResponse` for details --- -### listDepartmentsData -List all Departments. +### getProductValidation +Validate product/size data ```javascript // Promise -const promise = platformClient.catalog.listDepartmentsData({ pageNo : value, - itemType : value, - pageSize : value, - name : value, - search : value, - isActive : value, - uids : value }); +const promise = platformClient.catalog.getProductValidation(); // Async/Await -const data = await platformClient.catalog.listDepartmentsData({ pageNo : value, - itemType : value, - pageSize : value, - name : value, - search : value, - isActive : value, - uids : value }); +const data = await platformClient.catalog.getProductValidation(); ``` -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| pageNo | number | no | The page number to navigate through the given set of results | -| itemType | string | no | A `item_type` is a type of product eg. set, standard, digital | -| pageSize | number | no | Number of items to retrieve in each page. Default is 10. | -| name | string | no | Can search departments by passing name. | -| search | string | no | Can search departments by passing name of the department in search parameter. | -| isActive | boolean | no | Can query for departments based on whether they are active or inactive. | -| uids | Array | no | Filter department by uids. | - - -Allows you to list all departments, also can search using name and filter active and incative departments, and item type. +This API validates product data. *Returned Response:* -[DepartmentsResponse](#DepartmentsResponse) - -List of departments data. See example below or refer `DepartmentsResponse` for details - +[ValidateProduct](#ValidateProduct) +Validate Meta. See example below for details -
-  Examples:
-  success +  Example: ```json { - "value": { - "items": [ - { - "_cls": "Department", - "_custom_json": {}, - "created_by": { - "user_id": "3", - "username": "918793638893_86554" - }, - "created_on": "2020-07-01T05:33:39.325000Z", - "id": "5efc2033623d390001782238", - "is_active": true, - "logo": "https://hdn-1.addsale.com/x0/seller/pictures/logo/original/BSQ9Gk_123522-best-starry-sky-wallpaper-1920x1200-ipad-pro.jpgc7d0c15c-c1ff-47eb-8423-6e2df51f2ddf/BSQ9Gk_123522-best-starry-sky-wallpaper-1920x1200-ipad-pro.jpg", - "modified_by": { - "user_id": "5677", - "username": "917753852478_51632" - }, - "modified_on": "2021-03-03T15:55:25.118000Z", - "name": "Sample Dept", - "platforms": {}, - "priority_order": 111, - "slug": "sample-dept", - "synonyms": [ - "test", - "sampe" - ], - "tags": [], - "uid": 5 - }, - { - "_cls": "Department", - "_custom_json": {}, - "created_by": { - "user_id": "0", - "username": "app@fynd.com" - }, - "created_on": "2020-05-19T06:53:37.629000Z", - "id": "5ec3827156a7200001c9aeea", - "is_active": true, - "logo": "https://hdn-1.addsale.com/addsale/media/logo/department/original/15974_381e2236c2a348cc851c29a5d05c66a9.png", - "modified_by": { - "user_id": "10", - "username": "fahimsakri_gofynd_com_44938" - }, - "modified_on": "2021-03-04T14:01:02.556000Z", - "name": "Men's Fashion", - "platforms": { - "fynd": true, - "fynd_store": true, - "marketplace": true, - "openapi": true, - "uniket_store": true, - "uniket_wholesale": true - }, - "priority_order": 111, - "slug": "men-s-fashion", - "synonyms": [], - "tags": [], - "uid": 2 - }, - { - "_cls": "Department", - "_custom_json": {}, - "created_by": { - "user_id": "10", - "username": "fahimsakri_gofynd_com_44938" - }, - "created_on": "2020-06-29T10:59:33.620000Z", - "id": "5ef9c9959b04f00001e40dba", - "is_active": true, - "logo": "https://hdn-1.addsale.com/x0/seller/pictures/logo/original/ywPVrU_preview_a637ca6e4da6e38f03eb0d650ac5d6ba.jpgc73cc22f-b5ee-4fd4-a585-8ada35762d68/ywPVrU_preview_a637ca6e4da6e38f03eb0d650ac5d6ba.jpg", - "modified_by": { - "user_id": "3", - "username": "918793638893_86554" - }, - "modified_on": "2020-08-06T18:08:02.675000Z", - "name": "Groceries", - "platforms": {}, - "priority_order": 10, - "slug": "groceries", - "synonyms": [], - "tags": [], - "uid": 4 - }, - { - "_cls": "Department", - "_custom_json": {}, - "created_by": { - "user_id": "0", - "username": "app@fynd.com" - }, - "created_on": "2020-05-18T16:14:41.689000Z", - "id": "5ec2b471661a4100019fca0d", - "is_active": true, - "logo": "https://hdn-1.addsale.com/x0/platform/pictures/free-logo/original/_G1Z2Fg1L-http:d3p8ifzkmzds37.cloudfront.netmedialogodepartmentoriginal15870_c287d3c2431a432bb0e49363ef6b82bc.png.png", - "modified_by": { - "user_id": "5677", - "username": "917753852478_51632" - }, - "modified_on": "2021-03-04T15:39:38.528000Z", - "name": "Electronics", - "platforms": { - "fynd": true, - "fynd_store": true, - "marketplace": true, - "openapi": true, - "uniket_store": true, - "uniket_wholesale": true - }, - "priority_order": 100, - "slug": "electronics", - "synonyms": [], - "tags": [], - "uid": 1 - }, - { - "_cls": "Department", - "_custom_json": {}, - "created_by": { - "user_id": "3", - "username": "918793638893_86554" - }, - "created_on": "2020-05-27T12:04:19.111000Z", - "id": "5ece5743cd1bae0001440427", - "is_active": true, - "logo": "https://hdn-1.addsale.com/x0/seller/pictures/landscape-banner/original/g2plam_logo_Jio.pngeeb392ca-3958-46a0-9f13-23c205b596f7/g2plam_logo_Jio.png", - "modified_by": { - "user_id": "3", - "username": "918793638893_86554" - }, - "modified_on": "2020-08-06T18:07:46.060000Z", - "name": "Industrial Supplies", - "platforms": {}, - "priority_order": 111, - "slug": "industrial-supplies", - "synonyms": [], - "tags": [], - "uid": 3 - }, - { - "_cls": "Department", - "_custom_json": {}, - "created_by": { - "user_id": "13", - "username": "abhinavsrivastava_gofynd_com_05674" - }, - "created_on": "2020-07-06T07:56:01.508000Z", - "id": "5f02d9116b0ae500018923dd", - "is_active": false, - "logo": "https://hdn-1.addsale.com/x0/seller/pictures/logo/original/wTcfEi_crysis_-_1.jpg14580947-a659-486d-b2d3-d2ca025b1cac/wTcfEi_crysis_-_1.jpg", - "modified_by": { - "user_id": "3", - "username": "918793638893_86554" - }, - "modified_on": "2020-08-06T18:08:12.576000Z", - "name": "Clothing", - "platforms": {}, - "priority_order": 1, - "slug": "clothing", - "synonyms": [], - "tags": [], - "uid": 6 - }, - { - "_cls": "Department", - "_custom_json": {}, - "created_by": { - "user_id": "5634", - "username": "asavarijadhav_gofynd_com_99880" - }, - "created_on": "2020-08-05T09:04:33.604000Z", - "id": "5f2a762131c66700018cdc47", - "is_active": true, - "logo": "https://hdn-1.addsale.com/x0/seller/pictures/logo/original/RxTsd8_0DEFAULT-LOGO.jpg000ccfc1-2f79-4426-9ac3-de2468c2fcb9/RxTsd8_0DEFAULT-LOGO.jpg", - "modified_by": { - "user_id": "5634", - "username": "asavarijadhav_gofynd_com_99880" - }, - "modified_on": "2020-08-05T09:44:01.234000Z", - "name": "Kids", - "platforms": {}, - "priority_order": 3, - "slug": "kids", - "synonyms": [], - "tags": [], - "uid": 8 - }, - { - "_cls": "Department", - "_custom_json": {}, - "created_by": { - "user_id": "5634", - "username": "asavarijadhav_gofynd_com_99880" - }, - "created_on": "2020-08-05T09:44:46.632000Z", - "id": "5f2a7f8e31c66700018cdc49", - "is_active": true, - "logo": "https://hdn-1.addsale.com/x0/seller/pictures/logo/original/tKkDB8_0DEFAULT-LOGO.jpg1c324d4d-f667-4af8-8d98-37205d34e3b5/tKkDB8_0DEFAULT-LOGO.jpg", - "modified_by": { - "user_id": "3", - "username": "918793638893_86554" - }, - "modified_on": "2020-08-06T18:07:35.231000Z", - "name": "Women's Fashion", - "platforms": {}, - "priority_order": 2, - "slug": "women-s-fashion", - "synonyms": [], - "tags": [], - "uid": 9 - }, - { - "_cls": "Department", - "_custom_json": {}, - "created_by": { - "user_id": "5634", - "username": "asavarijadhav_gofynd_com_99880" - }, - "created_on": "2020-08-05T09:45:12.075000Z", - "id": "5f2a7fa831c66700018cdc4a", - "is_active": true, - "logo": "https://hdn-1.addsale.com/x0/seller/pictures/logo/original/oLoxiL_0DEFAULT-LOGO.jpgbd050200-700a-4a3e-9da6-e6b78fbee943/oLoxiL_0DEFAULT-LOGO.jpg", - "modified_by": { - "user_id": "5634", - "username": "asavarijadhav_gofynd_com_99880" - }, - "modified_on": "2020-08-05T09:48:01.660000Z", - "name": "Beauty & Personal Care", - "platforms": {}, - "priority_order": 4, - "slug": "beauty-personal-care", - "synonyms": [], - "tags": [], - "uid": 10 - }, - { - "_cls": "Department", - "_custom_json": {}, - "created_by": { - "user_id": "5634", - "username": "asavarijadhav_gofynd_com_99880" - }, - "created_on": "2020-08-05T09:45:39.797000Z", - "id": "5f2a7fc331c66700018cdc4b", - "is_active": true, - "logo": "https://hdn-1.addsale.com/x0/seller/pictures/logo/original/vQv4ot_0DEFAULT-LOGO.jpg701cb5af-2024-4abf-ae5d-b68bc1a3cd43/vQv4ot_0DEFAULT-LOGO.jpg", - "modified_by": { - "user_id": "3", - "username": "918793638893_86554" - }, - "modified_on": "2020-08-06T11:38:57.599000Z", - "name": "Home & Living", - "platforms": {}, - "priority_order": 5, - "slug": "home-living", - "synonyms": [], - "tags": [], - "uid": 11 - }, - { - "_cls": "Department", - "_custom_json": {}, - "created_by": { - "user_id": "5634", - "username": "asavarijadhav_gofynd_com_99880" - }, - "created_on": "2020-08-05T09:48:42.347000Z", - "id": "5f2a807a31c66700018cdc4e", - "is_active": false, - "logo": "https://hdn-1.addsale.com/x0/seller/pictures/logo/original/hTobjV_0DEFAULT-LOGO.jpga020159c-7fe7-4c1c-a11a-4be61a60da9f/hTobjV_0DEFAULT-LOGO.jpg", - "modified_by": { - "user_id": "5634", - "username": "asavarijadhav_gofynd_com_99880" - }, - "modified_on": "2020-08-05T09:48:42.347000Z", - "name": "Baby Care & Kids Essentials", - "platforms": {}, - "priority_order": 7, - "slug": "baby-care-kids-essentials", - "synonyms": [], - "tags": [], - "uid": 14 - }, - { - "_cls": "Department", - "_custom_json": {}, - "created_by": { - "user_id": "5721", - "username": "919821012599_75351" - }, - "created_on": "2021-01-13T10:12:33.002000Z", - "id": "5ffec79192813f0001eb6560", - "is_active": true, - "logo": "https://hdn-1.addsale.com/x0/department/pictures/square-logo/original/rNz8grLys-.png", - "modified_by": { - "user_id": "5721", - "username": "919821012599_75351" - }, - "modified_on": "2021-01-13T13:50:55.415000Z", - "name": "Skin care products", - "platforms": {}, - "priority_order": 10235, - "slug": "skin-care-produts", - "synonyms": [ - "skin", - "care" - ], - "tags": [], - "uid": 21 - } - ], - "page": { - "current": 1, - "has_next": false, - "has_previous": false, - "item_total": 12, - "size": 1, - "type": "number" - } - } + "valid": true } ```
-
- @@ -19609,64 +13069,241 @@ List of departments data. See example below or refer `DepartmentsResponse` for d --- -### listHSNCodes -List HSN Codes +### getProducts +Get product list ```javascript // Promise -const promise = platformClient.catalog.listHSNCodes(); +const promise = platformClient.catalog.getProducts({ brandIds : value, + categoryIds : value, + itemIds : value, + departmentIds : value, + itemCode : value, + q : value, + tags : value, + pageNo : value, + pageSize : value }); // Async/Await -const data = await platformClient.catalog.listHSNCodes(); +const data = await platformClient.catalog.getProducts({ brandIds : value, + categoryIds : value, + itemIds : value, + departmentIds : value, + itemCode : value, + q : value, + tags : value, + pageNo : value, + pageSize : value }); ``` +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| brandIds | Array | no | Get multiple products filtered by Brand Ids | +| categoryIds | Array | no | Get multiple products filtered by Category Ids | +| itemIds | Array | no | Get multiple products filtered by Item Ids | +| departmentIds | Array | no | Get multiple products filtered by Department Ids | +| itemCode | Array | no | Get multiple products filtered by Item Code | +| q | string | no | Get multiple products filtered by q string | +| tags | Array | no | Get multiple products filtered by tags | +| pageNo | number | no | The page number to navigate through the given set of results | +| pageSize | number | no | Number of items to retrieve in each page. Default is 10. | -Allows you to list all hsn Codes -*Returned Response:* +This API gets meta associated to products. +*Returned Response:* -[HSNCodesResponse](#HSNCodesResponse) -List of all HSN Codes. See example below or refer `HSNCodesResponse` for details +[ProductListingResponseV2](#ProductListingResponseV2) +Product Meta. See example below for details -
-  Examples:
-  success +  Example: ```json { - "value": { - "data": { - "country_of_origin": [ - "India" + "items": [ + { + "_custom_json": {}, + "all_company_ids": [ + 1 ], - "hsn_code": [ - "11111111" - ] - }, - "message": "Success" + "all_identifiers": [ + "19WE100" + ], + "all_sizes": [ + { + "brand_uid": 1, + "company_id": 1, + "identifiers": [ + { + "gtin_type": "ean", + "gtin_value": "HGS272727272", + "primary": true + } + ], + "item_code": "TVSET111", + "marked_price": 35000, + "seller_identifier": "HGS272727272", + "size": "XXLX23, MX11, LX67, XLX45 (146 PCS)" + } + ], + "brand": { + "logo": { + "aspect_ratio": "1:1", + "aspect_ratio_f": 1, + "secure_url": "https://hdn-1.jiox0.de/jioecomm/seller/pictures/logo/50x0/apple-7f951c/logo_apple.png", + "url": "https://hdn-1.jiox0.de/jioecomm/seller/pictures/logo/50x0/apple-7f951c/logo_apple.png" + }, + "name": "Apple", + "uid": 13 + }, + "brand_uid": 1, + "category_slug": "qled-television", + "category_uid": 1, + "country_of_origin": "India", + "created_by": { + "user_id": "5", + "username": "919049753052_37528" + }, + "created_on": "2021-04-02T15:43:59.410000Z", + "currency": "INR", + "custom_order": { + "is_custom_order": true, + "manufacturing_time": 2, + "manufacturing_time_unit": "days" + }, + "departments": [ + 1 + ], + "description": "Tv", + "highlights": [ + "42 Inch" + ], + "hsn_code": "11111111", + "id": "5f4f2f6371a5970001f13655", + "image_nature": "standard", + "images": [ + { + "aspect_ratio": "16:25", + "aspect_ratio_f": 0.64, + "secure_url": "https://hdn-1.addsale.com/x0/products/pictures/item/free/135x0/dcizgsG_Y-Tv-Set.png", + "url": "https://hdn-1.addsale.com/x0/products/pictures/item/free/135x0/dcizgsG_Y-Tv-Set.png" + } + ], + "is_dependent": false, + "is_image_less_product": false, + "is_physical": true, + "is_set": true, + "item_code": "TVSET111", + "item_type": "set", + "l3_mapping": [ + "electronics>qled_television" + ], + "media": [ + { + "type": "image", + "url": "https://hdn-1.addsale.com/x0/products/pictures/item/free/135x0/dcizgsG_Y-Tv-Set.png" + } + ], + "modified_by": { + "user_id": "xxxxxxxxxxx", + "username": "xxxxxxxxxx" + }, + "modified_on": "2021-04-02T15:43:59.410000Z", + "multi_size": true, + "name": "TV Set", + "no_of_boxes": 1, + "price": { + "effective": { + "max": 25000, + "min": 25000 + }, + "marked": { + "max": 35000, + "min": 35000 + } + }, + "product_group_tag": [], + "product_publish": { + "is_set": false, + "product_online_date": "2021-04-02T15:43:59.410000Z" + }, + "return_config": { + "returnable": false, + "time": 0, + "unit": "days" + }, + "short_description": "", + "size_guide": "slim-fit-shirts-for-men", + "sizes": [ + { + "size": "FGX33, GHX33 (66 PCS)", + "store_count": 1 + }, + { + "size": "XSE WE23X100 (100 PCS)", + "store_count": 2 + }, + { + "size": "XSEX100 (100 PCS)", + "store_count": 3 + }, + { + "size": "XXLX23, MX11, LX67, XLX45 (146 PCS)", + "store_count": 3 + } + ], + "slug": "tv-set", + "stage": "verified", + "synonyms": [], + "tags": [], + "teaser_tag": {}, + "template_tag": "television", + "trader": [ + { + "address": [ + "sdfdsfsdf" + ], + "name": "asdasd" + } + ], + "trader_type": "Packer", + "uid": 7501547, + "variants": {}, + "verification_status": "pending", + "verified_by": { + "user_id": "0", + "username": "Silverbolt" + }, + "verified_on": "2020-07-23T04:20:43.810000Z" + } + ], + "page": { + "current": 1, + "has_next": false, + "has_previous": false, + "item_total": 1, + "size": 1, + "type": "number" } } ```
-
- @@ -19678,102 +13315,430 @@ List of all HSN Codes. See example below or refer `HSNCodesResponse` for details --- -### listInventoryExport -Get the history of the inventory export. +### getQueryFilters +Get query filters to configure a collection ```javascript // Promise -const promise = platformClient.catalog.listInventoryExport({ status : value, - fromDate : value, - toDate : value, - q : value }); +const promise = platformClient.application("").catalog.getQueryFilters(); // Async/Await -const data = await platformClient.catalog.listInventoryExport({ status : value, - fromDate : value, - toDate : value, - q : value }); +const data = await platformClient.application("").catalog.getQueryFilters(); ``` -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| status | string | no | Status of the export job. | -| fromDate | string | no | Inventory export history filtered according to from_date. | -| toDate | string | no | Inventory export history filtered according to from_date. | -| q | string | no | Inventory export history filtered according to task ID. | - - -This API helps you the get the history of inventory jobs depending on the filtered criteria. +Get query filters to configure a collection *Returned Response:* -[InventoryExportJobListResponse](#InventoryExportJobListResponse) - -Returns a list of inventory export jobs - +[GetQueryFiltersResponse](#GetQueryFiltersResponse) +The attached items of an collection. See example below or refer `GetQueryFiltersResponse` for details -
-  Examples:
-  success +  Example: ```json { - "value": { - "items": [ - { - "_id": "6401bd972a2e6c3d508c9203", - "completed_on": "2023-03-03T09:33:11.416000Z", - "created_by": { - "user_id": "5e199e6998cfe1776f1385dc", - "username": "rohanshah@fynd.com" + "filters": [ + { + "key": { + "display": "Department", + "kind": "multivalued", + "logo": "https://hdn-1.fynd.com/global/menu-icons/Department.png", + "name": "department" + }, + "values": [ + { + "count": 2113, + "display": "Men's Fashion", + "is_selected": false, + "logo": { + "type": "image", + "url": "https://hdn-1.fynd.com/media/category_tab_icons/department/Men.png" + }, + "value": "men" + } + ] + }, + { + "key": { + "display": "Category", + "kind": "multivalued", + "logo": "https://hdn-1.fynd.com/global/menu-icons/Category.png", + "name": "category" + }, + "values": [ + { + "count": 968, + "display": "T-Shirts", + "is_selected": false, + "logo": "https://hdn-1.fynd.com/media/logo/category/original/15442_57fdc97abfd248aaaf8841f097a4ed67.jpg", + "value": "192" + } + ] + }, + { + "key": { + "display": "Category L1", + "kind": "multivalued", + "logo": "https://hdn-1.fynd.com/global/menu-icons/Category.png", + "name": "category" + }, + "values": [ + { + "count": 968, + "display": "T-Shirts", + "is_selected": false, + "logo": "https://hdn-1.fynd.com/media/logo/category/original/15442_57fdc97abfd248aaaf8841f097a4ed67.jpg", + "value": "192" + } + ] + }, + { + "key": { + "display": "Category L2", + "kind": "multivalued", + "logo": "https://hdn-1.fynd.com/global/menu-icons/Category.png", + "name": "category" + }, + "values": [ + { + "count": 968, + "display": "T-Shirts", + "is_selected": false, + "logo": "https://hdn-1.fynd.com/media/logo/category/original/15442_57fdc97abfd248aaaf8841f097a4ed67.jpg", + "value": "192" + } + ] + }, + { + "key": { + "display": "Size", + "kind": "multivalued", + "logo": "https://hdn-1.fynd.com/global/menu-icons/Sizes.png", + "name": "sizes" + }, + "values": [ + { + "count": 1438, + "display": "S", + "is_selected": false, + "value": "S" + } + ] + }, + { + "key": { + "display": "Brand", + "kind": "multivalued", + "logo": "https://hdn-1.fynd.com/global/menu-icons/Brand%20ID.png", + "name": "brand" + }, + "values": [ + { + "count": 4263, + "display": "Superdry", + "is_selected": false, + "logo": "https://hdn-1.fynd.com/media/logo/brand/original/1008_238113b8e11448f792e9bf860aac30f2.jpg", + "value": "235" + } + ] + }, + { + "key": { + "display": "Rating", + "kind": "multivalued", + "logo": "https://hdn-1.fynd.com/global/menu-icons/Rating.png", + "name": "rating" + }, + "values": [ + { + "count": 3, + "display": "5 ★", + "is_selected": false, + "value": "[4 TO *}" + } + ] + }, + { + "key": { + "display": "Company", + "kind": "multivalued", + "logo": "https://hdn-1.fynd.com/global/menu-icons/Store%20ID%20List.png", + "name": "company_id_list" + }, + "values": [ + { + "count": 4262, + "display": "RELIANCE BRANDS LIMITED", + "is_selected": false, + "value": "46" + } + ] + }, + { + "key": { + "display": "Store Ids", + "kind": "multivalued", + "logo": "https://hdn-1.fynd.com/global/menu-icons/Store%20ID%20List.png", + "name": "store_id_list" + }, + "values": [ + { + "count": 1385, + "display": "PHOENIX, ,PALLADIUM, LOWER PAREL - 5410", + "is_selected": false, + "value": "2201" + } + ] + }, + { + "key": { + "display": "Image", + "kind": "multivalued", + "logo": "https://hdn-1.fynd.com/global/menu-icons/image%20Nature.png", + "name": "image_nature" + }, + "values": [ + { + "count": 3111, + "display": "Good Quality", + "is_selected": false, + "value": "standard" }, - "created_on": "2023-03-03T09:27:51.262000Z", - "filters": { - "brand_ids": [ - 2751 - ], - "brands": [ - "Puma" - ], - "store_ids": [ - 3622 - ], - "stores": [ - "Vikings Cbs" - ] + { + "count": 1152, + "display": "No Image", + "is_selected": false, + "value": "default" + } + ] + }, + { + "key": { + "display": "Set", + "kind": "multivalued", + "logo": "", + "name": "is_set" + }, + "values": [ + { + "count": 4263, + "display": "No", + "is_selected": false, + "value": false + } + ] + }, + { + "key": { + "display": "Product Fit", + "kind": "multivalued", + "logo": "", + "name": "product_fit" + }, + "values": [ + { + "count": 14, + "display": "Regular", + "is_selected": false, + "value": "Regular" + } + ] + }, + { + "key": { + "display": "Primary Material", + "kind": "multivalued", + "logo": "", + "name": "primary_material" + }, + "values": [ + { + "count": 1246, + "display": "Cotton", + "is_selected": false, + "value": "Cotton" + } + ] + }, + { + "key": { + "display": "Gender", + "kind": "multivalued", + "logo": "", + "name": "gender" + }, + "values": [ + { + "count": 2125, + "display": "Men", + "is_selected": false, + "value": "Men" }, - "id": "6401bd972a2e6c3d508c9203", - "modified_on": "2023-03-03T09:27:51.262000", - "notification_emails": [], - "seller_id": 577, - "status": "success", - "task_id": "ab469da4-b9a5-11ed-955a-d6fb21611540", - "type": "excel", - "url": "https://regrowth.s3.amazonaws.com/slingshot-catalogues/seller-catalog/577/ab469da4-b9a5-11ed-955a-d6fb21611540/ab469da4-b9a5-11ed-955a-d6fb21611540.zip" - } - ] - } + { + "count": 1492, + "display": "Women", + "is_selected": false, + "value": "Women" + } + ] + }, + { + "key": { + "display": "Primary Colour", + "kind": "multivalued", + "logo": "", + "name": "primary_color" + }, + "values": [ + { + "count": 1403, + "display": "Multi", + "is_selected": false, + "value": "Multi" + } + ] + }, + { + "key": { + "display": "Size Depth", + "kind": "range", + "logo": "https://hdn-1.fynd.com/global/menu-icons/Size%20Depth.png", + "name": "size_depth" + }, + "values": [ + { + "count": 4263, + "display": "0 - 9", + "display_format": "{} - {}", + "is_selected": false, + "max": 9, + "min": 0, + "query_format": "[{} TO {}]", + "selected_max": 9, + "selected_min": 0 + } + ] + }, + { + "key": { + "display": "Price", + "kind": "range", + "logo": "https://hdn-1.fynd.com/global/menu-icons/Min%20price%20effective.png", + "name": "min_price_effective" + }, + "values": [ + { + "count": 4263, + "currency_code": "INR", + "currency_symbol": "₹", + "is_selected": false, + "max": 24999, + "min": 398, + "query_format": "[{},INR TO {},INR]", + "selected_max": 24998.77, + "selected_min": 398.8 + } + ] + }, + { + "key": { + "display": "Discount", + "kind": "range", + "logo": "https://hdn-1.fynd.com/global/menu-icons/Platform%20Discount.png", + "name": "platform_discount" + }, + "values": [ + { + "count": 4263, + "display": "0 - 50", + "display_format": "{} - {}", + "is_selected": false, + "max": 50, + "min": 0, + "query_format": "[{} TO {}]", + "selected_max": 50, + "selected_min": 0 + } + ] + } + ], + "sort_on": [ + { + "display": "Latest Products", + "is_selected": true, + "logo": "https://hdn-1.fynd.com/global/menu-icons/Latest%20Products.png", + "name": "Latest Products", + "value": "latest" + }, + { + "display": "Popularity", + "is_selected": false, + "logo": "https://hdn-1.fynd.com/global/menu-icons/Popularity.png", + "name": "Popularity", + "value": "popular" + }, + { + "display": "Price Low to High", + "is_selected": false, + "logo": "https://hdn-1.fynd.com/global/menu-icons/Price%20High%20to%20Low.png", + "name": "Price Low to High", + "value": "price_asc" + }, + { + "display": "Price High to Low", + "is_selected": false, + "logo": "https://hdn-1.fynd.com/global/menu-icons/Price%20High%20to%20Low.png", + "name": "Price High to Low", + "value": "price_dsc" + }, + { + "display": "Discount Low to High", + "is_selected": false, + "logo": "https://hdn-1.fynd.com/global/menu-icons/Discount%20Low%20to%20High.png", + "name": "Discount Low to High", + "value": "discount_asc" + }, + { + "display": "Discount High to Low", + "is_selected": false, + "logo": "https://hdn-1.fynd.com/global/menu-icons/Discount%20Low%20to%20High.png", + "name": "Discount High to Low", + "value": "discount_dsc" + }, + { + "display": "Rating", + "is_selected": false, + "logo": "https://hdn-1.fynd.com/global/menu-icons/Rating.png", + "name": "Rating", + "value": "rating_dsc" + }, + { + "display": "Size Depth (High to Low)", + "is_selected": false, + "logo": "https://hdn-1.fynd.com/global/menu-icons/Size%20Depth.png", + "name": "Size Depth (High to Low)", + "value": "depth_desc" + } + ] } ```
-
- @@ -19785,99 +13750,63 @@ Returns a list of inventory export jobs --- -### listProductTemplate -List all Templates +### getSearchConfiguration +List search configuration for an application ```javascript // Promise -const promise = platformClient.catalog.listProductTemplate({ department : value }); +const promise = platformClient.application("").catalog.getSearchConfiguration(); // Async/Await -const data = await platformClient.catalog.listProductTemplate({ department : value }); +const data = await platformClient.application("").catalog.getSearchConfiguration(); ``` -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| department | string | yes | A `department` is the name of a particular department. | - - -Allows you to list all product templates, also can filter by department +This view allows you to add/modify searchable attributes for an application *Returned Response:* -[TemplatesResponse](#TemplatesResponse) - -List of product templates. See example below or refer `TemplatesResponse` for details - +[GetSearchConfigurationResponse](#GetSearchConfigurationResponse) +Search configuration for the specified application. See example below or refer `GetSearchConfigurationResponse` for details -
-  Examples:
-  success +  Example: ```json { - "value": { - "page": { - "current": 1, - "type": "number", - "size": 1, - "has_previous": false, - "has_next": false, - "item_total": 1 + "application_id": "1234", + "company_id": 1, + "is_proximity_enabled": false, + "proximity": 2, + "searchable_attributes": [ + { + "key": "brand_uid", + "name": "", + "priority": 1 }, - "items": [ - { - "categories": [ - "hello3" - ], - "created_by": { - "user_id": "000000000000000016841367", - "username": "app@fynd.com" - }, - "is_active": true, - "is_expirable": false, - "modified_by": { - "user_id": "000000000000000016841367", - "username": "app@fynd.com" - }, - "slug": "platform_template", - "is_archived": false, - "departments": [ - "producttemplatedepartment" - ], - "attributes": [ - "test-variant-field", - "test-variant-field-2", - "variant-field-3" - ], - "logo": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/fyndnp/wrkr/addsale/products/pictures/template/logo/original/1UZtJvzM0-test-variant-template.png", - "name": "platform_template", - "is_physical": true, - "id": "657063184ca273c8dece5bd2" - } - ] - } + { + "key": "category_uid", + "name": "", + "priority": 2 + } + ] } ```
-
- @@ -19889,19 +13818,17 @@ List of product templates. See example below or refer `TemplatesResponse` for de --- -### listProductTemplateCategories -List Department specifiec product categories +### getSearchKeywords +Get a Search Keywords Details ```javascript // Promise -const promise = platformClient.catalog.listProductTemplateCategories({ departments : value, - itemType : value }); +const promise = platformClient.application("").catalog.getSearchKeywords({ id : value }); // Async/Await -const data = await platformClient.catalog.listProductTemplateCategories({ departments : value, - itemType : value }); +const data = await platformClient.application("").catalog.getSearchKeywords({ id : value }); ``` @@ -19910,142 +13837,48 @@ const data = await platformClient.catalog.listProductTemplateCategories({ depar | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| departments | string | yes | A `department` is name of a departments whose category needs to be listed. Can specify multiple departments. | -| itemType | string | yes | An `item_type` is the type of item, it can be `set`, `standard`, `digital`, etc. | - - - -Allows you to list all product categories values for the departments specified - -*Returned Response:* - - - - -[ProdcutTemplateCategoriesResponse](#ProdcutTemplateCategoriesResponse) - -List of all categories attached to departments specified. See example below or refer `ProdcutTemplateCategoriesResponse` for details - - - - -
-  Examples: - - -
-  success - -```json -{ - "value": { - "items": [ - { - "uid": 3, - "name": "hello3", - "slug": "hello3", - "slug_key": "hello3", - "template_slug": "test-variant-template" - } - ] - } -} -``` -
- -
- - - - - - - - - ---- - - -### listProductTemplateExportDetails -Allows you to list all product templates export list details - - - -```javascript -// Promise -const promise = platformClient.catalog.listProductTemplateExportDetails(); - -// Async/Await -const data = await platformClient.catalog.listProductTemplateExportDetails(); -``` - - - +| id | string | yes | A `id` is a unique identifier for a particular detail. Pass the `id` of the keywords which you want to retrieve. | -Can view details including trigger data, task id , etc. +Get the details of a words by its `id`. If successful, returns a Collection resource in the response body specified in `GetSearchWordsDetailResponseSchema` *Returned Response:* -[ProductDownloadsResponse](#ProductDownloadsResponse) - -List of Product Downloads Data. See example below or refer `ProductDownloadsResponse` for details - +[GetSearchWordsDetailResponse](#GetSearchWordsDetailResponse) +The Collection object. See example below or refer `GetSearchWordsDetailResponseSchema` for details -
-  Examples:
-  success +  Example: ```json { - "value": { - "items": [ - { - "completed_on": "2020-12-23T07:23:41.031000Z", - "created_by": { - "user_id": "5646", - "username": "917972410891_48194" - }, - "data": { - "brand": [ - "ruosh" - ], - "templates": [ - "mobile-phones-and-tablet" - ], - "type": "csv" - }, - "id": "5fe2f077516d980001880943", - "seller_id": 3, - "status": "success", - "task_id": "c4b54ace-44ef-11eb-9806-1ef9bc4a2da1", - "template_tags": { - "mobile-phones-and-tablet": { - "display": "Mobile Phones & Tablet", - "logo": "https://hdn-1.jiox0.de/jiox0/seller/pictures/logo/original/Oda39B_99946594-portable-devices-with-tablet-and-mobile-phone-vector-icon-for-apps-and-websites.jpgcc2dff44-7fae-4002-9ebe-d2b59c8bee91/Oda39B_99946594-portable-devices-with-tablet-and-mobile-phone-vector-icon-for-apps-and-websites.jpg" - } - }, - "trigger_on": "2020-12-23T07:23:35.302000Z", - "url": "https://regrowth.s3.amazonaws.com/slingshot-catalogues/seller-catalog/3/c4b54ace-44ef-11eb-9806-1ef9bc4a2da1/c4b54ace-44ef-11eb-9806-1ef9bc4a2da1.zip" - } - ], - "page": {} - } + "_custom_json": {}, + "app_id": "000000000000000000000001", + "is_active": true, + "result": { + "query": { + "department": [ + "men" + ] + }, + "sort_on": "popular" + }, + "uid": "602fa1e9a596ce349563f6b9", + "words": [ + "sds" + ] } ```
-
- @@ -20057,21 +13890,17 @@ List of Product Downloads Data. See example below or refer `ProductDownloadsResp --- -### listTemplateBrandTypeValues -Allows you to list all values for Templates, Brands or Type +### getSellerInsights +Analytics data of catalog and inventory that are being cross-selled. ```javascript // Promise -const promise = platformClient.catalog.listTemplateBrandTypeValues({ filter : value, - templateTag : value, - itemType : value }); +const promise = platformClient.catalog.getSellerInsights({ sellerAppId : value }); // Async/Await -const data = await platformClient.catalog.listTemplateBrandTypeValues({ filter : value, - templateTag : value, - itemType : value }); +const data = await platformClient.catalog.getSellerInsights({ sellerAppId : value }); ``` @@ -20080,54 +13909,35 @@ const data = await platformClient.catalog.listTemplateBrandTypeValues({ filter | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| filter | string | yes | A `filter` is the unique identifier of the type of value required. | -| templateTag | string | no | A `template_tag` is the identifier of the type of template required. | -| itemType | string | no | A `item_type` is the identifier of the type of template required. | +| sellerAppId | string | yes | Id of the seller application which is serving the invetory/catalog of the company | -The filter type query parameter defines what type of data to return. The type of query returns the valid values for the same +Analytics data of catalog and inventory that are being cross-selled. *Returned Response:* -[ProductConfigurationDownloads](#ProductConfigurationDownloads) - -See example below or refer `ProductConfigurationDownloadsSchema` for details - +[CrossSellingResponse](#CrossSellingResponse) +Response Data -
-  Examples:
-  success +  Example: ```json { - "value": { - "data": [ - { - "display": "csv", - "value": "csv" - }, - { - "display": "excel", - "value": "excel" - } - ], - "multivalue": false - } + "articles": 18, + "products": 18 } ```
-
- @@ -20139,19 +13949,17 @@ See example below or refer `ProductConfigurationDownloadsSchema` for details --- -### patchInventoryExportDetail -Edit notification_emails and status of export job. +### getSingleProductHSNCode +Hsn Code List. ```javascript // Promise -const promise = platformClient.catalog.patchInventoryExportDetail({ jobId : value, - body : value }); +const promise = platformClient.catalog.getSingleProductHSNCode({ reportingHsn : value }); // Async/Await -const data = await platformClient.catalog.patchInventoryExportDetail({ jobId : value, - body : value }); +const data = await platformClient.catalog.getSingleProductHSNCode({ reportingHsn : value }); ``` @@ -20160,53 +13968,67 @@ const data = await platformClient.catalog.patchInventoryExportDetail({ jobId : | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| jobId | string | yes | Company Id in which assets to be uploaded. | -| body | [ExportPatchRequest](#ExportPatchRequest) | yes | Request body | - +| reportingHsn | string | yes | reporting_hsn | -This API helps to edit notification_emails and status of export job. -*Returned Response:* +Hsn Code List. +*Returned Response:* -[EditInventoryDownloadsResponse](#EditInventoryDownloadsResponse) -Returns a success response +[HSNDataInsertV2](#HSNDataInsertV2) +Get specific HSN details. See example below or refer `HsnCodesListingResponseSchema` for details -
-  Examples:
-  success +  Example: ```json { - "value": { - "data": { - "url": "https://cdn.pixelbin.io/v2/falling-surf-7c8bb8/fyndnp/wrkr/x5/catalog/24/fffac430-829e-11ed-8ffa-f2f2a1c4d5d1/fffac430-829e-11ed-8ffa-f2f2a1c4d5d1.zip", - "completed_on": "2022-12-23T08:51:34.561000Z", - "seller_id": 24, - "task_id": "fffac430-829e-11ed-8ffa-f2f2a1c4d5d1", - "created_on": "2022-12-23T08:51:32.942000Z", - "modified_on": "2022-12-23T08:51:32.942000", - "notification_emails": [ - "data@mail.com" - ], - "status": "success" + "country_code": "IN", + "created_by": { + "user_id": -1, + "username": "silverbolt" + }, + "created_on": "2022-02-24T09:14:03Z", + "description": "Data for HSN Code", + "hsn_code": "89787179", + "id": "6216ff0378da3f906fc82544", + "modified_by": { + "user_id": -1, + "username": "silverbolt" + }, + "modified_on": "2022-02-24T09:14:03Z", + "reporting_hsn": "89787179H29", + "taxes": [ + { + "cess": 23, + "effective_date": "2022-02-11T15:00:00", + "rate": 5, + "threshold": 10000 + }, + { + "effective_date": "2022-02-11T15:00:00", + "rate": 12, + "threshold": 12000 + }, + { + "effective_date": "2022-02-12T15:00:00", + "rate": 18, + "threshold": 5000 } - } + ], + "type": "goods" } ```
-
- @@ -20218,19 +14040,17 @@ Returns a success response --- -### patchProductExportDetail -Edit notification_emails and status of export job. +### getSizeGuide +Get a single size guide. ```javascript // Promise -const promise = platformClient.catalog.patchProductExportDetail({ jobId : value, - body : value }); +const promise = platformClient.catalog.getSizeGuide({ id : value }); // Async/Await -const data = await platformClient.catalog.patchProductExportDetail({ jobId : value, - body : value }); +const data = await platformClient.catalog.getSizeGuide({ id : value }); ``` @@ -20239,68 +14059,80 @@ const data = await platformClient.catalog.patchProductExportDetail({ jobId : va | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| jobId | string | yes | Company Id in which assets to be uploaded. | -| body | [ExportPatchRequest](#ExportPatchRequest) | yes | Request body | - +| id | string | yes | Id of the size guide to be viewed. | -This API helps to edit notification_emails and status of export job. -*Returned Response:* +This API helps to get data associated to a size guide. +*Returned Response:* -[PatchProductDownloadsResponse](#PatchProductDownloadsResponse) -Returns a success response +[SizeGuideResponse](#SizeGuideResponse) +Brand object. See example below or refer `SizeGuideResponseSchema` for details -
-  Examples:
-  success +  Example: ```json { - "value": { - "data": { - "stats": { - "total": 1 - }, - "seller_id": 10, - "task_id": "afcfccb2-9e31-11ee-a3ca-d6fb2161153f", - "filters": { - "brands": [], - "templates": [ - "activewear-accessories" - ], - "catalogue_types": [ - "standard" - ] + "active": true, + "brand_id": 1, + "company_id": 1, + "created_by": { + "user_id": "-1", + "username": "silverbolt" + }, + "created_on": "2021-02-24T17:46:04.146000Z", + "guide": { + "meta": { + "headers": { + "col_1": { + "convertable": false, + "value": "Head" + }, + "col_2": { + "convertable": true, + "value": "Shoulder" + } }, - "created_by": { - "username": "app@fynd.com", - "user_id": "000000000000000016841367" - }, - "created_on": "2023-12-19T05:44:33.528000Z", - "modified_on": "2023-12-19T05:44:33.528000", - "type": "excel", - "notification_emails": [ - "data@mail.com" - ], - "status": "pending" + "unit": "cm", + "values": [ + { + "col_1": "10", + "col_2": "20" + }, + { + "col_1": "12", + "col_2": "22" + }, + { + "col_1": "14", + "col_2": "24" + } + ] } - } + }, + "id": "60364384f08385bee776f83d", + "modified_by": { + "user_id": "123", + "username": "917827311650_22960" + }, + "modified_on": "2021-02-25T15:19:30.822000Z", + "name": "edited size guide", + "subtitle": "I am demo", + "tag": "demo", + "title": "Demo SG" } ```
-
- @@ -20312,19 +14144,27 @@ Returns a success response --- -### pollProductPriceFactoryBulkJob - +### getSizeGuides +Get list of size guides ```javascript // Promise -const promise = platformClient.application("").catalog.pollProductPriceFactoryBulkJob({ id : value, - jobId : value }); +const promise = platformClient.catalog.getSizeGuides({ active : value, + q : value, + tag : value, + pageNo : value, + pageSize : value, + brandId : value }); // Async/Await -const data = await platformClient.application("").catalog.pollProductPriceFactoryBulkJob({ id : value, - jobId : value }); +const data = await platformClient.catalog.getSizeGuides({ active : value, + q : value, + tag : value, + pageNo : value, + pageSize : value, + brandId : value }); ``` @@ -20332,22 +14172,26 @@ const data = await platformClient.application("").catalog.pollPr | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| id | string | yes | An `id` is a unique identifier for a particular price factory. | -| jobId | string | yes | A `job_id` is a unique identifier for a particular bulk job. | +| --------- | ----- | -------- | ----------- | +| active | boolean | no | filter size guide on basis of active, in-active | +| q | string | no | Query that is to be searched. | +| tag | string | no | to filter size guide on basis of tag. | +| pageNo | number | no | The page number to navigate through the given set of results | +| pageSize | number | no | Number of items to retrieve in each page. Default is 10. | +| brandId | number | no | Brand id that is to be searched. | -This API allows to poll bulk job for adding products in price factory. +This API allows to view all the size guides associated to the seller. *Returned Response:* -[CreateAppPriceFactoryProductBulkJobPollResponse](#CreateAppPriceFactoryProductBulkJobPollResponse) +[ListSizeGuide](#ListSizeGuide) -Success response +Size guide object. See example below or refer `ListSizeGuide` for details @@ -20357,20 +14201,64 @@ Success response ```json { - "status": "pending", - "total_records": 100, - "success_records": 50, - "failed_records": 50, - "error_file": "https://s3.amazonaws.com/bucket_name/file_name", - "created_on": "2021-09-23T12:00:00.000000Z", - "modified_on": "2021-09-23T12:00:00.000000Z", - "created_by": { - "user_id": "507f1f77bcf86cd799439011", - "username": "testuser" - }, - "modified_by": { - "user_id": "507f1f77bcf86cd799439011", - "username": "testuser" + "items": [ + { + "active": true, + "brand_id": 2, + "company_id": 12, + "created_by": { + "user_id": "-1", + "username": "silverbolt" + }, + "created_on": "2021-02-24T17:46:04.146000Z", + "guide": { + "meta": { + "headers": { + "col_1": { + "convertable": false, + "value": "Head" + }, + "col_2": { + "convertable": true, + "value": "Shoulder" + } + }, + "unit": "cm", + "values": [ + { + "col_1": "10", + "col_2": "20" + }, + { + "col_1": "12", + "col_2": "22" + }, + { + "col_1": "14", + "col_2": "24" + } + ] + } + }, + "id": "60364384f08385bee776f83d", + "modified_by": { + "user_id": "-1", + "username": "silverbolt" + }, + "modified_on": "2021-02-24T17:46:04.146000Z", + "name": "Demo", + "subtitle": "I am demo", + "tag": "demo", + "title": "Demo SG" + } + ], + "page": { + "current": 1, + "has_next": false, + "has_previous": false, + "item_count": 1, + "size": 1, + "type": "number" } } ``` @@ -20387,21 +14275,21 @@ Success response --- -### processProductPriceFactoryBulkJob - +### getStoreDetail +Get the Store details. ```javascript // Promise -const promise = platformClient.application("").catalog.processProductPriceFactoryBulkJob({ id : value, - jobId : value, - body : value }); +const promise = platformClient.catalog.getStoreDetail({ q : value, + pageNo : value, + pageSize : value }); // Async/Await -const data = await platformClient.application("").catalog.processProductPriceFactoryBulkJob({ id : value, - jobId : value, - body : value }); +const data = await platformClient.catalog.getStoreDetail({ q : value, + pageNo : value, + pageSize : value }); ``` @@ -20409,22 +14297,23 @@ const data = await platformClient.application("").catalog.proces | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| id | string | yes | An `id` is a unique identifier for a particular price factory. | -| jobId | string | yes | A `job_id` is a unique identifier for a particular bulk job. | -| body | [CreateAppPriceFactoryProductBulkJobRequest](#CreateAppPriceFactoryProductBulkJobRequest) | yes | Request body | +| --------- | ----- | -------- | ----------- | +| q | string | no | The search related the store for the company id. | +| pageNo | number | no | The number of page for the company id. | +| pageSize | number | no | Number of records that can be seen on the page for the company id. | + -This API allows to process bulk job for adding products in price factory. +Get the details of the store associated with the company ID passed. *Returned Response:* -[CreateAppPriceFactoryProductBulkJobResponse](#CreateAppPriceFactoryProductBulkJobResponse) +[OptinStoreDetails](#OptinStoreDetails) -Success response +See example below or refer `OptinStoreDetailsSchema` for details @@ -20433,20 +14322,7 @@ Success response   Example: ```json -{ - "job_id": "507f1f77bcf86cd799439011", - "status": "processing", - "created_on": "2021-09-23T12:00:00.000000Z", - "modified_on": "2021-09-23T12:00:00.000000Z", - "created_by": { - "user_id": "507f1f77bcf86cd799439011", - "username": "testuser" - }, - "modified_by": { - "user_id": "507f1f77bcf86cd799439011", - "username": "testuser" - } -} + ``` @@ -20461,17 +14337,23 @@ Success response --- -### updateAllowSingle -Update allow single flag for filters of the application. +### getVariantsOfProducts +Get product list ```javascript // Promise -const promise = platformClient.application("").catalog.updateAllowSingle({ body : value }); +const promise = platformClient.catalog.getVariantsOfProducts({ itemId : value, + variantType : value, + pageNo : value, + pageSize : value }); // Async/Await -const data = await platformClient.application("").catalog.updateAllowSingle({ body : value }); +const data = await platformClient.catalog.getVariantsOfProducts({ itemId : value, + variantType : value, + pageNo : value, + pageSize : value }); ``` @@ -20479,42 +14361,61 @@ const data = await platformClient.application("").catalog.update | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| body | [AllowSingleRequest](#AllowSingleRequest) | yes | Request body | - +| --------- | ----- | -------- | ----------- | +| itemId | number | yes | Get list of variants of item Id | +| variantType | string | yes | Get multiple products filtered by variant type | +| pageNo | number | no | The page number to navigate through the given set of results | +| pageSize | number | no | Number of items to retrieve in each page. Default is 10. | -Update allow single flag for filters of the application. -*Returned Response:* +This API gets meta associated to products. +*Returned Response:* -[ConfigSuccessResponse](#ConfigSuccessResponse) -success message will tell whether the operation was successful. +[ProductVariantsResponse](#ProductVariantsResponse) +Product Meta. See example below for details -
-  Examples:
-  success +  Example: ```json { - "value": { - "message": "Successfully updated allow single." - } + "page": { + "current": 1, + "has_next": false, + "has_previous": false, + "item_total": 1, + "size": 1, + "type": "number" + }, + "variants": [ + { + "brand_uid": 401, + "category_uid": 3938, + "item_code": "TEST-MSA-6", + "media": [ + { + "type": "image", + "url": "https://hdn-1.jiox0.de/jiox0/products/pictures/item/free/original/7cGLXZLpO-iN3Jd9uro-Wiv-7J9qC-product.png" + } + ], + "name": "test-msa-6", + "slug": "test-msa-6", + "uid": 7526471 + } + ] } ```
-
- @@ -20526,19 +14427,29 @@ success message will tell whether the operation was successful. --- -### updateAppBrand -Update a single custom json. +### listCategories +Get product categories list ```javascript // Promise -const promise = platformClient.application("").catalog.updateAppBrand({ brandUid : value, - body : value }); +const promise = platformClient.catalog.listCategories({ level : value, + department : value, + q : value, + pageNo : value, + pageSize : value, + uids : value, + slug : value }); // Async/Await -const data = await platformClient.application("").catalog.updateAppBrand({ brandUid : value, - body : value }); +const data = await platformClient.catalog.listCategories({ level : value, + department : value, + q : value, + pageNo : value, + pageSize : value, + uids : value, + slug : value }); ``` @@ -20546,43 +14457,438 @@ const data = await platformClient.application("").catalog.update | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| brandUid | number | yes | brand id for which the custom_json is associated. | -| body | [ApplicationBrandJson](#ApplicationBrandJson) | yes | Request body | - +| --------- | ----- | -------- | ----------- | +| level | string | no | Get category for multiple levels | +| department | number | no | Get category for multiple departments filtered | +| q | string | no | Get multiple categories filtered by search string | +| pageNo | number | no | The page number to navigate through the given set of results | +| pageSize | number | no | Number of items to retrieve in each page. Default is 10. | +| uids | Array | no | Get multiple categories filtered by category uids. | +| slug | string | no | Get category by slug | -This API helps to update data associated to a item custom meta. -*Returned Response:* +This API gets meta associated to product categories. +*Returned Response:* -[SuccessResponse1](#SuccessResponse1) -Returns a success response +[CategoryResponse](#CategoryResponse) +Category Meta. See example below or refer `CategoryResponse` for details -
-  Examples:
-  success +  Example: ```json { - "value": { - "success": true + "items": [ + { + "created_by": { + "user_id": "5646", + "username": "917972410891_48194" + }, + "created_on": "2021-04-02T15:43:59.410000Z", + "departments": [ + 1 + ], + "hierarchy": [ + { + "department": 1, + "l1": 1, + "l2": 22329 + } + ], + "id": "60673bbf7896da00017885ad", + "is_active": true, + "level": 3, + "marketplaces": {}, + "media": { + "landscape": "https://hdn-1.addsale.com/x0/category/pictures/landscape-banner/original/_7GDi3tyi-.png", + "logo": "https://hdn-1.addsale.com/x0/category/pictures/square-logo/original/zTgh1zslj-.png", + "portrait": "https://hdn-1.addsale.com/x0/category/pictures/portrait-banner/original/VKqwRngFh-.png" + }, + "modified_by": { + "user_id": "5646", + "username": "917972410891_48194" + }, + "modified_on": "2021-04-02T15:43:59.410000Z", + "name": "Air Conditioners", + "priority": 1, + "slug": "air-conditioners", + "synonyms": [], + "tryouts": [], + "uid": 22330 + }, + { + "created_by": { + "user_id": "5646", + "username": "917972410891_48194" + }, + "created_on": "2021-04-02T15:42:55.405000Z", + "departments": [ + 1 + ], + "hierarchy": [], + "id": "60673b7f7896da00017885ac", + "is_active": true, + "level": 2, + "media": { + "landscape": "https://hdn-1.addsale.com/x0/category/pictures/landscape-banner/original/_7GDi3tyi-.png", + "logo": "https://hdn-1.addsale.com/x0/category/pictures/square-logo/original/zTgh1zslj-.png", + "portrait": "https://hdn-1.addsale.com/x0/category/pictures/portrait-banner/original/VKqwRngFh-.png" + }, + "modified_by": { + "user_id": "5646", + "username": "917972410891_48194" + }, + "modified_on": "2021-04-02T15:42:55.405000Z", + "name": "Home Appliances", + "priority": 1, + "slug": "home-appliances", + "synonyms": [], + "uid": 22329 + }, + { + "created_by": { + "user_id": "5721", + "username": "919821012599_75351" + }, + "created_on": "2021-01-14T05:28:02.148000Z", + "departments": [ + 21 + ], + "hierarchy": [], + "id": "5fffd662e64eb40001fc8a42", + "is_active": true, + "level": 2, + "media": { + "landscape": "https://hdn-1.addsale.com/x0/category/pictures/landscape-banner/original/0wCdjxWpI-.png", + "logo": "https://hdn-1.addsale.com/x0/category/pictures/square-logo/original/zTgh1zslj-.png", + "portrait": "https://hdn-1.addsale.com/x0/category/pictures/portrait-banner/original/VKqwRngFh-.png" + }, + "modified_by": { + "user_id": "5677", + "username": "917753852478_51632" + }, + "modified_on": "2021-03-04T15:43:50.495000Z", + "name": "Dummy category level 2 by fahim", + "priority": 123456, + "slug": "dummy-category-level-2", + "synonyms": [ + "skin", + "care", + "asdasd" + ], + "uid": 22323 + }, + { + "created_by": { + "user_id": "-1", + "username": "silverbolt" + }, + "created_on": "2021-02-25T00:00:47.589000Z", + "departments": [ + 21 + ], + "hierarchy": [ + { + "department": 21, + "l1": 22322, + "l2": 22323 + } + ], + "id": "60369b57d23031d14be92c18", + "is_active": true, + "level": 3, + "marketplaces": {}, + "media": { + "landscape": "https://hdn-1.addsale.com/x0/category/pictures/landscape-banner/original/0wCdjxWpI-.png", + "logo": "https://hdn-1.addsale.com/x0/category/pictures/square-logo/original/EfCt9iXx8-http/d3p8ifzkmzds37.cloudfront.net/media/logo/department/original/15870_c287d3c2431a432bb0e49363ef6b82bc.png.jpeg", + "portrait": "https://hdn-1.addsale.com/x0/category/pictures/portrait-banner/original/S1axCMOJ4-.png" + }, + "modified_by": { + "user_id": "5677", + "username": "917753852478_51632" + }, + "modified_on": "2021-03-04T15:39:52.108000Z", + "name": "Dummy level 4", + "priority": 986532, + "slug": "dummy-level-4", + "synonyms": [], + "tryouts": [], + "uid": 22325 + }, + { + "created_by": { + "user_id": "5721", + "username": "919821012599_75351" + }, + "created_on": "2021-01-14T05:28:59.852000Z", + "departments": [ + 2, + 4, + 21 + ], + "hierarchy": [ + { + "department": 21, + "l1": 22322, + "l2": 22323 + }, + { + "department": 4, + "l1": 3672, + "l2": 3732 + }, + { + "department": 2, + "l1": 595, + "l2": 730 + } + ], + "id": "5fffd69be64eb40001fc8a65", + "is_active": true, + "level": 3, + "marketplaces": {}, + "media": { + "landscape": "https://hdn-1.addsale.com/x0/category/pictures/landscape-banner/original/0wCdjxWpI-.png", + "logo": "https://hdn-1.addsale.com/x0/category/pictures/square-logo/original/EfCt9iXx8-http/d3p8ifzkmzds37.cloudfront.net/media/logo/department/original/15870_c287d3c2431a432bb0e49363ef6b82bc.png.jpeg", + "portrait": "https://hdn-1.addsale.com/x0/category/pictures/portrait-banner/original/S1axCMOJ4-.png" + }, + "modified_by": { + "user_id": "5677", + "username": "917753852478_51632" + }, + "modified_on": "2021-03-04T15:39:46.246000Z", + "name": "Dummy level 3 by fahim", + "priority": 986532, + "slug": "dummy-level-3", + "synonyms": [], + "tryouts": [ + "Lipstick", + "Eyeliner" + ], + "uid": 22324 + }, + { + "created_on": "2016-04-09T06:44:35Z", + "departments": [ + 4 + ], + "hierarchy": [], + "id": "5fabab8ea18a1284b97ff6c4", + "is_active": true, + "level": 1, + "media": { + "landscape": "https://hdn-1.addsale.com/x0/seller/pictures/logo/original/ywPVrU_preview_a637ca6e4da6e38f03eb0d650ac5d6ba.jpgc73cc22f-b5ee-4fd4-a585-8ada35762d68/ywPVrU_preview_a637ca6e4da6e38f03eb0d650ac5d6ba.jpg", + "logo": "https://hdn-1.addsale.com/x0/seller/pictures/logo/original/YHIeoQ_fruit___vegetable_logo.jpg16aab608-a78a-458f-b60b-524525f27dec/YHIeoQ_fruit___vegetable_logo.jpg", + "portrait": "https://hdn-1.addsale.com/x0/seller/pictures/logo/original/ywPVrU_preview_a637ca6e4da6e38f03eb0d650ac5d6ba.jpgc73cc22f-b5ee-4fd4-a585-8ada35762d68/ywPVrU_preview_a637ca6e4da6e38f03eb0d650ac5d6ba.jpg" + }, + "modified_by": { + "uid": "5677", + "username": "917753852478_51632" + }, + "modified_on": "2021-03-03T09:35:50.415000Z", + "name": "Gourmet & World Food", + "priority": 123, + "slug": "gourmet-world-food", + "synonyms": [ + "gourmet & world food", + "food", + "gourmet" + ], + "uid": 3151 + }, + { + "created_by": { + "uid": "5677", + "username": "917753852478_51632" + }, + "created_on": "2021-03-03T06:30:08.342000Z", + "departments": [ + 1, + 2 + ], + "hierarchy": [ + { + "department": 2, + "l1": 595, + "l2": 714 + }, + { + "department": 1, + "l1": 2, + "l2": 4 + } + ], + "id": "603f2cf0aac0360001c00731", + "is_active": true, + "level": 3, + "marketplaces": {}, + "media": { + "landscape": "https://hdn-1.addsale.com/x0/category/pictures/landscape-banner/original/0wCdjxWpI-.png", + "logo": "https://hdn-1.addsale.com/x0/category/pictures/square-logo/original/EfCt9iXx8-http/d3p8ifzkmzds37.cloudfront.net/media/logo/department/original/15870_c287d3c2431a432bb0e49363ef6b82bc.png.jpeg", + "portrait": "https://hdn-1.addsale.com/x0/category/pictures/portrait-banner/original/VKqwRngFh-.png" + }, + "modified_by": { + "uid": "5677", + "username": "917753852478_51632" + }, + "modified_on": "2021-03-03T08:34:47.999000Z", + "name": "Test Category kaf", + "priority": 23, + "slug": "test-category-kaf", + "synonyms": [ + "test", + "category" + ], + "tryouts": [ + "Lipstick", + "Blush" + ], + "uid": 22328 + }, + { + "created_by": { + "user_id": "-1", + "username": "silverbolt" + }, + "created_on": "2021-02-25T09:26:53.123000Z", + "departments": [ + 1 + ], + "hierarchy": [ + { + "department": 1, + "l1": 2, + "l2": 3 + } + ], + "id": "60372005d230311fe9e51f0b", + "is_active": false, + "level": 3, + "marketplaces": {}, + "media": { + "landscape": "https://hdn-1.fynd.com/media/banner/category/original/16128_380bed8bff064a0b981041df65e0d8b3.jpg", + "logo": "http://d3p8ifzkmzds37.cloudfront.net/media/logo/department/original/15870_c287d3c2431a432bb0e49363ef6b82bc.png", + "portrait": "http://cdn4.gofynd.com/media/logo/department/original/13239_660c6f5b2b8d458789de4552d241ea1b.jpg" + }, + "modified_by": { + "user_id": "-1", + "username": "silverbolt" + }, + "modified_on": "2021-02-25T09:26:53.123000Z", + "name": "Smart Cell", + "priority": 5, + "slug": "smart-cell", + "synonyms": [], + "tryouts": [], + "uid": 22327 + }, + { + "created_by": { + "user_id": "-1", + "username": "silverbolt" + }, + "created_on": "2021-02-25T00:09:35.026000Z", + "departments": [ + 21 + ], + "hierarchy": [ + { + "department": 21, + "l1": 22322, + "l2": 22323 + } + ], + "id": "60369d67d2303111b8924dcf", + "is_active": true, + "level": 3, + "marketplaces": {}, + "media": { + "landscape": "https://hdn-1.addsale.com/x0/category/pictures/landscape-banner/original/0wCdjxWpI-.png", + "logo": "https://hdn-1.addsale.com/x0/category/pictures/square-logo/original/EfCt9iXx8-http/d3p8ifzkmzds37.cloudfront.net/media/logo/department/original/15870_c287d3c2431a432bb0e49363ef6b82bc.png.jpeg", + "portrait": "https://hdn-1.addsale.com/x0/category/pictures/portrait-banner/original/S1axCMOJ4-.png" + }, + "modified_by": { + "user_id": "-1", + "username": "silverbolt" + }, + "modified_on": "2021-02-25T00:09:35.026000Z", + "name": "Dummy level 98", + "priority": 986532, + "slug": "dummy-level-98", + "synonyms": [], + "tryouts": [], + "uid": 22326 + }, + { + "created_on": "2016-04-09T06:44:35Z", + "departments": [ + 2, + 3 + ], + "hierarchy": [ + { + "department": 2, + "l1": 65, + "l2": 66 + }, + { + "department": 2, + "l1": 442, + "l2": 26 + }, + { + "department": 3, + "l1": 442, + "l2": 26 + } + ], + "id": "5fdba984642de8d93efb0d71", + "is_active": true, + "level": 3, + "marketplaces": {}, + "media": { + "landscape": "https://hdn-1.fynd.com/media/banner/category/original/19961_f042f1f4a90f4e828b6d77d6dbea264d.jpg", + "logo": "https://hdn-1.fynd.com/media/logo/category/original/81ef023d375044e9b9daa66b81ec411f.jpg", + "portrait": "https://hdn-1.fynd.com/media/banner_portrait/category/original/19960_c679d51cb1bd4ca99f00f9050aa647a4.jpg" + }, + "modified_by": { + "user_id": "5677", + "username": "917753852478_51632" + }, + "modified_on": "2021-02-15T15:48:05.329000Z", + "name": "Sports Bra", + "priority": 281, + "slug": "sports-bra", + "synonyms": [ + "Sports Bra", + "activewear bra", + "gym bra" + ], + "tryouts": [], + "uid": 315 + } + ], + "page": { + "current": 1, + "has_next": true, + "has_previous": false, + "item_total": 574, + "size": 58, + "type": "number" } } ```
-
- @@ -20594,19 +14900,29 @@ Returns a success response --- -### updateAppCategory -Update a single custom json. +### listDepartmentsData +List all Departments. ```javascript // Promise -const promise = platformClient.application("").catalog.updateAppCategory({ categoryUid : value, - body : value }); +const promise = platformClient.catalog.listDepartmentsData({ pageNo : value, + itemType : value, + pageSize : value, + name : value, + search : value, + isActive : value, + slug : value }); // Async/Await -const data = await platformClient.application("").catalog.updateAppCategory({ categoryUid : value, - body : value }); +const data = await platformClient.catalog.listDepartmentsData({ pageNo : value, + itemType : value, + pageSize : value, + name : value, + search : value, + isActive : value, + slug : value }); ``` @@ -20614,43 +14930,358 @@ const data = await platformClient.application("").catalog.update | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| categoryUid | number | yes | category id for which the custom_json is associated. | -| body | [ApplicationCategoryJson](#ApplicationCategoryJson) | yes | Request body | - +| --------- | ----- | -------- | ----------- | +| pageNo | number | no | The page number to navigate through the given set of results | +| itemType | string | no | A `item_type` is a type of product eg. set, standard, digital | +| pageSize | number | no | Number of items to retrieve in each page. Default is 10. | +| name | string | no | Can search departments by passing name. | +| search | string | no | Can search departments by passing name of the department in search parameter. | +| isActive | boolean | no | Can query for departments based on whether they are active or inactive. | +| slug | string | no | Can filter by slug | -This API helps to update data associated to a item custom meta. -*Returned Response:* +Allows you to list all departments, also can search using name and filter active and incative departments, and item type. +*Returned Response:* -[SuccessResponse1](#SuccessResponse1) -Returns a success response +[DepartmentsResponse](#DepartmentsResponse) +List of departments data. See example below or refer `DepartmentsResponse` for details -
-  Examples:
-  success +  Example: ```json { - "value": { - "success": true + "items": [ + { + "_cls": "Department", + "_custom_json": {}, + "created_by": { + "user_id": "3", + "username": "918793638893_86554" + }, + "created_on": "2020-07-01T05:33:39.325000Z", + "id": "5efc2033623d390001782238", + "is_active": true, + "logo": "https://hdn-1.addsale.com/x0/seller/pictures/logo/original/BSQ9Gk_123522-best-starry-sky-wallpaper-1920x1200-ipad-pro.jpgc7d0c15c-c1ff-47eb-8423-6e2df51f2ddf/BSQ9Gk_123522-best-starry-sky-wallpaper-1920x1200-ipad-pro.jpg", + "modified_by": { + "user_id": "5677", + "username": "917753852478_51632" + }, + "modified_on": "2021-03-03T15:55:25.118000Z", + "name": "Sample Dept", + "platforms": {}, + "priority_order": 111, + "slug": "sample-dept", + "synonyms": [ + "test", + "sampe" + ], + "tags": [], + "uid": 5 + }, + { + "_cls": "Department", + "_custom_json": {}, + "created_by": { + "user_id": "0", + "username": "app@fynd.com" + }, + "created_on": "2020-05-19T06:53:37.629000Z", + "id": "5ec3827156a7200001c9aeea", + "is_active": true, + "logo": "https://hdn-1.addsale.com/addsale/media/logo/department/original/15974_381e2236c2a348cc851c29a5d05c66a9.png", + "modified_by": { + "user_id": "10", + "username": "fahimsakri_gofynd_com_44938" + }, + "modified_on": "2021-03-04T14:01:02.556000Z", + "name": "Men's Fashion", + "platforms": { + "fynd": true, + "fynd_store": true, + "marketplace": true, + "openapi": true, + "uniket_store": true, + "uniket_wholesale": true + }, + "priority_order": 111, + "slug": "men-s-fashion", + "synonyms": [], + "tags": [], + "uid": 2 + }, + { + "_cls": "Department", + "_custom_json": {}, + "created_by": { + "user_id": "10", + "username": "fahimsakri_gofynd_com_44938" + }, + "created_on": "2020-06-29T10:59:33.620000Z", + "id": "5ef9c9959b04f00001e40dba", + "is_active": true, + "logo": "https://hdn-1.addsale.com/x0/seller/pictures/logo/original/ywPVrU_preview_a637ca6e4da6e38f03eb0d650ac5d6ba.jpgc73cc22f-b5ee-4fd4-a585-8ada35762d68/ywPVrU_preview_a637ca6e4da6e38f03eb0d650ac5d6ba.jpg", + "modified_by": { + "user_id": "3", + "username": "918793638893_86554" + }, + "modified_on": "2020-08-06T18:08:02.675000Z", + "name": "Groceries", + "platforms": {}, + "priority_order": 10, + "slug": "groceries", + "synonyms": [], + "tags": [], + "uid": 4 + }, + { + "_cls": "Department", + "_custom_json": {}, + "created_by": { + "user_id": "0", + "username": "app@fynd.com" + }, + "created_on": "2020-05-18T16:14:41.689000Z", + "id": "5ec2b471661a4100019fca0d", + "is_active": true, + "logo": "https://hdn-1.addsale.com/x0/platform/pictures/free-logo/original/_G1Z2Fg1L-http:d3p8ifzkmzds37.cloudfront.netmedialogodepartmentoriginal15870_c287d3c2431a432bb0e49363ef6b82bc.png.png", + "modified_by": { + "user_id": "5677", + "username": "917753852478_51632" + }, + "modified_on": "2021-03-04T15:39:38.528000Z", + "name": "Electronics", + "platforms": { + "fynd": true, + "fynd_store": true, + "marketplace": true, + "openapi": true, + "uniket_store": true, + "uniket_wholesale": true + }, + "priority_order": 100, + "slug": "electronics", + "synonyms": [], + "tags": [], + "uid": 1 + }, + { + "_cls": "Department", + "_custom_json": {}, + "created_by": { + "user_id": "3", + "username": "918793638893_86554" + }, + "created_on": "2020-05-27T12:04:19.111000Z", + "id": "5ece5743cd1bae0001440427", + "is_active": true, + "logo": "https://hdn-1.addsale.com/x0/seller/pictures/landscape-banner/original/g2plam_logo_Jio.pngeeb392ca-3958-46a0-9f13-23c205b596f7/g2plam_logo_Jio.png", + "modified_by": { + "user_id": "3", + "username": "918793638893_86554" + }, + "modified_on": "2020-08-06T18:07:46.060000Z", + "name": "Industrial Supplies", + "platforms": {}, + "priority_order": 111, + "slug": "industrial-supplies", + "synonyms": [], + "tags": [], + "uid": 3 + }, + { + "_cls": "Department", + "_custom_json": {}, + "created_by": { + "user_id": "13", + "username": "abhinavsrivastava_gofynd_com_05674" + }, + "created_on": "2020-07-06T07:56:01.508000Z", + "id": "5f02d9116b0ae500018923dd", + "is_active": false, + "logo": "https://hdn-1.addsale.com/x0/seller/pictures/logo/original/wTcfEi_crysis_-_1.jpg14580947-a659-486d-b2d3-d2ca025b1cac/wTcfEi_crysis_-_1.jpg", + "modified_by": { + "user_id": "3", + "username": "918793638893_86554" + }, + "modified_on": "2020-08-06T18:08:12.576000Z", + "name": "Clothing", + "platforms": {}, + "priority_order": 1, + "slug": "clothing", + "synonyms": [], + "tags": [], + "uid": 6 + }, + { + "_cls": "Department", + "_custom_json": {}, + "created_by": { + "user_id": "5634", + "username": "asavarijadhav_gofynd_com_99880" + }, + "created_on": "2020-08-05T09:04:33.604000Z", + "id": "5f2a762131c66700018cdc47", + "is_active": true, + "logo": "https://hdn-1.addsale.com/x0/seller/pictures/logo/original/RxTsd8_0DEFAULT-LOGO.jpg000ccfc1-2f79-4426-9ac3-de2468c2fcb9/RxTsd8_0DEFAULT-LOGO.jpg", + "modified_by": { + "user_id": "5634", + "username": "asavarijadhav_gofynd_com_99880" + }, + "modified_on": "2020-08-05T09:44:01.234000Z", + "name": "Kids", + "platforms": {}, + "priority_order": 3, + "slug": "kids", + "synonyms": [], + "tags": [], + "uid": 8 + }, + { + "_cls": "Department", + "_custom_json": {}, + "created_by": { + "user_id": "5634", + "username": "asavarijadhav_gofynd_com_99880" + }, + "created_on": "2020-08-05T09:44:46.632000Z", + "id": "5f2a7f8e31c66700018cdc49", + "is_active": true, + "logo": "https://hdn-1.addsale.com/x0/seller/pictures/logo/original/tKkDB8_0DEFAULT-LOGO.jpg1c324d4d-f667-4af8-8d98-37205d34e3b5/tKkDB8_0DEFAULT-LOGO.jpg", + "modified_by": { + "user_id": "3", + "username": "918793638893_86554" + }, + "modified_on": "2020-08-06T18:07:35.231000Z", + "name": "Women's Fashion", + "platforms": {}, + "priority_order": 2, + "slug": "women-s-fashion", + "synonyms": [], + "tags": [], + "uid": 9 + }, + { + "_cls": "Department", + "_custom_json": {}, + "created_by": { + "user_id": "5634", + "username": "asavarijadhav_gofynd_com_99880" + }, + "created_on": "2020-08-05T09:45:12.075000Z", + "id": "5f2a7fa831c66700018cdc4a", + "is_active": true, + "logo": "https://hdn-1.addsale.com/x0/seller/pictures/logo/original/oLoxiL_0DEFAULT-LOGO.jpgbd050200-700a-4a3e-9da6-e6b78fbee943/oLoxiL_0DEFAULT-LOGO.jpg", + "modified_by": { + "user_id": "5634", + "username": "asavarijadhav_gofynd_com_99880" + }, + "modified_on": "2020-08-05T09:48:01.660000Z", + "name": "Beauty & Personal Care", + "platforms": {}, + "priority_order": 4, + "slug": "beauty-personal-care", + "synonyms": [], + "tags": [], + "uid": 10 + }, + { + "_cls": "Department", + "_custom_json": {}, + "created_by": { + "user_id": "5634", + "username": "asavarijadhav_gofynd_com_99880" + }, + "created_on": "2020-08-05T09:45:39.797000Z", + "id": "5f2a7fc331c66700018cdc4b", + "is_active": true, + "logo": "https://hdn-1.addsale.com/x0/seller/pictures/logo/original/vQv4ot_0DEFAULT-LOGO.jpg701cb5af-2024-4abf-ae5d-b68bc1a3cd43/vQv4ot_0DEFAULT-LOGO.jpg", + "modified_by": { + "user_id": "3", + "username": "918793638893_86554" + }, + "modified_on": "2020-08-06T11:38:57.599000Z", + "name": "Home & Living", + "platforms": {}, + "priority_order": 5, + "slug": "home-living", + "synonyms": [], + "tags": [], + "uid": 11 + }, + { + "_cls": "Department", + "_custom_json": {}, + "created_by": { + "user_id": "5634", + "username": "asavarijadhav_gofynd_com_99880" + }, + "created_on": "2020-08-05T09:48:42.347000Z", + "id": "5f2a807a31c66700018cdc4e", + "is_active": false, + "logo": "https://hdn-1.addsale.com/x0/seller/pictures/logo/original/hTobjV_0DEFAULT-LOGO.jpga020159c-7fe7-4c1c-a11a-4be61a60da9f/hTobjV_0DEFAULT-LOGO.jpg", + "modified_by": { + "user_id": "5634", + "username": "asavarijadhav_gofynd_com_99880" + }, + "modified_on": "2020-08-05T09:48:42.347000Z", + "name": "Baby Care & Kids Essentials", + "platforms": {}, + "priority_order": 7, + "slug": "baby-care-kids-essentials", + "synonyms": [], + "tags": [], + "uid": 14 + }, + { + "_cls": "Department", + "_custom_json": {}, + "created_by": { + "user_id": "5721", + "username": "919821012599_75351" + }, + "created_on": "2021-01-13T10:12:33.002000Z", + "id": "5ffec79192813f0001eb6560", + "is_active": true, + "logo": "https://hdn-1.addsale.com/x0/department/pictures/square-logo/original/rNz8grLys-.png", + "modified_by": { + "user_id": "5721", + "username": "919821012599_75351" + }, + "modified_on": "2021-01-13T13:50:55.415000Z", + "name": "Skin care products", + "platforms": {}, + "priority_order": 10235, + "slug": "skin-care-produts", + "synonyms": [ + "skin", + "care" + ], + "tags": [], + "uid": 21 + } + ], + "page": { + "current": 1, + "has_next": false, + "has_previous": false, + "item_total": 12, + "size": 1, + "type": "number" } } ```
-
- @@ -20662,60 +15293,56 @@ Returns a success response --- -### updateAppCategoryReturnConfiguration -Update Category level Application Return Configuration setttings +### listHSNCodes +List HSN Codes ```javascript // Promise -const promise = platformClient.application("").catalog.updateAppCategoryReturnConfiguration({ body : value }); +const promise = platformClient.catalog.listHSNCodes(); // Async/Await -const data = await platformClient.application("").catalog.updateAppCategoryReturnConfiguration({ body : value }); +const data = await platformClient.catalog.listHSNCodes(); ``` -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| body | [BaseAppCategoryReturnConfig](#BaseAppCategoryReturnConfig) | yes | Request body | - -Update Category level Application Return Configuration setttings +Allows you to list all hsn Codes *Returned Response:* -[SuccessResponse](#SuccessResponse) - -success message will tell whether the operation was successful. - +[HSNCodesResponse](#HSNCodesResponse) +List of all HSN Codes. See example below or refer `HSNCodesResponse` for details -
-  Examples:
-  success +  Example: ```json { - "value": { - "success": true - } + "data": { + "country_of_origin": [ + "India" + ], + "hsn_code": [ + "11111111" + ] + }, + "message": "Success" } ```
-
- @@ -20727,19 +15354,23 @@ success message will tell whether the operation was successful. --- -### updateAppDepartment -Update a single custom json. +### listInventoryExport +Get the history of the inventory export. ```javascript // Promise -const promise = platformClient.application("").catalog.updateAppDepartment({ departmentUid : value, - body : value }); +const promise = platformClient.catalog.listInventoryExport({ status : value, + fromDate : value, + toDate : value, + q : value }); // Async/Await -const data = await platformClient.application("").catalog.updateAppDepartment({ departmentUid : value, - body : value }); +const data = await platformClient.catalog.listInventoryExport({ status : value, + fromDate : value, + toDate : value, + q : value }); ``` @@ -20747,43 +15378,68 @@ const data = await platformClient.application("").catalog.update | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| departmentUid | number | yes | department id for which the custom_json is associated. | -| body | [ApplicationDepartmentJson](#ApplicationDepartmentJson) | yes | Request body | - +| --------- | ----- | -------- | ----------- | +| status | string | no | Status of the export job. | +| fromDate | string | no | Inventory export history filtered according to from_date. | +| toDate | string | no | Inventory export history filtered according to from_date. | +| q | string | no | Inventory export history filtered according to task ID. | -This API helps to update data associated to a item custom meta. -*Returned Response:* +This API helps you the get the history of inventory jobs depending on the filtered criteria. +*Returned Response:* -[SuccessResponse1](#SuccessResponse1) -Returns a success response +[InventoryExportJobListResponse](#InventoryExportJobListResponse) +Returns a list of inventory export jobs -
-  Examples:
-  success +  Example: ```json { - "value": { - "success": true + "items": { + "_id": "6401bd972a2e6c3d508c9203", + "completed_on": "2023-03-03T09:33:11.416000Z", + "created_by": { + "user_id": "5e199e6998cfe1776f1385dc", + "username": "rohanshah@fynd.com" + }, + "created_on": "2023-03-03T09:27:51.262000Z", + "filters": { + "brand_ids": [ + 2751 + ], + "brands": [ + "Puma" + ], + "store_ids": [ + 3622 + ], + "stores": [ + "Vikings Cbs" + ] + }, + "id": "6401bd972a2e6c3d508c9203", + "modified_on": "2023-03-03T09:27:51.262000", + "notification_emails": [], + "seller_id": 577, + "status": "success", + "task_id": "ab469da4-b9a5-11ed-955a-d6fb21611540", + "type": "excel", + "url": "https://regrowth.s3.amazonaws.com/slingshot-catalogues/seller-catalog/577/ab469da4-b9a5-11ed-955a-d6fb21611540/ab469da4-b9a5-11ed-955a-d6fb21611540.zip" } } ```
-
- @@ -20795,19 +15451,17 @@ Returns a success response --- -### updateAppLocation -Update a single custom json. +### listProductTemplate +List all Templates ```javascript // Promise -const promise = platformClient.application("").catalog.updateAppLocation({ storeUid : value, - body : value }); +const promise = platformClient.catalog.listProductTemplate({ department : value }); // Async/Await -const data = await platformClient.application("").catalog.updateAppLocation({ storeUid : value, - body : value }); +const data = await platformClient.catalog.listProductTemplate({ department : value }); ``` @@ -20816,42 +15470,74 @@ const data = await platformClient.application("").catalog.update | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| storeUid | number | yes | store id for which the custom_json is associated. | -| body | [ApplicationStoreJson](#ApplicationStoreJson) | yes | Request body | - +| department | string | yes | A `department` is the name of a particular department. | -This API helps to update data associated to a item custom meta. -*Returned Response:* +Allows you to list all product templates, also can filter by department +*Returned Response:* -[SuccessResponse1](#SuccessResponse1) -Returns a success response +[TemplatesResponse](#TemplatesResponse) +List of product templates. See example below or refer `TemplatesResponse` for details -
-  Examples:
-  success +  Example: ```json { - "value": { - "success": true + "items": { + "attributes": [ + "gender", + "fragile", + "manufacturer-packer-importer-name", + "manufacturer-packer-importer-address" + ], + "banner": "https://hdn-1.fynd.com/seller/pictures/landscape-banner/original/F4W6Pd_DEFAULT-BANNER_LANDSCAPE.jpgd54cb24d-dd2c-441c-bca0-8f65ea3b101c/F4W6Pd_DEFAULT-BANNER_LANDSCAPE.jpg", + "categories": [ + "accessories-adornments", + "socks", + "toric-contact-lenses", + "daily-disposable", + "monthly-reusable", + "multifocal-varifocal", + "solutions-accessories", + "coloured-lenses" + ], + "departments": [ + "electronics", + "men", + "women", + "kids", + "toys" + ], + "description": "This is the file validation template for the fashion department and accessories category.", + "id": "5f04a23544a2e5404274bc07", + "is_expirable": true, + "is_physical": true, + "logo": "https://hdn-1.fynd.com/seller/pictures/logo/original/hkE1dC_0DEFAULT-LOGO.jpgfb5b1b31-9449-43db-9049-435fec88ee77/hkE1dC_0DEFAULT-LOGO.jpg", + "name": "Accessories", + "slug": "accessories" + }, + "page": { + "current": 1, + "has_next": true, + "has_previous": false, + "item_total": 36, + "size": 3, + "type": "number" } } ```
-
- @@ -20863,19 +15549,19 @@ Returns a success response --- -### updateAppProduct -Update a single custom meta. +### listProductTemplateCategories +List Department specifiec product categories ```javascript // Promise -const promise = platformClient.application("").catalog.updateAppProduct({ itemId : value, - body : value }); +const promise = platformClient.catalog.listProductTemplateCategories({ departments : value, + itemType : value }); // Async/Await -const data = await platformClient.application("").catalog.updateAppProduct({ itemId : value, - body : value }); +const data = await platformClient.catalog.listProductTemplateCategories({ departments : value, + itemType : value }); ``` @@ -20884,42 +15570,38 @@ const data = await platformClient.application("").catalog.update | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| itemId | number | yes | product id for which the custom_meta is associated. | -| body | [ApplicationItemMeta](#ApplicationItemMeta) | yes | Request body | - +| departments | string | yes | A `department` is name of a departments whose category needs to be listed. Can specify multiple departments. | +| itemType | string | yes | An `item_type` is the type of item, it can be `set`, `standard`, `digital`, etc. | -This API helps to update data associated to a item custom meta. -*Returned Response:* +Allows you to list all product categories values for the departments specified +*Returned Response:* -[SuccessResponse1](#SuccessResponse1) -Returns a success response +[ProdcutTemplateCategoriesResponse](#ProdcutTemplateCategoriesResponse) +List of all categories attached to departments specified. See example below or refer `ProdcutTemplateCategoriesResponse` for details -
-  Examples:
-  success +  Example: ```json { - "value": { - "success": true + "items": [], + "page": { + "type": "" } } ```
-
- @@ -20931,60 +15613,78 @@ Returns a success response --- -### updateAppReturnConfiguration -Update Return configuration level set for an application +### listProductTemplateExportDetails +Allows you to list all product templates export list details ```javascript // Promise -const promise = platformClient.application("").catalog.updateAppReturnConfiguration({ body : value }); +const promise = platformClient.catalog.listProductTemplateExportDetails(); // Async/Await -const data = await platformClient.application("").catalog.updateAppReturnConfiguration({ body : value }); +const data = await platformClient.catalog.listProductTemplateExportDetails(); ``` -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| body | [CreateUpdateAppReturnConfig](#CreateUpdateAppReturnConfig) | yes | Request body | - -Update Return configuration level set for an application. +Can view details including trigger data, task id , etc. *Returned Response:* -[SuccessResponse1](#SuccessResponse1) - -success message will tell whether the operation was successful. - +[ProductDownloadsResponse](#ProductDownloadsResponse) +List of Product Downloads Data. See example below or refer `ProductDownloadsResponse` for details -
-  Examples:
-  success +  Example: ```json { - "value": { - "success": true - } + "items": [ + { + "completed_on": "2020-12-23T07:23:41.031000Z", + "created_by": { + "user_id": "5646", + "username": "917972410891_48194" + }, + "data": { + "brand": [ + "ruosh" + ], + "templates": [ + "mobile-phones-and-tablet" + ], + "type": "csv" + }, + "id": "5fe2f077516d980001880943", + "seller_id": 3, + "status": "success", + "task_id": "c4b54ace-44ef-11eb-9806-1ef9bc4a2da1", + "template_tags": { + "mobile-phones-and-tablet": { + "display": "Mobile Phones & Tablet", + "logo": "https://hdn-1.jiox0.de/jiox0/seller/pictures/logo/original/Oda39B_99946594-portable-devices-with-tablet-and-mobile-phone-vector-icon-for-apps-and-websites.jpgcc2dff44-7fae-4002-9ebe-d2b59c8bee91/Oda39B_99946594-portable-devices-with-tablet-and-mobile-phone-vector-icon-for-apps-and-websites.jpg" + } + }, + "trigger_on": "2020-12-23T07:23:35.302000Z", + "url": "https://regrowth.s3.amazonaws.com/slingshot-catalogues/seller-catalog/3/c4b54ace-44ef-11eb-9806-1ef9bc4a2da1/c4b54ace-44ef-11eb-9806-1ef9bc4a2da1.zip" + } + ], + "page": {} } ```
-
- @@ -20996,19 +15696,21 @@ success message will tell whether the operation was successful. --- -### updateAutocompleteKeyword -Create & Update Autocomplete Keyword +### listTemplateBrandTypeValues +Allows you to list all values for Templates, Brands or Type ```javascript // Promise -const promise = platformClient.application("").catalog.updateAutocompleteKeyword({ id : value, - body : value }); +const promise = platformClient.catalog.listTemplateBrandTypeValues({ filter : value, + templateTag : value, + itemType : value }); // Async/Await -const data = await platformClient.application("").catalog.updateAutocompleteKeyword({ id : value, - body : value }); +const data = await platformClient.catalog.listTemplateBrandTypeValues({ filter : value, + templateTag : value, + itemType : value }); ``` @@ -21017,69 +15719,46 @@ const data = await platformClient.application("").catalog.update | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| id | string | yes | A `id` is a unique identifier for a particular detail. Pass the `id` of the keywords which you want to delete. | -| body | [CreateAutocompleteKeyword](#CreateAutocompleteKeyword) | yes | Request body | - +| filter | string | yes | A `filter` is the unique identifier of the type of value required. | +| templateTag | string | no | A `template_tag` is the identifier of the type of template required. | +| itemType | string | no | A `item_type` is the identifier of the type of template required. | -Update a mapping by it's id. On successful request, returns the updated Keyword mapping -*Returned Response:* +The filter type query parameter defines what type of data to return. The type of query returns the valid values for the same +*Returned Response:* -[GetAutocompleteWordsData](#GetAutocompleteWordsData) -The Mapping object. See example below or refer `GetAutocompleteWordsDataSchema` for details. +[ProductConfigurationDownloads](#ProductConfigurationDownloads) +See example below or refer `ProductConfigurationDownloadsSchema` for details -
-  Examples:
-  success +  Example: ```json { - "value": { - "is_active": true, - "app_id": "64aed377b1fd04565d0dff30", - "results": [ - { - "action": { - "type": "page", - "page": { - "query": { - "brand": [ - "bernhard7788838818720231650253" - ] - }, - "type": "products", - "url": "/products/?brand=bernhard7788838818720231650253" - } - }, - "logo": { - "url": "https://cdn.fynd.com/v2/falling-surf-7c8bb8/fyndnp/wrkr/addsale/company/10189/applications/64f9dd40a6fbe9f0dd1ef427/search/pictures/square-logo/original/N4FNal616-.webp", - "aspect_ratio": "1:1" - }, - "_custom_json": {}, - "display": "testfx2" - } - ], - "words": [ - "testfx22" - ], - "uid": "6569804246bf2fe018bf9d01" - } + "data": [ + { + "display": "csv", + "value": "csv" + }, + { + "display": "excel", + "value": "excel" + } + ], + "multivalue": false } ```
-
- @@ -21091,19 +15770,17 @@ The Mapping object. See example below or refer `GetAutocompleteWordsDataSchema` --- -### updateAutocompleteSettings -Update autocomplete settings config for an application +### updateAllowSingle +Update allow single flag for filters of the application. ```javascript // Promise -const promise = platformClient.application("").catalog.updateAutocompleteSettings({ id : value, - body : value }); +const promise = platformClient.application("").catalog.updateAllowSingle({ body : value }); // Async/Await -const data = await platformClient.application("").catalog.updateAutocompleteSettings({ id : value, - body : value }); +const data = await platformClient.application("").catalog.updateAllowSingle({ body : value }); ``` @@ -21111,21 +15788,20 @@ const data = await platformClient.application("").catalog.update | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| id | string | yes | An `id` is a unique identifier for a particular autocomplete settings config. | -| body | [AutocompleteRequestSchema](#AutocompleteRequestSchema) | yes | Request body | +| --------- | ----- | -------- | ----------- | +| body | [AllowSingleRequest](#AllowSingleRequest) | yes | Request body | -This API allows to update autocomplete settings for an application. +Update allow single flag for filters of the application. *Returned Response:* -[AutocompleteUpsertResponseSchema](#AutocompleteUpsertResponseSchema) +[ConfigSuccessResponse](#ConfigSuccessResponse) -return success true/false based on update operation +success message will tell whether the operation was successful. @@ -21134,11 +15810,7 @@ return success true/false based on update operation   Example: ```json -{ - "success": true, - "id": "657884575e12e699f8187f47", - "message": "Autocomplete settings updated!" -} + ``` @@ -21153,18 +15825,18 @@ return success true/false based on update operation --- -### updateCategory -Update product categories +### updateAppBrand +Update a single custom json. ```javascript // Promise -const promise = platformClient.catalog.updateCategory({ uid : value, +const promise = platformClient.application("").catalog.updateAppBrand({ brandUid : value, body : value }); // Async/Await -const data = await platformClient.catalog.updateCategory({ uid : value, +const data = await platformClient.application("").catalog.updateAppBrand({ brandUid : value, body : value }); ``` @@ -21174,43 +15846,34 @@ const data = await platformClient.catalog.updateCategory({ uid : value, | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| uid | string | yes | Category unique id | -| body | [CategoryRequestBody](#CategoryRequestBody) | yes | Request body | +| brandUid | string | yes | brand id for which the custom_json is associated. | +| body | [ApplicationBrandJson](#ApplicationBrandJson) | yes | Request body | -Update a product category using this api +This API helps to update data associated to a item custom meta. *Returned Response:* -[CategoryUpdateResponse](#CategoryUpdateResponse) - -Category Meta. See example below or refer `CategoryUpdateResponse` for details - +[SuccessResponse1](#SuccessResponse1) +Returns a success response -
-  Examples:
-  success +  Example: ```json { - "value": { - "success": true, - "message": "Success!!!" - } + "success": true } ```
-
- @@ -21222,18 +15885,18 @@ Category Meta. See example below or refer `CategoryUpdateResponse` for details --- -### updateCollection -Update a collection +### updateAppCategory +Update a single custom json. ```javascript // Promise -const promise = platformClient.application("").catalog.updateCollection({ id : value, +const promise = platformClient.application("").catalog.updateAppCategory({ categoryUid : value, body : value }); // Async/Await -const data = await platformClient.application("").catalog.updateCollection({ id : value, +const data = await platformClient.application("").catalog.updateAppCategory({ categoryUid : value, body : value }); ``` @@ -21242,101 +15905,35 @@ const data = await platformClient.application("").catalog.update | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| id | string | yes | A `id` is a unique identifier of a collection. | -| body | [UpdateCollection](#UpdateCollection) | yes | Request body | - - -Update a collection by it's id. On successful request, returns the updated collection - -*Returned Response:* - - - - -[UpdateCollection](#UpdateCollection) - -The Collection object. See example below or refer `UpdateCollectionSchema` for details. - - - - -
-  Examples: - - -
-  success - -```json -{ - "value": { - "_custom_json": {}, - "_locale_language": {}, - "_schedule": { - "end": null, - "next_schedule": [ - { - "end": null, - "start": "2021-03-15T12:51:21.333000+00:00Z" - } - ], - "start": "2021-03-15T12:51:21.333000+00:00Z" - }, - "action": { - "page": { - "query": { - "collection": [ - "new" - ] - }, - "type": "collection" - }, - "type": "page" - }, - "allow_facets": true, - "allow_sort": true, - "badge": { - "color": "#ffffff", - "text": "" - }, - "banners": { - "landscape": { - "type": "image", - "url": "https://res.cloudinary.com/dwzm9bysq/image/upload/v1588857999/production/applications/app_000000000000000000000001/media/collection/landscape/avm7xibo2jgk8glc4bwl.png" - }, - "portrait": { - "type": "image", - "url": "https://res.cloudinary.com/dwzm9bysq/image/upload/v1588858137/production/applications/app_000000000000000000000001/media/collection/portrait/xzuftshmmw4yuwzb12pm.png" - } - }, - "description": "", - "is_active": true, - "logo": { - "type": "image", - "url": "https://res.cloudinary.com/dwzm9bysq/image/upload/v1588857854/production/applications/app_000000000000000000000001/media/collection/logo/w9ns7nfgv7fk45xqrpoh.png" - }, - "meta": {}, - "name": "New", - "published": true, - "query": {}, - "seo": { - "description": "Test description", - "title": "Test" - }, - "slug": "new", - "sort_on": "depth_desc", - "tags": [], - "type": "query", - "uid": "604f585a7051e30001173ac1", - "visible_facets_keys": [] - } +| --------- | ----- | -------- | ----------- | +| categoryUid | string | yes | category id for which the custom_json is associated. | +| body | [ApplicationCategoryJson](#ApplicationCategoryJson) | yes | Request body | + + +This API helps to update data associated to a item custom meta. + +*Returned Response:* + + + + +[SuccessResponse1](#SuccessResponse1) + +Returns a success response + + + + +
+  Example: + +```json +{ + "success": true } ```
-
- @@ -21348,17 +15945,17 @@ The Collection object. See example below or refer `UpdateCollectionSchema` for d --- -### updateDefaultSort -Update the default sort key configuration for the application. +### updateAppCategoryReturnConfiguration +Update Category level Application Return Configuration setttings ```javascript // Promise -const promise = platformClient.application("").catalog.updateDefaultSort({ body : value }); +const promise = platformClient.application("").catalog.updateAppCategoryReturnConfiguration({ body : value }); // Async/Await -const data = await platformClient.application("").catalog.updateDefaultSort({ body : value }); +const data = await platformClient.application("").catalog.updateAppCategoryReturnConfiguration({ body : value }); ``` @@ -21367,17 +15964,17 @@ const data = await platformClient.application("").catalog.update | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| body | [DefaultKeyRequest](#DefaultKeyRequest) | yes | Request body | +| body | [BaseAppCategoryReturnConfig](#BaseAppCategoryReturnConfig) | yes | Request body | -Update the default sort key configuration for the application. +Update Category level Application Return Configuration setttings *Returned Response:* -[ConfigSuccessResponse](#ConfigSuccessResponse) +[SuccessResponse](#SuccessResponse) success message will tell whether the operation was successful. @@ -21389,12 +15986,12 @@ success message will tell whether the operation was successful.
-  success +  default ```json { "value": { - "message": "Successfully updated default key." + "success": true } } ``` @@ -21413,18 +16010,18 @@ success message will tell whether the operation was successful. --- -### updateDepartment -Update the department by their uid. +### updateAppDepartment +Update a single custom json. ```javascript // Promise -const promise = platformClient.catalog.updateDepartment({ uid : value, +const promise = platformClient.application("").catalog.updateAppDepartment({ departmentUid : value, body : value }); // Async/Await -const data = await platformClient.catalog.updateDepartment({ uid : value, +const data = await platformClient.application("").catalog.updateAppDepartment({ departmentUid : value, body : value }); ``` @@ -21434,57 +16031,34 @@ const data = await platformClient.catalog.updateDepartment({ uid : value, | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| uid | string | yes | A `uid` is a unique identifier of a department. | -| body | [DepartmentCreateUpdate](#DepartmentCreateUpdate) | yes | Request body | +| departmentUid | string | yes | department id for which the custom_json is associated. | +| body | [ApplicationDepartmentJson](#ApplicationDepartmentJson) | yes | Request body | -Update the department by their uid using this API. +This API helps to update data associated to a item custom meta. *Returned Response:* -[DepartmentModel](#DepartmentModel) - -Success Response. See example below or refer `DepartmentCreateResponseSchema` for details - +[SuccessResponse1](#SuccessResponse1) +Returns a success response -
-  Examples:
-  success +  Example: ```json { - "value": { - "created_on": "2021-04-02T15:43:59.410000Z", - "is_active": true, - "logo": "https://hdn-1.addsale.com/x0/department/pictures/square-logo/original/xKDsQBbu4-department.png", - "modified_by": { - "user_id": "f5b6a546565146sdfg584c342", - "username": "31315573458_05620" - }, - "modified_on": "2022-08-09T15:44:02.540740", - "name": "Fashion", - "priority_order": 1, - "slug": "fashion", - "synonyms": [ - "fashion", - "mensfashion" - ], - "uid": 2 - } + "success": true } ```
-
- @@ -21496,20 +16070,18 @@ Success Response. See example below or refer `DepartmentCreateResponseSchema` fo --- -### updateGroupConfiguration -Update the group configurations for the application. +### updateAppLocation +Update a single custom json. ```javascript // Promise -const promise = platformClient.application("").catalog.updateGroupConfiguration({ configType : value, - groupSlug : value, +const promise = platformClient.application("").catalog.updateAppLocation({ storeUid : value, body : value }); // Async/Await -const data = await platformClient.application("").catalog.updateGroupConfiguration({ configType : value, - groupSlug : value, +const data = await platformClient.application("").catalog.updateAppLocation({ storeUid : value, body : value }); ``` @@ -21519,60 +16091,34 @@ const data = await platformClient.application("").catalog.update | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| configType | string | yes | A `config_type` is a unique identifier for a particular group configuration type. | -| groupSlug | string | yes | A `group_slug` is a unique identifier of a particular configuration. | -| body | [AppConfigurationDetail](#AppConfigurationDetail) | yes | Request body | +| storeUid | string | yes | store id for which the custom_json is associated. | +| body | [ApplicationStoreJson](#ApplicationStoreJson) | yes | Request body | -Update the group configurations for the application. +This API helps to update data associated to a item custom meta. *Returned Response:* -[AppConfigurationDetail](#AppConfigurationDetail) - -success flag will tell whether the operation was successful. - +[SuccessResponse1](#SuccessResponse1) +Returns a success response -
-  Examples:
-  success +  Example: ```json { - "value": { - "attributes": [ - { - "slug": "length", - "priority": 1, - "is_active": true, - "name": "Length", - "key": "length", - "display_type": "text", - "unit": "mm" - } - ], - "slug": "testnew80", - "priority": 90, - "app_id": "000000000000000000000001", - "is_active": true, - "name": "testnew", - "is_default": false, - "id": "656c3941f62a832779362cf0" - } + "success": true } ```
-
- @@ -21584,18 +16130,18 @@ success flag will tell whether the operation was successful. --- -### updateHsnCode -Update Hsn Code. +### updateAppProduct +Update a single custom meta. ```javascript // Promise -const promise = platformClient.catalog.updateHsnCode({ id : value, +const promise = platformClient.application("").catalog.updateAppProduct({ itemId : value, body : value }); // Async/Await -const data = await platformClient.catalog.updateHsnCode({ id : value, +const data = await platformClient.application("").catalog.updateAppProduct({ itemId : value, body : value }); ``` @@ -21605,62 +16151,34 @@ const data = await platformClient.catalog.updateHsnCode({ id : value, | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| id | string | yes | Unique id | -| body | [HsnUpsert](#HsnUpsert) | yes | Request body | +| itemId | string | yes | product id for which the custom_meta is associated. | +| body | [ApplicationItemMeta](#ApplicationItemMeta) | yes | Request body | -Update Hsn Code. +This API helps to update data associated to a item custom meta. *Returned Response:* -[UpdateHsnCode](#UpdateHsnCode) - -See example below for details - +[SuccessResponse1](#SuccessResponse1) +Returns a success response -
-  Examples:
-  success +  Example: ```json { - "value": { - "data": { - "company_id": 1, - "hs2_code": "xx", - "hsn_code": "xxxxxxxx", - "id": "xxxxxxxxxxxx", - "modified_by": { - "user_id": "0", - "username": "narutouzumaki" - }, - "slabs": [ - { - "tax": 0, - "threshold": 999999 - }, - { - "tax": 0, - "threshold": 0 - } - ], - "tax_on": "esp" - } - } + "success": true } ```
-
- @@ -21672,17 +16190,17 @@ See example below for details --- -### updateInventories -Add Inventory for particular size and store. +### updateAppReturnConfiguration +Update Return configuration level set for an application ```javascript // Promise -const promise = platformClient.catalog.updateInventories({ body : value }); +const promise = platformClient.application("").catalog.updateAppReturnConfiguration({ body : value }); // Async/Await -const data = await platformClient.catalog.updateInventories({ body : value }); +const data = await platformClient.application("").catalog.updateAppReturnConfiguration({ body : value }); ``` @@ -21691,19 +16209,19 @@ const data = await platformClient.catalog.updateInventories({ body : value }); | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| body | [InventoryRequestSchemaV2](#InventoryRequestSchemaV2) | yes | Request body | +| body | [CreateUpdateAppReturnConfig](#CreateUpdateAppReturnConfig) | yes | Request body | -This API allows add Inventory for particular size and store. +Update Return configuration level set for an application. *Returned Response:* -[InventoryUpdateResponse](#InventoryUpdateResponse) +[SuccessResponse1](#SuccessResponse1) -Returns a success or partial success response +success message will tell whether the operation was successful. @@ -21713,12 +16231,12 @@ Returns a success or partial success response
-  success +  default ```json { "value": { - "message": "Successful" + "success": true } } ``` @@ -21737,20 +16255,18 @@ Returns a success or partial success response --- -### updateListingConfiguration -Update configuration for listings +### updateAutocompleteKeyword +Create & Update Autocomplete Keyword ```javascript // Promise -const promise = platformClient.application("").catalog.updateListingConfiguration({ configType : value, - configId : value, +const promise = platformClient.application("").catalog.updateAutocompleteKeyword({ id : value, body : value }); // Async/Await -const data = await platformClient.application("").catalog.updateListingConfiguration({ configType : value, - configId : value, +const data = await platformClient.application("").catalog.updateAutocompleteKeyword({ id : value, body : value }); ``` @@ -21760,59 +16276,30 @@ const data = await platformClient.application("").catalog.update | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| configType | string | yes | A `config_type` is a unique identifier for a particular listing configuration type. | -| configId | string | yes | A `config_id` is a unique identifier of a particular configuration. | -| body | [AppConfigurationsFilterResponse](#AppConfigurationsFilterResponse) | yes | Request body | +| id | string | yes | A `id` is a unique identifier for a particular detail. Pass the `id` of the keywords which you want to delete. | +| body | [CreateAutocompleteKeyword](#CreateAutocompleteKeyword) | yes | Request body | -Update configuration for listing. +Update a mapping by it's id. On successful request, returns the updated Keyword mapping *Returned Response:* -[AppConfigurationsFilterResponse](#AppConfigurationsFilterResponse) - -success flag will tell whether the operation was successful. - +[GetAutocompleteWordsResponse](#GetAutocompleteWordsResponse) +The Mapping object. See example below or refer `GetAutocompleteWordsResponseSchema` for details. -
-  Examples:
-  success +  Example: ```json -{ - "value": { - "priority": 28, - "allow_single": false, - "type": "multivalued", - "key": "cuisine", - "app_id": "000000000000000000000001", - "value_config": { - "condition": "OR", - "value": "", - "map": { - "small": "SMALL" - }, - "sort": "count", - "bucket_points": [] - }, - "is_default": false, - "is_active": true, - "name": "Cuisine", - "logo": "https://hdn-1.fynd.com/products/pictures/attribute/logo/original/iG82Qjay9X-Popularity.png", - "id": "656cc670c404d0f059e622b4" - } -} -``` -
+```
@@ -21826,18 +16313,18 @@ success flag will tell whether the operation was successful. --- -### updateMarketplaceOptin -Update marketplace optin +### updateCategory +Update product categories ```javascript // Promise -const promise = platformClient.catalog.updateMarketplaceOptin({ marketplace : value, +const promise = platformClient.catalog.updateCategory({ uid : value, body : value }); // Async/Await -const data = await platformClient.catalog.updateMarketplaceOptin({ marketplace : value, +const data = await platformClient.catalog.updateCategory({ uid : value, body : value }); ``` @@ -21847,57 +16334,30 @@ const data = await platformClient.catalog.updateMarketplaceOptin({ marketplace | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| marketplace | string | yes | Slug of the marketplace . | -| body | [UpdateMarketplaceOptinRequest](#UpdateMarketplaceOptinRequest) | yes | Request body | +| uid | string | yes | Category unique id | +| body | [CategoryRequestBody](#CategoryRequestBody) | yes | Request body | -This API allows to update marketplace optin for a company. +Update a product category using this api *Returned Response:* -[UpdateMarketplaceOptinResponse](#UpdateMarketplaceOptinResponse) - -Update marketplace optin config. - +[CategoryUpdateResponse](#CategoryUpdateResponse) +Category Meta. See example below or refer `CategoryUpdateResponse` for details -
-  Examples:
-  success +  Example: ```json -{ - "value": { - "store_ids": [ - 10 - ], - "enabled": true, - "company_id": 10, - "platform": "fynd", - "brand_ids": [ - 1 - ], - "opt_level": "9", - "created_by": { - "username": "mithalikamble_gofynd_com_92051", - "user_id": "03b4a75fa92656a2babbbda6" - }, - "modified_by": { - "username": "rohanshah@fynd.com", - "user_id": "5e199e6998cfe1776f1385dc" - } - } -} -``` -
+```
@@ -21911,18 +16371,18 @@ Update marketplace optin config. --- -### updateMerchandisingRuleBoostAction -Update Merchandising Rule's Boost action details +### updateCollection +Update a collection ```javascript // Promise -const promise = platformClient.application("").catalog.updateMerchandisingRuleBoostAction({ merchandisingRuleId : value, +const promise = platformClient.application("").catalog.updateCollection({ id : value, body : value }); // Async/Await -const data = await platformClient.application("").catalog.updateMerchandisingRuleBoostAction({ merchandisingRuleId : value, +const data = await platformClient.application("").catalog.updateCollection({ id : value, body : value }); ``` @@ -21932,20 +16392,20 @@ const data = await platformClient.application("").catalog.update | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| merchandisingRuleId | string | yes | A `merchandising_rule_id` is a unique identifier for a particular merchandising rule. | -| body | [GetMerchandisingRuleBoostAction](#GetMerchandisingRuleBoostAction) | yes | Request body | +| id | string | yes | A `id` is a unique identifier of a collection. | +| body | [UpdateCollection](#UpdateCollection) | yes | Request body | -This allows you to update Boost action of a merchandising rule. +Update a collection by it's id. On successful request, returns the updated collection *Returned Response:* -[SuccessResponseMerchandising](#SuccessResponseMerchandising) +[UpdateCollection](#UpdateCollection) -List of Boost conditions. See example below or refer `SuccessResponseMerchandising` for details +The Collection object. See example below or refer `UpdateCollectionSchema` for details. @@ -21955,7 +16415,65 @@ List of Boost conditions. See example below or refer `SuccessResponseMerchandisi ```json { - "message": "ok" + "_custom_json": {}, + "_locale_language": {}, + "_schedule": { + "end": null, + "next_schedule": [ + { + "end": null, + "start": "2021-03-15T12:51:21.333000+00:00Z" + } + ], + "start": "2021-03-15T12:51:21.333000+00:00Z" + }, + "action": { + "page": { + "query": { + "collection": [ + "new" + ] + }, + "type": "collection" + }, + "type": "page" + }, + "allow_facets": true, + "allow_sort": true, + "badge": { + "color": "#ffffff", + "text": "" + }, + "banners": { + "landscape": { + "type": "image", + "url": "https://res.cloudinary.com/dwzm9bysq/image/upload/v1588857999/production/applications/app_000000000000000000000001/media/collection/landscape/avm7xibo2jgk8glc4bwl.png" + }, + "portrait": { + "type": "image", + "url": "https://res.cloudinary.com/dwzm9bysq/image/upload/v1588858137/production/applications/app_000000000000000000000001/media/collection/portrait/xzuftshmmw4yuwzb12pm.png" + } + }, + "description": "", + "is_active": true, + "logo": { + "type": "image", + "url": "https://res.cloudinary.com/dwzm9bysq/image/upload/v1588857854/production/applications/app_000000000000000000000001/media/collection/logo/w9ns7nfgv7fk45xqrpoh.png" + }, + "meta": {}, + "name": "New", + "published": true, + "query": {}, + "seo": { + "description": "Test description", + "title": "Test" + }, + "slug": "new", + "sort_on": "depth_desc", + "tags": [], + "type": "query", + "uid": "604f585a7051e30001173ac1", + "visible_facets_keys": [] } ```
@@ -21971,19 +16489,17 @@ List of Boost conditions. See example below or refer `SuccessResponseMerchandisi --- -### updateMerchandisingRuleBuryAction -Update Merchandising Rule's Bury action details +### updateDefaultSort +Update the default sort key configuration for the application. ```javascript // Promise -const promise = platformClient.application("").catalog.updateMerchandisingRuleBuryAction({ merchandisingRuleId : value, - body : value }); +const promise = platformClient.application("").catalog.updateDefaultSort({ body : value }); // Async/Await -const data = await platformClient.application("").catalog.updateMerchandisingRuleBuryAction({ merchandisingRuleId : value, - body : value }); +const data = await platformClient.application("").catalog.updateDefaultSort({ body : value }); ``` @@ -21991,21 +16507,20 @@ const data = await platformClient.application("").catalog.update | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| merchandisingRuleId | string | yes | A `merchandising_rule_id` is a unique identifier for a particular merchandising rule. | -| body | [GetMerchandisingRuleBuryAction](#GetMerchandisingRuleBuryAction) | yes | Request body | +| --------- | ----- | -------- | ----------- | +| body | [DefaultKeyRequest](#DefaultKeyRequest) | yes | Request body | -This allows you to update Bury action of a merchandising rule. +Update the default sort key configuration for the application. *Returned Response:* -[SuccessResponseMerchandising](#SuccessResponseMerchandising) +[ConfigSuccessResponse](#ConfigSuccessResponse) -List of Bury conditions. See example below or refer `SuccessResponseMerchandising` for details +success message will tell whether the operation was successful. @@ -22014,7 +16529,7 @@ List of Bury conditions. See example below or refer `SuccessResponseMerchandisin   Example: ```json -null + ```
@@ -22029,18 +16544,18 @@ null --- -### updateMerchandisingRuleHideAction -Update Merchandising Rule's Hide action details +### updateDepartment +Update the department by their uid. ```javascript // Promise -const promise = platformClient.application("").catalog.updateMerchandisingRuleHideAction({ merchandisingRuleId : value, +const promise = platformClient.catalog.updateDepartment({ uid : value, body : value }); // Async/Await -const data = await platformClient.application("").catalog.updateMerchandisingRuleHideAction({ merchandisingRuleId : value, +const data = await platformClient.catalog.updateDepartment({ uid : value, body : value }); ``` @@ -22050,20 +16565,20 @@ const data = await platformClient.application("").catalog.update | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| merchandisingRuleId | string | yes | A `merchandising_rule_id` is a unique identifier for a particular merchandising rule. | -| body | [HideRequest](#HideRequest) | yes | Request body | +| uid | string | yes | A `uid` is a unique identifier of a department. | +| body | [DepartmentCreateUpdate](#DepartmentCreateUpdate) | yes | Request body | -This allows you to update hide action of a merchandising rule. +Update the department by their uid using this API. *Returned Response:* -[SuccessResponseMerchandising](#SuccessResponseMerchandising) +[DepartmentModel](#DepartmentModel) -List of hide items. See example below or refer `SuccessResponseMerchandising` for details +Success Response. See example below or refer `DepartmentCreateResponseSchema` for details @@ -22073,7 +16588,22 @@ List of hide items. See example below or refer `SuccessResponseMerchandising` fo ```json { - "message": "ok" + "created_on": "2021-04-02T15:43:59.410000Z", + "is_active": true, + "logo": "https://hdn-1.addsale.com/x0/department/pictures/square-logo/original/xKDsQBbu4-department.png", + "modified_by": { + "user_id": "f5b6a546565146sdfg584c342", + "username": "31315573458_05620" + }, + "modified_on": "2022-08-09T15:44:02.540740", + "name": "Fashion", + "priority_order": 1, + "slug": "fashion", + "synonyms": [ + "fashion", + "mensfashion" + ], + "uid": 2 } ```
@@ -22089,18 +16619,20 @@ List of hide items. See example below or refer `SuccessResponseMerchandising` fo --- -### updateMerchandisingRulePinAction -Update Merchandising Rule's action details +### updateGroupConfiguration +Update the group configurations for the application. ```javascript // Promise -const promise = platformClient.application("").catalog.updateMerchandisingRulePinAction({ merchandisingRuleId : value, +const promise = platformClient.application("").catalog.updateGroupConfiguration({ configType : value, + groupSlug : value, body : value }); // Async/Await -const data = await platformClient.application("").catalog.updateMerchandisingRulePinAction({ merchandisingRuleId : value, +const data = await platformClient.application("").catalog.updateGroupConfiguration({ configType : value, + groupSlug : value, body : value }); ``` @@ -22110,20 +16642,21 @@ const data = await platformClient.application("").catalog.update | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| merchandisingRuleId | string | yes | A `merchandising_rule_id` is a unique identifier for a particular merchandising rule. | -| body | [PinRequest](#PinRequest) | yes | Request body | +| configType | string | yes | A `config_type` is a unique identifier for a particular group configuration type. | +| groupSlug | string | yes | A `group_slug` is a unique identifier of a particular configuration. | +| body | [AppConfigurationDetail](#AppConfigurationDetail) | yes | Request body | -This allows you to update pin action of a merchandising rule. +Update the group configurations for the application. *Returned Response:* -[SuccessResponseMerchandising](#SuccessResponseMerchandising) +[AppConfigurationDetail](#AppConfigurationDetail) -List of pinned items. See example below or refer `SuccessResponseMerchandising` for details +success flag will tell whether the operation was successful. @@ -22133,7 +16666,26 @@ List of pinned items. See example below or refer `SuccessResponseMerchandising` ```json { - "message": "ok" + "app_id": "5d64e3500bcad8693a821c0d", + "attributes": [ + { + "display_type": "text", + "is_active": true, + "key": "features", + "name": "Features", + "priority": 1, + "slug": "features" + } + ], + "id": "62b1cdab15c88fa867ee4dac", + "is_active": true, + "is_default": false, + "name": "test", + "priority": 1, + "slug": "test15", + "template_slugs": [ + "bags" + ] } ``` @@ -22149,18 +16701,18 @@ List of pinned items. See example below or refer `SuccessResponseMerchandising` --- -### updateMerchandisingRuleQuery -Update a Merchandising Rule's query +### updateHsnCode +Update Hsn Code. ```javascript // Promise -const promise = platformClient.application("").catalog.updateMerchandisingRuleQuery({ merchandisingRuleId : value, +const promise = platformClient.catalog.updateHsnCode({ id : value, body : value }); // Async/Await -const data = await platformClient.application("").catalog.updateMerchandisingRuleQuery({ merchandisingRuleId : value, +const data = await platformClient.catalog.updateHsnCode({ id : value, body : value }); ``` @@ -22170,20 +16722,20 @@ const data = await platformClient.application("").catalog.update | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| merchandisingRuleId | string | yes | A `merchandising_rule_id` is a unique identifier for a particular merchandising rule. | -| body | [MerchandisingRuleQueryPost](#MerchandisingRuleQueryPost) | yes | Request body | +| id | string | yes | Unique id | +| body | [HsnUpsert](#HsnUpsert) | yes | Request body | -This allows you to Update a merchandising rule's query. +Update Hsn Code. *Returned Response:* -[SuccessResponseMerchandising](#SuccessResponseMerchandising) +[HsnCode](#HsnCode) -Update a merchandise rule's query. See example below or refer `SuccessResponseMerchandising` for details +See example below for details @@ -22193,7 +16745,27 @@ Update a merchandise rule's query. See example below or refer `SuccessResponseMe ```json { - "message": "ok" + "data": { + "company_id": 1, + "hs2_code": "xx", + "hsn_code": "xxxxxxxx", + "id": "xxxxxxxxxxxx", + "modified_by": { + "user_id": "0", + "username": "narutouzumaki" + }, + "slabs": [ + { + "tax": 0, + "threshold": 999999 + }, + { + "tax": 0, + "threshold": 0 + } + ], + "tax_on": "esp" + } } ``` @@ -22209,19 +16781,17 @@ Update a merchandise rule's query. See example below or refer `SuccessResponseMe --- -### updateProductBundle -Update a Product Bundle +### updateInventories +Add Inventory for particular size and store. ```javascript // Promise -const promise = platformClient.catalog.updateProductBundle({ id : value, - body : value }); +const promise = platformClient.catalog.updateInventories({ body : value }); // Async/Await -const data = await platformClient.catalog.updateProductBundle({ id : value, - body : value }); +const data = await platformClient.catalog.updateInventories({ body : value }); ``` @@ -22229,74 +16799,64 @@ const data = await platformClient.catalog.updateProductBundle({ id : value, | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| id | string | yes | A `id` is a unique identifier for a particular detail. Pass the `id` of the keywords which you want to delete. | -| body | [ProductBundleUpdateRequest](#ProductBundleUpdateRequest) | yes | Request body | +| --------- | ----- | -------- | ----------- | +| body | [InventoryRequestSchemaV2](#InventoryRequestSchemaV2) | yes | Request body | -Update a Product Bundle by its id. On successful request, returns the updated product bundle +This API allows add Inventory for particular size and store. *Returned Response:* -[GetProductBundleCreateResponse](#GetProductBundleCreateResponse) - -The Collection object. See example below or refer `GetProductBundleCreateResponse` for details. - +[InventoryUpdateResponse](#InventoryUpdateResponse) +Returns a success or partial success response -
-  Examples:
-  success +  Example: ```json { - "value": { - "choice": "multi", - "company_id": 1, - "created_by": { - "uid": "123", - "username": "917827311650_22960" - }, - "created_on": "2021-02-19 16:40:26.310007", - "id": "602f9ca2a596ce312f5956f9", - "is_active": true, - "logo": "http://g.com/poo.png/", - "meta": {}, - "modified_by": { - "uid": "123", - "username": "917827311650_22960" + "items": [ + { + "data": { + "expiration_date": "9998-01-30T23:59:00", + "price_effective": 109.01, + "price_marked": 130, + "seller_identifier": "SELLER123", + "store_id": 124, + "total_quantity": 34 + }, + "reason": { + "message": "Product not found", + "reason_code": 2005 + } }, - "modified_on": "2021-02-19 16:40:26.310027", - "name": "Bag", - "page_visibility": [ - "pdp" - ], - "products": [ - { - "allow_remove": true, - "auto_add_to_cart": false, - "auto_select": false, - "max_quantity": 1, - "min_quantity": 1, - "product_uid": 7500001 + { + "data": { + "expiration_date": "9998-01-30T23:59:00", + "price_effective": 109.01, + "price_marked": 130, + "seller_identifier": "SELLER123", + "store_id": 124, + "total_quantity": 34 + }, + "reason": { + "message": "Size not found", + "reason_code": 2004 } - ], - "same_store_assignment": true, - "slug": "bag" - } + } + ], + "message": "Partially Successful" } ```
-
- @@ -22308,22 +16868,20 @@ The Collection object. See example below or refer `GetProductBundleCreateRespons --- -### updateProductPriceByZoneInPriceFactory - +### updateListingConfiguration +Update configuration for listings ```javascript // Promise -const promise = platformClient.application("").catalog.updateProductPriceByZoneInPriceFactory({ id : value, - itemId : value, - zoneId : value, +const promise = platformClient.application("").catalog.updateListingConfiguration({ configType : value, + configId : value, body : value }); // Async/Await -const data = await platformClient.application("").catalog.updateProductPriceByZoneInPriceFactory({ id : value, - itemId : value, - zoneId : value, +const data = await platformClient.application("").catalog.updateListingConfiguration({ configType : value, + configId : value, body : value }); ``` @@ -22333,22 +16891,21 @@ const data = await platformClient.application("").catalog.update | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| id | string | yes | A `id` is a unique identifier for a particular price factory. | -| itemId | number | yes | A `item_id` is a unique identifier for a particular product. | -| zoneId | string | yes | A `zone_id` is a unique identifier for a particular zone. | -| body | [UpdateAppPriceFactoryProductRequest](#UpdateAppPriceFactoryProductRequest) | yes | Request body | +| configType | string | yes | A `config_type` is a unique identifier for a particular listing configuration type. | +| configId | string | yes | A `config_id` is a unique identifier of a particular configuration. | +| body | [AppConfigurationsSort](#AppConfigurationsSort) | yes | Request body | -This API allows to partially update products in price factory. +Update configuration for listing. *Returned Response:* -[UpdateAppPriceFactoryProductResponse](#UpdateAppPriceFactoryProductResponse) +[AppConfigurationsSort](#AppConfigurationsSort) -Success response +success flag will tell whether the operation was successful. @@ -22358,33 +16915,14 @@ Success response ```json { - "item_id": 1234, - "zone_id": "507f1f77bcf86cd799439011", - "media": [ - { - "type": "image", - "url": "/x0/products/pictures/item/free/original/Hsw-U3Kut-Test-01.jpeg" - } - ], - "sizes": [ - { - "seller-identifier": "qwert123", - "size_name": "XL", - "marked_price": 1500, - "selling_price": 1400, - "currency": "INR", - "is_active": true - } - ], - "company_sizes": [ - { - "seller-identifier": "qwert123", - "size_name": "XL", - "marked_price": 1200, - "selling_price": 1100, - "currency": "INR" - } - ] + "app_id": "5d64e3500bcad8693a821c0d", + "default_key": "latest", + "id": "6250568de404abd533db571d", + "is_active": true, + "is_default": false, + "key": "latest", + "name": "Latest", + "priority": 1 } ``` @@ -22400,20 +16938,18 @@ Success response --- -### updateRealtimeInventory -Add Inventory for particular size and store. +### updateMarketplaceOptin +Update marketplace optin ```javascript // Promise -const promise = platformClient.catalog.updateRealtimeInventory({ itemId : value, - sellerIdentifier : value, +const promise = platformClient.catalog.updateMarketplaceOptin({ marketplaceSlug : value, body : value }); // Async/Await -const data = await platformClient.catalog.updateRealtimeInventory({ itemId : value, - sellerIdentifier : value, +const data = await platformClient.catalog.updateMarketplaceOptin({ marketplaceSlug : value, body : value }); ``` @@ -22423,43 +16959,51 @@ const data = await platformClient.catalog.updateRealtimeInventory({ itemId : va | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| itemId | number | yes | Item code of the product of which size is to be get. | -| sellerIdentifier | string | yes | Size Identifier (Seller Identifier or Primary Identifier) of which inventory is to get. | -| body | [InventoryRequestSchemaV2](#InventoryRequestSchemaV2) | yes | Request body | +| marketplaceSlug | string | yes | Slug of the marketplace . | +| body | [UpdateMarketplaceOptinRequest](#UpdateMarketplaceOptinRequest) | yes | Request body | -This API allows add Inventory for particular size and store. +This API allows to update marketplace optin for a company. *Returned Response:* -[InventoryUpdateResponse](#InventoryUpdateResponse) - -Returns a success response - +[UpdateMarketplaceOptinResponse](#UpdateMarketplaceOptinResponse) +Update marketplace optin config. -
-  Examples:
-  success +  Example: ```json { - "value": { - "success": true + "items": null, + "-data": { + "brand_ids": [], + "app_id": "000000000000000000000001", + "enabled": true, + "created_by": { + "username": "test@gofynd.com", + "user_id": "ef56cde2dc3227c44bcb73fd" + }, + "opt_level": "company", + "company_id": 1, + "modified_by": { + "username": "test@gofynd.com", + "user_id": "ef56cde2dc3227c44bcb73fd" + }, + "store_ids": [], + "platform": "fynd" } } ```
-
- @@ -22471,17 +17015,19 @@ Returns a success response --- -### updateSearchConfiguration -Update search configuration for an application +### updateProductBundle +Update a Product Bundle ```javascript // Promise -const promise = platformClient.application("").catalog.updateSearchConfiguration({ body : value }); +const promise = platformClient.catalog.updateProductBundle({ id : value, + body : value }); // Async/Await -const data = await platformClient.application("").catalog.updateSearchConfiguration({ body : value }); +const data = await platformClient.catalog.updateProductBundle({ id : value, + body : value }); ``` @@ -22489,48 +17035,66 @@ const data = await platformClient.application("").catalog.update | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| body | [UpdateSearchConfigurationRequest](#UpdateSearchConfigurationRequest) | yes | Request body | +| --------- | ----- | -------- | ----------- | +| id | string | yes | A `id` is a unique identifier for a particular detail. Pass the `id` of the keywords which you want to delete. | +| body | [ProductBundleUpdateRequest](#ProductBundleUpdateRequest) | yes | Request body | -This view allows you to modify searchable attributes for an application +Update a Product Bundle by its id. On successful request, returns the updated product bundle *Returned Response:* -[UpdateSearchConfigurationResponse](#UpdateSearchConfigurationResponse) - -List of custom search keywords. See example below or refer `UpdateSearchConfigurationResponse` for details - +[GetProductBundleCreateResponse](#GetProductBundleCreateResponse) +The Collection object. See example below or refer `GetProductBundleCreateResponse` for details. -
-  Examples:
-  success +  Example: ```json { - "value": { - "searchable_attributes": [ - { - "name": "Department", - "key": "department", - "priority": 1 - } - ] - } + "choice": "multi", + "company_id": 1, + "created_by": { + "uid": "123", + "username": "917827311650_22960" + }, + "created_on": "2021-02-19 16:40:26.310007", + "id": "602f9ca2a596ce312f5956f9", + "is_active": true, + "logo": "http://g.com/poo.png/", + "meta": {}, + "modified_by": { + "uid": "123", + "username": "917827311650_22960" + }, + "modified_on": "2021-02-19 16:40:26.310027", + "name": "Bag", + "page_visibility": [ + "pdp" + ], + "products": [ + { + "allow_remove": true, + "auto_add_to_cart": false, + "auto_select": false, + "max_quantity": 1, + "min_quantity": 1, + "product_uid": 7500001 + } + ], + "same_store_assignment": true, + "slug": "bag" } ```
-
- @@ -22542,18 +17106,20 @@ List of custom search keywords. See example below or refer `UpdateSearchConfigur --- -### updateSearchKeywords -Update Search Keyword +### updateRealtimeInventory +Add Inventory for particular size and store. ```javascript // Promise -const promise = platformClient.application("").catalog.updateSearchKeywords({ id : value, +const promise = platformClient.catalog.updateRealtimeInventory({ itemId : value, + sellerIdentifier : value, body : value }); // Async/Await -const data = await platformClient.application("").catalog.updateSearchKeywords({ id : value, +const data = await platformClient.catalog.updateRealtimeInventory({ itemId : value, + sellerIdentifier : value, body : value }); ``` @@ -22563,56 +17129,65 @@ const data = await platformClient.application("").catalog.update | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| id | string | yes | A `id` is a unique identifier for a particular detail. Pass the `id` of the keywords which you want to delete. | -| body | [CreateSearchKeyword](#CreateSearchKeyword) | yes | Request body | +| itemId | number | yes | Item code of the product of which size is to be get. | +| sellerIdentifier | string | yes | Size Identifier (Seller Identifier or Primary Identifier) of which inventory is to get. | +| body | [InventoryRequestSchemaV2](#InventoryRequestSchemaV2) | yes | Request body | -Update Search Keyword by its id. On successful request, returns the updated collection +This API allows add Inventory for particular size and store. *Returned Response:* -[GetSearchWordsData](#GetSearchWordsData) - -The Collection object. See example below or refer `GetSearchWordsDataSchema` for details. - +[InventoryUpdateResponse](#InventoryUpdateResponse) +Returns a success response -
-  Examples:
-  success +  Example: ```json { - "value": { - "uid": "65685b09d090252c51c21762", - "words": [ - "fx" - ], - "app_id": "64aed377b1fd04565d0dff30", - "is_active": true, - "result": { - "sort_on": "discount_dsc", - "query": { - "category": [ - "weldon535486841872023104970" - ] + "items": [ + { + "data": { + "expiration_date": "9998-01-30T23:59:00", + "price_effective": 109.01, + "price_marked": 130, + "seller_identifier": "SELLER123", + "store_id": 124, + "total_quantity": 34 + }, + "reason": { + "message": "Product not found", + "reason_code": 2005 } }, - "_custom_json": {} - } + { + "data": { + "expiration_date": "9998-01-30T23:59:00", + "price_effective": 109.01, + "price_marked": 130, + "seller_identifier": "SELLER123", + "store_id": 124, + "total_quantity": 34 + }, + "reason": { + "message": "Size not found", + "reason_code": 2004 + } + } + ], + "message": "Partially Successful" } ```
-
- @@ -22624,19 +17199,17 @@ The Collection object. See example below or refer `GetSearchWordsDataSchema` for --- -### updateSearchRerankConfiguration -Update search rerank for an application +### updateSearchConfiguration +Update search configuration for an application ```javascript // Promise -const promise = platformClient.application("").catalog.updateSearchRerankConfiguration({ id : value, - body : value }); +const promise = platformClient.application("").catalog.updateSearchConfiguration({ body : value }); // Async/Await -const data = await platformClient.application("").catalog.updateSearchRerankConfiguration({ id : value, - body : value }); +const data = await platformClient.application("").catalog.updateSearchConfiguration({ body : value }); ``` @@ -22644,65 +17217,34 @@ const data = await platformClient.application("").catalog.update | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| id | string | yes | An `id` is the identifier for a particular search rerank configuration. channel. | -| body | [UpdateSearchRerankRequest](#UpdateSearchRerankRequest) | yes | Request body | +| --------- | ----- | -------- | ----------- | +| body | [UpdateSearchConfigurationRequest](#UpdateSearchConfigurationRequest) | yes | Request body | -This view allows you to update search rerank attribute for an application +This view allows you to modify searchable attributes for an application *Returned Response:* -[UpdateSearchRerankResponse](#UpdateSearchRerankResponse) - -Update search rerank configuration. See example below or refer `UpdateSearchRerankResponse` for details - +[UpdateSearchConfigurationResponse](#UpdateSearchConfigurationResponse) +List of custom search keywords. See example below or refer `UpdateSearchConfigurationResponse` for details -
-  Examples:
-  success +  Example: ```json { - "value": { - "words": [ - "test" - ], - "app_id": "64aed475db2cfb5b8a9f623d", - "ranking": { - "boost": [ - { - "attribute_value": "test", - "attribute_key": "l3_category_slugs" - } - ] - }, - "is_active": true, - "created_on": "2023-12-24T07:10:55.725539", - "created_by": { - "username": "rohanshah@fynd.com", - "user_id": "5e199e6998cfe1776f1385dc" - }, - "modified_on": "2023-12-24T07:10:55.725553", - "modified_by": { - "username": "rohanshah@fynd.com", - "user_id": "5e199e6998cfe1776f1385dc" - } - } + "searchable_attributes": {} } ```
-
- @@ -22714,18 +17256,18 @@ Update search rerank configuration. See example below or refer `UpdateSearchRera --- -### updateSizeGuide -Edit a size guide. +### updateSearchKeywords +Update Search Keyword ```javascript // Promise -const promise = platformClient.catalog.updateSizeGuide({ id : value, +const promise = platformClient.application("").catalog.updateSearchKeywords({ id : value, body : value }); // Async/Await -const data = await platformClient.catalog.updateSizeGuide({ id : value, +const data = await platformClient.application("").catalog.updateSearchKeywords({ id : value, body : value }); ``` @@ -22735,40 +17277,30 @@ const data = await platformClient.catalog.updateSizeGuide({ id : value, | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| id | string | yes | Mongo id of the size guide to be edited | -| body | [ValidateSizeGuide](#ValidateSizeGuide) | yes | Request body | +| id | string | yes | A `id` is a unique identifier for a particular detail. Pass the `id` of the keywords which you want to delete. | +| body | [CreateSearchKeyword](#CreateSearchKeyword) | yes | Request body | -This API allows to edit a size guide. +Update Search Keyword by its id. On successful request, returns the updated collection *Returned Response:* -[SuccessResponse](#SuccessResponse) - -Returns a success response - +[GetSearchWordsData](#GetSearchWordsData) +The Collection object. See example below or refer `GetSearchWordsDataSchema` for details. -
-  Examples:
-  success +  Example: ```json -{ - "value": { - "success": true - } -} -``` -
+```
@@ -22782,20 +17314,18 @@ Returns a success response --- -### uploadBulkProducts -Create a Bulk product to upload job. +### updateSizeGuide +Edit a size guide. ```javascript // Promise -const promise = platformClient.catalog.uploadBulkProducts({ department : value, - productType : value, +const promise = platformClient.catalog.updateSizeGuide({ id : value, body : value }); // Async/Await -const data = await platformClient.catalog.uploadBulkProducts({ department : value, - productType : value, +const data = await platformClient.catalog.updateSizeGuide({ id : value, body : value }); ``` @@ -22805,19 +17335,18 @@ const data = await platformClient.catalog.uploadBulkProducts({ department : val | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| department | string | yes | Department of the product to be uploaded. | -| productType | string | yes | Product type of the product to be uploaded i.e. set, standard , digital. | -| body | [BulkProductJob](#BulkProductJob) | yes | Request body | +| id | string | yes | Mongo id of the size guide to be edited | +| body | [ValidateSizeGuide](#ValidateSizeGuide) | yes | Request body | -This API helps to create a bulk products upload job. +This API allows to edit a size guide. *Returned Response:* -[ProductBulkResponse](#ProductBulkResponse) +[SuccessResponse](#SuccessResponse) Returns a success response @@ -22825,23 +17354,15 @@ Returns a success response
-  Examples: - - -
-  success +  Example: ```json { - "value": { - "batch_id": "507f1f77bcf86cd799439011" - } + "success": true } ```
-
- @@ -22853,20 +17374,20 @@ Returns a success response --- -### validateProductPriceFactoryBulkJob - +### uploadBulkProducts +Create a Bulk product to upload job. ```javascript // Promise -const promise = platformClient.application("").catalog.validateProductPriceFactoryBulkJob({ id : value, - jobId : value, +const promise = platformClient.catalog.uploadBulkProducts({ department : value, + productType : value, body : value }); // Async/Await -const data = await platformClient.application("").catalog.validateProductPriceFactoryBulkJob({ id : value, - jobId : value, +const data = await platformClient.catalog.uploadBulkProducts({ department : value, + productType : value, body : value }); ``` @@ -22876,21 +17397,21 @@ const data = await platformClient.application("").catalog.valida | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| id | string | yes | An `id` is a unique identifier for a particular price factory. | -| jobId | string | yes | A `job_id` is a unique identifier for a particular bulk job. | -| body | [CreateAppPriceFactoryProductBulkJobRequest](#CreateAppPriceFactoryProductBulkJobRequest) | yes | Request body | +| department | string | yes | Department of the product to be uploaded. | +| productType | string | yes | Product type of the product to be uploaded i.e. set, standard , digital. | +| body | [BulkJob](#BulkJob) | yes | Request body | -This API allows to validate bulk job for adding products in price factory. +This API helps to create a bulk products upload job. *Returned Response:* -[CreateAppPriceFactoryProductBulkJobResponse](#CreateAppPriceFactoryProductBulkJobResponse) +[BulkResponse](#BulkResponse) -Success response +Returns a success response @@ -22900,18 +17421,8 @@ Success response ```json { - "job_id": "507f1f77bcf86cd799439011", - "status": "validating", - "created_on": "2021-09-23T12:00:00.000000Z", - "modified_on": "2021-09-23T12:00:00.000000Z", - "created_by": { - "user_id": "507f1f77bcf86cd799439011", - "username": "testuser" - }, - "modified_by": { - "user_id": "507f1f77bcf86cd799439011", - "username": "testuser" - } + "batch_id": "507f1f77bcf86cd799439011", + "created_on": "2021-04-02T15:43:59.410000Z" } ``` @@ -22971,36 +17482,28 @@ List of fields and validation values fro each. See example below or refer `Templ
-  Examples: - - -
-  success +  Example: ```json { - "value": { - "data": { - "global_validation": { - "properties": {}, - "required": [] - } - }, - "template_details": { - "attributes": [], - "categories": [], - "departments": [], - "is_expirable": true, - "is_physical": true, - "slug": "" + "data": { + "global_validation": { + "properties": {}, + "required": [] } + }, + "template_details": { + "attributes": [], + "categories": [], + "departments": [], + "is_expirable": true, + "is_physical": true, + "slug": "" } } ```
-
- @@ -23019,12 +17522,10 @@ Validate Product Template Schema ```javascript // Promise -const promise = platformClient.catalog.validateProductTemplateSchema({ itemType : value, - bulk : value }); +const promise = platformClient.catalog.validateProductTemplateSchema({ itemType : value }); // Async/Await -const data = await platformClient.catalog.validateProductTemplateSchema({ itemType : value, - bulk : value }); +const data = await platformClient.catalog.validateProductTemplateSchema({ itemType : value }); ``` @@ -23033,8 +17534,7 @@ const data = await platformClient.catalog.validateProductTemplateSchema({ itemT | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| itemType | string | yes | An `item_type` defines the type of item. The default value is standard. | -| bulk | boolean | yes | Type of file template i.e if bulk | +| itemType | string | yes | An `item_type` defines the type of item. The default value is standard. | @@ -23053,111 +17553,103 @@ List of fields and validation values fro each. See example below or refer `Inven
-  Examples: - - -
-  success +  Example: ```json { - "value": { - "data": { - "definitions": { - "InventoryBaseSchema": { - "properties": { - "currency": { - "title": "Currency", - "type": "string" - }, - "price": { - "exclusiveMinimum": 1, - "title": "Actual Price", - "type": "number" - }, - "price_effective": { - "exclusiveMinimum": 1, - "title": "Selling Price", - "type": "number" - }, - "quantity": { - "minimum": 0, - "title": "Quantity", - "type": "integer" - }, - "seller_identifier": { - "pattern": "^[A-Za-z0-9]*$", - "title": "Gtin Value", - "type": "string" - }, - "size": { - "title": "Size", - "type": "string" - }, - "store_code": { - "enum": [ - "RUOSH43", - "S106", - "S108", - "TIO9", - "talha" - ], - "title": "Store Code", - "type": "string" - } + "data": { + "definitions": { + "InventoryBaseSchema": { + "properties": { + "currency": { + "title": "Currency", + "type": "string" }, - "required": [ - "price", - "price_effective", - "seller_identifier", - "quantity", - "store_code", - "currency", - "size" - ], - "title": "InventoryBaseSchema", - "type": "object" + "price": { + "exclusiveMinimum": 1, + "title": "Actual Price", + "type": "number" + }, + "price_effective": { + "exclusiveMinimum": 1, + "title": "Selling Price", + "type": "number" + }, + "quantity": { + "minimum": 0, + "title": "Quantity", + "type": "integer" + }, + "seller_identifier": { + "pattern": "^[A-Za-z0-9]*$", + "title": "Gtin Value", + "type": "string" + }, + "size": { + "title": "Size", + "type": "string" + }, + "store_code": { + "enum": [ + "RUOSH43", + "S106", + "S108", + "TIO9", + "talha" + ], + "title": "Store Code", + "type": "string" + } }, - "ItemQuery": { - "properties": { - "brand_uid": { - "title": "Brand Uid", - "type": "integer" - }, - "item_code": { - "title": "Item Code", - "type": "integer" - }, - "uid": { - "title": "Uid", - "type": "integer" - } + "required": [ + "price", + "price_effective", + "seller_identifier", + "quantity", + "store_code", + "currency", + "size" + ], + "title": "InventoryBaseSchema", + "type": "object" + }, + "ItemQuery": { + "properties": { + "brand_uid": { + "title": "Brand Uid", + "type": "integer" }, - "title": "ItemQuery", - "type": "object" - } - }, - "properties": { - "sizes": { - "title": "Sizes", - "type": "array" - } - }, - "required": [ - "item", - "sizes" - ], - "title": "InventoryValidationResponse", - "type": "object" + "item_code": { + "title": "Item Code", + "type": "integer" + }, + "uid": { + "title": "Uid", + "type": "integer" + } + }, + "title": "ItemQuery", + "type": "object" + } }, - "message": "Success" - } + "properties": { + "sizes": { + "title": "Sizes", + "type": "array" + } + }, + "required": [ + "item", + "sizes" + ], + "title": "InventoryValidationResponse", + "type": "object" + }, + "message": "Success" } ```
-
- @@ -23182,51 +17674,16 @@ List of fields and validation values fro each. See example below or refer `Inven | type | string? | yes | | ---- - -#### [ActionObject](#ActionObject) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | query | string? | yes | | - | type | string? | yes | | - - --- #### [ActionPage](#ActionPage) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | query | [ActionProperties](#ActionProperties)? | yes | | + | query | string? | yes | | | type | string? | yes | | ---- - -#### [ActionProperties](#ActionProperties) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | collection | [string]? | yes | | - - ---- - -#### [Address](#Address) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | address1 | string? | yes | | - | address2 | string? | yes | | - | city | string? | yes | | - | country | string? | yes | | - | country_code | string? | yes | | - | landmark | string? | yes | | - | pincode | number? | yes | | - | state | string? | yes | | - - --- #### [AllowSingleRequest](#AllowSingleRequest) @@ -23261,11 +17718,11 @@ List of fields and validation values fro each. See example below or refer `Inven | app_id | string | no | | | config_id | string? | yes | | | config_type | string | no | | - | created_by | [UserSerializer](#UserSerializer)? | yes | The user who created the configuration. | + | created_by | string? | yes | | | created_on | string? | yes | | | id | string? | yes | | | listing | [ConfigurationListing](#ConfigurationListing)? | yes | | - | modified_by | [UserSerializer](#UserSerializer)? | yes | The user who modified the configuration. | + | modified_by | string? | yes | | | modified_on | string? | yes | | | product | [ConfigurationProduct](#ConfigurationProduct)? | yes | | | type | string? | yes | | @@ -23312,95 +17769,21 @@ List of fields and validation values fro each. See example below or refer `Inven | type | string? | yes | | ---- - -#### [AppConfigurationCreateDetail](#AppConfigurationCreateDetail) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | app_id | string? | yes | | - | attributes | [[AttributeDetailsGroup](#AttributeDetailsGroup)]? | yes | | - | is_active | boolean | no | | - | is_default | boolean | no | | - | logo | string? | yes | | - | name | string? | yes | | - | priority | number | no | | - | slug | string | no | | - | template_slugs | [string]? | yes | | - - --- #### [AppConfigurationDetail](#AppConfigurationDetail) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | app_id | string? | yes | | - | attributes | [[AttributeDetailsGroup](#AttributeDetailsGroup)]? | yes | | - | id | string? | yes | | - | is_active | boolean | no | | - | is_default | boolean | no | | - | logo | string? | yes | | - | name | string? | yes | | - | priority | number | no | | - | slug | string | no | | - | template_slugs | [string]? | yes | | - - ---- - -#### [AppConfigurationsFilter](#AppConfigurationsFilter) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | allow_single | boolean? | yes | | | app_id | string | no | | - | attribute_name | string? | yes | | + | attributes | [[AttributeDetailsGroup](#AttributeDetailsGroup)]? | yes | | | is_active | boolean | no | | - | is_default | boolean | no | | - | key | string | no | | - | logo | string? | yes | | - | name | string? | yes | | - | priority | number | no | | - | type | string? | yes | | - | value_config | [ValueConfigType](#ValueConfigType)? | yes | | - - ---- - -#### [AppConfigurationsFilterResponse](#AppConfigurationsFilterResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | allow_single | boolean? | yes | | - | app_id | string? | yes | | - | attribute_name | string? | yes | | - | id | string? | yes | | - | is_active | boolean? | yes | | - | is_default | boolean? | yes | | - | key | string? | yes | | - | logo | string? | yes | | - | name | string? | yes | | - | priority | number? | yes | | - | type | string? | yes | | - | value_config | [ValueConfigType](#ValueConfigType)? | yes | | - - ---- - -#### [AppConfigurationsResponse](#AppConfigurationsResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | app_id | string? | yes | | - | default_key | string? | yes | | - | id | string? | yes | | - | is_active | boolean? | yes | | - | is_default | boolean? | yes | | - | key | string? | yes | | + | is_default | boolean | no | | | logo | string? | yes | | | name | string? | yes | | - | priority | number? | yes | | + | priority | number | no | | + | slug | string | no | | + | template_slugs | [string]? | yes | | --- @@ -23410,7 +17793,7 @@ List of fields and validation values fro each. See example below or refer `Inven | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | | app_id | string | no | | - | default_key | string? | yes | | + | default_key | string | no | | | is_active | boolean | no | | | is_default | boolean | no | | | key | string | no | | @@ -23523,7 +17906,7 @@ List of fields and validation values fro each. See example below or refer `Inven | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | action | string? | yes | | + | action | [[ApplicationItemSeoAction](#ApplicationItemSeoAction)]? | yes | | | url | string? | yes | | @@ -23555,7 +17938,7 @@ List of fields and validation values fro each. See example below or refer `Inven | ---------- | ---- | -------- | ----------- | | filters | [[ProductFilters](#ProductFilters)]? | yes | | | items | [[ProductListingDetail](#ProductListingDetail)]? | yes | | - | operators | [OperatorsResponse](#OperatorsResponse)? | yes | | + | operators | string? | yes | | | page | [Page](#Page) | no | | | sort_on | [[ProductSortOn](#ProductSortOn)]? | yes | | @@ -23569,25 +17952,6 @@ List of fields and validation values fro each. See example below or refer `Inven | _custom_json | string | no | | ---- - -#### [AppPriceFactory](#AppPriceFactory) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | code | string? | yes | | - | created_by | [CreatedBy](#CreatedBy)? | yes | | - | created_on | string? | yes | | - | departments | [number]? | yes | | - | factory_type | string? | yes | | - | factory_type_ids | [number]? | yes | | - | id | string? | yes | | - | is_active | boolean? | yes | | - | modified_by | [CreatedBy](#CreatedBy)? | yes | | - | modified_on | string? | yes | | - | name | string? | yes | | - - --- #### [AppReturnConfigResponse](#AppReturnConfigResponse) @@ -23597,8 +17961,8 @@ List of fields and validation values fro each. See example below or refer `Inven | app_id | string? | yes | Channel identifier | | category_count | number? | yes | Count of L3 category return config set for application | | company_id | number? | yes | Unique identifer of company | - | created_by | [CreatedBy](#CreatedBy)? | yes | | - | modified_by | [CreatedBy](#CreatedBy)? | yes | | + | created_by | string? | yes | User details | + | modified_by | string? | yes | User details | | modified_on | string? | yes | Modification date | | return_config_level | string? | yes | configuration level of return window category\|product\|no-return | @@ -23781,21 +18145,6 @@ List of fields and validation values fro each. See example below or refer `Inven | min | number? | yes | | ---- - -#### [AttributeType](#AttributeType) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | display_type | string? | yes | | - | is_active | boolean? | yes | | - | key | string? | yes | | - | name | string? | yes | | - | priority | number? | yes | | - | slug | string? | yes | | - | unit | string? | yes | | - - --- #### [AutocompleteAction](#AutocompleteAction) @@ -23806,29 +18155,6 @@ List of fields and validation values fro each. See example below or refer `Inven | type | string? | yes | | ---- - -#### [AutocompleteErrorResponseSchema](#AutocompleteErrorResponseSchema) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | message | string? | yes | | - | success | boolean? | yes | | - - ---- - -#### [AutocompleteItem](#AutocompleteItem) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | _custom_json | string? | yes | | - | action | [ProductListingAction](#ProductListingAction)? | yes | | - | display | string? | yes | | - | logo | [Media](#Media)? | yes | | - | type | string? | yes | | - - --- #### [AutoCompleteMedia](#AutoCompleteMedia) @@ -23852,42 +18178,6 @@ List of fields and validation values fro each. See example below or refer `Inven | url | string? | yes | | ---- - -#### [AutocompletePreviewResponseSchema](#AutocompletePreviewResponseSchema) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | items | [[AutocompleteItem](#AutocompleteItem)]? | yes | | - - ---- - -#### [AutocompleteRequestSchema](#AutocompleteRequestSchema) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | brand_suggestion | string? | yes | | - | category_suggestion | string? | yes | | - | collection_suggestion | string? | yes | | - | product_suggestion | string? | yes | | - | query_suggestion | string? | yes | | - - ---- - -#### [AutocompleteResponseSchema](#AutocompleteResponseSchema) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | brand_suggestion | string? | yes | | - | category_suggestion | string? | yes | | - | collection_suggestion | string? | yes | | - | id | string? | yes | | - | product_suggestion | string? | yes | | - | query_suggestion | string? | yes | | - - --- #### [AutocompleteResult](#AutocompleteResult) @@ -23900,27 +18190,6 @@ List of fields and validation values fro each. See example below or refer `Inven | logo | [AutoCompleteMedia](#AutoCompleteMedia)? | yes | | ---- - -#### [AutocompleteUpsertResponseSchema](#AutocompleteUpsertResponseSchema) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | id | string? | yes | | - | message | string? | yes | | - | success | boolean? | yes | | - - ---- - -#### [BadgeDetail](#BadgeDetail) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | color | string? | yes | | - | text | string? | yes | | - - --- #### [BannerImage](#BannerImage) @@ -23950,28 +18219,7 @@ List of fields and validation values fro each. See example below or refer `Inven | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | | data | [[AppCategoryReturnConfigResponse](#AppCategoryReturnConfigResponse)]? | yes | | - | page | [PageResponse1](#PageResponse1)? | yes | | - - ---- - -#### [BoostAttribute](#BoostAttribute) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | attribute | string? | yes | | - | strength | number? | yes | | - | value | string? | yes | | - - ---- - -#### [BoostItem](#BoostItem) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | attribute_key | string? | yes | | - | attribute_value | string? | yes | | + | page | [PageResponse](#PageResponse)? | yes | | --- @@ -23993,9 +18241,9 @@ List of fields and validation values fro each. See example below or refer `Inven | ---------- | ---- | -------- | ----------- | | action | [Action](#Action)? | yes | | | banners | [ImageUrls](#ImageUrls)? | yes | | - | departments | [number]? | yes | | + | departments | [string]? | yes | | | discount | string? | yes | | - | logo | [BrandLogo](#BrandLogo)? | yes | | + | logo | [Media2](#Media2)? | yes | | | name | string? | yes | | | slug | string? | yes | | | uid | number? | yes | | @@ -24011,16 +18259,6 @@ List of fields and validation values fro each. See example below or refer `Inven | page | [Page](#Page) | no | | ---- - -#### [BrandLogo](#BrandLogo) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | type | string? | yes | | - | url | string? | yes | | - - --- #### [BrandMeta](#BrandMeta) @@ -24041,16 +18279,6 @@ List of fields and validation values fro each. See example below or refer `Inven | name | string? | yes | | ---- - -#### [BrandValidationItem](#BrandValidationItem) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | consent_doc_required | boolean? | yes | | - | stage | string? | yes | | - - --- #### [BulkAssetResponse](#BulkAssetResponse) @@ -24061,22 +18289,13 @@ List of fields and validation values fro each. See example below or refer `Inven | page | [Page](#Page)? | yes | | ---- - -#### [BulkHsnDataResponse](#BulkHsnDataResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | success | boolean? | yes | Flag indicating the success status of the bulk HSN operation. | - - --- #### [BulkHsnResponse](#BulkHsnResponse) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | data | [BulkHsnDataResponse](#BulkHsnDataResponse)? | yes | | + | success | boolean? | yes | Flag indicating the success status of the bulk HSN operation. | --- @@ -24146,19 +18365,6 @@ List of fields and validation values fro each. See example below or refer `Inven | tracking_url | string? | yes | | ---- - -#### [BulkProductJob](#BulkProductJob) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | company_id | string? | yes | | - | department | string? | yes | | - | file_path | string? | yes | | - | product_type | string? | yes | | - | template_tag | string? | yes | | - - --- #### [BulkProductRequest](#BulkProductRequest) @@ -24171,21 +18377,6 @@ List of fields and validation values fro each. See example below or refer `Inven | template_tag | string | no | | ---- - -#### [BulkProductUploadJob](#BulkProductUploadJob) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | company_id | number? | yes | The ID of the company | - | file_path | string? | yes | | - | stage | string? | yes | The import stage | - | succeed | number? | yes | Successfully imported records | - | template_tag | string? | yes | Template tag for the import | - | total | number? | yes | Total records to be imported | - | tracking_url | string? | yes | | - - --- #### [BulkResponse](#BulkResponse) @@ -24283,17 +18474,6 @@ List of fields and validation values fro each. See example below or refer `Inven | uid | number? | yes | It is the unique identifier of the category. | ---- - -#### [CategoryErrorResponse](#CategoryErrorResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | code | string? | yes | | - | error | string? | yes | | - | message | string? | yes | | - - --- #### [CategoryItems](#CategoryItems) @@ -24326,139 +18506,56 @@ List of fields and validation values fro each. See example below or refer `Inven | ---------- | ---- | -------- | ----------- | | ajio | [CategoryMappingValues](#CategoryMappingValues)? | yes | It is the category id mapping for ajio platform. | | facebook | [CategoryMappingValues](#CategoryMappingValues)? | yes | It is the category id mapping for facebook platform. | - | google | [CategoryMappingValues](#CategoryMappingValues)? | yes | It is the category id mapping for google platform. | - - ---- - -#### [CategoryMappingValues](#CategoryMappingValues) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | catalog_id | number? | yes | It is the category id mapping of the respective platform with Fynd Platform. | - | name | string | no | It is the name of the Category in the respective platform. | - - ---- - -#### [CategoryProduct](#CategoryProduct) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | l1 | [CategorySubSchema](#CategorySubSchema)? | yes | | - | l2 | [CategorySubSchema](#CategorySubSchema)? | yes | | - | l3 | [CategorySubSchema](#CategorySubSchema)? | yes | | - - ---- - -#### [CategoryRequestBody](#CategoryRequestBody) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | departments | [number] | no | It is the list of unique department the category belongs to. | - | hierarchy | [[Hierarchy](#Hierarchy)]? | yes | It is the list of category hierarchies for each department of an L3 category. | - | is_active | boolean | no | It is the flag indicating if the category is active. | - | level | number | no | It is the level of category | - | marketplaces | [CategoryMapping](#CategoryMapping)? | yes | It is the mapping of the category in different marketplaces. | - | media | [Media1](#Media1)? | yes | It is the details of the media such as banner and logo.. | - | name | string | no | It is the name of the category | - | priority | number? | yes | It is the priority of the category. | - | slug | string? | yes | It is the slug of the category. | - | synonyms | [string]? | yes | It is the list of synonyms. | - | tryouts | [string]? | yes | It is the list of tryouts. | - - ---- - -#### [CategoryResponse](#CategoryResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | items | [[Category](#Category)]? | yes | | - | page | [Page](#Page)? | yes | | - - ---- - -#### [CategorySubSchema](#CategorySubSchema) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | name | string? | yes | | - | uid | number? | yes | | - - ---- - -#### [CategoryUpdateResponse](#CategoryUpdateResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | message | string? | yes | It is the message of the response from the category. | - | success | boolean? | yes | It is the flag indication the success response. | - - ---- - -#### [ChannelDetailResponse](#ChannelDetailResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | _id | string? | yes | | - | app_id | string? | yes | | - | created_by | [CreatedBy](#CreatedBy)? | yes | | - | created_on | string? | yes | | - | description | string? | yes | | - | display_name | string? | yes | | - | logo | string? | yes | | - | modified_by | [CreatedBy](#CreatedBy)? | yes | | - | modified_on | string? | yes | | - | name | string? | yes | | - | slug | string? | yes | | - | validation | [ChannelValidation](#ChannelValidation)? | yes | | + | google | [CategoryMappingValues](#CategoryMappingValues)? | yes | It is the category id mapping for google platform. | --- -#### [ChannelItem](#ChannelItem) +#### [CategoryMappingValues](#CategoryMappingValues) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | _id | string? | yes | | - | app_id | string? | yes | | - | created_by | [CreatedBy](#CreatedBy)? | yes | | - | created_on | string? | yes | | - | description | string? | yes | | - | display_name | string? | yes | | - | logo | string? | yes | | - | modified_by | [CreatedBy](#CreatedBy)? | yes | | - | modified_on | string? | yes | | - | name | string? | yes | | - | slug | string? | yes | | - | validation | [ChannelValidation](#ChannelValidation)? | yes | | + | catalog_id | number? | yes | It is the category id mapping of the respective platform with Fynd Platform. | + | name | string | no | It is the name of the Category in the respective platform. | + + +--- + +#### [CategoryRequestBody](#CategoryRequestBody) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | departments | [number] | no | It is the list of unique department the category belongs to. | + | hierarchy | [[Hierarchy](#Hierarchy)]? | yes | It is the list of category hierarchies for each department of an L3 category. | + | is_active | boolean | no | It is the flag indicating if the category is active. | + | level | number | no | It is the level of category | + | marketplaces | [CategoryMapping](#CategoryMapping)? | yes | It is the mapping of the category in different marketplaces. | + | media | [Media1](#Media1)? | yes | It is the details of the media such as banner and logo.. | + | name | string | no | It is the name of the category | + | priority | number? | yes | It is the priority of the category. | + | slug | string? | yes | It is the slug of the category. | + | synonyms | [string]? | yes | It is the list of synonyms. | + | tryouts | [string]? | yes | It is the list of tryouts. | --- -#### [ChannelListResponse](#ChannelListResponse) +#### [CategoryResponse](#CategoryResponse) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | items | [[ChannelItem](#ChannelItem)]? | yes | | + | items | [[Category](#Category)]? | yes | | | page | [Page](#Page)? | yes | | --- -#### [ChannelValidation](#ChannelValidation) +#### [CategoryUpdateResponse](#CategoryUpdateResponse) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | brand | [BrandValidationItem](#BrandValidationItem)? | yes | | - | company | [CompanyValidation](#CompanyValidation)? | yes | | - | location | [LocationValidation](#LocationValidation)? | yes | | - | product | [ProductValidation](#ProductValidation)? | yes | | + | message | string? | yes | It is the message of the response from the category. | + | success | boolean? | yes | It is the flag indication the success response. | --- @@ -24496,44 +18593,29 @@ List of fields and validation values fro each. See example below or refer `Inven | portrait | [CollectionImage](#CollectionImage) | no | | ---- - -#### [CollectionBannerResponse](#CollectionBannerResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | landscape | [CollectionImageResponse](#CollectionImageResponse)? | yes | | - | portrait | [CollectionImageResponse](#CollectionImageResponse)? | yes | | - - --- #### [CollectionCreateResponse](#CollectionCreateResponse) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | _custom_json | string? | yes | | - | _locale_language | string? | yes | | - | _schedule | [CollectionSchedule](#CollectionSchedule)? | yes | | - | action | [Action](#Action)? | yes | | + | _schedule | string? | yes | | | allow_facets | boolean? | yes | | | allow_sort | boolean? | yes | | | app_id | string? | yes | | - | badge | [CollectionBadge](#CollectionBadge)? | yes | | - | banners | [CollectionBannerResponse](#CollectionBannerResponse)? | yes | | + | badge | string? | yes | | + | banners | [ImageUrls](#ImageUrls)? | yes | | + | cron | string? | yes | | | description | string? | yes | | | is_active | boolean? | yes | | - | is_visible | boolean? | yes | | - | logo | [CollectionImageResponse](#CollectionImageResponse)? | yes | | + | logo | [BannerImage](#BannerImage)? | yes | | | meta | string? | yes | | | name | string? | yes | | | priority | number? | yes | | - | published | boolean? | yes | | | query | [[CollectionQuery](#CollectionQuery)]? | yes | | - | seo | [SeoDetail](#SeoDetail)? | yes | | | slug | string? | yes | | | sort_on | string? | yes | | - | tags | [string]? | yes | | + | tag | [string]? | yes | | | type | string? | yes | | | uid | string? | yes | | | visible_facets_keys | [string]? | yes | | @@ -24572,20 +18654,8 @@ List of fields and validation values fro each. See example below or refer `Inven | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | aspect_ratio | string? | yes | | - | secure_url | string? | yes | | - | type | string? | yes | | - | url | string? | yes | | - - ---- - -#### [CollectionImageResponse](#CollectionImageResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | type | string? | yes | | - | url | string? | yes | | + | aspect_ratio | string | no | | + | url | string | no | | --- @@ -24626,7 +18696,7 @@ List of fields and validation values fro each. See example below or refer `Inven --- -#### [CollectionItemUpdateSchema](#CollectionItemUpdateSchema) +#### [CollectionItemUpdateSchemaV2](#CollectionItemUpdateSchemaV2) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | @@ -24634,7 +18704,6 @@ List of fields and validation values fro each. See example below or refer `Inven | allow_sort | boolean? | yes | | | items | [[CollectionItemSchemaV2](#CollectionItemSchemaV2)]? | yes | | | query | [[CollectionQuerySchemaV2](#CollectionQuerySchemaV2)]? | yes | | - | reset_items | boolean? | yes | | | type | string | no | | | visible_facets_keys | [string]? | yes | | @@ -24679,7 +18748,7 @@ List of fields and validation values fro each. See example below or refer `Inven | ---------- | ---- | -------- | ----------- | | attribute | string | no | The attribute of the collection query | | op | string | no | The operation to be performed on the attribute of the collection query | - | value | [string] | no | The value of the attribute of the collection query | + | value | [any] | no | The value of the attribute of the collection query | --- @@ -24690,7 +18759,7 @@ List of fields and validation values fro each. See example below or refer `Inven | ---------- | ---- | -------- | ----------- | | attribute | string | no | The attribute of the collection query | | op | string | no | The operation to be performed on the attribute of the collection query | - | value | [string] | no | | + | value | [any] | no | The value of the attribute of the collection query | --- @@ -24724,9 +18793,6 @@ List of fields and validation values fro each. See example below or refer `Inven | brand_id | number? | yes | | | brand_name | string? | yes | | | company_id | number? | yes | | - | id | number? | yes | | - | logo | string? | yes | | - | name | string? | yes | | | total_article | number? | yes | | @@ -24766,78 +18832,12 @@ List of fields and validation values fro each. See example below or refer `Inven | store_ids | [number] | no | | ---- - -#### [CompanySizes](#CompanySizes) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | currency | string? | yes | | - | is_active | boolean? | yes | | - | marked_price | number? | yes | | - | seller_identifier | string? | yes | | - | selling_price | number? | yes | | - | size_name | string? | yes | | - - ---- - -#### [CompanyValidation](#CompanyValidation) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | bank_ac_required | boolean? | yes | | - | gst_required | boolean? | yes | | - | verified | boolean? | yes | | - - ---- - -#### [CompanyVerificationResponse](#CompanyVerificationResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | name | string? | yes | | - | stats | [CompanyVerificationStats](#CompanyVerificationStats)? | yes | | - | uid | number? | yes | | - - ---- - -#### [CompanyVerificationStats](#CompanyVerificationStats) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | verified | number? | yes | | - - ---- - -#### [CompareFilter](#CompareFilter) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | data | [[FilterItem](#FilterItem)]? | yes | | - - ---- - -#### [ConditionItem](#ConditionItem) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | display | string? | yes | | - | key | string? | yes | | - - --- #### [ConfigErrorResponse](#ConfigErrorResponse) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | code | string? | yes | | - | errors | string? | yes | | | message | string | no | | @@ -24867,285 +18867,130 @@ List of fields and validation values fro each. See example below or refer `Inven | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | filter | [ConfigurationListingFilter](#ConfigurationListingFilter)? | yes | | - | sort | [ConfigurationListingSort](#ConfigurationListingSort)? | yes | | - - ---- - -#### [ConfigurationListingFilter](#ConfigurationListingFilter) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | allow_single | boolean | no | | - | attribute_config | [[ConfigurationListingFilterConfig](#ConfigurationListingFilterConfig)]? | yes | | - - ---- - -#### [ConfigurationListingFilterConfig](#ConfigurationListingFilterConfig) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | display_name | string? | yes | | - | is_active | boolean | no | | - | key | string | no | | - | logo | string? | yes | | - | name | string? | yes | | - | priority | number | no | | - | type | string | no | | - | value_config | [ConfigurationListingFilterValue](#ConfigurationListingFilterValue)? | yes | | - - ---- - -#### [ConfigurationListingFilterValue](#ConfigurationListingFilterValue) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | bucket_points | [[ConfigurationBucketPoints](#ConfigurationBucketPoints)]? | yes | | - | condition | string? | yes | | - | map | string? | yes | | - | map_values | [string]? | yes | | - | priority | [string]? | yes | | - | sort | string? | yes | | - | value | string? | yes | | - - ---- - -#### [ConfigurationListingSort](#ConfigurationListingSort) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | config | [[ConfigurationListingSortConfig](#ConfigurationListingSortConfig)]? | yes | | - | default_key | string | no | | - - ---- - -#### [ConfigurationListingSortConfig](#ConfigurationListingSortConfig) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | is_active | boolean | no | | - | key | string | no | | - | logo | string? | yes | | - | name | string? | yes | | - | priority | number | no | | - - ---- - -#### [ConfigurationProduct](#ConfigurationProduct) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | details_groups | [ConfigurationProductDetailsGroups](#ConfigurationProductDetailsGroups)? | yes | | - | similar | [ConfigurationProductSimilar](#ConfigurationProductSimilar)? | yes | | - | variant | [ConfigurationProductVariant](#ConfigurationProductVariant)? | yes | | - - ---- - -#### [ConfigurationProductConfig](#ConfigurationProductConfig) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | is_active | boolean | no | | - | key | string | no | | - | logo | string? | yes | | - | priority | number | no | | - | size | [ProductSize](#ProductSize)? | yes | | - | subtitle | string? | yes | | - | title | string? | yes | | - - ---- - -#### [ConfigurationProductDetailsAttribute](#ConfigurationProductDetailsAttribute) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | display_type | string? | yes | | - | is_active | boolean? | yes | | - | key | string? | yes | | - | name | string? | yes | | - | priority | number? | yes | | - | slug | string? | yes | | - - ---- - -#### [ConfigurationProductDetailsConfig](#ConfigurationProductDetailsConfig) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | attributes | [[ConfigurationProductDetailsAttribute](#ConfigurationProductDetailsAttribute)]? | yes | | - | is_active | boolean? | yes | | - | name | string? | yes | | - | priority | number? | yes | | - | slug | string? | yes | | - | template_slugs | [string]? | yes | | - - ---- - -#### [ConfigurationProductDetailsGroups](#ConfigurationProductDetailsGroups) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | config | [[ConfigurationProductDetailsConfig](#ConfigurationProductDetailsConfig)]? | yes | | - - ---- - -#### [ConfigurationProductSimilar](#ConfigurationProductSimilar) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | config | [[ConfigurationProductConfig](#ConfigurationProductConfig)]? | yes | | + | filter | [ConfigurationListingFilter](#ConfigurationListingFilter) | no | | + | sort | [ConfigurationListingSort](#ConfigurationListingSort) | no | | --- -#### [ConfigurationProductVariant](#ConfigurationProductVariant) +#### [ConfigurationListingFilter](#ConfigurationListingFilter) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | config | [[ConfigurationProductVariantConfig](#ConfigurationProductVariantConfig)]? | yes | | + | allow_single | boolean | no | | + | attribute_config | [[ConfigurationListingFilterConfig](#ConfigurationListingFilterConfig)]? | yes | | --- -#### [ConfigurationProductVariantConfig](#ConfigurationProductVariantConfig) +#### [ConfigurationListingFilterConfig](#ConfigurationListingFilterConfig) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | display_type | string | no | | + | display_name | string? | yes | | | is_active | boolean | no | | | key | string | no | | | logo | string? | yes | | - | name | string | no | | + | name | string? | yes | | | priority | number | no | | - | size | [ProductSize](#ProductSize) | no | | - - ---- - -#### [CreateAppPriceFactoryProduct](#CreateAppPriceFactoryProduct) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | brand | string? | yes | | - | item_id | number? | yes | | - | seller_identifier | string? | yes | | + | type | string | no | | + | value_config | [ConfigurationListingFilterValue](#ConfigurationListingFilterValue)? | yes | | --- -#### [CreateAppPriceFactoryProductBulkJobPollResponse](#CreateAppPriceFactoryProductBulkJobPollResponse) +#### [ConfigurationListingFilterValue](#ConfigurationListingFilterValue) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | created_by | [CreatedBy](#CreatedBy)? | yes | | - | created_on | any? | yes | | - | error_file | string? | yes | | - | failed_records | number? | yes | | - | modified_by | [CreatedBy](#CreatedBy)? | yes | | - | modified_on | any? | yes | | - | status | string? | yes | | - | success_records | number? | yes | | - | total_records | number? | yes | | + | bucket_points | [[ConfigurationBucketPoints](#ConfigurationBucketPoints)]? | yes | | + | condition | string? | yes | | + | map | string? | yes | | + | map_values | [string]? | yes | | + | priority | [string]? | yes | | + | sort | string? | yes | | + | value | string? | yes | | --- -#### [CreateAppPriceFactoryProductBulkJobRequest](#CreateAppPriceFactoryProductBulkJobRequest) +#### [ConfigurationListingSort](#ConfigurationListingSort) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | file_path | string? | yes | | - | file_type | string? | yes | | - | job_type | string? | yes | | + | config | [[ConfigurationListingSortConfig](#ConfigurationListingSortConfig)]? | yes | | + | default_key | string | no | | --- -#### [CreateAppPriceFactoryProductBulkJobResponse](#CreateAppPriceFactoryProductBulkJobResponse) +#### [ConfigurationListingSortConfig](#ConfigurationListingSortConfig) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | created_by | [CreatedBy](#CreatedBy)? | yes | | - | created_on | any? | yes | | - | job_id | string? | yes | | - | modified_by | [CreatedBy](#CreatedBy)? | yes | | - | modified_on | any? | yes | | - | status | string? | yes | | + | is_active | boolean | no | | + | key | string | no | | + | logo | string? | yes | | + | name | string? | yes | | + | priority | number | no | | --- -#### [CreateAppPriceFactoryProductRequest](#CreateAppPriceFactoryProductRequest) +#### [ConfigurationProduct](#ConfigurationProduct) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | items | [[CreateAppPriceFactoryProduct](#CreateAppPriceFactoryProduct)]? | yes | | + | similar | [ConfigurationProductSimilar](#ConfigurationProductSimilar) | no | | + | variant | [ConfigurationProductVariant](#ConfigurationProductVariant) | no | | --- -#### [CreateAppPriceFactoryProductResponse](#CreateAppPriceFactoryProductResponse) +#### [ConfigurationProductConfig](#ConfigurationProductConfig) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | brand | string? | yes | | - | category | string? | yes | | - | company_sizes | any? | yes | | - | factory_type_id | [string]? | yes | | - | item_code | string? | yes | | - | item_id | number? | yes | | - | item_name | string? | yes | | - | media | any? | yes | | - | sizes | any? | yes | | + | is_active | boolean | no | | + | key | string | no | | + | logo | string? | yes | | + | priority | number | no | | + | size | [ProductSize](#ProductSize)? | yes | | + | subtitle | string? | yes | | + | title | string? | yes | | --- -#### [CreateAppPriceFactoryProductsResponse](#CreateAppPriceFactoryProductsResponse) +#### [ConfigurationProductSimilar](#ConfigurationProductSimilar) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | items | [[CreateAppPriceFactoryProductResponse](#CreateAppPriceFactoryProductResponse)]? | yes | | + | config | [[ConfigurationProductConfig](#ConfigurationProductConfig)]? | yes | | --- -#### [CreateAppPriceFactoryRequest](#CreateAppPriceFactoryRequest) +#### [ConfigurationProductVariant](#ConfigurationProductVariant) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | code | string? | yes | | - | departments | [number]? | yes | | - | factory_type | string? | yes | | - | factory_type_ids | [string]? | yes | | - | is_active | boolean? | yes | | - | name | string? | yes | | + | config | [[ConfigurationProductVariantConfig](#ConfigurationProductVariantConfig)]? | yes | | --- -#### [CreateAppPriceFactoryResponse](#CreateAppPriceFactoryResponse) +#### [ConfigurationProductVariantConfig](#ConfigurationProductVariantConfig) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | code | string? | yes | | - | departments | [number]? | yes | | - | factory_type | string? | yes | | - | factory_type_ids | [string]? | yes | | - | id | string? | yes | | - | is_active | boolean? | yes | | - | name | string? | yes | | + | display_type | string | no | | + | is_active | boolean | no | | + | key | string | no | | + | logo | string? | yes | | + | name | string | no | | + | priority | number | no | | + | size | [ProductSize](#ProductSize) | no | | --- @@ -25155,7 +19000,6 @@ List of fields and validation values fro each. See example below or refer `Inven | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | | _custom_json | string? | yes | | - | action | [AutocompleteAction](#AutocompleteAction)? | yes | | | app_id | string? | yes | | | is_active | boolean? | yes | | | results | [[AutocompleteResult](#AutocompleteResult)]? | yes | | @@ -25170,9 +19014,7 @@ List of fields and validation values fro each. See example below or refer `Inven | ---------- | ---- | -------- | ----------- | | _custom_json | string? | yes | | | app_id | string? | yes | | - | is_active | boolean? | yes | | - | results | [[AutocompleteResult](#AutocompleteResult)]? | yes | | - | uid | string? | yes | | + | results | [string]? | yes | | | words | [string]? | yes | | @@ -25187,7 +19029,7 @@ List of fields and validation values fro each. See example below or refer `Inven | _schedule | [CollectionSchedule](#CollectionSchedule)? | yes | | | allow_facets | boolean? | yes | | | allow_sort | boolean? | yes | | - | app_id | string? | yes | | + | app_id | string | no | | | badge | [CollectionBadge](#CollectionBadge)? | yes | | | banners | [CollectionBanner](#CollectionBanner) | no | | | created_by | [UserInfo](#UserInfo)? | yes | | @@ -25219,65 +19061,6 @@ List of fields and validation values fro each. See example below or refer `Inven | username | string? | yes | | ---- - -#### [CreateMarketplaceOptinRequest](#CreateMarketplaceOptinRequest) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | brand_ids | [number]? | yes | | - | company_id | number? | yes | | - | enabled | boolean? | yes | | - | opt_level | number? | yes | | - | platform | string? | yes | | - | store_ids | [number]? | yes | | - - ---- - -#### [CreateMarketplaceOptinResponse](#CreateMarketplaceOptinResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | app_id | string? | yes | | - | brand_ids | [number]? | yes | | - | company_id | number? | yes | | - | created_by | [CreatedBy](#CreatedBy)? | yes | | - | enabled | boolean? | yes | | - | modified_by | [CreatedBy](#CreatedBy)? | yes | | - | opt_level | string? | yes | | - | platform | string? | yes | | - | store_ids | [number]? | yes | | - - ---- - -#### [CreateProductDownloadsDataResponse](#CreateProductDownloadsDataResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | _id | string? | yes | | - | created_by | [CreatedBy](#CreatedBy)? | yes | | - | created_on | string? | yes | | - | filters | [ProductDownloadFilters](#ProductDownloadFilters)? | yes | | - | modified_on | string? | yes | | - | notification_emails | [any]? | yes | | - | seller_id | number? | yes | | - | stats | [Stats](#Stats)? | yes | | - | status | string? | yes | | - | task_id | string? | yes | | - | type | string? | yes | | - - ---- - -#### [CreateProductDownloadsResponse](#CreateProductDownloadsResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | data | [CreateProductDownloadsDataResponse](#CreateProductDownloadsDataResponse)? | yes | | - - --- #### [CreateSearchConfigurationRequest](#CreateSearchConfigurationRequest) @@ -25317,34 +19100,6 @@ List of fields and validation values fro each. See example below or refer `Inven | words | [string]? | yes | | ---- - -#### [CreateSearchRerankRequest](#CreateSearchRerankRequest) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | application_id | string? | yes | | - | is_active | boolean? | yes | | - | ranking | [RerankingBoostItems](#RerankingBoostItems)? | yes | | - | words | [string]? | yes | | - - ---- - -#### [CreateSearchRerankResponse](#CreateSearchRerankResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | app_id | string? | yes | | - | created_by | [CreatedBy](#CreatedBy)? | yes | The user who created the search rerank. | - | created_on | string? | yes | | - | is_active | boolean? | yes | | - | modified_by | [CreatedBy](#CreatedBy)? | yes | The user who modified the search rerank. | - | modified_on | string? | yes | | - | ranking | [RerankingBoostItems](#RerankingBoostItems)? | yes | | - | words | [string]? | yes | | - - --- #### [CreateUpdateAppReturnConfig](#CreateUpdateAppReturnConfig) @@ -25372,8 +19127,8 @@ List of fields and validation values fro each. See example below or refer `Inven | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | articles | number? | yes | | - | products | number? | yes | | + | brand_distribution | [CatalogInsightBrand](#CatalogInsightBrand)? | yes | | + | data | [CrossSellingData](#CrossSellingData)? | yes | | --- @@ -25387,34 +19142,6 @@ List of fields and validation values fro each. See example below or refer `Inven | manufacturing_time_unit | string? | yes | | ---- - -#### [DataItem](#DataItem) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | compatible_units | [string]? | yes | | - | display | string? | yes | | - | filter_types | [string]? | yes | | - | key | string? | yes | | - - ---- - -#### [DataType](#DataType) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | app_id | string? | yes | | - | attributes | [[AttributeType](#AttributeType)]? | yes | | - | id | string? | yes | | - | is_active | boolean? | yes | | - | is_default | boolean? | yes | | - | name | string? | yes | | - | priority | number? | yes | | - | slug | string? | yes | | - - --- #### [DateMeta](#DateMeta) @@ -25465,16 +19192,6 @@ List of fields and validation values fro each. See example below or refer `Inven | success | boolean? | yes | | ---- - -#### [DeleteSearchRerankConfigurationResponse](#DeleteSearchRerankConfigurationResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | message | string? | yes | | - | success | boolean? | yes | | - - --- #### [Department](#Department) @@ -25569,9 +19286,11 @@ List of fields and validation values fro each. See example below or refer `Inven | _custom_json | string? | yes | | | _id | string? | yes | | | created_by | [UserDetail](#UserDetail)? | yes | User details of the creator of the document | + | created_on | string | no | Timestamp of the creation of the document | | is_active | boolean? | yes | Whether the department is currently active | | logo | string | no | The URL of the department's logo | | modified_by | [UserDetail](#UserDetail)? | yes | User details of the last modifier of the document | + | modified_on | string | no | Timestamp of the last modification of the document | | name | string | no | The name of the department | | priority_order | number | no | The priority order of the department | | slug | string | no | The unique slug identifier for the department | @@ -25595,115 +19314,47 @@ List of fields and validation values fro each. See example below or refer `Inven #### [DepartmentsResponse](#DepartmentsResponse) | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | items | [[GetDepartment](#GetDepartment)]? | yes | | - | page | [Page](#Page)? | yes | | - - ---- - -#### [DetailFilter](#DetailFilter) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | data | [[FilterItem](#FilterItem)]? | yes | | - | values | [DetailFilterValues](#DetailFilterValues)? | yes | | - - ---- - -#### [DetailFilterValues](#DetailFilterValues) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | display_type | [[DisplayType](#DisplayType)]? | yes | | - - ---- - -#### [DimensionResponse](#DimensionResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | height | number | no | The height dimension. | - | is_default | boolean | no | Indicates if it is the default dimension. | - | length | number | no | The length dimension. | - | unit | string | no | The unit of dimension. | - | width | number | no | The width dimension. | - - ---- - -#### [DimensionResponse1](#DimensionResponse1) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | height | number? | yes | | - | length | number? | yes | | - | unit | string? | yes | | - | width | number? | yes | | - - ---- - -#### [DisplayType](#DisplayType) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | display | string? | yes | | - | key | string? | yes | | - - ---- - -#### [Document](#Document) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | legal_name | string? | yes | | - | type | string | no | | - | url | string? | yes | | - | value | string | no | | - | verified | boolean? | yes | | + | ---------- | ---- | -------- | ----------- | + | items | [[GetDepartment](#GetDepartment)]? | yes | | + | page | [Page](#Page)? | yes | | --- -#### [EditAppPriceFactoryRequest](#EditAppPriceFactoryRequest) +#### [DimensionResponse](#DimensionResponse) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | code | string? | yes | | - | departments | [string]? | yes | | - | factory_type | string? | yes | | - | factory_type_ids | [number]? | yes | | - | is_active | boolean? | yes | | - | name | string? | yes | | + | height | number | no | The height dimension. | + | is_default | boolean | no | Indicates if it is the default dimension. | + | length | number | no | The length dimension. | + | unit | string | no | The unit of dimension. | + | width | number | no | The width dimension. | --- -#### [EditInventoryDataDownloadsResponse](#EditInventoryDataDownloadsResponse) +#### [DimensionResponse1](#DimensionResponse1) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | completed_on | string? | yes | | - | created_on | string? | yes | | - | modified_on | string? | yes | | - | notification_emails | [string]? | yes | | - | seller_id | number? | yes | | - | status | string? | yes | | - | task_id | string? | yes | | - | url | string? | yes | | + | height | number? | yes | | + | length | number? | yes | | + | unit | string? | yes | | + | width | number? | yes | | --- -#### [EditInventoryDownloadsResponse](#EditInventoryDownloadsResponse) +#### [Document](#Document) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | data | [EditInventoryDataDownloadsResponse](#EditInventoryDataDownloadsResponse)? | yes | | + | legal_name | string? | yes | | + | type | string | no | | + | url | string? | yes | | + | value | string | no | | + | verified | boolean? | yes | | --- @@ -25712,9 +19363,9 @@ List of fields and validation values fro each. See example below or refer `Inven | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | app_id | string? | yes | | + | app_id | string | no | | | config_id | string? | yes | | - | config_type | string? | yes | | + | config_type | string | no | | | id | string? | yes | | | listing | [GetCatalogConfigurationDetailsSchemaListing](#GetCatalogConfigurationDetailsSchemaListing)? | yes | | | product | [GetCatalogConfigurationDetailsProduct](#GetCatalogConfigurationDetailsProduct)? | yes | | @@ -25726,23 +19377,13 @@ List of fields and validation values fro each. See example below or refer `Inven | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | code | number? | yes | | + | code | string? | yes | | | error | string? | yes | | | message | string? | yes | | | meta | string? | yes | | | status | number? | yes | | ---- - -#### [ExportPatchRequest](#ExportPatchRequest) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | notification_emails | [string]? | yes | | - | status | string? | yes | | - - --- #### [FilerList](#FilerList) @@ -25753,50 +19394,24 @@ List of fields and validation values fro each. See example below or refer `Inven | value | string? | yes | | ---- - -#### [FilterItem](#FilterItem) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | display | string? | yes | | - | filter_types | [string]? | yes | | - | key | string? | yes | | - | units | [string]? | yes | | - - ---- - -#### [FilterResponse](#FilterResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | values | [[ValueItem](#ValueItem)]? | yes | | - - --- #### [GenderDetail](#GenderDetail) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | _id | string? | yes | | - | created_by | [CreatedBy](#CreatedBy)? | yes | Details of the user who created the attribute. | - | created_on | string? | yes | It is Date and time when the attribute was created. | | departments | [string]? | yes | | | description | string? | yes | | | details | [AttributeMasterDetails](#AttributeMasterDetails)? | yes | | | enabled_for_end_consumer | boolean? | yes | | | filters | [AttributeMasterFilter](#AttributeMasterFilter)? | yes | | + | id | string? | yes | | | is_nested | boolean? | yes | | | logo | string? | yes | | | meta | [AttributeMasterMeta](#AttributeMasterMeta)? | yes | | - | modified_by | [CreatedBy](#CreatedBy)? | yes | Details of the user who last modified the attribute. | - | modified_on | string? | yes | It is Date and time when the attribute was modified. | | name | string? | yes | | | schema | [AttributeMaster](#AttributeMaster)? | yes | | | slug | string? | yes | | - | variant | boolean? | yes | | --- @@ -25857,25 +19472,15 @@ List of fields and validation values fro each. See example below or refer `Inven | is_default | boolean? | yes | | ---- - -#### [GetAppPriceFactoryResponse](#GetAppPriceFactoryResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | items | [[AppPriceFactory](#AppPriceFactory)]? | yes | | - | page | [Page](#Page)? | yes | | - - --- #### [GetAutocompleteWordsData](#GetAutocompleteWordsData) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | + | _custom_json | string? | yes | | | app_id | string? | yes | | - | is_active | boolean? | yes | | - | results | [[AutocompleteResult](#AutocompleteResult)]? | yes | | + | results | [string]? | yes | | | uid | string? | yes | | | words | [string]? | yes | | @@ -25896,10 +19501,10 @@ List of fields and validation values fro each. See example below or refer `Inven | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | compare | [CompareFilter](#CompareFilter)? | yes | | - | detail | [DetailFilter](#DetailFilter)? | yes | | - | similar | [SimilarFilter](#SimilarFilter)? | yes | | - | variant | [VariantFilter](#VariantFilter)? | yes | | + | compare | string? | yes | | + | detail | string? | yes | | + | similar | string? | yes | | + | variant | string? | yes | | --- @@ -25997,13 +19602,12 @@ List of fields and validation values fro each. See example below or refer `Inven --- -#### [GetCollectionItemsResponseSchema](#GetCollectionItemsResponseSchema) +#### [GetCollectionItemsResponseSchemaV2](#GetCollectionItemsResponseSchemaV2) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | | items | [[ProductDetailV2](#ProductDetailV2)]? | yes | | - | page | [Page](#Page)? | yes | | - | sort_on | [[ProductSortOnv2](#ProductSortOnv2)]? | yes | | + | page | [Page1](#Page1)? | yes | | --- @@ -26055,20 +19659,10 @@ List of fields and validation values fro each. See example below or refer `Inven | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | condition | [[ConditionItem](#ConditionItem)]? | yes | | - | data | [[DataItem](#DataItem)] | no | | + | condition | [string]? | yes | | + | data | [string] | no | | | page | [Page](#Page)? | yes | | - | values | [GetConfigMetadataValues](#GetConfigMetadataValues)? | yes | | - - ---- - -#### [GetConfigMetadataValues](#GetConfigMetadataValues) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | sort | [[SortTypeItem](#SortTypeItem)]? | yes | | - | type | [[ValueTypeItem](#ValueTypeItem)]? | yes | | + | values | [string]? | yes | | --- @@ -26077,7 +19671,7 @@ List of fields and validation values fro each. See example below or refer `Inven | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | data | [[DataType](#DataType)] | no | | + | data | [string] | no | | | page | [PageResponseType](#PageResponseType) | no | | @@ -26152,16 +19746,6 @@ List of fields and validation values fro each. See example below or refer `Inven | page | [Page](#Page)? | yes | | ---- - -#### [GetListingConfigResponse](#GetListingConfigResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | data | [[ListingDataType](#ListingDataType)]? | yes | | - | page | [PageResponseType](#PageResponseType)? | yes | | - - --- #### [GetLocationSerializer](#GetLocationSerializer) @@ -26195,24 +19779,6 @@ List of fields and validation values fro each. See example below or refer `Inven | warnings | string? | yes | | ---- - -#### [GetMerchandisingRuleBoostAction](#GetMerchandisingRuleBoostAction) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | data | [[BoostAttribute](#BoostAttribute)]? | yes | | - - ---- - -#### [GetMerchandisingRuleBuryAction](#GetMerchandisingRuleBuryAction) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | data | [[BoostAttribute](#BoostAttribute)]? | yes | | - - --- #### [GetOptInPlatform](#GetOptInPlatform) @@ -26231,13 +19797,13 @@ List of fields and validation values fro each. See example below or refer `Inven | ---------- | ---- | -------- | ----------- | | choice | string | no | | | company_id | number? | yes | | - | created_by | [UserSerializer](#UserSerializer)? | yes | The user who created the product bundle. | + | created_by | string? | yes | | | created_on | string? | yes | | | id | string? | yes | | | is_active | boolean | no | | | logo | string? | yes | | | meta | string? | yes | | - | modified_by | [UserSerializer](#UserSerializer)? | yes | The user who created the product bundle. | + | modified_by | string? | yes | | | modified_on | string? | yes | | | name | string | no | | | page_visibility | [string]? | yes | | @@ -26274,23 +19840,6 @@ List of fields and validation values fro each. See example below or refer `Inven | slug | string? | yes | | ---- - -#### [GetProductDownloadsResponse](#GetProductDownloadsResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | completed_on | string? | yes | | - | created_by | [CreatedBy](#CreatedBy)? | yes | | - | created_on | string? | yes | | - | id | string? | yes | | - | modified_on | string? | yes | | - | seller_id | number? | yes | | - | status | string? | yes | | - | task_id | string? | yes | | - | url | string? | yes | | - - --- #### [GetProducts](#GetProducts) @@ -26310,244 +19859,119 @@ List of fields and validation values fro each. See example below or refer `Inven --- -#### [GetProductTemplateSlugItems](#GetProductTemplateSlugItems) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | attributes | [string]? | yes | | - | categories | [string]? | yes | | - | departments | [string]? | yes | | - | description | string? | yes | | - | id | string? | yes | | - | is_active | boolean? | yes | | - | is_archived | boolean? | yes | | - | is_expirable | boolean? | yes | | - | is_physical | boolean? | yes | | - | logo | string? | yes | | - | name | string? | yes | | - | slug | string? | yes | | - | tag | string? | yes | | - - ---- - -#### [GetProductTemplateSlugResponse](#GetProductTemplateSlugResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | items | [[GetProductTemplateSlugItems](#GetProductTemplateSlugItems)]? | yes | | - | page | [Page](#Page)? | yes | | - - ---- - -#### [GetQueryFiltersResponse](#GetQueryFiltersResponse) +#### [GetQueryFiltersKeysResponse](#GetQueryFiltersKeysResponse) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | filters | [[ProductFilters](#ProductFilters)]? | yes | | - | operators | [String: string]? | yes | | + | filters | [[ProductFiltersKeysOnly](#ProductFiltersKeysOnly)]? | yes | | + | operators | [String: string] | no | | | sort_on | [[ProductSortOn](#ProductSortOn)]? | yes | | --- -#### [GetSearchConfigurationResponse](#GetSearchConfigurationResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | _id | string? | yes | The id of the search configuration. | - | application_id | string | no | The application id where custom search configuration is set | - | company_id | number | no | The company id where custom search configuration is set | - | created_by | [UserSerializer](#UserSerializer)? | yes | The user who created the search configuration. | - | created_on | string? | yes | The date and time when the search configuration was created. | - | is_proximity_enabled | boolean? | yes | Flag indicating if proximity search is enabled for this attribute. | - | modified_by | [UserSerializer](#UserSerializer)? | yes | The user who modified the search configuration. | - | modified_on | string? | yes | The date and time when the search configuration was last modified. | - | proximity | number? | yes | Proximity distance configuration | - | searchable_attributes | [[SearchableAttribute](#SearchableAttribute)]? | yes | The searchable attributes defined on the application. | - - ---- - -#### [GetSearchRerankDetailResponse](#GetSearchRerankDetailResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | app_id | string? | yes | | - | created_by | [CreatedBy](#CreatedBy)? | yes | | - | created_on | string? | yes | | - | id | string? | yes | | - | is_active | boolean? | yes | | - | modified_by | [CreatedBy](#CreatedBy)? | yes | | - | modified_on | string? | yes | | - | ranking | [RerankingBoostItems](#RerankingBoostItems)? | yes | | - | words | [string]? | yes | | - - ---- - -#### [GetSearchRerankItemResponse](#GetSearchRerankItemResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | app_id | string? | yes | | - | created_by | [CreatedBy](#CreatedBy)? | yes | The user who created the search rerank. | - | created_on | string? | yes | | - | id | string? | yes | | - | is_active | boolean? | yes | | - | modified_by | [CreatedBy](#CreatedBy)? | yes | The user who modified the search rerank. | - | modified_on | string? | yes | | - | ranking | [RerankingBoostItems](#RerankingBoostItems)? | yes | | - | words | [string]? | yes | | - - ---- - -#### [GetSearchRerankResponse](#GetSearchRerankResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | items | [[GetSearchRerankItemResponse](#GetSearchRerankItemResponse)]? | yes | | - | page | [PageResponse1](#PageResponse1)? | yes | | - - ---- - -#### [GetSearchWordsData](#GetSearchWordsData) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | _custom_json | string? | yes | | - | app_id | string? | yes | | - | is_active | boolean? | yes | | - | query | string? | yes | | - | result | string? | yes | | - | sort_on | string? | yes | | - | uid | string? | yes | | - | words | [string]? | yes | | - - ---- - -#### [GetSearchWordsDetailResponse](#GetSearchWordsDetailResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | items | [GetSearchWordsData](#GetSearchWordsData)? | yes | | - | page | [Page](#Page)? | yes | | - - ---- - -#### [GetSearchWordsResponse](#GetSearchWordsResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | items | [[GetSearchWordsData](#GetSearchWordsData)]? | yes | | - | page | [Page](#Page)? | yes | | - - ---- - -#### [GlobalValidation](#GlobalValidation) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | definitions | string? | yes | | - | description | string? | yes | | - | properties | [Properties](#Properties)? | yes | | - | required | [string]? | yes | | - | title | string? | yes | | - | type | string? | yes | | - - ---- - -#### [GTIN](#GTIN) +#### [GetQueryFiltersResponse](#GetQueryFiltersResponse) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | gtin_type | string | no | | - | gtin_value | string | no | | - | primary | boolean? | yes | | + | filters | [[ProductFilters](#ProductFilters)]? | yes | | + | operators | [String: string] | no | | + | sort_on | [[ProductSortOn](#ProductSortOn)]? | yes | | --- -#### [Guide](#Guide) +#### [GetQueryFiltersValuesResponse](#GetQueryFiltersValuesResponse) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | meta | [Meta](#Meta)? | yes | | + | page | [Page](#Page) | no | | + | values | [[ProductFiltersValue](#ProductFiltersValue)] | no | | --- -#### [GuideHeaders](#GuideHeaders) +#### [GetSearchConfigurationResponse](#GetSearchConfigurationResponse) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | col_1 | [Header](#Header)? | yes | | - | col_2 | [Header](#Header)? | yes | | + | application_id | string | no | The application id where custom search configuration is set | + | company_id | number | no | The company id where custom search configuration is set | + | created_by | [UserSerializer](#UserSerializer)? | yes | The user who created the search configuration. | + | created_on | string? | yes | The date and time when the search configuration was created. | + | is_proximity_enabled | boolean? | yes | Flag indicating if proximity search is enabled for this attribute. | + | modified_by | [UserSerializer](#UserSerializer)? | yes | The user who modified the search configuration. | + | modified_on | string? | yes | The date and time when the search configuration was last modified. | + | proximity | number? | yes | Proximity distance configuration | + | searchable_attributes | [[SearchableAttribute](#SearchableAttribute)]? | yes | The searchable attributes defined on the application. | --- -#### [GuideValues](#GuideValues) +#### [GetSearchWordsData](#GetSearchWordsData) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | col_1 | string? | yes | | - | col_2 | string? | yes | | + | _custom_json | string? | yes | | + | app_id | string? | yes | | + | is_active | boolean? | yes | | + | result | string? | yes | | + | uid | string? | yes | | + | words | [string]? | yes | | --- -#### [Header](#Header) +#### [GetSearchWordsDetailResponse](#GetSearchWordsDetailResponse) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | convertable | boolean? | yes | | - | value | string? | yes | | + | items | [GetSearchWordsData](#GetSearchWordsData)? | yes | | + | page | [Page](#Page)? | yes | | --- -#### [HideAttribute](#HideAttribute) +#### [GetSearchWordsResponse](#GetSearchWordsResponse) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | name | string? | yes | | - | uid | number? | yes | | + | items | [[GetSearchWordsData](#GetSearchWordsData)]? | yes | | + | page | [Page](#Page)? | yes | | --- -#### [HideAttributeRequest](#HideAttributeRequest) +#### [GlobalValidation](#GlobalValidation) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | action | string? | yes | | - | item_id | number? | yes | | + | definitions | string? | yes | | + | description | string? | yes | | + | properties | [Properties](#Properties)? | yes | | + | required | [string]? | yes | | + | title | string? | yes | | + | type | string? | yes | | --- -#### [HideRequest](#HideRequest) +#### [GTIN](#GTIN) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | data | [[HideAttributeRequest](#HideAttributeRequest)]? | yes | | + | gtin_type | string | no | | + | gtin_value | string | no | | + | primary | boolean? | yes | | --- -#### [HideResponse](#HideResponse) +#### [Guide](#Guide) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | data | [[HideAttribute](#HideAttribute)]? | yes | | + | meta | [Meta](#Meta)? | yes | | --- @@ -26577,7 +20001,7 @@ List of fields and validation values fro each. See example below or refer `Inven | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | | items | [[HSNDataInsertV2](#HSNDataInsertV2)]? | yes | | - | page | [PageResponse1](#PageResponse1)? | yes | | + | page | [PageResponse](#PageResponse)? | yes | | --- @@ -26626,13 +20050,12 @@ List of fields and validation values fro each. See example below or refer `Inven | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | | country_code | string | no | Country code. | - | created_by | [CreatedBy](#CreatedBy)? | yes | Details of the user who created the HSN data. | + | created_by | string? | yes | Details of the user who created the HSN data. | | created_on | string? | yes | Date and time when the HSN data was created. | | description | string | no | Description of the HSN data. | | hsn_code | string | no | HSN code. | | hsn_code_id | string? | yes | Unique identifier of the HSN code. | - | id | string? | yes | ID of the HSN. | - | modified_by | [CreatedBy](#CreatedBy)? | yes | Details of the user who last modified the HSN data. | + | modified_by | string? | yes | Details of the user who last modified the HSN data. | | modified_on | string? | yes | Date and time when the HSN data was last modified. | | reporting_hsn | string | no | HSN code. | | taxes | [[TaxSlab](#TaxSlab)] | no | List of tax slabs. | @@ -26680,26 +20103,6 @@ List of fields and validation values fro each. See example below or refer `Inven | portrait | [BannerImage](#BannerImage)? | yes | | ---- - -#### [IntegrationType](#IntegrationType) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | inventory | string? | yes | | - | order | string? | yes | | - - ---- - -#### [InventoryBulkJob](#InventoryBulkJob) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | company_id | string? | yes | The ID of the company. | - | file_path | string? | yes | The file path of the company. | - - --- #### [InventoryBulkRequest](#InventoryBulkRequest) @@ -26712,15 +20115,6 @@ List of fields and validation values fro each. See example below or refer `Inven | user | string? | yes | | ---- - -#### [InventoryBulkResponse](#InventoryBulkResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | batch_id | string? | yes | | - - --- #### [InventoryConfig](#InventoryConfig) @@ -26728,7 +20122,7 @@ List of fields and validation values fro each. See example below or refer `Inven | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | | data | [[FilerList](#FilerList)]? | yes | | - | multivalue | boolean? | yes | | + | multivalues | boolean? | yes | | --- @@ -26769,39 +20163,6 @@ List of fields and validation values fro each. See example below or refer `Inven | to_date | string? | yes | The modified on date till when the data needs to be exported. | ---- - -#### [InventoryExportFiltersResponse](#InventoryExportFiltersResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | brand_ids | [number]? | yes | | - | store_ids | [number]? | yes | | - - ---- - -#### [InventoryExportItem](#InventoryExportItem) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | _id | string? | yes | | - | brand | [number]? | yes | | - | completed_on | string? | yes | | - | created_by | [CreatedBy](#CreatedBy)? | yes | | - | created_on | string? | yes | | - | modified_on | string? | yes | | - | notification_emails | [string]? | yes | | - | seller_id | number? | yes | | - | stats | string? | yes | | - | status | string? | yes | | - | store | [number]? | yes | | - | task_id | string? | yes | | - | trigger_on | string? | yes | | - | type | string? | yes | | - | url | string? | yes | | - - --- #### [InventoryExportJob](#InventoryExportJob) @@ -26818,65 +20179,13 @@ List of fields and validation values fro each. See example below or refer `Inven | url | string? | yes | URL odf the exported file. | ---- - -#### [InventoryExportJobList](#InventoryExportJobList) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | completed_on | string? | yes | | - | created_by | [CreatedBy](#CreatedBy)? | yes | | - | created_on | string? | yes | | - | filters | [InventoryExportJobListFilters](#InventoryExportJobListFilters)? | yes | | - | id | string? | yes | | - | modified_on | string? | yes | | - | notification_emails | [string]? | yes | | - | seller_id | number? | yes | | - | stats | [InventoryExportJobListStats](#InventoryExportJobListStats)? | yes | | - | status | string? | yes | | - | task_id | string? | yes | | - | type | string? | yes | | - | url | string? | yes | | - - ---- - -#### [InventoryExportJobListFilters](#InventoryExportJobListFilters) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | brand_ids | [number]? | yes | | - | brands | [string]? | yes | | - | store_ids | [number]? | yes | | - | stores | [string]? | yes | | - - --- #### [InventoryExportJobListResponse](#InventoryExportJobListResponse) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | items | [[InventoryExportJobList](#InventoryExportJobList)]? | yes | | - - ---- - -#### [InventoryExportJobListStats](#InventoryExportJobListStats) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | success | number? | yes | | - | total | number? | yes | | - - ---- - -#### [InventoryExportJobResponse](#InventoryExportJobResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | items | [[InventoryExportItem](#InventoryExportItem)]? | yes | | + | items | [InventoryJobDetailResponse](#InventoryJobDetailResponse) | no | This is the list/history of all the jobs. | --- @@ -26907,19 +20216,14 @@ List of fields and validation values fro each. See example below or refer `Inven | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | _id | string? | yes | | - | brand | [number]? | yes | | - | created_by | [CreatedBy](#CreatedBy)? | yes | The user that created the job. | + | created_by | string? | yes | The user that created the job. | | created_on | string? | yes | Creation datetime of the job | - | filters | [InventoryExportFiltersResponse](#InventoryExportFiltersResponse)? | yes | | + | filters | string? | yes | The filters that needs to be exported. | | modified_on | string? | yes | Modification date of the job | | notification_emails | [string]? | yes | The notification emails for the job. | | seller_id | number | no | The seller id that needs to be exported. | - | stats | [Stats](#Stats)? | yes | | | status | string? | yes | The status of the job. | - | store | [number]? | yes | | | task_id | string | no | The task id of the job. | - | trigger_on | string? | yes | | | type | string? | yes | The type of file that needs to be exported. | @@ -26931,7 +20235,6 @@ List of fields and validation values fro each. See example below or refer `Inven | ---------- | ---- | -------- | ----------- | | errors | string? | yes | It is the error message of the inventory error response. | | message | string | no | It is the message of the activity performed. | - | reason_code | number? | yes | It is the reason code of the inventory error response. | --- @@ -27036,6 +20339,7 @@ List of fields and validation values fro each. See example below or refer `Inven | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | + | company_id | number | no | The ID of the company. | | meta | string? | yes | Additional metadata for the inventory request. | | payload | [[InventoryPayload](#InventoryPayload)]? | yes | The list of inventory payloads. | @@ -27163,8 +20467,7 @@ List of fields and validation values fro each. See example below or refer `Inven | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | | items | [[InventoryResponseItem](#InventoryResponseItem)]? | yes | | - | message | string? | yes | It is the success message of the inventory update. | - | success | boolean? | yes | It is the success message of the inventory update. | + | message | string | no | It is the success message of the inventory update. | --- @@ -27271,7 +20574,7 @@ List of fields and validation values fro each. See example below or refer `Inven | images | [string]? | yes | | | item_code | string? | yes | | | name | string? | yes | | - | price | [ProductPriceRangeSchema](#ProductPriceRangeSchema)? | yes | | + | price | string? | yes | | | quantity | number? | yes | | | short_description | string? | yes | | | sizes | [string]? | yes | | @@ -27279,46 +20582,14 @@ List of fields and validation values fro each. See example below or refer `Inven | uid | number? | yes | | ---- - -#### [ListingDataType](#ListingDataType) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | allow_single | boolean? | yes | | - | app_id | string? | yes | | - | id | string? | yes | | - | is_active | boolean? | yes | | - | is_default | boolean? | yes | | - | key | string? | yes | | - | logo | string? | yes | | - | name | string? | yes | | - | priority | number? | yes | | - | type | string? | yes | | - | value_config | [ListingValueConfigType](#ListingValueConfigType)? | yes | | - - ---- - -#### [ListingValueConfigType](#ListingValueConfigType) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | bucket_points | [any]? | yes | | - | condition | string? | yes | | - | map | string? | yes | | - | sort | string? | yes | | - | value | string? | yes | | - - --- #### [ListSizeGuide](#ListSizeGuide) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | items | [[SizeGuideResponse](#SizeGuideResponse)]? | yes | | - | page | [Page](#Page)? | yes | | + | items | [string]? | yes | | + | page | string? | yes | | --- @@ -27349,7 +20620,6 @@ List of fields and validation values fro each. See example below or refer `Inven | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | filters | [string]? | yes | | | items | [[GetLocationSerializer](#GetLocationSerializer)]? | yes | | | page | [Page](#Page)? | yes | | @@ -27375,16 +20645,6 @@ List of fields and validation values fro each. See example below or refer `Inven | minute | number? | yes | | ---- - -#### [LocationValidation](#LocationValidation) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | gst_required | boolean? | yes | | - | stage | string? | yes | | - - --- #### [Logo](#Logo) @@ -27397,17 +20657,6 @@ List of fields and validation values fro each. See example below or refer `Inven | url | string? | yes | | ---- - -#### [Manager](#Manager) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | email | string? | yes | | - | mobile_no | [MobileNo](#MobileNo)? | yes | | - | name | string? | yes | | - - --- #### [ManufacturerResponse](#ManufacturerResponse) @@ -27441,10 +20690,10 @@ List of fields and validation values fro each. See example below or refer `Inven | brand_ids | [number]? | yes | | | company_id | number? | yes | | | created_by | [CreatedBy](#CreatedBy)? | yes | | - | created_on | string? | yes | | + | created_on | any? | yes | | | enabled | boolean? | yes | | | modified_by | [CreatedBy](#CreatedBy)? | yes | | - | modified_on | string? | yes | | + | modified_on | any? | yes | | | opt_level | string? | yes | | | platforms | string? | yes | | | store_ids | [number]? | yes | | @@ -27483,60 +20732,15 @@ List of fields and validation values fro each. See example below or refer `Inven | url | string? | yes | | ---- - -#### [MerchandiseQueryResponse](#MerchandiseQueryResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | merchandising_rule_id | string? | yes | | - | message | string? | yes | | - - ---- - -#### [MerchandisingRuleQuery](#MerchandisingRuleQuery) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | condition | string? | yes | | - | search_query | string? | yes | | - | synonyms | string? | yes | | - - ---- - -#### [MerchandisingRuleQueryPost](#MerchandisingRuleQueryPost) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | actions | [string]? | yes | | - | query | [MerchandisingRuleQuery](#MerchandisingRuleQuery)? | yes | | - | query_condition | string? | yes | | - | zones | [string]? | yes | | - - ---- - -#### [MerchandisingRulesList](#MerchandisingRulesList) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | actions | [string]? | yes | | - | query | [MerchandisingRuleQuery](#MerchandisingRuleQuery)? | yes | | - | rule_id | string? | yes | | - | zones | [string]? | yes | | - - --- #### [Meta](#Meta) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | headers | [GuideHeaders](#GuideHeaders)? | yes | | + | headers | string? | yes | | | unit | string? | yes | | - | values | [[GuideValues](#GuideValues)]? | yes | | + | values | [string]? | yes | | --- @@ -27609,16 +20813,6 @@ List of fields and validation values fro each. See example below or refer `Inven | title | string? | yes | | ---- - -#### [MobileNo](#MobileNo) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | country_code | number? | yes | | - | number | string? | yes | | - - --- #### [MOQData](#MOQData) @@ -27646,58 +20840,18 @@ List of fields and validation values fro each. See example below or refer `Inven | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | unit | string? | yes | | - | value | number? | yes | | - - ---- - -#### [NextSchedule](#NextSchedule) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | end | string? | yes | | - | start | string? | yes | | - - ---- - -#### [OperatorsResponse](#OperatorsResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | btw | string? | yes | | - | gt | string? | yes | | - | gte | string? | yes | | - | lt | string? | yes | | - | lte | string? | yes | | - | nin | string? | yes | | - - ---- - -#### [OptinAddress](#OptinAddress) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | address1 | string? | yes | | - | city | string? | yes | | - | country | string? | yes | | - | country_code | string? | yes | | - | latitude | number? | yes | | - | longitude | number? | yes | | - | pincode | string? | yes | | - | state | string? | yes | | + | unit | string? | yes | | + | value | number? | yes | | --- -#### [OptinBusinessCountryInfo](#OptinBusinessCountryInfo) +#### [NextSchedule](#NextSchedule) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | country | string? | yes | | - | country_code | string? | yes | | + | end | string? | yes | | + | start | string? | yes | | --- @@ -27716,17 +20870,10 @@ List of fields and validation values fro each. See example below or refer `Inven | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | address | [OptinAddress](#OptinAddress)? | yes | | - | brands | [number]? | yes | | - | business_country_info | [OptinBusinessCountryInfo](#OptinBusinessCountryInfo)? | yes | | - | business_info | string? | yes | | | business_type | string? | yes | | - | document | [OptinDocument](#OptinDocument)? | yes | | + | company_type | string? | yes | | | name | string? | yes | | - | notification_emails | [string]? | yes | | - | stage | string? | yes | | | uid | number? | yes | | - | warnings | string? | yes | | --- @@ -27740,18 +20887,6 @@ List of fields and validation values fro each. See example below or refer `Inven | store | number? | yes | | ---- - -#### [OptinDocument](#OptinDocument) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | legal_name | string? | yes | | - | type | string? | yes | | - | value | string? | yes | | - | verified | boolean? | yes | | - - --- #### [OptInPostRequest](#OptInPostRequest) @@ -27787,7 +20922,6 @@ List of fields and validation values fro each. See example below or refer `Inven | is_gift | boolean? | yes | | | moq | [MOQData](#MOQData)? | yes | | | seo | [SEOData](#SEOData)? | yes | | - | size_promotion_threshold | string? | yes | | --- @@ -27822,16 +20956,6 @@ List of fields and validation values fro each. See example below or refer `Inven | variant | string? | yes | | ---- - -#### [PageAction](#PageAction) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | page | [ActionObject](#ActionObject)? | yes | | - | type | string? | yes | | - - --- #### [PageResponse](#PageResponse) @@ -27871,72 +20995,6 @@ List of fields and validation values fro each. See example below or refer `Inven | total_count | number | no | | ---- - -#### [PatchProductDownloadsDataResponse](#PatchProductDownloadsDataResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | completed_on | string? | yes | | - | created_by | [CreatedBy](#CreatedBy)? | yes | | - | created_on | string? | yes | | - | modified_on | string? | yes | | - | notification_emails | [string]? | yes | | - | seller_id | number? | yes | | - | status | string? | yes | | - | task_id | string? | yes | | - | url | string? | yes | | - - ---- - -#### [PatchProductDownloadsResponse](#PatchProductDownloadsResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | data | [PatchProductDownloadsDataResponse](#PatchProductDownloadsDataResponse)? | yes | | - - ---- - -#### [PinItem](#PinItem) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | name | string? | yes | | - | position | number? | yes | | - | uid | number? | yes | | - - ---- - -#### [PinItemRequest](#PinItemRequest) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | action | string? | yes | | - | item_id | number? | yes | | - | position | number? | yes | | - - ---- - -#### [PinRequest](#PinRequest) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | action_value | [[PinItemRequest](#PinItemRequest)]? | yes | | - - ---- - -#### [PinResponse](#PinResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | data | [[PinItem](#PinItem)]? | yes | | - - --- #### [Price](#Price) @@ -27975,20 +21033,6 @@ List of fields and validation values fro each. See example below or refer `Inven | transfer | number? | yes | | ---- - -#### [PriceFactorySizes](#PriceFactorySizes) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | currency | string? | yes | | - | is_active | boolean? | yes | | - | marked_price | number? | yes | | - | seller_identifier | string? | yes | | - | selling_price | number? | yes | | - | size_name | string? | yes | | - - --- #### [PriceMeta](#PriceMeta) @@ -28003,16 +21047,6 @@ List of fields and validation values fro each. See example below or refer `Inven | updated_at | string? | yes | The date and time of the last update. | ---- - -#### [PriceRange](#PriceRange) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | max | number? | yes | | - | min | number? | yes | | - - --- #### [ProdcutTemplateCategoriesResponse](#ProdcutTemplateCategoriesResponse) @@ -28108,11 +21142,9 @@ List of fields and validation values fro each. See example below or refer `Inven | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | _custom_json | string? | yes | | - | action | [PageAction](#PageAction)? | yes | | - | logo | string? | yes | | + | action | [Action](#Action)? | yes | | + | logo | [Media](#Media)? | yes | | | name | string? | yes | | - | type | string? | yes | | | uid | number? | yes | | @@ -28162,24 +21194,6 @@ List of fields and validation values fro each. See example below or refer `Inven | page | [Page](#Page)? | yes | | ---- - -#### [ProductBulkResponse](#ProductBulkResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | batch_id | string? | yes | | - - ---- - -#### [ProductBundleCreateErrorResponse](#ProductBundleCreateErrorResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | error | string? | yes | | - - --- #### [ProductBundleItem](#ProductBundleItem) @@ -28201,7 +21215,7 @@ List of fields and validation values fro each. See example below or refer `Inven | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | | choice | string | no | | - | company_id | string? | yes | | + | company_id | number? | yes | | | created_by | string? | yes | | | created_on | string? | yes | | | is_active | boolean | no | | @@ -28223,7 +21237,7 @@ List of fields and validation values fro each. See example below or refer `Inven | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | | choice | string | no | | - | company_id | string? | yes | | + | company_id | number? | yes | | | is_active | boolean | no | | | logo | string? | yes | | | meta | string? | yes | | @@ -28283,7 +21297,7 @@ List of fields and validation values fro each. See example below or refer `Inven | return_config | [ReturnConfig](#ReturnConfig) | no | | | short_description | string? | yes | | | size_guide | string? | yes | | - | sizes | [[ProductCreateUpdateSizesSchema](#ProductCreateUpdateSizesSchema)] | no | | + | sizes | [string] | no | | | slug | string | no | | | tags | [string]? | yes | | | tax_identifier | [TaxIdentifier](#TaxIdentifier) | no | | @@ -28296,29 +21310,6 @@ List of fields and validation values fro each. See example below or refer `Inven | variants | string? | yes | | ---- - -#### [ProductCreateUpdateSizesSchema](#ProductCreateUpdateSizesSchema) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | _custom_json | string? | yes | | - | currency | string? | yes | | - | identifiers | [[GTIN](#GTIN)]? | yes | | - | item_dimensions_unit_of_measure | string? | yes | | - | item_height | number? | yes | | - | item_length | number? | yes | | - | item_weight | number? | yes | | - | item_weight_unit_of_measure | string? | yes | | - | item_width | number? | yes | | - | name | string? | yes | | - | price | number? | yes | | - | price_effective | number? | yes | | - | price_transfer | number? | yes | | - | size | string? | yes | | - | track_inventory | boolean? | yes | | - - --- #### [ProductDetail](#ProductDetail) @@ -28390,17 +21381,6 @@ List of fields and validation values fro each. See example below or refer `Inven | uid | number? | yes | | ---- - -#### [ProductDownloadFilters](#ProductDownloadFilters) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | brands | [string] | no | | - | catalogue_types | [string] | no | | - | templates | [string] | no | | - - --- #### [ProductDownloadsResponse](#ProductDownloadsResponse) @@ -28433,6 +21413,15 @@ List of fields and validation values fro each. See example below or refer `Inven | operators | [string]? | yes | | +--- + +#### [ProductFiltersKeysOnly](#ProductFiltersKeysOnly) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | key | [ProductFiltersKey](#ProductFiltersKey) | no | | + + --- #### [ProductFiltersValue](#ProductFiltersValue) @@ -28450,28 +21439,7 @@ List of fields and validation values fro each. See example below or refer `Inven | query_format | string? | yes | | | selected_max | number? | yes | | | selected_min | number? | yes | | - | value | string | no | | - - ---- - -#### [ProductListingAction](#ProductListingAction) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | page | [ProductListingActionPage](#ProductListingActionPage)? | yes | | - | type | string? | yes | | - - ---- - -#### [ProductListingActionPage](#ProductListingActionPage) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | params | string? | yes | | - | query | string? | yes | | - | type | string? | yes | | + | value | any | no | | --- @@ -28480,13 +21448,8 @@ List of fields and validation values fro each. See example below or refer `Inven | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | _custom_meta | [string]? | yes | | - | action | [PageAction](#PageAction)? | yes | | - | all_company_ids | [number]? | yes | | | attributes | string? | yes | | | brand | [ProductBrand](#ProductBrand)? | yes | | - | categories | [string]? | yes | | - | collections | [string]? | yes | | | color | string? | yes | | | description | string? | yes | | | discount | string? | yes | | @@ -28494,8 +21457,6 @@ List of fields and validation values fro each. See example below or refer `Inven | has_variant | boolean? | yes | | | highlights | [string]? | yes | | | image_nature | string? | yes | | - | is_custom_order | boolean? | yes | | - | is_tryout | boolean? | yes | | | item_code | string? | yes | | | item_type | string? | yes | | | medias | [[Media](#Media)]? | yes | | @@ -28545,17 +21506,6 @@ List of fields and validation values fro each. See example below or refer `Inven | page | [Page](#Page)? | yes | | ---- - -#### [ProductPriceRangeSchema](#ProductPriceRangeSchema) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | currency | string? | yes | | - | effective | [PriceRange](#PriceRange)? | yes | | - | marked | [PriceRange](#PriceRange)? | yes | | - - --- #### [ProductPublish](#ProductPublish) @@ -28620,7 +21570,7 @@ List of fields and validation values fro each. See example below or refer `Inven | attributes | string? | yes | | | brand | [Brand](#Brand)? | yes | | | brand_uid | number? | yes | | - | category | [CategoryProduct](#CategoryProduct)? | yes | | + | category | string? | yes | | | category_slug | string? | yes | | | category_uid | number? | yes | | | color | string? | yes | | @@ -28714,22 +21664,7 @@ List of fields and validation values fro each. See example below or refer `Inven | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | display | string? | yes | | - | is_selected | boolean? | yes | | - | logo | string? | yes | | - | name | string? | yes | | - | value | string? | yes | | - - ---- - -#### [ProductSortOnv2](#ProductSortOnv2) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | display | string? | yes | | | is_selected | boolean? | yes | | - | logo | string? | yes | | | name | string? | yes | | | value | string? | yes | | @@ -28751,17 +21686,16 @@ List of fields and validation values fro each. See example below or refer `Inven | ---------- | ---- | -------- | ----------- | | attributes | [string]? | yes | | | categories | [string]? | yes | | - | created_by | [CreatedBy](#CreatedBy)? | yes | | + | created_by | string? | yes | | | created_on | string? | yes | | | departments | [string]? | yes | | | description | string? | yes | | - | id | string? | yes | | | is_active | boolean? | yes | | | is_archived | boolean? | yes | | | is_expirable | boolean | no | | | is_physical | boolean | no | | | logo | string? | yes | | - | modified_by | [CreatedBy](#CreatedBy)? | yes | | + | modified_by | string? | yes | | | modified_on | string? | yes | | | name | string? | yes | | | slug | string | no | | @@ -28801,29 +21735,15 @@ List of fields and validation values fro each. See example below or refer `Inven | completed_on | string? | yes | Completion datetime of the job | | created_by | [UserInfo1](#UserInfo1)? | yes | The user that created the job. | | filters | string? | yes | The filters that needs to be exported. | - | id | string? | yes | | | modified_on | string? | yes | Modification date of the job | | notification_emails | [string]? | yes | The notification emails for the job. | | seller_id | number | no | The seller id that needs to be exported. | | status | string? | yes | The status of the job. | | task_id | string | no | The task id of the job. | - | template_tags | string? | yes | | - | trigger_on | string? | yes | | | type | string? | yes | The type of file that needs to be exported. | | url | string? | yes | The filters that needs to be exported. | ---- - -#### [ProductValidation](#ProductValidation) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | gated_category_applicable | boolean? | yes | | - | imageless_products | boolean? | yes | | - | stage | string? | yes | | - - --- #### [ProductVariants](#ProductVariants) @@ -28848,27 +21768,6 @@ List of fields and validation values fro each. See example below or refer `Inven | variants | [[ProductVariants](#ProductVariants)]? | yes | | ---- - -#### [ProductVerificationModel](#ProductVerificationModel) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | brand_uid | number? | yes | | - | company_ids | [number]? | yes | | - | created_by | [CreatedBy](#CreatedBy)? | yes | | - | created_on | string? | yes | | - | id | string? | yes | | - | item_code | string? | yes | | - | item_id | number? | yes | | - | modified_by | [CreatedBy](#CreatedBy)? | yes | | - | modified_on | string? | yes | | - | rejected_fields | string? | yes | | - | remark | string? | yes | | - | slug | string? | yes | | - | status | string? | yes | | - - --- #### [Properties](#Properties) @@ -29042,15 +21941,6 @@ List of fields and validation values fro each. See example below or refer `Inven | page | [Page](#Page)? | yes | | ---- - -#### [RerankingBoostItems](#RerankingBoostItems) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | boost | [[BoostItem](#BoostItem)]? | yes | | - - --- #### [ReturnConfig](#ReturnConfig) @@ -29058,8 +21948,8 @@ List of fields and validation values fro each. See example below or refer `Inven | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | | returnable | boolean | no | | - | time | number? | yes | | - | unit | string? | yes | | + | time | number | no | | + | unit | string | no | | --- @@ -29102,30 +21992,18 @@ List of fields and validation values fro each. See example below or refer `Inven | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | | key | string | no | The attribute key to search on. This key matches the solr document key | - | name | string | no | The name of key to search on. This is for displaying purposes on platform | - | priority | number | no | Order in which the searchable attribute should kick in. Higher the priority, higher the weight considered while searching | - - ---- - -#### [SearchKeywordResult](#SearchKeywordResult) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | query | string | no | | - | sort_on | string | no | | + | name | string | no | The name of key to search on. This is for displaying purposes on platform | + | priority | number | no | Order in which the searchable attribute should kick in. Higher the priority, higher the weight considered while searching | --- -#### [SearchRequest](#SearchRequest) +#### [SearchKeywordResult](#SearchKeywordResult) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | is_active | boolean? | yes | | - | page_no | number? | yes | | - | page_size | number? | yes | | - | q | string? | yes | | + | query | string | no | | + | sort_on | string | no | | --- @@ -29177,7 +22055,7 @@ List of fields and validation values fro each. See example below or refer `Inven | canonical_url | string? | yes | | | description | string? | yes | | | meta_tags | [[Metatags](#Metatags)]? | yes | | - | sitemap | [SitemapDetail](#SitemapDetail)? | yes | | + | sitemap | string? | yes | | | title | string? | yes | | @@ -29191,25 +22069,6 @@ List of fields and validation values fro each. See example below or refer `Inven | size | string | no | | ---- - -#### [SimilarFilter](#SimilarFilter) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | data | [[SimilarItem](#SimilarItem)]? | yes | | - - ---- - -#### [SimilarItem](#SimilarItem) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | display | string? | yes | | - | key | string? | yes | | - - --- #### [SingleCategoryResponse](#SingleCategoryResponse) @@ -29238,16 +22097,6 @@ List of fields and validation values fro each. See example below or refer `Inven | priority | number? | yes | | ---- - -#### [SitemapDetail](#SitemapDetail) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | frequency | string? | yes | | - | priority | number? | yes | | - - --- #### [Size](#Size) @@ -29278,12 +22127,11 @@ List of fields and validation values fro each. See example below or refer `Inven | active | boolean? | yes | | | brand_id | number? | yes | | | company_id | number? | yes | | - | created_by | [UserSerializer](#UserSerializer)? | yes | The user who created the size guide. | + | created_by | string? | yes | | | created_on | string? | yes | | | guide | string? | yes | | | id | string? | yes | | - | image | string? | yes | | - | modified_by | [UserSerializer](#UserSerializer)? | yes | The user who modified the size guide. | + | modified_by | string? | yes | | | modified_on | string? | yes | | | name | string? | yes | | | subtitle | string? | yes | | @@ -29301,43 +22149,29 @@ List of fields and validation values fro each. See example below or refer `Inven | threshold_value | number? | yes | | ---- - -#### [SlabObject](#SlabObject) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | tax | number? | yes | | - | threshold | number? | yes | | - - ---- - -#### [SortTypeItem](#SortTypeItem) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | display | string? | yes | | - | key | string? | yes | | - - ---- - -#### [Stats](#Stats) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | total | number? | yes | | - - --- #### [StoreAssignResponse](#StoreAssignResponse) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | items | [string]? | yes | | - | success | boolean? | yes | | + | _id | string? | yes | | + | article_assignment | [ArticleAssignment1](#ArticleAssignment1) | no | | + | company_id | number? | yes | | + | group_id | string? | yes | | + | index | number? | yes | | + | item_id | number | no | | + | meta | string? | yes | | + | price_effective | number? | yes | | + | price_marked | number? | yes | | + | quantity | number | no | | + | s_city | string? | yes | | + | size | string | no | | + | status | boolean | no | | + | store_id | number? | yes | | + | store_pincode | number? | yes | | + | strategy_wise_listing | [string]? | yes | | + | uid | string? | yes | | --- @@ -29346,54 +22180,19 @@ List of fields and validation values fro each. See example below or refer `Inven | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | _custom_json | string? | yes | | | additional_contacts | [string]? | yes | | - | address | [Address](#Address)? | yes | | + | address | string? | yes | | | company_id | number? | yes | | - | created_by | [UserSchemaCustom](#UserSchemaCustom)? | yes | | | created_on | string? | yes | | | display_name | string? | yes | | - | documents | [[Document](#Document)]? | yes | | - | integration_type | [IntegrationType](#IntegrationType)? | yes | | - | manager | [Manager](#Manager)? | yes | | - | modified_by | [UserSchemaCustom](#UserSchemaCustom)? | yes | | + | documents | [string]? | yes | | + | manager | string? | yes | | | modified_on | string? | yes | | | name | string? | yes | | - | notification_emails | [string]? | yes | | - | stage | string? | yes | | | store_code | string? | yes | | | store_type | string? | yes | | - | timing | [[Timing](#Timing)]? | yes | | - | uid | number? | yes | | - | verified_by | [UserSchemaCustom](#UserSchemaCustom)? | yes | | - | verified_on | string? | yes | | - - ---- - -#### [StoreItem](#StoreItem) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | _custom_json | string? | yes | | - | address | [Address](#Address)? | yes | | - | company_id | number? | yes | | - | created_by | [UserSchemaCustom](#UserSchemaCustom)? | yes | | - | created_on | string? | yes | | - | display_name | string? | yes | | - | documents | [[Document](#Document)]? | yes | | - | integration_type | [IntegrationType](#IntegrationType)? | yes | | - | manager | [Manager](#Manager)? | yes | | - | modified_by | [UserSchemaCustom](#UserSchemaCustom)? | yes | | - | modified_on | string? | yes | | - | name | string? | yes | | - | notification_emails | [string]? | yes | | - | stage | string? | yes | | - | store_type | string? | yes | | - | timing | [[Timing](#Timing)]? | yes | | + | timing | string? | yes | | | uid | number? | yes | | - | verified_by | [UserSchemaCustom](#UserSchemaCustom)? | yes | | - | verified_on | string? | yes | | --- @@ -29424,15 +22223,6 @@ List of fields and validation values fro each. See example below or refer `Inven | uid | number? | yes | | ---- - -#### [SuccessResponseMerchandising](#SuccessResponseMerchandising) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | message | string? | yes | | - - --- #### [TaxIdentifier](#TaxIdentifier) @@ -29493,7 +22283,7 @@ List of fields and validation values fro each. See example below or refer `Inven | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | items | [[ProductTemplate](#ProductTemplate)]? | yes | | + | items | [ProductTemplate](#ProductTemplate)? | yes | | | page | [Page](#Page)? | yes | | @@ -29532,28 +22322,6 @@ List of fields and validation values fro each. See example below or refer `Inven | uid | number? | yes | | ---- - -#### [Time](#Time) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | hour | number? | yes | | - | minute | number? | yes | | - - ---- - -#### [Timing](#Timing) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | closing | [Time](#Time)? | yes | | - | open | boolean? | yes | | - | opening | [Time](#Time)? | yes | | - | weekday | string? | yes | | - - --- #### [Trader](#Trader) @@ -29587,28 +22355,6 @@ List of fields and validation values fro each. See example below or refer `Inven | type | string? | yes | | ---- - -#### [UpdateAppPriceFactoryProductRequest](#UpdateAppPriceFactoryProductRequest) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | sizes | any? | yes | | - - ---- - -#### [UpdateAppPriceFactoryProductResponse](#UpdateAppPriceFactoryProductResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | company_sizes | any? | yes | | - | item_id | number? | yes | | - | media | any? | yes | | - | sizes | any? | yes | | - | zone_id | string? | yes | | - - --- #### [UpdateCollection](#UpdateCollection) @@ -29618,10 +22364,8 @@ List of fields and validation values fro each. See example below or refer `Inven | _custom_json | string? | yes | | | _locale_language | string? | yes | | | _schedule | [CollectionSchedule](#CollectionSchedule)? | yes | | - | action | [Action](#Action)? | yes | | | allow_facets | boolean? | yes | | | allow_sort | boolean? | yes | | - | app_id | string? | yes | | | badge | [CollectionBadge](#CollectionBadge)? | yes | | | banners | [CollectionBanner](#CollectionBanner)? | yes | | | description | string? | yes | | @@ -29639,7 +22383,6 @@ List of fields and validation values fro each. See example below or refer `Inven | sort_on | string? | yes | | | tags | [string]? | yes | | | type | string? | yes | | - | uid | string? | yes | | | visible_facets_keys | [string]? | yes | | @@ -29653,30 +22396,6 @@ List of fields and validation values fro each. See example below or refer `Inven | message | string? | yes | | ---- - -#### [UpdateHsnCode](#UpdateHsnCode) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | data | [UpdateHsnCodesObject](#UpdateHsnCodesObject)? | yes | The HSN code data. | - - ---- - -#### [UpdateHsnCodesObject](#UpdateHsnCodesObject) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | company_id | number? | yes | The ID of the company. | - | hs2_code | string? | yes | The HS2 code. | - | hsn_code | string? | yes | The HSN code. | - | id | string? | yes | | - | modified_by | [CreatedBy](#CreatedBy)? | yes | | - | slabs | [[SlabObject](#SlabObject)]? | yes | | - | tax_on | string? | yes | | - - --- #### [UpdateMarketplaceOptinRequest](#UpdateMarketplaceOptinRequest) @@ -29686,7 +22405,7 @@ List of fields and validation values fro each. See example below or refer `Inven | brand_ids | [number]? | yes | | | company_id | number? | yes | | | enabled | boolean? | yes | | - | opt_level | number? | yes | | + | opt_level | string? | yes | | | platform | string? | yes | | | store_ids | [number]? | yes | | @@ -29734,34 +22453,6 @@ List of fields and validation values fro each. See example below or refer `Inven | success | boolean? | yes | | ---- - -#### [UpdateSearchRerankRequest](#UpdateSearchRerankRequest) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | application_id | string? | yes | | - | is_active | boolean? | yes | | - | ranking | [RerankingBoostItems](#RerankingBoostItems)? | yes | | - | words | [string]? | yes | | - - ---- - -#### [UpdateSearchRerankResponse](#UpdateSearchRerankResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | app_id | string? | yes | | - | created_by | [CreatedBy](#CreatedBy)? | yes | The user who created the search rerank. | - | created_on | string? | yes | | - | is_active | boolean? | yes | | - | modified_by | [CreatedBy](#CreatedBy)? | yes | The user who modified the search rerank. | - | modified_on | string? | yes | | - | ranking | [RerankingBoostItems](#RerankingBoostItems)? | yes | | - | words | [string]? | yes | | - - --- #### [UserCommon](#UserCommon) @@ -29820,16 +22511,6 @@ List of fields and validation values fro each. See example below or refer `Inven | username | string? | yes | The username of the user. | ---- - -#### [UserSchemaCustom](#UserSchemaCustom) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | user_id | string? | yes | | - | username | string? | yes | | - - --- #### [UserSerializer](#UserSerializer) @@ -29893,7 +22574,6 @@ List of fields and validation values fro each. See example below or refer `Inven | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | message | string? | yes | | | valid | boolean? | yes | | @@ -29920,88 +22600,6 @@ List of fields and validation values fro each. See example below or refer `Inven | title | string | no | | ---- - -#### [ValidationFailedResponse](#ValidationFailedResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | message | string? | yes | Response message for failed validation | - - ---- - -#### [ValueConfigType](#ValueConfigType) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | bucket_points | [any]? | yes | | - | condition | string? | yes | | - | map | string? | yes | | - | sort | string? | yes | | - | value | string? | yes | | - - ---- - -#### [ValueItem](#ValueItem) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | text | string? | yes | | - | value | string? | yes | | - - ---- - -#### [ValueTypeItem](#ValueTypeItem) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | display | string? | yes | | - | key | string? | yes | | - - ---- - -#### [VariantFilter](#VariantFilter) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | data | [[VariantItem](#VariantItem)]? | yes | | - - ---- - -#### [VariantItem](#VariantItem) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | display | string? | yes | | - | key | string? | yes | | - - ---- - -#### [VariantTypeItem](#VariantTypeItem) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | image_config | string? | yes | Configuration for the image | - | key | string? | yes | Key of the item | - | name | string? | yes | Name of the item | - | type | [string]? | yes | Array of item types | - - ---- - -#### [VariantTypesResponse](#VariantTypesResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | items | [[VariantTypeItem](#VariantTypeItem)]? | yes | | - - --- #### [VerifiedBy](#VerifiedBy) diff --git a/documentation/platform/COMMUNICATION.md b/documentation/platform/COMMUNICATION.md index 4107dd37e..0b7c18d60 100644 --- a/documentation/platform/COMMUNICATION.md +++ b/documentation/platform/COMMUNICATION.md @@ -5558,12 +5558,10 @@ Send OTP using email and sms ```javascript // Promise -const promise = platformClient.application("").communication.sendOtp({ body : value, - ci : value }); +const promise = platformClient.application("").communication.sendOtp({ body : value }); // Async/Await -const data = await platformClient.application("").communication.sendOtp({ body : value, - ci : value }); +const data = await platformClient.application("").communication.sendOtp({ body : value }); ``` @@ -5571,8 +5569,7 @@ const data = await platformClient.application("").communication. | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| ci | boolean | no | Common Information | +| --------- | ----- | -------- | ----------- | | body | [SendOtpCommsReq](#SendOtpCommsReq) | yes | Request body | diff --git a/documentation/platform/CONFIGURATION.md b/documentation/platform/CONFIGURATION.md index f9d75aa22..c24e84c81 100644 --- a/documentation/platform/CONFIGURATION.md +++ b/documentation/platform/CONFIGURATION.md @@ -989,11 +989,6 @@ Success "order": { "buy_again": true }, - "buybox": { - "show_name": true, - "enable_selection": true, - "is_seller_buybox_enabled": false - }, "_id": "5e57643c986e4119c973df7d", "app": "000000000000000000000001", "created_at": "2020-02-27T06:39:56.088Z", @@ -2491,10 +2486,6 @@ Success "min": 0, "max": 100 }, - "pricing_strategy": { - "is_active": false, - "value": "all" - }, "out_of_stock": true, "franchise_enabled": true, "exclude_category": [], @@ -3873,11 +3864,6 @@ Success "order": { "buy_again": true }, - "buybox": { - "show_name": true, - "enable_selection": true, - "is_seller_buybox_enabled": false - }, "_id": "5e57643c986e4119c973df7d", "app": "000000000000000000000001", "created_at": "2020-02-27T06:39:56.088Z", @@ -4046,10 +4032,6 @@ Success "min": 0, "max": 100 }, - "pricing_strategy": { - "is_active": false, - "value": "all" - }, "out_of_stock": true, "franchise_enabled": true, "exclude_category": [], @@ -4987,11 +4969,6 @@ Success "order": { "buy_again": true }, - "buybox": { - "show_name": true, - "enable_selection": true, - "is_seller_buybox_enabled": false - }, "_id": "5e57643c986e4119c973df7d", "app": "000000000000000000000001", "created_at": "2020-02-27T06:39:56.088Z", @@ -5686,7 +5663,6 @@ Success | __v | number? | yes | Version key for tracking revisions. Default value is zero | | _id | string? | yes | The unique identifier (24-digit Mongo Object ID) for the sales channel features | | app | string? | yes | Application ID of the sales channel | - | buybox | [BuyboxFeature](#BuyboxFeature)? | yes | | | cart | [CartFeature](#CartFeature)? | yes | | | common | [CommonFeature](#CommonFeature)? | yes | | | created_at | string? | yes | ISO 8601 timestamp showing the date when the features were configured | @@ -5757,7 +5733,6 @@ Success | only_verified_products | boolean? | yes | Show only verified products (the ones whose data has been verified by the admin) | | out_of_stock | boolean? | yes | Indicates whether out of stock products are allowed to show up on the website | | price | [InventoryPrice](#InventoryPrice)? | yes | | - | pricing_strategy | [PricingStrategy](#PricingStrategy)? | yes | | | store | [InventoryStore](#InventoryStore)? | yes | | @@ -5826,7 +5801,7 @@ Success | secret | string? | yes | | | slug | string? | yes | | | status | string? | yes | | - | token | string? | yes | Random generated fix length string for sales channel. It is required and auto-generated. | + | token | string? | yes | Random generated fix length string for sales channel. It is required and auto-generated. | | tokens | [[TokenSchema](#TokenSchema)]? | yes | | | website | [ApplicationWebsite](#ApplicationWebsite)? | yes | | @@ -6145,17 +6120,6 @@ Success | title | string? | yes | Title of the business highlight, e.g. Superfast Delivery | ---- - -#### [BuyboxFeature](#BuyboxFeature) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | enable_selection | boolean? | yes | Allow selection of sellers/stores on PDP (product detail page). | - | is_seller_buybox_enabled | boolean? | yes | Toggle buybox listing between sellers and stores. True indicates seller listing, while False indicates store listing. | - | show_name | boolean? | yes | Allow users to see seller/stores name on PDP (product detail page). | - - --- #### [CallbackUrl](#CallbackUrl) @@ -6947,7 +6911,6 @@ Success | image | [string]? | yes | | | only_verified_products | boolean? | yes | Show only verified products (the ones whose data have been verified by the admin) | | out_of_stock | boolean? | yes | Indicates whether out of stock products are allowed to show up on the website. | - | pricing_strategy | [PricingStrategy](#PricingStrategy)? | yes | | | store | [InventoryStoreRule](#InventoryStoreRule)? | yes | | @@ -7548,16 +7511,6 @@ Success | title | string? | yes | Name of the social media platform, e.g. Pinterest | ---- - -#### [PricingStrategy](#PricingStrategy) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | is_active | boolean? | yes | Indicates whether the pricing strategy is active or not active | - | value | string? | yes | Indicates the pricing strategy value. | - - --- #### [ProductDetailFeature](#ProductDetailFeature) diff --git a/documentation/platform/CONTENT.md b/documentation/platform/CONTENT.md index 1cab26ce2..dbbb0a5c5 100644 --- a/documentation/platform/CONTENT.md +++ b/documentation/platform/CONTENT.md @@ -4671,15 +4671,15 @@ Get custom fields definitions // Promise const promise = platformClient.application("").content.getAppCustomFieldDefinitions({ pageNo : value, pageSize : value, - resources : value, - types : value, + resource : value, + type : value, search : value }); // Async/Await const data = await platformClient.application("").content.getAppCustomFieldDefinitions({ pageNo : value, pageSize : value, - resources : value, - types : value, + resource : value, + type : value, search : value }); ``` @@ -4691,8 +4691,8 @@ const data = await platformClient.application("").content.getApp | --------- | ----- | -------- | ----------- | | pageNo | string | yes | | | pageSize | string | yes | | -| resources | string | no | | -| types | string | no | | +| resource | string | no | | +| type | string | no | | | search | string | no | | @@ -6539,15 +6539,15 @@ Get custom fields definitions // Promise const promise = platformClient.content.getCustomFieldDefinitions({ pageNo : value, pageSize : value, - resources : value, - types : value, + resource : value, + type : value, search : value }); // Async/Await const data = await platformClient.content.getCustomFieldDefinitions({ pageNo : value, pageSize : value, - resources : value, - types : value, + resource : value, + type : value, search : value }); ``` @@ -6559,8 +6559,8 @@ const data = await platformClient.content.getCustomFieldDefinitions({ pageNo : | --------- | ----- | -------- | ----------- | | pageNo | string | yes | | | pageSize | string | yes | | -| resources | string | no | | -| types | string | no | | +| resource | string | no | | +| type | string | no | | | search | string | no | | @@ -13674,6 +13674,7 @@ Success. Refer `Support` for more details. | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | | page | [ActionPage](#ActionPage)? | yes | | + | popup | [ActionPage](#ActionPage)? | yes | | | type | string? | yes | | @@ -14138,7 +14139,7 @@ Success. Refer `Support` for more details. | resource_id | string? | yes | | | type | string? | yes | | | updated_at | string? | yes | | - | value | [any]? | yes | | + | value | [[CustomFieldValue](#CustomFieldValue)]? | yes | | --- @@ -14181,6 +14182,15 @@ Success. Refer `Support` for more details. | url | [Url](#Url)? | yes | | +--- + +#### [CustomFieldValue](#CustomFieldValue) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | value | any? | yes | | + + --- #### [CustomMetaTag](#CustomMetaTag) diff --git a/documentation/platform/DISCOUNT.md b/documentation/platform/DISCOUNT.md index bf3724159..8807cc371 100644 --- a/documentation/platform/DISCOUNT.md +++ b/documentation/platform/DISCOUNT.md @@ -1376,6 +1376,7 @@ Success | store_ids | [number]? | yes | | | validity | [ValidityObject](#ValidityObject) | no | | | value | number? | yes | | + | zone_ids | [string]? | yes | | --- diff --git a/documentation/platform/FILESTORAGE.md b/documentation/platform/FILESTORAGE.md index 7f9640830..cd211e0da 100644 --- a/documentation/platform/FILESTORAGE.md +++ b/documentation/platform/FILESTORAGE.md @@ -21,8 +21,6 @@ Default * [browsefiles](#browsefiles) * [completeUpload](#completeupload) * [copyFiles](#copyfiles) -* [deletePdfConfigTemplate](#deletepdfconfigtemplate) -* [deletePdfType](#deletepdftype) * [generatePaymentReceipt](#generatepaymentreceipt) * [getDefaultHtmlTemplate](#getdefaulthtmltemplate) * [getDefaultPdfData](#getdefaultpdfdata) @@ -970,134 +968,6 @@ Success ---- - - -### deletePdfConfigTemplate -delete html template for invoice or label - - - -```javascript -// Promise -const promise = platformClient.application("").fileStorage.deletePdfConfigTemplate({ id : value }); - -// Async/Await -const data = await platformClient.application("").fileStorage.deletePdfConfigTemplate({ id : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| id | string | yes | | - - - -delete html template for invoice such as Invoice, Label, Deliver challan - -*Returned Response:* - - - - -[string](#string) - -pdf config Template deleted successfully for given id. - - - - -
-  Examples: - - -
-  success - -```json -{ - "value": "Configured template deleted successfully" -} -``` -
- -
- - - - - - - - - ---- - - -### deletePdfType -delete Pdf Type - - - -```javascript -// Promise -const promise = platformClient.application("").fileStorage.deletePdfType({ id : value }); - -// Async/Await -const data = await platformClient.application("").fileStorage.deletePdfType({ id : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| id | string | yes | | - - - -delete Pdf Type for invoice such as Invoice, Label, Deliver challan - -*Returned Response:* - - - - -[string](#string) - -pdf type deleted successfully for given id. - - - - -
-  Examples: - - -
-  success - -```json -{ - "value": "Pdf type deleted successfully" -} -``` -
- -
- - - - - - - - - --- diff --git a/documentation/platform/FINANCE.md b/documentation/platform/FINANCE.md index aa4526608..25c0c2bd9 100644 --- a/documentation/platform/FINANCE.md +++ b/documentation/platform/FINANCE.md @@ -3271,7 +3271,7 @@ Success | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | amount | number? | yes | | + | amount | string? | yes | | | company | string? | yes | | | currency | [Currency](#Currency)? | yes | | | due_date | string? | yes | | diff --git a/documentation/platform/LEAD.md b/documentation/platform/LEAD.md index 0a625559b..293f8e120 100644 --- a/documentation/platform/LEAD.md +++ b/documentation/platform/LEAD.md @@ -1865,7 +1865,7 @@ Get general support configuration. -[GeneralConfigResponse](#GeneralConfigResponse) +[CloseVideoRoomResponse](#CloseVideoRoomResponse) Success @@ -1882,51 +1882,7 @@ Success ```json { "value": { - "_id": "64ca1aabae093a451d54817d", - "support_communication": [ - { - "type": "link", - "title": "testLink", - "value": "http://invalid.in", - "description": "invalid link in value", - "enabled": true - }, - { - "type": "phone_number", - "title": "update mobile no test", - "value": { - "code": "91", - "number": "7848845538", - "iso": "IN" - }, - "description": "dadskjfd", - "enabled": true - }, - { - "type": "email", - "title": "dfdafdsa", - "value": "testing@gmail.com", - "description": "asdfadsf", - "enabled": true - }, - { - "type": "email", - "title": "testanu", - "value": "test@gmail.com", - "description": "tesr", - "enabled": true - } - ], - "show_communication_info": true, - "type": "partner", - "integration": { - "type": "default" - }, - "available_integration": [ - "default", - "freshdesk" - ], - "enable_dris": true + "success": true } } ``` @@ -4379,33 +4335,12 @@ Success | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | assignees | [string]? | yes | List of support staff availble for tickets assignment | + | assignees | [string] | no | List of support staff availble for tickets assignment | | categories | [[TicketCategory](#TicketCategory)]? | yes | List of possible categories for tickets | | priorities | [[Priority](#Priority)] | no | List of possible priorities for tickets | | statuses | [[Status](#Status)] | no | List of possible statuses for tickets | ---- - -#### [GeneralConfigIntegrationSchema](#GeneralConfigIntegrationSchema) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | type | string? | yes | | - - ---- - -#### [GeneralConfigResponse](#GeneralConfigResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | available_integration | [string]? | yes | | - | integration | [GeneralConfigIntegrationSchema](#GeneralConfigIntegrationSchema)? | yes | | - | support_communication | [[SupportCommunicationSchema](#SupportCommunicationSchema)]? | yes | | - | type | string? | yes | | - - --- #### [GetParticipantsInsideVideoRoomResponse](#GetParticipantsInsideVideoRoomResponse) @@ -4518,18 +4453,6 @@ Success | title_color | string | no | Title color submit button | ---- - -#### [SupportCommunicationSchema](#SupportCommunicationSchema) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | description | string? | yes | | - | enabled | boolean? | yes | | - | title | string? | yes | | - | type | string? | yes | | - - --- #### [Ticket](#Ticket) @@ -4577,7 +4500,7 @@ Success | feedback_form | [FeedbackForm](#FeedbackForm)? | yes | | | group_id | number? | yes | Group id of category releted data | | key | string | no | Category key value identifier | - | sub_categories | [[TicketCategory](#TicketCategory)]? | yes | | + | sub_categories | [TicketCategory](#TicketCategory)? | yes | | --- diff --git a/documentation/platform/ORDER.md b/documentation/platform/ORDER.md index 60ead2196..4e83fe797 100644 --- a/documentation/platform/ORDER.md +++ b/documentation/platform/ORDER.md @@ -17,9 +17,6 @@ Default * [click2Call](#click2call) * [createChannelConfig](#createchannelconfig) * [createOrder](#createorder) -* [createRule](#createrule) -* [deleteRule](#deleterule) -* [deleteuserviews](#deleteuserviews) * [dispatchManifests](#dispatchmanifests) * [downloadBulkActionTemplate](#downloadbulkactiontemplate) * [downloadLanesReport](#downloadlanesreport) @@ -28,6 +25,7 @@ Default * [failedOrderLogs](#failedorderlogs) * [fetchCreditBalanceDetail](#fetchcreditbalancedetail) * [fetchRefundModeConfig](#fetchrefundmodeconfig) +* [generateInvoiceID](#generateinvoiceid) * [generatePOSReceiptByOrderId](#generateposreceiptbyorderid) * [getAllowedStateTransition](#getallowedstatetransition) * [getAllowedTemplatesForBulk](#getallowedtemplatesforbulk) @@ -47,15 +45,7 @@ Default * [getOrderById](#getorderbyid) * [getOrders](#getorders) * [getPlatformShipmentReasons](#getplatformshipmentreasons) -* [getQuestions](#getquestions) -* [getRefundConfiguration](#getrefundconfiguration) -* [getRefundEnableStateList](#getrefundenablestatelist) -* [getRefundStateConfiguration](#getrefundstateconfiguration) * [getRoleBasedActions](#getrolebasedactions) -* [getRuleById](#getrulebyid) -* [getRuleLaneConfig](#getrulelaneconfig) -* [getRuleList](#getrulelist) -* [getRuleParameters](#getruleparameters) * [getShipmentBagReasons](#getshipmentbagreasons) * [getShipmentById](#getshipmentbyid) * [getShipmentHistory](#getshipmenthistory) @@ -64,15 +54,10 @@ Default * [getStateTransitionMap](#getstatetransitionmap) * [getTemplate](#gettemplate) * [getfilters](#getfilters) -* [getuserviews](#getuserviews) -* [globalfilters](#globalfilters) * [invalidateShipmentCache](#invalidateshipmentcache) * [jobDetails](#jobdetails) * [orderUpdate](#orderupdate) -* [postRefundConfiguration](#postrefundconfiguration) -* [postRefundStateConfiguration](#postrefundstateconfiguration) * [postShipmentHistory](#postshipmenthistory) -* [postuserviews](#postuserviews) * [processManifests](#processmanifests) * [reassignLocation](#reassignlocation) * [sendSmsNinja](#sendsmsninja) @@ -81,12 +66,9 @@ Default * [trackShipmentPlatform](#trackshipmentplatform) * [updateAddress](#updateaddress) * [updatePackagingDimensions](#updatepackagingdimensions) -* [updateRule](#updaterule) -* [updateRulePosition](#updateruleposition) * [updateShipmentLock](#updateshipmentlock) * [updateShipmentStatus](#updateshipmentstatus) * [updateShipmentTracking](#updateshipmenttracking) -* [updateuserviews](#updateuserviews) * [uploadConsents](#uploadconsents) * [verifyMobileOTP](#verifymobileotp) @@ -758,175 +740,6 @@ Successfully created an order! ---- - - -### createRule - - - - -```javascript -// Promise -const promise = platformClient.application("").order.createRule({ body : value }); - -// Async/Await -const data = await platformClient.application("").order.createRule({ body : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| body | [RuleRequest](#RuleRequest) | yes | Request body | - - -Create a new rule - -*Returned Response:* - - - - -[CreateRuleResponse](#CreateRuleResponse) - -Successful response - - - - -
-  Example: - -```json - -``` -
- - - - - - - - - ---- - - -### deleteRule - - - - -```javascript -// Promise -const promise = platformClient.application("").order.deleteRule({ ruleId : value }); - -// Async/Await -const data = await platformClient.application("").order.deleteRule({ ruleId : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| ruleId | string | yes | | - - - -Delete a specific rule by ID - -*Returned Response:* - - - - -[DeleteRuleResponse](#DeleteRuleResponse) - -Successful response - - - - -
-  Example: - -```json - -``` -
- - - - - - - - - ---- - - -### deleteuserviews - - - - -```javascript -// Promise -const promise = platformClient.order.deleteuserviews({ id : value }); - -// Async/Await -const data = await platformClient.order.deleteuserviews({ id : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| id | string | yes | Id of view | - - - -Delete User views(User cross company views) - -*Returned Response:* - - - - -[CreateUpdateDeleteResponse](#CreateUpdateDeleteResponse) - -Success. Check the example shown below. - - - - -
-  Example: - -```json -{ - "message": "User view deleted successfully" -} -``` -
- - - - - - - - - --- @@ -1536,6 +1349,73 @@ Refund mode config is returned based on input parameter +--- + + +### generateInvoiceID + + + + +```javascript +// Promise +const promise = platformClient.order.generateInvoiceID({ invoiceType : value, + body : value }); + +// Async/Await +const data = await platformClient.order.generateInvoiceID({ invoiceType : value, + body : value }); +``` + + + + + +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| invoiceType | string | yes | mention the type of invoice id to generate | +| body | [GenerateInvoiceIDRequest](#GenerateInvoiceIDRequest) | yes | Request body | + + +This API is used to manually generate Invoice ID against shipments. + +*Returned Response:* + + + + +[GenerateInvoiceIDResponse](#GenerateInvoiceIDResponse) + +NOTE success response can contains success and failed result as well + + + + +
+  Example: + +```json +{ + "items": [ + { + "shipment_id": "16838049724111283577", + "success": true, + "invoice_id": "A0B1C2D3", + "error_message": null + } + ] +} +``` +
+ + + + + + + + + --- @@ -3276,10 +3156,7 @@ We are processing the report! "time": 7, "unit": "days", "returnable": true - }, - "tags": [ - "1P" - ] + } }, "affiliate_bag_details": { "coupon_code": null @@ -3795,48 +3672,34 @@ Success. Check the example shown below or refer `ShipmentReasonsResponse` for mo --- -### getQuestions +### getRoleBasedActions ```javascript // Promise -const promise = platformClient.application("").order.getQuestions({ pageNo : value, - pageSize : value, - q : value, - isActive : value }); +const promise = platformClient.order.getRoleBasedActions(); // Async/Await -const data = await platformClient.application("").order.getQuestions({ pageNo : value, - pageSize : value, - q : value, - isActive : value }); +const data = await platformClient.order.getRoleBasedActions(); ``` -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| pageNo | number | no | | -| pageSize | number | no | | -| q | string | no | To search questions using query | -| isActive | string | no | To get active questions | - - -Get all questions of that cluster +Get Role Based Actions *Returned Response:* -[Object](#Object) +[GetActionsResponse](#GetActionsResponse) -Successful response +You will get an array of actions allowed for that particular user based on their role @@ -3845,7 +3708,22 @@ Successful response   Example: ```json - +{ + "permissions": [ + { + "slug": "create_invoice_s3", + "display_text": "Create Invoice (s3)", + "id": 2, + "description": "Create Invoice (s3)" + }, + { + "slug": "call", + "display_text": "Call", + "id": 3, + "description": "Call" + } + ] +} ``` @@ -3860,17 +3738,19 @@ Successful response --- -### getRefundConfiguration - +### getShipmentBagReasons +Get reasons behind full or partial cancellation of a shipment ```javascript // Promise -const promise = platformClient.order.getRefundConfiguration({ appId : value }); +const promise = platformClient.application("").order.getShipmentBagReasons({ shipmentId : value, + lineNumber : value }); // Async/Await -const data = await platformClient.order.getRefundConfiguration({ appId : value }); +const data = await platformClient.application("").order.getShipmentBagReasons({ shipmentId : value, + lineNumber : value }); ``` @@ -3879,20 +3759,21 @@ const data = await platformClient.order.getRefundConfiguration({ appId : value | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| appId | string | yes | | +| shipmentId | string | yes | ID of the bag. An order may contain multiple items and may get divided into one or more shipment, each having its own ID. | +| lineNumber | number | yes | line number of bag. | -refund configuration. +Use this API to retrieve the issues that led to the cancellation of bags within a shipment. *Returned Response:* -[RefundStateConfigurationManualSchemaResponse](#RefundStateConfigurationManualSchemaResponse) +[ShipmentBagReasons](#ShipmentBagReasons) -refund config. +Success. Check the example shown below or refer `ShipmentBagReasons` for more details. @@ -3903,211 +3784,44 @@ refund config. ```json { "success": true, - "data": { - "prepaid": { - "message": "manual refund for prepaid", - "is_manual": false - }, - "non_prepaid": { - "message": "manual refund for non_prepaid", - "is_manual": true - } - } -} -``` - - - - - - - - - - ---- - - -### getRefundEnableStateList - - - - -```javascript -// Promise -const promise = platformClient.order.getRefundEnableStateList(); - -// Async/Await -const data = await platformClient.order.getRefundEnableStateList(); -``` - - - - - - -Refund State Configuration - -*Returned Response:* - - - - -[GetRefundStates](#GetRefundStates) - -It shows the Refund states - - - - -
-  Example: - -```json -{ - "items": [ + "reasons": [ { - "state": "cancelled_customer", - "display_name": "Cancelled by Customer" + "id": 1, + "display_name": "Not available", + "qc_type": [], + "question_set": [] }, { - "state": "cancelled_fynd", - "display_name": "Cancelled by Fynd" - } - ], - "success": true, - "status": 200 -} -``` -
- - - - - - - - - ---- - - -### getRefundStateConfiguration - - - - -```javascript -// Promise -const promise = platformClient.order.getRefundStateConfiguration({ appId : value }); - -// Async/Await -const data = await platformClient.order.getRefundStateConfiguration({ appId : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| appId | string | yes | | - - - -Refund State Configuration - -*Returned Response:* - - - - -[GetRefundStateConfigurationResponse](#GetRefundStateConfigurationResponse) - -It shows the Refund configuration - - - - -
-  Example: - -```json -{ - "success": true, - "config": { - "prepaid": [ - "cancelled_customer", - "cancelled_fynd" - ], - "non_prepaid": [ - "return_bag_picked" - ] - } -} -``` -
- - - - - - - - - ---- - - -### getRoleBasedActions - - - - -```javascript -// Promise -const promise = platformClient.order.getRoleBasedActions(); - -// Async/Await -const data = await platformClient.order.getRoleBasedActions(); -``` - - - - - - -Get Role Based Actions - -*Returned Response:* - - - - -[GetActionsResponse](#GetActionsResponse) - -You will get an array of actions allowed for that particular user based on their role - - - - -
-  Example: - -```json -{ - "permissions": [ - { - "slug": "create_invoice_s3", - "display_text": "Create Invoice (s3)", - "id": 2, - "description": "Create Invoice (s3)" + "reasons": [ + { + "id": 2, + "display_name": "Processing other orders", + "qc_type": [], + "question_set": [] + }, + { + "id": 3, + "display_name": "Printer not working", + "qc_type": [], + "question_set": [] + }, + { + "reasons": [ + { + "id": 4, + "display_name": "Card issues", + "qc_type": [], + "question_set": [] + } + ] + } + ] }, { - "slug": "call", - "display_text": "Call", - "id": 3, - "description": "Call" + "id": 4, + "display_name": "Card issues", + "qc_type": [], + "question_set": [] } ] } @@ -4125,17 +3839,21 @@ You will get an array of actions allowed for that particular user based on their --- -### getRuleById +### getShipmentById ```javascript // Promise -const promise = platformClient.application("").order.getRuleById({ ruleId : value }); +const promise = platformClient.order.getShipmentById({ channelShipmentId : value, + shipmentId : value, + fetchActiveShipment : value }); // Async/Await -const data = await platformClient.application("").order.getRuleById({ ruleId : value }); +const data = await platformClient.order.getShipmentById({ channelShipmentId : value, + shipmentId : value, + fetchActiveShipment : value }); ``` @@ -4143,242 +3861,23 @@ const data = await platformClient.application("").order.getRuleB | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| ruleId | string | yes | | +| --------- | ----- | -------- | ----------- | +| channelShipmentId | string | no | App Shipment Id | +| shipmentId | string | no | Shipment Id | +| fetchActiveShipment | boolean | no | flag to fetch active or deactivated shipments | -Get a specific rule by ID +Get shipment details for the given shipment. *Returned Response:* -[RuleResponse](#RuleResponse) +[ShipmentInfoResponse](#ShipmentInfoResponse) -Successful response - - - - -
-  Example: - -```json - -``` -
- - - - - - - - - ---- - - -### getRuleLaneConfig - - - - -```javascript -// Promise -const promise = platformClient.application("").order.getRuleLaneConfig({ searchValue : value }); - -// Async/Await -const data = await platformClient.application("").order.getRuleLaneConfig({ searchValue : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| searchValue | string | no | | - - - -Retrieve rule lane configurations - -*Returned Response:* - - - - -[Object](#Object) - -Successful response - - - - -
-  Example: - -```json - -``` -
- - - - - - - - - ---- - - -### getRuleList - - - - -```javascript -// Promise -const promise = platformClient.application("").order.getRuleList({ body : value }); - -// Async/Await -const data = await platformClient.application("").order.getRuleList({ body : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| body | [RuleListRequest](#RuleListRequest) | yes | Request body | - - -Get a list of rules - -*Returned Response:* - - - - -[RuleListResponse](#RuleListResponse) - -Successful response - - - - -
-  Example: - -```json - -``` -
- - - - - - - - - ---- - - -### getRuleParameters - - - - -```javascript -// Promise -const promise = platformClient.application("").order.getRuleParameters(); - -// Async/Await -const data = await platformClient.application("").order.getRuleParameters(); -``` - - - - - - -Get available rule parameters - -*Returned Response:* - - - - -[RuleParametersResponse](#RuleParametersResponse) - -Successful response - - - - -
-  Example: - -```json - -``` -
- - - - - - - - - ---- - - -### getShipmentBagReasons -Get reasons behind full or partial cancellation of a shipment - - - -```javascript -// Promise -const promise = platformClient.application("").order.getShipmentBagReasons({ shipmentId : value, - lineNumber : value }); - -// Async/Await -const data = await platformClient.application("").order.getShipmentBagReasons({ shipmentId : value, - lineNumber : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| shipmentId | string | yes | ID of the bag. An order may contain multiple items and may get divided into one or more shipment, each having its own ID. | -| lineNumber | number | yes | line number of bag. | - - - -Use this API to retrieve the issues that led to the cancellation of bags within a shipment. - -*Returned Response:* - - - - -[ShipmentBagReasons](#ShipmentBagReasons) - -Success. Check the example shown below or refer `ShipmentBagReasons` for more details. +We are processing the report! @@ -4389,193 +3888,89 @@ Success. Check the example shown below or refer `ShipmentBagReasons` for more de ```json { "success": true, - "reasons": [ - { - "id": 1, - "display_name": "Not available", - "qc_type": [], - "question_set": [] - }, + "order": { + "fynd_order_id": "FY62B13E2101810C19E4", + "shipment_count": 1, + "order_date": "2022-06-21T09:12:26+00:00" + }, + "shipments": [ { - "reasons": [ - { - "id": 2, - "display_name": "Processing other orders", - "qc_type": [], - "question_set": [] + "shipment_id": "16557829457641286433", + "payment_mode": "COD", + "fulfilling_store": { + "meta": {}, + "id": 1, + "code": "HS-468a5", + "fulfillment_channel": "pulse", + "store_name": "Reliance Industries Ltd - Jio Market", + "contact_person": "", + "phone": "8268108880", + "address": "high_street WEWORK, VIJAY DIAMONDS, ANDHERI MUMBAI MAHARASHTRA 400093", + "city": "MUMBAI", + "state": "MAHARASHTRA", + "country": "INDIA", + "pincode": "400093", + "tags": [ + "infibeam" + ] + }, + "delivery_details": { + "name": "Manish Prakash", + "email": "Manish.Prakash@ril.com", + "phone": "7787051611", + "address": "home 479 sector3 bokaro Bokaro Jharkhand 827003", + "city": "Bokaro", + "state": "Jharkhand", + "country": "India", + "pincode": "827003", + "state_code": 0 + }, + "billing_details": { + "name": "Manish Prakash", + "email": "Manish.Prakash@ril.com", + "phone": "7787051611", + "address": "home 479 sector3 bokaro Bokaro Jharkhand 827003", + "city": "Bokaro", + "state": "Jharkhand", + "country": "India", + "pincode": "827003", + "state_code": 0 + }, + "dp_details": { + "id": null, + "name": null, + "awb_no": null, + "eway_bill_id": null, + "track_url": null, + "gst_tag": "sgst" + }, + "journey_type": "forward", + "order": { + "fynd_order_id": "FY62B13E2101810C19E4", + "affiliate_id": "000000000000000000000001", + "ordering_channel": "FYND", + "source": "null", + "tax_details": { + "gstin": null }, + "order_date": "2022-06-21T09:12:26+00:00" + }, + "gst_details": { + "value_of_good": 475.24, + "gst_fee": 23.76, + "brand_calculated_amount": 499, + "tax_collected_at_source": 0, + "gstin_code": null + }, + "shipment_quantity": 1, + "bag_status_history": [ { - "id": 3, - "display_name": "Printer not working", - "qc_type": [], - "question_set": [] - }, - { - "reasons": [ - { - "id": 4, - "display_name": "Card issues", - "qc_type": [], - "question_set": [] - } - ] - } - ] - }, - { - "id": 4, - "display_name": "Card issues", - "qc_type": [], - "question_set": [] - } - ] -} -``` -
- - - - - - - - - ---- - - -### getShipmentById - - - - -```javascript -// Promise -const promise = platformClient.order.getShipmentById({ channelShipmentId : value, - shipmentId : value, - fetchActiveShipment : value }); - -// Async/Await -const data = await platformClient.order.getShipmentById({ channelShipmentId : value, - shipmentId : value, - fetchActiveShipment : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| channelShipmentId | string | no | App Shipment Id | -| shipmentId | string | no | Shipment Id | -| fetchActiveShipment | boolean | no | flag to fetch active or deactivated shipments | - - - -Get shipment details for the given shipment. - -*Returned Response:* - - - - -[ShipmentInfoResponse](#ShipmentInfoResponse) - -We are processing the report! - - - - -
-  Example: - -```json -{ - "success": true, - "order": { - "fynd_order_id": "FY62B13E2101810C19E4", - "shipment_count": 1, - "order_date": "2022-06-21T09:12:26+00:00" - }, - "shipments": [ - { - "shipment_id": "16557829457641286433", - "payment_mode": "COD", - "fulfilling_store": { - "meta": {}, - "id": 1, - "code": "HS-468a5", - "fulfillment_channel": "pulse", - "store_name": "Reliance Industries Ltd - Jio Market", - "contact_person": "", - "phone": "8268108880", - "address": "high_street WEWORK, VIJAY DIAMONDS, ANDHERI MUMBAI MAHARASHTRA 400093", - "city": "MUMBAI", - "state": "MAHARASHTRA", - "country": "INDIA", - "pincode": "400093", - "tags": [ - "infibeam" - ] - }, - "delivery_details": { - "name": "Manish Prakash", - "email": "Manish.Prakash@ril.com", - "phone": "7787051611", - "address": "home 479 sector3 bokaro Bokaro Jharkhand 827003", - "city": "Bokaro", - "state": "Jharkhand", - "country": "India", - "pincode": "827003", - "state_code": 0 - }, - "billing_details": { - "name": "Manish Prakash", - "email": "Manish.Prakash@ril.com", - "phone": "7787051611", - "address": "home 479 sector3 bokaro Bokaro Jharkhand 827003", - "city": "Bokaro", - "state": "Jharkhand", - "country": "India", - "pincode": "827003", - "state_code": 0 - }, - "dp_details": { - "id": null, - "name": null, - "awb_no": null, - "eway_bill_id": null, - "track_url": null, - "gst_tag": "sgst" - }, - "journey_type": "forward", - "order": { - "fynd_order_id": "FY62B13E2101810C19E4", - "affiliate_id": "000000000000000000000001", - "ordering_channel": "FYND", - "source": "null", - "tax_details": { - "gstin": null - }, - "order_date": "2022-06-21T09:12:26+00:00" - }, - "gst_details": { - "value_of_good": 475.24, - "gst_fee": 23.76, - "brand_calculated_amount": 499, - "tax_collected_at_source": 0, - "gstin_code": null - }, - "shipment_quantity": 1, - "bag_status_history": [ - { - "status": "pending", - "updated_at": "2022-06-21T09:12:26+00:00", - "state_type": "operational", - "app_display_name": "Pending", - "display_name": "Pending", - "forward": null + "status": "pending", + "updated_at": "2022-06-21T09:12:26+00:00", + "state_type": "operational", + "app_display_name": "Pending", + "display_name": "Pending", + "forward": null }, { "status": "placed", @@ -4714,10 +4109,7 @@ We are processing the report! "time": 30, "unit": "days", "returnable": true - }, - "tags": [ - "1P" - ] + } }, "quantity": 1 } @@ -5838,1281 +5230,51 @@ List of filters }, { "name": "Web Store", - "value": "webstore" - } - ] - }, - { - "text": "Order Source", - "value": "order_source", - "type": "single_select", - "options": [ - { - "name": "Uniket", - "value": "uniket" - }, - { - "name": "Fynd", - "value": "fynd" - }, - { - "name": "Fynd Store", - "value": "fynd_store" - }, - { - "name": "Affiliate", - "value": "affiliate" - } - ] - }, - { - "text": "Payment Methods", - "value": "payment_methods", - "type": "single_select", - "options": [ - { - "text": "COD", - "value": "COD" - }, - { - "text": "Prepaid", - "value": "PREPAID" - } - ] - } - ] - } -} -``` -
- - - - - - - - - ---- - - -### getuserviews - - - - -```javascript -// Promise -const promise = platformClient.order.getuserviews(); - -// Async/Await -const data = await platformClient.order.getuserviews(); -``` - - - - - - -Get User views(User cross company views) - -*Returned Response:* - - - - -[UserViewsResponse](#UserViewsResponse) - -Success. Check the example shown below. - - - - -
-  Example: - -```json -{ - "parent_views": [ - { - "views": [ - { - "id": "65858ec5e5a448bea2d30c0d", - "slug": "packed", - "text": "Packed", - "filters": [ - { - "label": "Shipment Status", - "value": "bag_status", - "options": [ - { - "label": "Placed", - "value": "placed" - }, - { - "label": "My New State", - "value": "my_new_state" - } - ] - }, - { - "label": "Shipment Active Status", - "value": "is_active", - "options": [ - { - "label": "Active Shipments", - "value": true - }, - { - "label": "Inactive Shipments", - "value": false - } - ] - }, - { - "label": "Shipment Lock Status", - "value": "lock_status", - "options": [ - { - "label": "Locked Shipments", - "value": "locked" - }, - { - "label": "Unlocked Shipments", - "value": "complete" - } - ] - }, - { - "label": "Delivery Partners", - "value": "dps", - "options": [ - { - "label": "Xpress Bee", - "value": "3b2r8g27r8" - }, - { - "label": "Self Ship", - "value": "self_ship" - } - ] - } - ] - } - ], - "parent_slug": "processed", - "parent_text": "Processed" - }, - { - "views": [ - { - "id": "65858e50e5a448bea2d30c0c", - "slug": "reassigned", - "text": "Reassigned", - "filters": [ - { - "label": "Shipment Status", - "value": "bag_status", - "options": [ - { - "label": "Placed", - "value": "placed" - }, - { - "label": "My New State", - "value": "my_new_state" - } - ] - }, - { - "label": "Shipment Active Status", - "value": "is_active", - "options": [ - { - "label": "Active Shipments", - "value": true - }, - { - "label": "Inactive Shipments", - "value": false - } - ] - }, - { - "label": "Shipment Lock Status", - "value": "lock_status", - "options": [ - { - "label": "Locked Shipments", - "value": "locked" - }, - { - "label": "Unlocked Shipments", - "value": "complete" - } - ] - }, - { - "label": "Delivery Partners", - "value": "dps", - "options": [ - { - "label": "Xpress Bee", - "value": "3b2r8g27r8" - }, - { - "label": "Self Ship", - "value": "self_ship" - } - ] - } - ] - } - ], - "parent_slug": "unfilfilled", - "parent_text": "Unfulfilled" - } - ] -} -``` -
- - - - - - - - - ---- - - -### globalfilters - - - - -```javascript -// Promise -const promise = platformClient.order.globalfilters({ showIn : value, - requestSource : value }); - -// Async/Await -const data = await platformClient.order.globalfilters({ showIn : value, - requestSource : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| showIn | string | yes | Name of view to get filters for | -| requestSource | string | yes | Name of site (Platform/Admin) | - - - -Get Global Filters - -*Returned Response:* - - - - -[GlobalFiltersResponse](#GlobalFiltersResponse) - -Global list of filters - - - - -
-  Example: - -```json -{ - "filters": [ - { - "label": "Fulfilling Stores", - "value": "stores", - "filter_type": "global", - "type": "single_select", - "options": [] - }, - { - "label": "Sort Type", - "value": "sort_type", - "type": "single_select", - "filter_type": "global", - "options": [ - { - "label": "SLA", - "value": "sla_asc" - }, - { - "label": "Newest First", - "value": "created_date_desc" - }, - { - "label": "Oldest First", - "value": "created_date_asc" - } - ] - }, - { - "label": "Search Types", - "value": "search_type", - "type": "single_select", - "filter_type": "global", - "options": [ - { - "label": "Auto", - "value": "auto", - "placeholder_text": "Search by Shipment ID, Order ID or Customer Email", - "min_search_size": 5, - "show_ui": true - }, - { - "label": "Shipment ID", - "value": "shipment_id", - "placeholder_text": "Search by Shipment ID", - "min_search_size": 6, - "show_ui": true - }, - { - "text": "User ID", - "value": "user_id", - "placeholder_text": "Search by User ID", - "min_search_size": 4, - "show_ui": false - }, - { - "label": "Bag ID", - "value": "bag_id", - "placeholder_text": "Search by Bag ID", - "min_search_size": 4, - "show_ui": true - }, - { - "label": "Order ID", - "value": "order_id", - "placeholder_text": "Search by Order ID", - "min_search_size": 6, - "show_ui": true - }, - { - "label": "External Order ID", - "value": "external_order_id", - "placeholder_text": "Search by External Order ID", - "min_search_size": 6, - "show_ui": true - }, - { - "label": "External Bag ID", - "value": "external_bag_id", - "placeholder_text": "Search by External Bag ID", - "min_search_size": 6, - "show_ui": true - }, - { - "label": "External Shipment ID", - "value": "external_shipment_id", - "placeholder_text": "Search by External Shipment ID", - "min_search_size": 6, - "show_ui": true - }, - { - "label": "Channel Shipment ID", - "value": "channel_shipment_id", - "placeholder_text": "Search by Channel Shipment ID", - "min_search_size": 6, - "show_ui": true - }, - { - "label": "Invoice", - "value": "invoice_id", - "placeholder_text": "Search by Invoice", - "min_search_size": 5, - "show_ui": true - }, - { - "label": "AWB", - "value": "awb_no", - "placeholder_text": "Search by AWB", - "min_search_size": 10, - "show_ui": true - }, - { - "label": "SKU", - "value": "sku", - "placeholder_text": "Search by SKU", - "min_search_size": 3, - "show_ui": true - }, - { - "label": "EAN", - "value": "ean", - "placeholder_text": "Search by EAN", - "min_search_size": 3, - "show_ui": true - }, - { - "label": "ALU", - "value": "alu", - "placeholder_text": "Search by ALU", - "min_search_size": 3, - "show_ui": true - }, - { - "label": "UPC", - "value": "upc", - "placeholder_text": "Search by UPC", - "min_search_size": 3, - "show_ui": true - }, - { - "label": "Customer Registered Phone", - "value": "registered_phone", - "placeholder_text": "Search by Customer Registered Phone", - "min_search_size": 3, - "show_ui": true - }, - { - "label": "Customer Name", - "value": "name", - "placeholder_text": "Search by Customer Name", - "min_search_size": 3, - "show_ui": true - }, - { - "label": "Customer Phone", - "value": "phone", - "placeholder_text": "Search by Customer Phone", - "min_search_size": 3, - "show_ui": true - }, - { - "label": "Customer Email", - "value": "email", - "placeholder_text": "Search by Customer Email", - "min_search_size": 5, - "show_ui": true - }, - { - "label": "Return ID", - "value": "return_id", - "placeholder_text": "Search by Return ID", - "min_search_size": 5, - "show_ui": true - }, - { - "text": "Tags", - "value": "tags", - "placeholder_text": "Search by Tags", - "min_search_size": 3, - "show_ui": false - } - ] - }, - { - "label": "Shipment Status", - "filter_type": "advance", - "value": "bag_status", - "type": "multi_select", - "options": [ - { - "label": "Order Start 1", - "value": { - "state_type": "operational", - "slug": "order-start", - "label": "Order Start 1" - } - }, - { - "label": "sameeer", - "value": { - "state_type": "operational", - "slug": "sameeer", - "label": "sameeer" - } - }, - { - "label": "Talha test demo 2", - "value": { - "state_type": "operational", - "slug": "talha-test-demo-2", - "label": "Talha test demo 2" - } - }, - { - "label": "Refund Acknowledged 22", - "value": { - "state_type": "financial", - "slug": "refund-acknowledged-22", - "label": "Refund Acknowledged 22" - } - }, - { - "label": "Shomin Test", - "value": { - "state_type": "operational", - "slug": "shomin-test", - "label": "Shomin Test" - } - }, - { - "label": "Amit", - "value": { - "state_type": "operational", - "slug": "amit", - "label": "Amit" - } - }, - { - "label": "Niteen A", - "value": { - "state_type": "operational", - "slug": "niteen-a", - "label": "Niteen A" - } - }, - { - "label": "Rahul rathod", - "value": { - "state_type": "operational", - "slug": "rahul-rathod", - "label": "Rahul rathod" - } - }, - { - "label": "Sameer Kadam", - "value": { - "state_type": "operational", - "slug": "sameer-kadam", - "label": "Sameer Kadam" - } - }, - { - "label": "sameer", - "value": { - "state_type": "operational", - "slug": "sameer", - "label": "sameer" - } - }, - { - "label": "talha test 6", - "value": { - "state_type": "operational", - "slug": "ta", - "label": "talha test 6" - } - }, - { - "label": "Talha", - "value": { - "state_type": "operational", - "slug": "talha", - "label": "Talha" - } - }, - { - "label": "Refund Acknowledged 22", - "value": { - "state_type": "financial", - "slug": "refund_acknowledged_22", - "label": "Refund Acknowledged 22" - } - }, - { - "label": "Refund On Hold 24", - "value": { - "state_type": "financial", - "slug": "refund_on_hold_24", - "label": "Refund On Hold 24" - } - }, - { - "label": "refund_acknowledged_22", - "value": { - "state_type": "operational", - "slug": "Refund Acknowledged 22", - "label": "refund_acknowledged_22" - } - }, - { - "label": "Refund on Hold 2", - "value": { - "state_type": "financial", - "slug": "refund_on_hold_2", - "label": "Refund on Hold 2" - } - }, - { - "label": "Refund Acknowledged 3", - "value": { - "state_type": "operational", - "slug": "refund_acknowledged_2", - "label": "Refund Acknowledged 3" - } - }, - { - "label": "Refund Acknowledged 21", - "value": { - "state_type": "operational", - "slug": "refund_acknowledged_1", - "label": "Refund Acknowledged 21" - } - }, - { - "label": "Refund Acknowledged", - "value": { - "state_type": "financial", - "slug": "refund_acknowledged", - "label": "Refund Acknowledged" - } - }, - { - "label": "Refund pending for Approval", - "value": { - "state_type": "financial", - "slug": "refund_pending_for_approval", - "label": "Refund pending for Approval" - } - } - ] - }, - { - "label": "Time to Dispatch", - "value": "time_to_dispatch", - "type": "single_select", - "filter_type": "advance", - "placeholder_text": "Select time to dispatch", - "options": [ - { - "label": "Breached", - "value": "1" - }, - { - "label": "Not Breached", - "value": "-1" - } - ] - }, - { - "label": "Payment Methods", - "value": "payment_methods", - "type": "single_select", - "filter_type": "advance", - "placeholder_text": "Select payment methods", - "options": [ - { - "label": "COD", - "value": "COD" - }, - { - "label": "Prepaid", - "value": "PREPAID" - } - ] - }, - { - "label": "Delivery Partner", - "value": "dp_ids", - "filter_type": "advance", - "type": "multi_select", - "placeholder_text": "Select delivery partners", - "required": true, - "options": [ - { - "label": "Self Delivery", - "value": "652255c58ab4101b2595c6c5|652255c58ab4101b2595c6c5", - "name": "Self Delivery" - } - ] - }, - { - "label": "Sales Channel", - "value": "sales_channels", - "placeholder_text": "Select sales channels", - "filter_type": "advance", - "type": "multi_select", - "required": false, - "options": [ - { - "label": "Test Company - 1", - "value": "655cbbb68bd7831239082ce1", - "name": "Test Company - 1" - } - ] - }, - { - "label": "Tags", - "value": "tags", - "filter_type": "advance", - "type": "multi_select", - "placeholder_text": "Select tags", - "required": false, - "options": [] - } - ], - "company_id": null, - "request_source": "platform", - "show_in": "shipment_view" -} -``` -
- - - - - - - - - ---- - - -### invalidateShipmentCache - - - - -```javascript -// Promise -const promise = platformClient.order.invalidateShipmentCache({ body : value }); - -// Async/Await -const data = await platformClient.order.invalidateShipmentCache({ body : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| body | [InvalidateShipmentCachePayload](#InvalidateShipmentCachePayload) | yes | Request body | - - -Invalidate shipment Cache - -*Returned Response:* - - - - -[InvalidateShipmentCacheResponse](#InvalidateShipmentCacheResponse) - -Successfully updated shipment cache! - - - - -
-  Example: - -```json -{ - "response": [ - { - "message": "Shipment sync initiated", - "status": 200, - "shipment_id": "16838049724111283577", - "error": "" - }, - { - "message": "Cannot update cache if shipment in pending, payment_failed or awaiting_payment_confirmation", - "status": 400, - "shipment_id": "16836368409661507353", - "error": "" - }, - { - "message": "Problem while deleting the cache", - "status": 500, - "shipment_id": "16838049724111283577", - "error": "Internal Exception" - } - ] -} -``` -
- - - - - - - - - ---- - - -### jobDetails - - - - -```javascript -// Promise -const promise = platformClient.order.jobDetails({ batchId : value }); - -// Async/Await -const data = await platformClient.order.jobDetails({ batchId : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| batchId | string | yes | | - - - -Fetches details for the job of the provided batch_id - -*Returned Response:* - - - - -[JobDetailsResponse](#JobDetailsResponse) - -Job details. - - - - -
-  Examples: - - -
-  JobDetailsSucessfulEventSample - -```json -{ - "value": { - "success": true, - "data": [ - { - "batch_id": "1dc51db3-89fc-4985-9237-d96efb9060ae", - "total_shipments_count": 1, - "successful_shipment_ids": [], - "successful_shipments_count": 0, - "failed_shipments_count": 1, - "processing_shipments_count": 0, - "company_id": "2" - } - ], - "file_url": "https://cdn.fynd.com/v2/falling-surf-7c8bb8/fyndnp/wrkr/addsale/misc/general/free/original/kctNhcXxX-UV71fzH2U-store_reassigned_and_placed_and__3809_1694082156.8009899.csv", - "failed_records": [ - { - "all": "due to no of rows being less than 2 or greater than 5000" - } - ], - "uploaded_by": "mohitmahatme_gofynd_com_31814", - "user_id": "d7595ec4e390849545a68c92", - "uploaded_on": "2023-09-07T15:55:24+00:00", - "status": "FAILED" - } -} -``` -
- -
- - - - - - - - - ---- - - -### orderUpdate - - - - -```javascript -// Promise -const promise = platformClient.order.orderUpdate({ body : value }); - -// Async/Await -const data = await platformClient.order.orderUpdate({ body : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| body | [PlatformOrderUpdate](#PlatformOrderUpdate) | yes | Request body | - - -Update Order - -*Returned Response:* - - - - -[ResponseDetail](#ResponseDetail) - -We are processing the order! - - - - -
-  Example: - -```json - -``` -
- - - - - - - - - ---- - - -### postRefundConfiguration - - - - -```javascript -// Promise -const promise = platformClient.order.postRefundConfiguration({ appId : value, - body : value }); - -// Async/Await -const data = await platformClient.order.postRefundConfiguration({ appId : value, - body : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| appId | string | yes | | -| body | [RefundStateConfigurationManualSchema](#RefundStateConfigurationManualSchema) | yes | Request body | - - -refund configuration. - -*Returned Response:* - - - - -[RefundStateConfigurationManualSchemaResponse](#RefundStateConfigurationManualSchemaResponse) - -refund config. - - - - -
-  Example: - -```json -{ - "success": true, - "data": { - "prepaid": { - "message": "manual refund for prepaid", - "is_manual": false - }, - "non_prepaid": { - "message": "manual refund for non_prepaid", - "is_manual": true - } - } -} -``` -
- - - - - - - - - ---- - - -### postRefundStateConfiguration - - - - -```javascript -// Promise -const promise = platformClient.order.postRefundStateConfiguration({ appId : value, - body : value }); - -// Async/Await -const data = await platformClient.order.postRefundStateConfiguration({ appId : value, - body : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| appId | string | yes | | -| body | [PostRefundStateConfiguration](#PostRefundStateConfiguration) | yes | Request body | - - -Refund State Configuration - -*Returned Response:* - - - - -[PostRefundStateConfigurationResponse](#PostRefundStateConfigurationResponse) - -create refund configuration successfully - - - - -
-  Example: - -```json -{ - "success": true, - "message": "update refund configuration successfully" -} -``` -
- - - - - - - - - ---- - - -### postShipmentHistory - - - - -```javascript -// Promise -const promise = platformClient.order.postShipmentHistory({ body : value }); - -// Async/Await -const data = await platformClient.order.postShipmentHistory({ body : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| body | [PostShipmentHistory](#PostShipmentHistory) | yes | Request body | - - -Post shipment history - -*Returned Response:* - - - - -[ShipmentHistoryResponse](#ShipmentHistoryResponse) - -It shows the journey of the shipment! - - - - -
-  Example: - -```json -{ - "activity_history": [ - { - "message": "Bag status changed to pending", - "store_id": 10, - "store_code": "SF94", - "store_name": "shub", - "reason": {}, - "createdat": "01 Apr 2022, 17:57:PM", - "user": "system", - "type": "activity_status", - "l1_detail": "", - "l2_detail": "", - "l3_detail": "", - "ticket_id": "", - "ticket_url": "" - }, - { - "message": "Bag status changed to placed", - "store_id": 10, - "store_code": "SF94", - "store_name": "shub", - "reason": {}, - "type": "activity_status", - "createdat": "01 Apr 2022, 17:57:PM", - "user": "system", - "l1_detail": "", - "l2_detail": "", - "l3_detail": "", - "ticket_id": "", - "ticket_url": "" - } - ], - "success": true -} -``` -
- - - - - - - - - ---- - - -### postuserviews - - - - -```javascript -// Promise -const promise = platformClient.order.postuserviews({ body : value }); - -// Async/Await -const data = await platformClient.order.postuserviews({ body : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| body | [UserViewsResponse](#UserViewsResponse) | yes | Request body | - - -Add User views(User cross company views) - -*Returned Response:* - - - - -[CreateUpdateDeleteResponse](#CreateUpdateDeleteResponse) - -Success. Check the example shown below. - - - - -
-  Example: - -```json -{ - "message": "User view added successfully" -} -``` -
- - - - - - - - - ---- - - -### processManifests - - - - -```javascript -// Promise -const promise = platformClient.order.processManifests({ body : value }); - -// Async/Await -const data = await platformClient.order.processManifests({ body : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| body | [ProcessManifest](#ProcessManifest) | yes | Request body | - - -Process Manifest. - -*Returned Response:* - - - - -[ProcessManifestItemResponse](#ProcessManifestItemResponse) - -Manifest will be processed! - - - - -
-  Example: - -```json - + "value": "webstore" + } + ] + }, + { + "text": "Order Source", + "value": "order_source", + "type": "single_select", + "options": [ + { + "name": "Uniket", + "value": "uniket" + }, + { + "name": "Fynd", + "value": "fynd" + }, + { + "name": "Fynd Store", + "value": "fynd_store" + }, + { + "name": "Affiliate", + "value": "affiliate" + } + ] + }, + { + "text": "Payment Methods", + "value": "payment_methods", + "type": "single_select", + "options": [ + { + "text": "COD", + "value": "COD" + }, + { + "text": "Prepaid", + "value": "PREPAID" + } + ] + } + ] + } +} ```
@@ -7127,17 +5289,17 @@ Manifest will be processed! --- -### reassignLocation +### invalidateShipmentCache ```javascript // Promise -const promise = platformClient.order.reassignLocation({ body : value }); +const promise = platformClient.order.invalidateShipmentCache({ body : value }); // Async/Await -const data = await platformClient.order.reassignLocation({ body : value }); +const data = await platformClient.order.invalidateShipmentCache({ body : value }); ``` @@ -7146,19 +5308,19 @@ const data = await platformClient.order.reassignLocation({ body : value }); | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| body | [StoreReassign](#StoreReassign) | yes | Request body | +| body | [InvalidateShipmentCachePayload](#InvalidateShipmentCachePayload) | yes | Request body | -Reassign Location +Invalidate shipment Cache *Returned Response:* -[StoreReassignResponse](#StoreReassignResponse) +[InvalidateShipmentCacheResponse](#InvalidateShipmentCacheResponse) -Successfully reassigned location! +Successfully updated shipment cache! @@ -7167,7 +5329,28 @@ Successfully reassigned location!   Example: ```json - +{ + "response": [ + { + "message": "Shipment sync initiated", + "status": 200, + "shipment_id": "16838049724111283577", + "error": "" + }, + { + "message": "Cannot update cache if shipment in pending, payment_failed or awaiting_payment_confirmation", + "status": 400, + "shipment_id": "16836368409661507353", + "error": "" + }, + { + "message": "Problem while deleting the cache", + "status": 500, + "shipment_id": "16838049724111283577", + "error": "Internal Exception" + } + ] +} ``` @@ -7182,17 +5365,17 @@ Successfully reassigned location! --- -### sendSmsNinja +### jobDetails ```javascript // Promise -const promise = platformClient.order.sendSmsNinja({ body : value }); +const promise = platformClient.order.jobDetails({ batchId : value }); // Async/Await -const data = await platformClient.order.sendSmsNinja({ body : value }); +const data = await platformClient.order.jobDetails({ batchId : value }); ``` @@ -7200,99 +5383,64 @@ const data = await platformClient.order.sendSmsNinja({ body : value }); | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| body | [SendSmsPayload](#SendSmsPayload) | yes | Request body | +| --------- | ----- | -------- | ----------- | +| batchId | string | yes | | -Send SMS Ninja Panel + +Fetches details for the job of the provided batch_id *Returned Response:* -[OrderStatusResult](#OrderStatusResult) +[JobDetailsResponse](#JobDetailsResponse) -Sms Sent successfully +Job details.
-  Example: - -```json -{ - "success": "true", - "message": "Successfully emitted aldaviz-delayed-shipment-event" -} -``` -
- - - - - - - - - ---- - - -### sendUserMobileOTP - - - - -```javascript -// Promise -const promise = platformClient.order.sendUserMobileOTP({ body : value }); - -// Async/Await -const data = await platformClient.order.sendUserMobileOTP({ body : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| body | [SendUserMobileOTP](#SendUserMobileOTP) | yes | Request body | - - -Send User Mobile OTP - -*Returned Response:* - - - - -[SendUserMobileOtpResponse](#SendUserMobileOtpResponse) - -Send OTP to user mobile - - +  Examples:
-  Example: +  JobDetailsSucessfulEventSample ```json { - "success": true, - "data": { - "request_id": "112312312", - "message": "Text", - "resend_timer": 600, - "mobile": 99990000 - }, - "message": "Text" + "value": { + "success": true, + "data": [ + { + "batch_id": "1dc51db3-89fc-4985-9237-d96efb9060ae", + "total_shipments_count": 1, + "successful_shipment_ids": [], + "successful_shipments_count": 0, + "failed_shipments_count": 1, + "processing_shipments_count": 0, + "company_id": "2" + } + ], + "file_url": "https://cdn.fynd.com/v2/falling-surf-7c8bb8/fyndnp/wrkr/addsale/misc/general/free/original/kctNhcXxX-UV71fzH2U-store_reassigned_and_placed_and__3809_1694082156.8009899.csv", + "failed_records": [ + { + "all": "due to no of rows being less than 2 or greater than 5000" + } + ], + "uploaded_by": "mohitmahatme_gofynd_com_31814", + "user_id": "d7595ec4e390849545a68c92", + "uploaded_on": "2023-09-07T15:55:24+00:00", + "status": "FAILED" + } } ```
+ + @@ -7304,23 +5452,17 @@ Send OTP to user mobile --- -### trackShipment +### orderUpdate ```javascript // Promise -const promise = platformClient.order.trackShipment({ shipmentId : value, - awb : value, - pageNo : value, - pageSize : value }); +const promise = platformClient.order.orderUpdate({ body : value }); // Async/Await -const data = await platformClient.order.trackShipment({ shipmentId : value, - awb : value, - pageNo : value, - pageSize : value }); +const data = await platformClient.order.orderUpdate({ body : value }); ``` @@ -7328,66 +5470,30 @@ const data = await platformClient.order.trackShipment({ shipmentId : value, | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| shipmentId | string | no | Shipment ID | -| awb | string | no | AWB number | -| pageNo | number | no | Page number | -| pageSize | number | no | Page size | - +| --------- | ----- | -------- | ----------- | +| body | [PlatformOrderUpdate](#PlatformOrderUpdate) | yes | Request body | -This endpoint allows users to get courier partner tracking details for a given shipment id or awb no. The service will fetch courier partner statuses that are pushed to oms. +Update Order *Returned Response:* -[CourierPartnerTrackingResponse](#CourierPartnerTrackingResponse) - -Shipment Tracking fetched successfully - - - - -
-  Examples: +[ResponseDetail](#ResponseDetail) +We are processing the order! -
-  success -```json -{ - "value": { - "items": [ - { - "awb": "713191641", - "dp_location": "Mumbai", - "dp_name": "Ecom b2b", - "dp_status": "dp_assigned", - "dp_status_updated_at": "2023-07-12T20:17:46.384Z", - "estimated_delivery_date": "2023-07-12T20:17:46.384Z", - "id": 370, - "journey": "forward", - "operational_status": "dp_assigned", - "promised_delivery_date": "2023-07-12T20:17:46.384Z", - "remark": "UD -Manifested", - "shipment_id": "16908065964581066182" - } - ], - "page": { - "current": 1, - "has_next": true, - "item_total": 3, - "size": 200, - "type": "number" - } - } -} -``` -
+ +
+  Example: + +```json + +```
@@ -7401,17 +5507,17 @@ Shipment Tracking fetched successfully --- -### trackShipmentPlatform -Track shipment +### postShipmentHistory + ```javascript // Promise -const promise = platformClient.application("").order.trackShipmentPlatform({ shipmentId : value }); +const promise = platformClient.order.postShipmentHistory({ body : value }); // Async/Await -const data = await platformClient.application("").order.trackShipmentPlatform({ shipmentId : value }); +const data = await platformClient.order.postShipmentHistory({ body : value }); ``` @@ -7419,21 +5525,20 @@ const data = await platformClient.application("").order.trackShi | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| shipmentId | string | yes | Shipment Id | - +| --------- | ----- | -------- | ----------- | +| body | [PostShipmentHistory](#PostShipmentHistory) | yes | Request body | -Track Shipment by shipment id, for application based on application Id +Post shipment history *Returned Response:* -[PlatformShipmentTrack](#PlatformShipmentTrack) +[ShipmentHistoryResponse](#ShipmentHistoryResponse) -Success. Check the example shown below or refer `PlatformShipmentTrack` for more details. +It shows the journey of the shipment! @@ -7443,21 +5548,39 @@ Success. Check the example shown below or refer `PlatformShipmentTrack` for more ```json { - "meta": {}, - "results": [ + "activity_history": [ { - "updated_at": "24 Nov, 12:39 PM", - "last_location_recieved_at": "Thane", - "reason": "Fyndr", - "shipment_type": "forward", - "status": "dp_assigned", - "updated_time": "2022-11-24T12:39:38+05:30", - "account_name": "fyndr", - "awb": "2125658183710", - "raw_status": "dp_assigned", - "meta": {} + "message": "Bag status changed to pending", + "store_id": 10, + "store_code": "SF94", + "store_name": "shub", + "reason": {}, + "createdat": "01 Apr 2022, 17:57:PM", + "user": "system", + "type": "activity_status", + "l1_detail": "", + "l2_detail": "", + "l3_detail": "", + "ticket_id": "", + "ticket_url": "" + }, + { + "message": "Bag status changed to placed", + "store_id": 10, + "store_code": "SF94", + "store_name": "shub", + "reason": {}, + "type": "activity_status", + "createdat": "01 Apr 2022, 17:57:PM", + "user": "system", + "l1_detail": "", + "l2_detail": "", + "l3_detail": "", + "ticket_id": "", + "ticket_url": "" } - ] + ], + "success": true } ```
@@ -7473,39 +5596,17 @@ Success. Check the example shown below or refer `PlatformShipmentTrack` for more --- -### updateAddress +### processManifests ```javascript // Promise -const promise = platformClient.order.updateAddress({ shipmentId : value, - addressCategory : value, - name : value, - address : value, - addressType : value, - pincode : value, - phone : value, - email : value, - landmark : value, - city : value, - state : value, - country : value }); +const promise = platformClient.order.processManifests({ body : value }); // Async/Await -const data = await platformClient.order.updateAddress({ shipmentId : value, - addressCategory : value, - name : value, - address : value, - addressType : value, - pincode : value, - phone : value, - email : value, - landmark : value, - city : value, - state : value, - country : value }); +const data = await platformClient.order.processManifests({ body : value }); ``` @@ -7513,32 +5614,20 @@ const data = await platformClient.order.updateAddress({ shipmentId : value, | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| shipmentId | string | yes | | -| name | string | no | | -| address | string | no | | -| addressType | string | no | | -| pincode | string | no | | -| phone | string | no | | -| email | string | no | | -| landmark | string | no | | -| addressCategory | string | yes | | -| city | string | no | | -| state | string | no | | -| country | string | no | | - +| --------- | ----- | -------- | ----------- | +| body | [ProcessManifest](#ProcessManifest) | yes | Request body | -Update Address for the order +Process Manifest. *Returned Response:* -[BaseResponse](#BaseResponse) +[ProcessManifestItemResponse](#ProcessManifestItemResponse) -Update Address will be processed! +Manifest will be processed! @@ -7562,17 +5651,17 @@ Update Address will be processed! --- -### updatePackagingDimensions +### reassignLocation ```javascript // Promise -const promise = platformClient.order.updatePackagingDimensions({ body : value }); +const promise = platformClient.order.reassignLocation({ body : value }); // Async/Await -const data = await platformClient.order.updatePackagingDimensions({ body : value }); +const data = await platformClient.order.reassignLocation({ body : value }); ``` @@ -7581,19 +5670,19 @@ const data = await platformClient.order.updatePackagingDimensions({ body : valu | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| body | [UpdatePackagingDimensionsPayload](#UpdatePackagingDimensionsPayload) | yes | Request body | +| body | [StoreReassign](#StoreReassign) | yes | Request body | -Update Packaging Dimensions +Reassign Location *Returned Response:* -[UpdatePackagingDimensionsResponse](#UpdatePackagingDimensionsResponse) +[StoreReassignResponse](#StoreReassignResponse) -Manifest will be processed! +Successfully reassigned location! @@ -7617,19 +5706,17 @@ Manifest will be processed! --- -### updateRule +### sendSmsNinja ```javascript // Promise -const promise = platformClient.application("").order.updateRule({ ruleId : value, - body : value }); +const promise = platformClient.order.sendSmsNinja({ body : value }); // Async/Await -const data = await platformClient.application("").order.updateRule({ ruleId : value, - body : value }); +const data = await platformClient.order.sendSmsNinja({ body : value }); ``` @@ -7637,21 +5724,20 @@ const data = await platformClient.application("").order.updateRu | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| ruleId | string | yes | | -| body | [RuleUpdateRequest](#RuleUpdateRequest) | yes | Request body | +| --------- | ----- | -------- | ----------- | +| body | [SendSmsPayload](#SendSmsPayload) | yes | Request body | -Update a specific rule by ID +Send SMS Ninja Panel *Returned Response:* -[RuleUpdateResponse](#RuleUpdateResponse) +[OrderStatusResult](#OrderStatusResult) -Successful response +Sms Sent successfully @@ -7660,7 +5746,10 @@ Successful response   Example: ```json - +{ + "success": "true", + "message": "Successfully emitted aldaviz-delayed-shipment-event" +} ``` @@ -7675,17 +5764,17 @@ Successful response --- -### updateRulePosition +### sendUserMobileOTP ```javascript // Promise -const promise = platformClient.application("").order.updateRulePosition({ body : value }); +const promise = platformClient.order.sendUserMobileOTP({ body : value }); // Async/Await -const data = await platformClient.application("").order.updateRulePosition({ body : value }); +const data = await platformClient.order.sendUserMobileOTP({ body : value }); ``` @@ -7694,19 +5783,19 @@ const data = await platformClient.application("").order.updateRu | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| body | [UpdateRulePositionRequest](#UpdateRulePositionRequest) | yes | Request body | +| body | [SendUserMobileOTP](#SendUserMobileOTP) | yes | Request body | -Update the position of a rule +Send User Mobile OTP *Returned Response:* -[UpdateRulePositionResponse](#UpdateRulePositionResponse) +[SendUserMobileOtpResponse](#SendUserMobileOtpResponse) -Successful response +Send OTP to user mobile @@ -7715,7 +5804,16 @@ Successful response   Example: ```json - +{ + "success": true, + "data": { + "request_id": "112312312", + "message": "Text", + "resend_timer": 600, + "mobile": 99990000 + }, + "message": "Text" +} ``` @@ -7730,17 +5828,23 @@ Successful response --- -### updateShipmentLock +### trackShipment ```javascript // Promise -const promise = platformClient.order.updateShipmentLock({ body : value }); +const promise = platformClient.order.trackShipment({ shipmentId : value, + awb : value, + pageNo : value, + pageSize : value }); // Async/Await -const data = await platformClient.order.updateShipmentLock({ body : value }); +const data = await platformClient.order.trackShipment({ shipmentId : value, + awb : value, + pageNo : value, + pageSize : value }); ``` @@ -7748,57 +5852,68 @@ const data = await platformClient.order.updateShipmentLock({ body : value }); | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| body | [UpdateShipmentLockPayload](#UpdateShipmentLockPayload) | yes | Request body | +| --------- | ----- | -------- | ----------- | +| shipmentId | string | no | Shipment ID | +| awb | string | no | AWB number | +| pageNo | number | no | Page number | +| pageSize | number | no | Page size | -update shipment/bag lock and check status + +This endpoint allows users to get courier partner tracking details for a given shipment id or awb no. The service will fetch courier partner statuses that are pushed to oms. *Returned Response:* -[UpdateShipmentLockResponse](#UpdateShipmentLockResponse) +[CourierPartnerTrackingResponse](#CourierPartnerTrackingResponse) -Successfully update the Lock and get check status of the shipment/Bag +Shipment Tracking fetched successfully
-  Example: +  Examples: + + +
+  success ```json { - "success": true, - "message": "shipments checked successfully", - "check_response": [ - { - "bags": [ - { - "bag_id": 175644, - "is_locked": false, - "affiliate_bag_id": "def134", - "affiliate_order_id": "def134" - } - ], - "lock_status": "complete", - "is_bag_locked": false, - "is_shipment_locked": true, - "shipment_id": "16189206454951802898", - "affiliate_id": "5c764a6534add21972ef7b08", - "affiliate_shipment_id": "def134", - "original_filter": { - "shipment_id": "16189206454951802898" - }, - "status": "dp_assigned" + "value": { + "items": [ + { + "awb": "713191641", + "dp_location": "Mumbai", + "dp_name": "Ecom b2b", + "dp_status": "dp_assigned", + "dp_status_updated_at": "2023-07-12T20:17:46.384Z", + "estimated_delivery_date": "2023-07-12T20:17:46.384Z", + "id": 370, + "journey": "forward", + "operational_status": "dp_assigned", + "promised_delivery_date": "2023-07-12T20:17:46.384Z", + "remark": "UD -Manifested", + "shipment_id": "16908065964581066182" + } + ], + "page": { + "current": 1, + "has_next": true, + "item_total": 3, + "size": 200, + "type": "number" } - ] + } } ```
+
+ @@ -7810,17 +5925,17 @@ Successfully update the Lock and get check status of the shipment/Bag --- -### updateShipmentStatus - +### trackShipmentPlatform +Track shipment ```javascript // Promise -const promise = platformClient.order.updateShipmentStatus({ body : value }); +const promise = platformClient.application("").order.trackShipmentPlatform({ shipmentId : value }); // Async/Await -const data = await platformClient.order.updateShipmentStatus({ body : value }); +const data = await platformClient.application("").order.trackShipmentPlatform({ shipmentId : value }); ``` @@ -7828,20 +5943,21 @@ const data = await platformClient.order.updateShipmentStatus({ body : value }); | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| body | [UpdateShipmentStatusRequest](#UpdateShipmentStatusRequest) | yes | Request body | +| --------- | ----- | -------- | ----------- | +| shipmentId | string | yes | Shipment Id | -This API is for Shipment State transition or Shipment data update or both below example is for partial state transition with data update + +Track Shipment by shipment id, for application based on application Id *Returned Response:* -[UpdateShipmentStatusResponseBody](#UpdateShipmentStatusResponseBody) +[PlatformShipmentTrack](#PlatformShipmentTrack) -NOTE success response can contains success and failed result as well +Success. Check the example shown below or refer `PlatformShipmentTrack` for more details. @@ -7851,31 +5967,19 @@ NOTE success response can contains success and failed result as well ```json { - "statuses": [ - { - "shipments": [ - { - "status": 200, - "final_state": { - "bag_confirmed": "bag_confirmed", - "shipment_id": "16836279770211860494" - }, - "identifier": "16836279770211860494" - } - ] - }, + "meta": {}, + "results": [ { - "shipments": [ - { - "status": 400, - "message": "Invalid State Transition bag_confirmed detected for given entity", - "code": "", - "exception": "ValidationError", - "stack_trace": "", - "meta": {}, - "identifier": "16836279770211860494" - } - ] + "updated_at": "24 Nov, 12:39 PM", + "last_location_recieved_at": "Thane", + "reason": "Fyndr", + "shipment_type": "forward", + "status": "dp_assigned", + "updated_time": "2022-11-24T12:39:38+05:30", + "account_name": "fyndr", + "awb": "2125658183710", + "raw_status": "dp_assigned", + "meta": {} } ] } @@ -7893,17 +5997,39 @@ NOTE success response can contains success and failed result as well --- -### updateShipmentTracking -Post courier partner tracking details +### updateAddress + ```javascript // Promise -const promise = platformClient.order.updateShipmentTracking({ body : value }); +const promise = platformClient.order.updateAddress({ shipmentId : value, + addressCategory : value, + name : value, + address : value, + addressType : value, + pincode : value, + phone : value, + email : value, + landmark : value, + city : value, + state : value, + country : value }); // Async/Await -const data = await platformClient.order.updateShipmentTracking({ body : value }); +const data = await platformClient.order.updateAddress({ shipmentId : value, + addressCategory : value, + name : value, + address : value, + addressType : value, + pincode : value, + phone : value, + email : value, + landmark : value, + city : value, + state : value, + country : value }); ``` @@ -7911,51 +6037,42 @@ const data = await platformClient.order.updateShipmentTracking({ body : value } | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| body | [CourierPartnerTrackingDetails](#CourierPartnerTrackingDetails) | yes | Request body | - +| --------- | ----- | -------- | ----------- | +| shipmentId | string | yes | | +| name | string | no | | +| address | string | no | | +| addressType | string | no | | +| pincode | string | no | | +| phone | string | no | | +| email | string | no | | +| landmark | string | no | | +| addressCategory | string | yes | | +| city | string | no | | +| state | string | no | | +| country | string | no | | -This endpoint allows users to post courier partner tracking details for a given shipment id or awb no. The service will add entry for courier partner statuses and will be saved to oms. -*Returned Response:* +Update Address for the order +*Returned Response:* -[CourierPartnerTrackingDetails](#CourierPartnerTrackingDetails) -Shipment Tracking updated successfully +[BaseResponse](#BaseResponse) +Update Address will be processed! -
-  Examples:
-  success +  Example: ```json -{ - "value": { - "awb": "713191641", - "dp_location": "Mumbai", - "dp_name": "Ecom b2b", - "dp_status": "dp_assigned", - "dp_status_updated_at": "2023-07-12T20:17:46.384Z", - "estimated_delivery_date": "2023-07-12T20:17:46.384Z", - "id": 370, - "journey": "forward", - "operational_status": "dp_assigned", - "promised_delivery_date": "2023-07-12T20:17:46.384Z", - "remark": "UD -Manifested", - "shipment_id": "16908065964581066182" - } -} -``` -
+```
@@ -7969,17 +6086,17 @@ Shipment Tracking updated successfully --- -### updateuserviews +### updatePackagingDimensions ```javascript // Promise -const promise = platformClient.order.updateuserviews({ body : value }); +const promise = platformClient.order.updatePackagingDimensions({ body : value }); // Async/Await -const data = await platformClient.order.updateuserviews({ body : value }); +const data = await platformClient.order.updatePackagingDimensions({ body : value }); ``` @@ -7988,19 +6105,19 @@ const data = await platformClient.order.updateuserviews({ body : value }); | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| body | [UserViewsResponse](#UserViewsResponse) | yes | Request body | +| body | [UpdatePackagingDimensionsPayload](#UpdatePackagingDimensionsPayload) | yes | Request body | -Update User views(User cross company views) +Update Packaging Dimensions *Returned Response:* -[CreateUpdateDeleteResponse](#CreateUpdateDeleteResponse) +[UpdatePackagingDimensionsResponse](#UpdatePackagingDimensionsResponse) -Success. Check the example shown below. +Manifest will be processed! @@ -8009,9 +6126,7 @@ Success. Check the example shown below.   Example: ```json -{ - "message": "User view updated successfully" -} + ``` @@ -8026,19 +6141,17 @@ Success. Check the example shown below. --- -### uploadConsents +### updateShipmentLock ```javascript // Promise -const promise = platformClient.order.uploadConsents({ manifestId : value, - body : value }); +const promise = platformClient.order.updateShipmentLock({ body : value }); // Async/Await -const data = await platformClient.order.uploadConsents({ manifestId : value, - body : value }); +const data = await platformClient.order.updateShipmentLock({ body : value }); ``` @@ -8046,21 +6159,20 @@ const data = await platformClient.order.uploadConsents({ manifestId : value, | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| manifestId | string | yes | | -| body | [UploadConsent](#UploadConsent) | yes | Request body | +| --------- | ----- | -------- | ----------- | +| body | [UpdateShipmentLockPayload](#UpdateShipmentLockPayload) | yes | Request body | -Upload Consent +update shipment/bag lock and check status *Returned Response:* -[SuccessResponse](#SuccessResponse) +[UpdateShipmentLockResponse](#UpdateShipmentLockResponse) -Successful Manifest upload! +Successfully update the Lock and get check status of the shipment/Bag @@ -8069,7 +6181,32 @@ Successful Manifest upload!   Example: ```json - +{ + "success": true, + "message": "shipments checked successfully", + "check_response": [ + { + "bags": [ + { + "bag_id": 175644, + "is_locked": false, + "affiliate_bag_id": "def134", + "affiliate_order_id": "def134" + } + ], + "lock_status": "complete", + "is_bag_locked": false, + "is_shipment_locked": true, + "shipment_id": "16189206454951802898", + "affiliate_id": "5c764a6534add21972ef7b08", + "affiliate_shipment_id": "def134", + "original_filter": { + "shipment_id": "16189206454951802898" + }, + "status": "dp_assigned" + } + ] +} ``` @@ -8084,17 +6221,17 @@ Successful Manifest upload! --- -### verifyMobileOTP +### updateShipmentStatus ```javascript // Promise -const promise = platformClient.order.verifyMobileOTP({ body : value }); +const promise = platformClient.order.updateShipmentStatus({ body : value }); // Async/Await -const data = await platformClient.order.verifyMobileOTP({ body : value }); +const data = await platformClient.order.updateShipmentStatus({ body : value }); ``` @@ -8103,19 +6240,19 @@ const data = await platformClient.order.verifyMobileOTP({ body : value }); | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| body | [VerifyMobileOTP](#VerifyMobileOTP) | yes | Request body | +| body | [UpdateShipmentStatusRequest](#UpdateShipmentStatusRequest) | yes | Request body | -Verify Mobile OTP +This API is for Shipment State transition or Shipment data update or both below example is for partial state transition with data update *Returned Response:* -[VerifyOtpResponse](#VerifyOtpResponse) +[UpdateShipmentStatusResponseBody](#UpdateShipmentStatusResponseBody) -Verify OTP +NOTE success response can contains success and failed result as well @@ -8124,7 +6261,35 @@ Verify OTP   Example: ```json - +{ + "statuses": [ + { + "shipments": [ + { + "status": 200, + "final_state": { + "bag_confirmed": "bag_confirmed", + "shipment_id": "16836279770211860494" + }, + "identifier": "16836279770211860494" + } + ] + }, + { + "shipments": [ + { + "status": 400, + "message": "Invalid State Transition bag_confirmed detected for given entity", + "code": "", + "exception": "ValidationError", + "stack_trace": "", + "meta": {}, + "identifier": "16836279770211860494" + } + ] + } + ] +} ``` @@ -8139,3721 +6304,3455 @@ Verify OTP --- +### updateShipmentTracking +Post courier partner tracking details -### Schemas - - -#### [ActionInfo](#ActionInfo) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | description | string | no | | - | display_text | string | no | | - | id | number | no | | - | slug | string | no | | - - ---- - -#### [AdvanceFilterInfo](#AdvanceFilterInfo) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | action_centre | [[FiltersInfo](#FiltersInfo)]? | yes | | - | applied_filters | string? | yes | | - | filters | [[FiltersInfo](#FiltersInfo)]? | yes | | - | page | string? | yes | | - | processed | [[FiltersInfo](#FiltersInfo)]? | yes | | - | returned | [[FiltersInfo](#FiltersInfo)]? | yes | | - | unfulfilled | [[FiltersInfo](#FiltersInfo)]? | yes | | - - ---- - -#### [Affiliate](#Affiliate) - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | config | [AffiliateConfig](#AffiliateConfig)? | yes | | - | id | string | no | | - | token | string | no | | - +```javascript +// Promise +const promise = platformClient.order.updateShipmentTracking({ body : value }); ---- +// Async/Await +const data = await platformClient.order.updateShipmentTracking({ body : value }); +``` -#### [AffiliateAppConfig](#AffiliateAppConfig) - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | created_at | string | no | | - | description | string? | yes | | - | id | string | no | | - | meta | [[AffiliateAppConfigMeta](#AffiliateAppConfigMeta)]? | yes | | - | name | string | no | | - | owner | string | no | | - | secret | string | no | | - | token | string | no | | - | updated_at | string | no | | - ---- -#### [AffiliateAppConfigMeta](#AffiliateAppConfigMeta) - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | name | string | no | | - | value | string | no | | - +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| body | [CourierPartnerTrackingDetails](#CourierPartnerTrackingDetails) | yes | Request body | ---- -#### [AffiliateBag](#AffiliateBag) +This endpoint allows users to post courier partner tracking details for a given shipment id or awb no. The service will add entry for courier partner statuses and will be saved to oms. - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | _id | string | no | | - | affiliate_meta | string | no | | - | affiliate_store_id | string | no | | - | amount_paid | number | no | | - | avl_qty | number | no | | - | company_id | number | no | | - | delivery_charge | number | no | | - | discount | number | no | | - | fynd_store_id | string | no | | - | hsn_code_id | string | no | | - | identifier | string | no | | - | item_id | number | no | | - | item_size | string | no | | - | modified_on | string | no | | - | pdf_links | [MarketPlacePdf](#MarketPlacePdf)? | yes | | - | price_effective | number | no | | - | price_marked | number | no | | - | quantity | number | no | | - | seller_identifier | string | no | | - | sku | string | no | | - | store_id | number | no | | - | transfer_price | number | no | | - | unit_price | number | no | | - +*Returned Response:* ---- -#### [AffiliateBagDetails](#AffiliateBagDetails) - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | affiliate_bag_id | string | no | | - | affiliate_meta | [AffiliateMeta](#AffiliateMeta) | no | | - | affiliate_order_id | string | no | | - | employee_discount | number? | yes | | - | loyalty_discount | number? | yes | | - ---- +[CourierPartnerTrackingDetails](#CourierPartnerTrackingDetails) -#### [AffiliateBagsDetails](#AffiliateBagsDetails) +Shipment Tracking updated successfully - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | affiliate_bag_id | string? | yes | | - | affiliate_meta | [AffiliateMeta](#AffiliateMeta)? | yes | | - | coupon_code | string? | yes | | - ---- -#### [AffiliateConfig](#AffiliateConfig) - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | app | [AffiliateAppConfig](#AffiliateAppConfig)? | yes | | - | app_company_id | number? | yes | | - | inventory | [AffiliateInventoryConfig](#AffiliateInventoryConfig)? | yes | | - +
+  Examples: ---- -#### [AffiliateDetails](#AffiliateDetails) +
+  success - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | ad_id | string? | yes | | - | affiliate_bag_id | string | no | | - | affiliate_id | string? | yes | | - | affiliate_meta | [AffiliateMeta](#AffiliateMeta) | no | | - | affiliate_order_id | string | no | | - | affiliate_shipment_id | string | no | | - | affiliate_store_id | string | no | | - | company_affiliate_tag | string? | yes | | - | config | [AffiliateConfig](#AffiliateConfig)? | yes | | - | pdf_links | [PDFLinks](#PDFLinks)? | yes | | - | shipment_meta | [ShipmentMeta](#ShipmentMeta) | no | | - +```json +{ + "value": { + "awb": "713191641", + "dp_location": "Mumbai", + "dp_name": "Ecom b2b", + "dp_status": "dp_assigned", + "dp_status_updated_at": "2023-07-12T20:17:46.384Z", + "estimated_delivery_date": "2023-07-12T20:17:46.384Z", + "id": 370, + "journey": "forward", + "operational_status": "dp_assigned", + "promised_delivery_date": "2023-07-12T20:17:46.384Z", + "remark": "UD -Manifested", + "shipment_id": "16908065964581066182" + } +} +``` +
---- +
-#### [AffiliateInventoryArticleAssignmentConfig](#AffiliateInventoryArticleAssignmentConfig) - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | post_order_reassignment | boolean? | yes | | - ---- -#### [AffiliateInventoryConfig](#AffiliateInventoryConfig) - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | article_assignment | [AffiliateInventoryArticleAssignmentConfig](#AffiliateInventoryArticleAssignmentConfig)? | yes | | - | inventory | [AffiliateInventoryStoreConfig](#AffiliateInventoryStoreConfig)? | yes | | - | logistics | [AffiliateInventoryLogisticsConfig](#AffiliateInventoryLogisticsConfig)? | yes | | - | order | [AffiliateInventoryOrderConfig](#AffiliateInventoryOrderConfig)? | yes | | - | payment | [AffiliateInventoryPaymentConfig](#AffiliateInventoryPaymentConfig)? | yes | | - ---- -#### [AffiliateInventoryLogisticsConfig](#AffiliateInventoryLogisticsConfig) - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | dp_assignment | boolean? | yes | | - --- -#### [AffiliateInventoryOrderConfig](#AffiliateInventoryOrderConfig) - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | force_reassignment | boolean? | yes | | - +### uploadConsents ---- -#### [AffiliateInventoryPaymentConfig](#AffiliateInventoryPaymentConfig) - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | mode_of_payment | string? | yes | | - | source | string? | yes | | - ---- +```javascript +// Promise +const promise = platformClient.order.uploadConsents({ manifestId : value, + body : value }); -#### [AffiliateInventoryStoreConfig](#AffiliateInventoryStoreConfig) +// Async/Await +const data = await platformClient.order.uploadConsents({ manifestId : value, + body : value }); +``` - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | store | string? | yes | | - ---- -#### [AffiliateMeta](#AffiliateMeta) - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | box_type | string? | yes | | - | channel_order_id | string? | yes | | - | channel_shipment_id | string? | yes | | - | coupon_code | string? | yes | | - | customer_selling_price | number? | yes | | - | due_date | string? | yes | | - | employee_discount | number? | yes | | - | fulfilment_priority | number? | yes | | - | is_priority | boolean? | yes | | - | is_serial_number_required | boolean? | yes | | - | loyalty_discount | number? | yes | | - | marketplace_invoice_id | string? | yes | | - | order_item_id | string? | yes | | - | quantity | number? | yes | | - | replacement_details | [ReplacementDetails](#ReplacementDetails)? | yes | | - | size_level_total_qty | number? | yes | | - ---- +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| manifestId | string | yes | | +| body | [UploadConsent](#UploadConsent) | yes | Request body | -#### [AffiliateStoreIdMapping](#AffiliateStoreIdMapping) - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | marketplace_store_id | string | no | | - | store_id | number | no | | - +Upload Consent ---- +*Returned Response:* -#### [AllowedTemplatesResponse](#AllowedTemplatesResponse) - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | template_x_slug | [[Templates](#Templates)]? | yes | | - ---- -#### [AnnouncementResponse](#AnnouncementResponse) +[SuccessResponse](#SuccessResponse) - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | company_id | number? | yes | | - | created_at | string? | yes | | - | description | string? | yes | | - | from_datetime | string? | yes | | - | id | number | no | | - | logo_url | string? | yes | | - | platform_id | string? | yes | | - | platform_name | string? | yes | | - | title | string? | yes | | - | to_datetime | string? | yes | | - +Successful Manifest upload! ---- -#### [AnnouncementsResponse](#AnnouncementsResponse) - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | announcements | [[AnnouncementResponse](#AnnouncementResponse)]? | yes | | - | message | string? | yes | | - | success | boolean? | yes | | - ---- +
+  Example: + +```json + +``` +
-#### [AppliedPromos](#AppliedPromos) - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | amount | number? | yes | | - | article_quantity | number? | yes | | - | buy_rules | [[BuyRules](#BuyRules)]? | yes | | - | discount_rules | [[DiscountRules](#DiscountRules)]? | yes | | - | mrp_promotion | boolean? | yes | | - | promo_id | string? | yes | | - | promotion_name | string? | yes | | - | promotion_type | string? | yes | | - ---- -#### [Article](#Article) - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | _id | string | no | | - | a_set | string? | yes | | - | child_details | string? | yes | | - | code | string? | yes | | - | currency | string? | yes | | - | dimensions | [Dimensions](#Dimensions)? | yes | | - | esp_modified | boolean? | yes | | - | identifiers | string | no | | - | is_set | boolean? | yes | | - | raw_meta | string? | yes | | - | return_config | [ReturnConfig](#ReturnConfig)? | yes | | - | seller_identifier | string | no | | - | size | string | no | | - | tags | [string]? | yes | | - | uid | string | no | | - | weight | [Weight](#Weight)? | yes | | - ---- -#### [ArticleDetails](#ArticleDetails) - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | _id | string | no | | - | attributes | string | no | | - | brand_id | number | no | | - | category | string | no | | - | dimension | string | no | | - | quantity | number | no | | - | weight | string | no | | - --- -#### [ArticleStatusDetails](#ArticleStatusDetails) - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | status | string? | yes | | - +### verifyMobileOTP ---- -#### [AttachOrderUser](#AttachOrderUser) - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | fynd_order_id | string | no | | - | otp_data | [AttachUserOtpData](#AttachUserOtpData) | no | | - | user_info | [AttachUserInfo](#AttachUserInfo) | no | | - ---- +```javascript +// Promise +const promise = platformClient.order.verifyMobileOTP({ body : value }); -#### [AttachOrderUserResponse](#AttachOrderUserResponse) +// Async/Await +const data = await platformClient.order.verifyMobileOTP({ body : value }); +``` - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | message | string? | yes | | - | success | boolean? | yes | | - ---- -#### [AttachUserInfo](#AttachUserInfo) - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | country_code | string? | yes | | - | first_name | string | no | | - | last_name | string | no | | - | mobile | string | no | | - ---- +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| body | [VerifyMobileOTP](#VerifyMobileOTP) | yes | Request body | -#### [AttachUserOtpData](#AttachUserOtpData) - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | request_id | string | no | | - +Verify Mobile OTP ---- +*Returned Response:* -#### [Attributes](#Attributes) - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | brand_name | string? | yes | | - | essential | string? | yes | | - | gender | [string]? | yes | | - | marketer_address | string? | yes | | - | marketer_name | string? | yes | | - | name | string? | yes | | - | primary_color | string? | yes | | - | primary_color_hex | string? | yes | | - | primary_material | string? | yes | | - ---- -#### [BagConfigs](#BagConfigs) +[VerifyOtpResponse](#VerifyOtpResponse) - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | allow_force_return | boolean | no | | - | can_be_cancelled | boolean | no | | - | enable_tracking | boolean | no | | - | is_active | boolean | no | | - | is_customer_return_allowed | boolean | no | | - | is_returnable | boolean | no | | - +Verify OTP ---- -#### [BagData](#BagData) - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | items | [[BagDetails](#BagDetails)]? | yes | | - | page | [BagsPage](#BagsPage)? | yes | | - ---- +
+  Example: + +```json + +``` +
-#### [BagDetails](#BagDetails) - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | affiliate_bag_details | [AffiliateBagDetails](#AffiliateBagDetails)? | yes | | - | affiliate_details | [AffiliateDetails](#AffiliateDetails)? | yes | | - | applied_promos | [string]? | yes | | - | article | [Article](#Article)? | yes | | - | article_details | [ArticleStatusDetails](#ArticleStatusDetails)? | yes | | - | bag_id | number? | yes | | - | bag_status | [[BagStatusHistory](#BagStatusHistory)]? | yes | | - | bag_status_history | [BagStatusHistory](#BagStatusHistory)? | yes | | - | bag_update_time | number? | yes | | - | brand | [Brand](#Brand)? | yes | | - | company | [Company](#Company)? | yes | | - | current_operational_status | [BagStatusHistory](#BagStatusHistory)? | yes | | - | current_status | [BagStatusHistory](#BagStatusHistory)? | yes | | - | dates | [Dates](#Dates)? | yes | | - | delivery_address | [PlatformDeliveryAddress](#PlatformDeliveryAddress)? | yes | | - | delivery_slot | [DeliverySlotDetails](#DeliverySlotDetails)? | yes | | - | display_name | string? | yes | | - | dp_details | string? | yes | | - | einvoice_info | string? | yes | | - | entity_type | string? | yes | | - | fallback_user | string? | yes | | - | financial_breakup | [[FinancialBreakup](#FinancialBreakup)]? | yes | | - | fulfilling_store | [Store](#Store)? | yes | | - | fyndstore_emp | string? | yes | | - | gst_details | [GSTDetailsData](#GSTDetailsData)? | yes | | - | id | string? | yes | | - | identifier | string? | yes | | - | invoice | [InvoiceDetails](#InvoiceDetails)? | yes | | - | item | [Item](#Item)? | yes | | - | journey_type | string? | yes | | - | line_number | number? | yes | | - | lock_status | boolean? | yes | | - | manifest_id | string? | yes | | - | meta | string? | yes | | - | mode_of_payment | string? | yes | | - | no_of_bags_order | number? | yes | | - | operational_status | string? | yes | | - | order | [OrderDetails](#OrderDetails)? | yes | | - | order_integration_id | string? | yes | | - | order_type | string? | yes | | - | order_value | number? | yes | | - | ordering_store | [Store](#Store)? | yes | | - | original_bag_list | [number]? | yes | | - | parent_promo_bags | string? | yes | | - | payment_methods | string? | yes | | - | payment_type | string? | yes | | - | payments | string? | yes | | - | prices | [Prices](#Prices)? | yes | | - | qc_required | boolean? | yes | | - | quantity | number? | yes | | - | reasons | [string]? | yes | | - | restore_coupon | boolean? | yes | | - | restore_promos | string? | yes | | - | rto_address | [PlatformDeliveryAddress](#PlatformDeliveryAddress)? | yes | | - | seller_identifier | string? | yes | | - | shipment | [Shipment](#Shipment)? | yes | | - | shipment_details | [ShipmentDetails](#ShipmentDetails)? | yes | | - | shipment_gst | [ShipmentGstDetails](#ShipmentGstDetails)? | yes | | - | shipment_id | string? | yes | | - | shipment_status | [ShipmentStatusData](#ShipmentStatusData)? | yes | | - | shipment_status_history | [[ShipmentStatusData](#ShipmentStatusData)]? | yes | | - | status | [BagReturnableCancelableStatus](#BagReturnableCancelableStatus)? | yes | | - | tags | [string]? | yes | | - | total_shipment_bags | number? | yes | | - | total_shipments_in_order | number? | yes | | - | transaction_type | string? | yes | | - | type | string? | yes | | - | updated_at | string? | yes | | - | user | [UserDetails](#UserDetails)? | yes | | - | weight | [WeightData](#WeightData)? | yes | | - ---- -#### [BagDetailsPlatformResponse](#BagDetailsPlatformResponse) - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | data | [BagDetails](#BagDetails)? | yes | | - | status_code | number? | yes | | - ---- -#### [BagPaymentMethods](#BagPaymentMethods) - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | amount | number? | yes | | - | mode | string? | yes | | - --- -#### [BagReasonMeta](#BagReasonMeta) - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | show_text_area | boolean? | yes | | - ---- -#### [BagReasons](#BagReasons) +### Schemas + + +#### [ActionInfo](#ActionInfo) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | display_name | string? | yes | | - | id | number? | yes | | - | meta | [BagReasonMeta](#BagReasonMeta)? | yes | | - | qc_type | [string]? | yes | | - | question_set | [[QuestionSet](#QuestionSet)]? | yes | | - | reasons | [[BagReasons](#BagReasons)]? | yes | | + | description | string | no | | + | display_text | string | no | | + | id | number | no | | + | slug | string | no | | --- -#### [BagReturnableCancelableStatus](#BagReturnableCancelableStatus) +#### [AdvanceFilterInfo](#AdvanceFilterInfo) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | can_be_cancelled | boolean | no | | - | enable_tracking | boolean | no | | - | is_active | boolean | no | | - | is_customer_return_allowed | boolean | no | | - | is_returnable | boolean | no | | + | action_centre | [[FiltersInfo](#FiltersInfo)]? | yes | | + | applied_filters | string? | yes | | + | filters | [[FiltersInfo](#FiltersInfo)]? | yes | | + | page | string? | yes | | + | processed | [[FiltersInfo](#FiltersInfo)]? | yes | | + | returned | [[FiltersInfo](#FiltersInfo)]? | yes | | + | unfulfilled | [[FiltersInfo](#FiltersInfo)]? | yes | | --- -#### [Bags](#Bags) +#### [Affiliate](#Affiliate) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | affiliate_bag_id | string? | yes | Application/Affiliate Bag ID, Required if the ID is missing | - | affiliate_order_id | string? | yes | Application/Affiliate Order ID, Required if the ID is missing | - | bag_id | number? | yes | Bag Id | - | is_locked | boolean? | yes | Is Bag Locked | + | config | [AffiliateConfig](#AffiliateConfig)? | yes | | + | id | string | no | | + | token | string | no | | --- -#### [BagsPage](#BagsPage) +#### [AffiliateAppConfig](#AffiliateAppConfig) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | current | number | no | | - | has_next | boolean | no | | - | item_total | number | no | | - | page_type | string | no | | - | size | number | no | | + | created_at | string | no | | + | description | string? | yes | | + | id | string | no | | + | meta | [[AffiliateAppConfigMeta](#AffiliateAppConfigMeta)]? | yes | | + | name | string | no | | + | owner | string | no | | + | secret | string | no | | + | token | string | no | | + | updated_at | string | no | | --- -#### [BagStateMapper](#BagStateMapper) +#### [AffiliateAppConfigMeta](#AffiliateAppConfigMeta) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | app_display_name | string? | yes | | - | app_facing | boolean? | yes | | - | app_state_name | string? | yes | | - | display_name | string | no | | - | id | number | no | | - | is_active | boolean? | yes | | - | journey_type | string | no | | | name | string | no | | - | notify_customer | boolean? | yes | | - | state_type | string | no | | + | value | string | no | | --- -#### [BagStateTransitionMap](#BagStateTransitionMap) +#### [AffiliateBag](#AffiliateBag) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | affiliate | string? | yes | | - | fynd | string? | yes | | + | _id | string | no | | + | affiliate_meta | string | no | | + | affiliate_store_id | string | no | | + | amount_paid | number | no | | + | avl_qty | number | no | | + | company_id | number | no | | + | delivery_charge | number | no | | + | discount | number | no | | + | fynd_store_id | string | no | | + | hsn_code_id | string | no | | + | identifier | string | no | | + | item_id | number | no | | + | item_size | string | no | | + | modified_on | string | no | | + | pdf_links | [MarketPlacePdf](#MarketPlacePdf)? | yes | | + | price_effective | number | no | | + | price_marked | number | no | | + | quantity | number | no | | + | seller_identifier | string | no | | + | sku | string | no | | + | store_id | number | no | | + | transfer_price | number | no | | + | unit_price | number | no | | --- -#### [BagStatusHistory](#BagStatusHistory) +#### [AffiliateBagDetails](#AffiliateBagDetails) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | app_display_name | string? | yes | | - | bag_id | number? | yes | | - | bag_state_mapper | [BagStateMapper](#BagStateMapper)? | yes | | - | bsh_id | number? | yes | | - | created_at | string? | yes | | - | created_ts | string? | yes | | - | delivery_awb_number | string? | yes | | - | delivery_partner_id | number? | yes | | - | display_name | string? | yes | | - | forward | boolean? | yes | | - | kafka_sync | boolean? | yes | | - | reasons | [string]? | yes | | - | shipment_id | string? | yes | | - | state_id | number? | yes | | - | state_type | string? | yes | | - | status | string | no | | - | store_id | number? | yes | | - | updated_at | string? | yes | | - | updated_ts | string? | yes | | + | affiliate_bag_id | string | no | | + | affiliate_meta | [AffiliateMeta](#AffiliateMeta) | no | | + | affiliate_order_id | string | no | | + | employee_discount | number? | yes | | + | loyalty_discount | number? | yes | | --- -#### [BagUnit](#BagUnit) +#### [AffiliateBagsDetails](#AffiliateBagsDetails) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | affiliate_bag_details | [AffiliateBagDetails](#AffiliateBagDetails)? | yes | | - | article | [Article](#Article)? | yes | | - | bag_expiry_date | string? | yes | | - | bag_id | number | no | | - | bag_status | [[BagStatusHistory](#BagStatusHistory)]? | yes | | - | bag_type | string? | yes | | - | brand | [ShipmentListingBrand](#ShipmentListingBrand)? | yes | | - | can_cancel | boolean? | yes | | - | can_return | boolean? | yes | | - | current_operational_status | [BagStatusHistory](#BagStatusHistory) | no | | - | current_status | [BagStatusHistory](#BagStatusHistory) | no | | - | dates | [Dates](#Dates)? | yes | | - | display_name | string? | yes | | - | entity_type | string? | yes | | - | financial_breakup | [[FinancialBreakup](#FinancialBreakup)] | no | | - | gst | [GSTDetailsData](#GSTDetailsData)? | yes | | - | item | [PlatformItem](#PlatformItem)? | yes | | - | line_number | number? | yes | | - | meta | string? | yes | | - | prices | [Prices](#Prices)? | yes | | - | product_quantity | number | no | | - | reasons | [string]? | yes | | - | size | string? | yes | | - | status | [BagReturnableCancelableStatus](#BagReturnableCancelableStatus) | no | | + | affiliate_bag_id | string? | yes | | + | affiliate_meta | [AffiliateMeta](#AffiliateMeta)? | yes | | + | coupon_code | string? | yes | | --- -#### [BaseResponse](#BaseResponse) +#### [AffiliateConfig](#AffiliateConfig) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | message | string? | yes | | - | success | boolean? | yes | | + | app | [AffiliateAppConfig](#AffiliateAppConfig)? | yes | | + | app_company_id | number? | yes | | + | inventory | [AffiliateInventoryConfig](#AffiliateInventoryConfig)? | yes | | --- -#### [BillingInfo](#BillingInfo) +#### [AffiliateDetails](#AffiliateDetails) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | address | string? | yes | | - | address1 | string? | yes | | - | address2 | string? | yes | | - | alternate_email | string? | yes | | - | alternate_mobile_number | string? | yes | | - | area | string? | yes | | - | city | string? | yes | | - | country | string? | yes | | - | country_code | string? | yes | | - | customer_code | string? | yes | | - | external_customer_code | string? | yes | | - | first_name | string? | yes | | - | floor_no | string? | yes | | - | gender | string? | yes | | - | house_no | string? | yes | | - | landmark | string? | yes | | - | last_name | string? | yes | | - | middle_name | string? | yes | | - | pincode | string? | yes | | - | primary_email | string? | yes | | - | primary_mobile_number | string? | yes | | - | state | string? | yes | | - | state_code | string? | yes | | - | title | string? | yes | | + | ad_id | string? | yes | | + | affiliate_bag_id | string | no | | + | affiliate_id | string? | yes | | + | affiliate_meta | [AffiliateMeta](#AffiliateMeta) | no | | + | affiliate_order_id | string | no | | + | affiliate_shipment_id | string | no | | + | affiliate_store_id | string | no | | + | company_affiliate_tag | string? | yes | | + | config | [AffiliateConfig](#AffiliateConfig)? | yes | | + | pdf_links | [PDFLinks](#PDFLinks)? | yes | | + | shipment_meta | [ShipmentMeta](#ShipmentMeta) | no | | --- -#### [Brand](#Brand) +#### [AffiliateInventoryArticleAssignmentConfig](#AffiliateInventoryArticleAssignmentConfig) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | brand_id | number? | yes | | - | brand_name | string | no | | - | company | string? | yes | | - | created_on | string? | yes | | - | credit_note_allowed | boolean? | yes | | - | credit_note_expiry_days | number? | yes | | - | id | number? | yes | | - | invoice_prefix | string? | yes | | - | is_virtual_invoice | boolean? | yes | | - | logo | string? | yes | | - | modified_on | string? | yes | | - | pickup_location | string? | yes | | - | script_last_ran | string? | yes | | - | start_date | string? | yes | | + | post_order_reassignment | boolean? | yes | | --- -#### [BulkActionListingData](#BulkActionListingData) +#### [AffiliateInventoryConfig](#AffiliateInventoryConfig) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | batch_id | string? | yes | | - | bulk_action_type | string? | yes | | - | company_id | number? | yes | | - | created_ts | string? | yes | | - | do_invoice_label_generated | boolean? | yes | | - | file_name | string? | yes | | - | file_url | string? | yes | | - | id | number? | yes | | - | invoice_document_type | string? | yes | | - | invoice_status | string? | yes | | - | is_invoiceable | boolean? | yes | | - | label_document_type | string? | yes | | - | last_selected_invoice_label_type | string? | yes | | - | meta | string? | yes | | - | shipments_action_info | [ShipmentActionInfo](#ShipmentActionInfo)? | yes | | - | status | boolean? | yes | | - | store_code | string? | yes | | - | store_id | number? | yes | | - | store_name | string? | yes | | - | updated_ts | number? | yes | | - | uploaded_by | string? | yes | | - | uploaded_on | string? | yes | | - | user_id | string? | yes | | - | user_name | string? | yes | | + | article_assignment | [AffiliateInventoryArticleAssignmentConfig](#AffiliateInventoryArticleAssignmentConfig)? | yes | | + | inventory | [AffiliateInventoryStoreConfig](#AffiliateInventoryStoreConfig)? | yes | | + | logistics | [AffiliateInventoryLogisticsConfig](#AffiliateInventoryLogisticsConfig)? | yes | | + | order | [AffiliateInventoryOrderConfig](#AffiliateInventoryOrderConfig)? | yes | | + | payment | [AffiliateInventoryPaymentConfig](#AffiliateInventoryPaymentConfig)? | yes | | --- -#### [BulkActionTemplate](#BulkActionTemplate) +#### [AffiliateInventoryLogisticsConfig](#AffiliateInventoryLogisticsConfig) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | text | string? | yes | | - | value | string? | yes | | + | dp_assignment | boolean? | yes | | --- -#### [BulkActionTemplateResponse](#BulkActionTemplateResponse) +#### [AffiliateInventoryOrderConfig](#AffiliateInventoryOrderConfig) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | template_x_slug | [[BulkActionTemplate](#BulkActionTemplate)]? | yes | Allowed bulk action template slugs | + | force_reassignment | boolean? | yes | | --- -#### [BulkFailedResponse](#BulkFailedResponse) +#### [AffiliateInventoryPaymentConfig](#AffiliateInventoryPaymentConfig) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | error | string? | yes | | - | status | boolean? | yes | | + | mode_of_payment | string? | yes | | + | source | string? | yes | | --- -#### [BulkListingResponse](#BulkListingResponse) +#### [AffiliateInventoryStoreConfig](#AffiliateInventoryStoreConfig) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | data | [[BulkActionListingData](#BulkActionListingData)]? | yes | | - | page | [BulkListinPage](#BulkListinPage)? | yes | | - | success | boolean? | yes | | - | total_count | number? | yes | | + | store | string? | yes | | --- -#### [BulkListinPage](#BulkListinPage) +#### [AffiliateMeta](#AffiliateMeta) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | current | number? | yes | | - | has_next | boolean? | yes | | - | has_previous | boolean? | yes | | - | item_total | number? | yes | | - | size | number? | yes | | - | total | number? | yes | | - | type | string? | yes | | + | box_type | string? | yes | | + | channel_order_id | string? | yes | | + | channel_shipment_id | string? | yes | | + | coupon_code | string? | yes | | + | customer_selling_price | number? | yes | | + | due_date | string? | yes | | + | employee_discount | number? | yes | | + | fulfilment_priority | number? | yes | | + | is_priority | boolean? | yes | | + | is_serial_number_required | boolean? | yes | | + | loyalty_discount | number? | yes | | + | marketplace_invoice_id | string? | yes | | + | order_item_id | string? | yes | | + | quantity | number? | yes | | + | replacement_details | [ReplacementDetails](#ReplacementDetails)? | yes | | + | size_level_total_qty | number? | yes | | --- -#### [BulkReportsDownloadRequest](#BulkReportsDownloadRequest) +#### [AffiliateStoreIdMapping](#AffiliateStoreIdMapping) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | custom_filters_for_lane | string? | yes | | - | custom_headers | string? | yes | Download report with specific headers | - | end_date | string? | yes | UTC end date in ISO format | - | entities | [string]? | yes | Download for specific enitites, entities can be bag, shipment or order_id, etc. | - | filter_type | string? | yes | | - | is_cross_company_enabled | boolean? | yes | Download lanes for cross company. | - | lane_type | string? | yes | | - | report_type | string? | yes | Type of report | - | start_date | string? | yes | UTC start date in ISO format | - | store_ids | [string]? | yes | Download for specific store ids. | + | marketplace_store_id | string | no | | + | store_id | number | no | | --- -#### [BulkReportsDownloadResponse](#BulkReportsDownloadResponse) +#### [AllowedTemplatesResponse](#AllowedTemplatesResponse) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | batch_id | string? | yes | | - | success | boolean? | yes | | + | template_x_slug | [[Templates](#Templates)]? | yes | | --- -#### [BulkStateTransistionRequest](#BulkStateTransistionRequest) +#### [AnnouncementResponse](#AnnouncementResponse) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | file_name | string? | yes | | - | url | string? | yes | | + | company_id | number? | yes | | + | created_at | string? | yes | | + | description | string? | yes | | + | from_datetime | string? | yes | | + | id | number | no | | + | logo_url | string? | yes | | + | platform_id | string? | yes | | + | platform_name | string? | yes | | + | title | string? | yes | | + | to_datetime | string? | yes | | --- -#### [BulkStateTransistionResponse](#BulkStateTransistionResponse) +#### [AnnouncementsResponse](#AnnouncementsResponse) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | batch_id | string? | yes | | + | announcements | [[AnnouncementResponse](#AnnouncementResponse)]? | yes | | | message | string? | yes | | - | status | boolean? | yes | | + | success | boolean? | yes | | --- -#### [BuyerDetails](#BuyerDetails) +#### [AppliedPromos](#AppliedPromos) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | address | string | no | | - | ajio_site_id | string? | yes | | - | city | string | no | | - | gstin | string | no | | - | name | string | no | | - | pincode | number | no | | - | state | string | no | | + | amount | number? | yes | | + | article_quantity | number? | yes | | + | buy_rules | [[BuyRules](#BuyRules)]? | yes | | + | discount_rules | [[DiscountRules](#DiscountRules)]? | yes | | + | mrp_promotion | boolean? | yes | | + | promo_id | string? | yes | | + | promotion_name | string? | yes | | + | promotion_type | string? | yes | | --- -#### [BuyRules](#BuyRules) +#### [Article](#Article) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | cart_conditions | string? | yes | | - | item_criteria | [ItemCriterias](#ItemCriterias)? | yes | | + | _id | string | no | | + | a_set | string? | yes | | + | child_details | string? | yes | | + | code | string? | yes | | + | currency | string? | yes | | + | dimensions | [Dimensions](#Dimensions)? | yes | | + | esp_modified | boolean? | yes | | + | identifiers | string | no | | + | is_set | boolean? | yes | | + | raw_meta | string? | yes | | + | return_config | [ReturnConfig](#ReturnConfig)? | yes | | + | seller_identifier | string | no | | + | size | string | no | | + | uid | string | no | | + | weight | [Weight](#Weight)? | yes | | --- -#### [Charge](#Charge) +#### [ArticleDetails](#ArticleDetails) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | amount | string | no | | - | code | string? | yes | | - | name | string | no | | - | tax | [Tax](#Tax)? | yes | | - | type | string | no | | + | _id | string | no | | + | attributes | string | no | | + | brand_id | number | no | | + | category | string | no | | + | dimension | string | no | | + | quantity | number | no | | + | weight | string | no | | --- -#### [CheckResponse](#CheckResponse) +#### [ArticleStatusDetails](#ArticleStatusDetails) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | affiliate_id | string? | yes | Affiliate ID | - | affiliate_shipment_id | string? | yes | Affiliate Shipment ID | - | bags | [[Bags](#Bags)]? | yes | | - | is_bag_locked | boolean? | yes | Is Bag Locked | - | is_shipment_locked | boolean? | yes | Is Shipment Locked | - | lock_status | string? | yes | Lock Status: Expected lock_status: [complete, operational, financial] | - | original_filter | [OriginalFilter](#OriginalFilter)? | yes | Filter | - | shipment_id | string? | yes | Shipment ID | - | status | string? | yes | Status | + | status | string? | yes | | --- -#### [Click2CallResponse](#Click2CallResponse) +#### [AttachOrderUser](#AttachOrderUser) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | call_id | string | no | Call ID from the provider | - | success | boolean | no | Success | + | fynd_order_id | string | no | | + | otp_data | [AttachUserOtpData](#AttachUserOtpData) | no | | + | user_info | [AttachUserInfo](#AttachUserInfo) | no | | --- -#### [Company](#Company) +#### [AttachOrderUserResponse](#AttachOrderUserResponse) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | agreement_start_date | string? | yes | | - | business_type | string? | yes | | - | company_name | string? | yes | | - | company_type | string? | yes | | - | created_on | string? | yes | | - | gst_number | string? | yes | | - | id | number? | yes | | - | meta | string? | yes | | - | modified_on | string? | yes | | - | pan_no | string? | yes | | + | message | string? | yes | | + | success | boolean? | yes | | --- -#### [CompanyDetails](#CompanyDetails) +#### [AttachUserInfo](#AttachUserInfo) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | address | string? | yes | | - | company_cin | string? | yes | | - | company_contact | [ContactDetails](#ContactDetails)? | yes | | - | company_gst | string? | yes | | - | company_id | number? | yes | | - | company_name | string? | yes | | + | country_code | string? | yes | | + | first_name | string | no | | + | last_name | string | no | | + | mobile | string | no | | --- -#### [Condition](#Condition) +#### [AttachUserOtpData](#AttachUserOtpData) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | operation | string | no | | - | value | string | no | | - | variable | string | no | | + | request_id | string | no | | --- -#### [ContactDetails](#ContactDetails) +#### [Attributes](#Attributes) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | emails | [string]? | yes | | - | phone | [[PhoneDetails](#PhoneDetails)]? | yes | | + | brand_name | string? | yes | | + | essential | string? | yes | | + | gender | [string]? | yes | | + | marketer_address | string? | yes | | + | marketer_name | string? | yes | | + | name | string? | yes | | + | primary_color | string? | yes | | + | primary_color_hex | string? | yes | | + | primary_material | string? | yes | | --- -#### [ConversionRate](#ConversionRate) +#### [BagConfigs](#BagConfigs) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | base | string? | yes | | - | rates | string? | yes | | + | allow_force_return | boolean | no | | + | can_be_cancelled | boolean | no | | + | enable_tracking | boolean | no | | + | is_active | boolean | no | | + | is_customer_return_allowed | boolean | no | | + | is_returnable | boolean | no | | --- -#### [CourierPartnerTrackingDetails](#CourierPartnerTrackingDetails) +#### [BagData](#BagData) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | awb | string | no | AWB Number | - | dp_location | string? | yes | Current location of Courier partner | - | dp_name | string | no | Courier Partner name | - | dp_status | string | no | Status at Courier partner end | - | dp_status_updated_at | string | no | Date Time at which status was updated at Courier partner | - | estimated_delivery_date | string? | yes | Estimated delivery date received from Courier partner | - | id | number? | yes | Id of Tracking history | - | journey | string | no | Journey type of the shipment | - | meta | string? | yes | Meta field to store Courier partner's meta data | - | operational_status | string | no | Operational status of OMS | - | promised_delivery_date | string? | yes | Promised delivery date received from Courier partner | - | remark | string? | yes | Remark from courier partner | - | shipment_id | string | no | Shipment ID | + | items | [[BagDetails](#BagDetails)]? | yes | | + | page | [BagsPage](#BagsPage)? | yes | | --- -#### [CourierPartnerTrackingResponse](#CourierPartnerTrackingResponse) +#### [BagDetails](#BagDetails) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | items | [[CourierPartnerTrackingDetails](#CourierPartnerTrackingDetails)]? | yes | | - | page | [PageDetails](#PageDetails)? | yes | | + | affiliate_bag_details | [AffiliateBagDetails](#AffiliateBagDetails)? | yes | | + | affiliate_details | [AffiliateDetails](#AffiliateDetails)? | yes | | + | applied_promos | [string]? | yes | | + | article | [Article](#Article)? | yes | | + | article_details | [ArticleStatusDetails](#ArticleStatusDetails)? | yes | | + | bag_id | number? | yes | | + | bag_status | [[BagStatusHistory](#BagStatusHistory)]? | yes | | + | bag_status_history | [BagStatusHistory](#BagStatusHistory)? | yes | | + | bag_update_time | number? | yes | | + | brand | [Brand](#Brand)? | yes | | + | company | [Company](#Company)? | yes | | + | current_operational_status | [BagStatusHistory](#BagStatusHistory)? | yes | | + | current_status | [BagStatusHistory](#BagStatusHistory)? | yes | | + | dates | [Dates](#Dates)? | yes | | + | delivery_address | [PlatformDeliveryAddress](#PlatformDeliveryAddress)? | yes | | + | delivery_slot | [DeliverySlotDetails](#DeliverySlotDetails)? | yes | | + | display_name | string? | yes | | + | dp_details | string? | yes | | + | einvoice_info | string? | yes | | + | entity_type | string? | yes | | + | fallback_user | string? | yes | | + | financial_breakup | [[FinancialBreakup](#FinancialBreakup)]? | yes | | + | fulfilling_store | [Store](#Store)? | yes | | + | fyndstore_emp | string? | yes | | + | gst_details | [GSTDetailsData](#GSTDetailsData)? | yes | | + | id | string? | yes | | + | identifier | string? | yes | | + | invoice | [InvoiceDetails](#InvoiceDetails)? | yes | | + | item | [Item](#Item)? | yes | | + | journey_type | string? | yes | | + | line_number | number? | yes | | + | lock_status | boolean? | yes | | + | manifest_id | string? | yes | | + | meta | string? | yes | | + | mode_of_payment | string? | yes | | + | no_of_bags_order | number? | yes | | + | operational_status | string? | yes | | + | order | [OrderDetails](#OrderDetails)? | yes | | + | order_integration_id | string? | yes | | + | order_type | string? | yes | | + | order_value | number? | yes | | + | ordering_store | [Store](#Store)? | yes | | + | original_bag_list | [number]? | yes | | + | parent_promo_bags | string? | yes | | + | payment_methods | string? | yes | | + | payment_type | string? | yes | | + | payments | string? | yes | | + | prices | [Prices](#Prices)? | yes | | + | qc_required | boolean? | yes | | + | quantity | number? | yes | | + | reasons | [string]? | yes | | + | restore_coupon | boolean? | yes | | + | restore_promos | string? | yes | | + | rto_address | [PlatformDeliveryAddress](#PlatformDeliveryAddress)? | yes | | + | seller_identifier | string? | yes | | + | shipment | [Shipment](#Shipment)? | yes | | + | shipment_details | [ShipmentDetails](#ShipmentDetails)? | yes | | + | shipment_gst | [ShipmentGstDetails](#ShipmentGstDetails)? | yes | | + | shipment_id | string? | yes | | + | shipment_status | [ShipmentStatusData](#ShipmentStatusData)? | yes | | + | shipment_status_history | [[ShipmentStatusData](#ShipmentStatusData)]? | yes | | + | status | [BagReturnableCancelableStatus](#BagReturnableCancelableStatus)? | yes | | + | tags | [string]? | yes | | + | total_shipment_bags | number? | yes | | + | total_shipments_in_order | number? | yes | | + | transaction_type | string? | yes | | + | type | string? | yes | | + | updated_at | string? | yes | | + | user | [UserDetails](#UserDetails)? | yes | | + | weight | [WeightData](#WeightData)? | yes | | --- -#### [CreateChannelConfig](#CreateChannelConfig) +#### [BagDetailsPlatformResponse](#BagDetailsPlatformResponse) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | dp_configuration | [DpConfiguration](#DpConfiguration)? | yes | | - | location_reassignment | boolean? | yes | | - | lock_states | [string]? | yes | | - | logo_url | string? | yes | | - | payment_info | [CreateChannelPaymentInfo](#CreateChannelPaymentInfo)? | yes | | - | shipment_assignment | string? | yes | | + | data | [BagDetails](#BagDetails)? | yes | | + | status_code | number? | yes | | --- -#### [CreateChannelConfigData](#CreateChannelConfigData) +#### [BagPaymentMethods](#BagPaymentMethods) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | config_data | [CreateChannelConfig](#CreateChannelConfig)? | yes | | + | amount | number? | yes | | + | mode | string? | yes | | --- -#### [CreateChannelConfigResponse](#CreateChannelConfigResponse) +#### [BagReasonMeta](#BagReasonMeta) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | acknowledged | boolean? | yes | | - | is_inserted | boolean? | yes | | - | is_upserted | boolean? | yes | | + | show_text_area | boolean? | yes | | --- -#### [CreateChannelConifgErrorResponse](#CreateChannelConifgErrorResponse) +#### [BagReasons](#BagReasons) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | error | string? | yes | | + | display_name | string? | yes | | + | id | number? | yes | | + | meta | [BagReasonMeta](#BagReasonMeta)? | yes | | + | qc_type | [string]? | yes | | + | question_set | [[QuestionSet](#QuestionSet)]? | yes | | + | reasons | [[BagReasons](#BagReasons)]? | yes | | --- -#### [CreateChannelPaymentInfo](#CreateChannelPaymentInfo) +#### [BagReturnableCancelableStatus](#BagReturnableCancelableStatus) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | mode_of_payment | string? | yes | | - | payment_methods | [[PaymentMethods](#PaymentMethods)]? | yes | | - | source | string? | yes | | + | can_be_cancelled | boolean | no | | + | enable_tracking | boolean | no | | + | is_active | boolean | no | | + | is_customer_return_allowed | boolean | no | | + | is_returnable | boolean | no | | --- -#### [CreateOrderAPI](#CreateOrderAPI) +#### [Bags](#Bags) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | billing_info | [BillingInfo](#BillingInfo) | no | | - | charges | [[Charge](#Charge)]? | yes | | - | config | string? | yes | | - | currency_info | string? | yes | | - | external_creation_date | string? | yes | | - | external_order_id | string? | yes | | - | meta | string? | yes | | - | payment_info | [PaymentInfo](#PaymentInfo) | no | | - | shipments | [[Shipment](#Shipment)] | no | | - | shipping_info | [ShippingInfo](#ShippingInfo) | no | | - | tax_info | [TaxInfo](#TaxInfo)? | yes | | - | user_info | [UserInfo](#UserInfo)? | yes | | + | affiliate_bag_id | string? | yes | Application/Affiliate Bag ID, Required if the ID is missing | + | affiliate_order_id | string? | yes | Application/Affiliate Order ID, Required if the ID is missing | + | bag_id | number? | yes | Bag Id | + | is_locked | boolean? | yes | Is Bag Locked | --- -#### [CreateOrderErrorReponse](#CreateOrderErrorReponse) +#### [BagsPage](#BagsPage) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | code | string? | yes | | - | exception | string? | yes | | - | info | any? | yes | | - | message | string | no | | - | meta | string? | yes | | - | request_id | string? | yes | | - | stack_trace | string? | yes | | - | status | number | no | | + | current | number | no | | + | has_next | boolean | no | | + | item_total | number | no | | + | page_type | string | no | | + | size | number | no | | --- -#### [CreateOrderPayload](#CreateOrderPayload) +#### [BagStateMapper](#BagStateMapper) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | affiliate_id | string | no | | - | order_config | [OrderConfig](#OrderConfig) | no | | - | order_info | [OrderInfo](#OrderInfo) | no | | + | app_display_name | string? | yes | | + | app_facing | boolean? | yes | | + | app_state_name | string? | yes | | + | display_name | string | no | | + | id | number | no | | + | is_active | boolean? | yes | | + | journey_type | string | no | | + | name | string | no | | + | notify_customer | boolean? | yes | | + | state_type | string | no | | --- -#### [CreateOrderResponse](#CreateOrderResponse) +#### [BagStateTransitionMap](#BagStateTransitionMap) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | fynd_order_id | string | no | | + | affiliate | string? | yes | | + | fynd | string? | yes | | --- -#### [CreateRuleResponse](#CreateRuleResponse) +#### [BagStatusHistory](#BagStatusHistory) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | error | [RuleError](#RuleError)? | yes | | - | id | number? | yes | | - | success | boolean? | yes | | + | app_display_name | string? | yes | | + | bag_id | number? | yes | | + | bag_state_mapper | [BagStateMapper](#BagStateMapper)? | yes | | + | bsh_id | number? | yes | | + | created_at | string? | yes | | + | created_ts | string? | yes | | + | delivery_awb_number | string? | yes | | + | delivery_partner_id | number? | yes | | + | display_name | string? | yes | | + | forward | boolean? | yes | | + | kafka_sync | boolean? | yes | | + | reasons | [string]? | yes | | + | shipment_id | string? | yes | | + | state_id | number? | yes | | + | state_type | string? | yes | | + | status | string | no | | + | store_id | number? | yes | | + | updated_at | string? | yes | | + | updated_ts | string? | yes | | --- -#### [CreateUpdateDeleteResponse](#CreateUpdateDeleteResponse) +#### [BagUnit](#BagUnit) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | message | string? | yes | | + | affiliate_bag_details | [AffiliateBagDetails](#AffiliateBagDetails)? | yes | | + | article | [Article](#Article)? | yes | | + | bag_expiry_date | string? | yes | | + | bag_id | number | no | | + | bag_status | [[BagStatusHistory](#BagStatusHistory)]? | yes | | + | bag_type | string? | yes | | + | brand | [ShipmentListingBrand](#ShipmentListingBrand)? | yes | | + | can_cancel | boolean? | yes | | + | can_return | boolean? | yes | | + | current_operational_status | [BagStatusHistory](#BagStatusHistory) | no | | + | current_status | [BagStatusHistory](#BagStatusHistory) | no | | + | dates | [Dates](#Dates)? | yes | | + | display_name | string? | yes | | + | entity_type | string? | yes | | + | financial_breakup | [[FinancialBreakup](#FinancialBreakup)] | no | | + | gst | [GSTDetailsData](#GSTDetailsData)? | yes | | + | item | [PlatformItem](#PlatformItem)? | yes | | + | line_number | number? | yes | | + | meta | string? | yes | | + | prices | [Prices](#Prices)? | yes | | + | product_quantity | number | no | | + | reasons | [string]? | yes | | + | size | string? | yes | | + | status | [BagReturnableCancelableStatus](#BagReturnableCancelableStatus) | no | | --- -#### [CreditBalanceInfo](#CreditBalanceInfo) +#### [BaseResponse](#BaseResponse) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | customer_mobile_number | string? | yes | | - | reason | string? | yes | | - | total_credited_balance | string? | yes | | + | message | string? | yes | | + | success | boolean? | yes | | --- -#### [Currency](#Currency) +#### [BillingInfo](#BillingInfo) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | currency_code | string? | yes | | - | currency_symbol | string? | yes | | + | address | string? | yes | | + | address1 | string? | yes | | + | address2 | string? | yes | | + | alternate_email | string? | yes | | + | alternate_mobile_number | string? | yes | | + | area | string? | yes | | + | city | string? | yes | | + | country | string? | yes | | + | country_code | string? | yes | | + | country_iso_code | string? | yes | Country Code in ISO 2 format (e.g. US, IN) | + | customer_code | string? | yes | | + | external_customer_code | string? | yes | | + | first_name | string? | yes | | + | floor_no | string? | yes | | + | gender | string? | yes | | + | house_no | string? | yes | | + | landmark | string? | yes | | + | last_name | string? | yes | | + | middle_name | string? | yes | | + | pincode | string? | yes | | + | primary_email | string? | yes | | + | primary_mobile_number | string? | yes | | + | state | string? | yes | | + | state_code | string? | yes | | + | title | string? | yes | | --- -#### [CurrencyInfo](#CurrencyInfo) +#### [Brand](#Brand) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | conversion_rate | [ConversionRate](#ConversionRate)? | yes | | - | ordering_currency | [OrderingCurrency](#OrderingCurrency)? | yes | | + | brand_id | number? | yes | | + | brand_name | string | no | | + | company | string? | yes | | + | created_on | string? | yes | | + | credit_note_allowed | boolean? | yes | | + | credit_note_expiry_days | number? | yes | | + | id | number? | yes | | + | invoice_prefix | string? | yes | | + | is_virtual_invoice | boolean? | yes | | + | logo | string? | yes | | + | modified_on | string? | yes | | + | pickup_location | string? | yes | | + | script_last_ran | string? | yes | | + | start_date | string? | yes | | --- -#### [CurrentStatus](#CurrentStatus) +#### [BulkActionListingData](#BulkActionListingData) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | bag_id | number? | yes | | - | bag_state_mapper | [BagStateMapper](#BagStateMapper)? | yes | | - | created_at | string? | yes | | + | batch_id | string? | yes | | + | bulk_action_type | string? | yes | | + | company_id | number? | yes | | | created_ts | string? | yes | | - | delivery_awb_number | string? | yes | | - | delivery_partner_id | number? | yes | | - | id | number | no | | - | kafka_sync | boolean? | yes | | - | shipment_id | string? | yes | | - | state_id | number? | yes | | - | state_type | string? | yes | | - | status | string? | yes | | + | do_invoice_label_generated | boolean? | yes | | + | file_name | string? | yes | | + | file_url | string? | yes | | + | id | number? | yes | | + | invoice_document_type | string? | yes | | + | invoice_status | string? | yes | | + | is_invoiceable | boolean? | yes | | + | label_document_type | string? | yes | | + | last_selected_invoice_label_type | string? | yes | | + | meta | string? | yes | | + | shipments_action_info | [ShipmentActionInfo](#ShipmentActionInfo)? | yes | | + | status | boolean? | yes | | + | store_code | string? | yes | | | store_id | number? | yes | | - | updated_at | string? | yes | | - - ---- - -#### [DataUpdates](#DataUpdates) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | entities | [[EntitiesDataUpdates](#EntitiesDataUpdates)]? | yes | | - | order_item_status | [[OrderItemDataUpdates](#OrderItemDataUpdates)]? | yes | | - | products | [[ProductsDataUpdates](#ProductsDataUpdates)]? | yes | | - - ---- - -#### [DateRange](#DateRange) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | from_date | string? | yes | | - | to_date | string? | yes | | + | store_name | string? | yes | | + | updated_ts | number? | yes | | + | uploaded_by | string? | yes | | + | uploaded_on | string? | yes | | + | user_id | string? | yes | | + | user_name | string? | yes | | --- -#### [Dates](#Dates) +#### [BulkActionTemplate](#BulkActionTemplate) | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | delivery_date | string? | yes | | - | order_created | string? | yes | | + | ---------- | ---- | -------- | ----------- | + | text | string? | yes | | + | value | string? | yes | | --- -#### [DebugInfo](#DebugInfo) +#### [BulkActionTemplateResponse](#BulkActionTemplateResponse) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | stormbreaker_uuid | string? | yes | | + | template_x_slug | [[BulkActionTemplate](#BulkActionTemplate)]? | yes | Allowed bulk action template slugs | --- -#### [DeleteRuleResponse](#DeleteRuleResponse) +#### [BulkFailedResponse](#BulkFailedResponse) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | error | [RuleError](#RuleError)? | yes | | - | id | string? | yes | | - | success | boolean? | yes | | + | error | string? | yes | | + | status | boolean? | yes | | --- -#### [DeliverySlotDetails](#DeliverySlotDetails) +#### [BulkListingResponse](#BulkListingResponse) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | date | string? | yes | | - | lower_bound | string? | yes | | - | slot | string? | yes | | - | type | string? | yes | | - | upper_bound | string? | yes | | + | data | [[BulkActionListingData](#BulkActionListingData)]? | yes | | + | page | [BulkListinPage](#BulkListinPage)? | yes | | + | success | boolean? | yes | | + | total_count | number? | yes | | --- -#### [Department](#Department) +#### [BulkListinPage](#BulkListinPage) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | display_name | string? | yes | | - | id | string? | yes | | + | current | number? | yes | | + | has_next | boolean? | yes | | + | has_previous | boolean? | yes | | + | item_total | number? | yes | | + | size | number? | yes | | + | total | number? | yes | | + | type | string? | yes | | --- -#### [Dimension](#Dimension) +#### [BulkReportsDownloadRequest](#BulkReportsDownloadRequest) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | height | string? | yes | | - | length | number? | yes | | - | packaging_type | string? | yes | | - | weight | string? | yes | | - | width | number? | yes | | + | custom_filters_for_lane | string? | yes | | + | custom_headers | string? | yes | Download report with specific headers | + | end_date | string? | yes | UTC end date in ISO format | + | entities | [string]? | yes | Download for specific enitites, entities can be bag, shipment or order_id, etc. | + | filter_type | string? | yes | | + | is_cross_company_enabled | boolean? | yes | Download lanes for cross company. | + | lane_type | string? | yes | | + | report_type | string? | yes | Type of report | + | start_date | string? | yes | UTC start date in ISO format | + | store_ids | [string]? | yes | Download for specific store ids. | --- -#### [Dimensions](#Dimensions) +#### [BulkReportsDownloadResponse](#BulkReportsDownloadResponse) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | height | number? | yes | | - | is_default | boolean? | yes | | - | length | number? | yes | | - | unit | string? | yes | | - | width | number? | yes | | + | batch_id | string? | yes | | + | success | boolean? | yes | | --- -#### [DiscountRules](#DiscountRules) +#### [BulkStateTransistionRequest](#BulkStateTransistionRequest) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | type | string? | yes | | - | value | number? | yes | | + | file_name | string? | yes | | + | url | string? | yes | | --- -#### [DispatchManifest](#DispatchManifest) +#### [BulkStateTransistionResponse](#BulkStateTransistionResponse) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | manifest_id | string | no | | + | batch_id | string? | yes | | + | message | string? | yes | | + | status | boolean? | yes | | --- -#### [Document](#Document) +#### [BuyerDetails](#BuyerDetails) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | ds_type | string | no | | - | legal_name | string | no | | - | url | string? | yes | | - | value | string | no | | - | verified | boolean | no | | + | address | string | no | | + | ajio_site_id | string? | yes | | + | city | string | no | | + | gstin | string | no | | + | name | string | no | | + | pincode | number | no | | + | state | string | no | | --- -#### [DpConfiguration](#DpConfiguration) +#### [BuyRules](#BuyRules) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | shipping_by | string? | yes | | + | cart_conditions | string? | yes | | + | item_criteria | [ItemCriterias](#ItemCriterias)? | yes | | --- -#### [DPDetailsData](#DPDetailsData) +#### [Charge](#Charge) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | awb_no | string? | yes | | - | country | string? | yes | | - | eway_bill_id | string? | yes | | - | gst_tag | string? | yes | | - | id | number? | yes | | - | name | string? | yes | | - | pincode | string? | yes | | - | track_url | string? | yes | | + | amount | string | no | | + | code | string? | yes | | + | name | string | no | | + | tax | [Tax](#Tax)? | yes | | + | type | string | no | | --- -#### [EInvoiceDetails](#EInvoiceDetails) +#### [CheckResponse](#CheckResponse) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | error_details | [[EInvoiceErrorDetails](#EInvoiceErrorDetails)]? | yes | | - | irn_details | [EInvoiceIrnDetails](#EInvoiceIrnDetails)? | yes | | + | affiliate_id | string? | yes | Affiliate ID | + | affiliate_shipment_id | string? | yes | Affiliate Shipment ID | + | bags | [[Bags](#Bags)]? | yes | | + | is_bag_locked | boolean? | yes | Is Bag Locked | + | is_shipment_locked | boolean? | yes | Is Shipment Locked | + | lock_status | string? | yes | Lock Status: Expected lock_status: [complete, operational, financial] | + | original_filter | [OriginalFilter](#OriginalFilter)? | yes | Filter | + | shipment_id | string? | yes | Shipment ID | + | status | string? | yes | Status | --- -#### [EInvoiceErrorDetails](#EInvoiceErrorDetails) +#### [Click2CallResponse](#Click2CallResponse) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | error_code | string? | yes | | - | error_message | string | no | | + | call_id | string | no | Call ID from the provider | + | success | boolean | no | Success | --- -#### [EInvoiceErrorInfo](#EInvoiceErrorInfo) +#### [Company](#Company) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | error_details | [[EInvoiceErrorDetails](#EInvoiceErrorDetails)]? | yes | | + | agreement_start_date | string? | yes | | + | business_type | string? | yes | | + | company_name | string? | yes | | + | company_type | string? | yes | | + | created_on | string? | yes | | + | gst_number | string? | yes | | + | id | number? | yes | | + | meta | string? | yes | | + | modified_on | string? | yes | | + | pan_no | string? | yes | | --- -#### [EInvoiceErrorResponse](#EInvoiceErrorResponse) +#### [CompanyDetails](#CompanyDetails) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | message | string? | yes | | - | response_data | [[EInvoiceErrorResponseData](#EInvoiceErrorResponseData)]? | yes | | + | address | string? | yes | | + | company_cin | string? | yes | | + | company_contact | [ContactDetails](#ContactDetails)? | yes | | + | company_gst | string? | yes | | + | company_id | number? | yes | | + | company_name | string? | yes | | --- -#### [EInvoiceErrorResponseData](#EInvoiceErrorResponseData) +#### [ContactDetails](#ContactDetails) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | einvoice_info | [EInvoiceErrorInfo](#EInvoiceErrorInfo)? | yes | | - | einvoice_type | string | no | | - | message | string | no | | - | shipment_id | string | no | | - | status | number | no | | + | emails | [string]? | yes | | + | phone | [[PhoneDetails](#PhoneDetails)]? | yes | | --- -#### [EInvoiceErrorResponseDetails](#EInvoiceErrorResponseDetails) +#### [ConversionRate](#ConversionRate) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | message | string? | yes | | - | response_data | [[EInvoiceErrorResponseData](#EInvoiceErrorResponseData)] | no | | + | base | string? | yes | | + | rates | string? | yes | | --- -#### [EinvoiceInfo](#EinvoiceInfo) +#### [CourierPartnerTrackingDetails](#CourierPartnerTrackingDetails) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | credit_note | string? | yes | | - | invoice | string? | yes | | + | awb | string | no | AWB Number | + | dp_location | string? | yes | Current location of Courier partner | + | dp_name | string | no | Courier Partner name | + | dp_status | string | no | Status at Courier partner end | + | dp_status_updated_at | string | no | Date Time at which status was updated at Courier partner | + | estimated_delivery_date | string? | yes | Estimated delivery date received from Courier partner | + | id | number? | yes | Id of Tracking history | + | journey | string | no | Journey type of the shipment | + | meta | string? | yes | Meta field to store Courier partner's meta data | + | operational_status | string | no | Operational status of OMS | + | promised_delivery_date | string? | yes | Promised delivery date received from Courier partner | + | remark | string? | yes | Remark from courier partner | + | shipment_id | string | no | Shipment ID | --- -#### [EInvoiceIrnDetails](#EInvoiceIrnDetails) +#### [CourierPartnerTrackingResponse](#CourierPartnerTrackingResponse) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | ack_dt | string | no | | - | ack_no | string | no | | - | irn | string | no | | - | signed_invoice | string | no | | - | signed_qr_code | string | no | | + | items | [[CourierPartnerTrackingDetails](#CourierPartnerTrackingDetails)]? | yes | | + | page | [PageDetails](#PageDetails)? | yes | | --- -#### [EInvoicePortalDetails](#EInvoicePortalDetails) +#### [CreateChannelConfig](#CreateChannelConfig) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | password | string? | yes | | - | user | string? | yes | | - | username | string? | yes | | + | dp_configuration | [DpConfiguration](#DpConfiguration)? | yes | | + | location_reassignment | boolean? | yes | | + | lock_states | [string]? | yes | | + | logo_url | string? | yes | | + | payment_info | [CreateChannelPaymentInfo](#CreateChannelPaymentInfo)? | yes | | + | shipment_assignment | string? | yes | | --- -#### [EInvoiceResponseData](#EInvoiceResponseData) +#### [CreateChannelConfigData](#CreateChannelConfigData) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | einvoice_info | [EInvoiceDetails](#EInvoiceDetails)? | yes | | - | einvoice_type | string | no | | - | message | string | no | | - | shipment_id | string | no | | - | status | number | no | | + | config_data | [CreateChannelConfig](#CreateChannelConfig)? | yes | | --- -#### [EInvoiceRetry](#EInvoiceRetry) +#### [CreateChannelConfigResponse](#CreateChannelConfigResponse) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | shipments_data | [[EInvoiceRetryShipmentData](#EInvoiceRetryShipmentData)]? | yes | | + | acknowledged | boolean? | yes | | + | is_inserted | boolean? | yes | | + | is_upserted | boolean? | yes | | --- -#### [EInvoiceRetryResponse](#EInvoiceRetryResponse) +#### [CreateChannelConifgErrorResponse](#CreateChannelConifgErrorResponse) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | response_data | [[EInvoiceResponseData](#EInvoiceResponseData)] | no | | + | error | string? | yes | | --- -#### [EInvoiceRetryShipmentData](#EInvoiceRetryShipmentData) +#### [CreateChannelPaymentInfo](#CreateChannelPaymentInfo) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | einvoice_type | string | no | | - | shipment_id | string | no | | + | mode_of_payment | string? | yes | | + | payment_methods | [[PaymentMethods](#PaymentMethods)]? | yes | | + | source | string? | yes | | --- -#### [Entities](#Entities) +#### [CreateOrderAPI](#CreateOrderAPI) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | affiliate_bag_id | string? | yes | Application/Affiliate Bag ID, Required if the ID is missing | - | affiliate_id | string? | yes | Application/Affiliate ID, Required if the ID is missing | - | affiliate_order_id | string? | yes | Application/Affiliate Order ID, Required if the ID is missing | - | affiliate_shipment_id | string? | yes | Application/Affiliate Shipment ID, Required if the ID is missing | - | id | string? | yes | Shipment ID if 'entity_type': shipments \| Bag Id if 'entity_type': bags | - | reason_text | string | no | Reason For Shipment/Bag Action | + | billing_info | [BillingInfo](#BillingInfo) | no | | + | charges | [[Charge](#Charge)]? | yes | | + | config | string? | yes | | + | currency_info | string? | yes | | + | external_creation_date | string? | yes | | + | external_order_id | string? | yes | | + | meta | string? | yes | | + | payment_info | [PaymentInfo](#PaymentInfo) | no | | + | shipments | [[Shipment](#Shipment)] | no | | + | shipping_info | [ShippingInfo](#ShippingInfo) | no | | + | tax_info | [TaxInfo](#TaxInfo)? | yes | | + | user_info | [UserInfo](#UserInfo)? | yes | | --- -#### [EntitiesDataUpdates](#EntitiesDataUpdates) +#### [CreateOrderErrorReponse](#CreateOrderErrorReponse) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | data | string? | yes | | - | filters | [string]? | yes | | + | code | string? | yes | | + | exception | string? | yes | | + | info | any? | yes | | + | message | string | no | | + | meta | string? | yes | | + | request_id | string? | yes | | + | stack_trace | string? | yes | | + | status | number | no | | --- -#### [EntitiesReasons](#EntitiesReasons) +#### [CreateOrderPayload](#CreateOrderPayload) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | data | [EntityReasonData](#EntityReasonData)? | yes | | - | filters | [string]? | yes | | + | affiliate_id | string | no | | + | order_config | [OrderConfig](#OrderConfig) | no | | + | order_info | [OrderInfo](#OrderInfo) | no | | --- -#### [EntityReasonData](#EntityReasonData) +#### [CreateOrderResponse](#CreateOrderResponse) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | reason_id | number? | yes | | - | reason_text | string? | yes | | + | fynd_order_id | string | no | | --- -#### [Error](#Error) +#### [CreditBalanceInfo](#CreditBalanceInfo) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | message | string? | yes | | - | success | boolean? | yes | | - | type | string? | yes | | - | value | string? | yes | | + | customer_mobile_number | string? | yes | | + | reason | string? | yes | | + | total_credited_balance | string? | yes | | --- -#### [ErrorDetail](#ErrorDetail) +#### [Currency](#Currency) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | message | string? | yes | | - | success | boolean? | yes | | + | currency_code | string? | yes | | + | currency_symbol | string? | yes | | --- -#### [ErrorResponse](#ErrorResponse) +#### [CurrencyInfo](#CurrencyInfo) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | error | string? | yes | | - | error_trace | string? | yes | | - | message | string | no | | - | status | number? | yes | | - | success | boolean? | yes | | + | conversion_rate | [ConversionRate](#ConversionRate)? | yes | | + | ordering_currency | [OrderingCurrency](#OrderingCurrency)? | yes | | --- -#### [FailedOrderLogDetails](#FailedOrderLogDetails) +#### [CurrentStatus](#CurrentStatus) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | error_trace | string | no | | - | exception | string | no | | + | bag_id | number? | yes | | + | bag_state_mapper | [BagStateMapper](#BagStateMapper)? | yes | | + | created_at | string? | yes | | + | created_ts | string? | yes | | + | delivery_awb_number | string? | yes | | + | delivery_partner_id | number? | yes | | + | id | number | no | | + | kafka_sync | boolean? | yes | | + | shipment_id | string? | yes | | + | state_id | number? | yes | | + | state_type | string? | yes | | + | status | string? | yes | | + | store_id | number? | yes | | + | updated_at | string? | yes | | --- -#### [FailedOrderLogs](#FailedOrderLogs) +#### [DataUpdates](#DataUpdates) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | items | [FailedOrdersItem](#FailedOrdersItem) | no | | - | page | [PageDetails](#PageDetails) | no | | + | entities | [[EntitiesDataUpdates](#EntitiesDataUpdates)]? | yes | | + | order_item_status | [[OrderItemDataUpdates](#OrderItemDataUpdates)]? | yes | | + | products | [[ProductsDataUpdates](#ProductsDataUpdates)]? | yes | | --- -#### [FailedOrdersItem](#FailedOrdersItem) +#### [DateRange](#DateRange) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | channel | [LogsChannelDetails](#LogsChannelDetails) | no | | - | created_at | string | no | | - | display_message | string | no | | - | error_message | string | no | | - | log_id | number | no | | - | meta | string | no | | - | method_name | string | no | | - | order_id | string | no | | - | payment | [LogPaymentDetails](#LogPaymentDetails) | no | | + | from_date | string? | yes | | + | to_date | string? | yes | | --- -#### [FetchCreditBalanceRequestPayload](#FetchCreditBalanceRequestPayload) +#### [Dates](#Dates) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | affiliate_id | string | no | | - | customer_mobile_number | string | no | | - | seller_id | string | no | | + | delivery_date | string? | yes | | + | order_created | string? | yes | | --- -#### [FetchCreditBalanceResponsePayload](#FetchCreditBalanceResponsePayload) +#### [DebugInfo](#DebugInfo) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | data | [CreditBalanceInfo](#CreditBalanceInfo) | no | | - | success | boolean | no | | + | stormbreaker_uuid | string? | yes | | --- -#### [FileResponse](#FileResponse) +#### [DeliverySlotDetails](#DeliverySlotDetails) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | cdn | [URL](#URL)? | yes | | - | file_name | string? | yes | Name of the file | + | date | string? | yes | | + | lower_bound | string? | yes | | + | slot | string? | yes | | + | type | string? | yes | | + | upper_bound | string? | yes | | --- -#### [FilterInfoOption](#FilterInfoOption) +#### [Dimension](#Dimension) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | min_search_size | number? | yes | | - | name | string? | yes | | - | placeholder_text | string? | yes | | - | show_ui | boolean? | yes | | - | text | string? | yes | | - | value | string? | yes | | + | height | string? | yes | | + | length | number? | yes | | + | packaging_type | string? | yes | | + | weight | string? | yes | | + | width | number? | yes | | --- -#### [FilterOptions](#FilterOptions) +#### [Dimensions](#Dimensions) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | label | string | no | | - | name | string? | yes | | - | value | string | no | | + | height | number? | yes | | + | is_default | boolean? | yes | | + | length | number? | yes | | + | unit | string? | yes | | + | width | number? | yes | | --- -#### [Filters](#Filters) +#### [DiscountRules](#DiscountRules) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | date_range | [DateRange](#DateRange)? | yes | | - | dp_ids | number? | yes | | - | dp_name | string? | yes | | - | from_date | string? | yes | | - | lane | string? | yes | | - | logo | string? | yes | | - | selected_shipments | string? | yes | | - | store_name | string? | yes | | - | stores | number? | yes | | - | to_date | string? | yes | | + | type | string? | yes | | + | value | number? | yes | | --- -#### [FiltersInfo](#FiltersInfo) +#### [DispatchManifest](#DispatchManifest) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | options | [[FilterInfoOption](#FilterInfoOption)]? | yes | | - | placeholder_text | string? | yes | | - | required | boolean? | yes | | - | text | string | no | | - | type | string | no | | - | value | string | no | | + | manifest_id | string | no | | --- -#### [FiltersList](#FiltersList) +#### [Document](#Document) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | filter_type | string | no | | - | label | string | no | | - | options | [[FilterOptions](#FilterOptions)] | no | | - | placeholder_text | string? | yes | | - | required | boolean? | yes | | - | type | string | no | | + | ds_type | string | no | | + | legal_name | string | no | | + | url | string? | yes | | | value | string | no | | + | verified | boolean | no | | --- -#### [FiltersRequest](#FiltersRequest) +#### [DpConfiguration](#DpConfiguration) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | date_range | [DateRange](#DateRange)? | yes | | - | dp_ids | number | no | | - | dp_name | string | no | | - | lane | string | no | | - | logo | string? | yes | | - | store_name | string | no | | - | stores | number | no | | + | shipping_by | string? | yes | | --- -#### [FiltersResponse](#FiltersResponse) +#### [DPDetailsData](#DPDetailsData) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | advance_filter | [AdvanceFilterInfo](#AdvanceFilterInfo)? | yes | | - | global_filter | [[FiltersInfo](#FiltersInfo)]? | yes | | + | awb_no | string? | yes | | + | country | string? | yes | | + | eway_bill_id | string? | yes | | + | gst_tag | string? | yes | | + | id | number? | yes | | + | name | string? | yes | | + | pincode | string? | yes | | + | track_url | string? | yes | | --- -#### [FinancialBreakup](#FinancialBreakup) +#### [EInvoiceDetails](#EInvoiceDetails) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | added_to_fynd_cash | boolean | no | | - | amount_paid | number | no | | - | amount_paid_roundoff | number? | yes | | - | amount_to_be_collected | number? | yes | | - | brand_calculated_amount | number | no | | - | cashback | number | no | | - | cashback_applied | number | no | | - | cod_charges | number | no | | - | coupon_effective_discount | number | no | | - | coupon_value | number | no | | - | delivery_charge | number | no | | - | discount | number | no | | - | fynd_credits | number | no | | - | gst_fee | number | no | | - | gst_tag | string | no | | - | gst_tax_percentage | number | no | | - | hsn_code | string | no | | - | identifiers | [Identifier](#Identifier) | no | | - | item_name | string | no | | - | price_effective | number | no | | - | price_marked | number | no | | - | promotion_effective_discount | number | no | | - | refund_credit | number | no | | - | size | string | no | | - | tax_collected_at_source | number? | yes | | - | total_units | number | no | | - | transfer_price | number | no | | - | value_of_good | number | no | | + | error_details | [[EInvoiceErrorDetails](#EInvoiceErrorDetails)]? | yes | | + | irn_details | [EInvoiceIrnDetails](#EInvoiceIrnDetails)? | yes | | --- -#### [Formatted](#Formatted) +#### [EInvoiceErrorDetails](#EInvoiceErrorDetails) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | max | string? | yes | | - | min | string? | yes | | + | error_code | string? | yes | | + | error_message | string | no | | --- -#### [FulfillingStore](#FulfillingStore) +#### [EInvoiceErrorInfo](#EInvoiceErrorInfo) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | address | string | no | | - | address1 | string? | yes | | - | city | string | no | | - | code | string | no | | - | contact_person | string | no | | - | country | string | no | | - | display_address | string? | yes | | - | fulfillment_channel | string | no | | - | id | number | no | | - | meta | string | no | | - | phone | string | no | | - | pincode | string | no | | - | state | string | no | | - | store_name | string | no | | + | error_details | [[EInvoiceErrorDetails](#EInvoiceErrorDetails)]? | yes | | --- -#### [FyndOrderIdList](#FyndOrderIdList) +#### [EInvoiceErrorResponse](#EInvoiceErrorResponse) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | fynd_order_id | [string]? | yes | | + | message | string? | yes | | + | response_data | [[EInvoiceErrorResponseData](#EInvoiceErrorResponseData)]? | yes | | --- -#### [GeneratePosOrderReceiptResponse](#GeneratePosOrderReceiptResponse) +#### [EInvoiceErrorResponseData](#EInvoiceErrorResponseData) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | customer_cn_receipt | string? | yes | | - | customer_cn_receipt_template | string? | yes | | - | invoice_receipt | string? | yes | | - | invoice_receipt_template | string? | yes | | - | merchant_cn_receipt | string? | yes | | - | order_id | string? | yes | | - | payment_receipt | string? | yes | | - | payment_receipt_template | string? | yes | | - | success | boolean? | yes | | + | einvoice_info | [EInvoiceErrorInfo](#EInvoiceErrorInfo)? | yes | | + | einvoice_type | string | no | | + | message | string | no | | + | shipment_id | string | no | | + | status | number | no | | --- -#### [GetActionsResponse](#GetActionsResponse) +#### [EInvoiceErrorResponseDetails](#EInvoiceErrorResponseDetails) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | permissions | [[ActionInfo](#ActionInfo)]? | yes | | + | message | string? | yes | | + | response_data | [[EInvoiceErrorResponseData](#EInvoiceErrorResponseData)] | no | | --- -#### [GetBagsPlatformResponse](#GetBagsPlatformResponse) +#### [EinvoiceInfo](#EinvoiceInfo) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | data | [BagData](#BagData)? | yes | | - | status_code | number? | yes | | + | credit_note | string? | yes | | + | invoice | string? | yes | | --- -#### [GetRefundStateConfigurationResponse](#GetRefundStateConfigurationResponse) +#### [EInvoiceIrnDetails](#EInvoiceIrnDetails) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | config | [PostRefundStateConfiguration](#PostRefundStateConfiguration)? | yes | | - | success | boolean? | yes | | + | ack_dt | string | no | | + | ack_no | string | no | | + | irn | string | no | | + | signed_invoice | string | no | | + | signed_qr_code | string | no | | --- -#### [GetRefundStates](#GetRefundStates) +#### [EInvoicePortalDetails](#EInvoicePortalDetails) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | items | [[RefundStates](#RefundStates)]? | yes | | - | status | number? | yes | | - | success | boolean? | yes | | + | password | string? | yes | | + | user | string? | yes | | + | username | string? | yes | | --- -#### [GlobalFiltersResponse](#GlobalFiltersResponse) +#### [EInvoiceResponseData](#EInvoiceResponseData) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | company_id | number | no | | - | filters | [[FiltersList](#FiltersList)] | no | | - | request_source | string? | yes | | - | show_in | string | no | | + | einvoice_info | [EInvoiceDetails](#EInvoiceDetails)? | yes | | + | einvoice_type | string | no | | + | message | string | no | | + | shipment_id | string | no | | + | status | number | no | | --- -#### [GSTDetailsData](#GSTDetailsData) +#### [EInvoiceRetry](#EInvoiceRetry) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | brand_calculated_amount | number | no | | - | cgst_gst_fee | number? | yes | | - | cgst_tax_percentage | number? | yes | | - | gst_fee | number | no | | - | gst_tag | string? | yes | | - | gst_tax_percentage | number? | yes | | - | gstin_code | string? | yes | | - | hsn_code | string? | yes | | - | hsn_code_id | string? | yes | | - | igst_gst_fee | number? | yes | | - | igst_tax_percentage | number? | yes | | - | is_default_hsn_code | boolean? | yes | | - | sgst_gst_fee | number? | yes | | - | sgst_tax_percentage | number? | yes | | - | tax_collected_at_source | number | no | | - | value_of_good | number | no | | + | shipments_data | [[EInvoiceRetryShipmentData](#EInvoiceRetryShipmentData)]? | yes | | --- -#### [HistoryDict](#HistoryDict) +#### [EInvoiceRetryResponse](#EInvoiceRetryResponse) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | assigned_agent | string? | yes | Assigned Agent | - | bag_id | number? | yes | Bag ID | - | createdat | string | no | Create date | - | display_message | string? | yes | Display Message | - | l1_detail | string? | yes | L1 details of bag | - | l2_detail | string? | yes | L2 details of bag | - | l3_detail | string? | yes | L3 details of bag | - | message | string | no | History Message or comment | - | meta | [HistoryMeta](#HistoryMeta)? | yes | meta | - | ticket_id | string? | yes | Ticket ID | - | ticket_url | string? | yes | Ticket URL | - | type | string | no | type of history, Expected Values: [ activity_status, activity_escalation, activity_comment, outbound_notification, outbound_voice ] | - | user | string | no | User who created the history | + | response_data | [[EInvoiceResponseData](#EInvoiceResponseData)] | no | | --- -#### [HistoryMeta](#HistoryMeta) +#### [EInvoiceRetryShipmentData](#EInvoiceRetryShipmentData) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | activity_comment | string? | yes | | - | activity_type | string? | yes | | - | billsec | string? | yes | | - | call_id | string? | yes | | - | caller | string? | yes | | - | callerid | string? | yes | | - | channel_type | string? | yes | | - | duration | string? | yes | | - | endtime | string? | yes | | - | message | string? | yes | | - | reason | [HistoryReason](#HistoryReason)? | yes | | - | receiver | string? | yes | | - | recipient | string? | yes | | - | recordpath | string? | yes | | - | short_link | string? | yes | | - | slug | string? | yes | | - | starttime | string? | yes | | - | status | string? | yes | | - | status1 | string? | yes | | - | status2 | string? | yes | | - | store_code | string? | yes | | - | store_id | number? | yes | | - | store_name | string? | yes | | + | einvoice_type | string | no | | + | shipment_id | string | no | | --- -#### [HistoryReason](#HistoryReason) +#### [Entities](#Entities) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | category | string? | yes | | - | code | number? | yes | | - | dislay_name | string? | yes | | - | quantity | number? | yes | | - | state | string? | yes | | - | text | string? | yes | | + | affiliate_bag_id | string? | yes | Application/Affiliate Bag ID, Required if the ID is missing | + | affiliate_id | string? | yes | Application/Affiliate ID, Required if the ID is missing | + | affiliate_order_id | string? | yes | Application/Affiliate Order ID, Required if the ID is missing | + | affiliate_shipment_id | string? | yes | Application/Affiliate Shipment ID, Required if the ID is missing | + | id | string? | yes | Shipment ID if 'entity_type': shipments \| Bag Id if 'entity_type': bags | + | reason_text | string | no | Reason For Shipment/Bag Action | --- -#### [Identifier](#Identifier) +#### [EntitiesDataUpdates](#EntitiesDataUpdates) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | alu | string? | yes | | - | ean | string? | yes | | - | isbn | string? | yes | | - | sku_code | string? | yes | | - | upc | string? | yes | | + | data | string? | yes | | + | filters | [string]? | yes | | --- -#### [InvalidateShipmentCacheNestedResponse](#InvalidateShipmentCacheNestedResponse) +#### [EntitiesReasons](#EntitiesReasons) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | error | string? | yes | | - | message | string? | yes | | - | shipment_id | string? | yes | | - | status | number? | yes | | + | data | [EntityReasonData](#EntityReasonData)? | yes | | + | filters | [string]? | yes | | --- -#### [InvalidateShipmentCachePayload](#InvalidateShipmentCachePayload) +#### [EntityReasonData](#EntityReasonData) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | affiliate_bag_ids | [string]? | yes | Affiliate Bag Ids to clear cache of shipment Ids mapped to it | - | bag_ids | [string]? | yes | Bag Ids to clear cache of shipment Ids mapped to it | - | shipment_ids | [string]? | yes | Shipment Ids to clear cache | + | reason_id | number? | yes | | + | reason_text | string? | yes | | --- -#### [InvalidateShipmentCacheResponse](#InvalidateShipmentCacheResponse) +#### [Error](#Error) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | response | [[InvalidateShipmentCacheNestedResponse](#InvalidateShipmentCacheNestedResponse)]? | yes | | + | message | string? | yes | | + | success | boolean? | yes | | --- -#### [InvoiceDetails](#InvoiceDetails) +#### [ErrorDetail](#ErrorDetail) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | invoice_url | string? | yes | | - | label_url | string? | yes | | - | store_invoice_id | string? | yes | | - | updated_date | string? | yes | | + | message | string? | yes | | + | success | boolean? | yes | | --- -#### [InvoiceInfo](#InvoiceInfo) +#### [ErrorResponse](#ErrorResponse) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | credit_note_id | string? | yes | | - | external_invoice_id | string? | yes | | - | invoice_url | string? | yes | | - | label_url | string? | yes | | - | links | string? | yes | | - | store_invoice_id | string? | yes | | - | updated_date | string? | yes | | + | error | string? | yes | | + | error_trace | string? | yes | | + | message | string | no | | + | status | number? | yes | | + | success | boolean? | yes | | --- -#### [Item](#Item) +#### [FailedOrderLogDetails](#FailedOrderLogDetails) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | attributes | [Attributes](#Attributes) | no | | - | branch_url | string? | yes | | - | brand | string | no | | - | brand_id | number | no | | - | can_cancel | boolean? | yes | | - | can_return | boolean? | yes | | - | code | string? | yes | | - | color | string? | yes | | - | department_id | number? | yes | | - | gender | string? | yes | | - | image | [string] | no | | - | item_id | number | no | | - | l1_category | [string]? | yes | | - | l1_category_id | number? | yes | | - | l2_category | [string]? | yes | | - | l2_category_id | number? | yes | | - | l3_category | number? | yes | | - | l3_category_name | string? | yes | | - | last_updated_at | string? | yes | | - | meta | string? | yes | | - | name | string | no | | - | size | string | no | | - | slug_key | string | no | | - | webstore_product_url | string? | yes | | + | error_trace | string | no | | + | exception | string | no | | --- -#### [ItemCriterias](#ItemCriterias) +#### [FailedOrderLogs](#FailedOrderLogs) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | item_brand | [number]? | yes | | + | items | [FailedOrdersItem](#FailedOrdersItem) | no | | + | page | [PageDetails](#PageDetails) | no | | --- -#### [JobDetailsData](#JobDetailsData) +#### [FailedOrdersItem](#FailedOrdersItem) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | batch_id | string? | yes | | - | company_id | string? | yes | | - | failed_shipments_count | number? | yes | | - | processing_shipments_count | number? | yes | | - | successful_shipment_ids | [string]? | yes | | - | successful_shipments_count | number? | yes | | - | total_shipments_count | number? | yes | | + | channel | [LogsChannelDetails](#LogsChannelDetails) | no | | + | created_at | string | no | | + | display_message | string | no | | + | error_message | string | no | | + | log_id | number | no | | + | meta | string | no | | + | method_name | string | no | | + | order_id | string | no | | + | payment | [LogPaymentDetails](#LogPaymentDetails) | no | | --- -#### [JobDetailsResponse](#JobDetailsResponse) +#### [FetchCreditBalanceRequestPayload](#FetchCreditBalanceRequestPayload) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | created_ts | string? | yes | | - | data | [[JobDetailsData](#JobDetailsData)]? | yes | | - | failed_records | [[String: string]]? | yes | | - | file_url | string? | yes | | - | message | string? | yes | | - | status | string? | yes | | - | success | boolean? | yes | | - | uploaded_by | string? | yes | | - | uploaded_on | string? | yes | | - | user_id | string? | yes | | + | affiliate_id | string | no | | + | customer_mobile_number | string | no | | + | seller_id | string | no | | --- -#### [JobFailedResponse](#JobFailedResponse) +#### [FetchCreditBalanceResponsePayload](#FetchCreditBalanceResponsePayload) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | file_name | string? | yes | | - | url | string? | yes | | + | data | [CreditBalanceInfo](#CreditBalanceInfo) | no | | + | success | boolean | no | | --- -#### [L3](#L3) +#### [FileResponse](#FileResponse) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | display_name | string? | yes | | - | id | string? | yes | | + | cdn | [URL](#URL)? | yes | | + | file_name | string? | yes | Name of the file | --- -#### [LaneConfigResponse](#LaneConfigResponse) +#### [FilterInfoOption](#FilterInfoOption) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | super_lanes | [[SuperLane](#SuperLane)]? | yes | | + | min_search_size | number? | yes | | + | name | string? | yes | | + | placeholder_text | string? | yes | | + | show_ui | boolean? | yes | | + | text | string? | yes | | + | value | string? | yes | | --- -#### [LineItem](#LineItem) +#### [Filters](#Filters) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | charges | [[Charge](#Charge)]? | yes | | - | custom_message | string? | yes | | - | external_line_id | string? | yes | | - | meta | string? | yes | | - | quantity | number? | yes | | - | seller_identifier | string | no | | + | date_range | [DateRange](#DateRange)? | yes | | + | dp_ids | number? | yes | | + | dp_name | string? | yes | | + | from_date | string? | yes | | + | lane | string? | yes | | + | logo | string? | yes | | + | selected_shipments | string? | yes | | + | store_name | string? | yes | | + | stores | number? | yes | | + | to_date | string? | yes | | --- -#### [LocationDetails](#LocationDetails) +#### [FiltersInfo](#FiltersInfo) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | articles | [[ArticleDetails](#ArticleDetails)] | no | | - | fulfillment_id | number | no | | - | fulfillment_type | string | no | | + | options | [[FilterInfoOption](#FilterInfoOption)]? | yes | | + | placeholder_text | string? | yes | | + | required | boolean? | yes | | + | text | string | no | | + | type | string | no | | + | value | string | no | | --- -#### [LockData](#LockData) +#### [FiltersRequest](#FiltersRequest) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | lock_message | string? | yes | | - | locked | boolean? | yes | | - | mto | boolean? | yes | | + | date_range | [DateRange](#DateRange)? | yes | | + | dp_ids | number | no | | + | dp_name | string | no | | + | lane | string | no | | + | logo | string? | yes | | + | store_name | string | no | | + | stores | number | no | | --- -#### [LogPaymentDetails](#LogPaymentDetails) +#### [FiltersResponse](#FiltersResponse) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | amount_paid | string? | yes | | - | payment_mode | string? | yes | | + | advance_filter | [AdvanceFilterInfo](#AdvanceFilterInfo)? | yes | | + | global_filter | [[FiltersInfo](#FiltersInfo)]? | yes | | --- -#### [LogsChannelDetails](#LogsChannelDetails) +#### [FinancialBreakup](#FinancialBreakup) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | channel_id | string? | yes | | - | channel_shipment_id | string? | yes | | - | logo | string? | yes | | - | name | string? | yes | | + | added_to_fynd_cash | boolean | no | | + | amount_paid | number | no | | + | amount_paid_roundoff | number? | yes | | + | amount_to_be_collected | number? | yes | | + | brand_calculated_amount | number | no | | + | cashback | number | no | | + | cashback_applied | number | no | | + | cod_charges | number | no | | + | coupon_effective_discount | number | no | | + | coupon_value | number | no | | + | delivery_charge | number | no | | + | discount | number | no | | + | fynd_credits | number | no | | + | gst_fee | number | no | | + | gst_tag | string | no | | + | gst_tax_percentage | number | no | | + | hsn_code | string | no | | + | identifiers | [Identifier](#Identifier) | no | | + | item_name | string | no | | + | price_effective | number | no | | + | price_marked | number | no | | + | promotion_effective_discount | number | no | | + | refund_credit | number | no | | + | size | string | no | | + | tax_collected_at_source | number? | yes | | + | total_units | number | no | | + | transfer_price | number | no | | + | value_of_good | number | no | | --- -#### [Manifest](#Manifest) +#### [Formatted](#Formatted) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | company_id | number | no | | - | created_at | string | no | | - | created_by | string | no | | - | created_ts | string? | yes | | - | filters | [Filters](#Filters)? | yes | | - | id | number | no | | - | is_active | boolean | no | | - | manifest_id | string | no | | - | meta | [ManifestMeta](#ManifestMeta)? | yes | | - | pdf_meta | [PDFMeta](#PDFMeta)? | yes | | - | status | string | no | | - | uid | string | no | | - | user_id | string | no | | + | max | string? | yes | | + | min | string? | yes | | --- -#### [ManifestDetails](#ManifestDetails) +#### [FulfillingStore](#FulfillingStore) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | additional_shipment_count | number? | yes | | - | items | [[ManifestItemDetails](#ManifestItemDetails)]? | yes | | - | manifest_details | [[Manifest](#Manifest)]? | yes | | - | page | [ManifestPageInfo](#ManifestPageInfo)? | yes | | + | address | string | no | | + | address1 | string? | yes | | + | city | string | no | | + | code | string | no | | + | contact_person | string | no | | + | country | string | no | | + | display_address | string? | yes | | + | fulfillment_channel | string | no | | + | id | number | no | | + | meta | string | no | | + | phone | string | no | | + | pincode | string | no | | + | state | string | no | | + | store_name | string | no | | --- -#### [ManifestFile](#ManifestFile) +#### [FyndOrderIdList](#FyndOrderIdList) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | bucket | string? | yes | | - | key | string? | yes | | - | region | string? | yes | | + | fynd_order_id | [string]? | yes | | --- -#### [ManifestFiltersResponse](#ManifestFiltersResponse) +#### [GenerateInvoiceIDErrorResponse](#GenerateInvoiceIDErrorResponse) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | advance_filter | [[FiltersInfo](#FiltersInfo)]? | yes | | - | global_filter | [[FiltersInfo](#FiltersInfo)]? | yes | | + | items | [[GenerateInvoiceIDErrorResponseData](#GenerateInvoiceIDErrorResponseData)]? | yes | | --- -#### [ManifestItemDetails](#ManifestItemDetails) +#### [GenerateInvoiceIDErrorResponseData](#GenerateInvoiceIDErrorResponseData) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | awb_number | string? | yes | | - | invoice_id | string? | yes | | - | order_id | string | no | | - | quantity | number? | yes | | - | shipment_created_at | string? | yes | | - | shipment_id | string | no | | + | error_message | string? | yes | | + | invoice_id | boolean? | yes | | + | shipment_id | string? | yes | | + | success | boolean? | yes | | --- -#### [ManifestList](#ManifestList) +#### [GenerateInvoiceIDRequest](#GenerateInvoiceIDRequest) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | items | [[Manifest](#Manifest)]? | yes | | - | page | [ManifestPageInfo](#ManifestPageInfo)? | yes | | + | shipment_ids | [string] | no | | --- -#### [ManifestMediaUpdate](#ManifestMediaUpdate) +#### [GenerateInvoiceIDResponse](#GenerateInvoiceIDResponse) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | code | number? | yes | | - | entity | string? | yes | | - | file | [ManifestFile](#ManifestFile)? | yes | | - | link | string? | yes | | - | media_type | string? | yes | | - | status | boolean? | yes | | + | items | [[GenerateInvoiceIDResponseData](#GenerateInvoiceIDResponseData)]? | yes | | --- -#### [ManifestMeta](#ManifestMeta) +#### [GenerateInvoiceIDResponseData](#GenerateInvoiceIDResponseData) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | filters | [Filters](#Filters)? | yes | | - | total_shipment_prices_count | [TotalShipmentPricesCount](#TotalShipmentPricesCount)? | yes | | + | error_message | boolean? | yes | | + | invoice_id | string? | yes | | + | shipment_id | string? | yes | | + | success | boolean? | yes | | --- -#### [ManifestPageInfo](#ManifestPageInfo) +#### [GeneratePosOrderReceiptResponse](#GeneratePosOrderReceiptResponse) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | current | number | no | | - | has_next | boolean | no | | - | has_previous | boolean | no | | - | size | number | no | | - | total | number | no | | - | type | string | no | | + | customer_cn_receipt | string? | yes | | + | customer_cn_receipt_template | string? | yes | | + | invoice_receipt | string? | yes | | + | invoice_receipt_template | string? | yes | | + | merchant_cn_receipt | string? | yes | | + | order_id | string? | yes | | + | payment_receipt | string? | yes | | + | payment_receipt_template | string? | yes | | + | success | boolean? | yes | | --- -#### [ManifestShipmentListing](#ManifestShipmentListing) +#### [GetActionsResponse](#GetActionsResponse) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | items | [[ManifestItemDetails](#ManifestItemDetails)]? | yes | | - | lane | string? | yes | | - | message | string? | yes | | - | page | [ManifestPageInfo](#ManifestPageInfo) | no | | - | status | number | no | | - | success | boolean | no | | - | total_count | number | no | | + | permissions | [[ActionInfo](#ActionInfo)]? | yes | | --- -#### [MarketPlacePdf](#MarketPlacePdf) +#### [GetBagsPlatformResponse](#GetBagsPlatformResponse) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | invoice | string? | yes | | - | label | string? | yes | | + | data | [BagData](#BagData)? | yes | | + | status_code | number? | yes | | --- -#### [Meta](#Meta) +#### [GSTDetailsData](#GSTDetailsData) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | kafka_emission_status | number? | yes | | - | state_manager_used | string? | yes | | + | brand_calculated_amount | number | no | | + | cgst_gst_fee | number? | yes | | + | cgst_tax_percentage | number? | yes | | + | gst_fee | number | no | | + | gst_tag | string? | yes | | + | gst_tax_percentage | number? | yes | | + | gstin_code | string? | yes | | + | hsn_code | string? | yes | | + | hsn_code_id | string? | yes | | + | igst_gst_fee | number? | yes | | + | igst_tax_percentage | number? | yes | | + | is_default_hsn_code | boolean? | yes | | + | sgst_gst_fee | number? | yes | | + | sgst_tax_percentage | number? | yes | | + | tax_collected_at_source | number | no | | + | value_of_good | number | no | | --- -#### [OrderBagArticle](#OrderBagArticle) +#### [HistoryDict](#HistoryDict) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | identifiers | string? | yes | | - | return_config | [ReturnConfig](#ReturnConfig)? | yes | | - | size | string? | yes | | - | tags | [string]? | yes | | - | uid | string? | yes | | + | assigned_agent | string? | yes | Assigned Agent | + | bag_id | number? | yes | Bag ID | + | createdat | string | no | Create date | + | display_message | string? | yes | Display Message | + | l1_detail | string? | yes | L1 details of bag | + | l2_detail | string? | yes | L2 details of bag | + | l3_detail | string? | yes | L3 details of bag | + | message | string | no | History Message or comment | + | meta | [HistoryMeta](#HistoryMeta)? | yes | meta | + | ticket_id | string? | yes | Ticket ID | + | ticket_url | string? | yes | Ticket URL | + | type | string | no | type of history, Expected Values: [ activity_status, activity_escalation, activity_comment, outbound_notification, outbound_voice ] | + | user | string | no | User who created the history | --- -#### [OrderBags](#OrderBags) +#### [HistoryMeta](#HistoryMeta) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | affiliate_bag_details | [AffiliateBagsDetails](#AffiliateBagsDetails)? | yes | | - | applied_promos | [[AppliedPromos](#AppliedPromos)]? | yes | | - | article | [OrderBagArticle](#OrderBagArticle)? | yes | | - | bag_configs | [BagConfigs](#BagConfigs)? | yes | | - | bag_id | number | no | | - | bag_status | [[BagStatusHistory](#BagStatusHistory)]? | yes | | - | brand | [OrderBrandName](#OrderBrandName)? | yes | | - | can_cancel | boolean? | yes | | - | can_return | boolean? | yes | | - | current_status | [CurrentStatus](#CurrentStatus)? | yes | | - | delivery_address | [PlatformDeliveryAddress](#PlatformDeliveryAddress)? | yes | | - | display_name | string? | yes | | - | entity_type | string? | yes | | - | financial_breakup | [FinancialBreakup](#FinancialBreakup)? | yes | | - | group_id | string? | yes | | - | gst_details | [GSTDetailsData](#GSTDetailsData)? | yes | | - | identifier | string? | yes | | - | is_parent | boolean? | yes | | - | item | [PlatformItem](#PlatformItem)? | yes | | - | line_number | number? | yes | | - | meta | string? | yes | | - | parent_promo_bags | string? | yes | | - | payment_info | [[BagPaymentMethods](#BagPaymentMethods)]? | yes | | - | payment_methods | [[BagPaymentMethods](#BagPaymentMethods)]? | yes | | - | prices | [Prices](#Prices)? | yes | | - | quantity | number? | yes | | - | seller_identifier | string? | yes | | + | activity_comment | string? | yes | | + | activity_type | string? | yes | | + | billsec | string? | yes | | + | call_id | string? | yes | | + | caller | string? | yes | | + | callerid | string? | yes | | + | channel_type | string? | yes | | + | duration | string? | yes | | + | endtime | string? | yes | | + | message | string? | yes | | + | reason | [HistoryReason](#HistoryReason)? | yes | | + | receiver | string? | yes | | + | recipient | string? | yes | | + | recordpath | string? | yes | | + | short_link | string? | yes | | + | slug | string? | yes | | + | starttime | string? | yes | | + | status | string? | yes | | + | status1 | string? | yes | | + | status2 | string? | yes | | + | store_code | string? | yes | | + | store_id | number? | yes | | + | store_name | string? | yes | | --- -#### [OrderBrandName](#OrderBrandName) +#### [HistoryReason](#HistoryReason) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | brand_name | string? | yes | | - | company | number? | yes | | - | created_on | string? | yes | | - | id | number | no | | - | logo | string? | yes | | - | modified_on | string? | yes | | + | category | string? | yes | | + | code | number? | yes | | + | dislay_name | string? | yes | | + | quantity | number? | yes | | + | state | string? | yes | | + | text | string? | yes | | --- -#### [OrderConfig](#OrderConfig) +#### [Identifier](#Identifier) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | affiliate | [Affiliate](#Affiliate) | no | | - | affiliate_store_id_mapping | [[AffiliateStoreIdMapping](#AffiliateStoreIdMapping)] | no | | - | article_lookup | string? | yes | | - | bag_end_state | string? | yes | | - | create_user | boolean? | yes | | - | store_lookup | string? | yes | | + | alu | string? | yes | | + | ean | string? | yes | | + | isbn | string? | yes | | + | sku_code | string? | yes | | + | upc | string? | yes | | --- -#### [OrderData](#OrderData) +#### [InvalidateShipmentCacheNestedResponse](#InvalidateShipmentCacheNestedResponse) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | created_ts | string? | yes | | - | fynd_order_id | string | no | | - | meta | string? | yes | | - | order_date | string | no | | - | payment_info | [[PaymentInfoData](#PaymentInfoData)]? | yes | | - | payment_methods | string? | yes | | - | prices | [Prices](#Prices)? | yes | | - | tax_details | [TaxDetails](#TaxDetails)? | yes | | + | error | string? | yes | | + | message | string? | yes | | + | shipment_id | string? | yes | | + | status | number? | yes | | --- -#### [OrderDetails](#OrderDetails) +#### [InvalidateShipmentCachePayload](#InvalidateShipmentCachePayload) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | affiliate_id | string? | yes | | - | affiliate_order_date | string? | yes | | - | affiliate_order_id | string? | yes | | - | cashback_applied | number? | yes | | - | cashback_value | number? | yes | | - | cod_charges | number? | yes | | - | collect_by | string? | yes | | - | coupon_value | number? | yes | | - | created_at | string? | yes | | - | created_time | string? | yes | | - | currency | string? | yes | | - | delivery_charges | number? | yes | | - | discount | number? | yes | | - | fynd_credits | number? | yes | | - | fynd_order_id | string? | yes | | - | headers | string? | yes | | - | meta | string? | yes | | - | mode_of_payment | string? | yes | | - | mongo_cart_id | number? | yes | | - | order_value | number? | yes | | - | ordering_channel | string? | yes | | - | ordering_channel_logo | string? | yes | | - | payment_methods | string? | yes | | - | payment_mode_id | number? | yes | | - | prices | [Prices](#Prices)? | yes | | - | promotion_effective_discount | number? | yes | | - | refund_by | string? | yes | | - | tax_details | [TaxDetails](#TaxDetails)? | yes | | - | total_order_value | number? | yes | | - | transaction_id | string? | yes | | - | user_id | string? | yes | | + | affiliate_bag_ids | [string]? | yes | Affiliate Bag Ids to clear cache of shipment Ids mapped to it | + | bag_ids | [string]? | yes | Bag Ids to clear cache of shipment Ids mapped to it | + | shipment_ids | [string]? | yes | Shipment Ids to clear cache | --- -#### [OrderDetailsData](#OrderDetailsData) +#### [InvalidateShipmentCacheResponse](#InvalidateShipmentCacheResponse) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | affiliate_id | string? | yes | | - | affiliate_order_id | string? | yes | | - | cod_charges | string? | yes | | - | created_ts | string? | yes | | - | fynd_order_id | string | no | | - | meta | string? | yes | | - | order_date | string? | yes | | - | order_value | string? | yes | | - | ordering_channel | string? | yes | | - | ordering_channel_logo | string? | yes | | - | source | string? | yes | | - | tax_details | string? | yes | | + | response | [[InvalidateShipmentCacheNestedResponse](#InvalidateShipmentCacheNestedResponse)]? | yes | | --- -#### [OrderDetailsResponse](#OrderDetailsResponse) +#### [InvoiceDetails](#InvoiceDetails) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | order | [OrderData](#OrderData)? | yes | | - | shipments | [[PlatformShipment](#PlatformShipment)]? | yes | | - | success | boolean | no | | + | invoice_url | string? | yes | | + | label_url | string? | yes | | + | store_invoice_id | string? | yes | | + | updated_date | string? | yes | | --- -#### [OrderInfo](#OrderInfo) +#### [InvoiceInfo](#InvoiceInfo) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | affiliate_order_id | string? | yes | | - | bags | [[AffiliateBag](#AffiliateBag)] | no | | - | billing_address | [OrderUser](#OrderUser) | no | | - | cod_charges | number | no | | - | coupon | string? | yes | | - | delivery_charges | number | no | | - | discount | number | no | | - | items | string | no | | - | order_priority | [OrderPriority](#OrderPriority)? | yes | | - | order_value | number | no | | - | payment | string? | yes | | - | payment_mode | string | no | | - | shipment | [ShipmentData](#ShipmentData)? | yes | | - | shipping_address | [OrderUser](#OrderUser) | no | | - | user | [UserData](#UserData) | no | | + | credit_note_id | string? | yes | | + | external_invoice_id | string? | yes | | + | invoice_url | string? | yes | | + | label_url | string? | yes | | + | links | string? | yes | | + | store_invoice_id | string? | yes | | + | updated_date | string? | yes | | --- -#### [OrderingCurrency](#OrderingCurrency) +#### [Item](#Item) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | currency_code | string? | yes | | - | currency_name | string? | yes | | - | currency_sub_unit | string? | yes | | - | currency_symbol | string? | yes | | + | attributes | [Attributes](#Attributes) | no | | + | branch_url | string? | yes | | + | brand | string | no | | + | brand_id | number | no | | + | can_cancel | boolean? | yes | | + | can_return | boolean? | yes | | + | code | string? | yes | | + | color | string? | yes | | + | department_id | number? | yes | | + | gender | string? | yes | | + | image | [string] | no | | + | item_id | number | no | | + | l1_category | [string]? | yes | | + | l1_category_id | number? | yes | | + | l2_category | [string]? | yes | | + | l2_category_id | number? | yes | | + | l3_category | number? | yes | | + | l3_category_name | string? | yes | | + | last_updated_at | string? | yes | | + | meta | string? | yes | | + | name | string | no | | + | size | string | no | | + | slug_key | string | no | | + | webstore_product_url | string? | yes | | --- -#### [OrderingStoreDetails](#OrderingStoreDetails) +#### [ItemCriterias](#ItemCriterias) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | address | string? | yes | | - | address1 | string? | yes | | - | city | string? | yes | | - | code | string? | yes | | - | contact_person | string? | yes | | - | country | string? | yes | | - | display_address | string? | yes | | - | id | number? | yes | | - | meta | string? | yes | | - | phone | string? | yes | | - | pincode | string? | yes | | - | state | string? | yes | | - | store_name | string? | yes | | + | item_brand | [number]? | yes | | --- -#### [OrderItemDataUpdates](#OrderItemDataUpdates) +#### [JobDetailsData](#JobDetailsData) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | data | string? | yes | | + | batch_id | string? | yes | | + | company_id | string? | yes | | + | failed_shipments_count | number? | yes | | + | processing_shipments_count | number? | yes | | + | successful_shipment_ids | [string]? | yes | | + | successful_shipments_count | number? | yes | | + | total_shipments_count | number? | yes | | --- -#### [OrderListingResponse](#OrderListingResponse) +#### [JobDetailsResponse](#JobDetailsResponse) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | items | [[PlatformOrderItems](#PlatformOrderItems)]? | yes | | - | lane | string? | yes | | + | created_ts | string? | yes | | + | data | [[JobDetailsData](#JobDetailsData)]? | yes | | + | failed_records | [[String: string]]? | yes | | + | file_url | string? | yes | | | message | string? | yes | | - | page | [Page](#Page)? | yes | | + | status | string? | yes | | | success | boolean? | yes | | - | total_count | number? | yes | | + | uploaded_by | string? | yes | | + | uploaded_on | string? | yes | | + | user_id | string? | yes | | --- -#### [OrderPriority](#OrderPriority) +#### [JobFailedResponse](#JobFailedResponse) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | affiliate_priority_code | string? | yes | | - | fulfilment_priority | number? | yes | | - | fulfilment_priority_text | string? | yes | | + | file_name | string? | yes | | + | url | string? | yes | | --- -#### [OrderStatus](#OrderStatus) +#### [LaneConfigResponse](#LaneConfigResponse) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | end_date | string | no | | - | mobile | number | no | | - | order_details | [[FyndOrderIdList](#FyndOrderIdList)]? | yes | | - | start_date | string | no | | + | super_lanes | [[SuperLane](#SuperLane)]? | yes | | --- -#### [OrderStatusData](#OrderStatusData) +#### [LineItem](#LineItem) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | errors | [string]? | yes | | - | order_details | [OrderDetails](#OrderDetails) | no | | - | shipment_details | [[ShipmentDetail](#ShipmentDetail)]? | yes | | + | charges | [[Charge](#Charge)]? | yes | | + | custom_message | string? | yes | | + | external_line_id | string? | yes | | + | meta | string? | yes | | + | quantity | number? | yes | | + | seller_identifier | string | no | | --- -#### [OrderStatusResult](#OrderStatusResult) +#### [LocationDetails](#LocationDetails) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | result | [[OrderStatusData](#OrderStatusData)]? | yes | | - | success | string | no | | + | articles | [[ArticleDetails](#ArticleDetails)] | no | | + | fulfillment_id | number | no | | + | fulfillment_type | string | no | | --- -#### [OrderUser](#OrderUser) +#### [LockData](#LockData) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | address1 | string? | yes | | - | address2 | string? | yes | | - | city | string | no | | - | country | string | no | | - | email | string | no | | - | first_name | string | no | | - | last_name | string | no | | - | mobile | number | no | | - | phone | number | no | | - | pincode | string | no | | - | state | string | no | | + | lock_message | string? | yes | | + | locked | boolean? | yes | | + | mto | boolean? | yes | | --- -#### [OriginalFilter](#OriginalFilter) +#### [LogPaymentDetails](#LogPaymentDetails) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | affiliate_id | string? | yes | Affiliate ID | - | affiliate_shipment_id | string? | yes | Affiliate Shipment ID | + | amount_paid | string? | yes | | + | payment_mode | string? | yes | | --- -#### [Page](#Page) +#### [LogsChannelDetails](#LogsChannelDetails) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | current | number? | yes | | - | has_next | boolean? | yes | | - | has_previous | boolean? | yes | | - | size | number? | yes | | - | total | number? | yes | | - | type | string? | yes | | + | channel_id | string? | yes | | + | channel_shipment_id | string? | yes | | + | logo | string? | yes | | + | name | string? | yes | | --- -#### [PageDetails](#PageDetails) +#### [Manifest](#Manifest) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | current | number? | yes | Current page number | - | has_next | boolean? | yes | if next page contains any result | - | has_previous | boolean? | yes | if previous page contains any result | - | item_total | number | no | Total count of the results present in the requested filter | - | size | number? | yes | Page size | - | type | string? | yes | Type of the page | + | company_id | number | no | | + | created_at | string | no | | + | created_by | string | no | | + | created_ts | string? | yes | | + | filters | [Filters](#Filters)? | yes | | + | id | number | no | | + | is_active | boolean | no | | + | manifest_id | string | no | | + | meta | [ManifestMeta](#ManifestMeta)? | yes | | + | pdf_meta | [PDFMeta](#PDFMeta)? | yes | | + | status | string | no | | + | uid | string | no | | + | user_id | string | no | | --- -#### [PageInfo](#PageInfo) +#### [ManifestDetails](#ManifestDetails) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | current | number? | yes | | - | has_next | boolean? | yes | | - | has_previous | boolean? | yes | | - | item_total | number? | yes | | - | page_size | number? | yes | | - | size | number? | yes | | - | type | string? | yes | | + | additional_shipment_count | number? | yes | | + | items | [[ManifestItemDetails](#ManifestItemDetails)]? | yes | | + | manifest_details | [[Manifest](#Manifest)]? | yes | | + | page | [ManifestPageInfo](#ManifestPageInfo)? | yes | | --- -#### [PaginatedStates](#PaginatedStates) +#### [ManifestFile](#ManifestFile) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | items | [[StateManagerState](#StateManagerState)]? | yes | | - | page | [PaginationInfo](#PaginationInfo)? | yes | | + | bucket | string? | yes | | + | key | string? | yes | | + | region | string? | yes | | --- -#### [PaginationInfo](#PaginationInfo) +#### [ManifestFiltersResponse](#ManifestFiltersResponse) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | current | number? | yes | | - | has_next | boolean? | yes | | - | has_previous | boolean? | yes | | - | item_total | number? | yes | | - | size | number? | yes | | - | total | number? | yes | | - | type | string? | yes | | + | advance_filter | [[FiltersInfo](#FiltersInfo)]? | yes | | + | global_filter | [[FiltersInfo](#FiltersInfo)]? | yes | | --- -#### [ParameterResponse](#ParameterResponse) +#### [ManifestItemDetails](#ManifestItemDetails) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | text | string? | yes | | - | value | string? | yes | | + | awb_number | string? | yes | | + | invoice_id | string? | yes | | + | order_id | string | no | | + | quantity | number? | yes | | + | shipment_created_at | string? | yes | | + | shipment_id | string | no | | --- -#### [ParentViews](#ParentViews) +#### [ManifestList](#ManifestList) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | parent_slug | string? | yes | | - | parent_text | string? | yes | | - | views | [[ViewDetails](#ViewDetails)]? | yes | | + | items | [[Manifest](#Manifest)]? | yes | | + | page | [ManifestPageInfo](#ManifestPageInfo)? | yes | | --- -#### [PaymentInfo](#PaymentInfo) +#### [ManifestMediaUpdate](#ManifestMediaUpdate) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | payment_methods | [[PaymentMethod](#PaymentMethod)]? | yes | | - | primary_mode | string | no | | + | code | number? | yes | | + | entity | string? | yes | | + | file | [ManifestFile](#ManifestFile)? | yes | | + | link | string? | yes | | + | media_type | string? | yes | | + | status | boolean? | yes | | --- -#### [PaymentInfoData](#PaymentInfoData) +#### [ManifestMeta](#ManifestMeta) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | amount | number? | yes | | - | collect_by | string? | yes | | - | collected | boolean? | yes | | - | display_name | string? | yes | | - | merchant_transaction_id | string? | yes | | - | meta | string? | yes | | - | mode | string? | yes | | - | name | string? | yes | | - | refund_by | string? | yes | | + | filters | [Filters](#Filters)? | yes | | + | total_shipment_prices_count | [TotalShipmentPricesCount](#TotalShipmentPricesCount)? | yes | | --- -#### [PaymentMethod](#PaymentMethod) +#### [ManifestPageInfo](#ManifestPageInfo) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | amount | number | no | | - | collect_by | string | no | | - | meta | string? | yes | | - | mode | string | no | | - | name | string | no | | - | refund_by | string | no | | - | transaction_data | string? | yes | | + | current | number | no | | + | has_next | boolean | no | | + | has_previous | boolean | no | | + | size | number | no | | + | total | number | no | | + | type | string | no | | --- -#### [PaymentMethods](#PaymentMethods) +#### [ManifestShipmentListing](#ManifestShipmentListing) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | collect_by | string? | yes | | - | mode | string? | yes | | - | refund_by | string? | yes | | + | items | [[ManifestItemDetails](#ManifestItemDetails)]? | yes | | + | lane | string? | yes | | + | message | string? | yes | | + | page | [ManifestPageInfo](#ManifestPageInfo) | no | | + | status | number | no | | + | success | boolean | no | | + | total_count | number | no | | --- -#### [PDFLinks](#PDFLinks) +#### [MarketPlacePdf](#MarketPlacePdf) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | b2b | string? | yes | | - | credit_note_url | string? | yes | | - | delivery_challan_a4 | string? | yes | | | invoice | string? | yes | | - | invoice_a4 | string? | yes | | - | invoice_a6 | string? | yes | | - | invoice_export | string? | yes | | - | invoice_pos | string? | yes | | - | invoice_type | string | no | | | label | string? | yes | | - | label_a4 | string? | yes | | - | label_a6 | string? | yes | | - | label_export | string? | yes | | - | label_pos | string? | yes | | - | label_type | string | no | | - | po_invoice | string? | yes | | --- -#### [PDFMeta](#PDFMeta) +#### [Meta](#Meta) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | consent | string? | yes | | - | media_updates | [[ManifestMediaUpdate](#ManifestMediaUpdate)]? | yes | | + | kafka_emission_status | number? | yes | | + | state_manager_used | string? | yes | | --- -#### [PhoneDetails](#PhoneDetails) +#### [OrderBagArticle](#OrderBagArticle) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | country_code | number? | yes | | - | number | string? | yes | | + | identifiers | string? | yes | | + | return_config | [ReturnConfig](#ReturnConfig)? | yes | | + | size | string? | yes | | + | uid | string? | yes | | --- -#### [PlatformArticleAttributes](#PlatformArticleAttributes) +#### [OrderBags](#OrderBags) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | currency | string? | yes | | + | affiliate_bag_details | [AffiliateBagsDetails](#AffiliateBagsDetails)? | yes | | + | applied_promos | [[AppliedPromos](#AppliedPromos)]? | yes | | + | article | [OrderBagArticle](#OrderBagArticle)? | yes | | + | bag_configs | [BagConfigs](#BagConfigs)? | yes | | + | bag_id | number | no | | + | bag_status | [[BagStatusHistory](#BagStatusHistory)]? | yes | | + | brand | [OrderBrandName](#OrderBrandName)? | yes | | + | can_cancel | boolean? | yes | | + | can_return | boolean? | yes | | + | current_status | [CurrentStatus](#CurrentStatus)? | yes | | + | delivery_address | [PlatformDeliveryAddress](#PlatformDeliveryAddress)? | yes | | + | display_name | string? | yes | | + | entity_type | string? | yes | | + | financial_breakup | [FinancialBreakup](#FinancialBreakup)? | yes | | + | group_id | string? | yes | | + | gst_details | [GSTDetailsData](#GSTDetailsData)? | yes | | + | identifier | string? | yes | | + | is_parent | boolean? | yes | | + | item | [PlatformItem](#PlatformItem)? | yes | | + | line_number | number? | yes | | + | meta | string? | yes | | + | parent_promo_bags | string? | yes | | + | payment_info | [[BagPaymentMethods](#BagPaymentMethods)]? | yes | | + | payment_methods | [[BagPaymentMethods](#BagPaymentMethods)]? | yes | | + | prices | [Prices](#Prices)? | yes | | + | quantity | number? | yes | | + | seller_identifier | string? | yes | | --- -#### [PlatformBreakupValues](#PlatformBreakupValues) +#### [OrderBrandName](#OrderBrandName) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | display | string? | yes | | - | name | string? | yes | | - | value | string? | yes | | + | brand_name | string? | yes | | + | company | number? | yes | | + | created_on | string? | yes | | + | id | number | no | | + | logo | string? | yes | | + | modified_on | string? | yes | | --- -#### [PlatformChannel](#PlatformChannel) +#### [OrderConfig](#OrderConfig) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | logo | string? | yes | | - | name | string? | yes | | + | affiliate | [Affiliate](#Affiliate) | no | | + | affiliate_store_id_mapping | [[AffiliateStoreIdMapping](#AffiliateStoreIdMapping)] | no | | + | article_lookup | string? | yes | | + | bag_end_state | string? | yes | | + | create_user | boolean? | yes | | + | store_lookup | string? | yes | | --- -#### [PlatformDeliveryAddress](#PlatformDeliveryAddress) +#### [OrderData](#OrderData) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | address1 | string? | yes | | - | address2 | string? | yes | | - | address_category | string? | yes | | - | address_type | string? | yes | | - | area | string? | yes | | - | city | string? | yes | | - | contact_person | string? | yes | | - | country | string? | yes | | - | created_at | string? | yes | | - | display_address | string? | yes | | - | email | string? | yes | | - | landmark | string? | yes | | - | latitude | number? | yes | | - | longitude | number? | yes | | - | phone | string? | yes | | - | pincode | string? | yes | | - | state | string? | yes | | - | updated_at | string? | yes | | - | version | string? | yes | | + | created_ts | string? | yes | | + | fynd_order_id | string | no | | + | meta | string? | yes | | + | order_date | string | no | | + | payment_info | [string]? | yes | | + | payment_methods | string? | yes | | + | prices | [Prices](#Prices)? | yes | | + | tax_details | [TaxDetails](#TaxDetails)? | yes | | --- -#### [PlatformItem](#PlatformItem) +#### [OrderDetails](#OrderDetails) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | attributes | [PlatformArticleAttributes](#PlatformArticleAttributes)? | yes | | - | branch_url | string? | yes | | - | brand | string? | yes | | - | brand_id | number? | yes | | - | can_cancel | boolean? | yes | | - | can_return | boolean? | yes | | - | code | string? | yes | | - | color | string? | yes | | - | department_id | number? | yes | | - | id | number? | yes | | - | image | [string]? | yes | | - | images | [string]? | yes | | - | l1_category | [string]? | yes | | - | l2_category | [string]? | yes | | - | l3_category | number? | yes | | - | l3_category_name | string? | yes | | - | last_updated_at | string? | yes | | - | meta | string? | yes | | - | name | string? | yes | | - | size | string? | yes | | - | slug_key | string? | yes | | + | affiliate_id | string? | yes | | + | affiliate_order_date | string? | yes | | + | affiliate_order_id | string? | yes | | + | cashback_applied | number? | yes | | + | cashback_value | number? | yes | | + | cod_charges | number? | yes | | + | collect_by | string? | yes | | + | coupon_value | number? | yes | | + | created_at | string? | yes | | + | created_time | string? | yes | | + | currency | string? | yes | | + | delivery_charges | number? | yes | | + | discount | number? | yes | | + | fynd_credits | number? | yes | | + | fynd_order_id | string? | yes | | + | headers | string? | yes | | + | meta | string? | yes | | + | mode_of_payment | string? | yes | | + | mongo_cart_id | number? | yes | | + | order_value | number? | yes | | + | ordering_channel | string? | yes | | + | ordering_channel_logo | string? | yes | | + | payment_methods | string? | yes | | + | payment_mode_id | number? | yes | | + | prices | [Prices](#Prices)? | yes | | + | promotion_effective_discount | number? | yes | | + | refund_by | string? | yes | | + | tax_details | [TaxDetails](#TaxDetails)? | yes | | + | total_order_value | number? | yes | | + | transaction_id | string? | yes | | + | user_id | string? | yes | | --- -#### [PlatformOrderItems](#PlatformOrderItems) +#### [OrderDetailsData](#OrderDetailsData) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | breakup_values | [[PlatformBreakupValues](#PlatformBreakupValues)]? | yes | | - | channel | [PlatformChannel](#PlatformChannel)? | yes | | - | currency | [Currency](#Currency)? | yes | | - | currency_info | [CurrencyInfo](#CurrencyInfo)? | yes | | + | affiliate_id | string? | yes | | + | affiliate_order_id | string? | yes | | + | cod_charges | string? | yes | | + | created_ts | string? | yes | | + | fynd_order_id | string | no | | | meta | string? | yes | | - | order_created_time | string? | yes | | - | order_created_ts | string? | yes | | - | order_id | string? | yes | | - | order_value | number? | yes | | - | payment_mode | string? | yes | | - | shipments | [[PlatformShipment](#PlatformShipment)]? | yes | | - | total_order_value | number? | yes | | - | user_info | [UserDataInfo](#UserDataInfo)? | yes | | + | order_date | string? | yes | | + | order_value | string? | yes | | + | ordering_channel | string? | yes | | + | ordering_channel_logo | string? | yes | | + | source | string? | yes | | + | tax_details | string? | yes | | --- -#### [PlatformOrderUpdate](#PlatformOrderUpdate) +#### [OrderDetailsResponse](#OrderDetailsResponse) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | order_id | string | no | | + | order | [OrderData](#OrderData)? | yes | | + | shipments | [[PlatformShipment](#PlatformShipment)]? | yes | | + | success | boolean | no | | --- -#### [PlatformShipment](#PlatformShipment) +#### [OrderInfo](#OrderInfo) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | affiliate_details | [AffiliateDetails](#AffiliateDetails)? | yes | | - | bag_status_history | [[BagStatusHistory](#BagStatusHistory)]? | yes | | - | bags | [[OrderBags](#OrderBags)]? | yes | | - | billing_details | [UserDetailsData](#UserDetailsData)? | yes | | - | can_update_dimension | boolean? | yes | | - | company_details | [CompanyDetails](#CompanyDetails)? | yes | | + | affiliate_order_id | string? | yes | | + | bags | [[AffiliateBag](#AffiliateBag)] | no | | + | billing_address | [OrderUser](#OrderUser) | no | | + | cod_charges | number | no | | | coupon | string? | yes | | - | credit_note_id | string? | yes | | - | currency | [Currency](#Currency)? | yes | | - | currency_info | [CurrencyInfo](#CurrencyInfo)? | yes | | - | custom_message | string? | yes | | - | custom_meta | [string]? | yes | | - | delivery_details | [UserDetailsData](#UserDetailsData)? | yes | | - | delivery_slot | string? | yes | | - | dp_assignment | boolean? | yes | | - | dp_details | [DPDetailsData](#DPDetailsData)? | yes | | - | enable_dp_tracking | boolean? | yes | | - | estimated_sla_time | string? | yes | | - | estimated_sla_ts | string? | yes | | - | forward_shipment_id | string? | yes | | - | fulfilling_store | [FulfillingStore](#FulfillingStore)? | yes | | - | fulfilment_priority | number? | yes | | - | gst_details | [GSTDetailsData](#GSTDetailsData)? | yes | | - | invoice | [InvoiceInfo](#InvoiceInfo)? | yes | | - | invoice_id | string? | yes | | - | is_dp_assign_enabled | boolean? | yes | | - | is_self_ship | boolean? | yes | | - | journey_type | string? | yes | | - | lock_status | boolean? | yes | | - | meta | string? | yes | | - | mode_of_payment | string? | yes | | - | operational_status | string? | yes | | - | order | [OrderDetailsData](#OrderDetailsData)? | yes | | - | ordering_store | [OrderingStoreDetails](#OrderingStoreDetails)? | yes | | - | packaging_type | string? | yes | | - | payment_info | [string]? | yes | | - | payment_methods | string? | yes | | - | payment_mode | string? | yes | | - | payments | [ShipmentPayments](#ShipmentPayments)? | yes | | - | pdf_links | string? | yes | | - | picked_date | string? | yes | | - | platform_logo | string? | yes | | - | previous_shipment_id | string? | yes | | - | prices | [Prices](#Prices)? | yes | | - | priority_text | string? | yes | | - | rto_address | [PlatformDeliveryAddress](#PlatformDeliveryAddress)? | yes | | - | shipment_created_at | string? | yes | | - | shipment_created_ts | string? | yes | | - | shipment_details | [ShipmentLockDetails](#ShipmentLockDetails)? | yes | | - | shipment_id | string | no | | - | shipment_images | [string]? | yes | | - | shipment_quantity | number? | yes | | - | shipment_status | string? | yes | | - | shipment_update_time | number? | yes | | - | status | [ShipmentStatusData](#ShipmentStatusData)? | yes | | - | total_bags | number? | yes | | - | total_items | number? | yes | | - | tracking_list | [[TrackingList](#TrackingList)]? | yes | | - | user | [UserDataInfo](#UserDataInfo)? | yes | | - | user_agent | string? | yes | | - | vertical | string? | yes | | + | delivery_charges | number | no | | + | discount | number | no | | + | items | string | no | | + | order_priority | [OrderPriority](#OrderPriority)? | yes | | + | order_value | number | no | | + | payment | string? | yes | | + | payment_mode | string | no | | + | shipment | [ShipmentData](#ShipmentData)? | yes | | + | shipping_address | [OrderUser](#OrderUser) | no | | + | user | [UserData](#UserData) | no | | --- -#### [PlatformShipmentReasonsResponse](#PlatformShipmentReasonsResponse) +#### [OrderingCurrency](#OrderingCurrency) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | reasons | [[Reason](#Reason)]? | yes | | - | success | boolean? | yes | | + | currency_code | string? | yes | | + | currency_name | string? | yes | | + | currency_sub_unit | string? | yes | | + | currency_symbol | string? | yes | | --- -#### [PlatformShipmentTrack](#PlatformShipmentTrack) +#### [OrderingStoreDetails](#OrderingStoreDetails) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | + | address | string? | yes | | + | address1 | string? | yes | | + | city | string? | yes | | + | code | string? | yes | | + | contact_person | string? | yes | | + | country | string? | yes | | + | display_address | string? | yes | | + | id | number? | yes | | | meta | string? | yes | | - | results | [[PlatformTrack](#PlatformTrack)]? | yes | | + | phone | string? | yes | | + | pincode | string? | yes | | + | state | string? | yes | | + | store_name | string? | yes | | --- -#### [PlatformTrack](#PlatformTrack) +#### [OrderItemDataUpdates](#OrderItemDataUpdates) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | account_name | string? | yes | | - | awb | string? | yes | | - | last_location_recieved_at | string? | yes | | - | meta | string? | yes | | - | raw_status | string? | yes | | - | reason | string? | yes | | - | shipment_type | string? | yes | | - | status | string? | yes | | - | updated_at | string? | yes | | - | updated_time | string? | yes | | + | data | string? | yes | | --- -#### [PointBlankOtpData](#PointBlankOtpData) +#### [OrderListingResponse](#OrderListingResponse) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | + | items | [[PlatformOrderItems](#PlatformOrderItems)]? | yes | | + | lane | string? | yes | | | message | string? | yes | | - | mobile | number? | yes | | - | request_id | string? | yes | | - | resend_timer | number? | yes | | + | page | [Page](#Page)? | yes | | + | success | boolean? | yes | | + | total_count | number? | yes | | --- -#### [PostHistoryData](#PostHistoryData) +#### [OrderPriority](#OrderPriority) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | message | string | no | | - | user_name | string | no | | + | affiliate_priority_code | string? | yes | | + | fulfilment_priority | number? | yes | | + | fulfilment_priority_text | string? | yes | | --- -#### [PostHistoryDict](#PostHistoryDict) +#### [OrderStatus](#OrderStatus) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | data | [PostHistoryData](#PostHistoryData) | no | | - | filters | [[PostHistoryFilters](#PostHistoryFilters)] | no | | + | end_date | string | no | | + | mobile | number | no | | + | order_details | [[FyndOrderIdList](#FyndOrderIdList)]? | yes | | + | start_date | string | no | | --- -#### [PostHistoryFilters](#PostHistoryFilters) +#### [OrderStatusData](#OrderStatusData) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | identifier | string? | yes | | - | line_number | string? | yes | | - | shipment_id | string | no | | + | errors | [string]? | yes | | + | order_details | [OrderDetails](#OrderDetails) | no | | + | shipment_details | [[ShipmentDetail](#ShipmentDetail)]? | yes | | + + +--- + +#### [OrderStatusResult](#OrderStatusResult) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | result | [[OrderStatusData](#OrderStatusData)]? | yes | | + | success | string | no | | --- -#### [PostRefundStateConfiguration](#PostRefundStateConfiguration) +#### [OrderUser](#OrderUser) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | non_prepaid | [string]? | yes | | - | prepaid | [string]? | yes | | + | address1 | string? | yes | | + | address2 | string? | yes | | + | city | string | no | | + | country | string | no | | + | email | string | no | | + | first_name | string | no | | + | last_name | string | no | | + | mobile | number | no | | + | phone | number | no | | + | pincode | string | no | | + | state | string | no | | --- -#### [PostRefundStateConfigurationResponse](#PostRefundStateConfigurationResponse) +#### [OriginalFilter](#OriginalFilter) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | message | string? | yes | | - | success | boolean? | yes | | + | affiliate_id | string? | yes | Affiliate ID | + | affiliate_shipment_id | string? | yes | Affiliate Shipment ID | --- -#### [PostShipmentHistory](#PostShipmentHistory) +#### [Page](#Page) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | activity_history | [[PostHistoryDict](#PostHistoryDict)]? | yes | | + | current | number? | yes | | + | has_next | boolean? | yes | | + | has_previous | boolean? | yes | | + | size | number? | yes | | + | total | number? | yes | | + | type | string? | yes | | --- -#### [Prices](#Prices) +#### [PageDetails](#PageDetails) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | amount_paid | number? | yes | | - | amount_paid_roundoff | number? | yes | | - | amount_to_be_collected | number? | yes | | - | brand_calculated_amount | number? | yes | | - | cashback | number? | yes | | - | cashback_applied | number? | yes | | - | cod_charges | number? | yes | | - | coupon_effective_discount | number? | yes | | - | coupon_value | number? | yes | | - | delivery_charge | number? | yes | | - | discount | number? | yes | | - | fynd_credits | number? | yes | | - | gift_price | number? | yes | | - | pm_price_split | number? | yes | | - | price_effective | number? | yes | | - | price_marked | number? | yes | | - | promotion_effective_discount | number? | yes | | - | refund_amount | number? | yes | | - | refund_credit | number? | yes | | - | tax_collected_at_source | number? | yes | | - | transfer_price | number? | yes | | - | value_of_good | number? | yes | | + | current | number? | yes | Current page number | + | has_next | boolean? | yes | if next page contains any result | + | has_previous | boolean? | yes | if previous page contains any result | + | item_total | number | no | Total count of the results present in the requested filter | + | size | number? | yes | Page size | + | type | string? | yes | Type of the page | --- -#### [ProcessingDates](#ProcessingDates) +#### [PaymentInfo](#PaymentInfo) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | confirm_by_date | string? | yes | | - | customer_pickup_slot | string? | yes | | - | dispatch_after_date | string? | yes | | - | dispatch_by_date | string? | yes | | - | dp_pickup_slot | string? | yes | | - | pack_by_date | string? | yes | | + | payment_methods | [[PaymentMethod](#PaymentMethod)]? | yes | | + | primary_mode | string | no | | --- -#### [ProcessManifest](#ProcessManifest) +#### [PaymentMethod](#PaymentMethod) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | action | string | no | | - | filters | [FiltersRequest](#FiltersRequest) | no | | - | manifest_id | string? | yes | | - | unique_id | string | no | | + | amount | number | no | | + | collect_by | string | no | | + | meta | string? | yes | | + | mode | string | no | | + | name | string | no | | + | refund_by | string | no | | + | transaction_data | string? | yes | | --- -#### [ProcessManifestItemResponse](#ProcessManifestItemResponse) +#### [PaymentMethods](#PaymentMethods) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | items | [ProcessManifestResponse](#ProcessManifestResponse)? | yes | | + | collect_by | string? | yes | | + | mode | string? | yes | | + | refund_by | string? | yes | | --- -#### [ProcessManifestResponse](#ProcessManifestResponse) +#### [PDFLinks](#PDFLinks) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | action | string? | yes | | - | company_id | number? | yes | | - | created_by | string? | yes | | - | filters | [Filters](#Filters)? | yes | | - | manifest_id | string? | yes | | - | uid | string? | yes | | - | user_id | string? | yes | | + | b2b | string? | yes | | + | credit_note_url | string? | yes | | + | delivery_challan_a4 | string? | yes | | + | invoice | string? | yes | | + | invoice_a4 | string? | yes | | + | invoice_a6 | string? | yes | | + | invoice_export | string? | yes | | + | invoice_pos | string? | yes | | + | invoice_type | string | no | | + | label | string? | yes | | + | label_a4 | string? | yes | | + | label_a6 | string? | yes | | + | label_export | string? | yes | | + | label_pos | string? | yes | | + | label_type | string | no | | + | po_invoice | string? | yes | | --- -#### [Products](#Products) +#### [PDFMeta](#PDFMeta) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | identifier | string? | yes | Product/Bag Article/Item Identifier | - | line_number | number? | yes | Product/Bag Line number for the Product/Bag Identifier | - | quantity | number? | yes | | + | consent | string? | yes | | + | media_updates | [[ManifestMediaUpdate](#ManifestMediaUpdate)]? | yes | | --- -#### [ProductsDataUpdates](#ProductsDataUpdates) +#### [PhoneDetails](#PhoneDetails) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | data | string? | yes | | - | filters | [[ProductsDataUpdatesFilters](#ProductsDataUpdatesFilters)]? | yes | Filter for the Product/Bag | + | country_code | number? | yes | | + | number | string? | yes | | --- -#### [ProductsDataUpdatesFilters](#ProductsDataUpdatesFilters) +#### [PlatformArticleAttributes](#PlatformArticleAttributes) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | identifier | string? | yes | Product/Bag Article/Item Identifier | - | line_number | number? | yes | Product/Bag Line number for the Product/Bag Identifier | + | currency | string? | yes | | --- -#### [ProductsReasons](#ProductsReasons) +#### [PlatformBreakupValues](#PlatformBreakupValues) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | data | [ProductsReasonsData](#ProductsReasonsData)? | yes | | - | filters | [[ProductsReasonsFilters](#ProductsReasonsFilters)]? | yes | | + | display | string? | yes | | + | name | string? | yes | | + | value | string? | yes | | --- -#### [ProductsReasonsData](#ProductsReasonsData) +#### [PlatformChannel](#PlatformChannel) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | reason_id | number? | yes | | - | reason_text | string? | yes | | + | logo | string? | yes | | + | name | string? | yes | | --- -#### [ProductsReasonsFilters](#ProductsReasonsFilters) +#### [PlatformDeliveryAddress](#PlatformDeliveryAddress) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | identifier | string? | yes | Product/Bag Article/Item Identifier | - | line_number | number? | yes | Product/Bag Line number for the Product/Bag Identifier | - | quantity | number? | yes | | + | address1 | string? | yes | | + | address2 | string? | yes | | + | address_category | string? | yes | | + | address_type | string? | yes | | + | area | string? | yes | | + | city | string? | yes | | + | contact_person | string? | yes | | + | country | string? | yes | | + | created_at | string? | yes | | + | display_address | string? | yes | | + | email | string? | yes | | + | landmark | string? | yes | | + | latitude | number? | yes | | + | longitude | number? | yes | | + | phone | string? | yes | | + | pincode | string? | yes | | + | state | string? | yes | | + | updated_at | string? | yes | | + | version | string? | yes | | --- -#### [QuestionErrorResponse](#QuestionErrorResponse) +#### [PlatformItem](#PlatformItem) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | message | any? | yes | | - | type | string? | yes | | - | value | string? | yes | | + | attributes | [PlatformArticleAttributes](#PlatformArticleAttributes)? | yes | | + | branch_url | string? | yes | | + | brand | string? | yes | | + | brand_id | number? | yes | | + | can_cancel | boolean? | yes | | + | can_return | boolean? | yes | | + | code | string? | yes | | + | color | string? | yes | | + | department_id | number? | yes | | + | id | number? | yes | | + | image | [string]? | yes | | + | images | [string]? | yes | | + | l1_category | [string]? | yes | | + | l2_category | [string]? | yes | | + | l3_category | number? | yes | | + | l3_category_name | string? | yes | | + | last_updated_at | string? | yes | | + | meta | string? | yes | | + | name | string? | yes | | + | size | string? | yes | | + | slug_key | string? | yes | | --- -#### [QuestionSet](#QuestionSet) +#### [PlatformOrderItems](#PlatformOrderItems) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | display_name | string? | yes | | - | id | number? | yes | | + | breakup_values | [[PlatformBreakupValues](#PlatformBreakupValues)]? | yes | | + | channel | [PlatformChannel](#PlatformChannel)? | yes | | + | currency | [Currency](#Currency)? | yes | | + | currency_info | [CurrencyInfo](#CurrencyInfo)? | yes | | + | meta | string? | yes | | + | order_created_time | string? | yes | | + | order_created_ts | string? | yes | | + | order_id | string? | yes | | + | order_value | number? | yes | | + | payment_mode | string? | yes | | + | shipments | [[PlatformShipment](#PlatformShipment)]? | yes | | + | total_order_value | number? | yes | | + | user_info | [UserDataInfo](#UserDataInfo)? | yes | | --- -#### [QuestionSetItem](#QuestionSetItem) +#### [PlatformOrderUpdate](#PlatformOrderUpdate) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | display_name | string | no | | - | id | number | no | | + | order_id | string | no | | --- -#### [Reason](#Reason) +#### [PlatformShipment](#PlatformShipment) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | display_name | string | no | | - | id | number | no | | - | is_active | boolean | no | | - | is_deleted | boolean | no | | - | meta | string | no | | - | qc_type | [string] | no | | - | question_set | [[QuestionSet](#QuestionSet)] | no | | - | remark_required | boolean | no | | + | affiliate_details | [AffiliateDetails](#AffiliateDetails)? | yes | | + | bag_status_history | [[BagStatusHistory](#BagStatusHistory)]? | yes | | + | bags | [[OrderBags](#OrderBags)]? | yes | | + | billing_details | [UserDetailsData](#UserDetailsData)? | yes | | + | can_update_dimension | boolean? | yes | | + | company_details | [CompanyDetails](#CompanyDetails)? | yes | | + | coupon | string? | yes | | + | credit_note_id | string? | yes | | + | currency | [Currency](#Currency)? | yes | | + | currency_info | [CurrencyInfo](#CurrencyInfo)? | yes | | + | custom_message | string? | yes | | + | custom_meta | [string]? | yes | | + | delivery_details | [UserDetailsData](#UserDetailsData)? | yes | | + | delivery_slot | string? | yes | | + | dp_assignment | boolean? | yes | | + | dp_details | [DPDetailsData](#DPDetailsData)? | yes | | + | enable_dp_tracking | boolean? | yes | | + | estimated_sla_time | string? | yes | | + | estimated_sla_ts | string? | yes | | + | forward_shipment_id | string? | yes | | + | fulfilling_store | [FulfillingStore](#FulfillingStore)? | yes | | + | fulfilment_priority | number? | yes | | + | gst_details | [GSTDetailsData](#GSTDetailsData)? | yes | | + | invoice | [InvoiceInfo](#InvoiceInfo)? | yes | | + | invoice_id | string? | yes | | + | is_dp_assign_enabled | boolean? | yes | | + | is_self_ship | boolean? | yes | | + | journey_type | string? | yes | | + | lock_status | boolean? | yes | | + | meta | string? | yes | | + | mode_of_payment | string? | yes | | + | operational_status | string? | yes | | + | order | [OrderDetailsData](#OrderDetailsData)? | yes | | + | ordering_store | [OrderingStoreDetails](#OrderingStoreDetails)? | yes | | + | packaging_type | string? | yes | | + | payment_info | [string]? | yes | | + | payment_methods | string? | yes | | + | payment_mode | string? | yes | | + | payments | [ShipmentPayments](#ShipmentPayments)? | yes | | + | pdf_links | string? | yes | | + | picked_date | string? | yes | | + | platform_logo | string? | yes | | + | previous_shipment_id | string? | yes | | + | prices | [Prices](#Prices)? | yes | | + | priority_text | string? | yes | | + | rto_address | [PlatformDeliveryAddress](#PlatformDeliveryAddress)? | yes | | + | shipment_created_at | string? | yes | | + | shipment_created_ts | string? | yes | | + | shipment_details | [ShipmentLockDetails](#ShipmentLockDetails)? | yes | | + | shipment_id | string | no | | + | shipment_images | [string]? | yes | | + | shipment_quantity | number? | yes | | + | shipment_status | string? | yes | | + | shipment_update_time | number? | yes | | + | status | [ShipmentStatusData](#ShipmentStatusData)? | yes | | + | total_bags | number? | yes | | + | total_items | number? | yes | | + | tracking_list | [[TrackingList](#TrackingList)]? | yes | | + | user | [UserDataInfo](#UserDataInfo)? | yes | | + | user_agent | string? | yes | | + | vertical | string? | yes | | --- -#### [ReasonsData](#ReasonsData) +#### [PlatformShipmentReasonsResponse](#PlatformShipmentReasonsResponse) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | entities | [[EntitiesReasons](#EntitiesReasons)]? | yes | | - | products | [[ProductsReasons](#ProductsReasons)]? | yes | | + | reasons | [[Reason](#Reason)]? | yes | | + | success | boolean? | yes | | --- -#### [RefundModeConfigRequestPayload](#RefundModeConfigRequestPayload) +#### [PlatformShipmentTrack](#PlatformShipmentTrack) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | affiliate_id | string | no | | - | customer_mobile_number | string? | yes | | - | fynd_order_id | string | no | | - | seller_id | number | no | | + | meta | string? | yes | | + | results | [[PlatformTrack](#PlatformTrack)]? | yes | | --- -#### [RefundModeConfigResponsePayload](#RefundModeConfigResponsePayload) +#### [PlatformTrack](#PlatformTrack) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | account_name | string? | yes | | + | awb | string? | yes | | + | last_location_recieved_at | string? | yes | | + | meta | string? | yes | | + | raw_status | string? | yes | | + | reason | string? | yes | | + | shipment_type | string? | yes | | + | status | string? | yes | | + | updated_at | string? | yes | | + | updated_time | string? | yes | | + + +--- + +#### [PointBlankOtpData](#PointBlankOtpData) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | data | [[RefundModeInfo](#RefundModeInfo)] | no | | - | success | boolean | no | | + | message | string? | yes | | + | mobile | number? | yes | | + | request_id | string? | yes | | + | resend_timer | number? | yes | | --- -#### [RefundModeInfo](#RefundModeInfo) +#### [PostHistoryData](#PostHistoryData) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | display_name | string? | yes | | - | is_active | boolean? | yes | | - | options | [[RefundOption](#RefundOption)]? | yes | | - | slug | string? | yes | | + | message | string | no | | + | user_name | string | no | | --- -#### [RefundOption](#RefundOption) +#### [PostHistoryDict](#PostHistoryDict) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | name | string? | yes | | - | slug | string? | yes | | - | type | string? | yes | | - | value | string? | yes | | + | data | [PostHistoryData](#PostHistoryData) | no | | + | filters | [[PostHistoryFilters](#PostHistoryFilters)] | no | | --- -#### [RefundStateConfigurationManualSchema](#RefundStateConfigurationManualSchema) +#### [PostHistoryFilters](#PostHistoryFilters) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | non_prepaid | [RefundStateManualWithoutMessage](#RefundStateManualWithoutMessage)? | yes | | - | prepaid | [RefundStateManualWithoutMessage](#RefundStateManualWithoutMessage)? | yes | | + | identifier | string? | yes | | + | line_number | string? | yes | | + | shipment_id | string | no | | --- -#### [RefundStateConfigurationManualSchemaResponse](#RefundStateConfigurationManualSchemaResponse) +#### [PostShipmentHistory](#PostShipmentHistory) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | data | [RefundStateManualWithMessageData](#RefundStateManualWithMessageData)? | yes | | - | success | boolean? | yes | | + | activity_history | [[PostHistoryDict](#PostHistoryDict)]? | yes | | --- -#### [RefundStateManualWithMessage](#RefundStateManualWithMessage) +#### [Prices](#Prices) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | is_manual | boolean? | yes | | - | message | string? | yes | | + | amount_paid | number? | yes | | + | amount_paid_roundoff | number? | yes | | + | amount_to_be_collected | number? | yes | | + | brand_calculated_amount | number? | yes | | + | cashback | number? | yes | | + | cashback_applied | number? | yes | | + | cod_charges | number? | yes | | + | coupon_effective_discount | number? | yes | | + | coupon_value | number? | yes | | + | delivery_charge | number? | yes | | + | discount | number? | yes | | + | fynd_credits | number? | yes | | + | gift_price | number? | yes | | + | pm_price_split | number? | yes | | + | price_effective | number? | yes | | + | price_marked | number? | yes | | + | promotion_effective_discount | number? | yes | | + | refund_amount | number? | yes | | + | refund_credit | number? | yes | | + | tax_collected_at_source | number? | yes | | + | transfer_price | number? | yes | | + | value_of_good | number? | yes | | --- -#### [RefundStateManualWithMessageData](#RefundStateManualWithMessageData) +#### [ProcessingDates](#ProcessingDates) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | non_prepaid | [RefundStateManualWithMessage](#RefundStateManualWithMessage)? | yes | | - | prepaid | [RefundStateManualWithMessage](#RefundStateManualWithMessage)? | yes | | + | confirm_by_date | string? | yes | | + | customer_pickup_slot | string? | yes | | + | dispatch_after_date | string? | yes | | + | dispatch_by_date | string? | yes | | + | dp_pickup_slot | string? | yes | | + | pack_by_date | string? | yes | | --- -#### [RefundStateManualWithoutMessage](#RefundStateManualWithoutMessage) +#### [ProcessManifest](#ProcessManifest) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | is_manual | boolean? | yes | | + | action | string | no | | + | filters | [FiltersRequest](#FiltersRequest) | no | | + | manifest_id | string? | yes | | + | unique_id | string | no | | --- -#### [RefundStates](#RefundStates) +#### [ProcessManifestItemResponse](#ProcessManifestItemResponse) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | display_name | string? | yes | | - | state | string? | yes | | + | items | [ProcessManifestResponse](#ProcessManifestResponse)? | yes | | --- -#### [ReplacementDetails](#ReplacementDetails) +#### [ProcessManifestResponse](#ProcessManifestResponse) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | original_affiliate_order_id | string? | yes | | - | replacement_type | string? | yes | | + | action | string? | yes | | + | company_id | number? | yes | | + | created_by | string? | yes | | + | filters | [Filters](#Filters)? | yes | | + | manifest_id | string? | yes | | + | uid | string? | yes | | + | user_id | string? | yes | | --- -#### [ResponseDetail](#ResponseDetail) +#### [Products](#Products) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | message | [string]? | yes | | - | success | boolean? | yes | | + | identifier | string? | yes | Product/Bag Article/Item Identifier | + | line_number | number? | yes | Product/Bag Line number for the Product/Bag Identifier | + | quantity | number? | yes | | --- -#### [ReturnConfig](#ReturnConfig) +#### [ProductsDataUpdates](#ProductsDataUpdates) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | returnable | boolean? | yes | | - | time | number? | yes | | - | unit | string? | yes | | + | data | string? | yes | | + | filters | [[ProductsDataUpdatesFilters](#ProductsDataUpdatesFilters)]? | yes | Filter for the Product/Bag | --- -#### [RoleBaseStateTransitionMapping](#RoleBaseStateTransitionMapping) +#### [ProductsDataUpdatesFilters](#ProductsDataUpdatesFilters) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | next_statuses | [string]? | yes | | - | success | boolean? | yes | | + | identifier | string? | yes | Product/Bag Article/Item Identifier | + | line_number | number? | yes | Product/Bag Line number for the Product/Bag Identifier | --- -#### [RuleAction](#RuleAction) +#### [ProductsReasons](#ProductsReasons) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | reasons | [[Reason](#Reason)]? | yes | | + | data | [ProductsReasonsData](#ProductsReasonsData)? | yes | | + | filters | [[ProductsReasonsFilters](#ProductsReasonsFilters)]? | yes | | --- -#### [RuleError](#RuleError) +#### [ProductsReasonsData](#ProductsReasonsData) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | message | string | no | | - | type | string | no | | - | value | string | no | | + | reason_id | number? | yes | | + | reason_text | string? | yes | | --- -#### [RuleErrorResponse](#RuleErrorResponse) +#### [ProductsReasonsFilters](#ProductsReasonsFilters) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | error | [RuleError](#RuleError)? | yes | | - | success | boolean? | yes | | + | identifier | string? | yes | Product/Bag Article/Item Identifier | + | line_number | number? | yes | Product/Bag Line number for the Product/Bag Identifier | + | quantity | number? | yes | | --- -#### [RuleItem](#RuleItem) +#### [QuestionSet](#QuestionSet) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | actions | [RuleAction](#RuleAction) | no | | - | channel | string | no | | - | conditions | [Condition](#Condition) | no | | - | description | string | no | | - | entity_type | string | no | | - | flow_type | string | no | | - | id | string | no | | - | is_active | boolean | no | | - | is_deleted | boolean | no | | - | meta | [Meta](#Meta) | no | | - | name | string | no | | - | position | number | no | | - | qc_enabled | boolean | no | | - | rule_type | string | no | | - | value | string | no | | + | display_name | string? | yes | | + | id | number? | yes | | --- -#### [RuleLaneConfigErrorResponse](#RuleLaneConfigErrorResponse) +#### [Reason](#Reason) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | message | any? | yes | | - | type | string? | yes | | - | value | string? | yes | | + | display_name | string? | yes | | + | id | number? | yes | | + | qc_type | [string]? | yes | | + | question_set | [[QuestionSet](#QuestionSet)]? | yes | | --- -#### [RuleListItem](#RuleListItem) +#### [ReasonsData](#ReasonsData) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | actions | [RuleAction](#RuleAction) | no | | - | channel | string | no | | - | conditions | [Condition](#Condition) | no | | - | description | string | no | | - | entity_type | string | no | | - | error | [RuleError](#RuleError) | no | | - | flow_type | string | no | | - | id | string | no | | - | is_active | boolean | no | | - | is_deleted | boolean | no | | - | meta | [Meta](#Meta) | no | | - | name | string | no | | - | position | number | no | | - | qc_enabled | boolean | no | | - | rule_type | string | no | | - | success | boolean | no | | - | value | string | no | | + | entities | [[EntitiesReasons](#EntitiesReasons)]? | yes | | + | products | [[ProductsReasons](#ProductsReasons)]? | yes | | --- -#### [RuleListRequest](#RuleListRequest) +#### [RefundModeConfigRequestPayload](#RefundModeConfigRequestPayload) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | flow_type | string? | yes | | - | lane_type | string? | yes | | - | page_no | number? | yes | | - | page_size | number? | yes | | + | affiliate_id | string | no | | + | customer_mobile_number | string? | yes | | + | fynd_order_id | string | no | | + | seller_id | number | no | | --- -#### [RuleListResponse](#RuleListResponse) +#### [RefundModeConfigResponsePayload](#RefundModeConfigResponsePayload) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | error | [RuleErrorResponse](#RuleErrorResponse)? | yes | | - | items | [[RuleListItem](#RuleListItem)]? | yes | | - | page | [PageInfo](#PageInfo)? | yes | | - | success | boolean? | yes | | + | data | [[RefundModeInfo](#RefundModeInfo)] | no | | + | success | boolean | no | | --- -#### [RuleMeta](#RuleMeta) +#### [RefundModeInfo](#RefundModeInfo) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | department | [Department](#Department)? | yes | | - | l3 | [L3](#L3)? | yes | | + | display_name | string? | yes | | + | is_active | boolean? | yes | | + | options | [[RefundOption](#RefundOption)]? | yes | | + | slug | string? | yes | | --- -#### [RuleParametersResponse](#RuleParametersResponse) +#### [RefundOption](#RefundOption) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | response | [[ParameterResponse](#ParameterResponse)]? | yes | | + | name | string? | yes | | + | slug | string? | yes | | + | type | string? | yes | | + | value | string? | yes | | --- -#### [RuleRequest](#RuleRequest) +#### [ReplacementDetails](#ReplacementDetails) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | actions | [RuleAction](#RuleAction) | no | | - | channel | string | no | | - | conditions | [[Condition](#Condition)] | no | | - | description | string? | yes | | - | entity_type | string | no | | - | flow_type | string | no | | - | is_active | boolean | no | | - | is_deleted | boolean | no | | - | meta | [RuleMeta](#RuleMeta) | no | | - | name | string | no | | - | qc_enabled | boolean | no | | - | restrict_forward_servicability | boolean? | yes | | - | rule_type | string | no | | - | value | string | no | | + | original_affiliate_order_id | string? | yes | | + | replacement_type | string? | yes | | --- -#### [RuleResponse](#RuleResponse) +#### [ResponseDetail](#ResponseDetail) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | error | [RuleError](#RuleError)? | yes | | - | id | string? | yes | | - | items | [RuleItem](#RuleItem)? | yes | | + | message | [string]? | yes | | | success | boolean? | yes | | --- -#### [RuleUpdateRequest](#RuleUpdateRequest) +#### [ReturnConfig](#ReturnConfig) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | actions | [RuleAction](#RuleAction) | no | | - | channel | string | no | | - | conditions | [[Condition](#Condition)] | no | | - | description | string? | yes | | - | entity_type | string | no | | - | flow_type | string | no | | - | is_active | boolean | no | | - | is_deleted | boolean | no | | - | meta | [RuleMeta](#RuleMeta) | no | | - | name | string | no | | - | position | number | no | | - | qc_enabled | boolean | no | | - | restrict_forward_servicability | boolean | no | | - | rule_type | string | no | | - | value | string | no | | + | returnable | boolean? | yes | | + | time | number? | yes | | + | unit | string? | yes | | --- -#### [RuleUpdateResponse](#RuleUpdateResponse) +#### [RoleBaseStateTransitionMapping](#RoleBaseStateTransitionMapping) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | error | [RuleError](#RuleError)? | yes | | - | id | string? | yes | | + | next_statuses | [string]? | yes | | | success | boolean? | yes | | @@ -12346,6 +10245,7 @@ Verify OTP | city | string? | yes | | | country | string? | yes | | | country_code | string? | yes | | + | country_iso_code | string? | yes | Country Code in ISO 2 format (e.g. US, IN) | | customer_code | string? | yes | | | external_customer_code | string? | yes | | | first_name | string? | yes | | @@ -12383,66 +10283,6 @@ Verify OTP | shipment_id | number | no | ShipmentId | ---- - -#### [StateManagerFilter](#StateManagerFilter) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | default_value | string? | yes | | - | description | string? | yes | | - | display_name | string? | yes | | - | id | number? | yes | | - | name | string? | yes | | - | options | string? | yes | | - | type | string? | yes | | - - ---- - -#### [StateManagerState](#StateManagerState) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | app_display_name | string? | yes | The application display name | - | app_facing | boolean? | yes | Whether state is for app facing or not | - | id | number? | yes | Unique identifier for the state | - | is_active | boolean? | yes | Whether state is active or not | - | journey_type | string? | yes | Type of the journey | - | platform_display_name | string? | yes | The platform display name | - | state | string? | yes | The name of the state | - | state_type | string? | yes | Type of the state | - - ---- - -#### [StateManagerTask](#StateManagerTask) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | description | string? | yes | | - | display_name | string? | yes | | - | doc_string | string? | yes | | - | id | number? | yes | | - | kwargs | string? | yes | | - | name | string? | yes | | - - ---- - -#### [StateTransitionFlag](#StateTransitionFlag) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | default_value | string? | yes | | - | description | string? | yes | | - | display_name | string? | yes | | - | id | number? | yes | | - | name | string? | yes | | - | options | string? | yes | | - | type | string? | yes | | - - --- #### [StatuesRequest](#StatuesRequest) @@ -12754,31 +10594,6 @@ Verify OTP | message | string? | yes | | ---- - -#### [UpdateRulePositionRequest](#UpdateRulePositionRequest) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | flow_type | string | no | | - | page_no | number | no | | - | page_size | number | no | | - | position | number | no | | - | rule_id | number | no | | - - ---- - -#### [UpdateRulePositionResponse](#UpdateRulePositionResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | error | [RuleError](#RuleError)? | yes | | - | items | [[RuleItem](#RuleItem)]? | yes | | - | page | [PageInfo](#PageInfo)? | yes | | - | success | boolean? | yes | | - - --- #### [UpdateShipmentLockPayload](#UpdateShipmentLockPayload) @@ -12789,6 +10604,7 @@ Verify OTP | action_type | string | no | Expected action_type: [complete, operational, financial] | | entities | [[Entities](#Entities)] | no | Shipment/Entity | | entity_type | string | no | Expected entity_type: [bags, shipments] | + | resume_tasks_after_unlock | boolean? | yes | | --- @@ -12929,15 +10745,6 @@ Verify OTP | user_type | string? | yes | | ---- - -#### [UserViewsResponse](#UserViewsResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | parent_views | [[ParentViews](#ParentViews)]? | yes | | - - --- #### [VerifyMobileOTP](#VerifyMobileOTP) @@ -12983,18 +10790,6 @@ Verify OTP | mobile | string? | yes | | ---- - -#### [ViewDetails](#ViewDetails) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | filters | [[FiltersList](#FiltersList)]? | yes | | - | id | string? | yes | | - | slug | string? | yes | | - | text | string? | yes | | - - --- #### [Weight](#Weight) diff --git a/documentation/platform/PARTNER.md b/documentation/platform/PARTNER.md index 0b51ab4d2..0e0e26960 100644 --- a/documentation/platform/PARTNER.md +++ b/documentation/platform/PARTNER.md @@ -43,7 +43,7 @@ const data = await platformClient.application("").partner.addPro | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| extensionId | string | yes | Extension id for which a proxy URL will be generated | +| extensionId | string | yes | Extension id for which proxy URL will be generated | | body | [AddProxyReq](#AddProxyReq) | yes | Request body | @@ -62,30 +62,22 @@ Proxy created successfully
-  Examples: - - -
-  success +  Example: ```json { - "value": { - "_id": "607406b8a472cd527303692f", - "attached_path": "test", - "proxy_url": "https://www.abc.com", - "company_id": "1", - "application_id": "000000000000000000000004", - "extension_id": "6073280be899ea5b1150fd9d", - "created_at": "2021-04-12T08:37:12.077Z", - "modified_at": "2021-04-12T08:37:12.077Z" - } + "_id": "607406b8a472cd527303692f", + "attached_path": "test", + "proxy_url": "https://www.abc.com", + "company_id": "1", + "application_id": "000000000000000000000004", + "extension_id": "6073280be899ea5b1150fd9d", + "created_at": "2021-04-12T08:37:12.077Z", + "modified_at": "2021-04-12T08:37:12.077Z" } ```
-
- @@ -119,7 +111,7 @@ const data = await platformClient.application("").partner.remove | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | | extensionId | string | yes | Extension id for which proxy URL needs to be removed | -| attachedPath | string | yes | Attached path slug | +| attachedPath | string | yes | Attachaed path slug | @@ -138,33 +130,25 @@ Success
-  Examples: - - -
-  success +  Example: ```json { - "value": { - "message": "Proxy URL deleted", - "data": { - "_id": "607406b8a472cd527303692f", - "attached_path": "test", - "proxy_url": "https://www.abc.com", - "company_id": "1", - "application_id": "000000000000000000000004", - "extension_id": "6073280be899ea5b1150fd9d", - "created_at": "2021-04-12T08:37:12.077Z", - "modified_at": "2021-04-12T08:37:12.077Z" - } + "message": "Proxy URL deleted", + "data": { + "_id": "607406b8a472cd527303692f", + "attached_path": "test", + "proxy_url": "https://www.abc.com", + "company_id": "1", + "application_id": "000000000000000000000004", + "extension_id": "6073280be899ea5b1150fd9d", + "created_at": "2021-04-12T08:37:12.077Z", + "modified_at": "2021-04-12T08:37:12.077Z" } } ```
-
- diff --git a/documentation/platform/PAYMENT.md b/documentation/platform/PAYMENT.md index 05f790288..7e517574f 100644 --- a/documentation/platform/PAYMENT.md +++ b/documentation/platform/PAYMENT.md @@ -19,7 +19,6 @@ Default * [createMerchantRefundPriority](#createmerchantrefundpriority) * [createPaymentLink](#createpaymentlink) * [createPaymentOrder](#createpaymentorder) -* [deleteBeneficiaryDetails](#deletebeneficiarydetails) * [deletePayout](#deletepayout) * [deleteSubscriptionPaymentMethod](#deletesubscriptionpaymentmethod) * [edcAggregatorsAndModelList](#edcaggregatorsandmodellist) @@ -40,14 +39,10 @@ Default * [getPaymentModeCustomConfig](#getpaymentmodecustomconfig) * [getPaymentModeRoutes](#getpaymentmoderoutes) * [getPaymentSession](#getpaymentsession) -* [getPennyDropValidation](#getpennydropvalidation) * [getPosPaymentModeRoutes](#getpospaymentmoderoutes) -* [getRefundOptions](#getrefundoptions) -* [getSelectedRefundOption](#getselectedrefundoption) * [getSubscriptionConfig](#getsubscriptionconfig) * [getSubscriptionPaymentMethod](#getsubscriptionpaymentmethod) * [getUserBeneficiaries](#getuserbeneficiaries) -* [getUserBeneficiariesDetailV2](#getuserbeneficiariesdetailv2) * [getUserCODlimitRoutes](#getusercodlimitroutes) * [getUserOrderBeneficiaries](#getuserorderbeneficiaries) * [initialisePayment](#initialisepayment) @@ -67,16 +62,12 @@ Default * [saveSubscriptionSetupIntent](#savesubscriptionsetupintent) * [setMerchantModeControlRoutes](#setmerchantmodecontrolroutes) * [setPaymentModeCustomConfig](#setpaymentmodecustomconfig) -* [setRefundOptionforShipment](#setrefundoptionforshipment) * [setUserCODlimitRoutes](#setusercodlimitroutes) -* [updateDefaultBeneficiary](#updatedefaultbeneficiary) * [updateEdcDevice](#updateedcdevice) * [updateMerchantRefundPriority](#updatemerchantrefundpriority) * [updatePaymentSession](#updatepaymentsession) * [updatePayout](#updatepayout) -* [updatePennyDropValidation](#updatepennydropvalidation) * [updateRefundSession](#updaterefundsession) -* [validateBeneficiaryAddress](#validatebeneficiaryaddress) * [verifyCustomerForPayment](#verifycustomerforpayment) * [verifyIfscCode](#verifyifsccode) @@ -675,65 +666,6 @@ Success. Check the example shown below ---- - - -### deleteBeneficiaryDetails -Delete saved beneficiary details of customers - - - -```javascript -// Promise -const promise = platformClient.application("").payment.deleteBeneficiaryDetails({ beneficiaryId : value }); - -// Async/Await -const data = await platformClient.application("").payment.deleteBeneficiaryDetails({ beneficiaryId : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| beneficiaryId | string | yes | This is a String value that contains beneficiary_id as value. | - - - -Use this API to delete the saved beneficiary details provided beneficiary Id. - -*Returned Response:* - - - - -[DeleteRefundAccountResponse](#DeleteRefundAccountResponse) - -Success. Shows whether the beneficiary details were saved to a returned/cancelled order or not. - - - - -
-  Example: - -```json -{ - "success": true, - "refund_options": "Account successfully deleted" -} -``` -
- - - - - - - - - --- @@ -1572,13 +1504,11 @@ Success. "value": { "success": true, "message": "", - "items": [ - { - "is_equal_to": 13, - "is_less_than": 12, - "is_greater_than\"": 10 - } - ] + "items": { + "is_equal_to": 13, + "is_less_than": 12, + "is_greater_than\"": 10 + } } } ``` @@ -1677,21 +1607,16 @@ Get Payment modes and COD details. ```javascript // Promise -const promise = platformClient.application("").payment.getMerchantPaymentOption({ paymentOptionType : value }); +const promise = platformClient.application("").payment.getMerchantPaymentOption(); // Async/Await -const data = await platformClient.application("").payment.getMerchantPaymentOption({ paymentOptionType : value }); +const data = await platformClient.application("").payment.getMerchantPaymentOption(); ``` -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| paymentOptionType | string | no | Payment Option Type, Expected value - advance (Optional) | - - This api fetches all the available PGs for merchant and its offline payment mode details. @@ -1700,7 +1625,7 @@ This api fetches all the available PGs for merchant and its offline payment mode -[PlatformOnlineOfflinePaymentResponse](#PlatformOnlineOfflinePaymentResponse) +[PlatformPaymentModeResponse](#PlatformPaymentModeResponse) Success. @@ -1720,47 +1645,49 @@ Success. "value": { "success": true, "message": "", - "items": { - "online": { - "is_active": true, - "aggregators": [ - { - "id": 1, - "name": "Simpl", - "logo": "https://hdn-1.fynd.com/payment/simpl-pg-logo.jpg" - } - ] - }, - "offline": { - "is_active": true, - "payment_modes": { - "cod": [ - { - "name": "Cash on Delivery", - "slug": "cod", - "is_active": true, - "logos": { - "small": "https://hdn-1.fynd.com/payment/cod.png", - "large": "https://hdn-1.fynd.com/payment/cod.png" - } - } - ] - } - }, - "advance": { - "is_active": true, - "payment_modes": { - "split": [ + "items": [ + { + "online": { + "is_active": true, + "aggregators": [ { - "name": "Split Payment", - "slug": "split", - "id": 48, - "is_active": true + "id": 1, + "name": "Simpl", + "logo": "https://hdn-1.fynd.com/payment/simpl-pg-logo.jpg" } ] + }, + "offline": { + "is_active": true, + "payment_modes": { + "cod": [ + { + "name": "Cash on Delivery", + "slug": "cod", + "is_active": true, + "logos": { + "small": "https://hdn-1.fynd.com/payment/cod.png", + "large": "https://hdn-1.fynd.com/payment/cod.png" + } + } + ] + } + }, + "advance": { + "is_active": true, + "payment_modes": { + "split": [ + { + "name": "Split Payment", + "slug": "split", + "id": 48, + "is_active": true + } + ] + } } } - } + ] } } ``` @@ -3617,8 +3544,7 @@ Success. Returns the details of payment session. Check the example shown below o "cart_value": 56700, "total_quantity": 10, "articles": [], - "items": {}, - "seller_company_id": 1 + "items": {} } } ``` @@ -3632,61 +3558,6 @@ Success. Returns the details of payment session. Check the example shown below o ---- - - -### getPennyDropValidation -API to get pennydrop validation flag - - - -```javascript -// Promise -const promise = platformClient.application("").payment.getPennyDropValidation(); - -// Async/Await -const data = await platformClient.application("").payment.getPennyDropValidation(); -``` - - - - - - -API to get pennydrop validation flag - -*Returned Response:* - - - - -[PennyDropValidationResponse](#PennyDropValidationResponse) - -Success. Returns the status of pennydrop validation. Check the example shown below or refer `PennyDropValidationResponse` for more details. - - - - -
-  Example: - -```json -{ - "success": true, - "allow_pennydrop_validation": true, - "message": "Penny drop validation updated" -} -``` -
- - - - - - - - - --- @@ -4991,45 +4862,34 @@ Success --- -### getRefundOptions -Refund Options Handler to fetch available refund options. +### getSubscriptionConfig +List Subscription Config ```javascript // Promise -const promise = platformClient.application("").payment.getRefundOptions({ configuration : value, - productType : value, - amount : value }); +const promise = platformClient.payment.getSubscriptionConfig(); // Async/Await -const data = await platformClient.application("").payment.getRefundOptions({ configuration : value, - productType : value, - amount : value }); +const data = await platformClient.payment.getSubscriptionConfig(); ``` -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| configuration | string | yes | config type | -| productType | string | no | Product Type either 1P and 3P | -| amount | string | no | refunded amount | - - -Refund Options Handler to fetch available refund options +Get all Subscription Config details *Returned Response:* -[RefundOptionResponse](#RefundOptionResponse) +[SubscriptionConfigResponse](#SubscriptionConfigResponse) -Success. Returns the refund options for config type. Check the example shown below or refer `RefundOptionResponse` for more details. +List Subscription Config Response @@ -5040,52 +4900,9 @@ Success. Returns the refund options for config type. Check the example shown bel ```json { "success": true, - "refund_options": { - "items": [ - { - "id": 4, - "name": "refund_to_source", - "display_name": "refund_to_source", - "is_active": true - }, - { - "id": 5, - "name": "creditnote", - "display_name": "CreditNote", - "is_active": true - }, - { - "id": 8, - "name": "Wallet", - "display_name": "Wallet", - "is_active": true - } - ] - }, - "offline_refund_options": { - "payment_modes": [ - "COD" - ], - "items": [ - { - "id": 1, - "name": "bank", - "display_name": "BANK", - "is_active": true - }, - { - "id": 2, - "name": "upi", - "display_name": "UPI", - "is_active": true - }, - { - "id": 3, - "name": "jm_wallet", - "display_name": "JM Wallet", - "is_active": true - } - ] + "aggregator": "stripe", + "config": { + "public_key": "pk_test_lHBf12TZLa5" } } ``` @@ -5102,19 +4919,17 @@ Success. Returns the refund options for config type. Check the example shown bel --- -### getSelectedRefundOption -API to get the selected refund options for shipment id +### getSubscriptionPaymentMethod +List Subscription Payment Method ```javascript // Promise -const promise = platformClient.application("").payment.getSelectedRefundOption({ shipmentId : value, - orderId : value }); +const promise = platformClient.payment.getSubscriptionPaymentMethod({ uniqueExternalId : value }); // Async/Await -const data = await platformClient.application("").payment.getSelectedRefundOption({ shipmentId : value, - orderId : value }); +const data = await platformClient.payment.getSubscriptionPaymentMethod({ uniqueExternalId : value }); ``` @@ -5122,143 +4937,21 @@ const data = await platformClient.application("").payment.getSel | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| shipmentId | string | yes | shipment Id | -| orderId | string | yes | Order Id | - - - -API to get the selected refund options for shipment id - -*Returned Response:* - - - - -[SelectedRefundOptionResponse](#SelectedRefundOptionResponse) - -Success. Returns the selected refund option for shipment. Check the example shown below or refer `SelectedRefundOptionResponseSchema` for more details. - - - - -
-  Example: - -```json -{ - "success": true, - "shipment_id": "1754345678232412312", - "transfer_mode": { - "mode": "refund_to_source", - "display_name": "Refund to Source" - }, - "message": "Refund Source" -} -``` -
- - - - - - - - - ---- - - -### getSubscriptionConfig -List Subscription Config - - - -```javascript -// Promise -const promise = platformClient.payment.getSubscriptionConfig(); - -// Async/Await -const data = await platformClient.payment.getSubscriptionConfig(); -``` - - - +| --------- | ----- | -------- | ----------- | +| uniqueExternalId | string | no | Unique external id | -Get all Subscription Config details +Get all Subscription Payment Method *Returned Response:* -[SubscriptionConfigResponse](#SubscriptionConfigResponse) +[SubscriptionPaymentMethodResponse](#SubscriptionPaymentMethodResponse) -List Subscription Config Response - - - - -
-  Example: - -```json -{ - "success": true, - "aggregator": "stripe", - "config": { - "public_key": "pk_test_lHBf12TZLa5" - } -} -``` -
- - - - - - - - - ---- - - -### getSubscriptionPaymentMethod -List Subscription Payment Method - - - -```javascript -// Promise -const promise = platformClient.payment.getSubscriptionPaymentMethod({ uniqueExternalId : value }); - -// Async/Await -const data = await platformClient.payment.getSubscriptionPaymentMethod({ uniqueExternalId : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| uniqueExternalId | string | no | Unique external id | - - - -Get all Subscription Payment Method - -*Returned Response:* - - - - -[SubscriptionPaymentMethodResponse](#SubscriptionPaymentMethodResponse) - -List Subscription Payment Method Response +List Subscription Payment Method Response @@ -5488,132 +5181,6 @@ List User Beneficiary ---- - - -### getUserBeneficiariesDetailV2 -Lists the beneficiary of a refund - - - -```javascript -// Promise -const promise = platformClient.application("").payment.getUserBeneficiariesDetailV2({ orderId : value, - shipmentId : value, - mop : value }); - -// Async/Await -const data = await platformClient.application("").payment.getUserBeneficiariesDetailV2({ orderId : value, - shipmentId : value, - mop : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| orderId | string | no | A unique number used for identifying and tracking your orders. | -| shipmentId | string | no | A unique number used for identifying and tracking your orders. | -| mop | string | no | Mode of payment for which beneficiary data required | - - - -Use this API to get the details of all active beneficiary added by a user for refund. - -*Returned Response:* - - - - -[OrderBeneficiaryResponseSchemaV2](#OrderBeneficiaryResponseSchemaV2) - -Success. Returns the details of the beneficiary getting a refund. Check the example shown below or refer `OrderBeneficiaryResponse` for more details. - - - - -
-  Example: - -```json -{ - "data": { - "bank": [ - { - "id": 221, - "beneficiary_id": "0f7e44a922df352c05c5f73cb40ba115", - "bank_name": "Example Bank", - "branch_name": "Example Bank", - "account_holder": "DUMMY NAME", - "account_no": "XXXX-XXXX-9999", - "ifsc_code": "EXAM0009999", - "mobile": "9999999999", - "email": "dummy@example.com", - "address": "204A", - "comment": "", - "is_active": null, - "created_on": "2020-06-29 12:38:39", - "modified_on": "2020-06-29 12:38:39", - "display_name": "BANK", - "transfer_mode": "bank", - "title": "Bank Account", - "subtitle": "1234567891", - "delights_user_name": null, - "default": true - } - ], - "upi": [ - { - "id": 222, - "beneficiary_id": "0f7e44a922df352c05c5f73cb40ba115", - "vpa_address": "success@upi", - "vpa": "success@upi", - "mobile": "9999999999", - "email": "dummy@example.com", - "address": "204A", - "comment": "", - "display_name": "UPI", - "transfer_mode": "vpa", - "title": "UPI Payment", - "subtitle": "success@upi", - "delights_user_name": null, - "default": true - } - ], - "wallet": [ - { - "id": 223, - "beneficiary_id": "234567823213123", - "wallet_address": "1234567891", - "wallet": "1234567891", - "mobile": "9999999999", - "email": "dummy@example.com", - "address": "204A", - "comment": "", - "display_name": "Wallet", - "transfer_mode": "wallet", - "title": "DummyWallet", - "subtitle": "1234567891", - "delights_user_name": null, - "default": true - } - ] - }, - "show_beneficiary_details": true -} -``` -
- - - - - - - - - --- @@ -5652,7 +5219,7 @@ Use this API to get user cod limit and reamining limit for the payment [GetUserCODLimitResponse](#GetUserCODLimitResponse) -Success. Returns user cod limit , remaining limit and usage of user for COD. Check the example shown below or refer `GetUserCODLimitResponse` for more details. +Success. Returns user cod limit , remaining limit and usage of user for COD. Check the example shown below or refer `GetUserCODLimitResponseSchema` for more details. @@ -5663,63 +5230,14 @@ Success. Returns user cod limit , remaining limit and usage of user for COD. Che ```json { "success": true, - "message": "advance option for user 1 is set to True", - "items": [ - { - "buisness_unit": "storefront", - "display_name": "StoreFront", - "config": { - "advance": { - "is_active": false, - "prepayment_type": "PERCENTAGE", - "prepayment_value": 1000, - "cancellation_type": "MANUAL", - "all_prepayment_type": [ - "PERCENTAGE", - "FIXED" - ] - }, - "cod": { - "is_active": false, - "usages": 0, - "user_id": 1, - "merchant_user_id": "64b180526d262f0737780567", - "limit": { - "storefront": 100000, - "pos": 100000 - }, - "remaining_limit": 100000 - } - } - }, - { - "buisness_unit": "pos", - "display_name": "StoreOS", - "config": { - "advance": { - "is_active": false, - "prepayment_type": "PERCENTAGE", - "prepayment_value": 500, - "cancellation_type": "MANUAL", - "all_prepayment_type": [ - "PERCENTAGE", - "FIXED" - ] - }, - "cod": { - "is_active": true, - "usages": 0, - "user_id": 1, - "merchant_user_id": "64b180526d262f0737780567", - "limit": { - "storefront": 100000, - "pos": 100000 - }, - "remaining_limit": 100000 - } - } - } - ] + "user_cod_data": { + "is_active": true, + "user_id": "abc", + "usages": 1000, + "limit": 10000, + "remaining_limit": 9000, + "merchant_user_id": "5e199e6998cfe1776f1385dc" + } } ``` @@ -6735,7 +6253,7 @@ Save Config Secret For Brand Payment Gateway Success Response. ```json { "success": true, - "aggregators": [ + "aggregator": [ "razorpay" ] } @@ -7100,17 +6618,17 @@ Success. --- -### setRefundOptionforShipment -Save refund source against shipment and order +### setUserCODlimitRoutes +Set COD option for user for payment ```javascript // Promise -const promise = platformClient.application("").payment.setRefundOptionforShipment({ body : value }); +const promise = platformClient.application("").payment.setUserCODlimitRoutes({ body : value }); // Async/Await -const data = await platformClient.application("").payment.setRefundOptionforShipment({ body : value }); +const data = await platformClient.application("").payment.setUserCODlimitRoutes({ body : value }); ``` @@ -7119,19 +6637,19 @@ const data = await platformClient.application("").payment.setRef | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| body | [ShipmentRefundRequest](#ShipmentRefundRequest) | yes | Request body | +| body | [SetCODForUserRequest](#SetCODForUserRequest) | yes | Request body | -Save refund source against shipment and order +Use this API to set cod option as true or false for the payment *Returned Response:* -[ShipmentRefundResponse](#ShipmentRefundResponse) +[SetCODOptionResponse](#SetCODOptionResponse) -Success. Returns the status of saved refund source for shipment and order. Check the example shown below or refer `ShipmentRefundResponse` for more details. +Success. Returns true or false for user cod option for payment. Check the example shown below or refer `GetUserCODLimitResponseSchema` for more details. @@ -7142,13 +6660,7 @@ Success. Returns the status of saved refund source for shipment and order. Check ```json { "success": true, - "data": { - "order_id": "FY653A517A0EF2BEE7A7", - "shipment_id": "1754345678232412312", - "beneficiary_id": "213123213123", - "transfer_mode": "bank" - }, - "message": "Saved transfer mode for shipment" + "message": "COD option for user {} is set to {}" } ``` @@ -7164,17 +6676,17 @@ Success. Returns the status of saved refund source for shipment and order. Check --- -### setUserCODlimitRoutes -Set COD option for user for payment +### updateEdcDevice +map new edc device to the terminal ```javascript // Promise -const promise = platformClient.application("").payment.setUserCODlimitRoutes({ body : value }); +const promise = platformClient.application("").payment.updateEdcDevice({ body : value }); // Async/Await -const data = await platformClient.application("").payment.setUserCODlimitRoutes({ body : value }); +const data = await platformClient.application("").payment.updateEdcDevice({ body : value }); ``` @@ -7183,19 +6695,19 @@ const data = await platformClient.application("").payment.setUse | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| body | [SetCODForUserRequest](#SetCODForUserRequest) | yes | Request body | +| body | [EdcAddRequest](#EdcAddRequest) | yes | Request body | -Use this API to set cod option as true or false for the payment +Use this API to map new edc device to the terminal *Returned Response:* -[GetUserCODLimitResponse](#GetUserCODLimitResponse) +[EdcDeviceAddResponse](#EdcDeviceAddResponse) -Success. Returns true or false for user cod option for payment. Check the example shown below or refer `GetUserCODLimitResponse` for more details. +Success. Returns the single edc device mapped to the terminal. Check the example shown below or refer `EdcDeviceAddResponseSchema` for more details. @@ -7206,63 +6718,18 @@ Success. Returns true or false for user cod option for payment. Check the exampl ```json { "success": true, - "message": "advance option for user 1 is set to True", - "items": [ - { - "buisness_unit": "storefront", - "display_name": "StoreFront", - "config": { - "advance": { - "is_active": false, - "prepayment_type": "PERCENTAGE", - "prepayment_value": 1000, - "cancellation_type": "MANUAL", - "all_prepayment_type": [ - "PERCENTAGE", - "FIXED" - ] - }, - "cod": { - "is_active": false, - "usages": 0, - "user_id": 1, - "merchant_user_id": "64b180526d262f0737780567", - "limit": { - "storefront": 100000, - "pos": 100000 - }, - "remaining_limit": 100000 - } - } - }, - { - "buisness_unit": "pos", - "display_name": "StoreOS", - "config": { - "advance": { - "is_active": false, - "prepayment_type": "PERCENTAGE", - "prepayment_value": 500, - "cancellation_type": "MANUAL", - "all_prepayment_type": [ - "PERCENTAGE", - "FIXED" - ] - }, - "cod": { - "is_active": true, - "usages": 0, - "user_id": 1, - "merchant_user_id": "64b180526d262f0737780567", - "limit": { - "storefront": 100000, - "pos": 100000 - }, - "remaining_limit": 100000 - } - } - } - ] + "data": { + "application_id": "2", + "aggregator_id": 1, + "terminal_serial_no": "15c26ee7297e4334", + "edc_device_serial_no": "123456784", + "terminal_unique_identifier": "1231208734", + "merchant_store_pos_code": null, + "store_id": 12312, + "device_tag": "Counter 2", + "is_active": false, + "edc_model": "A910" + } } ``` @@ -7278,17 +6745,19 @@ Success. Returns true or false for user cod option for payment. Check the exampl --- -### updateDefaultBeneficiary -Set a default beneficiary for a refund +### updateMerchantRefundPriority +API to update merchant refund priority ```javascript // Promise -const promise = platformClient.application("").payment.updateDefaultBeneficiary({ body : value }); +const promise = platformClient.application("").payment.updateMerchantRefundPriority({ configType : value, + body : value }); // Async/Await -const data = await platformClient.application("").payment.updateDefaultBeneficiary({ body : value }); +const data = await platformClient.application("").payment.updateMerchantRefundPriority({ configType : value, + body : value }); ``` @@ -7296,35 +6765,69 @@ const data = await platformClient.application("").payment.update | Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| body | [SetDefaultBeneficiaryRequest](#SetDefaultBeneficiaryRequest) | yes | Request body | +| --------- | ----- | -------- | ----------- | +| configType | string | yes | configuration for merchant or customer | +| body | [RefundPriorityRequestSerializer](#RefundPriorityRequestSerializer) | yes | Request body | -Use this API to set a default beneficiary for getting a refund. +API to update merchant refund priority *Returned Response:* -[SetDefaultBeneficiaryResponse](#SetDefaultBeneficiaryResponse) +[RefundPriorityResponseSerializer](#RefundPriorityResponseSerializer) -Success. Check the example shown below or refer `SetDefaultBeneficiaryResponse` for more details. +Success. Returns the status of Update or not. Check the example shown below or refer `RefundPriorityResponseSerializer` for more details.
-  Example: +  Examples: + + +
+  success ```json { - "success": true, - "is_beneficiary_set": true + "summary": "success", + "value": { + "success": true, + "message": "Created successfully", + "apportion": true, + "configuration": "merchant", + "refund_sources_priority": [ + { + "source": "back_to_online_source,", + "description": "Back to online payment source", + "priority": 0 + }, + { + "source": "RONE", + "description": "Rone wallet", + "priority": 1 + }, + { + "source": "FC", + "description": "Fynd Cash", + "priority": 2 + }, + { + "source": "CreditNote", + "description": "Credit Note", + "priority": 3 + } + ] + } } ```
+
+ @@ -7336,182 +6839,19 @@ Success. Check the example shown below or refer `SetDefaultBeneficiaryResponse` --- -### updateEdcDevice -map new edc device to the terminal +### updatePaymentSession +API to update status of a payment. ```javascript // Promise -const promise = platformClient.application("").payment.updateEdcDevice({ body : value }); +const promise = platformClient.application("").payment.updatePaymentSession({ gid : value, + body : value }); // Async/Await -const data = await platformClient.application("").payment.updateEdcDevice({ body : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| body | [EdcAddRequest](#EdcAddRequest) | yes | Request body | - - -Use this API to map new edc device to the terminal - -*Returned Response:* - - - - -[EdcDeviceAddResponse](#EdcDeviceAddResponse) - -Success. Returns the single edc device mapped to the terminal. Check the example shown below or refer `EdcDeviceAddResponseSchema` for more details. - - - - -
-  Example: - -```json -{ - "success": true, - "data": { - "application_id": "2", - "aggregator_id": 1, - "terminal_serial_no": "15c26ee7297e4334", - "edc_device_serial_no": "123456784", - "terminal_unique_identifier": "1231208734", - "merchant_store_pos_code": null, - "store_id": 12312, - "device_tag": "Counter 2", - "is_active": false, - "edc_model": "A910" - } -} -``` -
- - - - - - - - - ---- - - -### updateMerchantRefundPriority -API to update merchant refund priority - - - -```javascript -// Promise -const promise = platformClient.application("").payment.updateMerchantRefundPriority({ configType : value, - body : value }); - -// Async/Await -const data = await platformClient.application("").payment.updateMerchantRefundPriority({ configType : value, - body : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| configType | string | yes | configuration for merchant or customer | -| body | [RefundPriorityRequestSerializer](#RefundPriorityRequestSerializer) | yes | Request body | - - -API to update merchant refund priority - -*Returned Response:* - - - - -[RefundPriorityResponseSerializer](#RefundPriorityResponseSerializer) - -Success. Returns the status of Update or not. Check the example shown below or refer `RefundPriorityResponseSerializer` for more details. - - - - -
-  Examples: - - -
-  success - -```json -{ - "summary": "success", - "value": { - "success": true, - "message": "Created successfully", - "apportion": true, - "configuration": "merchant", - "refund_sources_priority": [ - { - "source": "back_to_online_source,", - "description": "Back to online payment source", - "priority": 0 - }, - { - "source": "RONE", - "description": "Rone wallet", - "priority": 1 - }, - { - "source": "FC", - "description": "Fynd Cash", - "priority": 2 - }, - { - "source": "CreditNote", - "description": "Credit Note", - "priority": 3 - } - ] - } -} -``` -
- -
- - - - - - - - - ---- - - -### updatePaymentSession -API to update status of a payment. - - - -```javascript -// Promise -const promise = platformClient.application("").payment.updatePaymentSession({ gid : value, - body : value }); - -// Async/Await -const data = await platformClient.application("").payment.updatePaymentSession({ gid : value, - body : value }); +const data = await platformClient.application("").payment.updatePaymentSession({ gid : value, + body : value }); ``` @@ -7637,65 +6977,6 @@ save payout response object ---- - - -### updatePennyDropValidation -API to update penny drop validation for application ID - - - -```javascript -// Promise -const promise = platformClient.application("").payment.updatePennyDropValidation({ body : value }); - -// Async/Await -const data = await platformClient.application("").payment.updatePennyDropValidation({ body : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| body | [UpdatePennyDropValidationRequest](#UpdatePennyDropValidationRequest) | yes | Request body | - - -API to update penny drop validation for application ID - -*Returned Response:* - - - - -[PennyDropValidationResponse](#PennyDropValidationResponse) - -Success. Returns the status for pennydrop validation flag. Check the example shown below or refer `PennyDropValidationResponse` for more details. - - - - -
-  Example: - -```json -{ - "success": true, - "allow_pennydrop_validation": true, - "message": "Penny drop validation updated" -} -``` -
- - - - - - - - - --- @@ -7777,90 +7058,6 @@ Returns the response weather it is success or not. Check the example shown below ---- - - -### validateBeneficiaryAddress -API to Validate UPI ID and IFSC code - - - -```javascript -// Promise -const promise = platformClient.application("").payment.validateBeneficiaryAddress({ body : value }); - -// Async/Await -const data = await platformClient.application("").payment.validateBeneficiaryAddress({ body : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| body | [ValidateValidateAddressRequest](#ValidateValidateAddressRequest) | yes | Request body | - - -API to Validate UPI ID and IFSC code - -*Returned Response:* - - - - -[ValidateValidateAddressResponse](#ValidateValidateAddressResponse) - -Success. Returns the IFSC/VPA validation. Check the example shown below or refer `ValidateValidateAddressResponse` for more details. - - - - -
-  Example: - -```json -{ - "success": true, - "ifsc": { - "branch_name": "MANPUR", - "bank_name": "GAYA", - "BRANCH": "MANPUR", - "CENTRE": "GAYA", - "DISTRICT": "GAYA", - "STATE": "BIHAR", - "ADDRESS": "POBUNIYADGANJBIHAR", - "CONTACT": "00", - "MICR": "816002103", - "UPI": true, - "RTGS": true, - "CITY": "GAYA", - "NEFT": true, - "IMPS": true, - "SWIFT": "", - "BANK": "State Bank of India", - "BANKCODE": "SBIN", - "IFSC": "SBIN0005611", - "success": true - }, - "vpa": { - "upi_vpa": "success@razorpay", - "status": "VALID", - "is_valid": true, - "customer_name": "Verified" - } -} -``` -
- - - - - - - - - --- @@ -8097,19 +7294,6 @@ Bank details on correct Ifsc Code | time_unit | string? | yes | Time unit for refunds | ---- - -#### [AdvancePaymentLimitConfig](#AdvancePaymentLimitConfig) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | all_prepayment_type | [string]? | yes | | - | cancellation_type | string? | yes | | - | is_active | boolean? | yes | | - | prepayment_type | string? | yes | | - | prepayment_value | number? | yes | | - - --- #### [AdvancePaymentObject](#AdvancePaymentObject) @@ -8177,21 +7361,11 @@ Bank details on correct Ifsc Code | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | items | [[AggregatorVersionItemSchema](#AggregatorVersionItemSchema)]? | yes | | + | items | [AggregatorVersionItemSchema](#AggregatorVersionItemSchema)? | yes | | | message | string | no | Message | | success | boolean | no | Successful or failure | ---- - -#### [AppliedOfferSerializer](#AppliedOfferSerializer) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | offer_list | [[OfferSerializer](#OfferSerializer)]? | yes | | - | total_applied_offer_amount | number? | yes | Total applied offer amount | - - --- #### [BankDetailsForOTP](#BankDetailsForOTP) @@ -8205,17 +7379,6 @@ Bank details on correct Ifsc Code | ifsc_code | string | no | | ---- - -#### [BeneficiaryRefundOptions](#BeneficiaryRefundOptions) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | bank | [OrderBeneficiaryDetails](#OrderBeneficiaryDetails)? | yes | List of all add bank beneficiary details. | - | upi | [UpiBeneficiaryDetails](#UpiBeneficiaryDetails)? | yes | List of all add UPI beneficiary details. | - | wallet | [WalletBeneficiaryDetails](#WalletBeneficiaryDetails)? | yes | List of all add Wallet beneficiary details. | - - --- #### [CancelOrResendPaymentLinkRequest](#CancelOrResendPaymentLinkRequest) @@ -8245,7 +7408,6 @@ Bank details on correct Ifsc Code | articles | [string] | no | list of articles that are added in cart | | cart_value | number | no | total cart value i.e. amount to be paid | | items | string | no | Items that are added in cart | - | seller_company_id | number? | yes | seller company id | | total_quantity | number? | yes | total number of items in cart | @@ -8262,36 +7424,26 @@ Bank details on correct Ifsc Code --- -#### [Code](#Code) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | code | string | no | Payment Method Code | - | merchant_code | string | no | Merchant Payment Code | - | name | string | no | Name of payment method | - - ---- - -#### [CODLimitConfig](#CODLimitConfig) +#### [CODdata](#CODdata) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | pos | number? | yes | | - | storefront | number? | yes | | + | is_active | boolean | no | COD option is active or not | + | limit | number | no | Total Limit of user | + | remaining_limit | number | no | Remaining Limit for COD of User | + | usages | number | no | Used COD limit from the user Limit | + | user_id | string | no | Payment mode name | --- -#### [CODPaymentLimitConfig](#CODPaymentLimitConfig) +#### [Code](#Code) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | is_active | boolean? | yes | | - | limit | [CODLimitConfig](#CODLimitConfig)? | yes | | - | merchant_user_id | string? | yes | | - | usages | number? | yes | | - | user_id | number? | yes | | + | code | string | no | Payment Method Code | + | merchant_code | string | no | Merchant Payment Code | + | name | string | no | Name of payment method | --- @@ -8341,18 +7493,7 @@ Bank details on correct Ifsc Code | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | delete | boolean? | yes | delete is successful or not | - | unique_transfer_no | string? | yes | unique transafer no of payout | - - ---- - -#### [DeleteRefundAccountResponse](#DeleteRefundAccountResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | message | string | no | Message | - | success | boolean | no | Success/Failure of the deleted beneficiary | + | success | boolean | no | Response is successful or not | --- @@ -8588,26 +7729,14 @@ Bank details on correct Ifsc Code | success | boolean | no | Successful or failure | ---- - -#### [GetUserBULimitResponse](#GetUserBULimitResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | buisness_unit | string? | yes | | - | config | [UserPaymentLimitConfig](#UserPaymentLimitConfig)? | yes | | - | display_name | string? | yes | | - - --- #### [GetUserCODLimitResponse](#GetUserCODLimitResponse) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | items | [[GetUserBULimitResponse](#GetUserBULimitResponse)]? | yes | | - | message | string? | yes | | - | success | boolean? | yes | Response is successful or not | + | success | boolean | no | Response is successful or not | + | user_cod_data | [CODdata](#CODdata) | no | | --- @@ -8743,28 +7872,6 @@ Bank details on correct Ifsc Code | success | boolean | no | Response is successful or not | ---- - -#### [OfferSerializer](#OfferSerializer) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | offer_amount | number? | yes | Offer amount. | - | offer_code | string? | yes | Offer code. | - | offer_description | string? | yes | Offer description. | - | offer_id | string? | yes | Offer id. | - - ---- - -#### [OfflineRefundOptions](#OfflineRefundOptions) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | items | [RefundOptionsDetails](#RefundOptionsDetails) | no | List of all refund options. | - | payment_modes | [string] | no | List of all offline payment options. MOP Code value | - - --- #### [OrderBeneficiaryDetails](#OrderBeneficiaryDetails) @@ -8802,17 +7909,6 @@ Bank details on correct Ifsc Code | show_beneficiary_details | boolean? | yes | Show beneficiary details or not. | ---- - -#### [OrderBeneficiaryResponseSchemaV2](#OrderBeneficiaryResponseSchemaV2) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | data | [BeneficiaryRefundOptions](#BeneficiaryRefundOptions) | no | Beneficiary Data for Bank account, UPI and Wallets. | - | limit | string | no | Max Limit for adding bank account, UPI and wallet | - | show_beneficiary_details | boolean | no | Show Beneficiary details on UI or not. | - - --- #### [OrderDetail](#OrderDetail) @@ -8948,6 +8044,17 @@ Bank details on correct Ifsc Code | success | boolean | no | | +--- + +#### [PaymentDefaultSelection](#PaymentDefaultSelection) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | identifier | string? | yes | Identifier for Payment Mode | + | mode | string? | yes | Default Selection Payment Mode | + | skip | boolean? | yes | Decide if the default payment mode will skip the payment options page altogether or just be preferred on the Frontend | + + --- #### [PaymentDetailsSerializer](#PaymentDetailsSerializer) @@ -9006,7 +8113,7 @@ Bank details on correct Ifsc Code | config_type | string | no | Config Type of the aggregator | | is_active | boolean? | yes | Enable or Disable Flag | | key | string | no | Api key of the payment aggregator | - | merchant_salt | string? | yes | Merchant key of the payment aggregator | + | merchant_salt | string | no | Merchant key of the payment aggregator | | secret | string | no | Secret Key of the payment aggregator | @@ -9016,7 +8123,7 @@ Bank details on correct Ifsc Code | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | aggregator | [PaymentGatewayConfig](#PaymentGatewayConfig)? | yes | | + | aggregator_name | [PaymentGatewayConfig](#PaymentGatewayConfig)? | yes | | | app_id | string | no | Application Id to which Payment config Mapped | | is_active | boolean? | yes | Enable or Disable Flag | @@ -9041,7 +8148,7 @@ Bank details on correct Ifsc Code | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | aggregators | [string]? | yes | List of added payment gateway | + | aggregator | [string] | no | List of added payment gateway | | success | boolean | no | Response is successful or not | @@ -9210,6 +8317,7 @@ Bank details on correct Ifsc Code | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | + | payment_default_selection | [PaymentDefaultSelection](#PaymentDefaultSelection)? | yes | | | payment_flows | [PaymentFlow](#PaymentFlow) | no | | | payment_option | [[RootPaymentMode](#RootPaymentMode)] | no | Payment options | @@ -9327,7 +8435,7 @@ Bank details on correct Ifsc Code | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | applied_payment_offers | [AppliedOfferSerializer](#AppliedOfferSerializer)? | yes | | + | checksum | string | no | Checksum to verify the payload | | currency | string | no | currency of the payment. | | gid | string | no | Global identifier of the entity (e.g. order, cart etc.) against which payment_session was initiated. This is generated by Fynd payments platform and is unique. | | meta | string? | yes | meta | @@ -9547,28 +8655,6 @@ Bank details on correct Ifsc Code | success | boolean | no | Response is successful or not | ---- - -#### [PennyDropValidationResponse](#PennyDropValidationResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | allow_pennydrop_validation | boolean | no | PennyDrop validation flag. | - | message | string | no | message | - | success | boolean | no | Successful or not. | - - ---- - -#### [PlatformOnlineOfflinePaymentResponse](#PlatformOnlineOfflinePaymentResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | items | string? | yes | List of all aggregator and payment mode details. | - | message | string? | yes | Message | - | success | boolean | no | Response is successful or not. | - - --- #### [PlatformPaymentModeCopyConfigRequest](#PlatformPaymentModeCopyConfigRequest) @@ -9644,38 +8730,6 @@ Bank details on correct Ifsc Code | status | string | no | The status of the refund. | ---- - -#### [RefundOptionResponse](#RefundOptionResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | offline_refund_options | [OfflineRefundOptions](#OfflineRefundOptions) | no | Available offline refund options data | - | refund_options | [RefundOptions](#RefundOptions) | no | Available refund options data | - | success | boolean | no | Success/Failure Of response | - - ---- - -#### [RefundOptions](#RefundOptions) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | items | [RefundOptionsDetails](#RefundOptionsDetails) | no | List of all refund options. | - - ---- - -#### [RefundOptionsDetails](#RefundOptionsDetails) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | display_name | string | no | refund option display name | - | id | number | no | Refund ID. It will be unique identifier | - | is_active | boolean? | yes | Refund option is active or not | - | name | string | no | refund option name | - - --- #### [RefundPriorityRequestSerializer](#RefundPriorityRequestSerializer) @@ -9725,13 +8779,14 @@ Bank details on correct Ifsc Code | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | + | checksum | string | no | Checksum to verify payload | | currency | string | no | The currency of the payment. | | error | [ErrorDescription](#ErrorDescription)? | yes | | | gid | string | no | Global identifier of the entity (e.g. order, cart etc.) against which payment_session was initiated. This is generated by Fynd payments platform and is unique. | | message | string? | yes | The status of the refund. | | meta | string? | yes | meta | | payment_details | [PaymentSessionDetail](#PaymentSessionDetail) | no | details of the payment | - | refund_details | [[RefundSessionDetail](#RefundSessionDetail)]? | yes | details of the refund | + | refund_details | [[RefundSessionDetail](#RefundSessionDetail)] | no | details of the refund | | status | string | no | The status of the refund. | | total_amount | number | no | The total amount refunded. | @@ -9880,124 +8935,25 @@ Bank details on correct Ifsc Code | success | boolean | no | Response is successful or not | ---- - -#### [SelectedRefundOptionResponse](#SelectedRefundOptionResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | message | string | no | message | - | shipment_id | string | no | Shipment ID | - | success | boolean | no | Successful or not. | - | transfer_mode | string | no | selected transfer mode for given shipment | - - ---- - -#### [SetAdvanceLimitConfig](#SetAdvanceLimitConfig) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | cancellation_type | string | no | | - | is_active | boolean | no | | - | prepayment_type | string | no | | - | prepayment_value | number | no | | - - ---- - -#### [SetBUPaymentLimit](#SetBUPaymentLimit) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | buisness_unit | string | no | Business Unit - 'storefront'/ 'pos' | - | config | [SetUserPaymentLimitConfig](#SetUserPaymentLimitConfig) | no | | - - --- #### [SetCODForUserRequest](#SetCODForUserRequest) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | items | [[SetBUPaymentLimit](#SetBUPaymentLimit)] | no | | + | is_active | boolean | no | either true or false | | merchant_user_id | string | no | Merchant User id | - | mobile_no | string? | yes | Mobile No. of User | - - ---- - -#### [SetCODLimitConfig](#SetCODLimitConfig) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | is_active | boolean | no | | - - ---- - -#### [SetDefaultBeneficiaryRequest](#SetDefaultBeneficiaryRequest) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | beneficiary_id | string | no | Beneficiary Hash Id of the beneficiary added | - | order_id | string | no | Merchant Order Id | - | shipment_id | string? | yes | Shipment Id from respective merchant order ID | - - ---- - -#### [SetDefaultBeneficiaryResponse](#SetDefaultBeneficiaryResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | is_beneficiary_set | boolean | no | Boolean Flag whether Beneficiary set or not | - | success | boolean? | yes | Response is successful or not | - - ---- - -#### [SetUserPaymentLimitConfig](#SetUserPaymentLimitConfig) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | advance | [SetAdvanceLimitConfig](#SetAdvanceLimitConfig) | no | | - | cod | [SetCODLimitConfig](#SetCODLimitConfig) | no | | - - ---- - -#### [ShipmentRefundDetail](#ShipmentRefundDetail) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | beneficiary_id | string | no | Beneficiary ID | - | order_id | string | no | Order ID | - | shipment_id | string | no | Shipment ID | - | transfer_mode | string | no | TransferMode | - - ---- - -#### [ShipmentRefundRequest](#ShipmentRefundRequest) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | beneficiary_id | string? | yes | Beneficiary Hash Id of the beneficiary added | - | order_id | string | no | Merchant Order Id | - | shipment_id | string | no | Shipment Id of the respective Merchant Order Id | - | transfer_mode | string | no | Transfer Mode of the Beneficiary to be added | + | mobileno | string | no | Mobile No. of User | --- -#### [ShipmentRefundResponse](#ShipmentRefundResponse) +#### [SetCODOptionResponse](#SetCODOptionResponse) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | data | [ShipmentRefundDetail](#ShipmentRefundDetail) | no | Selected Shipment refund option details. | - | message | string | no | message | - | success | boolean | no | Successful or not. | + | message | string | no | Message | + | success | boolean | no | Response is successful or not | --- @@ -10070,53 +9026,10 @@ Bank details on correct Ifsc Code | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | | is_active | boolean | no | Enable or DIsable Flag Payout | - | is_default | boolean? | yes | Enable or Disable Default Payout | + | is_default | boolean | no | Enable or Disable Default Payout | | success | boolean | no | Response is successful or not | ---- - -#### [UpdatePennyDropValidationRequest](#UpdatePennyDropValidationRequest) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | allow_pennydrop_validation | boolean | no | Allow Penny Drop Validation flag | - - ---- - -#### [UpiBeneficiaryDetails](#UpiBeneficiaryDetails) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | address | string | no | Address of User | - | beneficiary_id | string | no | Benenficiary Id | - | comment | string? | yes | Remarks | - | created_on | string | no | Creation Date of Beneficiary | - | delights_user_name | string? | yes | User Id Who filled the Beneficiary | - | display_name | string | no | Display Name Of Account | - | email | string | no | EMail of User | - | id | number | no | | - | is_active | boolean | no | Boolean Flag whether Beneficiary set or not | - | mobile | string? | yes | Mobile no of User | - | modified_on | string | no | MOdification Date of Beneficiary | - | subtitle | string | no | SHort Title Of Account | - | title | string | no | Title Of Account | - | transfer_mode | string | no | Transfer Mode Of Account | - | vpa | string? | yes | Branch Name Of Account | - | vpa_address | string | no | Bank Name Of Account | - - ---- - -#### [UserPaymentLimitConfig](#UserPaymentLimitConfig) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | advance | [AdvancePaymentLimitConfig](#AdvancePaymentLimitConfig)? | yes | | - | cod | [CODPaymentLimitConfig](#CODPaymentLimitConfig)? | yes | | - - --- #### [ValidateCustomerRequest](#ValidateCustomerRequest) @@ -10146,64 +9059,6 @@ Bank details on correct Ifsc Code --- -#### [ValidateValidateAddressRequest](#ValidateValidateAddressRequest) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | aggregator | string? | yes | Aggregator Name | - | ifsc_code | string? | yes | IFSC Code | - | upi_vpa | string? | yes | VPA Address | - - ---- - -#### [ValidateValidateAddressResponse](#ValidateValidateAddressResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | ifsc | string? | yes | IFSC details response data | - | success | boolean | no | Successful or not. | - | upi | [VPADetails](#VPADetails)? | yes | UPI validation details. | - - ---- - -#### [VPADetails](#VPADetails) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | customer_name | string | no | VPA Customer Name | - | is_valid | boolean | no | Is VPA valid or not | - | status | string | no | VPA validation message | - | upi_vpa | string | no | VPA address | - - ---- - -#### [WalletBeneficiaryDetails](#WalletBeneficiaryDetails) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | address | string | no | Address of User | - | beneficiary_id | string | no | Benenficiary Id | - | comment | string? | yes | Remarks | - | created_on | string | no | Creation Date of Beneficiary | - | delights_user_name | string? | yes | User Id Who filled the Beneficiary | - | display_name | string | no | Display Name Of Account | - | email | string | no | EMail of User | - | id | number | no | | - | is_active | boolean | no | Boolean Flag whether Beneficiary set or not | - | mobile | string? | yes | MObile no of User | - | modified_on | string | no | MOdification Date of Beneficiary | - | subtitle | string | no | SHort Title Of Account | - | title | string | no | Title Of Account | - | transfer_mode | string | no | Transfer Mode Of Account | - | wallet | string? | yes | Branch Name Of Account | - | wallet_address | string | no | Bank Name Of Account | - - ---- - diff --git a/documentation/platform/SERVICEABILITY.md b/documentation/platform/SERVICEABILITY.md index 7289d49a8..b30816e2a 100644 --- a/documentation/platform/SERVICEABILITY.md +++ b/documentation/platform/SERVICEABILITY.md @@ -40,7 +40,6 @@ Default * [getZoneById](#getzonebyid) * [getZones](#getzones) * [insertApplicationConfig](#insertapplicationconfig) -* [patchApplicationConfiguration](#patchapplicationconfiguration) * [patchApplicationServiceabilitySelfShipment](#patchapplicationserviceabilityselfshipment) * [updateApplicationConfiguration](#updateapplicationconfiguration) * [updateCompanyConfiguration](#updatecompanyconfiguration) @@ -707,7 +706,7 @@ Successful Response ### getApplicationConfiguration -Get All application configs +Get All Courier Rules applied to application @@ -724,7 +723,7 @@ const data = await platformClient.application("").serviceability -This API returns all config applied to an application +This API returns all the Courier Rules applied to an application *Returned Response:* @@ -739,91 +738,11 @@ Response status_code
-  Examples: - - -
-  ApplicationConfig +  Example: ```json -{ - "value": { - "application_id": "test_app", - "company_id": 1, - "rule_ids": [ - "64b4337a0c607fbfbcd0156b", - "64b4337a0c607fbfbcd01564" - ], - "sort": [ - "fastest" - ], - "zones": { - "serviceability_type": "zone-based", - "active_count": 0, - "total_count": 0 - }, - "buybox_config": { - "show_seller": true, - "enable_selection": true, - "is_seller_buybox_enabled": true - }, - "buybox_rule_config": { - "store_type_priority": [ - "FC", - "STORE" - ], - "store_tag_proiority": [ - "store_tag_1", - "store_tag_2" - ], - "sort": [ - "price", - "store_type", - "promise", - "store_creation_date", - "distance", - "store_tag" - ] - }, - "promise_types": [ - { - "display_name": "Standard Delivery", - "slug": "standard_delivery", - "description": "A standard promise type for general use", - "is_active": true, - "is_default": true - }, - { - "display_name": "Express Delivery", - "slug": "express_delivery", - "description": "A express promise type for general use", - "is_active": true, - "is_default": false - } - ], - "promise_config": { - "store_attributes": { - "is_operational_timing_enabled": true, - "is_order_acceptance_timing_enabled": true, - "is_average_processing_time": true, - "is_holiday_enabled": true - }, - "delivery_service_attributes": { - "is_pickup_cutoff_time_enabled": "true,", - "is_service_tat_enabled": true, - "is_holiday_enabled": true - }, - "buffer_field": { - "unit": "hours", - "value": 10, - "enabled": true - } - } - } -} -``` -
+```
@@ -1189,16 +1108,14 @@ const promise = platformClient.serviceability.getCourierPartnerAccounts({ pageN pageSize : value, stage : value, paymentMode : value, - transportType : value, - accountIds : value }); + transportType : value }); // Async/Await const data = await platformClient.serviceability.getCourierPartnerAccounts({ pageNo : value, pageSize : value, stage : value, paymentMode : value, - transportType : value, - accountIds : value }); + transportType : value }); ``` @@ -1211,8 +1128,7 @@ const data = await platformClient.serviceability.getCourierPartnerAccounts({ pa | pageSize | number | no | determines the items to be displayed in a page | | stage | string | no | stage of the account. enabled/disabled | | paymentMode | string | no | Filters dp accounts based on payment mode | -| transportType | string | no | Filters dp accounts based on transport_type | -| accountIds | Array | no | Filters dp accounts based on their ids | +| transportType | string | no | Filters dp accounts based on transport_type | @@ -1368,7 +1284,7 @@ Response status_code ### getOptimalLocations -Get serviceable store of the item +Retrieve optimal locations @@ -1386,19 +1302,19 @@ const data = await platformClient.serviceability.getOptimalLocations({ body : v | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| body | [ReAssignStoreRequest](#ReAssignStoreRequest) | yes | Request body | +| body | [OptimlLocationsRequestSchema](#OptimlLocationsRequestSchema) | yes | Request body | -This API returns serviceable store of the item. +Retrieve optimal locations based on the specific criteria *Returned Response:* -[ReAssignStoreResponse](#ReAssignStoreResponse) +[OptimalLocationsResponse](#OptimalLocationsResponse) -Response status_code +Optimal Locations Success @@ -2102,7 +2018,7 @@ const promise = platformClient.serviceability.getZones({ pageNo : value, isActive : value, channelId : value, q : value, - country : value, + countryIsoCode : value, state : value, city : value, pincode : value, @@ -2114,7 +2030,7 @@ const data = await platformClient.serviceability.getZones({ pageNo : value, isActive : value, channelId : value, q : value, - country : value, + countryIsoCode : value, state : value, city : value, pincode : value, @@ -2132,7 +2048,7 @@ const data = await platformClient.serviceability.getZones({ pageNo : value, | isActive | boolean | no | Status of Zone (either active or inactive) | | channelId | string | no | Zones filtered by an application | | q | string | no | search with name as a free text | -| country | string | no | ISO2 code of the country | +| countryIsoCode | string | no | ISO2 code of the country | | state | string | no | State name | | city | string | no | City name | | pincode | string | no | Pincode value to search zones | @@ -2258,71 +2174,6 @@ Response status_code ---- - - -### patchApplicationConfiguration -To patch any config which can be applied to application. - - - -```javascript -// Promise -const promise = platformClient.application("").serviceability.patchApplicationConfiguration({ body : value }); - -// Async/Await -const data = await platformClient.application("").serviceability.patchApplicationConfiguration({ body : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| body | [ApplicationConfigPatchRequest](#ApplicationConfigPatchRequest) | yes | Request body | - - -Apply configs to application and for reference, refer to examples - -*Returned Response:* - - - - -[ApplicationConfigPatchResponse](#ApplicationConfigPatchResponse) - -Response status_code - - - - -
-  Examples: - - -
-  ApplicationConfigPatchResponse - -```json -{ - "value": { - "success": true - } -} -``` -
- -
- - - - - - - - - --- @@ -3354,39 +3205,11 @@ Response status_code | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | application_id | string? | yes | | - | buybox_config | [BuyboxConfig](#BuyboxConfig)? | yes | | - | buybox_rule_config | [BuyboxRuleConfig](#BuyboxRuleConfig)? | yes | | - | company_id | number? | yes | | - | manual_priority | [string]? | yes | | - | promise_config | [PromiseConfig](#PromiseConfig)? | yes | | - | promise_types | [[PromiseType](#PromiseType)]? | yes | | | rule_ids | [string]? | yes | | | sort | [string]? | yes | | | zones | [ZoneConfig](#ZoneConfig)? | yes | | ---- - -#### [ApplicationConfigPatchRequest](#ApplicationConfigPatchRequest) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | buybox_config | [BuyboxConfig](#BuyboxConfig)? | yes | | - | buybox_rule_config | [BuyboxRuleConfig](#BuyboxRuleConfig)? | yes | | - | promise_config | [PromiseConfig](#PromiseConfig)? | yes | | - | promise_types | [[PromiseType](#PromiseType)]? | yes | | - - ---- - -#### [ApplicationConfigPatchResponse](#ApplicationConfigPatchResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | success | boolean? | yes | | - - --- #### [ApplicationSelfShipConfig](#ApplicationSelfShipConfig) @@ -3443,13 +3266,12 @@ Response status_code --- -#### [BufferField](#BufferField) +#### [ArticleAssignment](#ArticleAssignment) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | enabled | boolean? | yes | | - | unit | string? | yes | | - | value | number? | yes | | + | level | string? | yes | | + | strategy | string? | yes | The strategy parameter allows users to specify the desired approach or criteria for selecting optimal locations. | --- @@ -3493,28 +3315,6 @@ Response status_code | total | number? | yes | | ---- - -#### [BuyboxConfig](#BuyboxConfig) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | enable_selection | boolean | no | | - | is_seller_buybox_enabled | boolean | no | | - | show_seller | boolean | no | | - - ---- - -#### [BuyboxRuleConfig](#BuyboxRuleConfig) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | sort | [string]? | yes | | - | store_tag_priority | [string]? | yes | | - | store_type_priority | [string]? | yes | | - - --- #### [Channel](#Channel) @@ -3649,7 +3449,6 @@ Response status_code | conditions | [CourierPartnerRuleConditions](#CourierPartnerRuleConditions) | no | | | cp_list | [[CourierPartnerList](#CourierPartnerList)]? | yes | | | is_active | boolean | no | | - | manual_priority | [string]? | yes | | | name | string | no | | | sort | [string] | no | | @@ -3749,7 +3548,6 @@ Response status_code | ---------- | ---- | -------- | ----------- | | conditions | [StoreRuleConditionSchema](#StoreRuleConditionSchema)? | yes | | | is_active | boolean? | yes | | - | manual_priority | [string]? | yes | | | name | string? | yes | | | sort | [string]? | yes | | | store_priority | [[StorePrioritySchema](#StorePrioritySchema)]? | yes | | @@ -3787,17 +3585,6 @@ Response status_code | unit | string | no | | ---- - -#### [DeliveryServiceAttributeConfig](#DeliveryServiceAttributeConfig) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | is_holiday_enabled | boolean? | yes | | - | is_pickup_cutoff_time_enabled | boolean? | yes | | - | is_service_tat_enabled | boolean? | yes | | - - --- #### [DocumentsResponse](#DocumentsResponse) @@ -4176,6 +3963,21 @@ Response status_code | total_zones | number | no | | +--- + +#### [LocationDetailsServiceability](#LocationDetailsServiceability) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | city | string? | yes | The city of the serviceability location. | + | country | string | no | The country of the serviceability location. | + | country_iso_code | string | no | The ISO code of the country. | + | location | [ServiceabilityLocation](#ServiceabilityLocation)? | yes | | + | pincode | string? | yes | The pincode of the serviceability location. | + | sector | string? | yes | The sector of the serviceability location. | + | state | string? | yes | The state of the serviceability location. | + + --- #### [LocationRule](#LocationRule) @@ -4251,6 +4053,77 @@ Response status_code | minute | number? | yes | | +--- + +#### [OptimalLocationArticlesResponse](#OptimalLocationArticlesResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | _id | string | no | | + | article_assignment | [ArticleAssignment](#ArticleAssignment) | no | | + | assign_locations | [number] | no | | + | group_id | string? | yes | | + | ignore_locations | [number] | no | | + | is_primary_item | boolean? | yes | | + | item_id | number | no | | + | meta | string? | yes | | + | mto_quantity | number | no | | + | price_effective | number | no | | + | quantity | number | no | | + | seller_id | number? | yes | | + | size | string | no | | + | uid | string | no | | + + +--- + +#### [OptimalLocationAssignedStoresResponse](#OptimalLocationAssignedStoresResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | articles | [[OptimalLocationArticlesResponse](#OptimalLocationArticlesResponse)] | no | | + | store_id | number | no | | + + +--- + +#### [OptimalLocationsArticles](#OptimalLocationsArticles) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | article_assignment | [ArticleAssignment](#ArticleAssignment) | no | | + | assign_locations | [number] | no | | + | group_id | string? | yes | | + | ignore_locations | [number] | no | | + | is_primary_item | boolean? | yes | | + | item_id | number | no | | + | meta | string? | yes | | + | quantity | string | no | | + | seller_id | number? | yes | | + | size | string | no | | + + +--- + +#### [OptimalLocationsResponse](#OptimalLocationsResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | assigned_stores | [[OptimalLocationAssignedStoresResponse](#OptimalLocationAssignedStoresResponse)] | no | | + + +--- + +#### [OptimlLocationsRequestSchema](#OptimlLocationsRequestSchema) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | article | [OptimalLocationsArticles](#OptimalLocationsArticles)? | yes | | + | channel_id | string | no | | + | channel_type | string | no | | + | to_serviceability | [LocationDetailsServiceability](#LocationDetailsServiceability) | no | | + + --- #### [PackageMaterial](#PackageMaterial) @@ -4596,55 +4469,6 @@ Response status_code | on_same_store | boolean? | yes | | ---- - -#### [PromiseConfig](#PromiseConfig) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | buffer_field | [BufferField](#BufferField)? | yes | | - | delivery_service_attributes | [DeliveryServiceAttributeConfig](#DeliveryServiceAttributeConfig)? | yes | | - | store_attributes | [StorePromiseAttributeConfig](#StorePromiseAttributeConfig)? | yes | | - - ---- - -#### [PromiseType](#PromiseType) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | description | string | no | | - | display_name | string | no | | - | is_active | boolean | no | | - | is_default | boolean | no | | - | slug | string | no | | - - ---- - -#### [ReAssignStoreRequest](#ReAssignStoreRequest) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | articles | [string] | no | | - | configuration | string | no | | - | identifier | string | no | | - | ignored_locations | [string] | no | | - | to_pincode | string | no | | - - ---- - -#### [ReAssignStoreResponse](#ReAssignStoreResponse) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | articles | [string]? | yes | | - | error | string | no | | - | success | boolean | no | | - | to_pincode | string | no | | - - --- #### [RulePriorityRequest](#RulePriorityRequest) @@ -4713,6 +4537,16 @@ Response status_code | value | string | no | | +--- + +#### [ServiceabilityLocation](#ServiceabilityLocation) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | latitude | string | no | The latitude of the serviceability location. | + | longitude | string | no | The longitude of the serviceability location. | + + --- #### [ServiceabilityModel](#ServiceabilityModel) @@ -4752,18 +4586,6 @@ Response status_code | name | string? | yes | | ---- - -#### [StorePromiseAttributeConfig](#StorePromiseAttributeConfig) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | is_average_processing_time | boolean? | yes | | - | is_holiday_enabled | boolean? | yes | | - | is_operational_timing_enabled | boolean? | yes | | - | is_order_acceptance_timing_enabled | boolean? | yes | | - - --- #### [StoreRuleConditionSchema](#StoreRuleConditionSchema) @@ -4789,7 +4611,6 @@ Response status_code | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | manual_priority | [string]? | yes | | | rule_ids | [string]? | yes | | | sort | [string]? | yes | | | store_priority | [[StorePrioritySchema](#StorePrioritySchema)]? | yes | | @@ -4808,7 +4629,6 @@ Response status_code | conditions | [StoreRuleConditionSchema](#StoreRuleConditionSchema)? | yes | | | id | string? | yes | | | is_active | boolean? | yes | | - | manual_priority | [string]? | yes | | | name | string? | yes | | | sort | [string]? | yes | | | store_priority | [[StorePrioritySchema](#StorePrioritySchema)]? | yes | | @@ -4825,7 +4645,6 @@ Response status_code | conditions | [StoreRuleConditionSchema](#StoreRuleConditionSchema)? | yes | | | id | string? | yes | | | is_active | boolean? | yes | | - | manual_priority | [string]? | yes | | | name | string? | yes | | | sort | [string]? | yes | | | store_priority | [[StorePrioritySchema](#StorePrioritySchema)]? | yes | | @@ -4845,7 +4664,6 @@ Response status_code | conditions | [StoreRuleConditionSchema](#StoreRuleConditionSchema)? | yes | | | id | string? | yes | | | is_active | boolean? | yes | | - | manual_priority | [string]? | yes | | | name | string? | yes | | | sort | [string]? | yes | | | store_priority | [[StorePrioritySchema](#StorePrioritySchema)]? | yes | | diff --git a/documentation/platform/WEBHOOK.md b/documentation/platform/WEBHOOK.md index 78890b34e..7b38a9184 100644 --- a/documentation/platform/WEBHOOK.md +++ b/documentation/platform/WEBHOOK.md @@ -25,7 +25,6 @@ Default * [manualRetryOfFailedEvent](#manualretryoffailedevent) * [pingWebhook](#pingwebhook) * [registerSubscriberToEvent](#registersubscribertoevent) -* [registerSubscriberToEventV2](#registersubscribertoeventv2) * [updateSubscriberConfig](#updatesubscriberconfig) @@ -684,7 +683,6 @@ Success "value": { "id": 1, "name": "praveen's webhook", - "provider": "kafka", "webhook_url": "https://webhook.site/67493d35-6468-4c0a-8226-9a50954eb4c3", "association": { "company_id": 1, @@ -1267,91 +1265,6 @@ Success ---- - - -### registerSubscriberToEventV2 -Register Subscriber. - - - -```javascript -// Promise -const promise = platformClient.webhook.registerSubscriberToEventV2({ body : value }); - -// Async/Await -const data = await platformClient.webhook.registerSubscriberToEventV2({ body : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| body | [SubscriberConfigRequestV2](#SubscriberConfigRequestV2) | yes | Request body | - - -Register Subscriber. - - -*Returned Response:* - - - - -[SubscriberConfigResponse](#SubscriberConfigResponse) - -Success - - - - -
-  Examples: - - -
-  success - -```json -{ - "value": { - "name": "xyz webhook", - "provider": "kafka", - "webhook_url": "https://xyz.requestcatcher.com/test", - "association": { - "company_id": 1, - "extension_id": "64affd97cbddb85348ca8f93", - "application_id": [ - "63a0490757475baff6154585", - "63a42b512df5d4731c5eb601" - ] - }, - "custom_headers": {}, - "status": "active", - "email_id": "axyz@gofynd.com", - "auth_meta": {}, - "event_id": [ - 10, - 11, - 17 - ] - } -} -``` -
- -
- - - - - - - - - --- @@ -1593,16 +1506,6 @@ Success | subscriber_ids | [number]? | yes | | ---- - -#### [Events](#Events) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | slug | string? | yes | | - | topic | string? | yes | | - - --- #### [HistoryAssociation](#HistoryAssociation) @@ -1812,24 +1715,6 @@ Success | page | [Page](#Page)? | yes | | ---- - -#### [SubscriberConfigRequestV2](#SubscriberConfigRequestV2) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | association | [Association](#Association)? | yes | | - | auth_meta | [AuthMeta](#AuthMeta)? | yes | | - | custom_headers | string? | yes | | - | email_id | string? | yes | | - | events | [[Events](#Events)]? | yes | | - | id | number? | yes | | - | name | string? | yes | | - | provider | string? | yes | | - | status | string? | yes | | - | webhook_url | string? | yes | | - - --- #### [SubscriberConfigResponse](#SubscriberConfigResponse) @@ -1845,7 +1730,6 @@ Success | id | number? | yes | | | modified_by | string? | yes | | | name | string? | yes | | - | provider | string? | yes | | | status | [SubscriberStatus](#SubscriberStatus)? | yes | | | type | string? | yes | | | updated_on | string? | yes | | @@ -1867,7 +1751,6 @@ Success | id | number? | yes | | | modified_by | string? | yes | | | name | string? | yes | | - | provider | string? | yes | | | status | [SubscriberStatus](#SubscriberStatus)? | yes | | | type | string? | yes | | | updated_on | string? | yes | | diff --git a/documentation/public/BILLING.md b/documentation/public/BILLING.md index eb57a4d8c..3b498d044 100644 --- a/documentation/public/BILLING.md +++ b/documentation/public/BILLING.md @@ -10,7 +10,6 @@ Handle public plans Default -* [getPlanDetails](#getplandetails) * [getStandardPlans](#getstandardplans) @@ -22,63 +21,6 @@ Default -### getPlanDetails -Get plan details - - - -```javascript -// Promise -const promise = publicClient.billing.getPlanDetails({ planId : value }); - -// Async/Await -const data = await publicClient.billing.getPlanDetails({ planId : value }); -``` - - - - - -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| planId | string | yes | Plan unique id. | - - - -Get plan details. - - -*Returned Response:* - - - - -[PlanDetails](#PlanDetails) - -Success - - - - -
-  Example: - -```json - -``` -
- - - - - - - - - ---- - - ### getStandardPlans Get Standard/Public Plans @@ -141,32 +83,6 @@ Success ### Schemas -#### [ComponentsSchema](#ComponentsSchema) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | config | [PlanConfig](#PlanConfig)? | yes | | - | description | string? | yes | | - | display_text | string? | yes | | - | group | string? | yes | | - | icon | string? | yes | | - | is_active | boolean? | yes | | - | links | string? | yes | | - | name | string? | yes | | - | slug | string? | yes | | - - ---- - -#### [CreditLine](#CreditLine) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | is_active | boolean? | yes | | - - ---- - #### [DetailList](#DetailList) | Properties | Type | Nullable | Description | @@ -176,15 +92,6 @@ Success | trial_plan | [Plan](#Plan)? | yes | | ---- - -#### [FeatureConfig](#FeatureConfig) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | enabled | boolean? | yes | | - - --- #### [InternalServerError](#InternalServerError) @@ -195,16 +102,6 @@ Success | message | string? | yes | Internal server Server error | ---- - -#### [OneTimeFees](#OneTimeFees) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | developement | number? | yes | | - | marketing | number? | yes | | - - --- #### [Plan](#Plan) @@ -232,66 +129,6 @@ Success | type | string? | yes | | ---- - -#### [PlanConfig](#PlanConfig) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | _id | string? | yes | | - | component_id | string? | yes | | - | created_at | string? | yes | | - | display_text | string? | yes | | - | feature_config | [FeatureConfig](#FeatureConfig)? | yes | | - | is_active | boolean? | yes | | - | is_default | boolean? | yes | | - | modified_at | string? | yes | | - | processing_type | string? | yes | | - | tags | [string]? | yes | | - - ---- - -#### [PlanDetails](#PlanDetails) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | _id | string? | yes | | - | addons | [string]? | yes | | - | amount | number? | yes | | - | components | [[ComponentsSchema](#ComponentsSchema)]? | yes | | - | country | string? | yes | | - | created_at | string? | yes | | - | credit_line | [CreditLine](#CreditLine)? | yes | | - | currency | string? | yes | | - | current_status | string? | yes | | - | description | string? | yes | | - | is_active | boolean? | yes | | - | is_trial_plan | boolean? | yes | | - | is_visible | boolean? | yes | | - | meta | [PlanMeta](#PlanMeta)? | yes | | - | modified_at | string? | yes | | - | name | string? | yes | | - | one_time_fees | [OneTimeFees](#OneTimeFees)? | yes | | - | plan_group | string? | yes | | - | product_suite_id | string? | yes | | - | recurring | [PlanRecurring](#PlanRecurring)? | yes | | - | tag_lines | [string]? | yes | | - | tags | [string]? | yes | | - | taxation | [PlanTaxation](#PlanTaxation)? | yes | | - | trial_period | number? | yes | | - | type | string? | yes | | - - ---- - -#### [PlanMeta](#PlanMeta) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | plan_platform_display_name | string? | yes | | - - --- #### [PlanRecurring](#PlanRecurring) @@ -304,15 +141,6 @@ Success --- -#### [PlanTaxation](#PlanTaxation) - - | Properties | Type | Nullable | Description | - | ---------- | ---- | -------- | ----------- | - | gst | number? | yes | | - - ---- - diff --git a/index.d.ts b/index.d.ts index 019ee17e2..84ced5626 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,16 +1,16 @@ -import { ApplicationConfig } from "sdk/output/javascript/code/sdk/application"; -import { ApplicationClient } from "sdk/output/javascript/code/sdk/application"; -import { ApplicationModel } from "sdk/output/javascript/code/sdk/application"; -import { PartnerConfig } from "sdk/output/javascript/code/sdk/partner"; -import { PartnerClient } from "sdk/output/javascript/code/sdk/partner"; -import { PartnerModel } from "sdk/output/javascript/code/sdk/partner"; -import { PlatformConfig } from "sdk/output/javascript/code/sdk/platform"; -import { PlatformClient } from "sdk/output/javascript/code/sdk/platform"; -import { PlatformModel } from "sdk/output/javascript/code/sdk/platform"; -import { PublicConfig } from "sdk/output/javascript/code/sdk/public"; -import { PublicClient } from "sdk/output/javascript/code/sdk/public"; -import { PublicModel } from "sdk/output/javascript/code/sdk/public"; -import { fdkAxios } from "sdk/output/javascript/code/sdk/common/AxiosHelper"; -import Utility = require("sdk/output/javascript/code/sdk/common/Utility"); -import Constant = require("sdk/output/javascript/code/sdk/common/Constant"); +import { ApplicationConfig } from "./sdk/application"; +import { ApplicationClient } from "./sdk/application"; +import { ApplicationModel } from "./sdk/application"; +import { PartnerConfig } from "./sdk/partner"; +import { PartnerClient } from "./sdk/partner"; +import { PartnerModel } from "./sdk/partner"; +import { PlatformConfig } from "./sdk/platform"; +import { PlatformClient } from "./sdk/platform"; +import { PlatformModel } from "./sdk/platform"; +import { PublicConfig } from "./sdk/public"; +import { PublicClient } from "./sdk/public"; +import { PublicModel } from "./sdk/public"; +import { fdkAxios } from "./sdk/common/AxiosHelper"; +import Utility = require("./sdk/common/Utility"); +import Constant = require("./sdk/common/Constant"); export { ApplicationConfig, ApplicationClient, ApplicationModel, PartnerConfig, PartnerClient, PartnerModel, PlatformConfig, PlatformClient, PlatformModel, PublicConfig, PublicClient, PublicModel, fdkAxios as FdkAxios, Utility, Constant }; diff --git a/package-lock.json b/package-lock.json index 0ecd0824c..a4cdf4ecf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@gofynd/fdk-client-javascript", - "version": "1.4.2-beta.1", + "version": "1.4.2-beta.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@gofynd/fdk-client-javascript", - "version": "1.4.2-beta.1", + "version": "1.4.2-beta.4", "license": "ISC", "dependencies": { "@gofynd/fp-signature": "^1.0.1", @@ -2111,14 +2111,18 @@ } }, "node_modules/call-bind": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.5.tgz", - "integrity": "sha512-C3nQxfFZxFRVoJoGKKI8y3MOEo129NQ+FgQ08iye+Mk4zNZZGdjfs06bVTr+DBSlA66Q2VEcMki/cUCP4SercQ==", + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.6.tgz", + "integrity": "sha512-Mj50FLHtlsoVfRfnHaZvyrooHcrlceNZdL/QBvJJVd9Ta55qCQK0gs4ss2oZDeV9zFCs6ewzYgVE5yfVmfFpVg==", "dev": true, "dependencies": { + "es-errors": "^1.3.0", "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.1", - "set-function-length": "^1.1.1" + "get-intrinsic": "^1.2.3", + "set-function-length": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -2145,9 +2149,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001584", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001584.tgz", - "integrity": "sha512-LOz7CCQ9M1G7OjJOF9/mzmqmj3jE/7VOmrfw6Mgs0E8cjOsbRXQJHsPBfmBOXDskXKrHLyyW3n7kpDW/4BsfpQ==", + "version": "1.0.30001585", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001585.tgz", + "integrity": "sha512-yr2BWR1yLXQ8fMpdS/4ZZXpseBgE7o4g41x3a6AJOqZuOi+iE/WdJYAuZ6Y95i4Ohd2Y+9MzIWRR+uGABH4s3Q==", "dev": true, "funding": [ { @@ -2611,14 +2615,15 @@ } }, "node_modules/define-data-property": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.1.tgz", - "integrity": "sha512-E7uGkTzkk1d0ByLeSc6ZsFS79Axg+m1P/VsgYsxHgiuc3tFSj+MjMIwe90FC4lOAZzNBdY7kkO2P2wKdsQ1vgQ==", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.2.tgz", + "integrity": "sha512-SRtsSqsDbgpJBbW3pABMCOt6rQyeM8s8RiyeSN8jYG8sYmt/kGJejbydttUsnDs1tadr19tvhT4ShwMyoqAm4g==", "dev": true, "dependencies": { - "get-intrinsic": "^1.2.1", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.2", "gopd": "^1.0.1", - "has-property-descriptors": "^1.0.0" + "has-property-descriptors": "^1.0.1" }, "engines": { "node": ">= 0.4" @@ -2669,15 +2674,15 @@ } }, "node_modules/dotenv": { - "version": "16.4.1", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.1.tgz", - "integrity": "sha512-CjA3y+Dr3FyFDOAMnxZEGtnW9KBR2M0JvvUtXNW+dYJL5ROWxP9DUHCwgFqpMk0OXCc0ljhaNTr2w/kutYIcHQ==", + "version": "16.4.2", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.2.tgz", + "integrity": "sha512-rZSSFxke7d9nYQ5NeMIwp5PP+f8wXgKNljpOb7KtH6SKW1cEqcXAz9VSJYVLKe7Jhup/gUYOkaeSVyK8GJ+nBg==", "dev": true, "engines": { "node": ">=12" }, "funding": { - "url": "https://github.com/motdotla/dotenv?sponsor=1" + "url": "https://dotenvx.com" } }, "node_modules/ecc-jsbn": { @@ -2691,9 +2696,9 @@ } }, "node_modules/electron-to-chromium": { - "version": "1.4.656", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.656.tgz", - "integrity": "sha512-9AQB5eFTHyR3Gvt2t/NwR0le2jBSUNwCnMbUCejFWHD+so4tH40/dRLgoE+jxlPeWS43XJewyvCv+I8LPMl49Q==", + "version": "1.4.665", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.665.tgz", + "integrity": "sha512-UpyCWObBoD+nSZgOC2ToaIdZB0r9GhqT2WahPKiSki6ckkSuKhQNso8V2PrFcHBMleI/eqbKgVQgVC4Wni4ilw==", "dev": true }, "node_modules/emittery": { @@ -2786,9 +2791,9 @@ "dev": true }, "node_modules/escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz", + "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==", "dev": true, "engines": { "node": ">=6" @@ -3178,12 +3183,12 @@ } }, "node_modules/get-intrinsic": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.3.tgz", - "integrity": "sha512-JIcZczvcMVE7AUOP+X72bh8HqHBRxFdz5PDHYtNG/lE3yk9b3KZBJlwFcTyPYjg3L4RLLmZJzvjxhaZVapxFrQ==", + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz", + "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==", "dev": true, "dependencies": { - "es-errors": "^1.0.0", + "es-errors": "^1.3.0", "function-bind": "^1.1.2", "has-proto": "^1.0.1", "has-symbols": "^1.0.3", @@ -3400,9 +3405,9 @@ } }, "node_modules/hasown": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.0.tgz", - "integrity": "sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.1.tgz", + "integrity": "sha512-1/th4MHjnwncwXsIW6QMzlvYL9kG5e/CpVvLRZe4XPa8TOUNbCELqmvhDmnkNsAjwaG4+I8gJJL0JBvTTLO9qA==", "dev": true, "dependencies": { "function-bind": "^1.1.2" @@ -5568,9 +5573,9 @@ } }, "node_modules/semver": { - "version": "7.5.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", - "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", "dev": true, "dependencies": { "lru-cache": "^6.0.0" @@ -5610,14 +5615,15 @@ } }, "node_modules/set-function-length": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.0.tgz", - "integrity": "sha512-4DBHDoyHlM1IRPGYcoxexgh67y4ueR53FKV1yyxwFMY7aCqcN/38M1+SwZ/qJQ8iLv7+ck385ot4CcisOAPT9w==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.1.tgz", + "integrity": "sha512-j4t6ccc+VsKwYHso+kElc5neZpjtq9EnRICFZtWyBsLojhmeF/ZBd/elqm22WJh/BziDe/SBiOeAt0m2mfLD0g==", "dev": true, "dependencies": { - "define-data-property": "^1.1.1", + "define-data-property": "^1.1.2", + "es-errors": "^1.3.0", "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.2", + "get-intrinsic": "^1.2.3", "gopd": "^1.0.1", "has-property-descriptors": "^1.0.1" }, @@ -5659,14 +5665,18 @@ } }, "node_modules/side-channel": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", - "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.5.tgz", + "integrity": "sha512-QcgiIWV4WV7qWExbN5llt6frQB/lBven9pqliLXfGPB+K9ZYXxDozp0wLkHS24kWCm+6YXH/f0HhnObZnZOBnQ==", "dev": true, "dependencies": { - "call-bind": "^1.0.0", - "get-intrinsic": "^1.0.2", - "object-inspect": "^1.9.0" + "call-bind": "^1.0.6", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.4", + "object-inspect": "^1.13.1" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" diff --git a/package.json b/package.json index dce90f65d..0b77d134b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@gofynd/fdk-client-javascript", - "version": "1.4.2-beta.1", + "version": "1.4.2-beta.4", "description": "", "main": "index.js", "scripts": { diff --git a/partner.d.ts b/partner.d.ts index efb4db13b..bf6cf5625 100644 --- a/partner.d.ts +++ b/partner.d.ts @@ -1,4 +1,4 @@ -import { PartnerConfig } from "sdk/output/javascript/code/sdk/partner"; -import { PartnerClient } from "sdk/output/javascript/code/sdk/partner"; -import { PartnerModel } from "sdk/output/javascript/code/sdk/partner"; +import { PartnerConfig } from "./sdk/partner"; +import { PartnerClient } from "./sdk/partner"; +import { PartnerModel } from "./sdk/partner"; export { PartnerConfig, PartnerClient, PartnerModel }; diff --git a/platform.d.ts b/platform.d.ts index bcf7d695e..963b2ea52 100644 --- a/platform.d.ts +++ b/platform.d.ts @@ -1,4 +1,4 @@ -import { PlatformConfig } from "sdk/output/javascript/code/sdk/platform"; -import { PlatformClient } from "sdk/output/javascript/code/sdk/platform"; -import { PlatformModel } from "sdk/output/javascript/code/sdk/platform"; +import { PlatformConfig } from "./sdk/platform"; +import { PlatformClient } from "./sdk/platform"; +import { PlatformModel } from "./sdk/platform"; export { PlatformConfig, PlatformClient, PlatformModel }; diff --git a/public.d.ts b/public.d.ts index 5e5e85907..4da405995 100644 --- a/public.d.ts +++ b/public.d.ts @@ -1,4 +1,4 @@ -import { PublicConfig } from "sdk/output/javascript/code/sdk/public"; -import { PublicClient } from "sdk/output/javascript/code/sdk/public"; +import { PublicConfig } from "./sdk/public"; +import { PublicClient } from "./sdk/public"; export declare const PublicModel: any; export { PublicConfig, PublicClient }; diff --git a/sdk/application/ApplicationClient.d.ts b/sdk/application/ApplicationClient.d.ts index 5045e5a57..f0371e9ef 100644 --- a/sdk/application/ApplicationClient.d.ts +++ b/sdk/application/ApplicationClient.d.ts @@ -7,7 +7,7 @@ export = ApplicationClient; declare class ApplicationClient { /** @param {import("./ApplicationConfig")} config - The application configuration. */ constructor(config: import("./ApplicationConfig")); - config: import("sdk/output/javascript/code/sdk/application/ApplicationConfig"); + config: import("./ApplicationConfig"); cart: Cart; catalog: Catalog; common: Common; @@ -56,19 +56,19 @@ declare class ApplicationClient { */ setExtraHeaders(header: object): void; } -import Cart = require("sdk/output/javascript/code/sdk/application/Cart/CartApplicationClient"); -import Catalog = require("sdk/output/javascript/code/sdk/application/Catalog/CatalogApplicationClient"); -import Common = require("sdk/output/javascript/code/sdk/application/Common/CommonApplicationClient"); -import Communication = require("sdk/output/javascript/code/sdk/application/Communication/CommunicationApplicationClient"); -import Configuration = require("sdk/output/javascript/code/sdk/application/Configuration/ConfigurationApplicationClient"); -import Content = require("sdk/output/javascript/code/sdk/application/Content/ContentApplicationClient"); -import FileStorage = require("sdk/output/javascript/code/sdk/application/FileStorage/FileStorageApplicationClient"); -import Lead = require("sdk/output/javascript/code/sdk/application/Lead/LeadApplicationClient"); -import Logistic = require("sdk/output/javascript/code/sdk/application/Logistic/LogisticApplicationClient"); -import Order = require("sdk/output/javascript/code/sdk/application/Order/OrderApplicationClient"); -import Payment = require("sdk/output/javascript/code/sdk/application/Payment/PaymentApplicationClient"); -import PosCart = require("sdk/output/javascript/code/sdk/application/PosCart/PosCartApplicationClient"); -import Rewards = require("sdk/output/javascript/code/sdk/application/Rewards/RewardsApplicationClient"); -import Share = require("sdk/output/javascript/code/sdk/application/Share/ShareApplicationClient"); -import Theme = require("sdk/output/javascript/code/sdk/application/Theme/ThemeApplicationClient"); -import User = require("sdk/output/javascript/code/sdk/application/User/UserApplicationClient"); +import Cart = require("./Cart/CartApplicationClient"); +import Catalog = require("./Catalog/CatalogApplicationClient"); +import Common = require("./Common/CommonApplicationClient"); +import Communication = require("./Communication/CommunicationApplicationClient"); +import Configuration = require("./Configuration/ConfigurationApplicationClient"); +import Content = require("./Content/ContentApplicationClient"); +import FileStorage = require("./FileStorage/FileStorageApplicationClient"); +import Lead = require("./Lead/LeadApplicationClient"); +import Logistic = require("./Logistic/LogisticApplicationClient"); +import Order = require("./Order/OrderApplicationClient"); +import Payment = require("./Payment/PaymentApplicationClient"); +import PosCart = require("./PosCart/PosCartApplicationClient"); +import Rewards = require("./Rewards/RewardsApplicationClient"); +import Share = require("./Share/ShareApplicationClient"); +import Theme = require("./Theme/ThemeApplicationClient"); +import User = require("./User/UserApplicationClient"); diff --git a/sdk/application/Cart/CartApplicationClient.d.ts b/sdk/application/Cart/CartApplicationClient.d.ts index 79493cba5..0e430d7ca 100644 --- a/sdk/application/Cart/CartApplicationClient.d.ts +++ b/sdk/application/Cart/CartApplicationClient.d.ts @@ -15,13 +15,10 @@ declare class Cart { getBulkDiscountOffers: string; getCart: string; getCartLastModified: string; - getCartMetaConfig: string; - getCartMetaConfigs: string; getCartShareLink: string; getCartSharedItems: string; getCoupons: string; getItemCount: string; - getItemCountV2: string; getLadderOffers: string; getPromotionOffers: string; getShipments: string; @@ -56,7 +53,7 @@ declare class Cart { * @summary: Add items to cart * @description: Use this API to add items to the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/addItems/). */ - addItems({ body, i, b, areaCode, buyNow, id, cartType, requestHeaders }?: CartApplicationValidator.AddItemsParam, { responseHeaders }?: object): Promise; + addItems({ body, i, b, areaCode, buyNow, id, requestHeaders }?: CartApplicationValidator.AddItemsParam, { responseHeaders }?: object): Promise; /** * @param {CartApplicationValidator.ApplyCouponParam} arg - Arg object. * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -66,7 +63,7 @@ declare class Cart { * @summary: Apply Coupon * @description: Use this API to apply coupons on items in the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/applyCoupon/). */ - applyCoupon({ body, i, b, p, id, buyNow, cartType, requestHeaders }?: CartApplicationValidator.ApplyCouponParam, { responseHeaders }?: object): Promise; + applyCoupon({ body, i, b, p, id, buyNow, requestHeaders }?: CartApplicationValidator.ApplyCouponParam, { responseHeaders }?: object): Promise; /** * @param {CartApplicationValidator.ApplyRewardPointsParam} arg - Arg object. * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -76,7 +73,7 @@ declare class Cart { * @summary: Apply reward points at cart * @description: Use this API to redeem a fixed no. of reward points by applying it to the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/applyRewardPoints/). */ - applyRewardPoints({ body, id, i, b, buyNow, cartType, requestHeaders }?: CartApplicationValidator.ApplyRewardPointsParam, { responseHeaders }?: object): Promise; + applyRewardPoints({ body, id, i, b, buyNow, requestHeaders }?: CartApplicationValidator.ApplyRewardPointsParam, { responseHeaders }?: object): Promise; /** * @param {CartApplicationValidator.CheckoutCartParam} arg - Arg object. * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -86,7 +83,7 @@ declare class Cart { * @summary: Checkout all items in the cart * @description: Use this API to checkout all items in the cart for payment and order generation. For COD, order will be directly generated, whereas for other checkout modes, user will be redirected to a payment gateway. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/checkoutCart/). */ - checkoutCart({ body, buyNow, cartType, requestHeaders }?: CartApplicationValidator.CheckoutCartParam, { responseHeaders }?: object): Promise; + checkoutCart({ body, buyNow, requestHeaders }?: CartApplicationValidator.CheckoutCartParam, { responseHeaders }?: object): Promise; /** * @param {CartApplicationValidator.CheckoutCartV2Param} arg - Arg object. * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -96,7 +93,7 @@ declare class Cart { * @summary: Checkout all items in the cart * @description: Use this API to checkout all items in the cart for payment and order generation. For COD, order will be directly generated, whereas for other checkout modes, user will be redirected to a payment gateway. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/checkoutCartV2/). */ - checkoutCartV2({ body, buyNow, cartType, requestHeaders }?: CartApplicationValidator.CheckoutCartV2Param, { responseHeaders }?: object): Promise; + checkoutCartV2({ body, buyNow, requestHeaders }?: CartApplicationValidator.CheckoutCartV2Param, { responseHeaders }?: object): Promise; /** * @param {CartApplicationValidator.DeleteCartParam} arg - Arg object. * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -107,7 +104,7 @@ declare class Cart { * @summary: Delete cart once user made successful checkout * @description: Use this API to delete the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/deleteCart/). */ - deleteCart({ id, cartType, requestHeaders }?: CartApplicationValidator.DeleteCartParam, { responseHeaders }?: object): Promise; + deleteCart({ id, requestHeaders }?: CartApplicationValidator.DeleteCartParam, { responseHeaders }?: object): Promise; /** * @param {CartApplicationValidator.GetAddressByIdParam} arg - Arg object. * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -137,7 +134,7 @@ declare class Cart { * @summary: Get discount offers based on quantity * @description: Use this API to get a list of applicable offers along with current, next and best offer for given product. Either one of uid, item_id, slug should be present. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getBulkDiscountOffers/). */ - getBulkDiscountOffers({ itemId, articleId, uid, slug, cartType, requestHeaders }?: CartApplicationValidator.GetBulkDiscountOffersParam, { responseHeaders }?: object): Promise; + getBulkDiscountOffers({ itemId, articleId, uid, slug, requestHeaders }?: CartApplicationValidator.GetBulkDiscountOffersParam, { responseHeaders }?: object): Promise; /** * @param {CartApplicationValidator.GetCartParam} arg - Arg object. * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -147,7 +144,7 @@ declare class Cart { * @summary: Fetch all items added to the cart * @description: Use this API to get details of all the items added to a cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCart/). */ - getCart({ id, i, b, c, assignCardId, areaCode, buyNow, cartType, requestHeaders, }?: CartApplicationValidator.GetCartParam, { responseHeaders }?: object): Promise; + getCart({ id, i, b, c, assignCardId, areaCode, buyNow, requestHeaders }?: CartApplicationValidator.GetCartParam, { responseHeaders }?: object): Promise; /** * @param {CartApplicationValidator.GetCartLastModifiedParam} arg - Arg object. * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -158,27 +155,6 @@ declare class Cart { * @description: Use this API to fetch Last-Modified timestamp in header metadata. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCartLastModified/). */ getCartLastModified({ id, requestHeaders }?: CartApplicationValidator.GetCartLastModifiedParam, { responseHeaders }?: object): Promise; - /** - * @param {CartApplicationValidator.GetCartMetaConfigParam} arg - Arg object. - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../ApplicationAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name getCartMetaConfig - * @summary: Get cart configuration by id - * @description: Get cart configuration by id - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCartMetaConfig/). - */ - getCartMetaConfig({ cartMetaId, requestHeaders }?: CartApplicationValidator.GetCartMetaConfigParam, { responseHeaders }?: object): Promise; - /** - * @param {CartApplicationValidator.GetCartMetaConfigsParam} arg - Arg object. - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../ApplicationAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getCartMetaConfigs - * @summary: Get cart configuration - * @description: Get cart configuration - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCartMetaConfigs/). - */ - getCartMetaConfigs({ requestHeaders }?: any, { responseHeaders }?: object): Promise; /** * @param {CartApplicationValidator.GetCartShareLinkParam} arg - Arg object. * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -220,16 +196,6 @@ declare class Cart { * @description: Use this API to get the total number of items present in cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getItemCount/). */ getItemCount({ id, buyNow, requestHeaders }?: CartApplicationValidator.GetItemCountParam, { responseHeaders }?: object): Promise; - /** - * @param {CartApplicationValidator.GetItemCountV2Param} arg - Arg object. - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../ApplicationAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getItemCountV2 - * @summary: Count items in the cart according to cart_type - * @description: Use this API to get the total number of items present in cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getItemCountV2/). - */ - getItemCountV2({ id, buyNow, requestHeaders }?: CartApplicationValidator.GetItemCountV2Param, { responseHeaders }?: object): Promise; /** * @param {CartApplicationValidator.GetLadderOffersParam} arg - Arg object. * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -249,7 +215,7 @@ declare class Cart { * @summary: Fetch available promotions * @description: Use this API to get top 5 offers available for current product - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getPromotionOffers/). */ - getPromotionOffers({ slug, pageSize, promotionGroup, storeId, cartType, requestHeaders }?: CartApplicationValidator.GetPromotionOffersParam, { responseHeaders }?: object): Promise; + getPromotionOffers({ slug, pageSize, promotionGroup, storeId, requestHeaders }?: CartApplicationValidator.GetPromotionOffersParam, { responseHeaders }?: object): Promise; /** * @param {CartApplicationValidator.GetShipmentsParam} arg - Arg object. * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -279,7 +245,7 @@ declare class Cart { * @summary: Remove Coupon Applied * @description: Remove Coupon applied on the cart by passing uid in request body. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/removeCoupon/). */ - removeCoupon({ id, buyNow, cartType, requestHeaders }?: CartApplicationValidator.RemoveCouponParam, { responseHeaders }?: object): Promise; + removeCoupon({ id, buyNow, requestHeaders }?: CartApplicationValidator.RemoveCouponParam, { responseHeaders }?: object): Promise; /** * @param {CartApplicationValidator.SelectAddressParam} arg - Arg object. * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -320,7 +286,7 @@ declare class Cart { * @summary: Update items in the cart * @description: Use this API to update items added to the cart with the help of a request object containing attributes like item_quantity and item_size. These attributes will be fetched from the following APIs operation: Operation for current api call. update_item for update items. remove_item for removing items. item_id "/platform/content/v1/products/" item_size "/platform/content/v1/products/:slug/sizes/" quantity item quantity (must be greater than or equal to 1) article_id "/content​/v1​/products​/:identifier​/sizes​/price​/" item_index item position in the cart (must be greater than or equal to 0) - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/updateCart/). */ - updateCart({ body, id, i, b, areaCode, buyNow, cartType, requestHeaders }?: CartApplicationValidator.UpdateCartParam, { responseHeaders }?: object): Promise; + updateCart({ body, id, i, b, areaCode, buyNow, requestHeaders }?: CartApplicationValidator.UpdateCartParam, { responseHeaders }?: object): Promise; /** * @param {CartApplicationValidator.UpdateCartMetaParam} arg - Arg object. * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -350,7 +316,7 @@ declare class Cart { * @summary: Verify the coupon eligibility against the payment mode * @description: Use this API to validate a coupon against the payment mode such as NetBanking, Wallet, UPI etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/validateCouponForPayment/). */ - validateCouponForPayment({ id, buyNow, addressId, paymentMode, paymentIdentifier, aggregatorName, merchantCode, iin, network, type, cardId, cartType, requestHeaders, }?: CartApplicationValidator.ValidateCouponForPaymentParam, { responseHeaders }?: object): Promise; + validateCouponForPayment({ id, buyNow, addressId, paymentMode, paymentIdentifier, aggregatorName, merchantCode, iin, network, type, cardId, requestHeaders, }?: CartApplicationValidator.ValidateCouponForPaymentParam, { responseHeaders }?: object): Promise; } -import CartApplicationValidator = require("sdk/output/javascript/code/sdk/application/Cart/CartApplicationValidator"); -import CartApplicationModel = require("sdk/output/javascript/code/sdk/application/Cart/CartApplicationModel"); +import CartApplicationValidator = require("./CartApplicationValidator"); +import CartApplicationModel = require("./CartApplicationModel"); diff --git a/sdk/application/Cart/CartApplicationClient.js b/sdk/application/Cart/CartApplicationClient.js index 1bb6924dd..934bd6270 100644 --- a/sdk/application/Cart/CartApplicationClient.js +++ b/sdk/application/Cart/CartApplicationClient.js @@ -26,14 +26,10 @@ class Cart { getBulkDiscountOffers: "/service/application/cart/v1.0/bulk-price", getCart: "/service/application/cart/v1.0/detail", getCartLastModified: "/service/application/cart/v1.0/detail", - getCartMetaConfig: - "/service/application/cart/v1.0/cart/configuration/{cart_meta_id}", - getCartMetaConfigs: "/service/application/cart/v1.0/cart/configuration", getCartShareLink: "/service/application/cart/v1.0/share-cart", getCartSharedItems: "/service/application/cart/v1.0/share-cart/{token}", getCoupons: "/service/application/cart/v1.0/coupon", getItemCount: "/service/application/cart/v1.0/basic", - getItemCountV2: "/service/application/cart/v2.0/basic", getLadderOffers: "/service/application/cart/v1.0/available-ladder-prices", getPromotionOffers: "/service/application/cart/v1.0/available-promotions", getShipments: "/service/application/cart/v1.0/shipment", @@ -151,13 +147,13 @@ class Cart { * @description: Use this API to add items to the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/addItems/). */ async addItems( - { body, i, b, areaCode, buyNow, id, cartType, requestHeaders } = { + { body, i, b, areaCode, buyNow, id, requestHeaders } = { requestHeaders: {}, }, { responseHeaders } = { responseHeaders: false } ) { const { error } = CartApplicationValidator.addItems().validate( - { body, i, b, areaCode, buyNow, id, cartType }, + { body, i, b, areaCode, buyNow, id }, { abortEarly: false, allowUnknown: true } ); if (error) { @@ -166,7 +162,7 @@ class Cart { // Showing warrnings if extra unknown parameters are found const { error: warrning } = CartApplicationValidator.addItems().validate( - { body, i, b, areaCode, buyNow, id, cartType }, + { body, i, b, areaCode, buyNow, id }, { abortEarly: false, allowUnknown: false } ); if (warrning) { @@ -182,7 +178,6 @@ class Cart { query_params["area_code"] = areaCode; query_params["buy_now"] = buyNow; query_params["id"] = id; - query_params["cart_type"] = cartType; const xHeaders = {}; @@ -235,13 +230,11 @@ class Cart { * @description: Use this API to apply coupons on items in the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/applyCoupon/). */ async applyCoupon( - { body, i, b, p, id, buyNow, cartType, requestHeaders } = { - requestHeaders: {}, - }, + { body, i, b, p, id, buyNow, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error } = CartApplicationValidator.applyCoupon().validate( - { body, i, b, p, id, buyNow, cartType }, + { body, i, b, p, id, buyNow }, { abortEarly: false, allowUnknown: true } ); if (error) { @@ -250,7 +243,7 @@ class Cart { // Showing warrnings if extra unknown parameters are found const { error: warrning } = CartApplicationValidator.applyCoupon().validate( - { body, i, b, p, id, buyNow, cartType }, + { body, i, b, p, id, buyNow }, { abortEarly: false, allowUnknown: false } ); if (warrning) { @@ -266,7 +259,6 @@ class Cart { query_params["p"] = p; query_params["id"] = id; query_params["buy_now"] = buyNow; - query_params["cart_type"] = cartType; const xHeaders = {}; @@ -319,13 +311,11 @@ class Cart { * @description: Use this API to redeem a fixed no. of reward points by applying it to the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/applyRewardPoints/). */ async applyRewardPoints( - { body, id, i, b, buyNow, cartType, requestHeaders } = { - requestHeaders: {}, - }, + { body, id, i, b, buyNow, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error } = CartApplicationValidator.applyRewardPoints().validate( - { body, id, i, b, buyNow, cartType }, + { body, id, i, b, buyNow }, { abortEarly: false, allowUnknown: true } ); if (error) { @@ -336,7 +326,7 @@ class Cart { const { error: warrning, } = CartApplicationValidator.applyRewardPoints().validate( - { body, id, i, b, buyNow, cartType }, + { body, id, i, b, buyNow }, { abortEarly: false, allowUnknown: false } ); if (warrning) { @@ -351,7 +341,6 @@ class Cart { query_params["i"] = i; query_params["b"] = b; query_params["buy_now"] = buyNow; - query_params["cart_type"] = cartType; const xHeaders = {}; @@ -404,11 +393,11 @@ class Cart { * @description: Use this API to checkout all items in the cart for payment and order generation. For COD, order will be directly generated, whereas for other checkout modes, user will be redirected to a payment gateway. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/checkoutCart/). */ async checkoutCart( - { body, buyNow, cartType, requestHeaders } = { requestHeaders: {} }, + { body, buyNow, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error } = CartApplicationValidator.checkoutCart().validate( - { body, buyNow, cartType }, + { body, buyNow }, { abortEarly: false, allowUnknown: true } ); if (error) { @@ -419,7 +408,7 @@ class Cart { const { error: warrning, } = CartApplicationValidator.checkoutCart().validate( - { body, buyNow, cartType }, + { body, buyNow }, { abortEarly: false, allowUnknown: false } ); if (warrning) { @@ -431,7 +420,6 @@ class Cart { const query_params = {}; query_params["buy_now"] = buyNow; - query_params["cart_type"] = cartType; const xHeaders = {}; @@ -484,11 +472,11 @@ class Cart { * @description: Use this API to checkout all items in the cart for payment and order generation. For COD, order will be directly generated, whereas for other checkout modes, user will be redirected to a payment gateway. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/checkoutCartV2/). */ async checkoutCartV2( - { body, buyNow, cartType, requestHeaders } = { requestHeaders: {} }, + { body, buyNow, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error } = CartApplicationValidator.checkoutCartV2().validate( - { body, buyNow, cartType }, + { body, buyNow }, { abortEarly: false, allowUnknown: true } ); if (error) { @@ -499,7 +487,7 @@ class Cart { const { error: warrning, } = CartApplicationValidator.checkoutCartV2().validate( - { body, buyNow, cartType }, + { body, buyNow }, { abortEarly: false, allowUnknown: false } ); if (warrning) { @@ -511,7 +499,6 @@ class Cart { const query_params = {}; query_params["buy_now"] = buyNow; - query_params["cart_type"] = cartType; const xHeaders = {}; @@ -565,11 +552,11 @@ class Cart { * @description: Use this API to delete the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/deleteCart/). */ async deleteCart( - { id, cartType, requestHeaders } = { requestHeaders: {} }, + { id, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error } = CartApplicationValidator.deleteCart().validate( - { id, cartType }, + { id }, { abortEarly: false, allowUnknown: true } ); if (error) { @@ -578,7 +565,7 @@ class Cart { // Showing warrnings if extra unknown parameters are found const { error: warrning } = CartApplicationValidator.deleteCart().validate( - { id, cartType }, + { id }, { abortEarly: false, allowUnknown: false } ); if (warrning) { @@ -590,7 +577,6 @@ class Cart { const query_params = {}; query_params["id"] = id; - query_params["cart_type"] = cartType; const xHeaders = {}; @@ -828,13 +814,11 @@ class Cart { * @description: Use this API to get a list of applicable offers along with current, next and best offer for given product. Either one of uid, item_id, slug should be present. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getBulkDiscountOffers/). */ async getBulkDiscountOffers( - { itemId, articleId, uid, slug, cartType, requestHeaders } = { - requestHeaders: {}, - }, + { itemId, articleId, uid, slug, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error } = CartApplicationValidator.getBulkDiscountOffers().validate( - { itemId, articleId, uid, slug, cartType }, + { itemId, articleId, uid, slug }, { abortEarly: false, allowUnknown: true } ); if (error) { @@ -845,7 +829,7 @@ class Cart { const { error: warrning, } = CartApplicationValidator.getBulkDiscountOffers().validate( - { itemId, articleId, uid, slug, cartType }, + { itemId, articleId, uid, slug }, { abortEarly: false, allowUnknown: false } ); if (warrning) { @@ -860,7 +844,6 @@ class Cart { query_params["article_id"] = articleId; query_params["uid"] = uid; query_params["slug"] = slug; - query_params["cart_type"] = cartType; const xHeaders = {}; @@ -913,21 +896,13 @@ class Cart { * @description: Use this API to get details of all the items added to a cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCart/). */ async getCart( - { - id, - i, - b, - c, - assignCardId, - areaCode, - buyNow, - cartType, - requestHeaders, - } = { requestHeaders: {} }, + { id, i, b, c, assignCardId, areaCode, buyNow, requestHeaders } = { + requestHeaders: {}, + }, { responseHeaders } = { responseHeaders: false } ) { const { error } = CartApplicationValidator.getCart().validate( - { id, i, b, c, assignCardId, areaCode, buyNow, cartType }, + { id, i, b, c, assignCardId, areaCode, buyNow }, { abortEarly: false, allowUnknown: true } ); if (error) { @@ -936,7 +911,7 @@ class Cart { // Showing warrnings if extra unknown parameters are found const { error: warrning } = CartApplicationValidator.getCart().validate( - { id, i, b, c, assignCardId, areaCode, buyNow, cartType }, + { id, i, b, c, assignCardId, areaCode, buyNow }, { abortEarly: false, allowUnknown: false } ); if (warrning) { @@ -954,7 +929,6 @@ class Cart { query_params["assign_card_id"] = assignCardId; query_params["area_code"] = areaCode; query_params["buy_now"] = buyNow; - query_params["cart_type"] = cartType; const xHeaders = {}; @@ -1073,163 +1047,6 @@ class Cart { return response; } - /** - * @param {CartApplicationValidator.GetCartMetaConfigParam} arg - Arg object. - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../ApplicationAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name getCartMetaConfig - * @summary: Get cart configuration by id - * @description: Get cart configuration by id - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCartMetaConfig/). - */ - async getCartMetaConfig( - { cartMetaId, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { error } = CartApplicationValidator.getCartMetaConfig().validate( - { cartMetaId }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = CartApplicationValidator.getCartMetaConfig().validate( - { cartMetaId }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for application > Cart > getCartMetaConfig \n ${warrning}`, - }); - } - - const query_params = {}; - - const xHeaders = {}; - - const response = await ApplicationAPIClient.execute( - this._conf, - "get", - constructUrl({ - url: this._urls["getCartMetaConfig"], - params: { cartMetaId }, - }), - query_params, - undefined, - { ...xHeaders, ...requestHeaders }, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = CartApplicationModel.CartConfigDetailResponse().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this._conf.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for application > Cart > getCartMetaConfig \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {CartApplicationValidator.GetCartMetaConfigsParam} arg - Arg object. - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../ApplicationAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getCartMetaConfigs - * @summary: Get cart configuration - * @description: Get cart configuration - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCartMetaConfigs/). - */ - async getCartMetaConfigs( - { requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { error } = CartApplicationValidator.getCartMetaConfigs().validate( - {}, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = CartApplicationValidator.getCartMetaConfigs().validate( - {}, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for application > Cart > getCartMetaConfigs \n ${warrning}`, - }); - } - - const query_params = {}; - - const xHeaders = {}; - - const response = await ApplicationAPIClient.execute( - this._conf, - "get", - constructUrl({ - url: this._urls["getCartMetaConfigs"], - params: {}, - }), - query_params, - undefined, - { ...xHeaders, ...requestHeaders }, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = CartApplicationModel.CartConfigListResponse().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this._conf.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for application > Cart > getCartMetaConfigs \n ${res_error}`, - }); - } - } - - return response; - } - /** * @param {CartApplicationValidator.GetCartShareLinkParam} arg - Arg object. * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -1547,86 +1364,6 @@ class Cart { return response; } - /** - * @param {CartApplicationValidator.GetItemCountV2Param} arg - Arg object. - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../ApplicationAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getItemCountV2 - * @summary: Count items in the cart according to cart_type - * @description: Use this API to get the total number of items present in cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getItemCountV2/). - */ - async getItemCountV2( - { id, buyNow, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { error } = CartApplicationValidator.getItemCountV2().validate( - { id, buyNow }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = CartApplicationValidator.getItemCountV2().validate( - { id, buyNow }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for application > Cart > getItemCountV2 \n ${warrning}`, - }); - } - - const query_params = {}; - query_params["id"] = id; - query_params["buy_now"] = buyNow; - - const xHeaders = {}; - - const response = await ApplicationAPIClient.execute( - this._conf, - "get", - constructUrl({ - url: this._urls["getItemCountV2"], - params: {}, - }), - query_params, - undefined, - { ...xHeaders, ...requestHeaders }, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = CartApplicationModel.CartItemCountResponseV2().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this._conf.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for application > Cart > getItemCountV2 \n ${res_error}`, - }); - } - } - - return response; - } - /** * @param {CartApplicationValidator.GetLadderOffersParam} arg - Arg object. * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -1721,13 +1458,13 @@ class Cart { * @description: Use this API to get top 5 offers available for current product - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getPromotionOffers/). */ async getPromotionOffers( - { slug, pageSize, promotionGroup, storeId, cartType, requestHeaders } = { + { slug, pageSize, promotionGroup, storeId, requestHeaders } = { requestHeaders: {}, }, { responseHeaders } = { responseHeaders: false } ) { const { error } = CartApplicationValidator.getPromotionOffers().validate( - { slug, pageSize, promotionGroup, storeId, cartType }, + { slug, pageSize, promotionGroup, storeId }, { abortEarly: false, allowUnknown: true } ); if (error) { @@ -1738,7 +1475,7 @@ class Cart { const { error: warrning, } = CartApplicationValidator.getPromotionOffers().validate( - { slug, pageSize, promotionGroup, storeId, cartType }, + { slug, pageSize, promotionGroup, storeId }, { abortEarly: false, allowUnknown: false } ); if (warrning) { @@ -1753,7 +1490,6 @@ class Cart { query_params["page_size"] = pageSize; query_params["promotion_group"] = promotionGroup; query_params["store_id"] = storeId; - query_params["cart_type"] = cartType; const xHeaders = {}; @@ -1970,11 +1706,11 @@ class Cart { * @description: Remove Coupon applied on the cart by passing uid in request body. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/removeCoupon/). */ async removeCoupon( - { id, buyNow, cartType, requestHeaders } = { requestHeaders: {} }, + { id, buyNow, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error } = CartApplicationValidator.removeCoupon().validate( - { id, buyNow, cartType }, + { id, buyNow }, { abortEarly: false, allowUnknown: true } ); if (error) { @@ -1985,7 +1721,7 @@ class Cart { const { error: warrning, } = CartApplicationValidator.removeCoupon().validate( - { id, buyNow, cartType }, + { id, buyNow }, { abortEarly: false, allowUnknown: false } ); if (warrning) { @@ -1998,7 +1734,6 @@ class Cart { const query_params = {}; query_params["id"] = id; query_params["buy_now"] = buyNow; - query_params["cart_type"] = cartType; const xHeaders = {}; @@ -2292,13 +2027,13 @@ class Cart { * @description: Use this API to update items added to the cart with the help of a request object containing attributes like item_quantity and item_size. These attributes will be fetched from the following APIs operation: Operation for current api call. update_item for update items. remove_item for removing items. item_id "/platform/content/v1/products/" item_size "/platform/content/v1/products/:slug/sizes/" quantity item quantity (must be greater than or equal to 1) article_id "/content​/v1​/products​/:identifier​/sizes​/price​/" item_index item position in the cart (must be greater than or equal to 0) - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/updateCart/). */ async updateCart( - { body, id, i, b, areaCode, buyNow, cartType, requestHeaders } = { + { body, id, i, b, areaCode, buyNow, requestHeaders } = { requestHeaders: {}, }, { responseHeaders } = { responseHeaders: false } ) { const { error } = CartApplicationValidator.updateCart().validate( - { body, id, i, b, areaCode, buyNow, cartType }, + { body, id, i, b, areaCode, buyNow }, { abortEarly: false, allowUnknown: true } ); if (error) { @@ -2307,7 +2042,7 @@ class Cart { // Showing warrnings if extra unknown parameters are found const { error: warrning } = CartApplicationValidator.updateCart().validate( - { body, id, i, b, areaCode, buyNow, cartType }, + { body, id, i, b, areaCode, buyNow }, { abortEarly: false, allowUnknown: false } ); if (warrning) { @@ -2323,7 +2058,6 @@ class Cart { query_params["b"] = b; query_params["area_code"] = areaCode; query_params["buy_now"] = buyNow; - query_params["cart_type"] = cartType; const xHeaders = {}; @@ -2548,7 +2282,6 @@ class Cart { network, type, cardId, - cartType, requestHeaders, } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } @@ -2568,7 +2301,6 @@ class Cart { network, type, cardId, - cartType, }, { abortEarly: false, allowUnknown: true } ); @@ -2592,7 +2324,6 @@ class Cart { network, type, cardId, - cartType, }, { abortEarly: false, allowUnknown: false } ); @@ -2615,7 +2346,6 @@ class Cart { query_params["network"] = network; query_params["type"] = type; query_params["card_id"] = cardId; - query_params["cart_type"] = cartType; const xHeaders = {}; diff --git a/sdk/application/Cart/CartApplicationModel.d.ts b/sdk/application/Cart/CartApplicationModel.d.ts index 2f3cc8c33..940477274 100644 --- a/sdk/application/Cart/CartApplicationModel.d.ts +++ b/sdk/application/Cart/CartApplicationModel.d.ts @@ -49,7 +49,6 @@ export = CartApplicationModel; * @property {AppliedFreeArticles[]} [applied_free_articles] - Applied free * article for free gift item promotions * @property {string} [promotion_type] - Promotion type of current promotion - * @property {Object[]} [custom_field_meta] - Custom field meta for promotion. * @property {Object} [meta] - Meta object for extra data * @property {string} [code] - Promotion code */ @@ -114,7 +113,6 @@ export = CartApplicationModel; * @property {string} [size] * @property {number} [mto_quantity] * @property {BaseInfo} [seller] - * @property {string} [product_name] * @property {string} [seller_identifier] * @property {Object} [parent_item_identifiers] * @property {Object} [identifier] @@ -263,7 +261,6 @@ export = CartApplicationModel; * @property {string} [key] * @property {string} [message] * @property {boolean} [is_set] - * @property {number} [seller_count] * @property {ProductPricePerUnitInfo} [price_per_unit] * @property {AppliedPromotion[]} [promotions_applied] */ @@ -363,14 +360,6 @@ export = CartApplicationModel; * @typedef CartCommonConfig * @property {DeliveryChargesConfig} [delivery_charges_config] */ -/** - * @typedef CustomCart - * @property {string} [id] - Id of custom cart config - * @property {string} [cart_name] - Name of custom cart - * @property {string} [cart_type] - Type of custom cart - * @property {boolean} [is_universal] - By default all carts are universal, will - * be false for custom cart - */ /** * @typedef CartDetailResponse * @property {number} [cart_id] @@ -378,7 +367,6 @@ export = CartApplicationModel; * @property {AppliedPromotion[]} [applied_promo_details] * @property {string} [checkout_mode] * @property {string} [pan_no] - * @property {boolean} [is_pan_received] * @property {boolean} [is_valid] * @property {string} [id] * @property {PaymentSelectionLock} [payment_selection_lock] @@ -400,7 +388,6 @@ export = CartApplicationModel; * @property {string} [coupon_text] * @property {boolean} [buy_now] * @property {Object} [pan_config] - * @property {CustomCart} [custom_cart] */ /** * @typedef AddProductCart @@ -413,7 +400,6 @@ export = CartApplicationModel; * @property {number} [store_id] * @property {string} [display] * @property {string} [article_id] - * @property {string} [price_factory_type_id] * @property {Object[]} [parent_item_identifiers] * @property {number} [seller_id] * @property {boolean} [pos] @@ -445,7 +431,6 @@ export = CartApplicationModel; * @property {CartProductIdentifer} identifiers * @property {string} [article_id] * @property {Object} [parent_item_identifiers] - * @property {string} [price_factory_type_id] * @property {number} [item_id] * @property {Object} [meta] */ @@ -471,12 +456,6 @@ export = CartApplicationModel; * @typedef CartItemCountResponse * @property {number} [user_cart_items_count] - Item count present in cart */ -/** - * @typedef CartItemCountResponseV2 - * @property {number} [user_all_cart_articles_quantity_count] - * @property {number} [user_all_cart_article_count] - * @property {Object} [custom_cart_count] - */ /** * @typedef PageCoupon * @property {number} [total_item_count] @@ -753,7 +732,6 @@ export = CartApplicationModel; * @property {string} [coupon_text] * @property {boolean} [buy_now] * @property {number} [cod_charges] - * @property {CustomCart} [custom_cart] */ /** * @typedef CartCheckoutResponse @@ -955,66 +933,10 @@ export = CartApplicationModel; * @property {string} [type] * @property {string} [card_id] */ -/** - * @typedef CartConfigListObj - * @property {string} [id] - * @property {string} [name] - * @property {string} [slug] - * @property {string[]} [article_tags] - * @property {string} [created_on] - */ -/** - * @typedef CartConfigListResponse - * @property {boolean} [success] - * @property {CartConfigListObj[]} [data] - */ -/** - * @typedef OrderPlacing - * @property {boolean} [enabled] - * @property {string} [message] - */ -/** - * @typedef PanCard - * @property {boolean} [enabled] - * @property {number} [cod_threshold_amount] - * @property {number} [online_threshold_amount] - */ -/** - * @typedef CartConfigDetailObj - * @property {string} [id] - * @property {string} [app_id] - * @property {number} [company_id] - * @property {string} [created_on] - * @property {string} [updated_on] - * @property {string} [last_modified_by] - * @property {number} [min_cart_value] - * @property {number} [max_cart_value] - * @property {boolean} [bulk_coupons] - * @property {number} [max_cart_items] - * @property {string} [gift_display_text] - * @property {DeliveryChargesConfig} [delivery_charges] - * @property {boolean} [revenue_engine_coupon] - * @property {number} [gift_pricing] - * @property {boolean} [enabled] - * @property {boolean} [is_active] - * @property {OrderPlacing} [order_placing] - * @property {string} [name] - * @property {string[]} [article_tags] - * @property {boolean} [allow_coupon_with_rewards] - * @property {boolean} [gst_input] - * @property {boolean} [staff_selection] - * @property {boolean} [placing_for_customer] - * @property {PanCard} [pan_card] - */ -/** - * @typedef CartConfigDetailResponse - * @property {boolean} [success] - * @property {CartConfigDetailObj} [data] - */ declare class CartApplicationModel { } declare namespace CartApplicationModel { - export { BuyRules, DiscountRulesApp, Ownership, FreeGiftItem, AppliedFreeArticles, AppliedPromotion, PaymentSelectionLock, PromiseFormatted, PromiseISOFormat, PromiseTimestamp, ShipmentPromise, BasePrice, ArticlePriceInfo, BaseInfo, StoreInfo, ProductArticle, CartProductIdentifer, PromoMeta, ChargesAmount, Charges, ProductPrice, ProductPriceInfo, ProductPricePerUnit, ProductPricePerUnitInfo, ProductAvailabilitySize, ProductAvailability, ActionQuery, ProductAction, Tags, ProductImage, CategoryInfo, CartProduct, CouponDetails, CartProductInfo, DisplayBreakup, RawBreakup, CouponBreakup, LoyaltyPoints, CartBreakup, CartCurrency, CartDetailCoupon, ChargesThreshold, DeliveryChargesConfig, CartCommonConfig, CustomCart, CartDetailResponse, AddProductCart, AddCartRequest, AddCartDetailResponse, UpdateProductCart, UpdateCartRequest, UpdateCartDetailResponse, DeleteCartDetailResponse, CartItemCountResponse, CartItemCountResponseV2, PageCoupon, Coupon, GetCouponResponse, ApplyCouponRequest, OfferPrice, OfferItem, OfferSeller, BulkPriceOffer, BulkPriceResponse, RewardPointRequest, GeoLocation, Address, GetAddressesResponse, SaveAddressResponse, UpdateAddressResponse, DeleteAddressResponse, SelectCartAddressRequest, UpdateCartPaymentRequest, CouponValidity, PaymentCouponValidate, ShipmentResponse, CartShipmentsResponse, CartCheckoutCustomMeta, CustomerDetails, StaffCheckout, CartCheckoutDetailRequest, CheckCart, CartCheckoutResponse, GiftDetail, ArticleGiftDetail, CartMetaRequest, CartMetaResponse, CartMetaMissingResponse, GetShareCartLinkRequest, GetShareCartLinkResponse, SharedCartDetails, SharedCart, SharedCartResponse, FreeGiftItems, PromotionOffer, PromotionOffersResponse, OperationErrorResponse, LadderPrice, LadderOfferItem, LadderPriceOffer, CurrencyInfo, LadderPriceOffers, PaymentMeta, PaymentMethod, CartCheckoutDetailV2Request, CartConfigListObj, CartConfigListResponse, OrderPlacing, PanCard, CartConfigDetailObj, CartConfigDetailResponse }; + export { BuyRules, DiscountRulesApp, Ownership, FreeGiftItem, AppliedFreeArticles, AppliedPromotion, PaymentSelectionLock, PromiseFormatted, PromiseISOFormat, PromiseTimestamp, ShipmentPromise, BasePrice, ArticlePriceInfo, BaseInfo, StoreInfo, ProductArticle, CartProductIdentifer, PromoMeta, ChargesAmount, Charges, ProductPrice, ProductPriceInfo, ProductPricePerUnit, ProductPricePerUnitInfo, ProductAvailabilitySize, ProductAvailability, ActionQuery, ProductAction, Tags, ProductImage, CategoryInfo, CartProduct, CouponDetails, CartProductInfo, DisplayBreakup, RawBreakup, CouponBreakup, LoyaltyPoints, CartBreakup, CartCurrency, CartDetailCoupon, ChargesThreshold, DeliveryChargesConfig, CartCommonConfig, CartDetailResponse, AddProductCart, AddCartRequest, AddCartDetailResponse, UpdateProductCart, UpdateCartRequest, UpdateCartDetailResponse, DeleteCartDetailResponse, CartItemCountResponse, PageCoupon, Coupon, GetCouponResponse, ApplyCouponRequest, OfferPrice, OfferItem, OfferSeller, BulkPriceOffer, BulkPriceResponse, RewardPointRequest, GeoLocation, Address, GetAddressesResponse, SaveAddressResponse, UpdateAddressResponse, DeleteAddressResponse, SelectCartAddressRequest, UpdateCartPaymentRequest, CouponValidity, PaymentCouponValidate, ShipmentResponse, CartShipmentsResponse, CartCheckoutCustomMeta, CustomerDetails, StaffCheckout, CartCheckoutDetailRequest, CheckCart, CartCheckoutResponse, GiftDetail, ArticleGiftDetail, CartMetaRequest, CartMetaResponse, CartMetaMissingResponse, GetShareCartLinkRequest, GetShareCartLinkResponse, SharedCartDetails, SharedCart, SharedCartResponse, FreeGiftItems, PromotionOffer, PromotionOffersResponse, OperationErrorResponse, LadderPrice, LadderOfferItem, LadderPriceOffer, CurrencyInfo, LadderPriceOffers, PaymentMeta, PaymentMethod, CartCheckoutDetailV2Request }; } /** @returns {BuyRules} */ declare function BuyRules(): BuyRules; @@ -1162,10 +1084,6 @@ type AppliedPromotion = { * - Promotion type of current promotion */ promotion_type?: string; - /** - * - Custom field meta for promotion. - */ - custom_field_meta?: any[]; /** * - Meta object for extra data */ @@ -1252,7 +1170,6 @@ type ProductArticle = { size?: string; mto_quantity?: number; seller?: BaseInfo; - product_name?: string; seller_identifier?: string; parent_item_identifiers?: any; identifier?: any; @@ -1455,7 +1372,6 @@ type CartProductInfo = { key?: string; message?: string; is_set?: boolean; - seller_count?: number; price_per_unit?: ProductPricePerUnitInfo; promotions_applied?: AppliedPromotion[]; }; @@ -1568,27 +1484,6 @@ declare function CartCommonConfig(): CartCommonConfig; type CartCommonConfig = { delivery_charges_config?: DeliveryChargesConfig; }; -/** @returns {CustomCart} */ -declare function CustomCart(): CustomCart; -type CustomCart = { - /** - * - Id of custom cart config - */ - id?: string; - /** - * - Name of custom cart - */ - cart_name?: string; - /** - * - Type of custom cart - */ - cart_type?: string; - /** - * - By default all carts are universal, will - * be false for custom cart - */ - is_universal?: boolean; -}; /** @returns {CartDetailResponse} */ declare function CartDetailResponse(): CartDetailResponse; type CartDetailResponse = { @@ -1597,7 +1492,6 @@ type CartDetailResponse = { applied_promo_details?: AppliedPromotion[]; checkout_mode?: string; pan_no?: string; - is_pan_received?: boolean; is_valid?: boolean; id?: string; payment_selection_lock?: PaymentSelectionLock; @@ -1619,7 +1513,6 @@ type CartDetailResponse = { coupon_text?: string; buy_now?: boolean; pan_config?: any; - custom_cart?: CustomCart; }; /** @returns {AddProductCart} */ declare function AddProductCart(): AddProductCart; @@ -1633,7 +1526,6 @@ type AddProductCart = { store_id?: number; display?: string; article_id?: string; - price_factory_type_id?: string; parent_item_identifiers?: any[]; seller_id?: number; pos?: boolean; @@ -1677,7 +1569,6 @@ type UpdateProductCart = { identifiers: CartProductIdentifer; article_id?: string; parent_item_identifiers?: any; - price_factory_type_id?: string; item_id?: number; meta?: any; }; @@ -1716,13 +1607,6 @@ type CartItemCountResponse = { */ user_cart_items_count?: number; }; -/** @returns {CartItemCountResponseV2} */ -declare function CartItemCountResponseV2(): CartItemCountResponseV2; -type CartItemCountResponseV2 = { - user_all_cart_articles_quantity_count?: number; - user_all_cart_article_count?: number; - custom_cart_count?: any; -}; /** @returns {PageCoupon} */ declare function PageCoupon(): PageCoupon; type PageCoupon = { @@ -2077,7 +1961,6 @@ type CheckCart = { coupon_text?: string; buy_now?: boolean; cod_charges?: number; - custom_cart?: CustomCart; }; /** @returns {CartCheckoutResponse} */ declare function CartCheckoutResponse(): CartCheckoutResponse; @@ -2428,65 +2311,3 @@ type CartCheckoutDetailV2Request = { type?: string; card_id?: string; }; -/** @returns {CartConfigListObj} */ -declare function CartConfigListObj(): CartConfigListObj; -type CartConfigListObj = { - id?: string; - name?: string; - slug?: string; - article_tags?: string[]; - created_on?: string; -}; -/** @returns {CartConfigListResponse} */ -declare function CartConfigListResponse(): CartConfigListResponse; -type CartConfigListResponse = { - success?: boolean; - data?: CartConfigListObj[]; -}; -/** @returns {OrderPlacing} */ -declare function OrderPlacing(): OrderPlacing; -type OrderPlacing = { - enabled?: boolean; - message?: string; -}; -/** @returns {PanCard} */ -declare function PanCard(): PanCard; -type PanCard = { - enabled?: boolean; - cod_threshold_amount?: number; - online_threshold_amount?: number; -}; -/** @returns {CartConfigDetailObj} */ -declare function CartConfigDetailObj(): CartConfigDetailObj; -type CartConfigDetailObj = { - id?: string; - app_id?: string; - company_id?: number; - created_on?: string; - updated_on?: string; - last_modified_by?: string; - min_cart_value?: number; - max_cart_value?: number; - bulk_coupons?: boolean; - max_cart_items?: number; - gift_display_text?: string; - delivery_charges?: DeliveryChargesConfig; - revenue_engine_coupon?: boolean; - gift_pricing?: number; - enabled?: boolean; - is_active?: boolean; - order_placing?: OrderPlacing; - name?: string; - article_tags?: string[]; - allow_coupon_with_rewards?: boolean; - gst_input?: boolean; - staff_selection?: boolean; - placing_for_customer?: boolean; - pan_card?: PanCard; -}; -/** @returns {CartConfigDetailResponse} */ -declare function CartConfigDetailResponse(): CartConfigDetailResponse; -type CartConfigDetailResponse = { - success?: boolean; - data?: CartConfigDetailObj; -}; diff --git a/sdk/application/Cart/CartApplicationModel.js b/sdk/application/Cart/CartApplicationModel.js index 6f2d8b433..2cc0603c8 100644 --- a/sdk/application/Cart/CartApplicationModel.js +++ b/sdk/application/Cart/CartApplicationModel.js @@ -55,7 +55,6 @@ const Joi = require("joi"); * @property {AppliedFreeArticles[]} [applied_free_articles] - Applied free * article for free gift item promotions * @property {string} [promotion_type] - Promotion type of current promotion - * @property {Object[]} [custom_field_meta] - Custom field meta for promotion. * @property {Object} [meta] - Meta object for extra data * @property {string} [code] - Promotion code */ @@ -130,7 +129,6 @@ const Joi = require("joi"); * @property {string} [size] * @property {number} [mto_quantity] * @property {BaseInfo} [seller] - * @property {string} [product_name] * @property {string} [seller_identifier] * @property {Object} [parent_item_identifiers] * @property {Object} [identifier] @@ -297,7 +295,6 @@ const Joi = require("joi"); * @property {string} [key] * @property {string} [message] * @property {boolean} [is_set] - * @property {number} [seller_count] * @property {ProductPricePerUnitInfo} [price_per_unit] * @property {AppliedPromotion[]} [promotions_applied] */ @@ -408,15 +405,6 @@ const Joi = require("joi"); * @property {DeliveryChargesConfig} [delivery_charges_config] */ -/** - * @typedef CustomCart - * @property {string} [id] - Id of custom cart config - * @property {string} [cart_name] - Name of custom cart - * @property {string} [cart_type] - Type of custom cart - * @property {boolean} [is_universal] - By default all carts are universal, will - * be false for custom cart - */ - /** * @typedef CartDetailResponse * @property {number} [cart_id] @@ -424,7 +412,6 @@ const Joi = require("joi"); * @property {AppliedPromotion[]} [applied_promo_details] * @property {string} [checkout_mode] * @property {string} [pan_no] - * @property {boolean} [is_pan_received] * @property {boolean} [is_valid] * @property {string} [id] * @property {PaymentSelectionLock} [payment_selection_lock] @@ -446,7 +433,6 @@ const Joi = require("joi"); * @property {string} [coupon_text] * @property {boolean} [buy_now] * @property {Object} [pan_config] - * @property {CustomCart} [custom_cart] */ /** @@ -460,7 +446,6 @@ const Joi = require("joi"); * @property {number} [store_id] * @property {string} [display] * @property {string} [article_id] - * @property {string} [price_factory_type_id] * @property {Object[]} [parent_item_identifiers] * @property {number} [seller_id] * @property {boolean} [pos] @@ -495,7 +480,6 @@ const Joi = require("joi"); * @property {CartProductIdentifer} identifiers * @property {string} [article_id] * @property {Object} [parent_item_identifiers] - * @property {string} [price_factory_type_id] * @property {number} [item_id] * @property {Object} [meta] */ @@ -526,13 +510,6 @@ const Joi = require("joi"); * @property {number} [user_cart_items_count] - Item count present in cart */ -/** - * @typedef CartItemCountResponseV2 - * @property {number} [user_all_cart_articles_quantity_count] - * @property {number} [user_all_cart_article_count] - * @property {Object} [custom_cart_count] - */ - /** * @typedef PageCoupon * @property {number} [total_item_count] @@ -835,7 +812,6 @@ const Joi = require("joi"); * @property {string} [coupon_text] * @property {boolean} [buy_now] * @property {number} [cod_charges] - * @property {CustomCart} [custom_cart] */ /** @@ -1061,68 +1037,6 @@ const Joi = require("joi"); * @property {string} [card_id] */ -/** - * @typedef CartConfigListObj - * @property {string} [id] - * @property {string} [name] - * @property {string} [slug] - * @property {string[]} [article_tags] - * @property {string} [created_on] - */ - -/** - * @typedef CartConfigListResponse - * @property {boolean} [success] - * @property {CartConfigListObj[]} [data] - */ - -/** - * @typedef OrderPlacing - * @property {boolean} [enabled] - * @property {string} [message] - */ - -/** - * @typedef PanCard - * @property {boolean} [enabled] - * @property {number} [cod_threshold_amount] - * @property {number} [online_threshold_amount] - */ - -/** - * @typedef CartConfigDetailObj - * @property {string} [id] - * @property {string} [app_id] - * @property {number} [company_id] - * @property {string} [created_on] - * @property {string} [updated_on] - * @property {string} [last_modified_by] - * @property {number} [min_cart_value] - * @property {number} [max_cart_value] - * @property {boolean} [bulk_coupons] - * @property {number} [max_cart_items] - * @property {string} [gift_display_text] - * @property {DeliveryChargesConfig} [delivery_charges] - * @property {boolean} [revenue_engine_coupon] - * @property {number} [gift_pricing] - * @property {boolean} [enabled] - * @property {boolean} [is_active] - * @property {OrderPlacing} [order_placing] - * @property {string} [name] - * @property {string[]} [article_tags] - * @property {boolean} [allow_coupon_with_rewards] - * @property {boolean} [gst_input] - * @property {boolean} [staff_selection] - * @property {boolean} [placing_for_customer] - * @property {PanCard} [pan_card] - */ - -/** - * @typedef CartConfigDetailResponse - * @property {boolean} [success] - * @property {CartConfigDetailObj} [data] - */ - class CartApplicationModel { /** @returns {BuyRules} */ static BuyRules() { @@ -1191,7 +1105,6 @@ class CartApplicationModel { CartApplicationModel.AppliedFreeArticles() ), promotion_type: Joi.string().allow(""), - custom_field_meta: Joi.array().items(Joi.any()), meta: Joi.any(), code: Joi.string().allow("").allow(null), }); @@ -1286,7 +1199,6 @@ class CartApplicationModel { size: Joi.string().allow(""), mto_quantity: Joi.number(), seller: CartApplicationModel.BaseInfo(), - product_name: Joi.string().allow(""), seller_identifier: Joi.string().allow(""), parent_item_identifiers: Joi.any(), identifier: Joi.any(), @@ -1488,7 +1400,6 @@ class CartApplicationModel { key: Joi.string().allow(""), message: Joi.string().allow(""), is_set: Joi.boolean(), - seller_count: Joi.number(), price_per_unit: CartApplicationModel.ProductPricePerUnitInfo(), promotions_applied: Joi.array().items( CartApplicationModel.AppliedPromotion() @@ -1622,16 +1533,6 @@ class CartApplicationModel { }); } - /** @returns {CustomCart} */ - static CustomCart() { - return Joi.object({ - id: Joi.string().allow(""), - cart_name: Joi.string().allow(""), - cart_type: Joi.string().allow(""), - is_universal: Joi.boolean(), - }); - } - /** @returns {CartDetailResponse} */ static CartDetailResponse() { return Joi.object({ @@ -1642,7 +1543,6 @@ class CartApplicationModel { ), checkout_mode: Joi.string().allow(""), pan_no: Joi.string().allow(""), - is_pan_received: Joi.boolean(), is_valid: Joi.boolean(), id: Joi.string().allow(""), payment_selection_lock: CartApplicationModel.PaymentSelectionLock(), @@ -1664,7 +1564,6 @@ class CartApplicationModel { coupon_text: Joi.string().allow(""), buy_now: Joi.boolean(), pan_config: Joi.any(), - custom_cart: CartApplicationModel.CustomCart(), }); } @@ -1680,7 +1579,6 @@ class CartApplicationModel { store_id: Joi.number(), display: Joi.string().allow(""), article_id: Joi.string().allow(""), - price_factory_type_id: Joi.string().allow(""), parent_item_identifiers: Joi.array().items( Joi.object().pattern(/\S/, Joi.string().allow("")) ), @@ -1721,7 +1619,6 @@ class CartApplicationModel { identifiers: CartApplicationModel.CartProductIdentifer().required(), article_id: Joi.string().allow(""), parent_item_identifiers: Joi.any(), - price_factory_type_id: Joi.string().allow(""), item_id: Joi.number(), meta: Joi.any(), }); @@ -1759,15 +1656,6 @@ class CartApplicationModel { }); } - /** @returns {CartItemCountResponseV2} */ - static CartItemCountResponseV2() { - return Joi.object({ - user_all_cart_articles_quantity_count: Joi.number(), - user_all_cart_article_count: Joi.number(), - custom_cart_count: Joi.any(), - }); - } - /** @returns {PageCoupon} */ static PageCoupon() { return Joi.object({ @@ -2122,7 +2010,6 @@ class CartApplicationModel { coupon_text: Joi.string().allow(""), buy_now: Joi.boolean(), cod_charges: Joi.number(), - custom_cart: CartApplicationModel.CustomCart(), }); } @@ -2395,79 +2282,5 @@ class CartApplicationModel { card_id: Joi.string().allow(""), }); } - - /** @returns {CartConfigListObj} */ - static CartConfigListObj() { - return Joi.object({ - id: Joi.string().allow(""), - name: Joi.string().allow(""), - slug: Joi.string().allow(""), - article_tags: Joi.array().items(Joi.string().allow("")), - created_on: Joi.string().allow(""), - }); - } - - /** @returns {CartConfigListResponse} */ - static CartConfigListResponse() { - return Joi.object({ - success: Joi.boolean(), - data: Joi.array().items(CartApplicationModel.CartConfigListObj()), - }); - } - - /** @returns {OrderPlacing} */ - static OrderPlacing() { - return Joi.object({ - enabled: Joi.boolean(), - message: Joi.string().allow(""), - }); - } - - /** @returns {PanCard} */ - static PanCard() { - return Joi.object({ - enabled: Joi.boolean(), - cod_threshold_amount: Joi.number(), - online_threshold_amount: Joi.number(), - }); - } - - /** @returns {CartConfigDetailObj} */ - static CartConfigDetailObj() { - return Joi.object({ - id: Joi.string().allow(""), - app_id: Joi.string().allow(""), - company_id: Joi.number(), - created_on: Joi.string().allow(""), - updated_on: Joi.string().allow(""), - last_modified_by: Joi.string().allow(""), - min_cart_value: Joi.number(), - max_cart_value: Joi.number(), - bulk_coupons: Joi.boolean(), - max_cart_items: Joi.number(), - gift_display_text: Joi.string().allow(""), - delivery_charges: CartApplicationModel.DeliveryChargesConfig(), - revenue_engine_coupon: Joi.boolean(), - gift_pricing: Joi.number(), - enabled: Joi.boolean(), - is_active: Joi.boolean(), - order_placing: CartApplicationModel.OrderPlacing(), - name: Joi.string().allow(""), - article_tags: Joi.array().items(Joi.string().allow("")), - allow_coupon_with_rewards: Joi.boolean(), - gst_input: Joi.boolean(), - staff_selection: Joi.boolean(), - placing_for_customer: Joi.boolean(), - pan_card: CartApplicationModel.PanCard(), - }); - } - - /** @returns {CartConfigDetailResponse} */ - static CartConfigDetailResponse() { - return Joi.object({ - success: Joi.boolean(), - data: CartApplicationModel.CartConfigDetailObj(), - }); - } } module.exports = CartApplicationModel; diff --git a/sdk/application/Cart/CartApplicationValidator.d.ts b/sdk/application/Cart/CartApplicationValidator.d.ts index b8474fba3..94369c58b 100644 --- a/sdk/application/Cart/CartApplicationValidator.d.ts +++ b/sdk/application/Cart/CartApplicationValidator.d.ts @@ -5,15 +5,11 @@ export = CartApplicationValidator; */ /** * @typedef AddItemsParam - * @property {boolean} [i] - This is a boolean value. Select `true` to retrieve - * all the items added in the cart. - * @property {boolean} [b] - This is a boolean value. Select `true` to retrieve - * the price breakup of cart items. - * @property {string} [areaCode] - Customer servicable area_code - * @property {boolean} [buyNow] - This is a boolen value. Select `true` to - * set/initialize buy now cart - * @property {string} [id] - The unique identifier of the cart - * @property {string} [cartType] - The type of cart + * @property {boolean} [i] + * @property {boolean} [b] + * @property {string} [areaCode] + * @property {boolean} [buyNow] + * @property {string} [id] * @property {CartApplicationModel.AddCartRequest} body */ /** @@ -23,36 +19,29 @@ export = CartApplicationValidator; * @property {boolean} [p] * @property {string} [id] * @property {boolean} [buyNow] - * @property {string} [cartType] * @property {CartApplicationModel.ApplyCouponRequest} body */ /** * @typedef ApplyRewardPointsParam - * @property {string} [id] - The unique identifier of the cart - * @property {boolean} [i] - This is a boolean value. Select `true` to retrieve - * all the items added in the cart. - * @property {boolean} [b] - This is a boolean value. Select `true` to retrieve - * the price breakup of cart items. - * @property {boolean} [buyNow] - This is boolean to get buy_now cart - * @property {string} [cartType] - Type of the cart + * @property {string} [id] + * @property {boolean} [i] + * @property {boolean} [b] + * @property {boolean} [buyNow] * @property {CartApplicationModel.RewardPointRequest} body */ /** * @typedef CheckoutCartParam * @property {boolean} [buyNow] - This indicates the type of cart to checkout - * @property {string} [cartType] - The type of cart * @property {CartApplicationModel.CartCheckoutDetailRequest} body */ /** * @typedef CheckoutCartV2Param * @property {boolean} [buyNow] - This indicates the type of cart to checkout - * @property {string} [cartType] - The type of cart * @property {CartApplicationModel.CartCheckoutDetailV2Request} body */ /** * @typedef DeleteCartParam * @property {string} [id] - The unique identifier of the cart. - * @property {string} [cartType] - The type of cart */ /** * @typedef GetAddressByIdParam @@ -81,32 +70,21 @@ export = CartApplicationValidator; * @property {string} [slug] - A short, human-readable, URL-friendly identifier * of a product. You can get slug value from the endpoint * /service/application/catalog/v1.0/products/ - * @property {string} [cartType] - Type of the cart */ /** * @typedef GetCartParam - * @property {string} [id] - The unique identifier of the cart - * @property {boolean} [i] - This is a boolean value. Select `true` to retrieve - * all the items added in the cart. - * @property {boolean} [b] - This is a boolean value. Select `true` to retrieve - * the price breakup of cart items. - * @property {boolean} [c] - This is a boolean value. Select `true` to retrieve - * the cod charges in breakup of cart items. - * @property {number} [assignCardId] - Token of user's debit or credit card - * @property {string} [areaCode] - Customer servicable area_code - * @property {boolean} [buyNow] - This is a boolen value. Select `true` to - * set/initialize buy now cart - * @property {string} [cartType] - The type of cart + * @property {string} [id] + * @property {boolean} [i] + * @property {boolean} [b] + * @property {boolean} [c] + * @property {number} [assignCardId] + * @property {string} [areaCode] + * @property {boolean} [buyNow] */ /** * @typedef GetCartLastModifiedParam * @property {string} [id] */ -/** - * @typedef GetCartMetaConfigParam - * @property {string} cartMetaId - CartMeta mongo id for fetching single cart meta data - */ -/** @typedef GetCartMetaConfigsParam */ /** * @typedef GetCartShareLinkParam * @property {CartApplicationModel.GetShareCartLinkRequest} body @@ -127,11 +105,6 @@ export = CartApplicationValidator; * @property {string} [id] - The unique identifier of the cart. * @property {boolean} [buyNow] */ -/** - * @typedef GetItemCountV2Param - * @property {string} [id] - The unique identifier of the cart - * @property {boolean} [buyNow] - Boolean value to get buy_now cart - */ /** * @typedef GetLadderOffersParam * @property {string} slug - A short, human-readable, URL-friendly identifier of @@ -151,7 +124,6 @@ export = CartApplicationValidator; * @property {number} [pageSize] - Number of offers to be fetched to show * @property {string} [promotionGroup] - Type of promotion groups * @property {number} [storeId] - Store id - * @property {string} [cartType] - The type of cart */ /** * @typedef GetShipmentsParam @@ -172,9 +144,8 @@ export = CartApplicationValidator; */ /** * @typedef RemoveCouponParam - * @property {string} [id] - The unique identifier of the cart - * @property {boolean} [buyNow] - This is boolean to get buy_now cart - * @property {string} [cartType] - The type of cart + * @property {string} [id] + * @property {boolean} [buyNow] */ /** * @typedef SelectAddressParam @@ -197,15 +168,11 @@ export = CartApplicationValidator; */ /** * @typedef UpdateCartParam - * @property {string} [id] - The unique identifier of the cart - * @property {boolean} [i] - This is a boolean value. Select `true` to retrieve - * all the items added in the cart. - * @property {boolean} [b] - This is a boolean value. Select `true` to retrieve - * the price breakup of cart items. - * @property {string} [areaCode] - Customer servicable area_code - * @property {boolean} [buyNow] - This is a boolen value. Select `true` to - * set/initialize buy now cart - * @property {string} [cartType] - The type of cart + * @property {string} [id] + * @property {boolean} [i] + * @property {boolean} [b] + * @property {string} [areaCode] + * @property {boolean} [buyNow] * @property {CartApplicationModel.UpdateCartRequest} body */ /** @@ -221,19 +188,17 @@ export = CartApplicationValidator; */ /** * @typedef ValidateCouponForPaymentParam - * @property {string} [id] - The unique identifier of the cart - * @property {boolean} [buyNow] - This is boolean to get buy_now cart - * @property {string} [addressId] - ID allotted to an address - * @property {string} [paymentMode] - Payment mode selected by the customer - * @property {string} [paymentIdentifier] - Identifier of payment like ICIC, PAYTM - * @property {string} [aggregatorName] - Payment gateway identifier - * @property {string} [merchantCode] - Identifier used by payment gateway for a - * given payment mode, e.g. NB_ICIC, PAYTM - * @property {string} [iin] - Debit/Credit card prefix (first 6 digit) - * @property {string} [network] - Credit/Debit card issuer, e.g. VISA, MASTERCARD, RUPAY - * @property {string} [type] - Card type, e.g. Credit, Debit - * @property {string} [cardId] - Saved card token reference id - * @property {string} [cartType] - Type of the cart + * @property {string} [id] + * @property {boolean} [buyNow] + * @property {string} [addressId] + * @property {string} [paymentMode] + * @property {string} [paymentIdentifier] + * @property {string} [aggregatorName] + * @property {string} [merchantCode] + * @property {string} [iin] + * @property {string} [network] + * @property {string} [type] + * @property {string} [cardId] */ declare class CartApplicationValidator { /** @returns {AddAddressParam} */ @@ -260,10 +225,6 @@ declare class CartApplicationValidator { static getCart(): GetCartParam; /** @returns {GetCartLastModifiedParam} */ static getCartLastModified(): GetCartLastModifiedParam; - /** @returns {GetCartMetaConfigParam} */ - static getCartMetaConfig(): GetCartMetaConfigParam; - /** @returns {GetCartMetaConfigsParam} */ - static getCartMetaConfigs(): any; /** @returns {GetCartShareLinkParam} */ static getCartShareLink(): GetCartShareLinkParam; /** @returns {GetCartSharedItemsParam} */ @@ -272,8 +233,6 @@ declare class CartApplicationValidator { static getCoupons(): GetCouponsParam; /** @returns {GetItemCountParam} */ static getItemCount(): GetItemCountParam; - /** @returns {GetItemCountV2Param} */ - static getItemCountV2(): GetItemCountV2Param; /** @returns {GetLadderOffersParam} */ static getLadderOffers(): GetLadderOffersParam; /** @returns {GetPromotionOffersParam} */ @@ -300,39 +259,17 @@ declare class CartApplicationValidator { static validateCouponForPayment(): ValidateCouponForPaymentParam; } declare namespace CartApplicationValidator { - export { AddAddressParam, AddItemsParam, ApplyCouponParam, ApplyRewardPointsParam, CheckoutCartParam, CheckoutCartV2Param, DeleteCartParam, GetAddressByIdParam, GetAddressesParam, GetBulkDiscountOffersParam, GetCartParam, GetCartLastModifiedParam, GetCartMetaConfigParam, GetCartMetaConfigsParam, GetCartShareLinkParam, GetCartSharedItemsParam, GetCouponsParam, GetItemCountParam, GetItemCountV2Param, GetLadderOffersParam, GetPromotionOffersParam, GetShipmentsParam, RemoveAddressParam, RemoveCouponParam, SelectAddressParam, SelectPaymentModeParam, UpdateAddressParam, UpdateCartParam, UpdateCartMetaParam, UpdateCartWithSharedItemsParam, ValidateCouponForPaymentParam }; + export { AddAddressParam, AddItemsParam, ApplyCouponParam, ApplyRewardPointsParam, CheckoutCartParam, CheckoutCartV2Param, DeleteCartParam, GetAddressByIdParam, GetAddressesParam, GetBulkDiscountOffersParam, GetCartParam, GetCartLastModifiedParam, GetCartShareLinkParam, GetCartSharedItemsParam, GetCouponsParam, GetItemCountParam, GetLadderOffersParam, GetPromotionOffersParam, GetShipmentsParam, RemoveAddressParam, RemoveCouponParam, SelectAddressParam, SelectPaymentModeParam, UpdateAddressParam, UpdateCartParam, UpdateCartMetaParam, UpdateCartWithSharedItemsParam, ValidateCouponForPaymentParam }; } type AddAddressParam = { body: CartApplicationModel.Address; }; type AddItemsParam = { - /** - * - This is a boolean value. Select `true` to retrieve - * all the items added in the cart. - */ i?: boolean; - /** - * - This is a boolean value. Select `true` to retrieve - * the price breakup of cart items. - */ b?: boolean; - /** - * - Customer servicable area_code - */ areaCode?: string; - /** - * - This is a boolen value. Select `true` to - * set/initialize buy now cart - */ buyNow?: boolean; - /** - * - The unique identifier of the cart - */ id?: string; - /** - * - The type of cart - */ - cartType?: string; body: CartApplicationModel.AddCartRequest; }; type ApplyCouponParam = { @@ -341,32 +278,13 @@ type ApplyCouponParam = { p?: boolean; id?: string; buyNow?: boolean; - cartType?: string; body: CartApplicationModel.ApplyCouponRequest; }; type ApplyRewardPointsParam = { - /** - * - The unique identifier of the cart - */ id?: string; - /** - * - This is a boolean value. Select `true` to retrieve - * all the items added in the cart. - */ i?: boolean; - /** - * - This is a boolean value. Select `true` to retrieve - * the price breakup of cart items. - */ b?: boolean; - /** - * - This is boolean to get buy_now cart - */ buyNow?: boolean; - /** - * - Type of the cart - */ - cartType?: string; body: CartApplicationModel.RewardPointRequest; }; type CheckoutCartParam = { @@ -374,10 +292,6 @@ type CheckoutCartParam = { * - This indicates the type of cart to checkout */ buyNow?: boolean; - /** - * - The type of cart - */ - cartType?: string; body: CartApplicationModel.CartCheckoutDetailRequest; }; type CheckoutCartV2Param = { @@ -385,10 +299,6 @@ type CheckoutCartV2Param = { * - This indicates the type of cart to checkout */ buyNow?: boolean; - /** - * - The type of cart - */ - cartType?: string; body: CartApplicationModel.CartCheckoutDetailV2Request; }; type DeleteCartParam = { @@ -396,10 +306,6 @@ type DeleteCartParam = { * - The unique identifier of the cart. */ id?: string; - /** - * - The type of cart - */ - cartType?: string; }; type GetAddressByIdParam = { id: string; @@ -437,58 +343,19 @@ type GetBulkDiscountOffersParam = { * /service/application/catalog/v1.0/products/ */ slug?: string; - /** - * - Type of the cart - */ - cartType?: string; }; type GetCartParam = { - /** - * - The unique identifier of the cart - */ id?: string; - /** - * - This is a boolean value. Select `true` to retrieve - * all the items added in the cart. - */ i?: boolean; - /** - * - This is a boolean value. Select `true` to retrieve - * the price breakup of cart items. - */ b?: boolean; - /** - * - This is a boolean value. Select `true` to retrieve - * the cod charges in breakup of cart items. - */ c?: boolean; - /** - * - Token of user's debit or credit card - */ assignCardId?: number; - /** - * - Customer servicable area_code - */ areaCode?: string; - /** - * - This is a boolen value. Select `true` to - * set/initialize buy now cart - */ buyNow?: boolean; - /** - * - The type of cart - */ - cartType?: string; }; type GetCartLastModifiedParam = { id?: string; }; -type GetCartMetaConfigParam = { - /** - * - CartMeta mongo id for fetching single cart meta data - */ - cartMetaId: string; -}; type GetCartShareLinkParam = { body: CartApplicationModel.GetShareCartLinkRequest; }; @@ -511,16 +378,6 @@ type GetItemCountParam = { id?: string; buyNow?: boolean; }; -type GetItemCountV2Param = { - /** - * - The unique identifier of the cart - */ - id?: string; - /** - * - Boolean value to get buy_now cart - */ - buyNow?: boolean; -}; type GetLadderOffersParam = { /** * - A short, human-readable, URL-friendly identifier of @@ -562,10 +419,6 @@ type GetPromotionOffersParam = { * - Store id */ storeId?: number; - /** - * - The type of cart - */ - cartType?: string; }; type GetShipmentsParam = { /** @@ -601,18 +454,8 @@ type RemoveAddressParam = { id: string; }; type RemoveCouponParam = { - /** - * - The unique identifier of the cart - */ id?: string; - /** - * - This is boolean to get buy_now cart - */ buyNow?: boolean; - /** - * - The type of cart - */ - cartType?: string; }; type SelectAddressParam = { cartId?: string; @@ -634,33 +477,11 @@ type UpdateAddressParam = { body: CartApplicationModel.Address; }; type UpdateCartParam = { - /** - * - The unique identifier of the cart - */ id?: string; - /** - * - This is a boolean value. Select `true` to retrieve - * all the items added in the cart. - */ i?: boolean; - /** - * - This is a boolean value. Select `true` to retrieve - * the price breakup of cart items. - */ b?: boolean; - /** - * - Customer servicable area_code - */ areaCode?: string; - /** - * - This is a boolen value. Select `true` to - * set/initialize buy now cart - */ buyNow?: boolean; - /** - * - The type of cart - */ - cartType?: string; body: CartApplicationModel.UpdateCartRequest; }; type UpdateCartMetaParam = { @@ -679,55 +500,16 @@ type UpdateCartWithSharedItemsParam = { action: string; }; type ValidateCouponForPaymentParam = { - /** - * - The unique identifier of the cart - */ id?: string; - /** - * - This is boolean to get buy_now cart - */ buyNow?: boolean; - /** - * - ID allotted to an address - */ addressId?: string; - /** - * - Payment mode selected by the customer - */ paymentMode?: string; - /** - * - Identifier of payment like ICIC, PAYTM - */ paymentIdentifier?: string; - /** - * - Payment gateway identifier - */ aggregatorName?: string; - /** - * - Identifier used by payment gateway for a - * given payment mode, e.g. NB_ICIC, PAYTM - */ merchantCode?: string; - /** - * - Debit/Credit card prefix (first 6 digit) - */ iin?: string; - /** - * - Credit/Debit card issuer, e.g. VISA, MASTERCARD, RUPAY - */ network?: string; - /** - * - Card type, e.g. Credit, Debit - */ type?: string; - /** - * - Saved card token reference id - */ cardId?: string; - /** - * - Type of the cart - */ - cartType?: string; }; -type GetCartMetaConfigsParam = any; -import CartApplicationModel = require("sdk/output/javascript/code/sdk/application/Cart/CartApplicationModel"); +import CartApplicationModel = require("./CartApplicationModel"); diff --git a/sdk/application/Cart/CartApplicationValidator.js b/sdk/application/Cart/CartApplicationValidator.js index 73905a70a..ea50f56b1 100644 --- a/sdk/application/Cart/CartApplicationValidator.js +++ b/sdk/application/Cart/CartApplicationValidator.js @@ -9,15 +9,11 @@ const CartApplicationModel = require("./CartApplicationModel"); /** * @typedef AddItemsParam - * @property {boolean} [i] - This is a boolean value. Select `true` to retrieve - * all the items added in the cart. - * @property {boolean} [b] - This is a boolean value. Select `true` to retrieve - * the price breakup of cart items. - * @property {string} [areaCode] - Customer servicable area_code - * @property {boolean} [buyNow] - This is a boolen value. Select `true` to - * set/initialize buy now cart - * @property {string} [id] - The unique identifier of the cart - * @property {string} [cartType] - The type of cart + * @property {boolean} [i] + * @property {boolean} [b] + * @property {string} [areaCode] + * @property {boolean} [buyNow] + * @property {string} [id] * @property {CartApplicationModel.AddCartRequest} body */ @@ -28,40 +24,33 @@ const CartApplicationModel = require("./CartApplicationModel"); * @property {boolean} [p] * @property {string} [id] * @property {boolean} [buyNow] - * @property {string} [cartType] * @property {CartApplicationModel.ApplyCouponRequest} body */ /** * @typedef ApplyRewardPointsParam - * @property {string} [id] - The unique identifier of the cart - * @property {boolean} [i] - This is a boolean value. Select `true` to retrieve - * all the items added in the cart. - * @property {boolean} [b] - This is a boolean value. Select `true` to retrieve - * the price breakup of cart items. - * @property {boolean} [buyNow] - This is boolean to get buy_now cart - * @property {string} [cartType] - Type of the cart + * @property {string} [id] + * @property {boolean} [i] + * @property {boolean} [b] + * @property {boolean} [buyNow] * @property {CartApplicationModel.RewardPointRequest} body */ /** * @typedef CheckoutCartParam * @property {boolean} [buyNow] - This indicates the type of cart to checkout - * @property {string} [cartType] - The type of cart * @property {CartApplicationModel.CartCheckoutDetailRequest} body */ /** * @typedef CheckoutCartV2Param * @property {boolean} [buyNow] - This indicates the type of cart to checkout - * @property {string} [cartType] - The type of cart * @property {CartApplicationModel.CartCheckoutDetailV2Request} body */ /** * @typedef DeleteCartParam * @property {string} [id] - The unique identifier of the cart. - * @property {string} [cartType] - The type of cart */ /** @@ -93,23 +82,17 @@ const CartApplicationModel = require("./CartApplicationModel"); * @property {string} [slug] - A short, human-readable, URL-friendly identifier * of a product. You can get slug value from the endpoint * /service/application/catalog/v1.0/products/ - * @property {string} [cartType] - Type of the cart */ /** * @typedef GetCartParam - * @property {string} [id] - The unique identifier of the cart - * @property {boolean} [i] - This is a boolean value. Select `true` to retrieve - * all the items added in the cart. - * @property {boolean} [b] - This is a boolean value. Select `true` to retrieve - * the price breakup of cart items. - * @property {boolean} [c] - This is a boolean value. Select `true` to retrieve - * the cod charges in breakup of cart items. - * @property {number} [assignCardId] - Token of user's debit or credit card - * @property {string} [areaCode] - Customer servicable area_code - * @property {boolean} [buyNow] - This is a boolen value. Select `true` to - * set/initialize buy now cart - * @property {string} [cartType] - The type of cart + * @property {string} [id] + * @property {boolean} [i] + * @property {boolean} [b] + * @property {boolean} [c] + * @property {number} [assignCardId] + * @property {string} [areaCode] + * @property {boolean} [buyNow] */ /** @@ -117,13 +100,6 @@ const CartApplicationModel = require("./CartApplicationModel"); * @property {string} [id] */ -/** - * @typedef GetCartMetaConfigParam - * @property {string} cartMetaId - CartMeta mongo id for fetching single cart meta data - */ - -/** @typedef GetCartMetaConfigsParam */ - /** * @typedef GetCartShareLinkParam * @property {CartApplicationModel.GetShareCartLinkRequest} body @@ -148,12 +124,6 @@ const CartApplicationModel = require("./CartApplicationModel"); * @property {boolean} [buyNow] */ -/** - * @typedef GetItemCountV2Param - * @property {string} [id] - The unique identifier of the cart - * @property {boolean} [buyNow] - Boolean value to get buy_now cart - */ - /** * @typedef GetLadderOffersParam * @property {string} slug - A short, human-readable, URL-friendly identifier of @@ -174,7 +144,6 @@ const CartApplicationModel = require("./CartApplicationModel"); * @property {number} [pageSize] - Number of offers to be fetched to show * @property {string} [promotionGroup] - Type of promotion groups * @property {number} [storeId] - Store id - * @property {string} [cartType] - The type of cart */ /** @@ -198,9 +167,8 @@ const CartApplicationModel = require("./CartApplicationModel"); /** * @typedef RemoveCouponParam - * @property {string} [id] - The unique identifier of the cart - * @property {boolean} [buyNow] - This is boolean to get buy_now cart - * @property {string} [cartType] - The type of cart + * @property {string} [id] + * @property {boolean} [buyNow] */ /** @@ -227,15 +195,11 @@ const CartApplicationModel = require("./CartApplicationModel"); /** * @typedef UpdateCartParam - * @property {string} [id] - The unique identifier of the cart - * @property {boolean} [i] - This is a boolean value. Select `true` to retrieve - * all the items added in the cart. - * @property {boolean} [b] - This is a boolean value. Select `true` to retrieve - * the price breakup of cart items. - * @property {string} [areaCode] - Customer servicable area_code - * @property {boolean} [buyNow] - This is a boolen value. Select `true` to - * set/initialize buy now cart - * @property {string} [cartType] - The type of cart + * @property {string} [id] + * @property {boolean} [i] + * @property {boolean} [b] + * @property {string} [areaCode] + * @property {boolean} [buyNow] * @property {CartApplicationModel.UpdateCartRequest} body */ @@ -254,19 +218,17 @@ const CartApplicationModel = require("./CartApplicationModel"); /** * @typedef ValidateCouponForPaymentParam - * @property {string} [id] - The unique identifier of the cart - * @property {boolean} [buyNow] - This is boolean to get buy_now cart - * @property {string} [addressId] - ID allotted to an address - * @property {string} [paymentMode] - Payment mode selected by the customer - * @property {string} [paymentIdentifier] - Identifier of payment like ICIC, PAYTM - * @property {string} [aggregatorName] - Payment gateway identifier - * @property {string} [merchantCode] - Identifier used by payment gateway for a - * given payment mode, e.g. NB_ICIC, PAYTM - * @property {string} [iin] - Debit/Credit card prefix (first 6 digit) - * @property {string} [network] - Credit/Debit card issuer, e.g. VISA, MASTERCARD, RUPAY - * @property {string} [type] - Card type, e.g. Credit, Debit - * @property {string} [cardId] - Saved card token reference id - * @property {string} [cartType] - Type of the cart + * @property {string} [id] + * @property {boolean} [buyNow] + * @property {string} [addressId] + * @property {string} [paymentMode] + * @property {string} [paymentIdentifier] + * @property {string} [aggregatorName] + * @property {string} [merchantCode] + * @property {string} [iin] + * @property {string} [network] + * @property {string} [type] + * @property {string} [cardId] */ class CartApplicationValidator { @@ -285,7 +247,6 @@ class CartApplicationValidator { areaCode: Joi.string().allow(""), buyNow: Joi.boolean(), id: Joi.string().allow(""), - cartType: Joi.string().allow(""), body: CartApplicationModel.AddCartRequest().required(), }).required(); } @@ -298,7 +259,6 @@ class CartApplicationValidator { p: Joi.boolean(), id: Joi.string().allow(""), buyNow: Joi.boolean(), - cartType: Joi.string().allow(""), body: CartApplicationModel.ApplyCouponRequest().required(), }).required(); } @@ -310,7 +270,6 @@ class CartApplicationValidator { i: Joi.boolean(), b: Joi.boolean(), buyNow: Joi.boolean(), - cartType: Joi.string().allow(""), body: CartApplicationModel.RewardPointRequest().required(), }).required(); } @@ -319,7 +278,6 @@ class CartApplicationValidator { static checkoutCart() { return Joi.object({ buyNow: Joi.boolean(), - cartType: Joi.string().allow(""), body: CartApplicationModel.CartCheckoutDetailRequest().required(), }).required(); } @@ -328,7 +286,6 @@ class CartApplicationValidator { static checkoutCartV2() { return Joi.object({ buyNow: Joi.boolean(), - cartType: Joi.string().allow(""), body: CartApplicationModel.CartCheckoutDetailV2Request().required(), }).required(); } @@ -337,7 +294,6 @@ class CartApplicationValidator { static deleteCart() { return Joi.object({ id: Joi.string().allow(""), - cartType: Joi.string().allow(""), }); } @@ -373,7 +329,6 @@ class CartApplicationValidator { articleId: Joi.string().allow(""), uid: Joi.number(), slug: Joi.string().allow(""), - cartType: Joi.string().allow(""), }); } @@ -387,7 +342,6 @@ class CartApplicationValidator { assignCardId: Joi.number(), areaCode: Joi.string().allow(""), buyNow: Joi.boolean(), - cartType: Joi.string().allow(""), }); } @@ -398,18 +352,6 @@ class CartApplicationValidator { }); } - /** @returns {GetCartMetaConfigParam} */ - static getCartMetaConfig() { - return Joi.object({ - cartMetaId: Joi.string().allow("").required(), - }).required(); - } - - /** @returns {GetCartMetaConfigsParam} */ - static getCartMetaConfigs() { - return Joi.object({}); - } - /** @returns {GetCartShareLinkParam} */ static getCartShareLink() { return Joi.object({ @@ -442,14 +384,6 @@ class CartApplicationValidator { }); } - /** @returns {GetItemCountV2Param} */ - static getItemCountV2() { - return Joi.object({ - id: Joi.string().allow(""), - buyNow: Joi.boolean(), - }); - } - /** @returns {GetLadderOffersParam} */ static getLadderOffers() { return Joi.object({ @@ -467,7 +401,6 @@ class CartApplicationValidator { pageSize: Joi.number(), promotionGroup: Joi.string().allow(""), storeId: Joi.number(), - cartType: Joi.string().allow(""), }); } @@ -495,7 +428,6 @@ class CartApplicationValidator { return Joi.object({ id: Joi.string().allow(""), buyNow: Joi.boolean(), - cartType: Joi.string().allow(""), }); } @@ -535,7 +467,6 @@ class CartApplicationValidator { b: Joi.boolean(), areaCode: Joi.string().allow(""), buyNow: Joi.boolean(), - cartType: Joi.string().allow(""), body: CartApplicationModel.UpdateCartRequest().required(), }).required(); } @@ -571,7 +502,6 @@ class CartApplicationValidator { network: Joi.string().allow(""), type: Joi.string().allow(""), cardId: Joi.string().allow(""), - cartType: Joi.string().allow(""), }); } } diff --git a/sdk/application/Catalog/CatalogApplicationClient.d.ts b/sdk/application/Catalog/CatalogApplicationClient.d.ts index c3c8e1956..7b645eafb 100644 --- a/sdk/application/Catalog/CatalogApplicationClient.d.ts +++ b/sdk/application/Catalog/CatalogApplicationClient.d.ts @@ -362,7 +362,7 @@ declare class Catalog { * @summary: Get the price of a product size at a PIN Code * @description: Prices may vary for different sizes of a product. Use this API to retrieve 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/). */ - getProductPriceBySlug({ slug, size, storeId, exchangeSellerIdentifier, moq, sellerId, requestHeaders, }?: CatalogApplicationValidator.GetProductPriceBySlugParam, { responseHeaders }?: object): Promise; + getProductPriceBySlug({ slug, size, storeId, moq, requestHeaders }?: CatalogApplicationValidator.GetProductPriceBySlugParam, { responseHeaders }?: object): Promise; /** * @param {CatalogApplicationValidator.GetProductSellersBySlugParam} arg - Arg object. * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -498,7 +498,7 @@ declare class Catalog { * @summary: Get relevant suggestions for a search query * @description: Retrieves a list of suggestions for a given search query. Each suggestion is a valid search term that's generated on the basis of query. This is particularly useful to enhance the user experience while using the search tool. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getSearchResults/). */ - getSearchResults({ q, categorySuggestion, brandSuggestion, collectionSuggestion, productSuggestion, querySuggestion, requestHeaders, }?: CatalogApplicationValidator.GetSearchResultsParam, { responseHeaders }?: object): Promise; + getSearchResults({ q, requestHeaders }?: CatalogApplicationValidator.GetSearchResultsParam, { responseHeaders }?: object): Promise; /** * @param {CatalogApplicationValidator.GetSimilarComparisonProductBySlugParam} arg * - Arg object. @@ -558,6 +558,6 @@ declare class Catalog { */ unfollowById({ collectionType, collectionId, requestHeaders }?: CatalogApplicationValidator.UnfollowByIdParam, { responseHeaders }?: object): Promise; } -import CatalogApplicationValidator = require("sdk/output/javascript/code/sdk/application/Catalog/CatalogApplicationValidator"); -import CatalogApplicationModel = require("sdk/output/javascript/code/sdk/application/Catalog/CatalogApplicationModel"); -import Paginator = require("sdk/output/javascript/code/sdk/common/Paginator"); +import CatalogApplicationValidator = require("./CatalogApplicationValidator"); +import CatalogApplicationModel = require("./CatalogApplicationModel"); +import Paginator = require("../../common/Paginator"); diff --git a/sdk/application/Catalog/CatalogApplicationClient.js b/sdk/application/Catalog/CatalogApplicationClient.js index ff0626ca4..d825d4556 100644 --- a/sdk/application/Catalog/CatalogApplicationClient.js +++ b/sdk/application/Catalog/CatalogApplicationClient.js @@ -1894,21 +1894,13 @@ class Catalog { * @description: Prices may vary for different sizes of a product. Use this API to retrieve 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/). */ async getProductPriceBySlug( - { - slug, - size, - storeId, - exchangeSellerIdentifier, - moq, - sellerId, - requestHeaders, - } = { requestHeaders: {} }, + { slug, size, storeId, moq, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, } = CatalogApplicationValidator.getProductPriceBySlug().validate( - { slug, size, storeId, exchangeSellerIdentifier, moq, sellerId }, + { slug, size, storeId, moq }, { abortEarly: false, allowUnknown: true } ); if (error) { @@ -1919,7 +1911,7 @@ class Catalog { const { error: warrning, } = CatalogApplicationValidator.getProductPriceBySlug().validate( - { slug, size, storeId, exchangeSellerIdentifier, moq, sellerId }, + { slug, size, storeId, moq }, { abortEarly: false, allowUnknown: false } ); if (warrning) { @@ -1931,9 +1923,7 @@ class Catalog { const query_params = {}; query_params["store_id"] = storeId; - query_params["exchange_seller_identifier"] = exchangeSellerIdentifier; query_params["moq"] = moq; - query_params["seller_id"] = sellerId; const xHeaders = {}; @@ -2615,26 +2605,11 @@ class Catalog { * @description: Retrieves a list of suggestions for a given search query. Each suggestion is a valid search term that's generated on the basis of query. This is particularly useful to enhance the user experience while using the search tool. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getSearchResults/). */ async getSearchResults( - { - q, - categorySuggestion, - brandSuggestion, - collectionSuggestion, - productSuggestion, - querySuggestion, - requestHeaders, - } = { requestHeaders: {} }, + { q, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error } = CatalogApplicationValidator.getSearchResults().validate( - { - q, - categorySuggestion, - brandSuggestion, - collectionSuggestion, - productSuggestion, - querySuggestion, - }, + { q }, { abortEarly: false, allowUnknown: true } ); if (error) { @@ -2645,14 +2620,7 @@ class Catalog { const { error: warrning, } = CatalogApplicationValidator.getSearchResults().validate( - { - q, - categorySuggestion, - brandSuggestion, - collectionSuggestion, - productSuggestion, - querySuggestion, - }, + { q }, { abortEarly: false, allowUnknown: false } ); if (warrning) { @@ -2664,11 +2632,6 @@ class Catalog { const query_params = {}; query_params["q"] = q; - query_params["category_suggestion"] = categorySuggestion; - query_params["brand_suggestion"] = brandSuggestion; - query_params["collection_suggestion"] = collectionSuggestion; - query_params["product_suggestion"] = productSuggestion; - query_params["query_suggestion"] = querySuggestion; const xHeaders = {}; diff --git a/sdk/application/Catalog/CatalogApplicationModel.d.ts b/sdk/application/Catalog/CatalogApplicationModel.d.ts index 12fadcd16..6eea1afa3 100644 --- a/sdk/application/Catalog/CatalogApplicationModel.d.ts +++ b/sdk/application/Catalog/CatalogApplicationModel.d.ts @@ -95,7 +95,6 @@ export = CatalogApplicationModel; * @typedef ProductListingPrice * @property {Price} [effective] * @property {Price} [marked] - * @property {Price} [selling] */ /** * @typedef ProductSizesPrice @@ -355,7 +354,6 @@ export = CatalogApplicationModel; * @property {string[]} [similars] * @property {string[]} [tags] * @property {ApplicationItemSEO} [seo] - * @property {DiscountMeta} [discount_meta] * @property {string} [image_nature] * @property {boolean} [has_variant] * @property {string} [item_type] @@ -1131,7 +1129,6 @@ declare function ProductListingPrice(): ProductListingPrice; type ProductListingPrice = { effective?: Price; marked?: Price; - selling?: Price; }; /** @returns {ProductSizesPrice} */ declare function ProductSizesPrice(): ProductSizesPrice; @@ -1458,7 +1455,6 @@ type ProductListingDetail = { similars?: string[]; tags?: string[]; seo?: ApplicationItemSEO; - discount_meta?: DiscountMeta; image_nature?: string; has_variant?: boolean; item_type?: string; diff --git a/sdk/application/Catalog/CatalogApplicationModel.js b/sdk/application/Catalog/CatalogApplicationModel.js index 1cbdbd727..c32afa31d 100644 --- a/sdk/application/Catalog/CatalogApplicationModel.js +++ b/sdk/application/Catalog/CatalogApplicationModel.js @@ -111,7 +111,6 @@ const Joi = require("joi"); * @typedef ProductListingPrice * @property {Price} [effective] * @property {Price} [marked] - * @property {Price} [selling] */ /** @@ -402,7 +401,6 @@ const Joi = require("joi"); * @property {string[]} [similars] * @property {string[]} [tags] * @property {ApplicationItemSEO} [seo] - * @property {DiscountMeta} [discount_meta] * @property {string} [image_nature] * @property {boolean} [has_variant] * @property {string} [item_type] @@ -1236,7 +1234,6 @@ class CatalogApplicationModel { return Joi.object({ effective: CatalogApplicationModel.Price(), marked: CatalogApplicationModel.Price(), - selling: CatalogApplicationModel.Price(), }); } @@ -1609,7 +1606,6 @@ class CatalogApplicationModel { similars: Joi.array().items(Joi.string().allow("")), tags: Joi.array().items(Joi.string().allow("")), seo: CatalogApplicationModel.ApplicationItemSEO(), - discount_meta: CatalogApplicationModel.DiscountMeta(), image_nature: Joi.string().allow(""), has_variant: Joi.boolean(), item_type: Joi.string().allow(""), diff --git a/sdk/application/Catalog/CatalogApplicationValidator.d.ts b/sdk/application/Catalog/CatalogApplicationValidator.d.ts index e8b30f379..abe134e38 100644 --- a/sdk/application/Catalog/CatalogApplicationValidator.d.ts +++ b/sdk/application/Catalog/CatalogApplicationValidator.d.ts @@ -148,12 +148,8 @@ export = CatalogApplicationValidator; * /service/application/catalog/v1.0/products/sizes * @property {number} [storeId] - The ID of the store that is selling the * product, e.g. 1,2,3. - * @property {string} [exchangeSellerIdentifier] - The seller identifier of the - * exchange product. * @property {number} [moq] - An Integer indication the Minimum Order Quantity * of a product, e.g. 100. - * @property {number} [sellerId] - The ID of the seller that is selling the - * product, e.g. 1,2,3. */ /** * @typedef GetProductSellersBySlugParam @@ -222,15 +218,10 @@ export = CatalogApplicationValidator; */ /** * @typedef GetSearchResultsParam - * @property {string} [q] - The search query for entering partial or full name - * of a product, brand or category. For example, if the given search query `q` - * is _ski_, the relevant search suggestions could be _skirt_, _ski shoes_, + * @property {string} q - The search query for entering partial or full name of + * a product, brand or category. For example, if the given search query `q` is + * _ski_, the relevant search suggestions could be _skirt_, _ski shoes_, * __skin cream_ etc. - * @property {number} [categorySuggestion] - For getting related category suggestions. - * @property {number} [brandSuggestion] - For getting related brand suggestions. - * @property {number} [collectionSuggestion] - For getting related collection suggestions. - * @property {number} [productSuggestion] - For getting related product suggestions. - * @property {number} [querySuggestion] - For getting related query suggestions. */ /** * @typedef GetSimilarComparisonProductBySlugParam @@ -594,21 +585,11 @@ type GetProductPriceBySlugParam = { * product, e.g. 1,2,3. */ storeId?: number; - /** - * - The seller identifier of the - * exchange product. - */ - exchangeSellerIdentifier?: string; /** * - An Integer indication the Minimum Order Quantity * of a product, e.g. 100. */ moq?: number; - /** - * - The ID of the seller that is selling the - * product, e.g. 1,2,3. - */ - sellerId?: number; }; type GetProductSellersBySlugParam = { /** @@ -743,32 +724,12 @@ type GetProductsParam = { }; type GetSearchResultsParam = { /** - * - The search query for entering partial or full name - * of a product, brand or category. For example, if the given search query `q` - * is _ski_, the relevant search suggestions could be _skirt_, _ski shoes_, + * - The search query for entering partial or full name of + * a product, brand or category. For example, if the given search query `q` is + * _ski_, the relevant search suggestions could be _skirt_, _ski shoes_, * __skin cream_ etc. */ - q?: string; - /** - * - For getting related category suggestions. - */ - categorySuggestion?: number; - /** - * - For getting related brand suggestions. - */ - brandSuggestion?: number; - /** - * - For getting related collection suggestions. - */ - collectionSuggestion?: number; - /** - * - For getting related product suggestions. - */ - productSuggestion?: number; - /** - * - For getting related query suggestions. - */ - querySuggestion?: number; + q: string; }; type GetSimilarComparisonProductBySlugParam = { /** diff --git a/sdk/application/Catalog/CatalogApplicationValidator.js b/sdk/application/Catalog/CatalogApplicationValidator.js index 8d359ac53..1c5e35463 100644 --- a/sdk/application/Catalog/CatalogApplicationValidator.js +++ b/sdk/application/Catalog/CatalogApplicationValidator.js @@ -170,12 +170,8 @@ const CatalogApplicationModel = require("./CatalogApplicationModel"); * /service/application/catalog/v1.0/products/sizes * @property {number} [storeId] - The ID of the store that is selling the * product, e.g. 1,2,3. - * @property {string} [exchangeSellerIdentifier] - The seller identifier of the - * exchange product. * @property {number} [moq] - An Integer indication the Minimum Order Quantity * of a product, e.g. 100. - * @property {number} [sellerId] - The ID of the seller that is selling the - * product, e.g. 1,2,3. */ /** @@ -251,15 +247,10 @@ const CatalogApplicationModel = require("./CatalogApplicationModel"); /** * @typedef GetSearchResultsParam - * @property {string} [q] - The search query for entering partial or full name - * of a product, brand or category. For example, if the given search query `q` - * is _ski_, the relevant search suggestions could be _skirt_, _ski shoes_, + * @property {string} q - The search query for entering partial or full name of + * a product, brand or category. For example, if the given search query `q` is + * _ski_, the relevant search suggestions could be _skirt_, _ski shoes_, * __skin cream_ etc. - * @property {number} [categorySuggestion] - For getting related category suggestions. - * @property {number} [brandSuggestion] - For getting related brand suggestions. - * @property {number} [collectionSuggestion] - For getting related collection suggestions. - * @property {number} [productSuggestion] - For getting related product suggestions. - * @property {number} [querySuggestion] - For getting related query suggestions. */ /** @@ -456,9 +447,7 @@ class CatalogApplicationValidator { slug: Joi.string().allow("").required(), size: Joi.string().allow("").required(), storeId: Joi.number(), - exchangeSellerIdentifier: Joi.string().allow(""), moq: Joi.number(), - sellerId: Joi.number(), }).required(); } @@ -525,13 +514,8 @@ class CatalogApplicationValidator { /** @returns {GetSearchResultsParam} */ static getSearchResults() { return Joi.object({ - q: Joi.string().allow(""), - categorySuggestion: Joi.number(), - brandSuggestion: Joi.number(), - collectionSuggestion: Joi.number(), - productSuggestion: Joi.number(), - querySuggestion: Joi.number(), - }); + q: Joi.string().allow("").required(), + }).required(); } /** @returns {GetSimilarComparisonProductBySlugParam} */ diff --git a/sdk/application/Common/CommonApplicationClient.d.ts b/sdk/application/Common/CommonApplicationClient.d.ts index 6491c9648..751ea9cda 100644 --- a/sdk/application/Common/CommonApplicationClient.d.ts +++ b/sdk/application/Common/CommonApplicationClient.d.ts @@ -29,5 +29,5 @@ declare class Common { */ searchApplication({ authorization, query, requestHeaders }?: CommonApplicationValidator.SearchApplicationParam, { responseHeaders }?: object): Promise; } -import CommonApplicationValidator = require("sdk/output/javascript/code/sdk/application/Common/CommonApplicationValidator"); -import CommonApplicationModel = require("sdk/output/javascript/code/sdk/application/Common/CommonApplicationModel"); +import CommonApplicationValidator = require("./CommonApplicationValidator"); +import CommonApplicationModel = require("./CommonApplicationModel"); diff --git a/sdk/application/Communication/CommunicationApplicationClient.d.ts b/sdk/application/Communication/CommunicationApplicationClient.d.ts index dc9feee8c..33819e78c 100644 --- a/sdk/application/Communication/CommunicationApplicationClient.d.ts +++ b/sdk/application/Communication/CommunicationApplicationClient.d.ts @@ -48,5 +48,5 @@ declare class Communication { */ upsertCommunicationConsent({ body, requestHeaders }?: CommunicationApplicationValidator.UpsertCommunicationConsentParam, { responseHeaders }?: object): Promise; } -import CommunicationApplicationModel = require("sdk/output/javascript/code/sdk/application/Communication/CommunicationApplicationModel"); -import CommunicationApplicationValidator = require("sdk/output/javascript/code/sdk/application/Communication/CommunicationApplicationValidator"); +import CommunicationApplicationModel = require("./CommunicationApplicationModel"); +import CommunicationApplicationValidator = require("./CommunicationApplicationValidator"); diff --git a/sdk/application/Communication/CommunicationApplicationValidator.d.ts b/sdk/application/Communication/CommunicationApplicationValidator.d.ts index 1600467f4..eac69f19e 100644 --- a/sdk/application/Communication/CommunicationApplicationValidator.d.ts +++ b/sdk/application/Communication/CommunicationApplicationValidator.d.ts @@ -26,4 +26,4 @@ type UpsertCommunicationConsentParam = { body: CommunicationApplicationModel.CommunicationConsentReq; }; type GetCommunicationConsentParam = any; -import CommunicationApplicationModel = require("sdk/output/javascript/code/sdk/application/Communication/CommunicationApplicationModel"); +import CommunicationApplicationModel = require("./CommunicationApplicationModel"); diff --git a/sdk/application/Configuration/ConfigurationApplicationClient.d.ts b/sdk/application/Configuration/ConfigurationApplicationClient.d.ts index 5779d68c3..33f922efb 100644 --- a/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +++ b/sdk/application/Configuration/ConfigurationApplicationClient.d.ts @@ -240,6 +240,6 @@ declare class Configuration { */ removeOrderingStoreCookie({ requestHeaders }?: any, { responseHeaders }?: object): Promise; } -import ConfigurationApplicationModel = require("sdk/output/javascript/code/sdk/application/Configuration/ConfigurationApplicationModel"); -import ConfigurationApplicationValidator = require("sdk/output/javascript/code/sdk/application/Configuration/ConfigurationApplicationValidator"); -import Paginator = require("sdk/output/javascript/code/sdk/common/Paginator"); +import ConfigurationApplicationModel = require("./ConfigurationApplicationModel"); +import ConfigurationApplicationValidator = require("./ConfigurationApplicationValidator"); +import Paginator = require("../../common/Paginator"); diff --git a/sdk/application/Configuration/ConfigurationApplicationModel.d.ts b/sdk/application/Configuration/ConfigurationApplicationModel.d.ts index 90a1cbc49..f44079f79 100644 --- a/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +++ b/sdk/application/Configuration/ConfigurationApplicationModel.d.ts @@ -287,7 +287,6 @@ export = ConfigurationApplicationModel; * @property {QrFeature} [qr] * @property {PcrFeature} [pcr] * @property {OrderFeature} [order] - * @property {BuyboxFeature} [buybox] * @property {string} [_id] - The unique identifier (24-digit Mongo Object ID) * for the sales channel features * @property {string} [app] - Application ID of the sales channel @@ -395,16 +394,6 @@ export = ConfigurationApplicationModel; * @property {boolean} [buy_again] - Allow buy again option for order. Default * value is false. */ -/** - * @typedef BuyboxFeature - * @property {boolean} [show_name] - Allow users to see seller/stores name on - * PDP (product detail page). - * @property {boolean} [enable_selection] - Allow selection of sellers/stores on - * PDP (product detail page). - * @property {boolean} [is_seller_buybox_enabled] - Toggle buybox listing - * between sellers and stores. True indicates seller listing, while False - * indicates store listing. - */ /** * @typedef AppFeatureResponse * @property {AppFeature} [feature] @@ -794,7 +783,7 @@ export = ConfigurationApplicationModel; declare class ConfigurationApplicationModel { } declare namespace ConfigurationApplicationModel { - export { ApplicationAboutResponse, ApplicationInfo, CompanyInfo, OwnerInfo, SupportedLanguage, LanguageResponse, AppStaffResponse, AppStaffListResponse, OrderingStoreSelectRequest, OrderingStoreSelect, AppStaff, AppTokenResponse, Tokens, Firebase, Credentials, Ios, Android, Moengage, MoengageCredentials, Segment, SegmentCredentials, Gtm, GtmCredentials, Freshchat, FreshchatCredentials, Safetynet, SafetynetCredentials, FyndRewards, FyndRewardsCredentials, GoogleMap, GoogleMapCredentials, RewardPointsConfig, Credit, Debit, ProductDetailFeature, LaunchPage, LandingPageFeature, RegistrationPageFeature, AppFeature, HomePageFeature, CommonFeature, InternationalShipping, CommunicationOptinDialogFeature, DeploymentStoreSelectionFeature, ListingPriceFeature, ListingPageFeature, CurrencyFeature, RevenueEngineFeature, FeedbackFeature, CompareProductsFeature, CartFeature, QrFeature, PcrFeature, OrderFeature, BuyboxFeature, AppFeatureResponse, Currency, Domain, ApplicationWebsite, ApplicationCors, ApplicationAuth, ApplicationRedirections, ApplicationMeta, SecureUrl, Application, TokenSchema, NotFound, InvalidPayloadRequest, UnhandledError, SuccessMessageResponse, CompanyAboutAddress, UserEmail, UserPhoneNumber, Page, ApplicationInformation, InformationAddress, InformationPhone, InformationSupportPhone, InformationSupportEmail, InformationLoc, InformationSupport, SocialLinks, FacebookLink, InstagramLink, TwitterLink, PinterestLink, GooglePlusLink, YoutubeLink, LinkedInLink, VimeoLink, BlogLink, Links, BusinessHighlights, ApplicationDetail, CurrenciesResponse, DefaultCurrency, AppCurrencyResponse, StoreLatLong, OptedStoreAddress, OrderingStore, OrderingStores }; + export { ApplicationAboutResponse, ApplicationInfo, CompanyInfo, OwnerInfo, SupportedLanguage, LanguageResponse, AppStaffResponse, AppStaffListResponse, OrderingStoreSelectRequest, OrderingStoreSelect, AppStaff, AppTokenResponse, Tokens, Firebase, Credentials, Ios, Android, Moengage, MoengageCredentials, Segment, SegmentCredentials, Gtm, GtmCredentials, Freshchat, FreshchatCredentials, Safetynet, SafetynetCredentials, FyndRewards, FyndRewardsCredentials, GoogleMap, GoogleMapCredentials, RewardPointsConfig, Credit, Debit, ProductDetailFeature, LaunchPage, LandingPageFeature, RegistrationPageFeature, AppFeature, HomePageFeature, CommonFeature, InternationalShipping, CommunicationOptinDialogFeature, DeploymentStoreSelectionFeature, ListingPriceFeature, ListingPageFeature, CurrencyFeature, RevenueEngineFeature, FeedbackFeature, CompareProductsFeature, CartFeature, QrFeature, PcrFeature, OrderFeature, AppFeatureResponse, Currency, Domain, ApplicationWebsite, ApplicationCors, ApplicationAuth, ApplicationRedirections, ApplicationMeta, SecureUrl, Application, TokenSchema, NotFound, InvalidPayloadRequest, UnhandledError, SuccessMessageResponse, CompanyAboutAddress, UserEmail, UserPhoneNumber, Page, ApplicationInformation, InformationAddress, InformationPhone, InformationSupportPhone, InformationSupportEmail, InformationLoc, InformationSupport, SocialLinks, FacebookLink, InstagramLink, TwitterLink, PinterestLink, GooglePlusLink, YoutubeLink, LinkedInLink, VimeoLink, BlogLink, Links, BusinessHighlights, ApplicationDetail, CurrenciesResponse, DefaultCurrency, AppCurrencyResponse, StoreLatLong, OptedStoreAddress, OrderingStore, OrderingStores }; } /** @returns {ApplicationAboutResponse} */ declare function ApplicationAboutResponse(): ApplicationAboutResponse; @@ -1339,7 +1328,6 @@ type AppFeature = { qr?: QrFeature; pcr?: PcrFeature; order?: OrderFeature; - buybox?: BuyboxFeature; /** * - The unique identifier (24-digit Mongo Object ID) * for the sales channel features @@ -1546,26 +1534,6 @@ type OrderFeature = { */ buy_again?: boolean; }; -/** @returns {BuyboxFeature} */ -declare function BuyboxFeature(): BuyboxFeature; -type BuyboxFeature = { - /** - * - Allow users to see seller/stores name on - * PDP (product detail page). - */ - show_name?: boolean; - /** - * - Allow selection of sellers/stores on - * PDP (product detail page). - */ - enable_selection?: boolean; - /** - * - Toggle buybox listing - * between sellers and stores. True indicates seller listing, while False - * indicates store listing. - */ - is_seller_buybox_enabled?: boolean; -}; /** @returns {AppFeatureResponse} */ declare function AppFeatureResponse(): AppFeatureResponse; type AppFeatureResponse = { diff --git a/sdk/application/Configuration/ConfigurationApplicationModel.js b/sdk/application/Configuration/ConfigurationApplicationModel.js index 91b5a819a..0ce048ffa 100644 --- a/sdk/application/Configuration/ConfigurationApplicationModel.js +++ b/sdk/application/Configuration/ConfigurationApplicationModel.js @@ -326,7 +326,6 @@ const Joi = require("joi"); * @property {QrFeature} [qr] * @property {PcrFeature} [pcr] * @property {OrderFeature} [order] - * @property {BuyboxFeature} [buybox] * @property {string} [_id] - The unique identifier (24-digit Mongo Object ID) * for the sales channel features * @property {string} [app] - Application ID of the sales channel @@ -450,17 +449,6 @@ const Joi = require("joi"); * value is false. */ -/** - * @typedef BuyboxFeature - * @property {boolean} [show_name] - Allow users to see seller/stores name on - * PDP (product detail page). - * @property {boolean} [enable_selection] - Allow selection of sellers/stores on - * PDP (product detail page). - * @property {boolean} [is_seller_buybox_enabled] - Toggle buybox listing - * between sellers and stores. True indicates seller listing, while False - * indicates store listing. - */ - /** * @typedef AppFeatureResponse * @property {AppFeature} [feature] @@ -1259,7 +1247,6 @@ class ConfigurationApplicationModel { qr: ConfigurationApplicationModel.QrFeature(), pcr: ConfigurationApplicationModel.PcrFeature(), order: ConfigurationApplicationModel.OrderFeature(), - buybox: ConfigurationApplicationModel.BuyboxFeature(), _id: Joi.string().allow(""), app: Joi.string().allow(""), created_at: Joi.string().allow(""), @@ -1392,15 +1379,6 @@ class ConfigurationApplicationModel { }); } - /** @returns {BuyboxFeature} */ - static BuyboxFeature() { - return Joi.object({ - show_name: Joi.boolean(), - enable_selection: Joi.boolean(), - is_seller_buybox_enabled: Joi.boolean(), - }); - } - /** @returns {AppFeatureResponse} */ static AppFeatureResponse() { return Joi.object({ diff --git a/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts b/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts index efb99c91f..00c6f2c19 100644 --- a/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +++ b/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts @@ -168,4 +168,4 @@ type GetIntegrationTokensParam = any; type GetLanguagesParam = any; type GetOwnerInfoParam = any; type RemoveOrderingStoreCookieParam = any; -import ConfigurationApplicationModel = require("sdk/output/javascript/code/sdk/application/Configuration/ConfigurationApplicationModel"); +import ConfigurationApplicationModel = require("./ConfigurationApplicationModel"); diff --git a/sdk/application/Content/ContentApplicationClient.d.ts b/sdk/application/Content/ContentApplicationClient.d.ts index 83c0c468b..8b2845338 100644 --- a/sdk/application/Content/ContentApplicationClient.d.ts +++ b/sdk/application/Content/ContentApplicationClient.d.ts @@ -297,6 +297,6 @@ declare class Content { */ getTags({ requestHeaders }?: any, { responseHeaders }?: object): Promise; } -import ContentApplicationModel = require("sdk/output/javascript/code/sdk/application/Content/ContentApplicationModel"); -import ContentApplicationValidator = require("sdk/output/javascript/code/sdk/application/Content/ContentApplicationValidator"); -import Paginator = require("sdk/output/javascript/code/sdk/common/Paginator"); +import ContentApplicationModel = require("./ContentApplicationModel"); +import ContentApplicationValidator = require("./ContentApplicationValidator"); +import Paginator = require("../../common/Paginator"); diff --git a/sdk/application/FileStorage/FileStorageApplicationClient.d.ts b/sdk/application/FileStorage/FileStorageApplicationClient.d.ts index 77471e30f..749a907f1 100644 --- a/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +++ b/sdk/application/FileStorage/FileStorageApplicationClient.d.ts @@ -92,5 +92,5 @@ declare class FileStorage { tags: any; }): Promise; } -import FileStorageApplicationValidator = require("sdk/output/javascript/code/sdk/application/FileStorage/FileStorageApplicationValidator"); -import FileStorageApplicationModel = require("sdk/output/javascript/code/sdk/application/FileStorage/FileStorageApplicationModel"); +import FileStorageApplicationValidator = require("./FileStorageApplicationValidator"); +import FileStorageApplicationModel = require("./FileStorageApplicationModel"); diff --git a/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts b/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts index d27748c3f..450df4e9f 100644 --- a/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +++ b/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts @@ -53,4 +53,4 @@ type StartUploadParam = { namespace: string; body: FileStorageApplicationModel.StartRequest; }; -import FileStorageApplicationModel = require("sdk/output/javascript/code/sdk/application/FileStorage/FileStorageApplicationModel"); +import FileStorageApplicationModel = require("./FileStorageApplicationModel"); diff --git a/sdk/application/Lead/LeadApplicationClient.d.ts b/sdk/application/Lead/LeadApplicationClient.d.ts index c31ebc704..ba1e387b4 100644 --- a/sdk/application/Lead/LeadApplicationClient.d.ts +++ b/sdk/application/Lead/LeadApplicationClient.d.ts @@ -90,5 +90,5 @@ declare class Lead { */ submitCustomForm({ slug, body, requestHeaders }?: LeadApplicationValidator.SubmitCustomFormParam, { responseHeaders }?: object): Promise; } -import LeadApplicationValidator = require("sdk/output/javascript/code/sdk/application/Lead/LeadApplicationValidator"); -import LeadApplicationModel = require("sdk/output/javascript/code/sdk/application/Lead/LeadApplicationModel"); +import LeadApplicationValidator = require("./LeadApplicationValidator"); +import LeadApplicationModel = require("./LeadApplicationModel"); diff --git a/sdk/application/Lead/LeadApplicationModel.d.ts b/sdk/application/Lead/LeadApplicationModel.d.ts index f32e388cf..6db1efa6d 100644 --- a/sdk/application/Lead/LeadApplicationModel.d.ts +++ b/sdk/application/Lead/LeadApplicationModel.d.ts @@ -153,7 +153,7 @@ export = LeadApplicationModel; * @typedef TicketCategory * @property {string} display - Category display value identifier * @property {string} key - Category key value identifier - * @property {TicketCategory[]} [sub_categories] + * @property {TicketCategory} [sub_categories] * @property {number} [group_id] - Group id of category releted data * @property {FeedbackForm} [feedback_form] */ @@ -560,7 +560,7 @@ type TicketCategory = { * - Category key value identifier */ key: string; - sub_categories?: TicketCategory[]; + sub_categories?: TicketCategory; /** * - Group id of category releted data */ diff --git a/sdk/application/Lead/LeadApplicationModel.js b/sdk/application/Lead/LeadApplicationModel.js index 6ae837bad..296f5241a 100644 --- a/sdk/application/Lead/LeadApplicationModel.js +++ b/sdk/application/Lead/LeadApplicationModel.js @@ -175,7 +175,7 @@ const Joi = require("joi"); * @typedef TicketCategory * @property {string} display - Category display value identifier * @property {string} key - Category key value identifier - * @property {TicketCategory[]} [sub_categories] + * @property {TicketCategory} [sub_categories] * @property {number} [group_id] - Group id of category releted data * @property {FeedbackForm} [feedback_form] */ @@ -286,7 +286,7 @@ class LeadApplicationModel { last_name: Joi.string().allow(""), phone_numbers: Joi.array().items(LeadApplicationModel.PhoneNumber()), emails: Joi.array().items(LeadApplicationModel.Email()), - gender: Joi.string().allow("").allow(null), + gender: Joi.string().allow(""), dob: Joi.string().allow(""), active: Joi.boolean(), profile_pic_url: Joi.string().allow(""), @@ -452,7 +452,7 @@ class LeadApplicationModel { return Joi.object({ display: Joi.string().allow("").required(), key: Joi.string().allow("").required(), - sub_categories: Joi.array().items(Joi.link("#TicketCategory")), + sub_categories: Joi.link("#TicketCategory"), group_id: Joi.number(), feedback_form: LeadApplicationModel.FeedbackForm(), }); diff --git a/sdk/application/Lead/LeadApplicationValidator.d.ts b/sdk/application/Lead/LeadApplicationValidator.d.ts index 06cf897e2..73de0dbd2 100644 --- a/sdk/application/Lead/LeadApplicationValidator.d.ts +++ b/sdk/application/Lead/LeadApplicationValidator.d.ts @@ -89,4 +89,4 @@ type SubmitCustomFormParam = { slug: string; body: LeadApplicationModel.CustomFormSubmissionPayload; }; -import LeadApplicationModel = require("sdk/output/javascript/code/sdk/application/Lead/LeadApplicationModel"); +import LeadApplicationModel = require("./LeadApplicationModel"); diff --git a/sdk/application/Logistic/LogisticApplicationClient.d.ts b/sdk/application/Logistic/LogisticApplicationClient.d.ts index be6645037..95d5ef9d3 100644 --- a/sdk/application/Logistic/LogisticApplicationClient.d.ts +++ b/sdk/application/Logistic/LogisticApplicationClient.d.ts @@ -10,7 +10,9 @@ declare class Logistic { getLocality: string; getLocations: string; getOptimalLocations: string; + getPincodeCity: string; getPincodeZones: string; + getTatProduct: string; validateAddress: string; }; _urls: {}; @@ -86,6 +88,16 @@ declare class Logistic { * @description: This API returns zone from the Pincode View. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getOptimalLocations/). */ getOptimalLocations({ body, requestHeaders }?: LogisticApplicationValidator.GetOptimalLocationsParam, { responseHeaders }?: object): Promise; + /** + * @param {LogisticApplicationValidator.GetPincodeCityParam} arg - Arg object. + * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` + * @param {import("../ApplicationAPIClient").Options} - Options + * @returns {Promise} - Success response + * @name getPincodeCity + * @summary: Get Pincode API + * @description: Get pincode data - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getPincodeCity/). + */ + getPincodeCity({ pincode, requestHeaders }?: LogisticApplicationValidator.GetPincodeCityParam, { responseHeaders }?: object): Promise; /** * @param {LogisticApplicationValidator.GetPincodeZonesParam} arg - Arg object. * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -98,6 +110,16 @@ declare class Logistic { * @description: This API returns zone from the Pincode View. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getPincodeZones/). */ getPincodeZones({ body, requestHeaders }?: LogisticApplicationValidator.GetPincodeZonesParam, { responseHeaders }?: object): Promise; + /** + * @param {LogisticApplicationValidator.GetTatProductParam} arg - Arg object. + * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` + * @param {import("../ApplicationAPIClient").Options} - Options + * @returns {Promise} - Success response + * @name getTatProduct + * @summary: Get TAT API + * @description: Get TAT data - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getTatProduct/). + */ + getTatProduct({ body, requestHeaders }?: LogisticApplicationValidator.GetTatProductParam, { responseHeaders }?: object): Promise; /** * @param {LogisticApplicationValidator.ValidateAddressParam} arg - Arg object. * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -110,5 +132,5 @@ declare class Logistic { */ validateAddress({ countryIsoCode, templateName, body, requestHeaders }?: LogisticApplicationValidator.ValidateAddressParam, { responseHeaders }?: object): Promise; } -import LogisticApplicationModel = require("sdk/output/javascript/code/sdk/application/Logistic/LogisticApplicationModel"); -import LogisticApplicationValidator = require("sdk/output/javascript/code/sdk/application/Logistic/LogisticApplicationValidator"); +import LogisticApplicationModel = require("./LogisticApplicationModel"); +import LogisticApplicationValidator = require("./LogisticApplicationValidator"); diff --git a/sdk/application/Logistic/LogisticApplicationClient.js b/sdk/application/Logistic/LogisticApplicationClient.js index af4747f93..3c9297fbf 100644 --- a/sdk/application/Logistic/LogisticApplicationClient.js +++ b/sdk/application/Logistic/LogisticApplicationClient.js @@ -25,7 +25,9 @@ class Logistic { getLocations: "/service/application/logistics/v1.0/locations", getOptimalLocations: "/service/application/logistics/v1.0/reassign_stores", + getPincodeCity: "/service/application/logistics/v1.0/pincode/{pincode}", getPincodeZones: "/service/application/logistics/v1.0/pincode/zones", + getTatProduct: "/service/application/logistics/v1.0/", validateAddress: "/service/application/logistics/v1.0/country/{country_iso_code}/address/templates/{template_name}/validate", }; @@ -660,6 +662,84 @@ class Logistic { return response; } + /** + * @param {LogisticApplicationValidator.GetPincodeCityParam} arg - Arg object. + * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` + * @param {import("../ApplicationAPIClient").Options} - Options + * @returns {Promise} - Success response + * @name getPincodeCity + * @summary: Get Pincode API + * @description: Get pincode data - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getPincodeCity/). + */ + async getPincodeCity( + { pincode, requestHeaders } = { requestHeaders: {} }, + { responseHeaders } = { responseHeaders: false } + ) { + const { error } = LogisticApplicationValidator.getPincodeCity().validate( + { pincode }, + { abortEarly: false, allowUnknown: true } + ); + if (error) { + return Promise.reject(new FDKClientValidationError(error)); + } + + // Showing warrnings if extra unknown parameters are found + const { + error: warrning, + } = LogisticApplicationValidator.getPincodeCity().validate( + { pincode }, + { abortEarly: false, allowUnknown: false } + ); + if (warrning) { + Logger({ + level: "WARN", + message: `Parameter Validation warrnings for application > Logistic > getPincodeCity \n ${warrning}`, + }); + } + + const query_params = {}; + + const xHeaders = {}; + + const response = await ApplicationAPIClient.execute( + this._conf, + "get", + constructUrl({ + url: this._urls["getPincodeCity"], + params: { pincode }, + }), + query_params, + undefined, + { ...xHeaders, ...requestHeaders }, + { responseHeaders } + ); + + let responseData = response; + if (responseHeaders) { + responseData = response[0]; + } + + const { + error: res_error, + } = LogisticApplicationModel.PincodeApiResponse().validate(responseData, { + abortEarly: false, + allowUnknown: true, + }); + + if (res_error) { + if (this._conf.options.strictResponseCheck === true) { + return Promise.reject(new FDKResponseValidationError(res_error)); + } else { + Logger({ + level: "WARN", + message: `Response Validation Warnings for application > Logistic > getPincodeCity \n ${res_error}`, + }); + } + } + + return response; + } + /** * @param {LogisticApplicationValidator.GetPincodeZonesParam} arg - Arg object. * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -740,6 +820,84 @@ class Logistic { return response; } + /** + * @param {LogisticApplicationValidator.GetTatProductParam} arg - Arg object. + * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` + * @param {import("../ApplicationAPIClient").Options} - Options + * @returns {Promise} - Success response + * @name getTatProduct + * @summary: Get TAT API + * @description: Get TAT data - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getTatProduct/). + */ + async getTatProduct( + { body, requestHeaders } = { requestHeaders: {} }, + { responseHeaders } = { responseHeaders: false } + ) { + const { error } = LogisticApplicationValidator.getTatProduct().validate( + { body }, + { abortEarly: false, allowUnknown: true } + ); + if (error) { + return Promise.reject(new FDKClientValidationError(error)); + } + + // Showing warrnings if extra unknown parameters are found + const { + error: warrning, + } = LogisticApplicationValidator.getTatProduct().validate( + { body }, + { abortEarly: false, allowUnknown: false } + ); + if (warrning) { + Logger({ + level: "WARN", + message: `Parameter Validation warrnings for application > Logistic > getTatProduct \n ${warrning}`, + }); + } + + const query_params = {}; + + const xHeaders = {}; + + const response = await ApplicationAPIClient.execute( + this._conf, + "post", + constructUrl({ + url: this._urls["getTatProduct"], + params: {}, + }), + query_params, + body, + { ...xHeaders, ...requestHeaders }, + { responseHeaders } + ); + + let responseData = response; + if (responseHeaders) { + responseData = response[0]; + } + + const { + error: res_error, + } = LogisticApplicationModel.TATViewResponse().validate(responseData, { + abortEarly: false, + allowUnknown: true, + }); + + if (res_error) { + if (this._conf.options.strictResponseCheck === true) { + return Promise.reject(new FDKResponseValidationError(res_error)); + } else { + Logger({ + level: "WARN", + message: `Response Validation Warnings for application > Logistic > getTatProduct \n ${res_error}`, + }); + } + } + + return response; + } + /** * @param {LogisticApplicationValidator.ValidateAddressParam} arg - Arg object. * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` diff --git a/sdk/application/Logistic/LogisticApplicationValidator.d.ts b/sdk/application/Logistic/LogisticApplicationValidator.d.ts index 87f65c0ee..8afdaeb13 100644 --- a/sdk/application/Logistic/LogisticApplicationValidator.d.ts +++ b/sdk/application/Logistic/LogisticApplicationValidator.d.ts @@ -58,10 +58,18 @@ export = LogisticApplicationValidator; * @typedef GetOptimalLocationsParam * @property {LogisticApplicationModel.ReAssignStoreRequest} body */ +/** + * @typedef GetPincodeCityParam + * @property {string} pincode - A `pincode` contains a specific address of a location. + */ /** * @typedef GetPincodeZonesParam * @property {LogisticApplicationModel.GetZoneFromPincodeViewRequest} body */ +/** + * @typedef GetTatProductParam + * @property {LogisticApplicationModel.TATViewRequest} body + */ /** * @typedef ValidateAddressParam * @property {string} countryIsoCode - The ISO code of the country. @@ -83,13 +91,17 @@ declare class LogisticApplicationValidator { static getLocations(): GetLocationsParam; /** @returns {GetOptimalLocationsParam} */ static getOptimalLocations(): GetOptimalLocationsParam; + /** @returns {GetPincodeCityParam} */ + static getPincodeCity(): GetPincodeCityParam; /** @returns {GetPincodeZonesParam} */ static getPincodeZones(): GetPincodeZonesParam; + /** @returns {GetTatProductParam} */ + static getTatProduct(): GetTatProductParam; /** @returns {ValidateAddressParam} */ static validateAddress(): ValidateAddressParam; } declare namespace LogisticApplicationValidator { - export { GetAllCountriesParam, GetCountriesParam, GetCountryParam, GetLocalitiesParam, GetLocalityParam, GetLocationsParam, GetOptimalLocationsParam, GetPincodeZonesParam, ValidateAddressParam }; + export { GetAllCountriesParam, GetCountriesParam, GetCountryParam, GetLocalitiesParam, GetLocalityParam, GetLocationsParam, GetOptimalLocationsParam, GetPincodeCityParam, GetPincodeZonesParam, GetTatProductParam, ValidateAddressParam }; } type GetCountriesParam = { /** @@ -221,9 +233,18 @@ type GetLocationsParam = { type GetOptimalLocationsParam = { body: LogisticApplicationModel.ReAssignStoreRequest; }; +type GetPincodeCityParam = { + /** + * - A `pincode` contains a specific address of a location. + */ + pincode: string; +}; type GetPincodeZonesParam = { body: LogisticApplicationModel.GetZoneFromPincodeViewRequest; }; +type GetTatProductParam = { + body: LogisticApplicationModel.TATViewRequest; +}; type ValidateAddressParam = { /** * - The ISO code of the country. @@ -236,4 +257,4 @@ type ValidateAddressParam = { body: LogisticApplicationModel.ValidateAddressRequest; }; type GetAllCountriesParam = any; -import LogisticApplicationModel = require("sdk/output/javascript/code/sdk/application/Logistic/LogisticApplicationModel"); +import LogisticApplicationModel = require("./LogisticApplicationModel"); diff --git a/sdk/application/Logistic/LogisticApplicationValidator.js b/sdk/application/Logistic/LogisticApplicationValidator.js index 60852a1f7..d43c9bdda 100644 --- a/sdk/application/Logistic/LogisticApplicationValidator.js +++ b/sdk/application/Logistic/LogisticApplicationValidator.js @@ -68,11 +68,21 @@ const LogisticApplicationModel = require("./LogisticApplicationModel"); * @property {LogisticApplicationModel.ReAssignStoreRequest} body */ +/** + * @typedef GetPincodeCityParam + * @property {string} pincode - A `pincode` contains a specific address of a location. + */ + /** * @typedef GetPincodeZonesParam * @property {LogisticApplicationModel.GetZoneFromPincodeViewRequest} body */ +/** + * @typedef GetTatProductParam + * @property {LogisticApplicationModel.TATViewRequest} body + */ + /** * @typedef ValidateAddressParam * @property {string} countryIsoCode - The ISO code of the country. @@ -149,6 +159,13 @@ class LogisticApplicationValidator { }).required(); } + /** @returns {GetPincodeCityParam} */ + static getPincodeCity() { + return Joi.object({ + pincode: Joi.string().allow("").required(), + }).required(); + } + /** @returns {GetPincodeZonesParam} */ static getPincodeZones() { return Joi.object({ @@ -156,6 +173,13 @@ class LogisticApplicationValidator { }).required(); } + /** @returns {GetTatProductParam} */ + static getTatProduct() { + return Joi.object({ + body: LogisticApplicationModel.TATViewRequest().required(), + }).required(); + } + /** @returns {ValidateAddressParam} */ static validateAddress() { return Joi.object({ diff --git a/sdk/application/Order/OrderApplicationClient.d.ts b/sdk/application/Order/OrderApplicationClient.d.ts index 8b35dc839..1e1ea487e 100644 --- a/sdk/application/Order/OrderApplicationClient.d.ts +++ b/sdk/application/Order/OrderApplicationClient.d.ts @@ -146,5 +146,5 @@ declare class Order { */ verifyOtpShipmentCustomer({ orderId, shipmentId, body, requestHeaders }?: OrderApplicationValidator.VerifyOtpShipmentCustomerParam, { responseHeaders }?: object): Promise; } -import OrderApplicationValidator = require("sdk/output/javascript/code/sdk/application/Order/OrderApplicationValidator"); -import OrderApplicationModel = require("sdk/output/javascript/code/sdk/application/Order/OrderApplicationModel"); +import OrderApplicationValidator = require("./OrderApplicationValidator"); +import OrderApplicationModel = require("./OrderApplicationModel"); diff --git a/sdk/application/Order/OrderApplicationModel.d.ts b/sdk/application/Order/OrderApplicationModel.d.ts index 03219a2b6..72eeec732 100644 --- a/sdk/application/Order/OrderApplicationModel.d.ts +++ b/sdk/application/Order/OrderApplicationModel.d.ts @@ -220,17 +220,12 @@ export = OrderApplicationModel; * @property {string} [currency_code] * @property {string} [seller_identifier] * @property {CurrentStatus} [current_status] - * @property {Article} [article] */ /** * @typedef FulfillingCompany * @property {number} [id] * @property {string} [name] */ -/** - * @typedef Article - * @property {string[]} [tags] - */ /** * @typedef DeliveryAddress * @property {string} [pincode] @@ -297,7 +292,6 @@ export = OrderApplicationModel; * @property {string} [need_help_url] * @property {Object} [return_meta] * @property {string} [delivery_date] - * @property {OrderRequest} [order] */ /** * @typedef BagsForReorderArticleAssignment @@ -505,10 +499,6 @@ export = OrderApplicationModel; * @property {string} [exclude_bags_next_state] * @property {string} [status] */ -/** - * @typedef OrderRequest - * @property {Object} [meta] - */ /** * @typedef UpdateShipmentStatusRequest * @property {StatuesRequest[]} [statuses] @@ -536,7 +526,7 @@ export = OrderApplicationModel; declare class OrderApplicationModel { } declare namespace OrderApplicationModel { - export { OrderPage, UserInfo, BreakupValues, ShipmentPayment, ShipmentUserInfo, FulfillingStore, ShipmentStatus, Invoice, NestedTrackingDetails, TrackingDetails, TimeStampData, Promise, ShipmentTotalDetails, Prices, ItemBrand, Item, AppliedFreeArticles, AppliedPromos, Identifiers, FinancialBreakup, CurrentStatus, Bags, FulfillingCompany, Article, DeliveryAddress, Shipments, BagsForReorderArticleAssignment, BagsForReorder, OrderSchema, OrderStatuses, OrderFilters, OrderList, ApefaceApiError, OrderById, ShipmentById, ResponseGetInvoiceShipment, Track, ShipmentTrack, CustomerDetailsResponse, SendOtpToCustomerResponse, VerifyOtp, VerifyOtpResponse, BagReasonMeta, QuestionSet, BagReasons, ShipmentBagReasons, ShipmentReason, ShipmentReasons, ProductsReasonsData, ProductsReasonsFilters, ProductsReasons, EntityReasonData, EntitiesReasons, ReasonsData, Products, ProductsDataUpdatesFilters, ProductsDataUpdates, EntitiesDataUpdates, DataUpdates, ShipmentsRequest, StatuesRequest, OrderRequest, UpdateShipmentStatusRequest, StatusesBodyResponse, ShipmentApplicationStatusResponse, ErrorResponse }; + export { OrderPage, UserInfo, BreakupValues, ShipmentPayment, ShipmentUserInfo, FulfillingStore, ShipmentStatus, Invoice, NestedTrackingDetails, TrackingDetails, TimeStampData, Promise, ShipmentTotalDetails, Prices, ItemBrand, Item, AppliedFreeArticles, AppliedPromos, Identifiers, FinancialBreakup, CurrentStatus, Bags, FulfillingCompany, DeliveryAddress, Shipments, BagsForReorderArticleAssignment, BagsForReorder, OrderSchema, OrderStatuses, OrderFilters, OrderList, ApefaceApiError, OrderById, ShipmentById, ResponseGetInvoiceShipment, Track, ShipmentTrack, CustomerDetailsResponse, SendOtpToCustomerResponse, VerifyOtp, VerifyOtpResponse, BagReasonMeta, QuestionSet, BagReasons, ShipmentBagReasons, ShipmentReason, ShipmentReasons, ProductsReasonsData, ProductsReasonsFilters, ProductsReasons, EntityReasonData, EntitiesReasons, ReasonsData, Products, ProductsDataUpdatesFilters, ProductsDataUpdates, EntitiesDataUpdates, DataUpdates, ShipmentsRequest, StatuesRequest, UpdateShipmentStatusRequest, StatusesBodyResponse, ShipmentApplicationStatusResponse, ErrorResponse }; } /** @returns {OrderPage} */ declare function OrderPage(): OrderPage; @@ -781,7 +771,6 @@ type Bags = { currency_code?: string; seller_identifier?: string; current_status?: CurrentStatus; - article?: Article; }; /** @returns {FulfillingCompany} */ declare function FulfillingCompany(): FulfillingCompany; @@ -789,11 +778,6 @@ type FulfillingCompany = { id?: number; name?: string; }; -/** @returns {Article} */ -declare function Article(): Article; -type Article = { - tags?: string[]; -}; /** @returns {DeliveryAddress} */ declare function DeliveryAddress(): DeliveryAddress; type DeliveryAddress = { @@ -862,7 +846,6 @@ type Shipments = { need_help_url?: string; return_meta?: any; delivery_date?: string; - order?: OrderRequest; }; /** @returns {BagsForReorderArticleAssignment} */ declare function BagsForReorderArticleAssignment(): BagsForReorderArticleAssignment; @@ -1105,11 +1088,6 @@ type StatuesRequest = { exclude_bags_next_state?: string; status?: string; }; -/** @returns {OrderRequest} */ -declare function OrderRequest(): OrderRequest; -type OrderRequest = { - meta?: any; -}; /** @returns {UpdateShipmentStatusRequest} */ declare function UpdateShipmentStatusRequest(): UpdateShipmentStatusRequest; type UpdateShipmentStatusRequest = { diff --git a/sdk/application/Order/OrderApplicationModel.js b/sdk/application/Order/OrderApplicationModel.js index d748e1894..730085ecc 100644 --- a/sdk/application/Order/OrderApplicationModel.js +++ b/sdk/application/Order/OrderApplicationModel.js @@ -242,7 +242,6 @@ const Joi = require("joi"); * @property {string} [currency_code] * @property {string} [seller_identifier] * @property {CurrentStatus} [current_status] - * @property {Article} [article] */ /** @@ -251,11 +250,6 @@ const Joi = require("joi"); * @property {string} [name] */ -/** - * @typedef Article - * @property {string[]} [tags] - */ - /** * @typedef DeliveryAddress * @property {string} [pincode] @@ -323,7 +317,6 @@ const Joi = require("joi"); * @property {string} [need_help_url] * @property {Object} [return_meta] * @property {string} [delivery_date] - * @property {OrderRequest} [order] */ /** @@ -567,11 +560,6 @@ const Joi = require("joi"); * @property {string} [status] */ -/** - * @typedef OrderRequest - * @property {Object} [meta] - */ - /** * @typedef UpdateShipmentStatusRequest * @property {StatuesRequest[]} [statuses] @@ -892,7 +880,6 @@ class OrderApplicationModel { currency_code: Joi.string().allow(""), seller_identifier: Joi.string().allow(""), current_status: OrderApplicationModel.CurrentStatus(), - article: OrderApplicationModel.Article(), }); } @@ -904,13 +891,6 @@ class OrderApplicationModel { }); } - /** @returns {Article} */ - static Article() { - return Joi.object({ - tags: Joi.array().items(Joi.string().allow("")), - }); - } - /** @returns {DeliveryAddress} */ static DeliveryAddress() { return Joi.object({ @@ -983,7 +963,6 @@ class OrderApplicationModel { need_help_url: Joi.string().allow(""), return_meta: Joi.any(), delivery_date: Joi.string().allow("").allow(null), - order: OrderApplicationModel.OrderRequest(), }); } @@ -1304,13 +1283,6 @@ class OrderApplicationModel { }); } - /** @returns {OrderRequest} */ - static OrderRequest() { - return Joi.object({ - meta: Joi.any(), - }); - } - /** @returns {UpdateShipmentStatusRequest} */ static UpdateShipmentStatusRequest() { return Joi.object({ diff --git a/sdk/application/Order/OrderApplicationValidator.d.ts b/sdk/application/Order/OrderApplicationValidator.d.ts index b9b6381a8..a0df355ec 100644 --- a/sdk/application/Order/OrderApplicationValidator.d.ts +++ b/sdk/application/Order/OrderApplicationValidator.d.ts @@ -267,4 +267,4 @@ type VerifyOtpShipmentCustomerParam = { shipmentId: string; body: OrderApplicationModel.VerifyOtp; }; -import OrderApplicationModel = require("sdk/output/javascript/code/sdk/application/Order/OrderApplicationModel"); +import OrderApplicationModel = require("./OrderApplicationModel"); diff --git a/sdk/application/Payment/PaymentApplicationClient.d.ts b/sdk/application/Payment/PaymentApplicationClient.d.ts index 5db7333a1..b9b92ef11 100644 --- a/sdk/application/Payment/PaymentApplicationClient.d.ts +++ b/sdk/application/Payment/PaymentApplicationClient.d.ts @@ -16,7 +16,6 @@ declare class Payment { createPaymentOrder: string; customerCreditSummary: string; customerOnboard: string; - deleteBeneficiaryDetails: string; deleteUserCard: string; delinkWallet: string; enableOrDisableRefundTransferMode: string; @@ -30,11 +29,8 @@ declare class Payment { getPaymentModeRoutes: string; getPaymentModeRoutesPaymentLink: string; getPosPaymentModeRoutes: string; - getRefundOptions: string; getRupifiBannerDetails: string; - getSelectedRefundOption: string; getUserBeneficiariesDetail: string; - getUserBeneficiariesDetailV2: string; initialisePayment: string; initialisePaymentPaymentLink: string; linkWallet: string; @@ -45,16 +41,14 @@ declare class Payment { renderHTML: string; resendOrCancelPayment: string; resendPaymentLink: string; - setRefundOptionforShipment: string; updateDefaultBeneficiary: string; - validateBeneficiaryAddress: string; validateVPA: string; verifyAndChargePayment: string; verifyCustomerForPayment: string; verifyIfscCode: string; verifyOtpAndAddBeneficiaryForBank: string; verifyOtpAndAddBeneficiaryForWallet: string; - walletLinkInitate: string; + walletLinkInitiate: string; }; _urls: {}; updateUrls(urls: any): void; @@ -208,19 +202,6 @@ declare class Payment { * @description: Use this API to fetch the customer credit summary. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/customerOnboard/). */ customerOnboard({ body, requestHeaders }?: PaymentApplicationValidator.CustomerOnboardParam, { responseHeaders }?: object): Promise; - /** - * @param {PaymentApplicationValidator.DeleteBeneficiaryDetailsParam} arg - - * Arg object. - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../ApplicationAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name deleteBeneficiaryDetails - * @summary: Delete saved beneficiary details of customers - * @description: Use this API to delete the saved beneficiary details provided beneficiary Id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/deleteBeneficiaryDetails/). - */ - deleteBeneficiaryDetails({ beneficiaryId, requestHeaders }?: PaymentApplicationValidator.DeleteBeneficiaryDetailsParam, { responseHeaders }?: object): Promise; /** * @param {PaymentApplicationValidator.DeleteUserCardParam} arg - Arg object. * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -373,16 +354,6 @@ declare class Payment { * @description: Use this API to get all valid payment options for doing a payment in POS. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/getPosPaymentModeRoutes/). */ getPosPaymentModeRoutes({ amount, pincode, orderType, cartId, checkoutMode, refresh, cardReference, userDetails, requestHeaders, }?: PaymentApplicationValidator.GetPosPaymentModeRoutesParam, { responseHeaders }?: object): Promise; - /** - * @param {PaymentApplicationValidator.GetRefundOptionsParam} arg - Arg object. - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../ApplicationAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getRefundOptions - * @summary: Refund Options Handler to fetch available refund options. - * @description: Refund Options Handler to fetch available refund options - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/getRefundOptions/). - */ - getRefundOptions({ configuration, productType, amount, requestHeaders }?: PaymentApplicationValidator.GetRefundOptionsParam, { responseHeaders }?: object): Promise; /** * @param {PaymentApplicationValidator.GetRupifiBannerDetailsParam} arg - Arg object. * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -393,18 +364,6 @@ declare class Payment { * @description: Get CreditLine Offer if user is tentatively approved by rupifi - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/getRupifiBannerDetails/). */ getRupifiBannerDetails({ requestHeaders }?: any, { responseHeaders }?: object): Promise; - /** - * @param {PaymentApplicationValidator.GetSelectedRefundOptionParam} arg - Arg object. - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../ApplicationAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name getSelectedRefundOption - * @summary: API to get the selected refund options for shipment id - * @description: API to get the selected refund options for shipment id - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/getSelectedRefundOption/). - */ - getSelectedRefundOption({ shipmentId, orderId, requestHeaders }?: PaymentApplicationValidator.GetSelectedRefundOptionParam, { responseHeaders }?: object): Promise; /** * @param {PaymentApplicationValidator.GetUserBeneficiariesDetailParam} arg * - Arg object. @@ -418,20 +377,6 @@ declare class Payment { * @description: Use this API to get the details of all active beneficiary added by a user for refund. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/getUserBeneficiariesDetail/). */ getUserBeneficiariesDetail({ orderId, requestHeaders }?: PaymentApplicationValidator.GetUserBeneficiariesDetailParam, { responseHeaders }?: object): Promise; - /** - * @param {PaymentApplicationValidator.GetUserBeneficiariesDetailV2Param} arg - * - Arg object. - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../ApplicationAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name getUserBeneficiariesDetailV2 - * @summary: Lists the beneficiary of a refund - * @description: Use this API to get the details of all active beneficiary added by a user for refund. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/getUserBeneficiariesDetailV2/). - */ - getUserBeneficiariesDetailV2({ orderId, shipmentId, mop, requestHeaders }?: PaymentApplicationValidator.GetUserBeneficiariesDetailV2Param, { responseHeaders }?: object): Promise; /** * @param {PaymentApplicationValidator.InitialisePaymentParam} arg - Arg object. * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -547,19 +492,6 @@ declare class Payment { * @description: Use this API to resend a payment link for the customer - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/resendPaymentLink/). */ resendPaymentLink({ body, requestHeaders }?: PaymentApplicationValidator.ResendPaymentLinkParam, { responseHeaders }?: object): Promise; - /** - * @param {PaymentApplicationValidator.SetRefundOptionforShipmentParam} arg - * - Arg object. - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../ApplicationAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name setRefundOptionforShipment - * @summary: Save refund source against shipment and order - * @description: Save refund source against shipment and order - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/setRefundOptionforShipment/). - */ - setRefundOptionforShipment({ body, requestHeaders }?: PaymentApplicationValidator.SetRefundOptionforShipmentParam, { responseHeaders }?: object): Promise; /** * @param {PaymentApplicationValidator.UpdateDefaultBeneficiaryParam} arg - * Arg object. @@ -573,20 +505,6 @@ declare class Payment { * @description: Use this API to set a default beneficiary for getting a refund. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/updateDefaultBeneficiary/). */ updateDefaultBeneficiary({ body, requestHeaders }?: PaymentApplicationValidator.UpdateDefaultBeneficiaryParam, { responseHeaders }?: object): Promise; - /** - * @param {PaymentApplicationValidator.ValidateBeneficiaryAddressParam} arg - * - Arg object. - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../ApplicationAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name validateBeneficiaryAddress - * @summary: API to Validate UPI ID and IFSC code - * @description: API to Validate UPI ID and IFSC code - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/validateBeneficiaryAddress/). - */ - validateBeneficiaryAddress({ body, requestHeaders }?: PaymentApplicationValidator.ValidateBeneficiaryAddressParam, { responseHeaders }?: object): Promise; /** * @param {PaymentApplicationValidator.ValidateVPAParam} arg - Arg object. * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -657,15 +575,15 @@ declare class Payment { */ verifyOtpAndAddBeneficiaryForWallet({ body, requestHeaders }?: PaymentApplicationValidator.VerifyOtpAndAddBeneficiaryForWalletParam, { responseHeaders }?: object): Promise; /** - * @param {PaymentApplicationValidator.WalletLinkInitateParam} arg - Arg object. + * @param {PaymentApplicationValidator.WalletLinkInitiateParam} arg - Arg object. * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../ApplicationAPIClient").Options} - Options * @returns {Promise} - Success response - * @name walletLinkInitate + * @name walletLinkInitiate * @summary: Initiate linking of wallet - * @description: It will initiate linking of wallet for the aggregator. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/walletLinkInitate/). + * @description: It will initiate linking of wallet for the aggregator. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/walletLinkInitiate/). */ - walletLinkInitate({ body, requestHeaders }?: PaymentApplicationValidator.WalletLinkInitateParam, { responseHeaders }?: object): Promise; + walletLinkInitiate({ body, requestHeaders }?: PaymentApplicationValidator.WalletLinkInitiateParam, { responseHeaders }?: object): Promise; } -import PaymentApplicationValidator = require("sdk/output/javascript/code/sdk/application/Payment/PaymentApplicationValidator"); -import PaymentApplicationModel = require("sdk/output/javascript/code/sdk/application/Payment/PaymentApplicationModel"); +import PaymentApplicationValidator = require("./PaymentApplicationValidator"); +import PaymentApplicationModel = require("./PaymentApplicationModel"); diff --git a/sdk/application/Payment/PaymentApplicationClient.js b/sdk/application/Payment/PaymentApplicationClient.js index c1db27338..df224ccb7 100644 --- a/sdk/application/Payment/PaymentApplicationClient.js +++ b/sdk/application/Payment/PaymentApplicationClient.js @@ -34,8 +34,6 @@ class Payment { customerCreditSummary: "/service/application/payment/v1.0/payment/credit-summary/", customerOnboard: "/service/application/payment/v1.0/credit-onboard/", - deleteBeneficiaryDetails: - "/service/application/payment/v1.0/refund/account/{beneficiary_id}", deleteUserCard: "/service/application/payment/v1.0/card/remove", delinkWallet: "/service/application/payment/v1.0/payment/options/wallet/delink", @@ -58,15 +56,9 @@ class Payment { "/service/application/payment/v1.0/payment/options/link/", getPosPaymentModeRoutes: "/service/application/payment/v1.0/payment/options/pos", - getRefundOptions: - "/service/application/payment/v1.0/payment/refundoptions/", getRupifiBannerDetails: "/service/application/payment/v1.0/rupifi/banner", - getSelectedRefundOption: - "/service/application/payment/v1.0/payment/selected_refund_options", getUserBeneficiariesDetail: "/service/application/payment/v1.0/refund/user/beneficiary", - getUserBeneficiariesDetailV2: - "/service/application/payment/v2.0/refund/user/beneficiary", initialisePayment: "/service/application/payment/v1.0/payment/request", initialisePaymentPaymentLink: "/service/application/payment/v1.0/payment/request/link/", @@ -85,12 +77,8 @@ class Payment { "/service/application/payment/v1.0/payment/resend_or_cancel", resendPaymentLink: "/service/application/payment/v1.0/resend-payment-link/", - setRefundOptionforShipment: - "/service/application/payment/v1.0/payment/refundoptions/", updateDefaultBeneficiary: "/service/application/payment/v1.0/refund/beneficiary/default", - validateBeneficiaryAddress: - "/service/application/payment/v1.0/validate/beneficiary-address", validateVPA: "/service/application/payment/v1.0/validate-vpa", verifyAndChargePayment: "/service/application/payment/v1.0/payment/confirm/charge", @@ -101,7 +89,7 @@ class Payment { "/service/application/payment/v1.0/refund/verification/bank", verifyOtpAndAddBeneficiaryForWallet: "/service/application/payment/v1.0/refund/verification/wallet", - walletLinkInitate: + walletLinkInitiate: "/service/application/payment/v1.0/payment/options/wallet/link", }; this._urls = Object.entries(this._relativeUrls).reduce( @@ -1171,89 +1159,6 @@ class Payment { return response; } - /** - * @param {PaymentApplicationValidator.DeleteBeneficiaryDetailsParam} arg - - * Arg object. - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../ApplicationAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name deleteBeneficiaryDetails - * @summary: Delete saved beneficiary details of customers - * @description: Use this API to delete the saved beneficiary details provided beneficiary Id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/deleteBeneficiaryDetails/). - */ - async deleteBeneficiaryDetails( - { beneficiaryId, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = PaymentApplicationValidator.deleteBeneficiaryDetails().validate( - { beneficiaryId }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = PaymentApplicationValidator.deleteBeneficiaryDetails().validate( - { beneficiaryId }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for application > Payment > deleteBeneficiaryDetails \n ${warrning}`, - }); - } - - const query_params = {}; - - const xHeaders = {}; - - const response = await ApplicationAPIClient.execute( - this._conf, - "delete", - constructUrl({ - url: this._urls["deleteBeneficiaryDetails"], - params: { beneficiaryId }, - }), - query_params, - undefined, - { ...xHeaders, ...requestHeaders }, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = PaymentApplicationModel.DeleteRefundAccountResponse().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); - - if (res_error) { - if (this._conf.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for application > Payment > deleteBeneficiaryDetails \n ${res_error}`, - }); - } - } - - return response; - } - /** * @param {PaymentApplicationValidator.DeleteUserCardParam} arg - Arg object. * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -2395,89 +2300,6 @@ class Payment { return response; } - /** - * @param {PaymentApplicationValidator.GetRefundOptionsParam} arg - Arg object. - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../ApplicationAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getRefundOptions - * @summary: Refund Options Handler to fetch available refund options. - * @description: Refund Options Handler to fetch available refund options - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/getRefundOptions/). - */ - async getRefundOptions( - { configuration, productType, amount, requestHeaders } = { - requestHeaders: {}, - }, - { responseHeaders } = { responseHeaders: false } - ) { - const { error } = PaymentApplicationValidator.getRefundOptions().validate( - { configuration, productType, amount }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = PaymentApplicationValidator.getRefundOptions().validate( - { configuration, productType, amount }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for application > Payment > getRefundOptions \n ${warrning}`, - }); - } - - const query_params = {}; - query_params["configuration"] = configuration; - query_params["product_type"] = productType; - query_params["amount"] = amount; - - const xHeaders = {}; - - const response = await ApplicationAPIClient.execute( - this._conf, - "get", - constructUrl({ - url: this._urls["getRefundOptions"], - params: {}, - }), - query_params, - undefined, - { ...xHeaders, ...requestHeaders }, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = PaymentApplicationModel.RefundOptionResponse().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this._conf.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for application > Payment > getRefundOptions \n ${res_error}`, - }); - } - } - - return response; - } - /** * @param {PaymentApplicationValidator.GetRupifiBannerDetailsParam} arg - Arg object. * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -2558,90 +2380,6 @@ class Payment { return response; } - /** - * @param {PaymentApplicationValidator.GetSelectedRefundOptionParam} arg - Arg object. - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../ApplicationAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name getSelectedRefundOption - * @summary: API to get the selected refund options for shipment id - * @description: API to get the selected refund options for shipment id - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/getSelectedRefundOption/). - */ - async getSelectedRefundOption( - { shipmentId, orderId, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = PaymentApplicationValidator.getSelectedRefundOption().validate( - { shipmentId, orderId }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = PaymentApplicationValidator.getSelectedRefundOption().validate( - { shipmentId, orderId }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for application > Payment > getSelectedRefundOption \n ${warrning}`, - }); - } - - const query_params = {}; - query_params["shipment_id"] = shipmentId; - query_params["order_id"] = orderId; - - const xHeaders = {}; - - const response = await ApplicationAPIClient.execute( - this._conf, - "get", - constructUrl({ - url: this._urls["getSelectedRefundOption"], - params: {}, - }), - query_params, - undefined, - { ...xHeaders, ...requestHeaders }, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = PaymentApplicationModel.SelectedRefundOptionResponse().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); - - if (res_error) { - if (this._conf.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for application > Payment > getSelectedRefundOption \n ${res_error}`, - }); - } - } - - return response; - } - /** * @param {PaymentApplicationValidator.GetUserBeneficiariesDetailParam} arg * - Arg object. @@ -2726,93 +2464,6 @@ class Payment { return response; } - /** - * @param {PaymentApplicationValidator.GetUserBeneficiariesDetailV2Param} arg - * - Arg object. - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../ApplicationAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name getUserBeneficiariesDetailV2 - * @summary: Lists the beneficiary of a refund - * @description: Use this API to get the details of all active beneficiary added by a user for refund. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/getUserBeneficiariesDetailV2/). - */ - async getUserBeneficiariesDetailV2( - { orderId, shipmentId, mop, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = PaymentApplicationValidator.getUserBeneficiariesDetailV2().validate( - { orderId, shipmentId, mop }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = PaymentApplicationValidator.getUserBeneficiariesDetailV2().validate( - { orderId, shipmentId, mop }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for application > Payment > getUserBeneficiariesDetailV2 \n ${warrning}`, - }); - } - - const query_params = {}; - query_params["order_id"] = orderId; - query_params["shipment_id"] = shipmentId; - query_params["mop"] = mop; - - const xHeaders = {}; - - const response = await ApplicationAPIClient.execute( - this._conf, - "get", - constructUrl({ - url: this._urls["getUserBeneficiariesDetailV2"], - params: {}, - }), - query_params, - undefined, - { ...xHeaders, ...requestHeaders }, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = PaymentApplicationModel.OrderBeneficiaryResponseSchemaV2().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); - - if (res_error) { - if (this._conf.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for application > Payment > getUserBeneficiariesDetailV2 \n ${res_error}`, - }); - } - } - - return response; - } - /** * @param {PaymentApplicationValidator.InitialisePaymentParam} arg - Arg object. * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -3621,89 +3272,6 @@ class Payment { return response; } - /** - * @param {PaymentApplicationValidator.SetRefundOptionforShipmentParam} arg - * - Arg object. - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../ApplicationAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name setRefundOptionforShipment - * @summary: Save refund source against shipment and order - * @description: Save refund source against shipment and order - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/setRefundOptionforShipment/). - */ - async setRefundOptionforShipment( - { body, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = PaymentApplicationValidator.setRefundOptionforShipment().validate( - { body }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = PaymentApplicationValidator.setRefundOptionforShipment().validate( - { body }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for application > Payment > setRefundOptionforShipment \n ${warrning}`, - }); - } - - const query_params = {}; - - const xHeaders = {}; - - const response = await ApplicationAPIClient.execute( - this._conf, - "post", - constructUrl({ - url: this._urls["setRefundOptionforShipment"], - params: {}, - }), - query_params, - body, - { ...xHeaders, ...requestHeaders }, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = PaymentApplicationModel.ShipmentRefundResponse().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); - - if (res_error) { - if (this._conf.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for application > Payment > setRefundOptionforShipment \n ${res_error}`, - }); - } - } - - return response; - } - /** * @param {PaymentApplicationValidator.UpdateDefaultBeneficiaryParam} arg - * Arg object. @@ -3787,90 +3355,6 @@ class Payment { return response; } - /** - * @param {PaymentApplicationValidator.ValidateBeneficiaryAddressParam} arg - * - Arg object. - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../ApplicationAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name validateBeneficiaryAddress - * @summary: API to Validate UPI ID and IFSC code - * @description: API to Validate UPI ID and IFSC code - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/validateBeneficiaryAddress/). - */ - async validateBeneficiaryAddress( - { body, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = PaymentApplicationValidator.validateBeneficiaryAddress().validate( - { body }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = PaymentApplicationValidator.validateBeneficiaryAddress().validate( - { body }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for application > Payment > validateBeneficiaryAddress \n ${warrning}`, - }); - } - - const query_params = {}; - - const xHeaders = {}; - - const response = await ApplicationAPIClient.execute( - this._conf, - "post", - constructUrl({ - url: this._urls["validateBeneficiaryAddress"], - params: {}, - }), - query_params, - body, - { ...xHeaders, ...requestHeaders }, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = PaymentApplicationModel.ValidateValidateAddressResponse().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); - - if (res_error) { - if (this._conf.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for application > Payment > validateBeneficiaryAddress \n ${res_error}`, - }); - } - } - - return response; - } - /** * @param {PaymentApplicationValidator.ValidateVPAParam} arg - Arg object. * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -4358,19 +3842,19 @@ class Payment { } /** - * @param {PaymentApplicationValidator.WalletLinkInitateParam} arg - Arg object. + * @param {PaymentApplicationValidator.WalletLinkInitiateParam} arg - Arg object. * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../ApplicationAPIClient").Options} - Options * @returns {Promise} - Success response - * @name walletLinkInitate + * @name walletLinkInitiate * @summary: Initiate linking of wallet - * @description: It will initiate linking of wallet for the aggregator. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/walletLinkInitate/). + * @description: It will initiate linking of wallet for the aggregator. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/walletLinkInitiate/). */ - async walletLinkInitate( + async walletLinkInitiate( { body, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { - const { error } = PaymentApplicationValidator.walletLinkInitate().validate( + const { error } = PaymentApplicationValidator.walletLinkInitiate().validate( { body }, { abortEarly: false, allowUnknown: true } ); @@ -4381,14 +3865,14 @@ class Payment { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = PaymentApplicationValidator.walletLinkInitate().validate( + } = PaymentApplicationValidator.walletLinkInitiate().validate( { body }, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for application > Payment > walletLinkInitate \n ${warrning}`, + message: `Parameter Validation warrnings for application > Payment > walletLinkInitiate \n ${warrning}`, }); } @@ -4400,7 +3884,7 @@ class Payment { this._conf, "post", constructUrl({ - url: this._urls["walletLinkInitate"], + url: this._urls["walletLinkInitiate"], params: {}, }), query_params, @@ -4427,7 +3911,7 @@ class Payment { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for application > Payment > walletLinkInitate \n ${res_error}`, + message: `Response Validation Warnings for application > Payment > walletLinkInitiate \n ${res_error}`, }); } } diff --git a/sdk/application/Payment/PaymentApplicationModel.d.ts b/sdk/application/Payment/PaymentApplicationModel.d.ts index 26e0449b6..49d8f0d51 100644 --- a/sdk/application/Payment/PaymentApplicationModel.d.ts +++ b/sdk/application/Payment/PaymentApplicationModel.d.ts @@ -2,13 +2,13 @@ export = PaymentApplicationModel; /** * @typedef AggregatorConfigDetail * @property {boolean} [sdk] - SDK - * @property {string} [secret] - Masked payment gateway api secret + * @property {string} secret - Masked payment gateway api secret * @property {string} [api] - Payment gateway api endpoint * @property {string} [pin] - Masked pin - * @property {string} [config_type] - Fynd or self payment gateway + * @property {string} config_type - Fynd or self payment gateway * @property {string} [merchant_key] - Unique merchant key * @property {string} [verify_api] - Payment gateway verify payment api endpoint - * @property {string} [key] - Payment gateway api key + * @property {string} key - Payment gateway api key * @property {string} [user_id] - Registered User id * @property {string} [merchant_id] - Unique merchant id */ @@ -267,6 +267,13 @@ export = PaymentApplicationModel; * @property {string} [payment_flow] - Payment_flow * @property {string} [api_link] - Api_link */ +/** + * @typedef PaymentDefaultSelection + * @property {string} [mode] - Default Selection Payment Mode + * @property {string} [identifier] - Identifier for Payment Mode + * @property {boolean} [skip] - Decide if the default payment mode will skip the + * payment options page altogether or just be preferred on the Frontend + */ /** * @typedef PaymentFlow * @property {AggregatorRoute} [bqr_razorpay] @@ -286,8 +293,9 @@ export = PaymentApplicationModel; */ /** * @typedef PaymentOptionAndFlow - * @property {RootPaymentMode[]} payment_option - Payment options + * @property {RootPaymentMode} payment_option * @property {PaymentFlow} payment_flows + * @property {PaymentDefaultSelection} [payment_default_selection] */ /** * @typedef AdvanceObject @@ -398,6 +406,7 @@ export = PaymentApplicationModel; /** * @typedef ValidateVPARequest * @property {string} upi_vpa - UPI ID + * @property {string} [aggregator] - Aggregator slug */ /** * @typedef ValidateUPI @@ -539,8 +548,8 @@ export = PaymentApplicationModel; */ /** * @typedef AddBeneficiaryDetailsRequest - * @property {boolean} [delights] - True if beneficiary to be added by delights - * or False if by User + * @property {boolean} delights - True if beneficiary to be added by delights or + * False if by User * @property {string} shipment_id - Shipment Id of the respective Merchant Order Id * @property {BeneficiaryModeDetails} details * @property {string} [otp] @@ -584,7 +593,6 @@ export = PaymentApplicationModel; * @typedef SetDefaultBeneficiaryRequest * @property {string} order_id - Merchant Order Id * @property {string} beneficiary_id - Beneficiary Hash Id of the beneficiary added - * @property {string} [shipment_id] - Shipment Id from respective merchant order ID */ /** * @typedef SetDefaultBeneficiaryResponse @@ -869,113 +877,6 @@ export = PaymentApplicationModel; * @property {boolean} success - Response is successful or not. * @property {string} [message] - Message */ -/** - * @typedef DeleteRefundAccountResponse - * @property {boolean} success - Success/Failure of the deleted beneficiary - * @property {string} message - Message - */ -/** - * @typedef RefundOptionsDetails - * @property {string} display_name - Refund option display name - * @property {number} id - Refund ID. It will be unique identifier - * @property {boolean} [is_active] - Refund option is active or not - * @property {string} name - Refund option name - */ -/** - * @typedef RefundOptions - * @property {RefundOptionsDetails} items - List of all refund options. - */ -/** - * @typedef OfflineRefundOptions - * @property {RefundOptionsDetails} items - List of all refund options. - * @property {string[]} payment_modes - List of all offline payment options. MOP - * Code value - */ -/** - * @typedef RefundOptionResponse - * @property {OfflineRefundOptions} offline_refund_options - Available offline - * refund options data - * @property {boolean} success - Success/Failure Of response - * @property {RefundOptions} refund_options - Available refund options data - */ -/** - * @typedef SelectedRefundOptionResponse - * @property {Object} transfer_mode - Selected transfer mode for given shipment - * @property {string} shipment_id - Shipment ID - * @property {string} message - Message - * @property {boolean} success - Successful or not. - */ -/** - * @typedef WalletBeneficiaryDetails - * @property {string} beneficiary_id - Benenficiary Id - * @property {string} modified_on - MOdification Date of Beneficiary - * @property {string} display_name - Display Name Of Account - * @property {number} id - - * @property {string} subtitle - SHort Title Of Account - * @property {string} transfer_mode - Transfer Mode Of Account - * @property {string} [mobile] - MObile no of User - * @property {boolean} is_active - Boolean Flag whether Beneficiary set or not - * @property {string} created_on - Creation Date of Beneficiary - * @property {string} address - Address of User - * @property {string} title - Title Of Account - * @property {string} wallet_address - Bank Name Of Account - * @property {string} [comment] - Remarks - * @property {string} [wallet] - Branch Name Of Account - * @property {string} email - EMail of User - * @property {string} [delights_user_name] - User Id Who filled the Beneficiary - */ -/** - * @typedef UpiBeneficiaryDetails - * @property {string} beneficiary_id - Benenficiary Id - * @property {string} modified_on - MOdification Date of Beneficiary - * @property {string} display_name - Display Name Of Account - * @property {number} id - - * @property {string} subtitle - SHort Title Of Account - * @property {string} transfer_mode - Transfer Mode Of Account - * @property {string} [vpa] - Branch Name Of Account - * @property {string} [mobile] - Mobile no of User - * @property {string} vpa_address - Bank Name Of Account - * @property {string} created_on - Creation Date of Beneficiary - * @property {string} address - Address of User - * @property {string} title - Title Of Account - * @property {string} [comment] - Remarks - * @property {boolean} is_active - Boolean Flag whether Beneficiary set or not - * @property {string} email - EMail of User - * @property {string} [delights_user_name] - User Id Who filled the Beneficiary - */ -/** - * @typedef BeneficiaryRefundOptions - * @property {OrderBeneficiaryDetails} [bank] - List of all add bank beneficiary details. - * @property {WalletBeneficiaryDetails} [wallet] - List of all add Wallet - * beneficiary details. - * @property {UpiBeneficiaryDetails} [upi] - List of all add UPI beneficiary details. - */ -/** - * @typedef OrderBeneficiaryResponseSchemaV2 - * @property {boolean} show_beneficiary_details - Show Beneficiary details on UI or not. - * @property {BeneficiaryRefundOptions} data - Beneficiary Data for Bank - * account, UPI and Wallets. - * @property {Object} limit - Max Limit for adding bank account, UPI and wallet - */ -/** - * @typedef ValidateValidateAddressRequest - * @property {string} [ifsc_code] - IFSC Code - * @property {string} [upi_vpa] - VPA Address - * @property {string} [aggregator] - Aggregator Name - */ -/** - * @typedef VPADetails - * @property {boolean} is_valid - Is VPA valid or not - * @property {string} upi_vpa - VPA address - * @property {string} status - VPA validation message - * @property {string} customer_name - VPA Customer Name - */ -/** - * @typedef ValidateValidateAddressResponse - * @property {VPADetails} [upi] - UPI validation details. - * @property {boolean} success - Successful or not. - * @property {Object} [ifsc] - IFSC details response data - */ /** * @typedef PaymentMethodsMetaOrder * @property {string} merchant_code - Merchant code @@ -1014,35 +915,15 @@ export = PaymentApplicationModel; * @property {string} [payment_confirm_url] - Payment confirm url for aggregator * @property {string} [callback_url] - Callback url for aggregator * @property {string} [order_id] - Merchant order id - * @property {boolean} [success] - Successful or failure + * @property {boolean} success - Successful or failure * @property {number} status_code - HTTP status code * @property {PaymentOrderData} [data] * @property {string} message - Message */ -/** - * @typedef ShipmentRefundRequest - * @property {string} shipment_id - Shipment Id of the respective Merchant Order Id - * @property {string} order_id - Merchant Order Id - * @property {string} transfer_mode - Transfer Mode of the Beneficiary to be added - * @property {string} [beneficiary_id] - Beneficiary Hash Id of the beneficiary added - */ -/** - * @typedef ShipmentRefundDetail - * @property {string} shipment_id - Shipment ID - * @property {string} order_id - Order ID - * @property {string} transfer_mode - TransferMode - * @property {string} beneficiary_id - Beneficiary ID - */ -/** - * @typedef ShipmentRefundResponse - * @property {ShipmentRefundDetail} data - Selected Shipment refund option details. - * @property {boolean} success - Successful or not. - * @property {string} message - Message - */ declare class PaymentApplicationModel { } declare namespace PaymentApplicationModel { - export { AggregatorConfigDetail, AggregatorsConfigDetailResponse, ErrorCodeAndDescription, HttpErrorCodeAndResponse, AttachCardRequest, AttachCardsResponse, CardPaymentGateway, ActiveCardPaymentGatewayResponse, Card, ListCardsResponse, DeletehCardRequest, DeleteCardsResponse, ValidateCustomerRequest, ValidateCustomerResponse, ChargeCustomerRequest, ChargeCustomerResponse, PaymentInitializationRequest, PaymentInitializationResponse, PaymentStatusUpdateRequest, PaymentStatusUpdateResponse, IntentAppErrorList, PaymentModeLogo, IntentApp, PaymentModeList, RootPaymentMode, AggregatorRoute, PaymentFlow, PaymentOptionAndFlow, AdvanceObject, SplitObject, AdvancePaymentObject, PaymentModeRouteResponse, WalletLinkRequestSchema, WalletVerifyRequestSchema, WalletDelinkRequestSchema, WalletResponseSchema, RupifiBannerData, RupifiBannerResponse, EpaylaterBannerData, EpaylaterBannerResponse, ResendOrCancelPaymentRequest, LinkStatus, ResendOrCancelPaymentResponse, renderHTMLRequest, renderHTMLResponse, ValidateVPARequest, ValidateUPI, ValidateVPAResponse, CardDetails, CardDetailsResponse, TransferItemsDetails, TransferModeDetails, TransferModeResponse, UpdateRefundTransferModeRequest, UpdateRefundTransferModeResponse, OrderBeneficiaryDetails, OrderBeneficiaryResponse, NotFoundResourceError, IfscCodeResponse, ErrorCodeDescription, AddBeneficiaryViaOtpVerificationRequest, AddBeneficiaryViaOtpVerificationResponse, WrongOtpError, BeneficiaryModeDetails, AddBeneficiaryDetailsRequest, RefundAccountResponse, BankDetailsForOTP, AddBeneficiaryDetailsOTPRequest, WalletOtpRequest, WalletOtpResponse, SetDefaultBeneficiaryRequest, SetDefaultBeneficiaryResponse, GetPaymentLinkResponse, ErrorDescription, ErrorResponse, CreatePaymentLinkMeta, CreatePaymentLinkRequest, CreatePaymentLinkResponse, CancelOrResendPaymentLinkRequest, ResendPaymentLinkResponse, CancelPaymentLinkResponse, PollingPaymentLinkResponse, PaymentMethodsMeta, CreateOrderUserPaymentMethods, CreateOrderUserRequest, CreateOrderUserData, CreateOrderUserResponse, BalanceDetails, CreditSummary, CustomerCreditSummaryResponse, RedirectURL, RedirectToAggregatorResponse, CreditDetail, CheckCreditResponse, KYCAddress, UserPersonalInfoInDetails, MarketplaceInfo, BusinessDetails, DeviceDetails, CustomerOnboardingRequest, OnboardSummary, CustomerOnboardingResponse, OutstandingOrderDetailsResponse, PaidOrderDetailsResponse, DeleteRefundAccountResponse, RefundOptionsDetails, RefundOptions, OfflineRefundOptions, RefundOptionResponse, SelectedRefundOptionResponse, WalletBeneficiaryDetails, UpiBeneficiaryDetails, BeneficiaryRefundOptions, OrderBeneficiaryResponseSchemaV2, ValidateValidateAddressRequest, VPADetails, ValidateValidateAddressResponse, PaymentMethodsMetaOrder, PaymentOrderMethods, PaymentOrderRequest, PaymentOrderData, PaymentOrderResponse, ShipmentRefundRequest, ShipmentRefundDetail, ShipmentRefundResponse }; + export { AggregatorConfigDetail, AggregatorsConfigDetailResponse, ErrorCodeAndDescription, HttpErrorCodeAndResponse, AttachCardRequest, AttachCardsResponse, CardPaymentGateway, ActiveCardPaymentGatewayResponse, Card, ListCardsResponse, DeletehCardRequest, DeleteCardsResponse, ValidateCustomerRequest, ValidateCustomerResponse, ChargeCustomerRequest, ChargeCustomerResponse, PaymentInitializationRequest, PaymentInitializationResponse, PaymentStatusUpdateRequest, PaymentStatusUpdateResponse, IntentAppErrorList, PaymentModeLogo, IntentApp, PaymentModeList, RootPaymentMode, AggregatorRoute, PaymentDefaultSelection, PaymentFlow, PaymentOptionAndFlow, AdvanceObject, SplitObject, AdvancePaymentObject, PaymentModeRouteResponse, WalletLinkRequestSchema, WalletVerifyRequestSchema, WalletDelinkRequestSchema, WalletResponseSchema, RupifiBannerData, RupifiBannerResponse, EpaylaterBannerData, EpaylaterBannerResponse, ResendOrCancelPaymentRequest, LinkStatus, ResendOrCancelPaymentResponse, renderHTMLRequest, renderHTMLResponse, ValidateVPARequest, ValidateUPI, ValidateVPAResponse, CardDetails, CardDetailsResponse, TransferItemsDetails, TransferModeDetails, TransferModeResponse, UpdateRefundTransferModeRequest, UpdateRefundTransferModeResponse, OrderBeneficiaryDetails, OrderBeneficiaryResponse, NotFoundResourceError, IfscCodeResponse, ErrorCodeDescription, AddBeneficiaryViaOtpVerificationRequest, AddBeneficiaryViaOtpVerificationResponse, WrongOtpError, BeneficiaryModeDetails, AddBeneficiaryDetailsRequest, RefundAccountResponse, BankDetailsForOTP, AddBeneficiaryDetailsOTPRequest, WalletOtpRequest, WalletOtpResponse, SetDefaultBeneficiaryRequest, SetDefaultBeneficiaryResponse, GetPaymentLinkResponse, ErrorDescription, ErrorResponse, CreatePaymentLinkMeta, CreatePaymentLinkRequest, CreatePaymentLinkResponse, CancelOrResendPaymentLinkRequest, ResendPaymentLinkResponse, CancelPaymentLinkResponse, PollingPaymentLinkResponse, PaymentMethodsMeta, CreateOrderUserPaymentMethods, CreateOrderUserRequest, CreateOrderUserData, CreateOrderUserResponse, BalanceDetails, CreditSummary, CustomerCreditSummaryResponse, RedirectURL, RedirectToAggregatorResponse, CreditDetail, CheckCreditResponse, KYCAddress, UserPersonalInfoInDetails, MarketplaceInfo, BusinessDetails, DeviceDetails, CustomerOnboardingRequest, OnboardSummary, CustomerOnboardingResponse, OutstandingOrderDetailsResponse, PaidOrderDetailsResponse, PaymentMethodsMetaOrder, PaymentOrderMethods, PaymentOrderRequest, PaymentOrderData, PaymentOrderResponse }; } /** @returns {AggregatorConfigDetail} */ declare function AggregatorConfigDetail(): AggregatorConfigDetail; @@ -1054,7 +935,7 @@ type AggregatorConfigDetail = { /** * - Masked payment gateway api secret */ - secret?: string; + secret: string; /** * - Payment gateway api endpoint */ @@ -1066,7 +947,7 @@ type AggregatorConfigDetail = { /** * - Fynd or self payment gateway */ - config_type?: string; + config_type: string; /** * - Unique merchant key */ @@ -1078,7 +959,7 @@ type AggregatorConfigDetail = { /** * - Payment gateway api key */ - key?: string; + key: string; /** * - Registered User id */ @@ -1851,6 +1732,23 @@ type AggregatorRoute = { */ api_link?: string; }; +/** @returns {PaymentDefaultSelection} */ +declare function PaymentDefaultSelection(): PaymentDefaultSelection; +type PaymentDefaultSelection = { + /** + * - Default Selection Payment Mode + */ + mode?: string; + /** + * - Identifier for Payment Mode + */ + identifier?: string; + /** + * - Decide if the default payment mode will skip the + * payment options page altogether or just be preferred on the Frontend + */ + skip?: boolean; +}; /** @returns {PaymentFlow} */ declare function PaymentFlow(): PaymentFlow; type PaymentFlow = { @@ -1872,11 +1770,9 @@ type PaymentFlow = { /** @returns {PaymentOptionAndFlow} */ declare function PaymentOptionAndFlow(): PaymentOptionAndFlow; type PaymentOptionAndFlow = { - /** - * - Payment options - */ - payment_option: RootPaymentMode[]; + payment_option: RootPaymentMode; payment_flows: PaymentFlow; + payment_default_selection?: PaymentDefaultSelection; }; /** @returns {AdvanceObject} */ declare function AdvanceObject(): AdvanceObject; @@ -2152,6 +2048,10 @@ type ValidateVPARequest = { * - UPI ID */ upi_vpa: string; + /** + * - Aggregator slug + */ + aggregator?: string; }; /** @returns {ValidateUPI} */ declare function ValidateUPI(): ValidateUPI; @@ -2553,10 +2453,10 @@ type BeneficiaryModeDetails = { declare function AddBeneficiaryDetailsRequest(): AddBeneficiaryDetailsRequest; type AddBeneficiaryDetailsRequest = { /** - * - True if beneficiary to be added by delights - * or False if by User + * - True if beneficiary to be added by delights or + * False if by User */ - delights?: boolean; + delights: boolean; /** * - Shipment Id of the respective Merchant Order Id */ @@ -2645,10 +2545,6 @@ type SetDefaultBeneficiaryRequest = { * - Beneficiary Hash Id of the beneficiary added */ beneficiary_id: string; - /** - * - Shipment Id from respective merchant order ID - */ - shipment_id?: string; }; /** @returns {SetDefaultBeneficiaryResponse} */ declare function SetDefaultBeneficiaryResponse(): SetDefaultBeneficiaryResponse; @@ -3443,318 +3339,6 @@ type PaidOrderDetailsResponse = { */ message?: string; }; -/** @returns {DeleteRefundAccountResponse} */ -declare function DeleteRefundAccountResponse(): DeleteRefundAccountResponse; -type DeleteRefundAccountResponse = { - /** - * - Success/Failure of the deleted beneficiary - */ - success: boolean; - /** - * - Message - */ - message: string; -}; -/** @returns {RefundOptionsDetails} */ -declare function RefundOptionsDetails(): RefundOptionsDetails; -type RefundOptionsDetails = { - /** - * - Refund option display name - */ - display_name: string; - /** - * - Refund ID. It will be unique identifier - */ - id: number; - /** - * - Refund option is active or not - */ - is_active?: boolean; - /** - * - Refund option name - */ - name: string; -}; -/** @returns {RefundOptions} */ -declare function RefundOptions(): RefundOptions; -type RefundOptions = { - /** - * - List of all refund options. - */ - items: RefundOptionsDetails; -}; -/** @returns {OfflineRefundOptions} */ -declare function OfflineRefundOptions(): OfflineRefundOptions; -type OfflineRefundOptions = { - /** - * - List of all refund options. - */ - items: RefundOptionsDetails; - /** - * - List of all offline payment options. MOP - * Code value - */ - payment_modes: string[]; -}; -/** @returns {RefundOptionResponse} */ -declare function RefundOptionResponse(): RefundOptionResponse; -type RefundOptionResponse = { - /** - * - Available offline - * refund options data - */ - offline_refund_options: OfflineRefundOptions; - /** - * - Success/Failure Of response - */ - success: boolean; - /** - * - Available refund options data - */ - refund_options: RefundOptions; -}; -/** @returns {SelectedRefundOptionResponse} */ -declare function SelectedRefundOptionResponse(): SelectedRefundOptionResponse; -type SelectedRefundOptionResponse = { - /** - * - Selected transfer mode for given shipment - */ - transfer_mode: any; - /** - * - Shipment ID - */ - shipment_id: string; - /** - * - Message - */ - message: string; - /** - * - Successful or not. - */ - success: boolean; -}; -/** @returns {WalletBeneficiaryDetails} */ -declare function WalletBeneficiaryDetails(): WalletBeneficiaryDetails; -type WalletBeneficiaryDetails = { - /** - * - Benenficiary Id - */ - beneficiary_id: string; - /** - * - MOdification Date of Beneficiary - */ - modified_on: string; - /** - * - Display Name Of Account - */ - display_name: string; - /** - * - - */ - id: number; - /** - * - SHort Title Of Account - */ - subtitle: string; - /** - * - Transfer Mode Of Account - */ - transfer_mode: string; - /** - * - MObile no of User - */ - mobile?: string; - /** - * - Boolean Flag whether Beneficiary set or not - */ - is_active: boolean; - /** - * - Creation Date of Beneficiary - */ - created_on: string; - /** - * - Address of User - */ - address: string; - /** - * - Title Of Account - */ - title: string; - /** - * - Bank Name Of Account - */ - wallet_address: string; - /** - * - Remarks - */ - comment?: string; - /** - * - Branch Name Of Account - */ - wallet?: string; - /** - * - EMail of User - */ - email: string; - /** - * - User Id Who filled the Beneficiary - */ - delights_user_name?: string; -}; -/** @returns {UpiBeneficiaryDetails} */ -declare function UpiBeneficiaryDetails(): UpiBeneficiaryDetails; -type UpiBeneficiaryDetails = { - /** - * - Benenficiary Id - */ - beneficiary_id: string; - /** - * - MOdification Date of Beneficiary - */ - modified_on: string; - /** - * - Display Name Of Account - */ - display_name: string; - /** - * - - */ - id: number; - /** - * - SHort Title Of Account - */ - subtitle: string; - /** - * - Transfer Mode Of Account - */ - transfer_mode: string; - /** - * - Branch Name Of Account - */ - vpa?: string; - /** - * - Mobile no of User - */ - mobile?: string; - /** - * - Bank Name Of Account - */ - vpa_address: string; - /** - * - Creation Date of Beneficiary - */ - created_on: string; - /** - * - Address of User - */ - address: string; - /** - * - Title Of Account - */ - title: string; - /** - * - Remarks - */ - comment?: string; - /** - * - Boolean Flag whether Beneficiary set or not - */ - is_active: boolean; - /** - * - EMail of User - */ - email: string; - /** - * - User Id Who filled the Beneficiary - */ - delights_user_name?: string; -}; -/** @returns {BeneficiaryRefundOptions} */ -declare function BeneficiaryRefundOptions(): BeneficiaryRefundOptions; -type BeneficiaryRefundOptions = { - /** - * - List of all add bank beneficiary details. - */ - bank?: OrderBeneficiaryDetails; - /** - * - List of all add Wallet - * beneficiary details. - */ - wallet?: WalletBeneficiaryDetails; - /** - * - List of all add UPI beneficiary details. - */ - upi?: UpiBeneficiaryDetails; -}; -/** @returns {OrderBeneficiaryResponseSchemaV2} */ -declare function OrderBeneficiaryResponseSchemaV2(): OrderBeneficiaryResponseSchemaV2; -type OrderBeneficiaryResponseSchemaV2 = { - /** - * - Show Beneficiary details on UI or not. - */ - show_beneficiary_details: boolean; - /** - * - Beneficiary Data for Bank - * account, UPI and Wallets. - */ - data: BeneficiaryRefundOptions; - /** - * - Max Limit for adding bank account, UPI and wallet - */ - limit: any; -}; -/** @returns {ValidateValidateAddressRequest} */ -declare function ValidateValidateAddressRequest(): ValidateValidateAddressRequest; -type ValidateValidateAddressRequest = { - /** - * - IFSC Code - */ - ifsc_code?: string; - /** - * - VPA Address - */ - upi_vpa?: string; - /** - * - Aggregator Name - */ - aggregator?: string; -}; -/** @returns {VPADetails} */ -declare function VPADetails(): VPADetails; -type VPADetails = { - /** - * - Is VPA valid or not - */ - is_valid: boolean; - /** - * - VPA address - */ - upi_vpa: string; - /** - * - VPA validation message - */ - status: string; - /** - * - VPA Customer Name - */ - customer_name: string; -}; -/** @returns {ValidateValidateAddressResponse} */ -declare function ValidateValidateAddressResponse(): ValidateValidateAddressResponse; -type ValidateValidateAddressResponse = { - /** - * - UPI validation details. - */ - upi?: VPADetails; - /** - * - Successful or not. - */ - success: boolean; - /** - * - IFSC details response data - */ - ifsc?: any; -}; /** @returns {PaymentMethodsMetaOrder} */ declare function PaymentMethodsMetaOrder(): PaymentMethodsMetaOrder; type PaymentMethodsMetaOrder = { @@ -3867,7 +3451,7 @@ type PaymentOrderResponse = { /** * - Successful or failure */ - success?: boolean; + success: boolean; /** * - HTTP status code */ @@ -3878,59 +3462,3 @@ type PaymentOrderResponse = { */ message: string; }; -/** @returns {ShipmentRefundRequest} */ -declare function ShipmentRefundRequest(): ShipmentRefundRequest; -type ShipmentRefundRequest = { - /** - * - Shipment Id of the respective Merchant Order Id - */ - shipment_id: string; - /** - * - Merchant Order Id - */ - order_id: string; - /** - * - Transfer Mode of the Beneficiary to be added - */ - transfer_mode: string; - /** - * - Beneficiary Hash Id of the beneficiary added - */ - beneficiary_id?: string; -}; -/** @returns {ShipmentRefundDetail} */ -declare function ShipmentRefundDetail(): ShipmentRefundDetail; -type ShipmentRefundDetail = { - /** - * - Shipment ID - */ - shipment_id: string; - /** - * - Order ID - */ - order_id: string; - /** - * - TransferMode - */ - transfer_mode: string; - /** - * - Beneficiary ID - */ - beneficiary_id: string; -}; -/** @returns {ShipmentRefundResponse} */ -declare function ShipmentRefundResponse(): ShipmentRefundResponse; -type ShipmentRefundResponse = { - /** - * - Selected Shipment refund option details. - */ - data: ShipmentRefundDetail; - /** - * - Successful or not. - */ - success: boolean; - /** - * - Message - */ - message: string; -}; diff --git a/sdk/application/Payment/PaymentApplicationModel.js b/sdk/application/Payment/PaymentApplicationModel.js index 95e57ce5f..c2e7885d3 100644 --- a/sdk/application/Payment/PaymentApplicationModel.js +++ b/sdk/application/Payment/PaymentApplicationModel.js @@ -3,13 +3,13 @@ const Joi = require("joi"); /** * @typedef AggregatorConfigDetail * @property {boolean} [sdk] - SDK - * @property {string} [secret] - Masked payment gateway api secret + * @property {string} secret - Masked payment gateway api secret * @property {string} [api] - Payment gateway api endpoint * @property {string} [pin] - Masked pin - * @property {string} [config_type] - Fynd or self payment gateway + * @property {string} config_type - Fynd or self payment gateway * @property {string} [merchant_key] - Unique merchant key * @property {string} [verify_api] - Payment gateway verify payment api endpoint - * @property {string} [key] - Payment gateway api key + * @property {string} key - Payment gateway api key * @property {string} [user_id] - Registered User id * @property {string} [merchant_id] - Unique merchant id */ @@ -294,6 +294,14 @@ const Joi = require("joi"); * @property {string} [api_link] - Api_link */ +/** + * @typedef PaymentDefaultSelection + * @property {string} [mode] - Default Selection Payment Mode + * @property {string} [identifier] - Identifier for Payment Mode + * @property {boolean} [skip] - Decide if the default payment mode will skip the + * payment options page altogether or just be preferred on the Frontend + */ + /** * @typedef PaymentFlow * @property {AggregatorRoute} [bqr_razorpay] @@ -314,8 +322,9 @@ const Joi = require("joi"); /** * @typedef PaymentOptionAndFlow - * @property {RootPaymentMode[]} payment_option - Payment options + * @property {RootPaymentMode} payment_option * @property {PaymentFlow} payment_flows + * @property {PaymentDefaultSelection} [payment_default_selection] */ /** @@ -444,6 +453,7 @@ const Joi = require("joi"); /** * @typedef ValidateVPARequest * @property {string} upi_vpa - UPI ID + * @property {string} [aggregator] - Aggregator slug */ /** @@ -604,8 +614,8 @@ const Joi = require("joi"); /** * @typedef AddBeneficiaryDetailsRequest - * @property {boolean} [delights] - True if beneficiary to be added by delights - * or False if by User + * @property {boolean} delights - True if beneficiary to be added by delights or + * False if by User * @property {string} shipment_id - Shipment Id of the respective Merchant Order Id * @property {BeneficiaryModeDetails} details * @property {string} [otp] @@ -655,7 +665,6 @@ const Joi = require("joi"); * @typedef SetDefaultBeneficiaryRequest * @property {string} order_id - Merchant Order Id * @property {string} beneficiary_id - Beneficiary Hash Id of the beneficiary added - * @property {string} [shipment_id] - Shipment Id from respective merchant order ID */ /** @@ -974,126 +983,6 @@ const Joi = require("joi"); * @property {string} [message] - Message */ -/** - * @typedef DeleteRefundAccountResponse - * @property {boolean} success - Success/Failure of the deleted beneficiary - * @property {string} message - Message - */ - -/** - * @typedef RefundOptionsDetails - * @property {string} display_name - Refund option display name - * @property {number} id - Refund ID. It will be unique identifier - * @property {boolean} [is_active] - Refund option is active or not - * @property {string} name - Refund option name - */ - -/** - * @typedef RefundOptions - * @property {RefundOptionsDetails} items - List of all refund options. - */ - -/** - * @typedef OfflineRefundOptions - * @property {RefundOptionsDetails} items - List of all refund options. - * @property {string[]} payment_modes - List of all offline payment options. MOP - * Code value - */ - -/** - * @typedef RefundOptionResponse - * @property {OfflineRefundOptions} offline_refund_options - Available offline - * refund options data - * @property {boolean} success - Success/Failure Of response - * @property {RefundOptions} refund_options - Available refund options data - */ - -/** - * @typedef SelectedRefundOptionResponse - * @property {Object} transfer_mode - Selected transfer mode for given shipment - * @property {string} shipment_id - Shipment ID - * @property {string} message - Message - * @property {boolean} success - Successful or not. - */ - -/** - * @typedef WalletBeneficiaryDetails - * @property {string} beneficiary_id - Benenficiary Id - * @property {string} modified_on - MOdification Date of Beneficiary - * @property {string} display_name - Display Name Of Account - * @property {number} id - - * @property {string} subtitle - SHort Title Of Account - * @property {string} transfer_mode - Transfer Mode Of Account - * @property {string} [mobile] - MObile no of User - * @property {boolean} is_active - Boolean Flag whether Beneficiary set or not - * @property {string} created_on - Creation Date of Beneficiary - * @property {string} address - Address of User - * @property {string} title - Title Of Account - * @property {string} wallet_address - Bank Name Of Account - * @property {string} [comment] - Remarks - * @property {string} [wallet] - Branch Name Of Account - * @property {string} email - EMail of User - * @property {string} [delights_user_name] - User Id Who filled the Beneficiary - */ - -/** - * @typedef UpiBeneficiaryDetails - * @property {string} beneficiary_id - Benenficiary Id - * @property {string} modified_on - MOdification Date of Beneficiary - * @property {string} display_name - Display Name Of Account - * @property {number} id - - * @property {string} subtitle - SHort Title Of Account - * @property {string} transfer_mode - Transfer Mode Of Account - * @property {string} [vpa] - Branch Name Of Account - * @property {string} [mobile] - Mobile no of User - * @property {string} vpa_address - Bank Name Of Account - * @property {string} created_on - Creation Date of Beneficiary - * @property {string} address - Address of User - * @property {string} title - Title Of Account - * @property {string} [comment] - Remarks - * @property {boolean} is_active - Boolean Flag whether Beneficiary set or not - * @property {string} email - EMail of User - * @property {string} [delights_user_name] - User Id Who filled the Beneficiary - */ - -/** - * @typedef BeneficiaryRefundOptions - * @property {OrderBeneficiaryDetails} [bank] - List of all add bank beneficiary details. - * @property {WalletBeneficiaryDetails} [wallet] - List of all add Wallet - * beneficiary details. - * @property {UpiBeneficiaryDetails} [upi] - List of all add UPI beneficiary details. - */ - -/** - * @typedef OrderBeneficiaryResponseSchemaV2 - * @property {boolean} show_beneficiary_details - Show Beneficiary details on UI or not. - * @property {BeneficiaryRefundOptions} data - Beneficiary Data for Bank - * account, UPI and Wallets. - * @property {Object} limit - Max Limit for adding bank account, UPI and wallet - */ - -/** - * @typedef ValidateValidateAddressRequest - * @property {string} [ifsc_code] - IFSC Code - * @property {string} [upi_vpa] - VPA Address - * @property {string} [aggregator] - Aggregator Name - */ - -/** - * @typedef VPADetails - * @property {boolean} is_valid - Is VPA valid or not - * @property {string} upi_vpa - VPA address - * @property {string} status - VPA validation message - * @property {string} customer_name - VPA Customer Name - */ - -/** - * @typedef ValidateValidateAddressResponse - * @property {VPADetails} [upi] - UPI validation details. - * @property {boolean} success - Successful or not. - * @property {Object} [ifsc] - IFSC details response data - */ - /** * @typedef PaymentMethodsMetaOrder * @property {string} merchant_code - Merchant code @@ -1136,47 +1025,24 @@ const Joi = require("joi"); * @property {string} [payment_confirm_url] - Payment confirm url for aggregator * @property {string} [callback_url] - Callback url for aggregator * @property {string} [order_id] - Merchant order id - * @property {boolean} [success] - Successful or failure + * @property {boolean} success - Successful or failure * @property {number} status_code - HTTP status code * @property {PaymentOrderData} [data] * @property {string} message - Message */ -/** - * @typedef ShipmentRefundRequest - * @property {string} shipment_id - Shipment Id of the respective Merchant Order Id - * @property {string} order_id - Merchant Order Id - * @property {string} transfer_mode - Transfer Mode of the Beneficiary to be added - * @property {string} [beneficiary_id] - Beneficiary Hash Id of the beneficiary added - */ - -/** - * @typedef ShipmentRefundDetail - * @property {string} shipment_id - Shipment ID - * @property {string} order_id - Order ID - * @property {string} transfer_mode - TransferMode - * @property {string} beneficiary_id - Beneficiary ID - */ - -/** - * @typedef ShipmentRefundResponse - * @property {ShipmentRefundDetail} data - Selected Shipment refund option details. - * @property {boolean} success - Successful or not. - * @property {string} message - Message - */ - class PaymentApplicationModel { /** @returns {AggregatorConfigDetail} */ static AggregatorConfigDetail() { return Joi.object({ sdk: Joi.boolean().allow(null), - secret: Joi.string().allow(""), + secret: Joi.string().allow("").required(), api: Joi.string().allow("").allow(null), pin: Joi.string().allow("").allow(null), - config_type: Joi.string().allow(""), + config_type: Joi.string().allow("").required(), merchant_key: Joi.string().allow("").allow(null), verify_api: Joi.string().allow("").allow(null), - key: Joi.string().allow(""), + key: Joi.string().allow("").required(), user_id: Joi.string().allow("").allow(null), merchant_id: Joi.string().allow("").allow(null), }); @@ -1510,6 +1376,15 @@ class PaymentApplicationModel { }); } + /** @returns {PaymentDefaultSelection} */ + static PaymentDefaultSelection() { + return Joi.object({ + mode: Joi.string().allow("").allow(null), + identifier: Joi.string().allow("").allow(null), + skip: Joi.boolean().allow(null), + }); + } + /** @returns {PaymentFlow} */ static PaymentFlow() { return Joi.object({ @@ -1533,10 +1408,9 @@ class PaymentApplicationModel { /** @returns {PaymentOptionAndFlow} */ static PaymentOptionAndFlow() { return Joi.object({ - payment_option: Joi.array() - .items(PaymentApplicationModel.RootPaymentMode()) - .required(), + payment_option: PaymentApplicationModel.RootPaymentMode().required(), payment_flows: PaymentApplicationModel.PaymentFlow().required(), + payment_default_selection: PaymentApplicationModel.PaymentDefaultSelection(), }); } @@ -1704,6 +1578,7 @@ class PaymentApplicationModel { static ValidateVPARequest() { return Joi.object({ upi_vpa: Joi.string().allow("").required(), + aggregator: Joi.string().allow(""), }); } @@ -1906,7 +1781,7 @@ class PaymentApplicationModel { /** @returns {AddBeneficiaryDetailsRequest} */ static AddBeneficiaryDetailsRequest() { return Joi.object({ - delights: Joi.boolean(), + delights: Joi.boolean().required(), shipment_id: Joi.string().allow("").required(), details: PaymentApplicationModel.BeneficiaryModeDetails().required(), otp: Joi.string().allow(""), @@ -1967,7 +1842,6 @@ class PaymentApplicationModel { return Joi.object({ order_id: Joi.string().allow("").required(), beneficiary_id: Joi.string().allow("").required(), - shipment_id: Joi.string().allow(""), }); } @@ -2352,148 +2226,6 @@ class PaymentApplicationModel { }); } - /** @returns {DeleteRefundAccountResponse} */ - static DeleteRefundAccountResponse() { - return Joi.object({ - success: Joi.boolean().required(), - message: Joi.string().allow("").allow(null).required(), - }); - } - - /** @returns {RefundOptionsDetails} */ - static RefundOptionsDetails() { - return Joi.object({ - display_name: Joi.string().allow("").required(), - id: Joi.number().required(), - is_active: Joi.boolean().allow(null), - name: Joi.string().allow("").required(), - }); - } - - /** @returns {RefundOptions} */ - static RefundOptions() { - return Joi.object({ - items: PaymentApplicationModel.RefundOptionsDetails().required(), - }); - } - - /** @returns {OfflineRefundOptions} */ - static OfflineRefundOptions() { - return Joi.object({ - items: PaymentApplicationModel.RefundOptionsDetails().required(), - payment_modes: Joi.array().items(Joi.string().allow("")).required(), - }); - } - - /** @returns {RefundOptionResponse} */ - static RefundOptionResponse() { - return Joi.object({ - offline_refund_options: PaymentApplicationModel.OfflineRefundOptions().required(), - success: Joi.boolean().required(), - refund_options: PaymentApplicationModel.RefundOptions().required(), - }); - } - - /** @returns {SelectedRefundOptionResponse} */ - static SelectedRefundOptionResponse() { - return Joi.object({ - transfer_mode: Joi.any().required(), - shipment_id: Joi.string().allow("").allow(null).required(), - message: Joi.string().allow("").allow(null).required(), - success: Joi.boolean().required(), - }); - } - - /** @returns {WalletBeneficiaryDetails} */ - static WalletBeneficiaryDetails() { - return Joi.object({ - beneficiary_id: Joi.string().allow("").required(), - modified_on: Joi.string().allow("").required(), - display_name: Joi.string().allow("").required(), - id: Joi.number().required(), - subtitle: Joi.string().allow("").required(), - transfer_mode: Joi.string().allow("").required(), - mobile: Joi.string().allow(""), - is_active: Joi.boolean().required(), - created_on: Joi.string().allow("").required(), - address: Joi.string().allow("").required(), - title: Joi.string().allow("").required(), - wallet_address: Joi.string().allow("").required(), - comment: Joi.string().allow(""), - wallet: Joi.string().allow(""), - email: Joi.string().allow("").required(), - delights_user_name: Joi.string().allow("").allow(null), - }); - } - - /** @returns {UpiBeneficiaryDetails} */ - static UpiBeneficiaryDetails() { - return Joi.object({ - beneficiary_id: Joi.string().allow("").required(), - modified_on: Joi.string().allow("").required(), - display_name: Joi.string().allow("").required(), - id: Joi.number().required(), - subtitle: Joi.string().allow("").required(), - transfer_mode: Joi.string().allow("").required(), - vpa: Joi.string().allow(""), - mobile: Joi.string().allow(""), - vpa_address: Joi.string().allow("").required(), - created_on: Joi.string().allow("").required(), - address: Joi.string().allow("").required(), - title: Joi.string().allow("").required(), - comment: Joi.string().allow(""), - is_active: Joi.boolean().required(), - email: Joi.string().allow("").required(), - delights_user_name: Joi.string().allow("").allow(null), - }); - } - - /** @returns {BeneficiaryRefundOptions} */ - static BeneficiaryRefundOptions() { - return Joi.object({ - bank: PaymentApplicationModel.OrderBeneficiaryDetails(), - wallet: PaymentApplicationModel.WalletBeneficiaryDetails(), - upi: PaymentApplicationModel.UpiBeneficiaryDetails(), - }); - } - - /** @returns {OrderBeneficiaryResponseSchemaV2} */ - static OrderBeneficiaryResponseSchemaV2() { - return Joi.object({ - show_beneficiary_details: Joi.boolean().required(), - data: PaymentApplicationModel.BeneficiaryRefundOptions().required(), - limit: Joi.any().required(), - }); - } - - /** @returns {ValidateValidateAddressRequest} */ - static ValidateValidateAddressRequest() { - return Joi.object({ - ifsc_code: Joi.string().allow("").allow(null), - upi_vpa: Joi.string().allow("").allow(null), - aggregator: Joi.string().allow("").allow(null), - }); - } - - /** @returns {VPADetails} */ - static VPADetails() { - return Joi.object({ - is_valid: Joi.boolean().required(), - upi_vpa: Joi.string().allow("").required(), - status: Joi.string().allow("").required(), - customer_name: Joi.string().allow("").required(), - }); - } - - /** @returns {ValidateValidateAddressResponse} */ - static ValidateValidateAddressResponse() { - return Joi.object({ - upi: PaymentApplicationModel.VPADetails(), - success: Joi.boolean().required(), - ifsc: Joi.any(), - }); - } - /** @returns {PaymentMethodsMetaOrder} */ static PaymentMethodsMetaOrder() { return Joi.object({ @@ -2547,40 +2279,11 @@ class PaymentApplicationModel { payment_confirm_url: Joi.string().allow("").allow(null), callback_url: Joi.string().allow("").allow(null), order_id: Joi.string().allow("").allow(null), - success: Joi.boolean(), + success: Joi.boolean().required(), status_code: Joi.number().required(), data: PaymentApplicationModel.PaymentOrderData(), message: Joi.string().allow("").required(), }); } - - /** @returns {ShipmentRefundRequest} */ - static ShipmentRefundRequest() { - return Joi.object({ - shipment_id: Joi.string().allow("").required(), - order_id: Joi.string().allow("").required(), - transfer_mode: Joi.string().allow("").required(), - beneficiary_id: Joi.string().allow("").allow(null), - }); - } - - /** @returns {ShipmentRefundDetail} */ - static ShipmentRefundDetail() { - return Joi.object({ - shipment_id: Joi.string().allow("").required(), - order_id: Joi.string().allow("").required(), - transfer_mode: Joi.string().allow("").required(), - beneficiary_id: Joi.string().allow("").required(), - }); - } - - /** @returns {ShipmentRefundResponse} */ - static ShipmentRefundResponse() { - return Joi.object({ - data: PaymentApplicationModel.ShipmentRefundDetail().required(), - success: Joi.boolean().required(), - message: Joi.string().allow("").allow(null).required(), - }); - } } module.exports = PaymentApplicationModel; diff --git a/sdk/application/Payment/PaymentApplicationValidator.d.ts b/sdk/application/Payment/PaymentApplicationValidator.d.ts index 6a31dc795..ef588c456 100644 --- a/sdk/application/Payment/PaymentApplicationValidator.d.ts +++ b/sdk/application/Payment/PaymentApplicationValidator.d.ts @@ -52,11 +52,6 @@ export = PaymentApplicationValidator; * @typedef CustomerOnboardParam * @property {PaymentApplicationModel.CustomerOnboardingRequest} body */ -/** - * @typedef DeleteBeneficiaryDetailsParam - * @property {string} beneficiaryId - This is a String value that contains - * beneficiary_id as value. - */ /** * @typedef DeleteUserCardParam * @property {PaymentApplicationModel.DeletehCardRequest} body @@ -128,31 +123,12 @@ export = PaymentApplicationValidator; * @property {string} [userDetails] - URIencoded JSON containing details of an * anonymous user. */ -/** - * @typedef GetRefundOptionsParam - * @property {string} configuration - Config type - * @property {string} [productType] - Product Type either 1P and 3P - * @property {string} [amount] - Refunded amount - */ /** @typedef GetRupifiBannerDetailsParam */ -/** - * @typedef GetSelectedRefundOptionParam - * @property {string} shipmentId - Shipment Id - * @property {string} orderId - Order Id - */ /** * @typedef GetUserBeneficiariesDetailParam * @property {string} orderId - A unique number used for identifying and * tracking your orders. */ -/** - * @typedef GetUserBeneficiariesDetailV2Param - * @property {string} [orderId] - A unique number used for identifying and - * tracking your orders. - * @property {string} [shipmentId] - A unique number used for identifying and - * tracking your orders. - * @property {string} [mop] - Mode of payment for which beneficiary data required - */ /** * @typedef InitialisePaymentParam * @property {PaymentApplicationModel.PaymentInitializationRequest} body @@ -196,18 +172,10 @@ export = PaymentApplicationValidator; * @typedef ResendPaymentLinkParam * @property {PaymentApplicationModel.CancelOrResendPaymentLinkRequest} body */ -/** - * @typedef SetRefundOptionforShipmentParam - * @property {PaymentApplicationModel.ShipmentRefundRequest} body - */ /** * @typedef UpdateDefaultBeneficiaryParam * @property {PaymentApplicationModel.SetDefaultBeneficiaryRequest} body */ -/** - * @typedef ValidateBeneficiaryAddressParam - * @property {PaymentApplicationModel.ValidateValidateAddressRequest} body - */ /** * @typedef ValidateVPAParam * @property {PaymentApplicationModel.ValidateVPARequest} body @@ -234,7 +202,7 @@ export = PaymentApplicationValidator; * @property {PaymentApplicationModel.WalletOtpRequest} body */ /** - * @typedef WalletLinkInitateParam + * @typedef WalletLinkInitiateParam * @property {PaymentApplicationModel.WalletLinkRequestSchema} body */ declare class PaymentApplicationValidator { @@ -264,8 +232,6 @@ declare class PaymentApplicationValidator { static customerCreditSummary(): CustomerCreditSummaryParam; /** @returns {CustomerOnboardParam} */ static customerOnboard(): CustomerOnboardParam; - /** @returns {DeleteBeneficiaryDetailsParam} */ - static deleteBeneficiaryDetails(): DeleteBeneficiaryDetailsParam; /** @returns {DeleteUserCardParam} */ static deleteUserCard(): DeleteUserCardParam; /** @returns {DelinkWalletParam} */ @@ -292,16 +258,10 @@ declare class PaymentApplicationValidator { static getPaymentModeRoutesPaymentLink(): GetPaymentModeRoutesPaymentLinkParam; /** @returns {GetPosPaymentModeRoutesParam} */ static getPosPaymentModeRoutes(): GetPosPaymentModeRoutesParam; - /** @returns {GetRefundOptionsParam} */ - static getRefundOptions(): GetRefundOptionsParam; /** @returns {GetRupifiBannerDetailsParam} */ static getRupifiBannerDetails(): any; - /** @returns {GetSelectedRefundOptionParam} */ - static getSelectedRefundOption(): GetSelectedRefundOptionParam; /** @returns {GetUserBeneficiariesDetailParam} */ static getUserBeneficiariesDetail(): GetUserBeneficiariesDetailParam; - /** @returns {GetUserBeneficiariesDetailV2Param} */ - static getUserBeneficiariesDetailV2(): GetUserBeneficiariesDetailV2Param; /** @returns {InitialisePaymentParam} */ static initialisePayment(): InitialisePaymentParam; /** @returns {InitialisePaymentPaymentLinkParam} */ @@ -322,12 +282,8 @@ declare class PaymentApplicationValidator { static resendOrCancelPayment(): ResendOrCancelPaymentParam; /** @returns {ResendPaymentLinkParam} */ static resendPaymentLink(): ResendPaymentLinkParam; - /** @returns {SetRefundOptionforShipmentParam} */ - static setRefundOptionforShipment(): SetRefundOptionforShipmentParam; /** @returns {UpdateDefaultBeneficiaryParam} */ static updateDefaultBeneficiary(): UpdateDefaultBeneficiaryParam; - /** @returns {ValidateBeneficiaryAddressParam} */ - static validateBeneficiaryAddress(): ValidateBeneficiaryAddressParam; /** @returns {ValidateVPAParam} */ static validateVPA(): ValidateVPAParam; /** @returns {VerifyAndChargePaymentParam} */ @@ -340,11 +296,11 @@ declare class PaymentApplicationValidator { static verifyOtpAndAddBeneficiaryForBank(): VerifyOtpAndAddBeneficiaryForBankParam; /** @returns {VerifyOtpAndAddBeneficiaryForWalletParam} */ static verifyOtpAndAddBeneficiaryForWallet(): VerifyOtpAndAddBeneficiaryForWalletParam; - /** @returns {WalletLinkInitateParam} */ - static walletLinkInitate(): WalletLinkInitateParam; + /** @returns {WalletLinkInitiateParam} */ + static walletLinkInitiate(): WalletLinkInitiateParam; } declare namespace PaymentApplicationValidator { - export { AddBeneficiaryDetailsParam, AddRefundBankAccountUsingOTPParam, AttachCardToCustomerParam, CancelPaymentLinkParam, CardDetailsParam, CheckAndUpdatePaymentStatusParam, CheckAndUpdatePaymentStatusPaymentLinkParam, CheckCreditParam, CreateOrderHandlerPaymentLinkParam, CreatePaymentLinkParam, CreatePaymentOrderParam, CustomerCreditSummaryParam, CustomerOnboardParam, DeleteBeneficiaryDetailsParam, DeleteUserCardParam, DelinkWalletParam, EnableOrDisableRefundTransferModeParam, GetActiveCardAggregatorParam, GetActiveRefundTransferModesParam, GetActiveUserCardsParam, GetAggregatorsConfigParam, GetEpaylaterBannerDetailsParam, GetOrderBeneficiariesDetailParam, GetPaymentLinkParam, GetPaymentModeRoutesParam, GetPaymentModeRoutesPaymentLinkParam, GetPosPaymentModeRoutesParam, GetRefundOptionsParam, GetRupifiBannerDetailsParam, GetSelectedRefundOptionParam, GetUserBeneficiariesDetailParam, GetUserBeneficiariesDetailV2Param, InitialisePaymentParam, InitialisePaymentPaymentLinkParam, LinkWalletParam, OutstandingOrderDetailsParam, PaidOrderDetailsParam, PollingPaymentLinkParam, RedirectToAggregatorParam, RenderHTMLParam, ResendOrCancelPaymentParam, ResendPaymentLinkParam, SetRefundOptionforShipmentParam, UpdateDefaultBeneficiaryParam, ValidateBeneficiaryAddressParam, ValidateVPAParam, VerifyAndChargePaymentParam, VerifyCustomerForPaymentParam, VerifyIfscCodeParam, VerifyOtpAndAddBeneficiaryForBankParam, VerifyOtpAndAddBeneficiaryForWalletParam, WalletLinkInitateParam }; + export { AddBeneficiaryDetailsParam, AddRefundBankAccountUsingOTPParam, AttachCardToCustomerParam, CancelPaymentLinkParam, CardDetailsParam, CheckAndUpdatePaymentStatusParam, CheckAndUpdatePaymentStatusPaymentLinkParam, CheckCreditParam, CreateOrderHandlerPaymentLinkParam, CreatePaymentLinkParam, CreatePaymentOrderParam, CustomerCreditSummaryParam, CustomerOnboardParam, DeleteUserCardParam, DelinkWalletParam, EnableOrDisableRefundTransferModeParam, GetActiveCardAggregatorParam, GetActiveRefundTransferModesParam, GetActiveUserCardsParam, GetAggregatorsConfigParam, GetEpaylaterBannerDetailsParam, GetOrderBeneficiariesDetailParam, GetPaymentLinkParam, GetPaymentModeRoutesParam, GetPaymentModeRoutesPaymentLinkParam, GetPosPaymentModeRoutesParam, GetRupifiBannerDetailsParam, GetUserBeneficiariesDetailParam, InitialisePaymentParam, InitialisePaymentPaymentLinkParam, LinkWalletParam, OutstandingOrderDetailsParam, PaidOrderDetailsParam, PollingPaymentLinkParam, RedirectToAggregatorParam, RenderHTMLParam, ResendOrCancelPaymentParam, ResendPaymentLinkParam, UpdateDefaultBeneficiaryParam, ValidateVPAParam, VerifyAndChargePaymentParam, VerifyCustomerForPaymentParam, VerifyIfscCodeParam, VerifyOtpAndAddBeneficiaryForBankParam, VerifyOtpAndAddBeneficiaryForWalletParam, WalletLinkInitiateParam }; } type AddBeneficiaryDetailsParam = { body: PaymentApplicationModel.AddBeneficiaryDetailsRequest; @@ -389,13 +345,6 @@ type CustomerCreditSummaryParam = { type CustomerOnboardParam = { body: PaymentApplicationModel.CustomerOnboardingRequest; }; -type DeleteBeneficiaryDetailsParam = { - /** - * - This is a String value that contains - * beneficiary_id as value. - */ - beneficiaryId: string; -}; type DeleteUserCardParam = { body: PaymentApplicationModel.DeletehCardRequest; }; @@ -514,30 +463,6 @@ type GetPosPaymentModeRoutesParam = { */ userDetails?: string; }; -type GetRefundOptionsParam = { - /** - * - Config type - */ - configuration: string; - /** - * - Product Type either 1P and 3P - */ - productType?: string; - /** - * - Refunded amount - */ - amount?: string; -}; -type GetSelectedRefundOptionParam = { - /** - * - Shipment Id - */ - shipmentId: string; - /** - * - Order Id - */ - orderId: string; -}; type GetUserBeneficiariesDetailParam = { /** * - A unique number used for identifying and @@ -545,22 +470,6 @@ type GetUserBeneficiariesDetailParam = { */ orderId: string; }; -type GetUserBeneficiariesDetailV2Param = { - /** - * - A unique number used for identifying and - * tracking your orders. - */ - orderId?: string; - /** - * - A unique number used for identifying and - * tracking your orders. - */ - shipmentId?: string; - /** - * - Mode of payment for which beneficiary data required - */ - mop?: string; -}; type InitialisePaymentParam = { body: PaymentApplicationModel.PaymentInitializationRequest; }; @@ -600,15 +509,9 @@ type ResendOrCancelPaymentParam = { type ResendPaymentLinkParam = { body: PaymentApplicationModel.CancelOrResendPaymentLinkRequest; }; -type SetRefundOptionforShipmentParam = { - body: PaymentApplicationModel.ShipmentRefundRequest; -}; type UpdateDefaultBeneficiaryParam = { body: PaymentApplicationModel.SetDefaultBeneficiaryRequest; }; -type ValidateBeneficiaryAddressParam = { - body: PaymentApplicationModel.ValidateValidateAddressRequest; -}; type ValidateVPAParam = { body: PaymentApplicationModel.ValidateVPARequest; }; @@ -631,10 +534,10 @@ type VerifyOtpAndAddBeneficiaryForBankParam = { type VerifyOtpAndAddBeneficiaryForWalletParam = { body: PaymentApplicationModel.WalletOtpRequest; }; -type WalletLinkInitateParam = { +type WalletLinkInitiateParam = { body: PaymentApplicationModel.WalletLinkRequestSchema; }; type GetActiveRefundTransferModesParam = any; type GetEpaylaterBannerDetailsParam = any; type GetRupifiBannerDetailsParam = any; -import PaymentApplicationModel = require("sdk/output/javascript/code/sdk/application/Payment/PaymentApplicationModel"); +import PaymentApplicationModel = require("./PaymentApplicationModel"); diff --git a/sdk/application/Payment/PaymentApplicationValidator.js b/sdk/application/Payment/PaymentApplicationValidator.js index 8108ddd4d..b17b53ca9 100644 --- a/sdk/application/Payment/PaymentApplicationValidator.js +++ b/sdk/application/Payment/PaymentApplicationValidator.js @@ -68,12 +68,6 @@ const PaymentApplicationModel = require("./PaymentApplicationModel"); * @property {PaymentApplicationModel.CustomerOnboardingRequest} body */ -/** - * @typedef DeleteBeneficiaryDetailsParam - * @property {string} beneficiaryId - This is a String value that contains - * beneficiary_id as value. - */ - /** * @typedef DeleteUserCardParam * @property {PaymentApplicationModel.DeletehCardRequest} body @@ -158,36 +152,14 @@ const PaymentApplicationModel = require("./PaymentApplicationModel"); * anonymous user. */ -/** - * @typedef GetRefundOptionsParam - * @property {string} configuration - Config type - * @property {string} [productType] - Product Type either 1P and 3P - * @property {string} [amount] - Refunded amount - */ - /** @typedef GetRupifiBannerDetailsParam */ -/** - * @typedef GetSelectedRefundOptionParam - * @property {string} shipmentId - Shipment Id - * @property {string} orderId - Order Id - */ - /** * @typedef GetUserBeneficiariesDetailParam * @property {string} orderId - A unique number used for identifying and * tracking your orders. */ -/** - * @typedef GetUserBeneficiariesDetailV2Param - * @property {string} [orderId] - A unique number used for identifying and - * tracking your orders. - * @property {string} [shipmentId] - A unique number used for identifying and - * tracking your orders. - * @property {string} [mop] - Mode of payment for which beneficiary data required - */ - /** * @typedef InitialisePaymentParam * @property {PaymentApplicationModel.PaymentInitializationRequest} body @@ -241,21 +213,11 @@ const PaymentApplicationModel = require("./PaymentApplicationModel"); * @property {PaymentApplicationModel.CancelOrResendPaymentLinkRequest} body */ -/** - * @typedef SetRefundOptionforShipmentParam - * @property {PaymentApplicationModel.ShipmentRefundRequest} body - */ - /** * @typedef UpdateDefaultBeneficiaryParam * @property {PaymentApplicationModel.SetDefaultBeneficiaryRequest} body */ -/** - * @typedef ValidateBeneficiaryAddressParam - * @property {PaymentApplicationModel.ValidateValidateAddressRequest} body - */ - /** * @typedef ValidateVPAParam * @property {PaymentApplicationModel.ValidateVPARequest} body @@ -288,7 +250,7 @@ const PaymentApplicationModel = require("./PaymentApplicationModel"); */ /** - * @typedef WalletLinkInitateParam + * @typedef WalletLinkInitiateParam * @property {PaymentApplicationModel.WalletLinkRequestSchema} body */ @@ -385,13 +347,6 @@ class PaymentApplicationValidator { }).required(); } - /** @returns {DeleteBeneficiaryDetailsParam} */ - static deleteBeneficiaryDetails() { - return Joi.object({ - beneficiaryId: Joi.string().allow("").required(), - }).required(); - } - /** @returns {DeleteUserCardParam} */ static deleteUserCard() { return Joi.object({ @@ -496,28 +451,11 @@ class PaymentApplicationValidator { }).required(); } - /** @returns {GetRefundOptionsParam} */ - static getRefundOptions() { - return Joi.object({ - configuration: Joi.string().allow("").required(), - productType: Joi.string().allow(""), - amount: Joi.string().allow(""), - }).required(); - } - /** @returns {GetRupifiBannerDetailsParam} */ static getRupifiBannerDetails() { return Joi.object({}); } - /** @returns {GetSelectedRefundOptionParam} */ - static getSelectedRefundOption() { - return Joi.object({ - shipmentId: Joi.string().allow("").required(), - orderId: Joi.string().allow("").required(), - }).required(); - } - /** @returns {GetUserBeneficiariesDetailParam} */ static getUserBeneficiariesDetail() { return Joi.object({ @@ -525,15 +463,6 @@ class PaymentApplicationValidator { }).required(); } - /** @returns {GetUserBeneficiariesDetailV2Param} */ - static getUserBeneficiariesDetailV2() { - return Joi.object({ - orderId: Joi.string().allow(""), - shipmentId: Joi.string().allow(""), - mop: Joi.string().allow(""), - }); - } - /** @returns {InitialisePaymentParam} */ static initialisePayment() { return Joi.object({ @@ -605,13 +534,6 @@ class PaymentApplicationValidator { }).required(); } - /** @returns {SetRefundOptionforShipmentParam} */ - static setRefundOptionforShipment() { - return Joi.object({ - body: PaymentApplicationModel.ShipmentRefundRequest().required(), - }).required(); - } - /** @returns {UpdateDefaultBeneficiaryParam} */ static updateDefaultBeneficiary() { return Joi.object({ @@ -619,13 +541,6 @@ class PaymentApplicationValidator { }).required(); } - /** @returns {ValidateBeneficiaryAddressParam} */ - static validateBeneficiaryAddress() { - return Joi.object({ - body: PaymentApplicationModel.ValidateValidateAddressRequest().required(), - }).required(); - } - /** @returns {ValidateVPAParam} */ static validateVPA() { return Joi.object({ @@ -668,8 +583,8 @@ class PaymentApplicationValidator { }).required(); } - /** @returns {WalletLinkInitateParam} */ - static walletLinkInitate() { + /** @returns {WalletLinkInitiateParam} */ + static walletLinkInitiate() { return Joi.object({ body: PaymentApplicationModel.WalletLinkRequestSchema().required(), }).required(); diff --git a/sdk/application/PosCart/PosCartApplicationClient.d.ts b/sdk/application/PosCart/PosCartApplicationClient.d.ts index ec04f87e9..30893de6b 100644 --- a/sdk/application/PosCart/PosCartApplicationClient.d.ts +++ b/sdk/application/PosCart/PosCartApplicationClient.d.ts @@ -319,5 +319,5 @@ declare class PosCart { */ validateCouponForPayment({ id, buyNow, addressId, paymentMode, paymentIdentifier, aggregatorName, merchantCode, iin, network, type, cardId, requestHeaders, }?: PosCartApplicationValidator.ValidateCouponForPaymentParam, { responseHeaders }?: object): Promise; } -import PosCartApplicationValidator = require("sdk/output/javascript/code/sdk/application/PosCart/PosCartApplicationValidator"); -import PosCartApplicationModel = require("sdk/output/javascript/code/sdk/application/PosCart/PosCartApplicationModel"); +import PosCartApplicationValidator = require("./PosCartApplicationValidator"); +import PosCartApplicationModel = require("./PosCartApplicationModel"); diff --git a/sdk/application/PosCart/PosCartApplicationValidator.d.ts b/sdk/application/PosCart/PosCartApplicationValidator.d.ts index e24d3c46c..c16af3b22 100644 --- a/sdk/application/PosCart/PosCartApplicationValidator.d.ts +++ b/sdk/application/PosCart/PosCartApplicationValidator.d.ts @@ -480,4 +480,4 @@ type ValidateCouponForPaymentParam = { type?: string; cardId?: string; }; -import PosCartApplicationModel = require("sdk/output/javascript/code/sdk/application/PosCart/PosCartApplicationModel"); +import PosCartApplicationModel = require("./PosCartApplicationModel"); diff --git a/sdk/application/Rewards/RewardsApplicationClient.d.ts b/sdk/application/Rewards/RewardsApplicationClient.d.ts index 08a9bcfec..a14c22f01 100644 --- a/sdk/application/Rewards/RewardsApplicationClient.d.ts +++ b/sdk/application/Rewards/RewardsApplicationClient.d.ts @@ -99,6 +99,6 @@ declare class Rewards { */ redeemReferralCode({ body, requestHeaders }?: RewardsApplicationValidator.RedeemReferralCodeParam, { responseHeaders }?: object): Promise; } -import RewardsApplicationValidator = require("sdk/output/javascript/code/sdk/application/Rewards/RewardsApplicationValidator"); -import RewardsApplicationModel = require("sdk/output/javascript/code/sdk/application/Rewards/RewardsApplicationModel"); -import Paginator = require("sdk/output/javascript/code/sdk/common/Paginator"); +import RewardsApplicationValidator = require("./RewardsApplicationValidator"); +import RewardsApplicationModel = require("./RewardsApplicationModel"); +import Paginator = require("../../common/Paginator"); diff --git a/sdk/application/Rewards/RewardsApplicationValidator.d.ts b/sdk/application/Rewards/RewardsApplicationValidator.d.ts index d953554c1..65bdc3046 100644 --- a/sdk/application/Rewards/RewardsApplicationValidator.d.ts +++ b/sdk/application/Rewards/RewardsApplicationValidator.d.ts @@ -70,4 +70,4 @@ type RedeemReferralCodeParam = { }; type GetUserPointsParam = any; type GetUserReferralDetailsParam = any; -import RewardsApplicationModel = require("sdk/output/javascript/code/sdk/application/Rewards/RewardsApplicationModel"); +import RewardsApplicationModel = require("./RewardsApplicationModel"); diff --git a/sdk/application/Share/ShareApplicationClient.d.ts b/sdk/application/Share/ShareApplicationClient.d.ts index e4c0622da..00c998d7d 100644 --- a/sdk/application/Share/ShareApplicationClient.d.ts +++ b/sdk/application/Share/ShareApplicationClient.d.ts @@ -85,5 +85,5 @@ declare class Share { */ getUrlQRCode({ url, requestHeaders }?: ShareApplicationValidator.GetUrlQRCodeParam, { responseHeaders }?: object): Promise; } -import ShareApplicationValidator = require("sdk/output/javascript/code/sdk/application/Share/ShareApplicationValidator"); -import ShareApplicationModel = require("sdk/output/javascript/code/sdk/application/Share/ShareApplicationModel"); +import ShareApplicationValidator = require("./ShareApplicationValidator"); +import ShareApplicationModel = require("./ShareApplicationModel"); diff --git a/sdk/application/Share/ShareApplicationValidator.d.ts b/sdk/application/Share/ShareApplicationValidator.d.ts index 2cae12780..8ffb896c7 100644 --- a/sdk/application/Share/ShareApplicationValidator.d.ts +++ b/sdk/application/Share/ShareApplicationValidator.d.ts @@ -85,4 +85,4 @@ type GetUrlQRCodeParam = { url: string; }; type GetApplicationQRCodeParam = any; -import ShareApplicationModel = require("sdk/output/javascript/code/sdk/application/Share/ShareApplicationModel"); +import ShareApplicationModel = require("./ShareApplicationModel"); diff --git a/sdk/application/Theme/ThemeApplicationClient.d.ts b/sdk/application/Theme/ThemeApplicationClient.d.ts index 70c871066..7af67a9ba 100644 --- a/sdk/application/Theme/ThemeApplicationClient.d.ts +++ b/sdk/application/Theme/ThemeApplicationClient.d.ts @@ -51,5 +51,5 @@ declare class Theme { */ getThemeForPreview({ themeId, requestHeaders }?: ThemeApplicationValidator.GetThemeForPreviewParam, { responseHeaders }?: object): Promise; } -import ThemeApplicationValidator = require("sdk/output/javascript/code/sdk/application/Theme/ThemeApplicationValidator"); -import ThemeApplicationModel = require("sdk/output/javascript/code/sdk/application/Theme/ThemeApplicationModel"); +import ThemeApplicationValidator = require("./ThemeApplicationValidator"); +import ThemeApplicationModel = require("./ThemeApplicationModel"); diff --git a/sdk/application/User/UserApplicationClient.d.ts b/sdk/application/User/UserApplicationClient.d.ts index 49370357c..364856ff8 100644 --- a/sdk/application/User/UserApplicationClient.d.ts +++ b/sdk/application/User/UserApplicationClient.d.ts @@ -324,12 +324,12 @@ declare class User { * @param {UserApplicationValidator.SendResetPasswordMobileParam} arg - Arg object. * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../ApplicationAPIClient").Options} - Options - * @returns {Promise} - Success response + * @returns {Promise} - Success response * @name sendResetPasswordMobile * @summary: Reset Password * @description: Use this API to reset a password using the link sent on mobile. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/sendResetPasswordMobile/). */ - sendResetPasswordMobile({ body, platform, requestHeaders }?: UserApplicationValidator.SendResetPasswordMobileParam, { responseHeaders }?: object): Promise; + sendResetPasswordMobile({ body, platform, requestHeaders }?: UserApplicationValidator.SendResetPasswordMobileParam, { responseHeaders }?: object): Promise; /** * @param {UserApplicationValidator.SendResetTokenParam} arg - Arg object. * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -486,5 +486,5 @@ declare class User { */ verifyMobileOTP({ body, platform, requestHeaders }?: UserApplicationValidator.VerifyMobileOTPParam, { responseHeaders }?: object): Promise; } -import UserApplicationValidator = require("sdk/output/javascript/code/sdk/application/User/UserApplicationValidator"); -import UserApplicationModel = require("sdk/output/javascript/code/sdk/application/User/UserApplicationModel"); +import UserApplicationValidator = require("./UserApplicationValidator"); +import UserApplicationModel = require("./UserApplicationModel"); diff --git a/sdk/application/User/UserApplicationClient.js b/sdk/application/User/UserApplicationClient.js index 78b3b131b..597edc73a 100644 --- a/sdk/application/User/UserApplicationClient.js +++ b/sdk/application/User/UserApplicationClient.js @@ -2248,7 +2248,7 @@ class User { * @param {UserApplicationValidator.SendResetPasswordMobileParam} arg - Arg object. * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../ApplicationAPIClient").Options} - Options - * @returns {Promise} - Success response + * @returns {Promise} - Success response * @name sendResetPasswordMobile * @summary: Reset Password * @description: Use this API to reset a password using the link sent on mobile. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/sendResetPasswordMobile/). @@ -2304,12 +2304,9 @@ class User { responseData = response[0]; } - const { - error: res_error, - } = UserApplicationModel.ResetPasswordSuccess().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); + const { error: res_error } = Joi.string() + .allow("") + .validate(responseData, { abortEarly: false, allowUnknown: true }); if (res_error) { if (this._conf.options.strictResponseCheck === true) { diff --git a/sdk/application/User/UserApplicationModel.d.ts b/sdk/application/User/UserApplicationModel.d.ts index 82874570b..bf578b343 100644 --- a/sdk/application/User/UserApplicationModel.d.ts +++ b/sdk/application/User/UserApplicationModel.d.ts @@ -34,7 +34,7 @@ export = UserApplicationModel; */ /** * @typedef EditProfileRequestSchema - * @property {boolean} [ci] - Set to true if you want to encrypt the OTP. + * @property {boolean} [encrypt_otp] - Set to true if you want to encrypt the OTP. * @property {string} [first_name] * @property {string} [last_name] * @property {EditProfileMobileSchema} [mobile] @@ -90,7 +90,7 @@ export = UserApplicationModel; */ /** * @typedef SendMobileOtpRequestSchema - * @property {boolean} [ci] - Set to true if you want to encrypt the OTP. + * @property {boolean} [encrypt_otp] - Set to true if you want to encrypt the OTP. * @property {string} [mobile] * @property {string} [country_code] * @property {string} [action] @@ -150,7 +150,7 @@ export = UserApplicationModel; */ /** * @typedef SendOtpRequestSchema - * @property {boolean} [ci] - Set to true if you want to encrypt the OTP. + * @property {boolean} [encrypt_otp] - Set to true if you want to encrypt the OTP. * @property {string} [country_code] * @property {string} [mobile] * @property {string} [android_hash] @@ -554,7 +554,7 @@ type EditProfileRequestSchema = { /** * - Set to true if you want to encrypt the OTP. */ - ci?: boolean; + encrypt_otp?: boolean; first_name?: string; last_name?: string; mobile?: EditProfileMobileSchema; @@ -621,7 +621,7 @@ type SendMobileOtpRequestSchema = { /** * - Set to true if you want to encrypt the OTP. */ - ci?: boolean; + encrypt_otp?: boolean; mobile?: string; country_code?: string; action?: string; @@ -694,7 +694,7 @@ type SendOtpRequestSchema = { /** * - Set to true if you want to encrypt the OTP. */ - ci?: boolean; + encrypt_otp?: boolean; country_code?: string; mobile?: string; android_hash?: string; diff --git a/sdk/application/User/UserApplicationModel.js b/sdk/application/User/UserApplicationModel.js index c3101e759..9bf56beb2 100644 --- a/sdk/application/User/UserApplicationModel.js +++ b/sdk/application/User/UserApplicationModel.js @@ -41,7 +41,7 @@ const Joi = require("joi"); /** * @typedef EditProfileRequestSchema - * @property {boolean} [ci] - Set to true if you want to encrypt the OTP. + * @property {boolean} [encrypt_otp] - Set to true if you want to encrypt the OTP. * @property {string} [first_name] * @property {string} [last_name] * @property {EditProfileMobileSchema} [mobile] @@ -105,7 +105,7 @@ const Joi = require("joi"); /** * @typedef SendMobileOtpRequestSchema - * @property {boolean} [ci] - Set to true if you want to encrypt the OTP. + * @property {boolean} [encrypt_otp] - Set to true if you want to encrypt the OTP. * @property {string} [mobile] * @property {string} [country_code] * @property {string} [action] @@ -175,7 +175,7 @@ const Joi = require("joi"); /** * @typedef SendOtpRequestSchema - * @property {boolean} [ci] - Set to true if you want to encrypt the OTP. + * @property {boolean} [encrypt_otp] - Set to true if you want to encrypt the OTP. * @property {string} [country_code] * @property {string} [mobile] * @property {string} [android_hash] @@ -637,7 +637,7 @@ class UserApplicationModel { /** @returns {EditProfileRequestSchema} */ static EditProfileRequestSchema() { return Joi.object({ - ci: Joi.boolean(), + encrypt_otp: Joi.boolean(), first_name: Joi.string().allow(""), last_name: Joi.string().allow(""), mobile: UserApplicationModel.EditProfileMobileSchema(), @@ -717,7 +717,7 @@ class UserApplicationModel { /** @returns {SendMobileOtpRequestSchema} */ static SendMobileOtpRequestSchema() { return Joi.object({ - ci: Joi.boolean(), + encrypt_otp: Joi.boolean(), mobile: Joi.string().allow(""), country_code: Joi.string().allow(""), action: Joi.string().allow(""), @@ -807,7 +807,7 @@ class UserApplicationModel { /** @returns {SendOtpRequestSchema} */ static SendOtpRequestSchema() { return Joi.object({ - ci: Joi.boolean(), + encrypt_otp: Joi.boolean(), country_code: Joi.string().allow(""), mobile: Joi.string().allow(""), android_hash: Joi.string().allow(""), @@ -1121,8 +1121,8 @@ class UserApplicationModel { social_tokens: UserApplicationModel.SocialTokens(), created_at: Joi.string().allow(""), register: Joi.boolean(), - mobile_image: Joi.string().allow("").allow(null), - desktop_image: Joi.string().allow("").allow(null), + mobile_image: Joi.string().allow(""), + desktop_image: Joi.string().allow(""), delete_account_day: Joi.number(), delete_account_reasons: Joi.array().items( UserApplicationModel.DeleteAccountReasons() @@ -1288,7 +1288,7 @@ class UserApplicationModel { last_name: Joi.string().allow(""), phone_numbers: Joi.array().items(UserApplicationModel.PhoneNumber()), emails: Joi.array().items(UserApplicationModel.Email()), - gender: Joi.string().allow("").allow(null), + gender: Joi.string().allow(""), dob: Joi.string().allow(""), active: Joi.boolean(), profile_pic_url: Joi.string().allow(""), diff --git a/sdk/application/User/UserApplicationValidator.d.ts b/sdk/application/User/UserApplicationValidator.d.ts index 7baa6cf90..19399cb17 100644 --- a/sdk/application/User/UserApplicationValidator.d.ts +++ b/sdk/application/User/UserApplicationValidator.d.ts @@ -557,4 +557,4 @@ type GetListOfActiveSessionsParam = any; type GetLoggedInUserParam = any; type HasPasswordParam = any; type LogoutParam = any; -import UserApplicationModel = require("sdk/output/javascript/code/sdk/application/User/UserApplicationModel"); +import UserApplicationModel = require("./UserApplicationModel"); diff --git a/sdk/application/index.d.ts b/sdk/application/index.d.ts index 0eddd8d14..69c726da4 100644 --- a/sdk/application/index.d.ts +++ b/sdk/application/index.d.ts @@ -1,20 +1,20 @@ -export const ApplicationConfig: typeof import("sdk/output/javascript/code/sdk/application/ApplicationConfig"); -export const ApplicationClient: typeof import("sdk/output/javascript/code/sdk/application/ApplicationClient"); +export const ApplicationConfig: typeof import("./ApplicationConfig"); +export const ApplicationClient: typeof import("./ApplicationClient"); export namespace ApplicationModel { - const CartApplicationModel: typeof import("sdk/output/javascript/code/sdk/application/Cart/CartApplicationModel"); - const CatalogApplicationModel: typeof import("sdk/output/javascript/code/sdk/application/Catalog/CatalogApplicationModel"); - const CommonApplicationModel: typeof import("sdk/output/javascript/code/sdk/application/Common/CommonApplicationModel"); - const CommunicationApplicationModel: typeof import("sdk/output/javascript/code/sdk/application/Communication/CommunicationApplicationModel"); - const ConfigurationApplicationModel: typeof import("sdk/output/javascript/code/sdk/application/Configuration/ConfigurationApplicationModel"); - const ContentApplicationModel: typeof import("sdk/output/javascript/code/sdk/application/Content/ContentApplicationModel"); - const FileStorageApplicationModel: typeof import("sdk/output/javascript/code/sdk/application/FileStorage/FileStorageApplicationModel"); - const LeadApplicationModel: typeof import("sdk/output/javascript/code/sdk/application/Lead/LeadApplicationModel"); - const LogisticApplicationModel: typeof import("sdk/output/javascript/code/sdk/application/Logistic/LogisticApplicationModel"); - const OrderApplicationModel: typeof import("sdk/output/javascript/code/sdk/application/Order/OrderApplicationModel"); - const PaymentApplicationModel: typeof import("sdk/output/javascript/code/sdk/application/Payment/PaymentApplicationModel"); - const PosCartApplicationModel: typeof import("sdk/output/javascript/code/sdk/application/PosCart/PosCartApplicationModel"); - const RewardsApplicationModel: typeof import("sdk/output/javascript/code/sdk/application/Rewards/RewardsApplicationModel"); - const ShareApplicationModel: typeof import("sdk/output/javascript/code/sdk/application/Share/ShareApplicationModel"); - const ThemeApplicationModel: typeof import("sdk/output/javascript/code/sdk/application/Theme/ThemeApplicationModel"); - const UserApplicationModel: typeof import("sdk/output/javascript/code/sdk/application/User/UserApplicationModel"); + const CartApplicationModel: typeof import("./Cart/CartApplicationModel"); + const CatalogApplicationModel: typeof import("./Catalog/CatalogApplicationModel"); + const CommonApplicationModel: typeof import("./Common/CommonApplicationModel"); + const CommunicationApplicationModel: typeof import("./Communication/CommunicationApplicationModel"); + const ConfigurationApplicationModel: typeof import("./Configuration/ConfigurationApplicationModel"); + const ContentApplicationModel: typeof import("./Content/ContentApplicationModel"); + const FileStorageApplicationModel: typeof import("./FileStorage/FileStorageApplicationModel"); + const LeadApplicationModel: typeof import("./Lead/LeadApplicationModel"); + const LogisticApplicationModel: typeof import("./Logistic/LogisticApplicationModel"); + const OrderApplicationModel: typeof import("./Order/OrderApplicationModel"); + const PaymentApplicationModel: typeof import("./Payment/PaymentApplicationModel"); + const PosCartApplicationModel: typeof import("./PosCart/PosCartApplicationModel"); + const RewardsApplicationModel: typeof import("./Rewards/RewardsApplicationModel"); + const ShareApplicationModel: typeof import("./Share/ShareApplicationModel"); + const ThemeApplicationModel: typeof import("./Theme/ThemeApplicationModel"); + const UserApplicationModel: typeof import("./User/UserApplicationModel"); } diff --git a/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts b/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts index 15721459b..5831896b2 100644 --- a/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +++ b/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts @@ -69,4 +69,4 @@ declare class FileStorage { */ browse({ namespace, applicationId, companyId, page, limit, requestHeaders }?: FileStoragePartnerValidator.BrowseParam, { responseHeaders }?: object): Promise; } -import FileStoragePartnerModel = require("sdk/output/javascript/code/sdk/partner/FileStorage/FileStoragePartnerModel"); +import FileStoragePartnerModel = require("./FileStoragePartnerModel"); diff --git a/sdk/partner/Lead/LeadPartnerClient.d.ts b/sdk/partner/Lead/LeadPartnerClient.d.ts index 49c8d1f87..a068969e7 100644 --- a/sdk/partner/Lead/LeadPartnerClient.d.ts +++ b/sdk/partner/Lead/LeadPartnerClient.d.ts @@ -121,5 +121,5 @@ declare class Lead { */ getGeneralConfig({ requestHeaders }?: LeadPartnerValidator.GetGeneralConfigParam, { responseHeaders }?: object): Promise; } -import LeadPartnerModel = require("sdk/output/javascript/code/sdk/partner/Lead/LeadPartnerModel"); -import Paginator = require("sdk/output/javascript/code/sdk/common/Paginator"); +import LeadPartnerModel = require("./LeadPartnerModel"); +import Paginator = require("../../common/Paginator"); diff --git a/sdk/partner/Lead/LeadPartnerModel.d.ts b/sdk/partner/Lead/LeadPartnerModel.d.ts index f660cd366..4cd68efd1 100644 --- a/sdk/partner/Lead/LeadPartnerModel.d.ts +++ b/sdk/partner/Lead/LeadPartnerModel.d.ts @@ -87,6 +87,7 @@ export = LeadPartnerModel; * @typedef SupportCommunicationSchema * @property {string} [type] * @property {string} [title] + * @property {Object} [value] * @property {string} [description] * @property {boolean} [enabled] */ @@ -109,8 +110,7 @@ export = LeadPartnerModel; * @property {Priority[]} priorities - List of possible priorities for tickets * @property {TicketCategory[]} [categories] - List of possible categories for tickets * @property {Status[]} statuses - List of possible statuses for tickets - * @property {Object[]} [assignees] - List of support staff availble for tickets - * assignment + * @property {Object[]} assignees - List of support staff availble for tickets assignment */ /** * @typedef TicketHistoryPayload @@ -263,7 +263,7 @@ export = LeadPartnerModel; * @typedef TicketCategory * @property {string} display - Category display value identifier * @property {string} key - Category key value identifier - * @property {TicketCategory[]} [sub_categories] + * @property {TicketCategory} [sub_categories] * @property {number} [group_id] - Group id of category releted data * @property {FeedbackForm} [feedback_form] */ @@ -512,6 +512,7 @@ declare function SupportCommunicationSchema(): SupportCommunicationSchema; type SupportCommunicationSchema = { type?: string; title?: string; + value?: any; description?: string; enabled?: boolean; }; @@ -560,10 +561,9 @@ type Filter = { */ statuses: Status[]; /** - * - List of support staff availble for tickets - * assignment + * - List of support staff availble for tickets assignment */ - assignees?: any[]; + assignees: any[]; }; /** @returns {TicketHistoryPayload} */ declare function TicketHistoryPayload(): TicketHistoryPayload; @@ -951,7 +951,7 @@ type TicketCategory = { * - Category key value identifier */ key: string; - sub_categories?: TicketCategory[]; + sub_categories?: TicketCategory; /** * - Group id of category releted data */ diff --git a/sdk/partner/Lead/LeadPartnerModel.js b/sdk/partner/Lead/LeadPartnerModel.js index c56fed681..02edbd694 100644 --- a/sdk/partner/Lead/LeadPartnerModel.js +++ b/sdk/partner/Lead/LeadPartnerModel.js @@ -99,6 +99,7 @@ const Joi = require("joi"); * @typedef SupportCommunicationSchema * @property {string} [type] * @property {string} [title] + * @property {Object} [value] * @property {string} [description] * @property {boolean} [enabled] */ @@ -125,8 +126,7 @@ const Joi = require("joi"); * @property {Priority[]} priorities - List of possible priorities for tickets * @property {TicketCategory[]} [categories] - List of possible categories for tickets * @property {Status[]} statuses - List of possible statuses for tickets - * @property {Object[]} [assignees] - List of support staff availble for tickets - * assignment + * @property {Object[]} assignees - List of support staff availble for tickets assignment */ /** @@ -301,7 +301,7 @@ const Joi = require("joi"); * @typedef TicketCategory * @property {string} display - Category display value identifier * @property {string} key - Category key value identifier - * @property {TicketCategory[]} [sub_categories] + * @property {TicketCategory} [sub_categories] * @property {number} [group_id] - Group id of category releted data * @property {FeedbackForm} [feedback_form] */ @@ -500,6 +500,7 @@ class LeadPartnerModel { return Joi.object({ type: Joi.string().allow(""), title: Joi.string().allow(""), + value: Joi.any(), description: Joi.string().allow(""), enabled: Joi.boolean(), }); @@ -534,7 +535,7 @@ class LeadPartnerModel { priorities: Joi.array().items(LeadPartnerModel.Priority()).required(), categories: Joi.array().items(LeadPartnerModel.TicketCategory()), statuses: Joi.array().items(LeadPartnerModel.Status()).required(), - assignees: Joi.array().items(Joi.any()), + assignees: Joi.array().items(Joi.any()).required(), }); } @@ -751,7 +752,7 @@ class LeadPartnerModel { return Joi.object({ display: Joi.string().allow("").required(), key: Joi.string().allow("").required(), - sub_categories: Joi.array().items(Joi.link("#TicketCategory")), + sub_categories: Joi.link("#TicketCategory"), group_id: Joi.number(), feedback_form: LeadPartnerModel.FeedbackForm(), }); diff --git a/sdk/partner/Logistics/LogisticsPartnerClient.d.ts b/sdk/partner/Logistics/LogisticsPartnerClient.d.ts index 9566789db..0bc9a3c7f 100644 --- a/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +++ b/sdk/partner/Logistics/LogisticsPartnerClient.d.ts @@ -152,4 +152,4 @@ declare class Logistics { */ getCountries({ onboarding, pageNo, pageSize, q, requestHeaders }?: LogisticsPartnerValidator.GetCountriesParam, { responseHeaders }?: object): Promise; } -import LogisticsPartnerModel = require("sdk/output/javascript/code/sdk/partner/Logistics/LogisticsPartnerModel"); +import LogisticsPartnerModel = require("./LogisticsPartnerModel"); diff --git a/sdk/partner/OAuthClient.d.ts b/sdk/partner/OAuthClient.d.ts index 744def803..d4ac75347 100644 --- a/sdk/partner/OAuthClient.d.ts +++ b/sdk/partner/OAuthClient.d.ts @@ -12,4 +12,4 @@ declare class OAuthClient extends BaseOAuthClient { getOfflineAccessToken(scopes: any, code: any): Promise; getOfflineAccessTokenObj(scopes: any, code: any): Promise; } -import BaseOAuthClient = require("sdk/output/javascript/code/sdk/common/BaseOAuthClient"); +import BaseOAuthClient = require("../common/BaseOAuthClient"); diff --git a/sdk/partner/PartnerClient.d.ts b/sdk/partner/PartnerClient.d.ts index edc3482a8..311ac97b1 100644 --- a/sdk/partner/PartnerClient.d.ts +++ b/sdk/partner/PartnerClient.d.ts @@ -12,7 +12,7 @@ declare class PartnerClient { * partner client. */ constructor(config: import("./PartnerConfig")); - config: import("sdk/output/javascript/code/sdk/partner/PartnerConfig"); + config: import("./PartnerConfig"); fileStorage: FileStorage; lead: Lead; logistics: Logistics; @@ -26,8 +26,8 @@ declare class PartnerClient { */ setExtraHeaders(header: object): void; } -import FileStorage = require("sdk/output/javascript/code/sdk/partner/FileStorage/FileStoragePartnerClient"); -import Lead = require("sdk/output/javascript/code/sdk/partner/Lead/LeadPartnerClient"); -import Logistics = require("sdk/output/javascript/code/sdk/partner/Logistics/LogisticsPartnerClient"); -import Theme = require("sdk/output/javascript/code/sdk/partner/Theme/ThemePartnerClient"); -import Webhook = require("sdk/output/javascript/code/sdk/partner/Webhook/WebhookPartnerClient"); +import FileStorage = require("./FileStorage/FileStoragePartnerClient"); +import Lead = require("./Lead/LeadPartnerClient"); +import Logistics = require("./Logistics/LogisticsPartnerClient"); +import Theme = require("./Theme/ThemePartnerClient"); +import Webhook = require("./Webhook/WebhookPartnerClient"); diff --git a/sdk/partner/PartnerConfig.d.ts b/sdk/partner/PartnerConfig.d.ts index d68c1283b..869d92718 100644 --- a/sdk/partner/PartnerConfig.d.ts +++ b/sdk/partner/PartnerConfig.d.ts @@ -63,4 +63,4 @@ declare class PartnerConfig { */ getAccessToken(): Promise; } -import OauthClient = require("sdk/output/javascript/code/sdk/partner/OAuthClient"); +import OauthClient = require("./OAuthClient"); diff --git a/sdk/partner/Theme/ThemePartnerClient.d.ts b/sdk/partner/Theme/ThemePartnerClient.d.ts index 13f6094f2..a32791d0c 100644 --- a/sdk/partner/Theme/ThemePartnerClient.d.ts +++ b/sdk/partner/Theme/ThemePartnerClient.d.ts @@ -203,4 +203,4 @@ declare class Theme { */ createTheme({ companyId, applicationId, body, requestHeaders }?: ThemePartnerValidator.CreateThemeParam, { responseHeaders }?: object): Promise; } -import ThemePartnerModel = require("sdk/output/javascript/code/sdk/partner/Theme/ThemePartnerModel"); +import ThemePartnerModel = require("./ThemePartnerModel"); diff --git a/sdk/partner/Webhook/WebhookPartnerClient.d.ts b/sdk/partner/Webhook/WebhookPartnerClient.d.ts index b50ea8c30..f28d42eb1 100644 --- a/sdk/partner/Webhook/WebhookPartnerClient.d.ts +++ b/sdk/partner/Webhook/WebhookPartnerClient.d.ts @@ -95,50 +95,5 @@ declare class Webhook { * - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/webhook/updateSubscriber/). */ updateSubscriber({ extensionId, subscriberId, body, requestHeaders }?: WebhookPartnerValidator.UpdateSubscriberParam, { responseHeaders }?: object): Promise; - /** - * @param {WebhookPartnerValidator.CreateKafkaConfigurationParam} arg - Arg object. - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PartnerAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name createKafkaConfiguration - * @summary: Create Kafka configuration. - * @description: Create kafka configuration which will be used by sureshot to push event to corresponding kafka broker. - * - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/webhook/createKafkaConfiguration/). - */ - createKafkaConfiguration({ extensionId, body, requestHeaders }?: WebhookPartnerValidator.CreateKafkaConfigurationParam, { responseHeaders }?: object): Promise; - /** - * @param {WebhookPartnerValidator.FetchKafkaConfigurationParam} arg - Arg object. - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PartnerAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name fetchKafkaConfiguration - * @summary: Fetch Kafka configuration. - * @description: Fetch kafka configuration which will be used by sureshot to push event to corresponding kafka broker. - * - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/webhook/fetchKafkaConfiguration/). - */ - fetchKafkaConfiguration({ extensionId, requestHeaders }?: WebhookPartnerValidator.FetchKafkaConfigurationParam, { responseHeaders }?: object): Promise; - /** - * @param {WebhookPartnerValidator.UpdateKafkaConfigurationParam} arg - Arg object. - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PartnerAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name updateKafkaConfiguration - * @summary: Update Kafka configuration. - * @description: Update kafka configuration which will be used by sureshot to push event to corresponding kafka broker. - * - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/webhook/updateKafkaConfiguration/). - */ - updateKafkaConfiguration({ extensionId, body, requestHeaders }?: WebhookPartnerValidator.UpdateKafkaConfigurationParam, { responseHeaders }?: object): Promise; - /** - * @param {WebhookPartnerValidator.ValidateKafkaConfigurationParam} arg - Arg object. - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PartnerAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name validateKafkaConfiguration - * @summary: Validate Kafka configuration. - * @description: Validate kafka configuration which will be used by sureshot to push event to corresponding kafka broker. - * - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/webhook/validateKafkaConfiguration/). - */ - validateKafkaConfiguration({ extensionId, body, requestHeaders }?: WebhookPartnerValidator.ValidateKafkaConfigurationParam, { responseHeaders }?: object): Promise; } -import WebhookPartnerModel = require("sdk/output/javascript/code/sdk/partner/Webhook/WebhookPartnerModel"); +import WebhookPartnerModel = require("./WebhookPartnerModel"); diff --git a/sdk/partner/Webhook/WebhookPartnerClient.js b/sdk/partner/Webhook/WebhookPartnerClient.js index ed9481fad..27b49c289 100644 --- a/sdk/partner/Webhook/WebhookPartnerClient.js +++ b/sdk/partner/Webhook/WebhookPartnerClient.js @@ -749,332 +749,5 @@ class Webhook { return response; } - - /** - * @param {WebhookPartnerValidator.CreateKafkaConfigurationParam} arg - Arg object. - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PartnerAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name createKafkaConfiguration - * @summary: Create Kafka configuration. - * @description: Create kafka configuration which will be used by sureshot to push event to corresponding kafka broker. - * - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/webhook/createKafkaConfiguration/). - */ - async createKafkaConfiguration( - { extensionId, body, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = WebhookPartnerValidator.createKafkaConfiguration().validate( - { - extensionId, - body, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = WebhookPartnerValidator.createKafkaConfiguration().validate( - { - extensionId, - body, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for partner > Webhook > createKafkaConfiguration \n ${warrning}`, - }); - } - - const query_params = {}; - - const response = await PartnerAPIClient.execute( - this.config, - "post", - `/service/partner/webhook/v1.0/organization/${this.config.organizationId}/extension/${extensionId}/kafka_config`, - query_params, - body, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = WebhookPartnerModel.KafkaConfigResponse().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for partner > Webhook > createKafkaConfiguration \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {WebhookPartnerValidator.FetchKafkaConfigurationParam} arg - Arg object. - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PartnerAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name fetchKafkaConfiguration - * @summary: Fetch Kafka configuration. - * @description: Fetch kafka configuration which will be used by sureshot to push event to corresponding kafka broker. - * - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/webhook/fetchKafkaConfiguration/). - */ - async fetchKafkaConfiguration( - { extensionId, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = WebhookPartnerValidator.fetchKafkaConfiguration().validate( - { - extensionId, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = WebhookPartnerValidator.fetchKafkaConfiguration().validate( - { - extensionId, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for partner > Webhook > fetchKafkaConfiguration \n ${warrning}`, - }); - } - - const query_params = {}; - - const response = await PartnerAPIClient.execute( - this.config, - "get", - `/service/partner/webhook/v1.0/organization/${this.config.organizationId}/extension/${extensionId}/kafka_config`, - query_params, - undefined, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = WebhookPartnerModel.KafkaConfigResponse().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for partner > Webhook > fetchKafkaConfiguration \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {WebhookPartnerValidator.UpdateKafkaConfigurationParam} arg - Arg object. - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PartnerAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name updateKafkaConfiguration - * @summary: Update Kafka configuration. - * @description: Update kafka configuration which will be used by sureshot to push event to corresponding kafka broker. - * - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/webhook/updateKafkaConfiguration/). - */ - async updateKafkaConfiguration( - { extensionId, body, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = WebhookPartnerValidator.updateKafkaConfiguration().validate( - { - extensionId, - body, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = WebhookPartnerValidator.updateKafkaConfiguration().validate( - { - extensionId, - body, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for partner > Webhook > updateKafkaConfiguration \n ${warrning}`, - }); - } - - const query_params = {}; - - const response = await PartnerAPIClient.execute( - this.config, - "put", - `/service/partner/webhook/v1.0/organization/${this.config.organizationId}/extension/${extensionId}/kafka_config`, - query_params, - body, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = WebhookPartnerModel.KafkaConfigResponse().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for partner > Webhook > updateKafkaConfiguration \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {WebhookPartnerValidator.ValidateKafkaConfigurationParam} arg - Arg object. - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PartnerAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name validateKafkaConfiguration - * @summary: Validate Kafka configuration. - * @description: Validate kafka configuration which will be used by sureshot to push event to corresponding kafka broker. - * - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/webhook/validateKafkaConfiguration/). - */ - async validateKafkaConfiguration( - { extensionId, body, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = WebhookPartnerValidator.validateKafkaConfiguration().validate( - { - extensionId, - body, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = WebhookPartnerValidator.validateKafkaConfiguration().validate( - { - extensionId, - body, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for partner > Webhook > validateKafkaConfiguration \n ${warrning}`, - }); - } - - const query_params = {}; - - const response = await PartnerAPIClient.execute( - this.config, - "post", - `/service/partner/webhook/v1.0/organization/${this.config.organizationId}/extension/${extensionId}/kafka_config/validate`, - query_params, - body, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = WebhookPartnerModel.KafkaConfigValidateResponse().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for partner > Webhook > validateKafkaConfiguration \n ${res_error}`, - }); - } - } - - return response; - } } module.exports = Webhook; diff --git a/sdk/partner/Webhook/WebhookPartnerModel.d.ts b/sdk/partner/Webhook/WebhookPartnerModel.d.ts index a149b9ff3..6078449f6 100644 --- a/sdk/partner/Webhook/WebhookPartnerModel.d.ts +++ b/sdk/partner/Webhook/WebhookPartnerModel.d.ts @@ -1,52 +1,4 @@ export = WebhookPartnerModel; -/** - * @typedef KafkaConfigValidateResponse - * @property {boolean} [status] - * @property {string} [message] - */ -/** - * @typedef KafkaConfigResponse - * @property {number} [id] - * @property {string} [name] - * @property {string} [client_id] - * @property {string[]} [brokers] - * @property {boolean} [ssl_enabled] - * @property {boolean} [sasl_enabled] - * @property {Object} [sasl_configuration] - * @property {Object} [ssl_configuration] - * @property {number} [connection_timeout] - * @property {number} [authentication_timeout] - * @property {number} [request_timeout] - * @property {string} [created_on] - * @property {Object} [association] - */ -/** - * @typedef KafkaConfigUpdateRequest - * @property {string} [name] - * @property {string} [client_id] - * @property {string[]} [brokers] - * @property {boolean} [ssl_enabled] - * @property {boolean} [sasl_enabled] - * @property {Object} [sasl_configuration] - * @property {Object} [ssl_configuration] - * @property {number} [connection_timeout] - * @property {number} [authentication_timeout] - * @property {number} [request_timeout] - * @property {number} [id] - */ -/** - * @typedef KafkaConfigRequest - * @property {string} [name] - * @property {string} [client_id] - * @property {string[]} [brokers] - * @property {boolean} [ssl_enabled] - * @property {boolean} [sasl_enabled] - * @property {Object} [sasl_configuration] - * @property {Object} [ssl_configuration] - * @property {number} [connection_timeout] - * @property {number} [authentication_timeout] - * @property {number} [request_timeout] - */ /** * @typedef UpdateSubscriberResponse * @property {string} [message] @@ -72,7 +24,6 @@ export = WebhookPartnerModel; * @property {number} [id] * @property {number} [event_id] * @property {number} [subscriber_id] - * @property {string} [topic] * @property {string} [created_on] */ /** @@ -264,7 +215,6 @@ export = WebhookPartnerModel; * @property {string} [modified_by] * @property {string} [name] * @property {string} [webhook_url] - * @property {string} [provider] * @property {Association} [association] * @property {Object} [custom_headers] * @property {string} [status] @@ -279,60 +229,8 @@ export = WebhookPartnerModel; declare class WebhookPartnerModel { } declare namespace WebhookPartnerModel { - export { KafkaConfigValidateResponse, KafkaConfigResponse, KafkaConfigUpdateRequest, KafkaConfigRequest, UpdateSubscriberResponse, UpdateSubscriberRequest, Association, AuthMeta, SubscriberEventMapping, EventConfigResponse, SubscriberConfigResponse, InvalidEventsRequest, InvalidEventsResponse, DownloadReponse, HistoryFilters, Url, CdnObject, UploadServiceObject, HistoryAssociation, HistoryItems, HistoryResponse, HistoryPayload, CancelDownloadResponse, FilterReportResponse, DeliveryTsResponse, DeliveryTsSchema, DeliveryDetailsRequest, EventDeliveryDetailSchema, DeliveryDetailsResponse, EventProcessReportObject, Page, DeliveryEventLevelSchema, DeliverySummaryResponse, DeliverySummarySchema, ItemSchema }; + export { UpdateSubscriberResponse, UpdateSubscriberRequest, Association, AuthMeta, SubscriberEventMapping, EventConfigResponse, SubscriberConfigResponse, InvalidEventsRequest, InvalidEventsResponse, DownloadReponse, HistoryFilters, Url, CdnObject, UploadServiceObject, HistoryAssociation, HistoryItems, HistoryResponse, HistoryPayload, CancelDownloadResponse, FilterReportResponse, DeliveryTsResponse, DeliveryTsSchema, DeliveryDetailsRequest, EventDeliveryDetailSchema, DeliveryDetailsResponse, EventProcessReportObject, Page, DeliveryEventLevelSchema, DeliverySummaryResponse, DeliverySummarySchema, ItemSchema }; } -/** @returns {KafkaConfigValidateResponse} */ -declare function KafkaConfigValidateResponse(): KafkaConfigValidateResponse; -type KafkaConfigValidateResponse = { - status?: boolean; - message?: string; -}; -/** @returns {KafkaConfigResponse} */ -declare function KafkaConfigResponse(): KafkaConfigResponse; -type KafkaConfigResponse = { - id?: number; - name?: string; - client_id?: string; - brokers?: string[]; - ssl_enabled?: boolean; - sasl_enabled?: boolean; - sasl_configuration?: any; - ssl_configuration?: any; - connection_timeout?: number; - authentication_timeout?: number; - request_timeout?: number; - created_on?: string; - association?: any; -}; -/** @returns {KafkaConfigUpdateRequest} */ -declare function KafkaConfigUpdateRequest(): KafkaConfigUpdateRequest; -type KafkaConfigUpdateRequest = { - name?: string; - client_id?: string; - brokers?: string[]; - ssl_enabled?: boolean; - sasl_enabled?: boolean; - sasl_configuration?: any; - ssl_configuration?: any; - connection_timeout?: number; - authentication_timeout?: number; - request_timeout?: number; - id?: number; -}; -/** @returns {KafkaConfigRequest} */ -declare function KafkaConfigRequest(): KafkaConfigRequest; -type KafkaConfigRequest = { - name?: string; - client_id?: string; - brokers?: string[]; - ssl_enabled?: boolean; - sasl_enabled?: boolean; - sasl_configuration?: any; - ssl_configuration?: any; - connection_timeout?: number; - authentication_timeout?: number; - request_timeout?: number; -}; /** @returns {UpdateSubscriberResponse} */ declare function UpdateSubscriberResponse(): UpdateSubscriberResponse; type UpdateSubscriberResponse = { @@ -363,7 +261,6 @@ type SubscriberEventMapping = { id?: number; event_id?: number; subscriber_id?: number; - topic?: string; created_on?: string; }; /** @returns {EventConfigResponse} */ @@ -656,7 +553,6 @@ type ItemSchema = { modified_by?: string; name?: string; webhook_url?: string; - provider?: string; association?: Association; custom_headers?: any; status?: string; diff --git a/sdk/partner/Webhook/WebhookPartnerModel.js b/sdk/partner/Webhook/WebhookPartnerModel.js index 4c13cccf0..a4e12fbc2 100644 --- a/sdk/partner/Webhook/WebhookPartnerModel.js +++ b/sdk/partner/Webhook/WebhookPartnerModel.js @@ -1,57 +1,5 @@ const Joi = require("joi"); -/** - * @typedef KafkaConfigValidateResponse - * @property {boolean} [status] - * @property {string} [message] - */ - -/** - * @typedef KafkaConfigResponse - * @property {number} [id] - * @property {string} [name] - * @property {string} [client_id] - * @property {string[]} [brokers] - * @property {boolean} [ssl_enabled] - * @property {boolean} [sasl_enabled] - * @property {Object} [sasl_configuration] - * @property {Object} [ssl_configuration] - * @property {number} [connection_timeout] - * @property {number} [authentication_timeout] - * @property {number} [request_timeout] - * @property {string} [created_on] - * @property {Object} [association] - */ - -/** - * @typedef KafkaConfigUpdateRequest - * @property {string} [name] - * @property {string} [client_id] - * @property {string[]} [brokers] - * @property {boolean} [ssl_enabled] - * @property {boolean} [sasl_enabled] - * @property {Object} [sasl_configuration] - * @property {Object} [ssl_configuration] - * @property {number} [connection_timeout] - * @property {number} [authentication_timeout] - * @property {number} [request_timeout] - * @property {number} [id] - */ - -/** - * @typedef KafkaConfigRequest - * @property {string} [name] - * @property {string} [client_id] - * @property {string[]} [brokers] - * @property {boolean} [ssl_enabled] - * @property {boolean} [sasl_enabled] - * @property {Object} [sasl_configuration] - * @property {Object} [ssl_configuration] - * @property {number} [connection_timeout] - * @property {number} [authentication_timeout] - * @property {number} [request_timeout] - */ - /** * @typedef UpdateSubscriberResponse * @property {string} [message] @@ -81,7 +29,6 @@ const Joi = require("joi"); * @property {number} [id] * @property {number} [event_id] * @property {number} [subscriber_id] - * @property {string} [topic] * @property {string} [created_on] */ @@ -299,7 +246,6 @@ const Joi = require("joi"); * @property {string} [modified_by] * @property {string} [name] * @property {string} [webhook_url] - * @property {string} [provider] * @property {Association} [association] * @property {Object} [custom_headers] * @property {string} [status] @@ -313,66 +259,6 @@ const Joi = require("joi"); */ class WebhookPartnerModel { - /** @returns {KafkaConfigValidateResponse} */ - static KafkaConfigValidateResponse() { - return Joi.object({ - status: Joi.boolean(), - message: Joi.string().allow(""), - }); - } - - /** @returns {KafkaConfigResponse} */ - static KafkaConfigResponse() { - return Joi.object({ - id: Joi.number(), - name: Joi.string().allow(""), - client_id: Joi.string().allow(""), - brokers: Joi.array().items(Joi.string().allow("")), - ssl_enabled: Joi.boolean(), - sasl_enabled: Joi.boolean(), - sasl_configuration: Joi.object().pattern(/\S/, Joi.any()), - ssl_configuration: Joi.object().pattern(/\S/, Joi.any()), - connection_timeout: Joi.number(), - authentication_timeout: Joi.number(), - request_timeout: Joi.number(), - created_on: Joi.string().allow(""), - association: Joi.object().pattern(/\S/, Joi.any()), - }); - } - - /** @returns {KafkaConfigUpdateRequest} */ - static KafkaConfigUpdateRequest() { - return Joi.object({ - name: Joi.string().allow(""), - client_id: Joi.string().allow(""), - brokers: Joi.array().items(Joi.string().allow("")), - ssl_enabled: Joi.boolean(), - sasl_enabled: Joi.boolean(), - sasl_configuration: Joi.object().pattern(/\S/, Joi.any()), - ssl_configuration: Joi.object().pattern(/\S/, Joi.any()), - connection_timeout: Joi.number(), - authentication_timeout: Joi.number(), - request_timeout: Joi.number(), - id: Joi.number(), - }); - } - - /** @returns {KafkaConfigRequest} */ - static KafkaConfigRequest() { - return Joi.object({ - name: Joi.string().allow(""), - client_id: Joi.string().allow(""), - brokers: Joi.array().items(Joi.string().allow("")), - ssl_enabled: Joi.boolean(), - sasl_enabled: Joi.boolean(), - sasl_configuration: Joi.object().pattern(/\S/, Joi.any()), - ssl_configuration: Joi.object().pattern(/\S/, Joi.any()), - connection_timeout: Joi.number(), - authentication_timeout: Joi.number(), - request_timeout: Joi.number(), - }); - } - /** @returns {UpdateSubscriberResponse} */ static UpdateSubscriberResponse() { return Joi.object({ @@ -411,7 +297,6 @@ class WebhookPartnerModel { id: Joi.number(), event_id: Joi.number(), subscriber_id: Joi.number(), - topic: Joi.string().allow("").allow(null), created_on: Joi.string().allow(""), }); } @@ -680,7 +565,6 @@ class WebhookPartnerModel { modified_by: Joi.string().allow(""), name: Joi.string().allow(""), webhook_url: Joi.string().allow(""), - provider: Joi.string().allow(""), association: WebhookPartnerModel.Association(), custom_headers: Joi.any(), status: Joi.string().allow(""), diff --git a/sdk/partner/Webhook/WebhookPartnerValidator.d.ts b/sdk/partner/Webhook/WebhookPartnerValidator.d.ts index ce90d528f..df035c22d 100644 --- a/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +++ b/sdk/partner/Webhook/WebhookPartnerValidator.d.ts @@ -9,8 +9,4 @@ declare class WebhookValidator { static getInvalidEventList(): any; static fetchSubscribers(): any; static updateSubscriber(): any; - static createKafkaConfiguration(): any; - static fetchKafkaConfiguration(): any; - static updateKafkaConfiguration(): any; - static validateKafkaConfiguration(): any; } diff --git a/sdk/partner/Webhook/WebhookPartnerValidator.js b/sdk/partner/Webhook/WebhookPartnerValidator.js index 8dd77d5dd..70aba7ba0 100644 --- a/sdk/partner/Webhook/WebhookPartnerValidator.js +++ b/sdk/partner/Webhook/WebhookPartnerValidator.js @@ -69,33 +69,6 @@ class WebhookValidator { body: WebhookModel.UpdateSubscriberRequest().required(), }).required(); } - - static createKafkaConfiguration() { - return Joi.object({ - extensionId: Joi.string().allow("").required(), - body: WebhookModel.KafkaConfigRequest().required(), - }).required(); - } - - static fetchKafkaConfiguration() { - return Joi.object({ - extensionId: Joi.string().allow("").required(), - }).required(); - } - - static updateKafkaConfiguration() { - return Joi.object({ - extensionId: Joi.string().allow("").required(), - body: WebhookModel.KafkaConfigUpdateRequest().required(), - }).required(); - } - - static validateKafkaConfiguration() { - return Joi.object({ - extensionId: Joi.string().allow("").required(), - body: WebhookModel.KafkaConfigRequest().required(), - }).required(); - } } module.exports = WebhookValidator; diff --git a/sdk/partner/index.d.ts b/sdk/partner/index.d.ts index 9673f0901..77504f1b1 100644 --- a/sdk/partner/index.d.ts +++ b/sdk/partner/index.d.ts @@ -1,9 +1,9 @@ -export const PartnerConfig: typeof import("sdk/output/javascript/code/sdk/partner/PartnerConfig"); -export const PartnerClient: typeof import("sdk/output/javascript/code/sdk/partner/PartnerClient"); +export const PartnerConfig: typeof import("./PartnerConfig"); +export const PartnerClient: typeof import("./PartnerClient"); export namespace PartnerModel { - const FileStoragePartnerModel: typeof import("sdk/output/javascript/code/sdk/partner/FileStorage/FileStoragePartnerModel"); - const LeadPartnerModel: typeof import("sdk/output/javascript/code/sdk/partner/Lead/LeadPartnerModel"); - const LogisticsPartnerModel: typeof import("sdk/output/javascript/code/sdk/partner/Logistics/LogisticsPartnerModel"); - const ThemePartnerModel: typeof import("sdk/output/javascript/code/sdk/partner/Theme/ThemePartnerModel"); - const WebhookPartnerModel: typeof import("sdk/output/javascript/code/sdk/partner/Webhook/WebhookPartnerModel"); + const FileStoragePartnerModel: typeof import("./FileStorage/FileStoragePartnerModel"); + const LeadPartnerModel: typeof import("./Lead/LeadPartnerModel"); + const LogisticsPartnerModel: typeof import("./Logistics/LogisticsPartnerModel"); + const ThemePartnerModel: typeof import("./Theme/ThemePartnerModel"); + const WebhookPartnerModel: typeof import("./Webhook/WebhookPartnerModel"); } diff --git a/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts b/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts index 694e62309..db32e855f 100644 --- a/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +++ b/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts @@ -43,5 +43,5 @@ declare class AuditTrail { */ getEntityTypes({ requestHeaders }?: any, { responseHeaders }?: object): Promise; } -import AuditTrailPlatformValidator = require("sdk/output/javascript/code/sdk/platform/AuditTrail/AuditTrailPlatformValidator"); -import AuditTrailPlatformModel = require("sdk/output/javascript/code/sdk/platform/AuditTrail/AuditTrailPlatformModel"); +import AuditTrailPlatformValidator = require("./AuditTrailPlatformValidator"); +import AuditTrailPlatformModel = require("./AuditTrailPlatformModel"); diff --git a/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts b/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts index 2ab57eea3..2ed67c5d8 100644 --- a/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +++ b/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts @@ -51,4 +51,4 @@ type GetAuditLogsParam = { sort?: any; }; type GetEntityTypesParam = any; -import AuditTrailPlatformModel = require("sdk/output/javascript/code/sdk/platform/AuditTrail/AuditTrailPlatformModel"); +import AuditTrailPlatformModel = require("./AuditTrailPlatformModel"); diff --git a/sdk/platform/Billing/BillingPlatformClient.d.ts b/sdk/platform/Billing/BillingPlatformClient.d.ts index 6aa844d93..a7cfcba92 100644 --- a/sdk/platform/Billing/BillingPlatformClient.d.ts +++ b/sdk/platform/Billing/BillingPlatformClient.d.ts @@ -125,27 +125,6 @@ declare class Billing { * @description: Get invoices. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/billing/getInvoices/). */ getInvoices({ requestHeaders }?: any, { responseHeaders }?: object): Promise; - /** - * @param {BillingPlatformValidator.GetPaymentOptionsParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getPaymentOptions - * @summary: API to get payment options - * @description: API to get payment options. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/billing/getPaymentOptions/). - */ - getPaymentOptions({ transactionId, requestHeaders }?: BillingPlatformValidator.GetPaymentOptionsParam, { responseHeaders }?: object): Promise; - /** - * @param {BillingPlatformValidator.GetPaymentTransactionParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name getPaymentTransaction - * @summary: API to get payment transaction details - * @description: API to get payment transaction details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/billing/getPaymentTransaction/). - */ - getPaymentTransaction({ transactionId, requestHeaders }?: BillingPlatformValidator.GetPaymentTransactionParam, { responseHeaders }?: object): Promise; /** * @param {BillingPlatformValidator.GetSubscriptionParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -177,26 +156,6 @@ declare class Billing { * @description: Generic api to get the entity detail - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/billing/getentityDetail/). */ getentityDetail({ entityName, channel, entityId, component, componentName, requestHeaders, }?: BillingPlatformValidator.GetentityDetailParam, { responseHeaders }?: object): Promise; - /** - * @param {BillingPlatformValidator.GlobalSettingsParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name globalSettings - * @summary: API to get global settings details - * @description: API to get global settings details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/billing/globalSettings/). - */ - globalSettings({ pageNo, pageSize, query, requestHeaders }?: BillingPlatformValidator.GlobalSettingsParam, { responseHeaders }?: object): Promise; - /** - * @param {BillingPlatformValidator.PaymentOptionsParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name paymentOptions - * @summary: API to get payment details of requested payment options - * @description: API to get payment details of requested payment options. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/billing/paymentOptions/). - */ - paymentOptions({ code, requestHeaders }?: BillingPlatformValidator.PaymentOptionsParam, { responseHeaders }?: object): Promise; /** * @param {BillingPlatformValidator.PlanStatusUpdateParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -217,36 +176,6 @@ declare class Billing { * @description: It will subscribe a plan. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/billing/subscripePlan/). */ subscripePlan({ body, requestHeaders }?: BillingPlatformValidator.SubscripePlanParam, { responseHeaders }?: object): Promise; - /** - * @param {BillingPlatformValidator.SubscriptionConfigsParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name subscriptionConfigs - * @summary: API to get subscription config details - * @description: API to get subscription config details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/billing/subscriptionConfigs/). - */ - subscriptionConfigs({ requestHeaders }?: any, { responseHeaders }?: object): Promise; - /** - * @param {BillingPlatformValidator.SubscriptionMethodsParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name subscriptionMethods - * @summary: API to get subscription methods - * @description: API to get subscription methods. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/billing/subscriptionMethods/). - */ - subscriptionMethods({ uniqueExternalId, requestHeaders }?: BillingPlatformValidator.SubscriptionMethodsParam, { responseHeaders }?: object): Promise; - /** - * @param {BillingPlatformValidator.SubscriptionPlanChangeParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name subscriptionPlanChange - * @summary: API to get plan change details of subscription - * @description: API to get plan change details of subscription. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/billing/subscriptionPlanChange/). - */ - subscriptionPlanChange({ productSuite, uniqueId, platform, requestHeaders }?: BillingPlatformValidator.SubscriptionPlanChangeParam, { responseHeaders }?: object): Promise; /** * @param {BillingPlatformValidator.UpsertCustomerDetailParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -257,16 +186,6 @@ declare class Billing { * @description: Upsert subscription customer detail. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/billing/upsertCustomerDetail/). */ upsertCustomerDetail({ body, requestHeaders }?: BillingPlatformValidator.UpsertCustomerDetailParam, { responseHeaders }?: object): Promise; - /** - * @param {BillingPlatformValidator.VerifyPaymentParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name verifyPayment - * @summary: API to verify subscription payment - * @description: API to verify subscription payment. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/billing/verifyPayment/). - */ - verifyPayment({ body, requestHeaders }?: BillingPlatformValidator.VerifyPaymentParam, { responseHeaders }?: object): Promise; } -import BillingPlatformValidator = require("sdk/output/javascript/code/sdk/platform/Billing/BillingPlatformValidator"); -import BillingPlatformModel = require("sdk/output/javascript/code/sdk/platform/Billing/BillingPlatformModel"); +import BillingPlatformValidator = require("./BillingPlatformValidator"); +import BillingPlatformModel = require("./BillingPlatformModel"); diff --git a/sdk/platform/Billing/BillingPlatformClient.js b/sdk/platform/Billing/BillingPlatformClient.js index e58d338a3..9ce0fd364 100644 --- a/sdk/platform/Billing/BillingPlatformClient.js +++ b/sdk/platform/Billing/BillingPlatformClient.js @@ -972,166 +972,6 @@ class Billing { return response; } - /** - * @param {BillingPlatformValidator.GetPaymentOptionsParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getPaymentOptions - * @summary: API to get payment options - * @description: API to get payment options. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/billing/getPaymentOptions/). - */ - async getPaymentOptions( - { transactionId, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { error } = BillingPlatformValidator.getPaymentOptions().validate( - { - transactionId, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = BillingPlatformValidator.getPaymentOptions().validate( - { - transactionId, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Billing > getPaymentOptions \n ${warrning}`, - }); - } - - const query_params = {}; - query_params["transaction_id"] = transactionId; - - const xHeaders = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/billing/v1.0/company/${this.config.companyId}/payment/options`, - query_params, - undefined, - { ...xHeaders, ...requestHeaders }, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = BillingPlatformModel.GetPaymentOptions().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Billing > getPaymentOptions \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {BillingPlatformValidator.GetPaymentTransactionParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name getPaymentTransaction - * @summary: API to get payment transaction details - * @description: API to get payment transaction details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/billing/getPaymentTransaction/). - */ - async getPaymentTransaction( - { transactionId, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { error } = BillingPlatformValidator.getPaymentTransaction().validate( - { - transactionId, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = BillingPlatformValidator.getPaymentTransaction().validate( - { - transactionId, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Billing > getPaymentTransaction \n ${warrning}`, - }); - } - - const query_params = {}; - - const xHeaders = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/billing/v1.0/company/${this.config.companyId}/payment/transaction/${transactionId}`, - query_params, - undefined, - { ...xHeaders, ...requestHeaders }, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = BillingPlatformModel.PaymentTransactionDetails().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Billing > getPaymentTransaction \n ${res_error}`, - }); - } - } - - return response; - } - /** * @param {BillingPlatformValidator.GetSubscriptionParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -1389,23 +1229,21 @@ class Billing { } /** - * @param {BillingPlatformValidator.GlobalSettingsParam} arg - Arg object + * @param {BillingPlatformValidator.PlanStatusUpdateParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name globalSettings - * @summary: API to get global settings details - * @description: API to get global settings details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/billing/globalSettings/). + * @returns {Promise} - Success response + * @name planStatusUpdate + * @summary: Update Status of The plan + * @description: It will update the status of the plan - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/billing/planStatusUpdate/). */ - async globalSettings( - { pageNo, pageSize, query, requestHeaders } = { requestHeaders: {} }, + async planStatusUpdate( + { body, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { - const { error } = BillingPlatformValidator.globalSettings().validate( + const { error } = BillingPlatformValidator.planStatusUpdate().validate( { - pageNo, - pageSize, - query, + body, }, { abortEarly: false, allowUnknown: true } ); @@ -1416,34 +1254,29 @@ class Billing { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = BillingPlatformValidator.globalSettings().validate( + } = BillingPlatformValidator.planStatusUpdate().validate( { - pageNo, - pageSize, - query, + body, }, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Billing > globalSettings \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Billing > planStatusUpdate \n ${warrning}`, }); } const query_params = {}; - query_params["page_no"] = pageNo; - query_params["page_size"] = pageSize; - query_params["query"] = query; const xHeaders = {}; const response = await PlatformAPIClient.execute( this.config, - "get", - `/service/platform/billing/v1.0/company/${this.config.companyId}/global-settings`, + "patch", + `/service/platform/billing/v1.0/company/${this.config.companyId}/plan/status`, query_params, - undefined, + body, { ...xHeaders, ...requestHeaders }, { responseHeaders } ); @@ -1455,7 +1288,7 @@ class Billing { const { error: res_error, - } = BillingPlatformModel.GlobalSettings().validate(responseData, { + } = BillingPlatformModel.Plan().validate(responseData, { abortEarly: false, allowUnknown: true, }); @@ -1466,7 +1299,7 @@ class Billing { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Billing > globalSettings \n ${res_error}`, + message: `Response Validation Warnings for platform > Billing > planStatusUpdate \n ${res_error}`, }); } } @@ -1475,21 +1308,21 @@ class Billing { } /** - * @param {BillingPlatformValidator.PaymentOptionsParam} arg - Arg object + * @param {BillingPlatformValidator.SubscripePlanParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name paymentOptions - * @summary: API to get payment details of requested payment options - * @description: API to get payment details of requested payment options. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/billing/paymentOptions/). + * @returns {Promise} - Success response + * @name subscripePlan + * @summary: Subscribe plan. + * @description: It will subscribe a plan. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/billing/subscripePlan/). */ - async paymentOptions( - { code, requestHeaders } = { requestHeaders: {} }, + async subscripePlan( + { body, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { - const { error } = BillingPlatformValidator.paymentOptions().validate( + const { error } = BillingPlatformValidator.subscripePlan().validate( { - code, + body, }, { abortEarly: false, allowUnknown: true } ); @@ -1500,30 +1333,29 @@ class Billing { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = BillingPlatformValidator.paymentOptions().validate( + } = BillingPlatformValidator.subscripePlan().validate( { - code, + body, }, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Billing > paymentOptions \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Billing > subscripePlan \n ${warrning}`, }); } const query_params = {}; - query_params["code"] = code; const xHeaders = {}; const response = await PlatformAPIClient.execute( this.config, - "get", - `/service/platform/billing/v1.0/company/${this.config.companyId}/subscription/payment-options`, + "post", + `/service/platform/billing/v1.0/company/${this.config.companyId}/payment/initiate`, query_params, - undefined, + body, { ...xHeaders, ...requestHeaders }, { responseHeaders } ); @@ -1535,7 +1367,7 @@ class Billing { const { error: res_error, - } = BillingPlatformModel.PaymentOptions().validate(responseData, { + } = BillingPlatformModel.SubscribePlanRes().validate(responseData, { abortEarly: false, allowUnknown: true, }); @@ -1546,7 +1378,7 @@ class Billing { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Billing > paymentOptions \n ${res_error}`, + message: `Response Validation Warnings for platform > Billing > subscripePlan \n ${res_error}`, }); } } @@ -1555,19 +1387,19 @@ class Billing { } /** - * @param {BillingPlatformValidator.PlanStatusUpdateParam} arg - Arg object + * @param {BillingPlatformValidator.UpsertCustomerDetailParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name planStatusUpdate - * @summary: Update Status of The plan - * @description: It will update the status of the plan - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/billing/planStatusUpdate/). + * @returns {Promise} - Success response + * @name upsertCustomerDetail + * @summary: Upsert subscription customer detail + * @description: Upsert subscription customer detail. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/billing/upsertCustomerDetail/). */ - async planStatusUpdate( + async upsertCustomerDetail( { body, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { - const { error } = BillingPlatformValidator.planStatusUpdate().validate( + const { error } = BillingPlatformValidator.upsertCustomerDetail().validate( { body, }, @@ -1580,7 +1412,7 @@ class Billing { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = BillingPlatformValidator.planStatusUpdate().validate( + } = BillingPlatformValidator.upsertCustomerDetail().validate( { body, }, @@ -1589,7 +1421,7 @@ class Billing { if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Billing > planStatusUpdate \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Billing > upsertCustomerDetail \n ${warrning}`, }); } @@ -1599,8 +1431,8 @@ class Billing { const response = await PlatformAPIClient.execute( this.config, - "patch", - `/service/platform/billing/v1.0/company/${this.config.companyId}/plan/status`, + "post", + `/service/platform/billing/v1.0/company/${this.config.companyId}/subscription/customer-detail`, query_params, body, { ...xHeaders, ...requestHeaders }, @@ -1614,410 +1446,7 @@ class Billing { const { error: res_error, - } = BillingPlatformModel.Plan().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Billing > planStatusUpdate \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {BillingPlatformValidator.SubscripePlanParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name subscripePlan - * @summary: Subscribe plan. - * @description: It will subscribe a plan. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/billing/subscripePlan/). - */ - async subscripePlan( - { body, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { error } = BillingPlatformValidator.subscripePlan().validate( - { - body, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = BillingPlatformValidator.subscripePlan().validate( - { - body, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Billing > subscripePlan \n ${warrning}`, - }); - } - - const query_params = {}; - - const xHeaders = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "post", - `/service/platform/billing/v1.0/company/${this.config.companyId}/payment/initiate`, - query_params, - body, - { ...xHeaders, ...requestHeaders }, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = BillingPlatformModel.SubscribePlanRes().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Billing > subscripePlan \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {BillingPlatformValidator.SubscriptionConfigsParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name subscriptionConfigs - * @summary: API to get subscription config details - * @description: API to get subscription config details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/billing/subscriptionConfigs/). - */ - async subscriptionConfigs( - { requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { error } = BillingPlatformValidator.subscriptionConfigs().validate( - {}, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = BillingPlatformValidator.subscriptionConfigs().validate( - {}, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Billing > subscriptionConfigs \n ${warrning}`, - }); - } - - const query_params = {}; - - const xHeaders = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/billing/v1.0/company/${this.config.companyId}/subscription/configs`, - query_params, - undefined, - { ...xHeaders, ...requestHeaders }, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = BillingPlatformModel.ConfigRes().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Billing > subscriptionConfigs \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {BillingPlatformValidator.SubscriptionMethodsParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name subscriptionMethods - * @summary: API to get subscription methods - * @description: API to get subscription methods. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/billing/subscriptionMethods/). - */ - async subscriptionMethods( - { uniqueExternalId, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { error } = BillingPlatformValidator.subscriptionMethods().validate( - { - uniqueExternalId, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = BillingPlatformValidator.subscriptionMethods().validate( - { - uniqueExternalId, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Billing > subscriptionMethods \n ${warrning}`, - }); - } - - const query_params = {}; - query_params["unique_external_id"] = uniqueExternalId; - - const xHeaders = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/billing/v1.0/company/${this.config.companyId}/subscription/methods`, - query_params, - undefined, - { ...xHeaders, ...requestHeaders }, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = BillingPlatformModel.SubscriptionMethods().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Billing > subscriptionMethods \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {BillingPlatformValidator.SubscriptionPlanChangeParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name subscriptionPlanChange - * @summary: API to get plan change details of subscription - * @description: API to get plan change details of subscription. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/billing/subscriptionPlanChange/). - */ - async subscriptionPlanChange( - { productSuite, uniqueId, platform, requestHeaders } = { - requestHeaders: {}, - }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = BillingPlatformValidator.subscriptionPlanChange().validate( - { - productSuite, - uniqueId, - platform, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = BillingPlatformValidator.subscriptionPlanChange().validate( - { - productSuite, - uniqueId, - platform, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Billing > subscriptionPlanChange \n ${warrning}`, - }); - } - - const query_params = {}; - query_params["product_suite"] = productSuite; - query_params["unique_id"] = uniqueId; - query_params["platform"] = platform; - - const xHeaders = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/billing/v1.0/company/${this.config.companyId}/subscription/plan-change`, - query_params, - undefined, - { ...xHeaders, ...requestHeaders }, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = BillingPlatformModel.PlanChangeDetails().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Billing > subscriptionPlanChange \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {BillingPlatformValidator.UpsertCustomerDetailParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name upsertCustomerDetail - * @summary: Upsert subscription customer detail - * @description: Upsert subscription customer detail. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/billing/upsertCustomerDetail/). - */ - async upsertCustomerDetail( - { body, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { error } = BillingPlatformValidator.upsertCustomerDetail().validate( - { - body, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = BillingPlatformValidator.upsertCustomerDetail().validate( - { - body, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Billing > upsertCustomerDetail \n ${warrning}`, - }); - } - - const query_params = {}; - - const xHeaders = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "post", - `/service/platform/billing/v1.0/company/${this.config.companyId}/subscription/customer-detail`, - query_params, - body, - { ...xHeaders, ...requestHeaders }, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = BillingPlatformModel.SubscriptionCustomer().validate(responseData, { + } = BillingPlatformModel.SubscriptionCustomer().validate(responseData, { abortEarly: false, allowUnknown: true, }); @@ -2035,85 +1464,6 @@ class Billing { return response; } - - /** - * @param {BillingPlatformValidator.VerifyPaymentParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name verifyPayment - * @summary: API to verify subscription payment - * @description: API to verify subscription payment. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/billing/verifyPayment/). - */ - async verifyPayment( - { body, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { error } = BillingPlatformValidator.verifyPayment().validate( - { - body, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = BillingPlatformValidator.verifyPayment().validate( - { - body, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Billing > verifyPayment \n ${warrning}`, - }); - } - - const query_params = {}; - - const xHeaders = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "post", - `/service/platform/billing/v1.0/company/${this.config.companyId}/subscription/verify-payment`, - query_params, - body, - { ...xHeaders, ...requestHeaders }, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = BillingPlatformModel.VerifyPaymentRes().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Billing > verifyPayment \n ${res_error}`, - }); - } - } - - return response; - } } module.exports = Billing; diff --git a/sdk/platform/Billing/BillingPlatformModel.d.ts b/sdk/platform/Billing/BillingPlatformModel.d.ts index a8334f0ff..b88cb3c82 100644 --- a/sdk/platform/Billing/BillingPlatformModel.d.ts +++ b/sdk/platform/Billing/BillingPlatformModel.d.ts @@ -395,7 +395,7 @@ export = BillingPlatformModel; * @property {InvoicesData} [latest_invoice] * @property {Plan} [next_plan] * @property {Subscription[]} [current_subscriptions] - * @property {number} [mandate_amount] + * @property {string} [mandate_amount] */ /** * @typedef SubscriptionLimitApplication @@ -524,197 +524,10 @@ export = BillingPlatformModel; * @property {number} [page_size] * @property {Details[]} [items] */ -/** - * @typedef PaymentOptions - * @property {string} [_id] - * @property {string} [name] - * @property {string} [description] - * @property {string} [logo] - * @property {string} [aggregator_id] - * @property {string} [aggregator] - * @property {string} [created_at] - * @property {string} [modified_at] - * @property {number} [__v] - */ -/** - * @typedef VerifyPaymentReq - * @property {string} [razorpay_payment_id] - * @property {string} [razorpay_order_id] - * @property {string} [razorpay_signature] - * @property {number} [status_code] - * @property {string} [provider_type] - */ -/** - * @typedef Documents - * @property {string} [pan] - */ -/** - * @typedef BillingAddress - * @property {string} [country] - * @property {string} [state] - * @property {string} [city] - * @property {string} [line1] - * @property {string} [line2] - * @property {string} [postal_code] - * @property {string} [country_code] - */ -/** - * @typedef Currency - * @property {string} [code] - * @property {string} [symbol] - * @property {string} [name] - */ -/** - * @typedef BusinessCountryInfo - * @property {string} [country] - * @property {string} [country_code] - * @property {Currency} [currency] - * @property {string} [timezone] - */ -/** - * @typedef SubscriberData - * @property {boolean} [pg_user_exists] - * @property {string} [id] - * @property {string} [pg_customer_id] - */ -/** - * @typedef Subscriber - * @property {Documents} [documents] - * @property {Object} [phone] - * @property {BillingAddress} [billing_address] - * @property {boolean} [consent] - * @property {boolean} [comms] - * @property {string} [_id] - * @property {string} [type] - * @property {string} [unique_id] - * @property {string} [name] - * @property {string} [email] - * @property {BusinessCountryInfo} [business_country_info] - * @property {string} [created_at] - * @property {string} [modified_at] - * @property {number} [credit_balance] - * @property {SubscriberData} [data] - */ -/** - * @typedef Author - * @property {Object} [modified_by_details] - */ -/** - * @typedef EndingBalance - * @property {number} [amount] - * @property {string} [old_entry_ref] - */ -/** - * @typedef PaymentData - * @property {string} [transaction_id] - * @property {string} [aggregator] - * @property {string} [aggregator_order_id] - */ -/** - * @typedef CreditTransaction - * @property {Object} [entity] - * @property {Author} [author] - * @property {string} [_id] - * @property {number} [amount] - * @property {string} [currency] - * @property {string} [subscriber_id] - * @property {string} [description] - * @property {boolean} [is_test] - * @property {EndingBalance} [ending_balance] - * @property {PaymentData} [payment] - * @property {string} [type] - * @property {string} [created_at] - * @property {string} [modified_at] - */ -/** - * @typedef VerifyPaymentData - * @property {boolean} [success] - * @property {Subscriber} [subscriber] - * @property {CreditTransaction} [credit_transaction] - */ -/** - * @typedef VerifyPaymentRes - * @property {string} [status] - * @property {VerifyPaymentData} [data] - */ -/** - * @typedef DefaultMerchants - * @property {string} [stripe] - */ -/** - * @typedef GlobalSettingsPayment - * @property {DefaultMerchants} [default_merchants] - */ -/** - * @typedef GlobalSettingsData - * @property {GlobalSettingsPayment} [payment] - * @property {boolean} [freeze_panel] - * @property {string} [_id] - * @property {string} [created_at] - * @property {string} [modified_at] - */ -/** - * @typedef GlobalSettings - * @property {string} [status] - * @property {GlobalSettingsData} [data] - */ -/** - * @typedef SubscriptionMethods - * @property {boolean} [success] - * @property {string[]} [data] - */ -/** - * @typedef ConfigPublicKey - * @property {string} [public_key] - */ -/** - * @typedef ConfigRes - * @property {boolean} [success] - * @property {string} [aggregator] - * @property {ConfigPublicKey} [config] - */ -/** - * @typedef PlanChangeData - * @property {number} [total] - * @property {number} [credit_note_amount] - * @property {number} [taxable_amount] - * @property {number} [gst_amount] - * @property {number} [gross_total] - * @property {number} [gst] - */ -/** - * @typedef PlanChangeDetails - * @property {boolean} [success] - * @property {PlanChangeData} [data] - */ -/** - * @typedef PaymentTransactionDetails - * @property {Object} [aggregator] - * @property {string} [currency] - * @property {string} [current_status] - * @property {string} [_id] - * @property {string} [subscriber_id] - * @property {number} [amount] - * @property {string} [entity_type] - * @property {string} [collection_type] - * @property {Meta} [meta] - * @property {string} [created_at] - * @property {string} [modified_at] - */ -/** - * @typedef PaymentItems - * @property {string} [name] - * @property {string} [code] - * @property {string} [aggregator] - */ -/** - * @typedef GetPaymentOptions - * @property {PaymentItems[]} [payment_options] - */ declare class BillingPlatformModel { } declare namespace BillingPlatformModel { - export { BadRequest, ResourceNotFound, InternalServerError, CheckValidityResponse, PlanRecurring, Plan, SubscriptionTrialPeriod, EntityChargePrice, EntityChargeRecurring, ChargeLineItem, CreateSubscriptionCharge, OneTimeChargeItem, CreateOneTimeCharge, CurrentPeriod, SubscriptionCharge, EntitySubscription, OneTimeChargeEntity, CreateOneTimeChargeResponse, CreateSubscriptionResponse, InvoiceDetailsPeriod, InvoiceDetailsClient, InvoiceDetailsStatusTrail, InvoicePaymentMethod, InvoiceDetails, InvoiceItemsPlanRecurring, InvoiceItemsPlan, InvoiceItemsPeriod, InvoiceItems, Invoice, InvoicesDataClient, InvoicesDataPeriod, InvoicesDataPaymentMethod, InvoicesData, Invoices, Phone, SubscriptionBillingAddress, SubscriptionCustomer, SubscriptionCustomerCreate, SubscriptionCurrentPeriod, SubscriptionPauseCollection, SubscriptionTrial, SubscriptionInvoiceSettings, Subscription, SubscriptionStatus, SubscriptionLimitApplication, SubscriptionLimitMarketplace, SubscriptionLimitOtherPlatform, SubscriptionLimitTeam, SubscriptionLimitProducts, SubscriptionLimitExtensions, SubscriptionLimitIntegrations, SubscriptionLimit, SubscriptionActivateReq, SubscriptionActivateRes, CancelSubscriptionReq, CancelSubscriptionRes, PlanStatusUpdateReq, SunscribePlan, Meta, SubscribePlanRes, Features, FeeComponents, Details, EntityResponse, PaymentOptions, VerifyPaymentReq, Documents, BillingAddress, Currency, BusinessCountryInfo, SubscriberData, Subscriber, Author, EndingBalance, PaymentData, CreditTransaction, VerifyPaymentData, VerifyPaymentRes, DefaultMerchants, GlobalSettingsPayment, GlobalSettingsData, GlobalSettings, SubscriptionMethods, ConfigPublicKey, ConfigRes, PlanChangeData, PlanChangeDetails, PaymentTransactionDetails, PaymentItems, GetPaymentOptions }; + export { BadRequest, ResourceNotFound, InternalServerError, CheckValidityResponse, PlanRecurring, Plan, SubscriptionTrialPeriod, EntityChargePrice, EntityChargeRecurring, ChargeLineItem, CreateSubscriptionCharge, OneTimeChargeItem, CreateOneTimeCharge, CurrentPeriod, SubscriptionCharge, EntitySubscription, OneTimeChargeEntity, CreateOneTimeChargeResponse, CreateSubscriptionResponse, InvoiceDetailsPeriod, InvoiceDetailsClient, InvoiceDetailsStatusTrail, InvoicePaymentMethod, InvoiceDetails, InvoiceItemsPlanRecurring, InvoiceItemsPlan, InvoiceItemsPeriod, InvoiceItems, Invoice, InvoicesDataClient, InvoicesDataPeriod, InvoicesDataPaymentMethod, InvoicesData, Invoices, Phone, SubscriptionBillingAddress, SubscriptionCustomer, SubscriptionCustomerCreate, SubscriptionCurrentPeriod, SubscriptionPauseCollection, SubscriptionTrial, SubscriptionInvoiceSettings, Subscription, SubscriptionStatus, SubscriptionLimitApplication, SubscriptionLimitMarketplace, SubscriptionLimitOtherPlatform, SubscriptionLimitTeam, SubscriptionLimitProducts, SubscriptionLimitExtensions, SubscriptionLimitIntegrations, SubscriptionLimit, SubscriptionActivateReq, SubscriptionActivateRes, CancelSubscriptionReq, CancelSubscriptionRes, PlanStatusUpdateReq, SunscribePlan, Meta, SubscribePlanRes, Features, FeeComponents, Details, EntityResponse }; } /** @returns {BadRequest} */ declare function BadRequest(): BadRequest; @@ -1174,7 +987,7 @@ type SubscriptionStatus = { latest_invoice?: InvoicesData; next_plan?: Plan; current_subscriptions?: Subscription[]; - mandate_amount?: number; + mandate_amount?: string; }; /** @returns {SubscriptionLimitApplication} */ declare function SubscriptionLimitApplication(): SubscriptionLimitApplication; @@ -1323,216 +1136,3 @@ type EntityResponse = { page_size?: number; items?: Details[]; }; -/** @returns {PaymentOptions} */ -declare function PaymentOptions(): PaymentOptions; -type PaymentOptions = { - _id?: string; - name?: string; - description?: string; - logo?: string; - aggregator_id?: string; - aggregator?: string; - created_at?: string; - modified_at?: string; - __v?: number; -}; -/** @returns {VerifyPaymentReq} */ -declare function VerifyPaymentReq(): VerifyPaymentReq; -type VerifyPaymentReq = { - razorpay_payment_id?: string; - razorpay_order_id?: string; - razorpay_signature?: string; - status_code?: number; - provider_type?: string; -}; -/** @returns {Documents} */ -declare function Documents(): Documents; -type Documents = { - pan?: string; -}; -/** @returns {BillingAddress} */ -declare function BillingAddress(): BillingAddress; -type BillingAddress = { - country?: string; - state?: string; - city?: string; - line1?: string; - line2?: string; - postal_code?: string; - country_code?: string; -}; -/** @returns {Currency} */ -declare function Currency(): Currency; -type Currency = { - code?: string; - symbol?: string; - name?: string; -}; -/** @returns {BusinessCountryInfo} */ -declare function BusinessCountryInfo(): BusinessCountryInfo; -type BusinessCountryInfo = { - country?: string; - country_code?: string; - currency?: Currency; - timezone?: string; -}; -/** @returns {SubscriberData} */ -declare function SubscriberData(): SubscriberData; -type SubscriberData = { - pg_user_exists?: boolean; - id?: string; - pg_customer_id?: string; -}; -/** @returns {Subscriber} */ -declare function Subscriber(): Subscriber; -type Subscriber = { - documents?: Documents; - phone?: any; - billing_address?: BillingAddress; - consent?: boolean; - comms?: boolean; - _id?: string; - type?: string; - unique_id?: string; - name?: string; - email?: string; - business_country_info?: BusinessCountryInfo; - created_at?: string; - modified_at?: string; - credit_balance?: number; - data?: SubscriberData; -}; -/** @returns {Author} */ -declare function Author(): Author; -type Author = { - modified_by_details?: any; -}; -/** @returns {EndingBalance} */ -declare function EndingBalance(): EndingBalance; -type EndingBalance = { - amount?: number; - old_entry_ref?: string; -}; -/** @returns {PaymentData} */ -declare function PaymentData(): PaymentData; -type PaymentData = { - transaction_id?: string; - aggregator?: string; - aggregator_order_id?: string; -}; -/** @returns {CreditTransaction} */ -declare function CreditTransaction(): CreditTransaction; -type CreditTransaction = { - entity?: any; - author?: Author; - _id?: string; - amount?: number; - currency?: string; - subscriber_id?: string; - description?: string; - is_test?: boolean; - ending_balance?: EndingBalance; - payment?: PaymentData; - type?: string; - created_at?: string; - modified_at?: string; -}; -/** @returns {VerifyPaymentData} */ -declare function VerifyPaymentData(): VerifyPaymentData; -type VerifyPaymentData = { - success?: boolean; - subscriber?: Subscriber; - credit_transaction?: CreditTransaction; -}; -/** @returns {VerifyPaymentRes} */ -declare function VerifyPaymentRes(): VerifyPaymentRes; -type VerifyPaymentRes = { - status?: string; - data?: VerifyPaymentData; -}; -/** @returns {DefaultMerchants} */ -declare function DefaultMerchants(): DefaultMerchants; -type DefaultMerchants = { - stripe?: string; -}; -/** @returns {GlobalSettingsPayment} */ -declare function GlobalSettingsPayment(): GlobalSettingsPayment; -type GlobalSettingsPayment = { - default_merchants?: DefaultMerchants; -}; -/** @returns {GlobalSettingsData} */ -declare function GlobalSettingsData(): GlobalSettingsData; -type GlobalSettingsData = { - payment?: GlobalSettingsPayment; - freeze_panel?: boolean; - _id?: string; - created_at?: string; - modified_at?: string; -}; -/** @returns {GlobalSettings} */ -declare function GlobalSettings(): GlobalSettings; -type GlobalSettings = { - status?: string; - data?: GlobalSettingsData; -}; -/** @returns {SubscriptionMethods} */ -declare function SubscriptionMethods(): SubscriptionMethods; -type SubscriptionMethods = { - success?: boolean; - data?: string[]; -}; -/** @returns {ConfigPublicKey} */ -declare function ConfigPublicKey(): ConfigPublicKey; -type ConfigPublicKey = { - public_key?: string; -}; -/** @returns {ConfigRes} */ -declare function ConfigRes(): ConfigRes; -type ConfigRes = { - success?: boolean; - aggregator?: string; - config?: ConfigPublicKey; -}; -/** @returns {PlanChangeData} */ -declare function PlanChangeData(): PlanChangeData; -type PlanChangeData = { - total?: number; - credit_note_amount?: number; - taxable_amount?: number; - gst_amount?: number; - gross_total?: number; - gst?: number; -}; -/** @returns {PlanChangeDetails} */ -declare function PlanChangeDetails(): PlanChangeDetails; -type PlanChangeDetails = { - success?: boolean; - data?: PlanChangeData; -}; -/** @returns {PaymentTransactionDetails} */ -declare function PaymentTransactionDetails(): PaymentTransactionDetails; -type PaymentTransactionDetails = { - aggregator?: any; - currency?: string; - current_status?: string; - _id?: string; - subscriber_id?: string; - amount?: number; - entity_type?: string; - collection_type?: string; - meta?: Meta; - created_at?: string; - modified_at?: string; -}; -/** @returns {PaymentItems} */ -declare function PaymentItems(): PaymentItems; -type PaymentItems = { - name?: string; - code?: string; - aggregator?: string; -}; -/** @returns {GetPaymentOptions} */ -declare function GetPaymentOptions(): GetPaymentOptions; -type GetPaymentOptions = { - payment_options?: PaymentItems[]; -}; diff --git a/sdk/platform/Billing/BillingPlatformModel.js b/sdk/platform/Billing/BillingPlatformModel.js index de6605f84..8d18d165f 100644 --- a/sdk/platform/Billing/BillingPlatformModel.js +++ b/sdk/platform/Billing/BillingPlatformModel.js @@ -439,7 +439,7 @@ const Joi = require("joi"); * @property {InvoicesData} [latest_invoice] * @property {Plan} [next_plan] * @property {Subscription[]} [current_subscriptions] - * @property {number} [mandate_amount] + * @property {string} [mandate_amount] */ /** @@ -589,219 +589,6 @@ const Joi = require("joi"); * @property {Details[]} [items] */ -/** - * @typedef PaymentOptions - * @property {string} [_id] - * @property {string} [name] - * @property {string} [description] - * @property {string} [logo] - * @property {string} [aggregator_id] - * @property {string} [aggregator] - * @property {string} [created_at] - * @property {string} [modified_at] - * @property {number} [__v] - */ - -/** - * @typedef VerifyPaymentReq - * @property {string} [razorpay_payment_id] - * @property {string} [razorpay_order_id] - * @property {string} [razorpay_signature] - * @property {number} [status_code] - * @property {string} [provider_type] - */ - -/** - * @typedef Documents - * @property {string} [pan] - */ - -/** - * @typedef BillingAddress - * @property {string} [country] - * @property {string} [state] - * @property {string} [city] - * @property {string} [line1] - * @property {string} [line2] - * @property {string} [postal_code] - * @property {string} [country_code] - */ - -/** - * @typedef Currency - * @property {string} [code] - * @property {string} [symbol] - * @property {string} [name] - */ - -/** - * @typedef BusinessCountryInfo - * @property {string} [country] - * @property {string} [country_code] - * @property {Currency} [currency] - * @property {string} [timezone] - */ - -/** - * @typedef SubscriberData - * @property {boolean} [pg_user_exists] - * @property {string} [id] - * @property {string} [pg_customer_id] - */ - -/** - * @typedef Subscriber - * @property {Documents} [documents] - * @property {Object} [phone] - * @property {BillingAddress} [billing_address] - * @property {boolean} [consent] - * @property {boolean} [comms] - * @property {string} [_id] - * @property {string} [type] - * @property {string} [unique_id] - * @property {string} [name] - * @property {string} [email] - * @property {BusinessCountryInfo} [business_country_info] - * @property {string} [created_at] - * @property {string} [modified_at] - * @property {number} [credit_balance] - * @property {SubscriberData} [data] - */ - -/** - * @typedef Author - * @property {Object} [modified_by_details] - */ - -/** - * @typedef EndingBalance - * @property {number} [amount] - * @property {string} [old_entry_ref] - */ - -/** - * @typedef PaymentData - * @property {string} [transaction_id] - * @property {string} [aggregator] - * @property {string} [aggregator_order_id] - */ - -/** - * @typedef CreditTransaction - * @property {Object} [entity] - * @property {Author} [author] - * @property {string} [_id] - * @property {number} [amount] - * @property {string} [currency] - * @property {string} [subscriber_id] - * @property {string} [description] - * @property {boolean} [is_test] - * @property {EndingBalance} [ending_balance] - * @property {PaymentData} [payment] - * @property {string} [type] - * @property {string} [created_at] - * @property {string} [modified_at] - */ - -/** - * @typedef VerifyPaymentData - * @property {boolean} [success] - * @property {Subscriber} [subscriber] - * @property {CreditTransaction} [credit_transaction] - */ - -/** - * @typedef VerifyPaymentRes - * @property {string} [status] - * @property {VerifyPaymentData} [data] - */ - -/** - * @typedef DefaultMerchants - * @property {string} [stripe] - */ - -/** - * @typedef GlobalSettingsPayment - * @property {DefaultMerchants} [default_merchants] - */ - -/** - * @typedef GlobalSettingsData - * @property {GlobalSettingsPayment} [payment] - * @property {boolean} [freeze_panel] - * @property {string} [_id] - * @property {string} [created_at] - * @property {string} [modified_at] - */ - -/** - * @typedef GlobalSettings - * @property {string} [status] - * @property {GlobalSettingsData} [data] - */ - -/** - * @typedef SubscriptionMethods - * @property {boolean} [success] - * @property {string[]} [data] - */ - -/** - * @typedef ConfigPublicKey - * @property {string} [public_key] - */ - -/** - * @typedef ConfigRes - * @property {boolean} [success] - * @property {string} [aggregator] - * @property {ConfigPublicKey} [config] - */ - -/** - * @typedef PlanChangeData - * @property {number} [total] - * @property {number} [credit_note_amount] - * @property {number} [taxable_amount] - * @property {number} [gst_amount] - * @property {number} [gross_total] - * @property {number} [gst] - */ - -/** - * @typedef PlanChangeDetails - * @property {boolean} [success] - * @property {PlanChangeData} [data] - */ - -/** - * @typedef PaymentTransactionDetails - * @property {Object} [aggregator] - * @property {string} [currency] - * @property {string} [current_status] - * @property {string} [_id] - * @property {string} [subscriber_id] - * @property {number} [amount] - * @property {string} [entity_type] - * @property {string} [collection_type] - * @property {Meta} [meta] - * @property {string} [created_at] - * @property {string} [modified_at] - */ - -/** - * @typedef PaymentItems - * @property {string} [name] - * @property {string} [code] - * @property {string} [aggregator] - */ - -/** - * @typedef GetPaymentOptions - * @property {PaymentItems[]} [payment_options] - */ - class BillingPlatformModel { /** @returns {BadRequest} */ static BadRequest() { @@ -1337,7 +1124,7 @@ class BillingPlatformModel { current_subscriptions: Joi.array().items( BillingPlatformModel.Subscription() ), - mandate_amount: Joi.number(), + mandate_amount: Joi.string().allow(""), }); } @@ -1527,270 +1314,5 @@ class BillingPlatformModel { items: Joi.array().items(BillingPlatformModel.Details()), }); } - - /** @returns {PaymentOptions} */ - static PaymentOptions() { - return Joi.object({ - _id: Joi.string().allow(""), - name: Joi.string().allow(""), - description: Joi.string().allow(""), - logo: Joi.string().allow(""), - aggregator_id: Joi.string().allow(""), - aggregator: Joi.string().allow(""), - created_at: Joi.string().allow(""), - modified_at: Joi.string().allow(""), - __v: Joi.number(), - }); - } - - /** @returns {VerifyPaymentReq} */ - static VerifyPaymentReq() { - return Joi.object({ - razorpay_payment_id: Joi.string().allow(""), - razorpay_order_id: Joi.string().allow(""), - razorpay_signature: Joi.string().allow(""), - status_code: Joi.number(), - provider_type: Joi.string().allow(""), - }); - } - - /** @returns {Documents} */ - static Documents() { - return Joi.object({ - pan: Joi.string().allow(""), - }); - } - - /** @returns {BillingAddress} */ - static BillingAddress() { - return Joi.object({ - country: Joi.string().allow(""), - state: Joi.string().allow(""), - city: Joi.string().allow(""), - line1: Joi.string().allow(""), - line2: Joi.string().allow(""), - postal_code: Joi.string().allow(""), - country_code: Joi.string().allow(""), - }); - } - - /** @returns {Currency} */ - static Currency() { - return Joi.object({ - code: Joi.string().allow(""), - symbol: Joi.string().allow(""), - name: Joi.string().allow(""), - }); - } - - /** @returns {BusinessCountryInfo} */ - static BusinessCountryInfo() { - return Joi.object({ - country: Joi.string().allow(""), - country_code: Joi.string().allow(""), - currency: BillingPlatformModel.Currency(), - timezone: Joi.string().allow(""), - }); - } - - /** @returns {SubscriberData} */ - static SubscriberData() { - return Joi.object({ - pg_user_exists: Joi.boolean(), - id: Joi.string().allow(""), - pg_customer_id: Joi.string().allow(""), - }); - } - - /** @returns {Subscriber} */ - static Subscriber() { - return Joi.object({ - documents: BillingPlatformModel.Documents(), - phone: Joi.any(), - billing_address: BillingPlatformModel.BillingAddress(), - consent: Joi.boolean(), - comms: Joi.boolean(), - _id: Joi.string().allow(""), - type: Joi.string().allow(""), - unique_id: Joi.string().allow(""), - name: Joi.string().allow(""), - email: Joi.string().allow(""), - business_country_info: BillingPlatformModel.BusinessCountryInfo(), - created_at: Joi.string().allow(""), - modified_at: Joi.string().allow(""), - credit_balance: Joi.number(), - data: BillingPlatformModel.SubscriberData(), - }); - } - - /** @returns {Author} */ - static Author() { - return Joi.object({ - modified_by_details: Joi.any(), - }); - } - - /** @returns {EndingBalance} */ - static EndingBalance() { - return Joi.object({ - amount: Joi.number(), - old_entry_ref: Joi.string().allow(""), - }); - } - - /** @returns {PaymentData} */ - static PaymentData() { - return Joi.object({ - transaction_id: Joi.string().allow(""), - aggregator: Joi.string().allow(""), - aggregator_order_id: Joi.string().allow(""), - }); - } - - /** @returns {CreditTransaction} */ - static CreditTransaction() { - return Joi.object({ - entity: Joi.any(), - author: BillingPlatformModel.Author(), - _id: Joi.string().allow(""), - amount: Joi.number(), - currency: Joi.string().allow(""), - subscriber_id: Joi.string().allow(""), - description: Joi.string().allow(""), - is_test: Joi.boolean(), - ending_balance: BillingPlatformModel.EndingBalance(), - payment: BillingPlatformModel.PaymentData(), - type: Joi.string().allow(""), - created_at: Joi.string().allow(""), - modified_at: Joi.string().allow(""), - }); - } - - /** @returns {VerifyPaymentData} */ - static VerifyPaymentData() { - return Joi.object({ - success: Joi.boolean(), - subscriber: BillingPlatformModel.Subscriber(), - credit_transaction: BillingPlatformModel.CreditTransaction(), - }); - } - - /** @returns {VerifyPaymentRes} */ - static VerifyPaymentRes() { - return Joi.object({ - status: Joi.string().allow(""), - data: BillingPlatformModel.VerifyPaymentData(), - }); - } - - /** @returns {DefaultMerchants} */ - static DefaultMerchants() { - return Joi.object({ - stripe: Joi.string().allow(""), - }); - } - - /** @returns {GlobalSettingsPayment} */ - static GlobalSettingsPayment() { - return Joi.object({ - default_merchants: BillingPlatformModel.DefaultMerchants(), - }); - } - - /** @returns {GlobalSettingsData} */ - static GlobalSettingsData() { - return Joi.object({ - payment: BillingPlatformModel.GlobalSettingsPayment(), - freeze_panel: Joi.boolean(), - _id: Joi.string().allow(""), - created_at: Joi.string().allow(""), - modified_at: Joi.string().allow(""), - }); - } - - /** @returns {GlobalSettings} */ - static GlobalSettings() { - return Joi.object({ - status: Joi.string().allow(""), - data: BillingPlatformModel.GlobalSettingsData(), - }); - } - - /** @returns {SubscriptionMethods} */ - static SubscriptionMethods() { - return Joi.object({ - success: Joi.boolean(), - data: Joi.array().items(Joi.string().allow("")), - }); - } - - /** @returns {ConfigPublicKey} */ - static ConfigPublicKey() { - return Joi.object({ - public_key: Joi.string().allow(""), - }); - } - - /** @returns {ConfigRes} */ - static ConfigRes() { - return Joi.object({ - success: Joi.boolean(), - aggregator: Joi.string().allow(""), - config: BillingPlatformModel.ConfigPublicKey(), - }); - } - - /** @returns {PlanChangeData} */ - static PlanChangeData() { - return Joi.object({ - total: Joi.number(), - credit_note_amount: Joi.number(), - taxable_amount: Joi.number(), - gst_amount: Joi.number(), - gross_total: Joi.number(), - gst: Joi.number(), - }); - } - - /** @returns {PlanChangeDetails} */ - static PlanChangeDetails() { - return Joi.object({ - success: Joi.boolean(), - data: BillingPlatformModel.PlanChangeData(), - }); - } - - /** @returns {PaymentTransactionDetails} */ - static PaymentTransactionDetails() { - return Joi.object({ - aggregator: Joi.any(), - currency: Joi.string().allow(""), - current_status: Joi.string().allow(""), - _id: Joi.string().allow(""), - subscriber_id: Joi.string().allow(""), - amount: Joi.number(), - entity_type: Joi.string().allow(""), - collection_type: Joi.string().allow(""), - meta: BillingPlatformModel.Meta(), - created_at: Joi.string().allow(""), - modified_at: Joi.string().allow(""), - }); - } - - /** @returns {PaymentItems} */ - static PaymentItems() { - return Joi.object({ - name: Joi.string().allow(""), - code: Joi.string().allow(""), - aggregator: Joi.string().allow(""), - }); - } - - /** @returns {GetPaymentOptions} */ - static GetPaymentOptions() { - return Joi.object({ - payment_options: Joi.array().items(BillingPlatformModel.PaymentItems()), - }); - } } module.exports = BillingPlatformModel; diff --git a/sdk/platform/Billing/BillingPlatformValidator.d.ts b/sdk/platform/Billing/BillingPlatformValidator.d.ts index 64d950d8c..bc5470fd8 100644 --- a/sdk/platform/Billing/BillingPlatformValidator.d.ts +++ b/sdk/platform/Billing/BillingPlatformValidator.d.ts @@ -44,14 +44,6 @@ export = BillingPlatformValidator; * @property {string} invoiceId - Invoice id */ /** @typedef GetInvoicesParam */ -/** - * @typedef GetPaymentOptionsParam - * @property {string} transactionId - ID of the payment transaction. - */ -/** - * @typedef GetPaymentTransactionParam - * @property {string} transactionId - Payment Transaction unique id. - */ /** @typedef GetSubscriptionParam */ /** * @typedef GetSubscriptionChargeParam @@ -66,16 +58,6 @@ export = BillingPlatformValidator; * @property {string} [component] - The coponents the user would like to know. * @property {string} [componentName] - The name of component the preferred to be fetched. */ -/** - * @typedef GlobalSettingsParam - * @property {number} pageNo - Number of pages needed - * @property {number} pageSize - Number of items to be there in page - * @property {Object} query - Field which will be used in db query - */ -/** - * @typedef PaymentOptionsParam - * @property {string} code - Payment options unique code. - */ /** * @typedef PlanStatusUpdateParam * @property {BillingPlatformModel.PlanStatusUpdateReq} body @@ -84,25 +66,10 @@ export = BillingPlatformValidator; * @typedef SubscripePlanParam * @property {BillingPlatformModel.SunscribePlan} body */ -/** @typedef SubscriptionConfigsParam */ -/** - * @typedef SubscriptionMethodsParam - * @property {Object} uniqueExternalId - Unique id for external company - */ -/** - * @typedef SubscriptionPlanChangeParam - * @property {string} [productSuite] - * @property {number} [uniqueId] - * @property {string} [platform] - */ /** * @typedef UpsertCustomerDetailParam * @property {BillingPlatformModel.SubscriptionCustomerCreate} body */ -/** - * @typedef VerifyPaymentParam - * @property {BillingPlatformModel.VerifyPaymentReq} body - */ declare class BillingPlatformValidator { /** @returns {ActivateSubscriptionPlanParam} */ static activateSubscriptionPlan(): ActivateSubscriptionPlanParam; @@ -128,37 +95,21 @@ declare class BillingPlatformValidator { static getInvoiceById(): GetInvoiceByIdParam; /** @returns {GetInvoicesParam} */ static getInvoices(): any; - /** @returns {GetPaymentOptionsParam} */ - static getPaymentOptions(): GetPaymentOptionsParam; - /** @returns {GetPaymentTransactionParam} */ - static getPaymentTransaction(): GetPaymentTransactionParam; /** @returns {GetSubscriptionParam} */ static getSubscription(): any; /** @returns {GetSubscriptionChargeParam} */ static getSubscriptionCharge(): GetSubscriptionChargeParam; /** @returns {GetentityDetailParam} */ static getentityDetail(): GetentityDetailParam; - /** @returns {GlobalSettingsParam} */ - static globalSettings(): GlobalSettingsParam; - /** @returns {PaymentOptionsParam} */ - static paymentOptions(): PaymentOptionsParam; /** @returns {PlanStatusUpdateParam} */ static planStatusUpdate(): PlanStatusUpdateParam; /** @returns {SubscripePlanParam} */ static subscripePlan(): SubscripePlanParam; - /** @returns {SubscriptionConfigsParam} */ - static subscriptionConfigs(): any; - /** @returns {SubscriptionMethodsParam} */ - static subscriptionMethods(): SubscriptionMethodsParam; - /** @returns {SubscriptionPlanChangeParam} */ - static subscriptionPlanChange(): SubscriptionPlanChangeParam; /** @returns {UpsertCustomerDetailParam} */ static upsertCustomerDetail(): UpsertCustomerDetailParam; - /** @returns {VerifyPaymentParam} */ - static verifyPayment(): VerifyPaymentParam; } declare namespace BillingPlatformValidator { - export { ActivateSubscriptionPlanParam, CancelSubscriptionChargeParam, CancelSubscriptionPlanParam, CheckCouponValidityParam, CreateOneTimeChargeParam, CreateSubscriptionChargeParam, GetChargeDetailsParam, GetCustomerDetailParam, GetEnterprisePlansParam, GetFeatureLimitConfigParam, GetInvoiceByIdParam, GetInvoicesParam, GetPaymentOptionsParam, GetPaymentTransactionParam, GetSubscriptionParam, GetSubscriptionChargeParam, GetentityDetailParam, GlobalSettingsParam, PaymentOptionsParam, PlanStatusUpdateParam, SubscripePlanParam, SubscriptionConfigsParam, SubscriptionMethodsParam, SubscriptionPlanChangeParam, UpsertCustomerDetailParam, VerifyPaymentParam }; + export { ActivateSubscriptionPlanParam, CancelSubscriptionChargeParam, CancelSubscriptionPlanParam, CheckCouponValidityParam, CreateOneTimeChargeParam, CreateSubscriptionChargeParam, GetChargeDetailsParam, GetCustomerDetailParam, GetEnterprisePlansParam, GetFeatureLimitConfigParam, GetInvoiceByIdParam, GetInvoicesParam, GetSubscriptionParam, GetSubscriptionChargeParam, GetentityDetailParam, PlanStatusUpdateParam, SubscripePlanParam, UpsertCustomerDetailParam }; } type ActivateSubscriptionPlanParam = { body: BillingPlatformModel.SubscriptionActivateReq; @@ -220,18 +171,6 @@ type GetInvoiceByIdParam = { */ invoiceId: string; }; -type GetPaymentOptionsParam = { - /** - * - ID of the payment transaction. - */ - transactionId: string; -}; -type GetPaymentTransactionParam = { - /** - * - Payment Transaction unique id. - */ - transactionId: string; -}; type GetSubscriptionChargeParam = { /** * - Extension _id @@ -264,52 +203,17 @@ type GetentityDetailParam = { */ componentName?: string; }; -type GlobalSettingsParam = { - /** - * - Number of pages needed - */ - pageNo: number; - /** - * - Number of items to be there in page - */ - pageSize: number; - /** - * - Field which will be used in db query - */ - query: any; -}; -type PaymentOptionsParam = { - /** - * - Payment options unique code. - */ - code: string; -}; type PlanStatusUpdateParam = { body: BillingPlatformModel.PlanStatusUpdateReq; }; type SubscripePlanParam = { body: BillingPlatformModel.SunscribePlan; }; -type SubscriptionMethodsParam = { - /** - * - Unique id for external company - */ - uniqueExternalId: any; -}; -type SubscriptionPlanChangeParam = { - productSuite?: string; - uniqueId?: number; - platform?: string; -}; type UpsertCustomerDetailParam = { body: BillingPlatformModel.SubscriptionCustomerCreate; }; -type VerifyPaymentParam = { - body: BillingPlatformModel.VerifyPaymentReq; -}; type GetCustomerDetailParam = any; type GetEnterprisePlansParam = any; type GetInvoicesParam = any; type GetSubscriptionParam = any; -type SubscriptionConfigsParam = any; -import BillingPlatformModel = require("sdk/output/javascript/code/sdk/platform/Billing/BillingPlatformModel"); +import BillingPlatformModel = require("./BillingPlatformModel"); diff --git a/sdk/platform/Billing/BillingPlatformValidator.js b/sdk/platform/Billing/BillingPlatformValidator.js index 1da05132c..40ae8de18 100644 --- a/sdk/platform/Billing/BillingPlatformValidator.js +++ b/sdk/platform/Billing/BillingPlatformValidator.js @@ -59,16 +59,6 @@ const BillingPlatformModel = require("./BillingPlatformModel"); /** @typedef GetInvoicesParam */ -/** - * @typedef GetPaymentOptionsParam - * @property {string} transactionId - ID of the payment transaction. - */ - -/** - * @typedef GetPaymentTransactionParam - * @property {string} transactionId - Payment Transaction unique id. - */ - /** @typedef GetSubscriptionParam */ /** @@ -86,18 +76,6 @@ const BillingPlatformModel = require("./BillingPlatformModel"); * @property {string} [componentName] - The name of component the preferred to be fetched. */ -/** - * @typedef GlobalSettingsParam - * @property {number} pageNo - Number of pages needed - * @property {number} pageSize - Number of items to be there in page - * @property {Object} query - Field which will be used in db query - */ - -/** - * @typedef PaymentOptionsParam - * @property {string} code - Payment options unique code. - */ - /** * @typedef PlanStatusUpdateParam * @property {BillingPlatformModel.PlanStatusUpdateReq} body @@ -108,30 +86,11 @@ const BillingPlatformModel = require("./BillingPlatformModel"); * @property {BillingPlatformModel.SunscribePlan} body */ -/** @typedef SubscriptionConfigsParam */ - -/** - * @typedef SubscriptionMethodsParam - * @property {Object} uniqueExternalId - Unique id for external company - */ - -/** - * @typedef SubscriptionPlanChangeParam - * @property {string} [productSuite] - * @property {number} [uniqueId] - * @property {string} [platform] - */ - /** * @typedef UpsertCustomerDetailParam * @property {BillingPlatformModel.SubscriptionCustomerCreate} body */ -/** - * @typedef VerifyPaymentParam - * @property {BillingPlatformModel.VerifyPaymentReq} body - */ - class BillingPlatformValidator { /** @returns {ActivateSubscriptionPlanParam} */ static activateSubscriptionPlan() { @@ -217,20 +176,6 @@ class BillingPlatformValidator { return Joi.object({}).required(); } - /** @returns {GetPaymentOptionsParam} */ - static getPaymentOptions() { - return Joi.object({ - transactionId: Joi.string().allow("").required(), - }).required(); - } - - /** @returns {GetPaymentTransactionParam} */ - static getPaymentTransaction() { - return Joi.object({ - transactionId: Joi.string().allow("").required(), - }).required(); - } - /** @returns {GetSubscriptionParam} */ static getSubscription() { return Joi.object({}).required(); @@ -255,22 +200,6 @@ class BillingPlatformValidator { }).required(); } - /** @returns {GlobalSettingsParam} */ - static globalSettings() { - return Joi.object({ - pageNo: Joi.number().required(), - pageSize: Joi.number().required(), - query: Joi.any().required(), - }).required(); - } - - /** @returns {PaymentOptionsParam} */ - static paymentOptions() { - return Joi.object({ - code: Joi.string().allow("").required(), - }).required(); - } - /** @returns {PlanStatusUpdateParam} */ static planStatusUpdate() { return Joi.object({ @@ -285,40 +214,12 @@ class BillingPlatformValidator { }).required(); } - /** @returns {SubscriptionConfigsParam} */ - static subscriptionConfigs() { - return Joi.object({}).required(); - } - - /** @returns {SubscriptionMethodsParam} */ - static subscriptionMethods() { - return Joi.object({ - uniqueExternalId: Joi.any().required(), - }).required(); - } - - /** @returns {SubscriptionPlanChangeParam} */ - static subscriptionPlanChange() { - return Joi.object({ - productSuite: Joi.string().allow(""), - uniqueId: Joi.number(), - platform: Joi.string().allow(""), - }).required(); - } - /** @returns {UpsertCustomerDetailParam} */ static upsertCustomerDetail() { return Joi.object({ body: BillingPlatformModel.SubscriptionCustomerCreate().required(), }).required(); } - - /** @returns {VerifyPaymentParam} */ - static verifyPayment() { - return Joi.object({ - body: BillingPlatformModel.VerifyPaymentReq().required(), - }).required(); - } } module.exports = BillingPlatformValidator; diff --git a/sdk/platform/Cart/CartPlatformApplicationClient.d.ts b/sdk/platform/Cart/CartPlatformApplicationClient.d.ts index 14597357d..08f5c5681 100644 --- a/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +++ b/sdk/platform/Cart/CartPlatformApplicationClient.d.ts @@ -73,13 +73,12 @@ declare class Cart { * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response + * @returns {Promise} - Success response * @name createCartMetaConfig * @summary: Create new cart meta configuration * @description: Create new cart meta configuration - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/createCartMetaConfig/). */ - createCartMetaConfig({ body, requestHeaders }?: CartPlatformApplicationValidator.CreateCartMetaConfigParam, { responseHeaders }?: object): Promise; + createCartMetaConfig({ body, requestHeaders }?: CartPlatformApplicationValidator.CreateCartMetaConfigParam, { responseHeaders }?: object): Promise; /** * @param {CartPlatformApplicationValidator.CreateCouponParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -109,19 +108,7 @@ declare class Cart { * @summary: Delete cart once user made successful checkout * @description: Use this API to delete the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/deleteCart/). */ - deleteCart({ body, id, cartType, requestHeaders }?: CartPlatformApplicationValidator.DeleteCartParam, { responseHeaders }?: object): Promise; - /** - * @param {CartPlatformApplicationValidator.DeleteCartMetaConfigParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name deleteCartMetaConfig - * @summary: Delete cart meta configuration - * @description: Delete cart meta configuration - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/deleteCartMetaConfig/). - */ - deleteCartMetaConfig({ cartMetaId, requestHeaders }?: CartPlatformApplicationValidator.DeleteCartMetaConfigParam, { responseHeaders }?: object): Promise; + deleteCart({ body, id, requestHeaders }?: CartPlatformApplicationValidator.DeleteCartParam, { responseHeaders }?: object): Promise; /** * @param {CartPlatformApplicationValidator.FetchAndvalidateCartItemsParam} arg * - Arg object @@ -134,6 +121,16 @@ declare class Cart { * @description: Get all the details of cart for a list of provided `cart_items` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/fetchAndvalidateCartItems/). */ fetchAndvalidateCartItems({ body, requestHeaders }?: CartPlatformApplicationValidator.FetchAndvalidateCartItemsParam, { responseHeaders }?: object): Promise; + /** + * @param {CartPlatformApplicationValidator.FetchCartMetaConfigParam} arg - Arg object + * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` + * @param {import("../PlatformAPIClient").Options} - Options + * @returns {Promise} - Success response + * @name fetchCartMetaConfig + * @summary: Fetch cart meta configuration + * @description: Fetch cart meta configuration - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/fetchCartMetaConfig/). + */ + fetchCartMetaConfig({ requestHeaders }?: any, { responseHeaders }?: object): Promise; /** * @param {CartPlatformApplicationValidator.GetAbandonedCartParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -232,7 +229,7 @@ declare class Cart { * @summary: Fetch all items added to the customer cart using cart id * @description: Use this API to get details of all the items added to a cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getCart/). */ - getCart({ id, userId, i, b, assignCardId, buyNow, cartType, requestHeaders }?: CartPlatformApplicationValidator.GetCartParam, { responseHeaders }?: object): Promise; + getCart({ id, userId, i, b, assignCardId, buyNow, requestHeaders }?: CartPlatformApplicationValidator.GetCartParam, { responseHeaders }?: object): Promise; /** * @param {CartPlatformApplicationValidator.GetCartListParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -243,27 +240,6 @@ declare class Cart { * @description: Get all carts for the store os user which is created for customer - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getCartList/). */ getCartList({ fromDate, toDate, filterOn, requestHeaders }?: CartPlatformApplicationValidator.GetCartListParam, { responseHeaders }?: object): Promise; - /** - * @param {CartPlatformApplicationValidator.GetCartMetaConfigParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name getCartMetaConfig - * @summary: Get cart meta configuration by id - * @description: Get cart meta configuration by id - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getCartMetaConfig/). - */ - getCartMetaConfig({ cartMetaId, requestHeaders }?: CartPlatformApplicationValidator.GetCartMetaConfigParam, { responseHeaders }?: object): Promise; - /** - * @param {CartPlatformApplicationValidator.GetCartMetaConfigsParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getCartMetaConfigs - * @summary: Get cart meta configuration - * @description: Get cart meta configuration - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getCartMetaConfigs/). - */ - getCartMetaConfigs({ requestHeaders }?: any, { responseHeaders }?: object): Promise; /** * @param {CartPlatformApplicationValidator.GetCartShareLinkParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -316,16 +292,6 @@ declare class Cart { * @description: Get coupon enum values for fields in valid coupon object. Used for front end to create, update and filter coupon lists via fields - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getCouponOptionValues/). */ getCouponOptionValues({ requestHeaders }?: any, { responseHeaders }?: object): Promise; - /** - * @param {CartPlatformApplicationValidator.GetCouponTagsParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getCouponTags - * @summary: Get a list of all coupon tags associated with a application. - * @description: This API helps to get coupon tags data associated to a particular application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getCouponTags/). - */ - getCouponTags({ requestHeaders }?: any, { responseHeaders }?: object): Promise; /** * @param {CartPlatformApplicationValidator.GetCouponsParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -371,17 +337,7 @@ declare class Cart { * @summary: Count items in the customer's cart * @description: Use this API to get the total number of items present in cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getItemCount/). */ - getItemCount({ id, buyNow, cartType, requestHeaders }?: CartPlatformApplicationValidator.GetItemCountParam, { responseHeaders }?: object): Promise; - /** - * @param {CartPlatformApplicationValidator.GetPriceAdjustmentsParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getPriceAdjustments - * @summary: Get a list of all price adjustments associated with a cart - * @description: This API helps to get price adjustments data associated to a particular cart - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getPriceAdjustments/). - */ - getPriceAdjustments({ cartId, requestHeaders }?: CartPlatformApplicationValidator.GetPriceAdjustmentsParam, { responseHeaders }?: object): Promise; + getItemCount({ id, buyNow, requestHeaders }?: CartPlatformApplicationValidator.GetItemCountParam, { responseHeaders }?: object): Promise; /** * @param {CartPlatformApplicationValidator.GetPromosCouponConfigParam} arg * - Arg object @@ -416,16 +372,6 @@ declare class Cart { * @description: Check if sent promotion code is already existing promotion code. As promotion code is to be unique. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getPromotionCodeExists/). */ getPromotionCodeExists({ code, requestHeaders }?: CartPlatformApplicationValidator.GetPromotionCodeExistsParam, { responseHeaders }?: object): Promise; - /** - * @param {CartPlatformApplicationValidator.GetPromotionTagsParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getPromotionTags - * @summary: Get a list of all Promotion tags associated with a application. - * @description: This API helps to get Promotion tags data associated to a particular application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getPromotionTags/). - */ - getPromotionTags({ requestHeaders }?: any, { responseHeaders }?: object): Promise; /** * @param {CartPlatformApplicationValidator.GetPromotionsParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -504,7 +450,7 @@ declare class Cart { * @summary: Add items to cart * @description: Use this API to add items to the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/platformAddItems/). */ - platformAddItems({ body, i, b, buyNow, id, cartType, requestHeaders }?: CartPlatformApplicationValidator.PlatformAddItemsParam, { responseHeaders }?: object): Promise; + platformAddItems({ body, i, b, buyNow, id, requestHeaders }?: CartPlatformApplicationValidator.PlatformAddItemsParam, { responseHeaders }?: object): Promise; /** * @param {CartPlatformApplicationValidator.PlatformCheckoutCartParam} arg * - Arg object @@ -516,7 +462,7 @@ declare class Cart { * @summary: Checkout all items in the cart * @description: Use this API to checkout all items in the cart for payment and order generation. For COD, order will be generated directly, whereas for other checkout modes, user will be redirected to a payment gateway. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/platformCheckoutCart/). */ - platformCheckoutCart({ body, id, cartType, requestHeaders }?: CartPlatformApplicationValidator.PlatformCheckoutCartParam, { responseHeaders }?: object): Promise; + platformCheckoutCart({ body, id, requestHeaders }?: CartPlatformApplicationValidator.PlatformCheckoutCartParam, { responseHeaders }?: object): Promise; /** * @param {CartPlatformApplicationValidator.PlatformCheckoutCartV2Param} arg * - Arg object @@ -528,7 +474,7 @@ declare class Cart { * @summary: Checkout all items in the cart * @description: Use this API to checkout all items in the cart for payment and order generation. For COD, order will be directly generated, whereas for other checkout modes, user will be redirected to a payment gateway. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/platformCheckoutCartV2/). */ - platformCheckoutCartV2({ body, id, cartType, requestHeaders }?: CartPlatformApplicationValidator.PlatformCheckoutCartV2Param, { responseHeaders }?: object): Promise; + platformCheckoutCartV2({ body, id, requestHeaders }?: CartPlatformApplicationValidator.PlatformCheckoutCartV2Param, { responseHeaders }?: object): Promise; /** * @param {CartPlatformApplicationValidator.PlatformUpdateCartParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -538,7 +484,7 @@ declare class Cart { * @summary: Update items in the customer 's cart using cart id * @description: Use this API to update items added to the cart with the help of a request object containing attributes like item_quantity and item_size. These attributes will be fetched from the following APIs operation Operation for current api call. update_item for update items. remove_item for removing items.item_id "/platform/content/v1/products/" item_size "/platform/content/v1/products/:slug/sizes/" quantity item quantity (must be greater than or equal to 1) article_id "/content​/v1​/products​/:identifier​/sizes​/price​/" item_index item position in the cart (must be greater than or equal to 0) - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/platformUpdateCart/). */ - platformUpdateCart({ body, id, i, b, buyNow, cartType, requestHeaders }?: CartPlatformApplicationValidator.PlatformUpdateCartParam, { responseHeaders }?: object): Promise; + platformUpdateCart({ body, id, i, b, buyNow, requestHeaders }?: CartPlatformApplicationValidator.PlatformUpdateCartParam, { responseHeaders }?: object): Promise; /** * @param {CartPlatformApplicationValidator.RemoveAddressParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -601,19 +547,6 @@ declare class Cart { * @description: Use this API to update cart payment. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/selectPaymentModeV2/). */ selectPaymentModeV2({ body, id, buyNow, orderType, requestHeaders }?: CartPlatformApplicationValidator.SelectPaymentModeV2Param, { responseHeaders }?: object): Promise; - /** - * @param {CartPlatformApplicationValidator.UpateCartMetaActiveStatusParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name upateCartMetaActiveStatus - * @summary: Update cart meta configuration - * @description: Update cart meta configuration - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/upateCartMetaActiveStatus/). - */ - upateCartMetaActiveStatus({ cartMetaId, body, requestHeaders }?: CartPlatformApplicationValidator.UpateCartMetaActiveStatusParam, { responseHeaders }?: object): Promise; /** * @param {CartPlatformApplicationValidator.UpdateAddressParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -650,13 +583,12 @@ declare class Cart { * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response + * @returns {Promise} - Success response * @name updateCartMetaConfig * @summary: Update cart meta configuration * @description: Update cart meta configuration - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/updateCartMetaConfig/). */ - updateCartMetaConfig({ cartMetaId, body, requestHeaders }?: CartPlatformApplicationValidator.UpdateCartMetaConfigParam, { responseHeaders }?: object): Promise; + updateCartMetaConfig({ cartMetaId, body, requestHeaders }?: CartPlatformApplicationValidator.UpdateCartMetaConfigParam, { responseHeaders }?: object): Promise; /** * @param {CartPlatformApplicationValidator.UpdateCartUserParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -759,6 +691,6 @@ declare class Cart { */ validateCouponForPayment({ id, buyNow, addressId, paymentMode, paymentIdentifier, aggregatorName, merchantCode, requestHeaders, }?: CartPlatformApplicationValidator.ValidateCouponForPaymentParam, { responseHeaders }?: object): Promise; } -import CartPlatformApplicationValidator = require("sdk/output/javascript/code/sdk/platform/Cart/CartPlatformApplicationValidator"); -import CartPlatformModel = require("sdk/output/javascript/code/sdk/platform/Cart/CartPlatformModel"); -import Paginator = require("sdk/output/javascript/code/sdk/common/Paginator"); +import CartPlatformApplicationValidator = require("./CartPlatformApplicationValidator"); +import CartPlatformModel = require("./CartPlatformModel"); +import Paginator = require("../../common/Paginator"); diff --git a/sdk/platform/Cart/CartPlatformApplicationClient.js b/sdk/platform/Cart/CartPlatformApplicationClient.js index 9f1446bc2..678cfbfde 100644 --- a/sdk/platform/Cart/CartPlatformApplicationClient.js +++ b/sdk/platform/Cart/CartPlatformApplicationClient.js @@ -511,8 +511,7 @@ class Cart { * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response + * @returns {Promise} - Success response * @name createCartMetaConfig * @summary: Create new cart meta configuration * @description: Create new cart meta configuration - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/createCartMetaConfig/). @@ -568,10 +567,10 @@ class Cart { const { error: res_error, - } = CartPlatformModel.CartMetaConfigDetailResponse().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); + } = CartPlatformModel.CartMetaConfigAdd().validate(responseData, { + abortEarly: false, + allowUnknown: true, + }); if (res_error) { if (this.config.options.strictResponseCheck === true) { @@ -753,14 +752,13 @@ class Cart { * @description: Use this API to delete the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/deleteCart/). */ async deleteCart( - { body, id, cartType, requestHeaders } = { requestHeaders: {} }, + { body, id, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error } = CartPlatformApplicationValidator.deleteCart().validate( { body, id, - cartType, }, { abortEarly: false, allowUnknown: true } ); @@ -775,7 +773,6 @@ class Cart { { body, id, - cartType, }, { abortEarly: false, allowUnknown: false } ); @@ -788,7 +785,6 @@ class Cart { const query_params = {}; query_params["id"] = id; - query_params["cart_type"] = cartType; const response = await PlatformAPIClient.execute( this.config, @@ -827,25 +823,25 @@ class Cart { } /** - * @param {CartPlatformApplicationValidator.DeleteCartMetaConfigParam} arg + * @param {CartPlatformApplicationValidator.FetchAndvalidateCartItemsParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name deleteCartMetaConfig - * @summary: Delete cart meta configuration - * @description: Delete cart meta configuration - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/deleteCartMetaConfig/). + * @returns {Promise} - Success response + * @name fetchAndvalidateCartItems + * @summary: Fetch Cart Details + * @description: Get all the details of cart for a list of provided `cart_items` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/fetchAndvalidateCartItems/). */ - async deleteCartMetaConfig( - { cartMetaId, requestHeaders } = { requestHeaders: {} }, + async fetchAndvalidateCartItems( + { body, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CartPlatformApplicationValidator.deleteCartMetaConfig().validate( + } = CartPlatformApplicationValidator.fetchAndvalidateCartItems().validate( { - cartMetaId, + body, }, { abortEarly: false, allowUnknown: true } ); @@ -856,16 +852,16 @@ class Cart { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CartPlatformApplicationValidator.deleteCartMetaConfig().validate( + } = CartPlatformApplicationValidator.fetchAndvalidateCartItems().validate( { - cartMetaId, + body, }, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Cart > deleteCartMetaConfig \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Cart > fetchAndvalidateCartItems \n ${warrning}`, }); } @@ -873,10 +869,10 @@ class Cart { const response = await PlatformAPIClient.execute( this.config, - "delete", - `/service/platform/cart/v1.0/company/${this.config.companyId}/application/${this.applicationId}/cart_configuration/${cartMetaId}`, + "post", + `/service/platform/cart/v1.0/company/${this.config.companyId}/application/${this.applicationId}/cart/validate`, query_params, - undefined, + body, requestHeaders, { responseHeaders } ); @@ -888,7 +884,7 @@ class Cart { const { error: res_error, - } = CartPlatformModel.SuccessMessage().validate(responseData, { + } = CartPlatformModel.OpenapiCartDetailsResponse().validate(responseData, { abortEarly: false, allowUnknown: true, }); @@ -899,7 +895,7 @@ class Cart { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Cart > deleteCartMetaConfig \n ${res_error}`, + message: `Response Validation Warnings for platform > Cart > fetchAndvalidateCartItems \n ${res_error}`, }); } } @@ -908,26 +904,22 @@ class Cart { } /** - * @param {CartPlatformApplicationValidator.FetchAndvalidateCartItemsParam} arg - * - Arg object - * + * @param {CartPlatformApplicationValidator.FetchCartMetaConfigParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name fetchAndvalidateCartItems - * @summary: Fetch Cart Details - * @description: Get all the details of cart for a list of provided `cart_items` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/fetchAndvalidateCartItems/). + * @returns {Promise} - Success response + * @name fetchCartMetaConfig + * @summary: Fetch cart meta configuration + * @description: Fetch cart meta configuration - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/fetchCartMetaConfig/). */ - async fetchAndvalidateCartItems( - { body, requestHeaders } = { requestHeaders: {} }, + async fetchCartMetaConfig( + { requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CartPlatformApplicationValidator.fetchAndvalidateCartItems().validate( - { - body, - }, + } = CartPlatformApplicationValidator.fetchCartMetaConfig().validate( + {}, { abortEarly: false, allowUnknown: true } ); if (error) { @@ -937,16 +929,14 @@ class Cart { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CartPlatformApplicationValidator.fetchAndvalidateCartItems().validate( - { - body, - }, + } = CartPlatformApplicationValidator.fetchCartMetaConfig().validate( + {}, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Cart > fetchAndvalidateCartItems \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Cart > fetchCartMetaConfig \n ${warrning}`, }); } @@ -954,10 +944,10 @@ class Cart { const response = await PlatformAPIClient.execute( this.config, - "post", - `/service/platform/cart/v1.0/company/${this.config.companyId}/application/${this.applicationId}/cart/validate`, + "get", + `/service/platform/cart/v1.0/company/${this.config.companyId}/application/${this.applicationId}/cart_configuration`, query_params, - body, + undefined, requestHeaders, { responseHeaders } ); @@ -969,7 +959,7 @@ class Cart { const { error: res_error, - } = CartPlatformModel.OpenapiCartDetailsResponse().validate(responseData, { + } = CartPlatformModel.CartMetaConfigAdd().validate(responseData, { abortEarly: false, allowUnknown: true, }); @@ -980,7 +970,7 @@ class Cart { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Cart > fetchAndvalidateCartItems \n ${res_error}`, + message: `Response Validation Warnings for platform > Cart > fetchCartMetaConfig \n ${res_error}`, }); } } @@ -1634,7 +1624,7 @@ class Cart { * @description: Use this API to get details of all the items added to a cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getCart/). */ async getCart( - { id, userId, i, b, assignCardId, buyNow, cartType, requestHeaders } = { + { id, userId, i, b, assignCardId, buyNow, requestHeaders } = { requestHeaders: {}, }, { responseHeaders } = { responseHeaders: false } @@ -1647,7 +1637,6 @@ class Cart { b, assignCardId, buyNow, - cartType, }, { abortEarly: false, allowUnknown: true } ); @@ -1666,7 +1655,6 @@ class Cart { b, assignCardId, buyNow, - cartType, }, { abortEarly: false, allowUnknown: false } ); @@ -1684,7 +1672,6 @@ class Cart { query_params["b"] = b; query_params["assign_card_id"] = assignCardId; query_params["buy_now"] = buyNow; - query_params["cart_type"] = cartType; const response = await PlatformAPIClient.execute( this.config, @@ -1806,161 +1793,6 @@ class Cart { return response; } - /** - * @param {CartPlatformApplicationValidator.GetCartMetaConfigParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name getCartMetaConfig - * @summary: Get cart meta configuration by id - * @description: Get cart meta configuration by id - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getCartMetaConfig/). - */ - async getCartMetaConfig( - { cartMetaId, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = CartPlatformApplicationValidator.getCartMetaConfig().validate( - { - cartMetaId, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = CartPlatformApplicationValidator.getCartMetaConfig().validate( - { - cartMetaId, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Cart > getCartMetaConfig \n ${warrning}`, - }); - } - - const query_params = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/cart/v1.0/company/${this.config.companyId}/application/${this.applicationId}/cart_configuration/${cartMetaId}`, - query_params, - undefined, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = CartPlatformModel.CartMetaConfigDetailResponse().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Cart > getCartMetaConfig \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {CartPlatformApplicationValidator.GetCartMetaConfigsParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getCartMetaConfigs - * @summary: Get cart meta configuration - * @description: Get cart meta configuration - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getCartMetaConfigs/). - */ - async getCartMetaConfigs( - { requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = CartPlatformApplicationValidator.getCartMetaConfigs().validate( - {}, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = CartPlatformApplicationValidator.getCartMetaConfigs().validate( - {}, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Cart > getCartMetaConfigs \n ${warrning}`, - }); - } - - const query_params = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/cart/v1.0/company/${this.config.companyId}/application/${this.applicationId}/cart_configuration`, - query_params, - undefined, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = CartPlatformModel.CartMetaConfigListResponse().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Cart > getCartMetaConfigs \n ${res_error}`, - }); - } - } - - return response; - } - /** * @param {CartPlatformApplicationValidator.GetCartShareLinkParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -2349,79 +2181,6 @@ class Cart { return response; } - /** - * @param {CartPlatformApplicationValidator.GetCouponTagsParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getCouponTags - * @summary: Get a list of all coupon tags associated with a application. - * @description: This API helps to get coupon tags data associated to a particular application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getCouponTags/). - */ - async getCouponTags( - { requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { error } = CartPlatformApplicationValidator.getCouponTags().validate( - {}, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = CartPlatformApplicationValidator.getCouponTags().validate( - {}, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Cart > getCouponTags \n ${warrning}`, - }); - } - - const query_params = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/cart/v1.0/company/${this.config.companyId}/application/${this.applicationId}/coupon-tags`, - query_params, - undefined, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = CartPlatformModel.TagsViewResponse().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Cart > getCouponTags \n ${res_error}`, - }); - } - } - - return response; - } - /** * @param {CartPlatformApplicationValidator.GetCouponsParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -2594,14 +2353,13 @@ class Cart { * @description: Use this API to get the total number of items present in cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getItemCount/). */ async getItemCount( - { id, buyNow, cartType, requestHeaders } = { requestHeaders: {} }, + { id, buyNow, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error } = CartPlatformApplicationValidator.getItemCount().validate( { id, buyNow, - cartType, }, { abortEarly: false, allowUnknown: true } ); @@ -2616,7 +2374,6 @@ class Cart { { id, buyNow, - cartType, }, { abortEarly: false, allowUnknown: false } ); @@ -2630,7 +2387,6 @@ class Cart { const query_params = {}; query_params["id"] = id; query_params["buy_now"] = buyNow; - query_params["cart_type"] = cartType; const response = await PlatformAPIClient.execute( this.config, @@ -2668,86 +2424,6 @@ class Cart { return response; } - /** - * @param {CartPlatformApplicationValidator.GetPriceAdjustmentsParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getPriceAdjustments - * @summary: Get a list of all price adjustments associated with a cart - * @description: This API helps to get price adjustments data associated to a particular cart - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getPriceAdjustments/). - */ - async getPriceAdjustments( - { cartId, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = CartPlatformApplicationValidator.getPriceAdjustments().validate( - { - cartId, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = CartPlatformApplicationValidator.getPriceAdjustments().validate( - { - cartId, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Cart > getPriceAdjustments \n ${warrning}`, - }); - } - - const query_params = {}; - query_params["cart_id"] = cartId; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/cart/v1.0/company/${this.config.companyId}/application/${this.applicationId}/price-adjustment`, - query_params, - undefined, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = CartPlatformModel.PriceAdjustmentResponse().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Cart > getPriceAdjustments \n ${res_error}`, - }); - } - } - - return response; - } - /** * @param {CartPlatformApplicationValidator.GetPromosCouponConfigParam} arg * - Arg object @@ -2992,81 +2668,6 @@ class Cart { return response; } - /** - * @param {CartPlatformApplicationValidator.GetPromotionTagsParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getPromotionTags - * @summary: Get a list of all Promotion tags associated with a application. - * @description: This API helps to get Promotion tags data associated to a particular application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getPromotionTags/). - */ - async getPromotionTags( - { requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = CartPlatformApplicationValidator.getPromotionTags().validate( - {}, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = CartPlatformApplicationValidator.getPromotionTags().validate( - {}, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Cart > getPromotionTags \n ${warrning}`, - }); - } - - const query_params = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/cart/v1.0/company/${this.config.companyId}/application/${this.applicationId}/promo-tags`, - query_params, - undefined, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = CartPlatformModel.TagsViewResponse().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Cart > getPromotionTags \n ${res_error}`, - }); - } - } - - return response; - } - /** * @param {CartPlatformApplicationValidator.GetPromotionsParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -3508,9 +3109,7 @@ class Cart { * @description: Use this API to add items to the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/platformAddItems/). */ async platformAddItems( - { body, i, b, buyNow, id, cartType, requestHeaders } = { - requestHeaders: {}, - }, + { body, i, b, buyNow, id, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { @@ -3522,7 +3121,6 @@ class Cart { b, buyNow, id, - cartType, }, { abortEarly: false, allowUnknown: true } ); @@ -3540,7 +3138,6 @@ class Cart { b, buyNow, id, - cartType, }, { abortEarly: false, allowUnknown: false } ); @@ -3556,7 +3153,6 @@ class Cart { query_params["b"] = b; query_params["buy_now"] = buyNow; query_params["id"] = id; - query_params["cart_type"] = cartType; const response = await PlatformAPIClient.execute( this.config, @@ -3606,7 +3202,7 @@ class Cart { * @description: Use this API to checkout all items in the cart for payment and order generation. For COD, order will be generated directly, whereas for other checkout modes, user will be redirected to a payment gateway. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/platformCheckoutCart/). */ async platformCheckoutCart( - { body, id, cartType, requestHeaders } = { requestHeaders: {} }, + { body, id, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { @@ -3615,7 +3211,6 @@ class Cart { { body, id, - cartType, }, { abortEarly: false, allowUnknown: true } ); @@ -3630,7 +3225,6 @@ class Cart { { body, id, - cartType, }, { abortEarly: false, allowUnknown: false } ); @@ -3643,7 +3237,6 @@ class Cart { const query_params = {}; query_params["id"] = id; - query_params["cart_type"] = cartType; const response = await PlatformAPIClient.execute( this.config, @@ -3693,7 +3286,7 @@ class Cart { * @description: Use this API to checkout all items in the cart for payment and order generation. For COD, order will be directly generated, whereas for other checkout modes, user will be redirected to a payment gateway. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/platformCheckoutCartV2/). */ async platformCheckoutCartV2( - { body, id, cartType, requestHeaders } = { requestHeaders: {} }, + { body, id, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { @@ -3702,7 +3295,6 @@ class Cart { { body, id, - cartType, }, { abortEarly: false, allowUnknown: true } ); @@ -3717,7 +3309,6 @@ class Cart { { body, id, - cartType, }, { abortEarly: false, allowUnknown: false } ); @@ -3730,7 +3321,6 @@ class Cart { const query_params = {}; query_params["id"] = id; - query_params["cart_type"] = cartType; const response = await PlatformAPIClient.execute( this.config, @@ -3778,9 +3368,7 @@ class Cart { * @description: Use this API to update items added to the cart with the help of a request object containing attributes like item_quantity and item_size. These attributes will be fetched from the following APIs operation Operation for current api call. update_item for update items. remove_item for removing items.item_id "/platform/content/v1/products/" item_size "/platform/content/v1/products/:slug/sizes/" quantity item quantity (must be greater than or equal to 1) article_id "/content​/v1​/products​/:identifier​/sizes​/price​/" item_index item position in the cart (must be greater than or equal to 0) - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/platformUpdateCart/). */ async platformUpdateCart( - { body, id, i, b, buyNow, cartType, requestHeaders } = { - requestHeaders: {}, - }, + { body, id, i, b, buyNow, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { @@ -3792,7 +3380,6 @@ class Cart { i, b, buyNow, - cartType, }, { abortEarly: false, allowUnknown: true } ); @@ -3810,7 +3397,6 @@ class Cart { i, b, buyNow, - cartType, }, { abortEarly: false, allowUnknown: false } ); @@ -3826,7 +3412,6 @@ class Cart { query_params["i"] = i; query_params["b"] = b; query_params["buy_now"] = buyNow; - query_params["cart_type"] = cartType; const response = await PlatformAPIClient.execute( this.config, @@ -4371,90 +3956,6 @@ class Cart { return response; } - /** - * @param {CartPlatformApplicationValidator.UpateCartMetaActiveStatusParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name upateCartMetaActiveStatus - * @summary: Update cart meta configuration - * @description: Update cart meta configuration - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/upateCartMetaActiveStatus/). - */ - async upateCartMetaActiveStatus( - { cartMetaId, body, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = CartPlatformApplicationValidator.upateCartMetaActiveStatus().validate( - { - cartMetaId, - body, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = CartPlatformApplicationValidator.upateCartMetaActiveStatus().validate( - { - cartMetaId, - body, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Cart > upateCartMetaActiveStatus \n ${warrning}`, - }); - } - - const query_params = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "patch", - `/service/platform/cart/v1.0/company/${this.config.companyId}/application/${this.applicationId}/cart_configuration/${cartMetaId}`, - query_params, - body, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = CartPlatformModel.CartMetaConfigDetailResponse().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Cart > upateCartMetaActiveStatus \n ${res_error}`, - }); - } - } - - return response; - } - /** * @param {CartPlatformApplicationValidator.UpdateAddressParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -4707,8 +4208,7 @@ class Cart { * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response + * @returns {Promise} - Success response * @name updateCartMetaConfig * @summary: Update cart meta configuration * @description: Update cart meta configuration - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/updateCartMetaConfig/). @@ -4766,10 +4266,10 @@ class Cart { const { error: res_error, - } = CartPlatformModel.CartMetaConfigDetailResponse().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); + } = CartPlatformModel.CartMetaConfigUpdate().validate(responseData, { + abortEarly: false, + allowUnknown: true, + }); if (res_error) { if (this.config.options.strictResponseCheck === true) { diff --git a/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts b/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts index 7df0ccfcd..7fc7b8e1b 100644 --- a/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +++ b/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts @@ -45,18 +45,13 @@ export = CartPlatformApplicationValidator; /** * @typedef DeleteCartParam * @property {string} [id] - The unique identifier of the cart. - * @property {string} [cartType] - The type of cart * @property {CartPlatformModel.DeleteCartRequest} body */ -/** - * @typedef DeleteCartMetaConfigParam - * @property {string} cartMetaId - CartMeta mongo _id for fetching single cart - * meta data for editing - */ /** * @typedef FetchAndvalidateCartItemsParam * @property {CartPlatformModel.OpenapiCartDetailsRequest} body */ +/** @typedef FetchCartMetaConfigParam */ /** * @typedef GetAbandonedCartParam * @property {number} [pageNo] @@ -109,16 +104,12 @@ export = CartPlatformApplicationValidator; */ /** * @typedef GetCartParam - * @property {string} [id] - The unique identifier of the cart - * @property {string} [userId] - Option to fetch cart for the provided user_id. - * @property {boolean} [i] - This is a boolean value. Select `true` to retrieve - * all the items added in the cart. - * @property {boolean} [b] - This is a boolean value. Select `true` to retrieve - * the price breakup of cart items. - * @property {number} [assignCardId] - Token of user's debit or credit card - * @property {boolean} [buyNow] - This is a boolen value. Select `true` to - * set/initialize buy now cart - * @property {string} [cartType] - The type of cart + * @property {string} [id] + * @property {string} [userId] + * @property {boolean} [i] + * @property {boolean} [b] + * @property {number} [assignCardId] + * @property {boolean} [buyNow] */ /** * @typedef GetCartListParam @@ -126,12 +117,6 @@ export = CartPlatformApplicationValidator; * @property {string} [toDate] * @property {string} [filterOn] */ -/** - * @typedef GetCartMetaConfigParam - * @property {string} cartMetaId - CartMeta mongo _id for fetching single cart - * meta data for editing - */ -/** @typedef GetCartMetaConfigsParam */ /** * @typedef GetCartShareLinkParam * @property {CartPlatformModel.GetShareCartLinkRequest} body @@ -149,7 +134,6 @@ export = CartPlatformApplicationValidator; * @property {string} [code] */ /** @typedef GetCouponOptionValuesParam */ -/** @typedef GetCouponTagsParam */ /** * @typedef GetCouponsParam * @property {number} [pageNo] @@ -164,12 +148,7 @@ export = CartPlatformApplicationValidator; /** * @typedef GetItemCountParam * @property {string} [id] - The unique identifier of the cart. - * @property {boolean} [buyNow] - Boolean value to get buy_now cart. - * @property {string} [cartType] - The type of cart - */ -/** - * @typedef GetPriceAdjustmentsParam - * @property {string} cartId - Cart Id + * @property {boolean} [buyNow] */ /** * @typedef GetPromosCouponConfigParam @@ -184,7 +163,6 @@ export = CartPlatformApplicationValidator; * @typedef GetPromotionCodeExistsParam * @property {string} [code] */ -/** @typedef GetPromotionTagsParam */ /** * @typedef GetPromotionsParam * @property {number} [pageNo] @@ -221,38 +199,28 @@ export = CartPlatformApplicationValidator; */ /** * @typedef PlatformAddItemsParam - * @property {boolean} [i] - This is a boolean value. Select `true` to retrieve - * all the items added in the cart. - * @property {boolean} [b] - This is a boolean value. Select `true` to retrieve - * the price breakup of cart items. - * @property {boolean} [buyNow] - This is a boolen value. Select `true` to - * set/initialize buy now cart - * @property {string} [id] - The unique identifier of the cart - * @property {string} [cartType] - The type of cart + * @property {boolean} [i] + * @property {boolean} [b] + * @property {boolean} [buyNow] + * @property {string} [id] * @property {CartPlatformModel.PlatformAddCartRequest} body */ /** * @typedef PlatformCheckoutCartParam - * @property {string} [id] - The unique identifier of the cart - * @property {string} [cartType] - The type of cart + * @property {string} [id] * @property {CartPlatformModel.PlatformCartCheckoutDetailRequest} body */ /** * @typedef PlatformCheckoutCartV2Param - * @property {string} [id] - The unique identifier of the cart - * @property {string} [cartType] - The type of cart + * @property {string} [id] * @property {CartPlatformModel.PlatformCartCheckoutDetailV2Request} body */ /** * @typedef PlatformUpdateCartParam - * @property {string} [id] - The unique identifier of the cart - * @property {boolean} [i] - This is a boolean value. Select `true` to retrieve - * all the items added in the cart. - * @property {boolean} [b] - This is a boolean value. Select `true` to retrieve - * the price breakup of cart items. - * @property {boolean} [buyNow] - This is a boolen value. Select `true` to - * set/initialize buy now cart - * @property {string} [cartType] - The type of cart + * @property {string} [id] + * @property {boolean} [i] + * @property {boolean} [b] + * @property {boolean} [buyNow] * @property {CartPlatformModel.PlatformUpdateCartRequest} body */ /** @@ -295,12 +263,6 @@ export = CartPlatformApplicationValidator; * wants the handover of an order at the store itself. * @property {CartPlatformModel.UpdateCartPaymentRequestV2} body */ -/** - * @typedef UpateCartMetaActiveStatusParam - * @property {string} cartMetaId - CartMeta mongo _id for fetching single cart - * meta data for editing - * @property {CartPlatformModel.CartMetaConfigUpdate} body - */ /** * @typedef UpdateAddressParam * @property {string} id - ID allotted to the selected address @@ -320,8 +282,7 @@ export = CartPlatformApplicationValidator; */ /** * @typedef UpdateCartMetaConfigParam - * @property {string} cartMetaId - CartMeta mongo _id for fetching single cart - * meta data for editing + * @property {string} cartMetaId * @property {CartPlatformModel.CartMetaConfigUpdate} body */ /** @@ -405,10 +366,10 @@ declare class CartPlatformApplicationValidator { static createPromotion(): CreatePromotionParam; /** @returns {DeleteCartParam} */ static deleteCart(): DeleteCartParam; - /** @returns {DeleteCartMetaConfigParam} */ - static deleteCartMetaConfig(): DeleteCartMetaConfigParam; /** @returns {FetchAndvalidateCartItemsParam} */ static fetchAndvalidateCartItems(): FetchAndvalidateCartItemsParam; + /** @returns {FetchCartMetaConfigParam} */ + static fetchCartMetaConfig(): any; /** @returns {GetAbandonedCartParam} */ static getAbandonedCart(): GetAbandonedCartParam; /** @returns {GetAbandonedCartDetailsParam} */ @@ -425,10 +386,6 @@ declare class CartPlatformApplicationValidator { static getCart(): GetCartParam; /** @returns {GetCartListParam} */ static getCartList(): GetCartListParam; - /** @returns {GetCartMetaConfigParam} */ - static getCartMetaConfig(): GetCartMetaConfigParam; - /** @returns {GetCartMetaConfigsParam} */ - static getCartMetaConfigs(): any; /** @returns {GetCartShareLinkParam} */ static getCartShareLink(): GetCartShareLinkParam; /** @returns {GetCartSharedItemsParam} */ @@ -439,22 +396,16 @@ declare class CartPlatformApplicationValidator { static getCouponCodeExists(): GetCouponCodeExistsParam; /** @returns {GetCouponOptionValuesParam} */ static getCouponOptionValues(): any; - /** @returns {GetCouponTagsParam} */ - static getCouponTags(): any; /** @returns {GetCouponsParam} */ static getCoupons(): GetCouponsParam; /** @returns {GetItemCountParam} */ static getItemCount(): GetItemCountParam; - /** @returns {GetPriceAdjustmentsParam} */ - static getPriceAdjustments(): GetPriceAdjustmentsParam; /** @returns {GetPromosCouponConfigParam} */ static getPromosCouponConfig(): GetPromosCouponConfigParam; /** @returns {GetPromotionByIdParam} */ static getPromotionById(): GetPromotionByIdParam; /** @returns {GetPromotionCodeExistsParam} */ static getPromotionCodeExists(): GetPromotionCodeExistsParam; - /** @returns {GetPromotionTagsParam} */ - static getPromotionTags(): any; /** @returns {GetPromotionsParam} */ static getPromotions(): GetPromotionsParam; /** @returns {GetShipmentsParam} */ @@ -483,8 +434,6 @@ declare class CartPlatformApplicationValidator { static selectPaymentMode(): SelectPaymentModeParam; /** @returns {SelectPaymentModeV2Param} */ static selectPaymentModeV2(): SelectPaymentModeV2Param; - /** @returns {UpateCartMetaActiveStatusParam} */ - static upateCartMetaActiveStatus(): UpateCartMetaActiveStatusParam; /** @returns {UpdateAddressParam} */ static updateAddress(): UpdateAddressParam; /** @returns {UpdateCartParam} */ @@ -513,7 +462,7 @@ declare class CartPlatformApplicationValidator { static validateCouponForPayment(): ValidateCouponForPaymentParam; } declare namespace CartPlatformApplicationValidator { - export { AddAddressParam, AddItemsParam, AddPriceAdjustmentParam, ApplyCouponParam, CheckCartServiceabilityParam, CheckoutCartParam, CreateCartMetaConfigParam, CreateCouponParam, CreatePromotionParam, DeleteCartParam, DeleteCartMetaConfigParam, FetchAndvalidateCartItemsParam, GetAbandonedCartParam, GetAbandonedCartDetailsParam, GetAddressByIdParam, GetAddressesParam, GetAppCouponsParam, GetAvailableDeliveryModesParam, GetCartParam, GetCartListParam, GetCartMetaConfigParam, GetCartMetaConfigsParam, GetCartShareLinkParam, GetCartSharedItemsParam, GetCouponByIdParam, GetCouponCodeExistsParam, GetCouponOptionValuesParam, GetCouponTagsParam, GetCouponsParam, GetItemCountParam, GetPriceAdjustmentsParam, GetPromosCouponConfigParam, GetPromotionByIdParam, GetPromotionCodeExistsParam, GetPromotionTagsParam, GetPromotionsParam, GetShipmentsParam, GetStoreAddressByUidParam, OverrideCartParam, PlatformAddItemsParam, PlatformCheckoutCartParam, PlatformCheckoutCartV2Param, PlatformUpdateCartParam, RemoveAddressParam, RemoveCouponParam, RemovePriceAdjustmentParam, SelectAddressParam, SelectPaymentModeParam, SelectPaymentModeV2Param, UpateCartMetaActiveStatusParam, UpdateAddressParam, UpdateCartParam, UpdateCartMetaParam, UpdateCartMetaConfigParam, UpdateCartUserParam, UpdateCartWithSharedItemsParam, UpdateCouponParam, UpdateCouponPartiallyParam, UpdatePriceAdjustmentParam, UpdatePromotionParam, UpdatePromotionPartiallyParam, UpdateShipmentsParam, ValidateCouponForPaymentParam }; + export { AddAddressParam, AddItemsParam, AddPriceAdjustmentParam, ApplyCouponParam, CheckCartServiceabilityParam, CheckoutCartParam, CreateCartMetaConfigParam, CreateCouponParam, CreatePromotionParam, DeleteCartParam, FetchAndvalidateCartItemsParam, FetchCartMetaConfigParam, GetAbandonedCartParam, GetAbandonedCartDetailsParam, GetAddressByIdParam, GetAddressesParam, GetAppCouponsParam, GetAvailableDeliveryModesParam, GetCartParam, GetCartListParam, GetCartShareLinkParam, GetCartSharedItemsParam, GetCouponByIdParam, GetCouponCodeExistsParam, GetCouponOptionValuesParam, GetCouponsParam, GetItemCountParam, GetPromosCouponConfigParam, GetPromotionByIdParam, GetPromotionCodeExistsParam, GetPromotionsParam, GetShipmentsParam, GetStoreAddressByUidParam, OverrideCartParam, PlatformAddItemsParam, PlatformCheckoutCartParam, PlatformCheckoutCartV2Param, PlatformUpdateCartParam, RemoveAddressParam, RemoveCouponParam, RemovePriceAdjustmentParam, SelectAddressParam, SelectPaymentModeParam, SelectPaymentModeV2Param, UpdateAddressParam, UpdateCartParam, UpdateCartMetaParam, UpdateCartMetaConfigParam, UpdateCartUserParam, UpdateCartWithSharedItemsParam, UpdateCouponParam, UpdateCouponPartiallyParam, UpdatePriceAdjustmentParam, UpdatePromotionParam, UpdatePromotionPartiallyParam, UpdateShipmentsParam, ValidateCouponForPaymentParam }; } type AddAddressParam = { body: CartPlatformModel.PlatformAddress; @@ -557,19 +506,8 @@ type DeleteCartParam = { * - The unique identifier of the cart. */ id?: string; - /** - * - The type of cart - */ - cartType?: string; body: CartPlatformModel.DeleteCartRequest; }; -type DeleteCartMetaConfigParam = { - /** - * - CartMeta mongo _id for fetching single cart - * meta data for editing - */ - cartMetaId: string; -}; type FetchAndvalidateCartItemsParam = { body: CartPlatformModel.OpenapiCartDetailsRequest; }; @@ -618,50 +556,18 @@ type GetAvailableDeliveryModesParam = { id?: string; }; type GetCartParam = { - /** - * - The unique identifier of the cart - */ id?: string; - /** - * - Option to fetch cart for the provided user_id. - */ userId?: string; - /** - * - This is a boolean value. Select `true` to retrieve - * all the items added in the cart. - */ i?: boolean; - /** - * - This is a boolean value. Select `true` to retrieve - * the price breakup of cart items. - */ b?: boolean; - /** - * - Token of user's debit or credit card - */ assignCardId?: number; - /** - * - This is a boolen value. Select `true` to - * set/initialize buy now cart - */ buyNow?: boolean; - /** - * - The type of cart - */ - cartType?: string; }; type GetCartListParam = { fromDate?: string; toDate?: string; filterOn?: string; }; -type GetCartMetaConfigParam = { - /** - * - CartMeta mongo _id for fetching single cart - * meta data for editing - */ - cartMetaId: string; -}; type GetCartShareLinkParam = { body: CartPlatformModel.GetShareCartLinkRequest; }; @@ -692,20 +598,7 @@ type GetItemCountParam = { * - The unique identifier of the cart. */ id?: string; - /** - * - Boolean value to get buy_now cart. - */ buyNow?: boolean; - /** - * - The type of cart - */ - cartType?: string; -}; -type GetPriceAdjustmentsParam = { - /** - * - Cart Id - */ - cartId: string; }; type GetPromosCouponConfigParam = { /** @@ -772,77 +665,25 @@ type OverrideCartParam = { body: CartPlatformModel.OverrideCheckoutReq; }; type PlatformAddItemsParam = { - /** - * - This is a boolean value. Select `true` to retrieve - * all the items added in the cart. - */ i?: boolean; - /** - * - This is a boolean value. Select `true` to retrieve - * the price breakup of cart items. - */ b?: boolean; - /** - * - This is a boolen value. Select `true` to - * set/initialize buy now cart - */ buyNow?: boolean; - /** - * - The unique identifier of the cart - */ id?: string; - /** - * - The type of cart - */ - cartType?: string; body: CartPlatformModel.PlatformAddCartRequest; }; type PlatformCheckoutCartParam = { - /** - * - The unique identifier of the cart - */ id?: string; - /** - * - The type of cart - */ - cartType?: string; body: CartPlatformModel.PlatformCartCheckoutDetailRequest; }; type PlatformCheckoutCartV2Param = { - /** - * - The unique identifier of the cart - */ id?: string; - /** - * - The type of cart - */ - cartType?: string; body: CartPlatformModel.PlatformCartCheckoutDetailV2Request; }; type PlatformUpdateCartParam = { - /** - * - The unique identifier of the cart - */ id?: string; - /** - * - This is a boolean value. Select `true` to retrieve - * all the items added in the cart. - */ i?: boolean; - /** - * - This is a boolean value. Select `true` to retrieve - * the price breakup of cart items. - */ b?: boolean; - /** - * - This is a boolen value. Select `true` to - * set/initialize buy now cart - */ buyNow?: boolean; - /** - * - The type of cart - */ - cartType?: string; body: CartPlatformModel.PlatformUpdateCartRequest; }; type RemoveAddressParam = { @@ -891,14 +732,6 @@ type SelectPaymentModeV2Param = { orderType?: string; body: CartPlatformModel.UpdateCartPaymentRequestV2; }; -type UpateCartMetaActiveStatusParam = { - /** - * - CartMeta mongo _id for fetching single cart - * meta data for editing - */ - cartMetaId: string; - body: CartPlatformModel.CartMetaConfigUpdate; -}; type UpdateAddressParam = { /** * - ID allotted to the selected address @@ -920,10 +753,6 @@ type UpdateCartMetaParam = { body: CartPlatformModel.PlatformCartMetaRequest; }; type UpdateCartMetaConfigParam = { - /** - * - CartMeta mongo _id for fetching single cart - * meta data for editing - */ cartMetaId: string; body: CartPlatformModel.CartMetaConfigUpdate; }; @@ -1002,8 +831,6 @@ type ValidateCouponForPaymentParam = { aggregatorName?: string; merchantCode?: string; }; -type GetCartMetaConfigsParam = any; +type FetchCartMetaConfigParam = any; type GetCouponOptionValuesParam = any; -type GetCouponTagsParam = any; -type GetPromotionTagsParam = any; -import CartPlatformModel = require("sdk/output/javascript/code/sdk/platform/Cart/CartPlatformModel"); +import CartPlatformModel = require("./CartPlatformModel"); diff --git a/sdk/platform/Cart/CartPlatformApplicationValidator.js b/sdk/platform/Cart/CartPlatformApplicationValidator.js index 63fed2b6e..5ee037282 100644 --- a/sdk/platform/Cart/CartPlatformApplicationValidator.js +++ b/sdk/platform/Cart/CartPlatformApplicationValidator.js @@ -57,21 +57,16 @@ const CartPlatformModel = require("./CartPlatformModel"); /** * @typedef DeleteCartParam * @property {string} [id] - The unique identifier of the cart. - * @property {string} [cartType] - The type of cart * @property {CartPlatformModel.DeleteCartRequest} body */ -/** - * @typedef DeleteCartMetaConfigParam - * @property {string} cartMetaId - CartMeta mongo _id for fetching single cart - * meta data for editing - */ - /** * @typedef FetchAndvalidateCartItemsParam * @property {CartPlatformModel.OpenapiCartDetailsRequest} body */ +/** @typedef FetchCartMetaConfigParam */ + /** * @typedef GetAbandonedCartParam * @property {number} [pageNo] @@ -130,16 +125,12 @@ const CartPlatformModel = require("./CartPlatformModel"); /** * @typedef GetCartParam - * @property {string} [id] - The unique identifier of the cart - * @property {string} [userId] - Option to fetch cart for the provided user_id. - * @property {boolean} [i] - This is a boolean value. Select `true` to retrieve - * all the items added in the cart. - * @property {boolean} [b] - This is a boolean value. Select `true` to retrieve - * the price breakup of cart items. - * @property {number} [assignCardId] - Token of user's debit or credit card - * @property {boolean} [buyNow] - This is a boolen value. Select `true` to - * set/initialize buy now cart - * @property {string} [cartType] - The type of cart + * @property {string} [id] + * @property {string} [userId] + * @property {boolean} [i] + * @property {boolean} [b] + * @property {number} [assignCardId] + * @property {boolean} [buyNow] */ /** @@ -149,14 +140,6 @@ const CartPlatformModel = require("./CartPlatformModel"); * @property {string} [filterOn] */ -/** - * @typedef GetCartMetaConfigParam - * @property {string} cartMetaId - CartMeta mongo _id for fetching single cart - * meta data for editing - */ - -/** @typedef GetCartMetaConfigsParam */ - /** * @typedef GetCartShareLinkParam * @property {CartPlatformModel.GetShareCartLinkRequest} body @@ -179,8 +162,6 @@ const CartPlatformModel = require("./CartPlatformModel"); /** @typedef GetCouponOptionValuesParam */ -/** @typedef GetCouponTagsParam */ - /** * @typedef GetCouponsParam * @property {number} [pageNo] @@ -196,13 +177,7 @@ const CartPlatformModel = require("./CartPlatformModel"); /** * @typedef GetItemCountParam * @property {string} [id] - The unique identifier of the cart. - * @property {boolean} [buyNow] - Boolean value to get buy_now cart. - * @property {string} [cartType] - The type of cart - */ - -/** - * @typedef GetPriceAdjustmentsParam - * @property {string} cartId - Cart Id + * @property {boolean} [buyNow] */ /** @@ -221,8 +196,6 @@ const CartPlatformModel = require("./CartPlatformModel"); * @property {string} [code] */ -/** @typedef GetPromotionTagsParam */ - /** * @typedef GetPromotionsParam * @property {number} [pageNo] @@ -263,41 +236,31 @@ const CartPlatformModel = require("./CartPlatformModel"); /** * @typedef PlatformAddItemsParam - * @property {boolean} [i] - This is a boolean value. Select `true` to retrieve - * all the items added in the cart. - * @property {boolean} [b] - This is a boolean value. Select `true` to retrieve - * the price breakup of cart items. - * @property {boolean} [buyNow] - This is a boolen value. Select `true` to - * set/initialize buy now cart - * @property {string} [id] - The unique identifier of the cart - * @property {string} [cartType] - The type of cart + * @property {boolean} [i] + * @property {boolean} [b] + * @property {boolean} [buyNow] + * @property {string} [id] * @property {CartPlatformModel.PlatformAddCartRequest} body */ /** * @typedef PlatformCheckoutCartParam - * @property {string} [id] - The unique identifier of the cart - * @property {string} [cartType] - The type of cart + * @property {string} [id] * @property {CartPlatformModel.PlatformCartCheckoutDetailRequest} body */ /** * @typedef PlatformCheckoutCartV2Param - * @property {string} [id] - The unique identifier of the cart - * @property {string} [cartType] - The type of cart + * @property {string} [id] * @property {CartPlatformModel.PlatformCartCheckoutDetailV2Request} body */ /** * @typedef PlatformUpdateCartParam - * @property {string} [id] - The unique identifier of the cart - * @property {boolean} [i] - This is a boolean value. Select `true` to retrieve - * all the items added in the cart. - * @property {boolean} [b] - This is a boolean value. Select `true` to retrieve - * the price breakup of cart items. - * @property {boolean} [buyNow] - This is a boolen value. Select `true` to - * set/initialize buy now cart - * @property {string} [cartType] - The type of cart + * @property {string} [id] + * @property {boolean} [i] + * @property {boolean} [b] + * @property {boolean} [buyNow] * @property {CartPlatformModel.PlatformUpdateCartRequest} body */ @@ -347,13 +310,6 @@ const CartPlatformModel = require("./CartPlatformModel"); * @property {CartPlatformModel.UpdateCartPaymentRequestV2} body */ -/** - * @typedef UpateCartMetaActiveStatusParam - * @property {string} cartMetaId - CartMeta mongo _id for fetching single cart - * meta data for editing - * @property {CartPlatformModel.CartMetaConfigUpdate} body - */ - /** * @typedef UpdateAddressParam * @property {string} id - ID allotted to the selected address @@ -376,8 +332,7 @@ const CartPlatformModel = require("./CartPlatformModel"); /** * @typedef UpdateCartMetaConfigParam - * @property {string} cartMetaId - CartMeta mongo _id for fetching single cart - * meta data for editing + * @property {string} cartMetaId * @property {CartPlatformModel.CartMetaConfigUpdate} body */ @@ -525,18 +480,10 @@ class CartPlatformApplicationValidator { static deleteCart() { return Joi.object({ id: Joi.string().allow(""), - cartType: Joi.string().allow(""), body: CartPlatformModel.DeleteCartRequest().required(), }).required(); } - /** @returns {DeleteCartMetaConfigParam} */ - static deleteCartMetaConfig() { - return Joi.object({ - cartMetaId: Joi.string().allow("").required(), - }).required(); - } - /** @returns {FetchAndvalidateCartItemsParam} */ static fetchAndvalidateCartItems() { return Joi.object({ @@ -544,6 +491,11 @@ class CartPlatformApplicationValidator { }).required(); } + /** @returns {FetchCartMetaConfigParam} */ + static fetchCartMetaConfig() { + return Joi.object({}).required(); + } + /** @returns {GetAbandonedCartParam} */ static getAbandonedCart() { return Joi.object({ @@ -621,7 +573,6 @@ class CartPlatformApplicationValidator { b: Joi.boolean(), assignCardId: Joi.number(), buyNow: Joi.boolean(), - cartType: Joi.string().allow(""), }).required(); } @@ -634,18 +585,6 @@ class CartPlatformApplicationValidator { }).required(); } - /** @returns {GetCartMetaConfigParam} */ - static getCartMetaConfig() { - return Joi.object({ - cartMetaId: Joi.string().allow("").required(), - }).required(); - } - - /** @returns {GetCartMetaConfigsParam} */ - static getCartMetaConfigs() { - return Joi.object({}).required(); - } - /** @returns {GetCartShareLinkParam} */ static getCartShareLink() { return Joi.object({ @@ -679,11 +618,6 @@ class CartPlatformApplicationValidator { return Joi.object({}).required(); } - /** @returns {GetCouponTagsParam} */ - static getCouponTags() { - return Joi.object({}).required(); - } - /** @returns {GetCouponsParam} */ static getCoupons() { return Joi.object({ @@ -703,14 +637,6 @@ class CartPlatformApplicationValidator { return Joi.object({ id: Joi.string().allow(""), buyNow: Joi.boolean(), - cartType: Joi.string().allow(""), - }).required(); - } - - /** @returns {GetPriceAdjustmentsParam} */ - static getPriceAdjustments() { - return Joi.object({ - cartId: Joi.string().allow("").required(), }).required(); } @@ -736,11 +662,6 @@ class CartPlatformApplicationValidator { }).required(); } - /** @returns {GetPromotionTagsParam} */ - static getPromotionTags() { - return Joi.object({}).required(); - } - /** @returns {GetPromotionsParam} */ static getPromotions() { return Joi.object({ @@ -790,7 +711,6 @@ class CartPlatformApplicationValidator { b: Joi.boolean(), buyNow: Joi.boolean(), id: Joi.string().allow(""), - cartType: Joi.string().allow(""), body: CartPlatformModel.PlatformAddCartRequest().required(), }).required(); } @@ -799,7 +719,6 @@ class CartPlatformApplicationValidator { static platformCheckoutCart() { return Joi.object({ id: Joi.string().allow(""), - cartType: Joi.string().allow(""), body: CartPlatformModel.PlatformCartCheckoutDetailRequest().required(), }).required(); } @@ -808,7 +727,6 @@ class CartPlatformApplicationValidator { static platformCheckoutCartV2() { return Joi.object({ id: Joi.string().allow(""), - cartType: Joi.string().allow(""), body: CartPlatformModel.PlatformCartCheckoutDetailV2Request().required(), }).required(); } @@ -820,7 +738,6 @@ class CartPlatformApplicationValidator { i: Joi.boolean(), b: Joi.boolean(), buyNow: Joi.boolean(), - cartType: Joi.string().allow(""), body: CartPlatformModel.PlatformUpdateCartRequest().required(), }).required(); } @@ -879,14 +796,6 @@ class CartPlatformApplicationValidator { }).required(); } - /** @returns {UpateCartMetaActiveStatusParam} */ - static upateCartMetaActiveStatus() { - return Joi.object({ - cartMetaId: Joi.string().allow("").required(), - body: CartPlatformModel.CartMetaConfigUpdate().required(), - }).required(); - } - /** @returns {UpdateAddressParam} */ static updateAddress() { return Joi.object({ diff --git a/sdk/platform/Cart/CartPlatformModel.d.ts b/sdk/platform/Cart/CartPlatformModel.d.ts index f6132b250..1f8f718f8 100644 --- a/sdk/platform/Cart/CartPlatformModel.d.ts +++ b/sdk/platform/Cart/CartPlatformModel.d.ts @@ -174,11 +174,6 @@ export = CartPlatformModel; * @property {CouponAdd[]} [items] * @property {Page} [page] */ -/** - * @typedef TagsViewResponse - * @property {boolean} [success] - * @property {string[]} [items] - */ /** * @typedef SuccessMessage * @property {boolean} [success] @@ -188,7 +183,6 @@ export = CartPlatformModel; * @typedef OperationErrorResponse * @property {boolean} [success] * @property {string} [message] - * @property {string} [error] */ /** * @typedef CouponUpdate @@ -386,8 +380,6 @@ export = CartPlatformModel; * @property {Object} [_custom_json] - Custom data stored in promotion * @property {PromotionDateMeta} [date_meta] * @property {string} [_id] - Promotion id - * @property {string[]} [tags] - * @property {Object[]} [custom_field_meta] - Custom field meta for promotion. */ /** * @typedef PromotionsResponse @@ -419,7 +411,6 @@ export = CartPlatformModel; * @property {Object} buy_rules * @property {Object} [_custom_json] * @property {PromotionDateMeta} [date_meta] - * @property {string[]} [tags] */ /** * @typedef PromotionUpdate @@ -446,8 +437,6 @@ export = CartPlatformModel; * @property {Object} buy_rules * @property {Object} [_custom_json] * @property {PromotionDateMeta} [date_meta] - * @property {string[]} [tags] - * @property {Object[]} [custom_field_meta] - Custom field meta for promotion. */ /** * @typedef PromotionPartialUpdate @@ -478,88 +467,27 @@ export = CartPlatformModel; * @property {Charges[]} [charges] * @property {boolean} [enabled] */ -/** - * @typedef OrderPlacing - * @property {boolean} [enabled] - * @property {string} [message] - */ -/** - * @typedef PanCard - * @property {boolean} [enabled] - * @property {number} [cod_threshold_amount] - * @property {number} [online_threshold_amount] - */ /** * @typedef CartMetaConfigUpdate * @property {number} [min_cart_value] - * @property {number} [max_cart_value] * @property {boolean} [bulk_coupons] * @property {number} [max_cart_items] * @property {string} [gift_display_text] * @property {DeliveryCharges} [delivery_charges] - * @property {DeliveryCharges} [international_delivery_charges] * @property {boolean} [revenue_engine_coupon] * @property {number} [gift_pricing] * @property {boolean} [enabled] - * @property {boolean} [is_active] - * @property {OrderPlacing} [order_placing] - * @property {string} [name] - * @property {string[]} [article_tags] - * @property {boolean} [allow_coupon_with_rewards] - * @property {boolean} [gst_input] - * @property {boolean} [staff_selection] - * @property {boolean} [placing_for_customer] - * @property {PanCard} [pan_card] - */ -/** - * @typedef TimeStampIDResponse - * @property {string} [id] - * @property {string} [app_id] - * @property {number} [company_id] - * @property {string} [created_on] - * @property {string} [updated_on] - * @property {string} [last_modified_by] - */ -/** - * @typedef CartMetaConfigDetailResponse - * @property {boolean} [success] - * @property {Object} [data] - */ -/** - * @typedef CartMetaConfigListObj - * @property {string} [id] - * @property {string} [name] - * @property {string} [slug] - * @property {boolean} [is_active] - * @property {string} [created_on] - */ -/** - * @typedef CartMetaConfigListResponse - * @property {boolean} [success] - * @property {CartMetaConfigListObj[]} [data] */ /** * @typedef CartMetaConfigAdd * @property {number} [min_cart_value] - * @property {number} [max_cart_value] * @property {boolean} [bulk_coupons] * @property {number} [max_cart_items] * @property {string} [gift_display_text] * @property {DeliveryCharges} [delivery_charges] - * @property {DeliveryCharges} [international_delivery_charges] * @property {boolean} [revenue_engine_coupon] * @property {number} [gift_pricing] * @property {boolean} [enabled] - * @property {boolean} [is_active] - * @property {OrderPlacing} [order_placing] - * @property {string} name - * @property {string} slug - * @property {string[]} [article_tags] - * @property {boolean} [allow_coupon_with_rewards] - * @property {boolean} [gst_input] - * @property {boolean} [staff_selection] - * @property {boolean} [placing_for_customer] - * @property {PanCard} [pan_card] */ /** * @typedef Article @@ -599,10 +527,6 @@ export = CartPlatformModel; * @property {boolean} is_authenticated - Flag indicating whether the user is * authenticated * @property {Article[]} article_ids - The list of article object in the price adjustment - * @property {boolean} [remove_articles] - This field if set true will remove - * all articles in price adjustment if article_ids are present - * @property {boolean} [auto_remove] - This field if set true will remove mop - * type price adjustment. * @property {Object} [meta] * @property {string} cart_id - The ID of the cart */ @@ -626,13 +550,6 @@ export = CartPlatformModel; * @property {Article[]} article_ids - The list of article object in the price adjustment * @property {Object} [meta] * @property {string} cart_id - The ID of the cart - * @property {boolean} [remove_articles] - This field if set true will remove - * all articles in price adjustment if article_ids are present - * @property {boolean} [auto_remove] - This field if set true will remove mop - * type price adjustment. - * @property {string} [distribution_level] - Distribution level of price adjusment - * @property {string} [distribution_type] - Distribution type of price adjusment - * in case of shipment distribution level */ /** * @typedef PriceAdjustmentResponse @@ -658,13 +575,6 @@ export = CartPlatformModel; * @property {Article[]} article_ids - The list of article object in the price adjustment * @property {Object} [meta] * @property {string} cart_id - The ID of the cart - * @property {boolean} [remove_articles] - This field if set true will remove - * all articles in price adjustment if article_ids are present - * @property {boolean} [auto_remove] - This field if set true will remove mop - * type price adjustment. - * @property {string} [distribution_level] - Distribution level of price adjusment - * @property {string} [distribution_type] - Distribution type of price adjusment - * in case of shipment distribution level */ /** * @typedef CartItem @@ -801,7 +711,6 @@ export = CartPlatformModel; * @property {string} [seller_identifier] * @property {number} [quantity] * @property {BaseInfo} [seller] - * @property {string} [product_name] * @property {Object} [cart_item_meta] * @property {Object} [parent_item_identifiers] * @property {boolean} [is_gift_visible] @@ -872,7 +781,6 @@ export = CartPlatformModel; * @property {string} [promo_id] - Promotion id * @property {Object} [meta] - Meta object for extra data * @property {string} [code] - Promotion code - * @property {Object[]} [custom_field_meta] - Custom field meta for promotion. */ /** * @typedef PromiseFormatted @@ -948,7 +856,6 @@ export = CartPlatformModel; * @property {ProductArticle} [article] * @property {AppliedPromotion[]} [promotions_applied] * @property {ShipmentPromise} [delivery_promise] - * @property {number} [seller_count] * @property {string} [key] * @property {CouponDetails} [coupon] * @property {Object} [bulk_offer] @@ -1173,14 +1080,6 @@ export = CartPlatformModel; * @typedef CartCommonConfig * @property {DeliveryChargesConfig} [delivery_charges_config] */ -/** - * @typedef CustomCart - * @property {string} [id] - Id of custom cart config - * @property {string} [cart_name] - Name of custom cart - * @property {string} [cart_type] - Type of custom cart - * @property {boolean} [is_universal] - By default all carts are universal, will - * be false for custom cart - */ /** * @typedef CartDetailResponse * @property {number} [cart_id] @@ -1209,8 +1108,6 @@ export = CartPlatformModel; * @property {string} [gstin] * @property {AppliedPromotion[]} [applied_promo_details] * @property {string} [pan_no] - * @property {boolean} [is_pan_received] - * @property {CustomCart} [custom_cart] */ /** * @typedef AddProductCart @@ -1218,7 +1115,6 @@ export = CartPlatformModel; * @property {string} [item_size] * @property {number} [seller_id] * @property {Object[]} [parent_item_identifiers] - * @property {string} [price_factory_type_id] * @property {string[]} [product_group_tags] * @property {string} [article_id] * @property {Object} [article_assignment] @@ -1253,7 +1149,6 @@ export = CartPlatformModel; * @property {Object} [meta] * @property {Object} [extra_meta] * @property {Object} [_custom_json] - * @property {string} [price_factory_type_id] * @property {number} [item_id] * @property {number} [item_index] * @property {CartProductIdentifer} identifiers @@ -1414,7 +1309,6 @@ export = CartPlatformModel; * @property {string} [gstin] * @property {AppliedPromotion[]} [applied_promo_details] * @property {string} [pan_no] - * @property {boolean} [is_pan_received] */ /** * @typedef PlatformAddCartRequest @@ -1588,7 +1482,6 @@ export = CartPlatformModel; * @property {AppliedPromotion[]} [applied_promo_details] * @property {boolean} [error] * @property {string} [pan_no] - * @property {boolean} [is_pan_received] */ /** * @typedef UpdateCartShipmentItem @@ -1608,7 +1501,6 @@ export = CartPlatformModel; * @property {string} [checkout_mode] * @property {Object} [gift_details] * @property {string} [pan_no] - * @property {boolean} [is_pan_received] * @property {string} [comment] * @property {string} [staff_user_id] - Staff user id */ @@ -1668,7 +1560,7 @@ export = CartPlatformModel; * @property {string} [employee_code] * @property {Object} [billing_address] * @property {string} [callback_url] - * @property {string} [user_id] + * @property {string} user_id * @property {Object} [extra_meta] * @property {string} order_type * @property {Files[]} [files] - List of file url @@ -1710,7 +1602,6 @@ export = CartPlatformModel; * @property {string} [gstin] * @property {boolean} [cod_available] * @property {number} [delivery_charges] - * @property {CustomCart} [custom_cart] */ /** * @typedef CartCheckoutResponse @@ -1816,7 +1707,7 @@ export = CartPlatformModel; * @property {string} [employee_code] * @property {Object} [billing_address] * @property {string} [callback_url] - * @property {string} [user_id] + * @property {string} user_id * @property {Object} [extra_meta] * @property {string} order_type * @property {Files[]} [files] - List of file url @@ -1839,7 +1730,7 @@ export = CartPlatformModel; declare class CartPlatformModel { } declare namespace CartPlatformModel { - export { CouponDateMeta, Ownership, CouponAuthor, State, PaymentAllowValue, PaymentModes, PriceRange, PostOrder, BulkBundleRestriction, UsesRemaining, UsesRestriction, Restrictions, Validation, CouponAction, CouponSchedule, Rule, DisplayMetaDict, DisplayMeta, Identifier, Validity, RuleDefinition, CouponAdd, Page, CouponsResponse, TagsViewResponse, SuccessMessage, OperationErrorResponse, CouponUpdate, CouponPartialUpdate, DisplayMeta1, Ownership1, CompareObject, ItemCriteria, DiscountOffer, DiscountRule, PaymentAllowValue1, PromotionPaymentModes, UserRegistered, PostOrder1, UsesRemaining1, UsesRestriction1, Restrictions1, PromotionSchedule, PromotionAction, PromotionAuthor, Visibility, PromotionDateMeta, PromotionListItem, PromotionsResponse, PromotionAdd, PromotionUpdate, PromotionPartialUpdate, ActivePromosResponse, Charges, DeliveryCharges, OrderPlacing, PanCard, CartMetaConfigUpdate, TimeStampIDResponse, CartMetaConfigDetailResponse, CartMetaConfigListObj, CartMetaConfigListResponse, CartMetaConfigAdd, Article, PriceAdjustmentRestrictions, Collection, PriceAdjustmentUpdate, PriceAdjustment, PriceAdjustmentResponse, PriceAdjustmentAdd, CartItem, OpenapiCartDetailsRequest, CouponBreakup, DisplayBreakup, LoyaltyPoints, RawBreakup, CartBreakup, ProductImage, Tags, BaseInfo, ActionQuery, ProductAction, CategoryInfo, CartProduct, BasePrice, ArticlePriceInfo, StoreInfo, ProductArticle, Ownership2, DiscountRulesApp, FreeGiftItem, AppliedFreeArticles, BuyRules, AppliedPromotion, PromiseFormatted, PromiseISOFormat, PromiseTimestamp, ShipmentPromise, CouponDetails, ProductPrice, ProductPriceInfo, CartProductIdentifer, ProductAvailabilitySize, ProductAvailability, PromoMeta, CartProductInfo, OpenapiCartDetailsResponse, OpenApiErrorResponse, ShippingAddress, OpenApiCartServiceabilityRequest, OpenApiCartServiceabilityResponse, OpenApiFiles, CartItemMeta, MultiTenderPaymentMeta, MultiTenderPaymentMethod, OpenApiOrderItem, OpenApiPlatformCheckoutReq, OpenApiCheckoutResponse, AbandonedCart, AbandonedCartResponse, PaymentSelectionLock, CartCurrency, CartDetailCoupon, ChargesThreshold, DeliveryChargesConfig, CartCommonConfig, CustomCart, CartDetailResponse, AddProductCart, AddCartRequest, AddCartDetailResponse, UpdateProductCart, UpdateCartRequest, UpdateCartDetailResponse, OverrideCartItemPromo, OverrideCartItem, OverrideCheckoutReq, OverrideCheckoutResponse, GetShareCartLinkRequest, GetShareCartLinkResponse, SharedCartDetails, SharedCart, SharedCartResponse, CartList, MultiCartResponse, UpdateUserCartMapping, UserInfo, UserCartMappingResponse, PlatformAddCartRequest, PlatformUpdateCartRequest, DeleteCartRequest, DeleteCartDetailResponse, CartItemCountResponse, Coupon, PageCoupon, GetCouponResponse, ApplyCouponRequest, GeoLocation, PlatformAddress, PlatformGetAddressesResponse, SaveAddressResponse, UpdateAddressResponse, DeleteAddressResponse, PlatformSelectCartAddressRequest, ShipmentArticle, PlatformShipmentResponse, PlatformCartShipmentsResponse, UpdateCartShipmentItem, UpdateCartShipmentRequest, PlatformCartMetaRequest, CartMetaResponse, CartMetaMissingResponse, StaffCheckout, CustomerDetails, Files, CartCheckoutCustomMeta, PlatformCartCheckoutDetailRequest, CheckCart, CartCheckoutResponse, CartDeliveryModesResponse, PickupStoreDetail, StoreDetailsResponse, UpdateCartPaymentRequest, CouponValidity, PaymentCouponValidate, PaymentMeta, PaymentMethod, PlatformCartCheckoutDetailV2Request, UpdateCartPaymentRequestV2 }; + export { CouponDateMeta, Ownership, CouponAuthor, State, PaymentAllowValue, PaymentModes, PriceRange, PostOrder, BulkBundleRestriction, UsesRemaining, UsesRestriction, Restrictions, Validation, CouponAction, CouponSchedule, Rule, DisplayMetaDict, DisplayMeta, Identifier, Validity, RuleDefinition, CouponAdd, Page, CouponsResponse, SuccessMessage, OperationErrorResponse, CouponUpdate, CouponPartialUpdate, DisplayMeta1, Ownership1, CompareObject, ItemCriteria, DiscountOffer, DiscountRule, PaymentAllowValue1, PromotionPaymentModes, UserRegistered, PostOrder1, UsesRemaining1, UsesRestriction1, Restrictions1, PromotionSchedule, PromotionAction, PromotionAuthor, Visibility, PromotionDateMeta, PromotionListItem, PromotionsResponse, PromotionAdd, PromotionUpdate, PromotionPartialUpdate, ActivePromosResponse, Charges, DeliveryCharges, CartMetaConfigUpdate, CartMetaConfigAdd, Article, PriceAdjustmentRestrictions, Collection, PriceAdjustmentUpdate, PriceAdjustment, PriceAdjustmentResponse, PriceAdjustmentAdd, CartItem, OpenapiCartDetailsRequest, CouponBreakup, DisplayBreakup, LoyaltyPoints, RawBreakup, CartBreakup, ProductImage, Tags, BaseInfo, ActionQuery, ProductAction, CategoryInfo, CartProduct, BasePrice, ArticlePriceInfo, StoreInfo, ProductArticle, Ownership2, DiscountRulesApp, FreeGiftItem, AppliedFreeArticles, BuyRules, AppliedPromotion, PromiseFormatted, PromiseISOFormat, PromiseTimestamp, ShipmentPromise, CouponDetails, ProductPrice, ProductPriceInfo, CartProductIdentifer, ProductAvailabilitySize, ProductAvailability, PromoMeta, CartProductInfo, OpenapiCartDetailsResponse, OpenApiErrorResponse, ShippingAddress, OpenApiCartServiceabilityRequest, OpenApiCartServiceabilityResponse, OpenApiFiles, CartItemMeta, MultiTenderPaymentMeta, MultiTenderPaymentMethod, OpenApiOrderItem, OpenApiPlatformCheckoutReq, OpenApiCheckoutResponse, AbandonedCart, AbandonedCartResponse, PaymentSelectionLock, CartCurrency, CartDetailCoupon, ChargesThreshold, DeliveryChargesConfig, CartCommonConfig, CartDetailResponse, AddProductCart, AddCartRequest, AddCartDetailResponse, UpdateProductCart, UpdateCartRequest, UpdateCartDetailResponse, OverrideCartItemPromo, OverrideCartItem, OverrideCheckoutReq, OverrideCheckoutResponse, GetShareCartLinkRequest, GetShareCartLinkResponse, SharedCartDetails, SharedCart, SharedCartResponse, CartList, MultiCartResponse, UpdateUserCartMapping, UserInfo, UserCartMappingResponse, PlatformAddCartRequest, PlatformUpdateCartRequest, DeleteCartRequest, DeleteCartDetailResponse, CartItemCountResponse, Coupon, PageCoupon, GetCouponResponse, ApplyCouponRequest, GeoLocation, PlatformAddress, PlatformGetAddressesResponse, SaveAddressResponse, UpdateAddressResponse, DeleteAddressResponse, PlatformSelectCartAddressRequest, ShipmentArticle, PlatformShipmentResponse, PlatformCartShipmentsResponse, UpdateCartShipmentItem, UpdateCartShipmentRequest, PlatformCartMetaRequest, CartMetaResponse, CartMetaMissingResponse, StaffCheckout, CustomerDetails, Files, CartCheckoutCustomMeta, PlatformCartCheckoutDetailRequest, CheckCart, CartCheckoutResponse, CartDeliveryModesResponse, PickupStoreDetail, StoreDetailsResponse, UpdateCartPaymentRequest, CouponValidity, PaymentCouponValidate, PaymentMeta, PaymentMethod, PlatformCartCheckoutDetailV2Request, UpdateCartPaymentRequestV2 }; } /** @returns {CouponDateMeta} */ declare function CouponDateMeta(): CouponDateMeta; @@ -2043,12 +1934,6 @@ type CouponsResponse = { items?: CouponAdd[]; page?: Page; }; -/** @returns {TagsViewResponse} */ -declare function TagsViewResponse(): TagsViewResponse; -type TagsViewResponse = { - success?: boolean; - items?: string[]; -}; /** @returns {SuccessMessage} */ declare function SuccessMessage(): SuccessMessage; type SuccessMessage = { @@ -2060,7 +1945,6 @@ declare function OperationErrorResponse(): OperationErrorResponse; type OperationErrorResponse = { success?: boolean; message?: string; - error?: string; }; /** @returns {CouponUpdate} */ declare function CouponUpdate(): CouponUpdate; @@ -2327,11 +2211,6 @@ type PromotionListItem = { * - Promotion id */ _id?: string; - tags?: string[]; - /** - * - Custom field meta for promotion. - */ - custom_field_meta?: any[]; }; /** @returns {PromotionsResponse} */ declare function PromotionsResponse(): PromotionsResponse; @@ -2368,7 +2247,6 @@ type PromotionAdd = { buy_rules: any; _custom_json?: any; date_meta?: PromotionDateMeta; - tags?: string[]; }; /** @returns {PromotionUpdate} */ declare function PromotionUpdate(): PromotionUpdate; @@ -2399,11 +2277,6 @@ type PromotionUpdate = { buy_rules: any; _custom_json?: any; date_meta?: PromotionDateMeta; - tags?: string[]; - /** - * - Custom field meta for promotion. - */ - custom_field_meta?: any[]; }; /** @returns {PromotionPartialUpdate} */ declare function PromotionPartialUpdate(): PromotionPartialUpdate; @@ -2468,96 +2341,29 @@ type DeliveryCharges = { charges?: Charges[]; enabled?: boolean; }; -/** @returns {OrderPlacing} */ -declare function OrderPlacing(): OrderPlacing; -type OrderPlacing = { - enabled?: boolean; - message?: string; -}; -/** @returns {PanCard} */ -declare function PanCard(): PanCard; -type PanCard = { - enabled?: boolean; - cod_threshold_amount?: number; - online_threshold_amount?: number; -}; /** @returns {CartMetaConfigUpdate} */ declare function CartMetaConfigUpdate(): CartMetaConfigUpdate; type CartMetaConfigUpdate = { min_cart_value?: number; - max_cart_value?: number; bulk_coupons?: boolean; max_cart_items?: number; gift_display_text?: string; delivery_charges?: DeliveryCharges; - international_delivery_charges?: DeliveryCharges; revenue_engine_coupon?: boolean; gift_pricing?: number; enabled?: boolean; - is_active?: boolean; - order_placing?: OrderPlacing; - name?: string; - article_tags?: string[]; - allow_coupon_with_rewards?: boolean; - gst_input?: boolean; - staff_selection?: boolean; - placing_for_customer?: boolean; - pan_card?: PanCard; -}; -/** @returns {TimeStampIDResponse} */ -declare function TimeStampIDResponse(): TimeStampIDResponse; -type TimeStampIDResponse = { - id?: string; - app_id?: string; - company_id?: number; - created_on?: string; - updated_on?: string; - last_modified_by?: string; -}; -/** @returns {CartMetaConfigDetailResponse} */ -declare function CartMetaConfigDetailResponse(): CartMetaConfigDetailResponse; -type CartMetaConfigDetailResponse = { - success?: boolean; - data?: any; -}; -/** @returns {CartMetaConfigListObj} */ -declare function CartMetaConfigListObj(): CartMetaConfigListObj; -type CartMetaConfigListObj = { - id?: string; - name?: string; - slug?: string; - is_active?: boolean; - created_on?: string; -}; -/** @returns {CartMetaConfigListResponse} */ -declare function CartMetaConfigListResponse(): CartMetaConfigListResponse; -type CartMetaConfigListResponse = { - success?: boolean; - data?: CartMetaConfigListObj[]; }; /** @returns {CartMetaConfigAdd} */ declare function CartMetaConfigAdd(): CartMetaConfigAdd; type CartMetaConfigAdd = { min_cart_value?: number; - max_cart_value?: number; bulk_coupons?: boolean; max_cart_items?: number; gift_display_text?: string; delivery_charges?: DeliveryCharges; - international_delivery_charges?: DeliveryCharges; revenue_engine_coupon?: boolean; gift_pricing?: number; enabled?: boolean; - is_active?: boolean; - order_placing?: OrderPlacing; - name: string; - slug: string; - article_tags?: string[]; - allow_coupon_with_rewards?: boolean; - gst_input?: boolean; - staff_selection?: boolean; - placing_for_customer?: boolean; - pan_card?: PanCard; }; /** @returns {Article} */ declare function Article(): Article; @@ -2649,16 +2455,6 @@ type PriceAdjustmentUpdate = { * - The list of article object in the price adjustment */ article_ids: Article[]; - /** - * - This field if set true will remove - * all articles in price adjustment if article_ids are present - */ - remove_articles?: boolean; - /** - * - This field if set true will remove mop - * type price adjustment. - */ - auto_remove?: boolean; meta?: any; /** * - The ID of the cart @@ -2713,25 +2509,6 @@ type PriceAdjustment = { * - The ID of the cart */ cart_id: string; - /** - * - This field if set true will remove - * all articles in price adjustment if article_ids are present - */ - remove_articles?: boolean; - /** - * - This field if set true will remove mop - * type price adjustment. - */ - auto_remove?: boolean; - /** - * - Distribution level of price adjusment - */ - distribution_level?: string; - /** - * - Distribution type of price adjusment - * in case of shipment distribution level - */ - distribution_type?: string; }; /** @returns {PriceAdjustmentResponse} */ declare function PriceAdjustmentResponse(): PriceAdjustmentResponse; @@ -2789,25 +2566,6 @@ type PriceAdjustmentAdd = { * - The ID of the cart */ cart_id: string; - /** - * - This field if set true will remove - * all articles in price adjustment if article_ids are present - */ - remove_articles?: boolean; - /** - * - This field if set true will remove mop - * type price adjustment. - */ - auto_remove?: boolean; - /** - * - Distribution level of price adjusment - */ - distribution_level?: string; - /** - * - Distribution type of price adjusment - * in case of shipment distribution level - */ - distribution_type?: string; }; /** @returns {CartItem} */ declare function CartItem(): CartItem; @@ -2971,7 +2729,6 @@ type ProductArticle = { seller_identifier?: string; quantity?: number; seller?: BaseInfo; - product_name?: string; cart_item_meta?: any; parent_item_identifiers?: any; is_gift_visible?: boolean; @@ -3147,10 +2904,6 @@ type AppliedPromotion = { * - Promotion code */ code?: string; - /** - * - Custom field meta for promotion. - */ - custom_field_meta?: any[]; }; /** @returns {PromiseFormatted} */ declare function PromiseFormatted(): PromiseFormatted; @@ -3247,7 +3000,6 @@ type CartProductInfo = { article?: ProductArticle; promotions_applied?: AppliedPromotion[]; delivery_promise?: ShipmentPromise; - seller_count?: number; key?: string; coupon?: CouponDetails; bulk_offer?: any; @@ -3516,27 +3268,6 @@ declare function CartCommonConfig(): CartCommonConfig; type CartCommonConfig = { delivery_charges_config?: DeliveryChargesConfig; }; -/** @returns {CustomCart} */ -declare function CustomCart(): CustomCart; -type CustomCart = { - /** - * - Id of custom cart config - */ - id?: string; - /** - * - Name of custom cart - */ - cart_name?: string; - /** - * - Type of custom cart - */ - cart_type?: string; - /** - * - By default all carts are universal, will - * be false for custom cart - */ - is_universal?: boolean; -}; /** @returns {CartDetailResponse} */ declare function CartDetailResponse(): CartDetailResponse; type CartDetailResponse = { @@ -3566,8 +3297,6 @@ type CartDetailResponse = { gstin?: string; applied_promo_details?: AppliedPromotion[]; pan_no?: string; - is_pan_received?: boolean; - custom_cart?: CustomCart; }; /** @returns {AddProductCart} */ declare function AddProductCart(): AddProductCart; @@ -3576,7 +3305,6 @@ type AddProductCart = { item_size?: string; seller_id?: number; parent_item_identifiers?: any[]; - price_factory_type_id?: string; product_group_tags?: string[]; article_id?: string; article_assignment?: any; @@ -3623,7 +3351,6 @@ type UpdateProductCart = { meta?: any; extra_meta?: any; _custom_json?: any; - price_factory_type_id?: string; item_id?: number; item_index?: number; identifiers: CartProductIdentifer; @@ -3827,7 +3554,6 @@ type UserCartMappingResponse = { gstin?: string; applied_promo_details?: AppliedPromotion[]; pan_no?: string; - is_pan_received?: boolean; }; /** @returns {PlatformAddCartRequest} */ declare function PlatformAddCartRequest(): PlatformAddCartRequest; @@ -4032,7 +3758,6 @@ type PlatformCartShipmentsResponse = { applied_promo_details?: AppliedPromotion[]; error?: boolean; pan_no?: string; - is_pan_received?: boolean; }; /** @returns {UpdateCartShipmentItem} */ declare function UpdateCartShipmentItem(): UpdateCartShipmentItem; @@ -4067,7 +3792,6 @@ type PlatformCartMetaRequest = { checkout_mode?: string; gift_details?: any; pan_no?: string; - is_pan_received?: boolean; comment?: string; /** * - Staff user id @@ -4140,7 +3864,7 @@ type PlatformCartCheckoutDetailRequest = { employee_code?: string; billing_address?: any; callback_url?: string; - user_id?: string; + user_id: string; extra_meta?: any; order_type: string; /** @@ -4186,7 +3910,6 @@ type CheckCart = { gstin?: string; cod_available?: boolean; delivery_charges?: number; - custom_cart?: CustomCart; }; /** @returns {CartCheckoutResponse} */ declare function CartCheckoutResponse(): CartCheckoutResponse; @@ -4311,7 +4034,7 @@ type PlatformCartCheckoutDetailV2Request = { employee_code?: string; billing_address?: any; callback_url?: string; - user_id?: string; + user_id: string; extra_meta?: any; order_type: string; /** diff --git a/sdk/platform/Cart/CartPlatformModel.js b/sdk/platform/Cart/CartPlatformModel.js index badf8f2b7..8204ccb79 100644 --- a/sdk/platform/Cart/CartPlatformModel.js +++ b/sdk/platform/Cart/CartPlatformModel.js @@ -199,12 +199,6 @@ const Joi = require("joi"); * @property {Page} [page] */ -/** - * @typedef TagsViewResponse - * @property {boolean} [success] - * @property {string[]} [items] - */ - /** * @typedef SuccessMessage * @property {boolean} [success] @@ -215,7 +209,6 @@ const Joi = require("joi"); * @typedef OperationErrorResponse * @property {boolean} [success] * @property {string} [message] - * @property {string} [error] */ /** @@ -434,8 +427,6 @@ const Joi = require("joi"); * @property {Object} [_custom_json] - Custom data stored in promotion * @property {PromotionDateMeta} [date_meta] * @property {string} [_id] - Promotion id - * @property {string[]} [tags] - * @property {Object[]} [custom_field_meta] - Custom field meta for promotion. */ /** @@ -469,7 +460,6 @@ const Joi = require("joi"); * @property {Object} buy_rules * @property {Object} [_custom_json] * @property {PromotionDateMeta} [date_meta] - * @property {string[]} [tags] */ /** @@ -497,8 +487,6 @@ const Joi = require("joi"); * @property {Object} buy_rules * @property {Object} [_custom_json] * @property {PromotionDateMeta} [date_meta] - * @property {string[]} [tags] - * @property {Object[]} [custom_field_meta] - Custom field meta for promotion. */ /** @@ -534,95 +522,28 @@ const Joi = require("joi"); * @property {boolean} [enabled] */ -/** - * @typedef OrderPlacing - * @property {boolean} [enabled] - * @property {string} [message] - */ - -/** - * @typedef PanCard - * @property {boolean} [enabled] - * @property {number} [cod_threshold_amount] - * @property {number} [online_threshold_amount] - */ - /** * @typedef CartMetaConfigUpdate * @property {number} [min_cart_value] - * @property {number} [max_cart_value] * @property {boolean} [bulk_coupons] * @property {number} [max_cart_items] * @property {string} [gift_display_text] * @property {DeliveryCharges} [delivery_charges] - * @property {DeliveryCharges} [international_delivery_charges] * @property {boolean} [revenue_engine_coupon] * @property {number} [gift_pricing] * @property {boolean} [enabled] - * @property {boolean} [is_active] - * @property {OrderPlacing} [order_placing] - * @property {string} [name] - * @property {string[]} [article_tags] - * @property {boolean} [allow_coupon_with_rewards] - * @property {boolean} [gst_input] - * @property {boolean} [staff_selection] - * @property {boolean} [placing_for_customer] - * @property {PanCard} [pan_card] - */ - -/** - * @typedef TimeStampIDResponse - * @property {string} [id] - * @property {string} [app_id] - * @property {number} [company_id] - * @property {string} [created_on] - * @property {string} [updated_on] - * @property {string} [last_modified_by] - */ - -/** - * @typedef CartMetaConfigDetailResponse - * @property {boolean} [success] - * @property {Object} [data] - */ - -/** - * @typedef CartMetaConfigListObj - * @property {string} [id] - * @property {string} [name] - * @property {string} [slug] - * @property {boolean} [is_active] - * @property {string} [created_on] - */ - -/** - * @typedef CartMetaConfigListResponse - * @property {boolean} [success] - * @property {CartMetaConfigListObj[]} [data] */ /** * @typedef CartMetaConfigAdd * @property {number} [min_cart_value] - * @property {number} [max_cart_value] * @property {boolean} [bulk_coupons] * @property {number} [max_cart_items] * @property {string} [gift_display_text] * @property {DeliveryCharges} [delivery_charges] - * @property {DeliveryCharges} [international_delivery_charges] * @property {boolean} [revenue_engine_coupon] * @property {number} [gift_pricing] * @property {boolean} [enabled] - * @property {boolean} [is_active] - * @property {OrderPlacing} [order_placing] - * @property {string} name - * @property {string} slug - * @property {string[]} [article_tags] - * @property {boolean} [allow_coupon_with_rewards] - * @property {boolean} [gst_input] - * @property {boolean} [staff_selection] - * @property {boolean} [placing_for_customer] - * @property {PanCard} [pan_card] */ /** @@ -666,10 +587,6 @@ const Joi = require("joi"); * @property {boolean} is_authenticated - Flag indicating whether the user is * authenticated * @property {Article[]} article_ids - The list of article object in the price adjustment - * @property {boolean} [remove_articles] - This field if set true will remove - * all articles in price adjustment if article_ids are present - * @property {boolean} [auto_remove] - This field if set true will remove mop - * type price adjustment. * @property {Object} [meta] * @property {string} cart_id - The ID of the cart */ @@ -694,13 +611,6 @@ const Joi = require("joi"); * @property {Article[]} article_ids - The list of article object in the price adjustment * @property {Object} [meta] * @property {string} cart_id - The ID of the cart - * @property {boolean} [remove_articles] - This field if set true will remove - * all articles in price adjustment if article_ids are present - * @property {boolean} [auto_remove] - This field if set true will remove mop - * type price adjustment. - * @property {string} [distribution_level] - Distribution level of price adjusment - * @property {string} [distribution_type] - Distribution type of price adjusment - * in case of shipment distribution level */ /** @@ -728,13 +638,6 @@ const Joi = require("joi"); * @property {Article[]} article_ids - The list of article object in the price adjustment * @property {Object} [meta] * @property {string} cart_id - The ID of the cart - * @property {boolean} [remove_articles] - This field if set true will remove - * all articles in price adjustment if article_ids are present - * @property {boolean} [auto_remove] - This field if set true will remove mop - * type price adjustment. - * @property {string} [distribution_level] - Distribution level of price adjusment - * @property {string} [distribution_type] - Distribution type of price adjusment - * in case of shipment distribution level */ /** @@ -889,7 +792,6 @@ const Joi = require("joi"); * @property {string} [seller_identifier] * @property {number} [quantity] * @property {BaseInfo} [seller] - * @property {string} [product_name] * @property {Object} [cart_item_meta] * @property {Object} [parent_item_identifiers] * @property {boolean} [is_gift_visible] @@ -966,7 +868,6 @@ const Joi = require("joi"); * @property {string} [promo_id] - Promotion id * @property {Object} [meta] - Meta object for extra data * @property {string} [code] - Promotion code - * @property {Object[]} [custom_field_meta] - Custom field meta for promotion. */ /** @@ -1054,7 +955,6 @@ const Joi = require("joi"); * @property {ProductArticle} [article] * @property {AppliedPromotion[]} [promotions_applied] * @property {ShipmentPromise} [delivery_promise] - * @property {number} [seller_count] * @property {string} [key] * @property {CouponDetails} [coupon] * @property {Object} [bulk_offer] @@ -1300,15 +1200,6 @@ const Joi = require("joi"); * @property {DeliveryChargesConfig} [delivery_charges_config] */ -/** - * @typedef CustomCart - * @property {string} [id] - Id of custom cart config - * @property {string} [cart_name] - Name of custom cart - * @property {string} [cart_type] - Type of custom cart - * @property {boolean} [is_universal] - By default all carts are universal, will - * be false for custom cart - */ - /** * @typedef CartDetailResponse * @property {number} [cart_id] @@ -1337,8 +1228,6 @@ const Joi = require("joi"); * @property {string} [gstin] * @property {AppliedPromotion[]} [applied_promo_details] * @property {string} [pan_no] - * @property {boolean} [is_pan_received] - * @property {CustomCart} [custom_cart] */ /** @@ -1347,7 +1236,6 @@ const Joi = require("joi"); * @property {string} [item_size] * @property {number} [seller_id] * @property {Object[]} [parent_item_identifiers] - * @property {string} [price_factory_type_id] * @property {string[]} [product_group_tags] * @property {string} [article_id] * @property {Object} [article_assignment] @@ -1385,7 +1273,6 @@ const Joi = require("joi"); * @property {Object} [meta] * @property {Object} [extra_meta] * @property {Object} [_custom_json] - * @property {string} [price_factory_type_id] * @property {number} [item_id] * @property {number} [item_index] * @property {CartProductIdentifer} identifiers @@ -1562,7 +1449,6 @@ const Joi = require("joi"); * @property {string} [gstin] * @property {AppliedPromotion[]} [applied_promo_details] * @property {string} [pan_no] - * @property {boolean} [is_pan_received] */ /** @@ -1755,7 +1641,6 @@ const Joi = require("joi"); * @property {AppliedPromotion[]} [applied_promo_details] * @property {boolean} [error] * @property {string} [pan_no] - * @property {boolean} [is_pan_received] */ /** @@ -1778,7 +1663,6 @@ const Joi = require("joi"); * @property {string} [checkout_mode] * @property {Object} [gift_details] * @property {string} [pan_no] - * @property {boolean} [is_pan_received] * @property {string} [comment] * @property {string} [staff_user_id] - Staff user id */ @@ -1845,7 +1729,7 @@ const Joi = require("joi"); * @property {string} [employee_code] * @property {Object} [billing_address] * @property {string} [callback_url] - * @property {string} [user_id] + * @property {string} user_id * @property {Object} [extra_meta] * @property {string} order_type * @property {Files[]} [files] - List of file url @@ -1888,7 +1772,6 @@ const Joi = require("joi"); * @property {string} [gstin] * @property {boolean} [cod_available] * @property {number} [delivery_charges] - * @property {CustomCart} [custom_cart] */ /** @@ -2004,7 +1887,7 @@ const Joi = require("joi"); * @property {string} [employee_code] * @property {Object} [billing_address] * @property {string} [callback_url] - * @property {string} [user_id] + * @property {string} user_id * @property {Object} [extra_meta] * @property {string} order_type * @property {Files[]} [files] - List of file url @@ -2274,14 +2157,6 @@ class CartPlatformModel { }); } - /** @returns {TagsViewResponse} */ - static TagsViewResponse() { - return Joi.object({ - success: Joi.boolean(), - items: Joi.array().items(Joi.string().allow("")), - }); - } - /** @returns {SuccessMessage} */ static SuccessMessage() { return Joi.object({ @@ -2295,7 +2170,6 @@ class CartPlatformModel { return Joi.object({ success: Joi.boolean(), message: Joi.string().allow(""), - error: Joi.string().allow(""), }); } @@ -2555,8 +2429,6 @@ class CartPlatformModel { _custom_json: Joi.any(), date_meta: CartPlatformModel.PromotionDateMeta(), _id: Joi.string().allow(""), - tags: Joi.array().items(Joi.string().allow("")), - custom_field_meta: Joi.array().items(Joi.any()), }); } @@ -2597,7 +2469,6 @@ class CartPlatformModel { .required(), _custom_json: Joi.any(), date_meta: CartPlatformModel.PromotionDateMeta(), - tags: Joi.array().items(Joi.string().allow("")), }); } @@ -2630,8 +2501,6 @@ class CartPlatformModel { .required(), _custom_json: Joi.any(), date_meta: CartPlatformModel.PromotionDateMeta(), - tags: Joi.array().items(Joi.string().allow("")), - custom_field_meta: Joi.array().items(Joi.any()), }); } @@ -2675,84 +2544,17 @@ class CartPlatformModel { }); } - /** @returns {OrderPlacing} */ - static OrderPlacing() { - return Joi.object({ - enabled: Joi.boolean(), - message: Joi.string().allow(""), - }); - } - - /** @returns {PanCard} */ - static PanCard() { - return Joi.object({ - enabled: Joi.boolean(), - cod_threshold_amount: Joi.number(), - online_threshold_amount: Joi.number(), - }); - } - /** @returns {CartMetaConfigUpdate} */ static CartMetaConfigUpdate() { return Joi.object({ min_cart_value: Joi.number(), - max_cart_value: Joi.number(), bulk_coupons: Joi.boolean(), max_cart_items: Joi.number(), gift_display_text: Joi.string().allow(""), delivery_charges: CartPlatformModel.DeliveryCharges(), - international_delivery_charges: CartPlatformModel.DeliveryCharges(), revenue_engine_coupon: Joi.boolean(), gift_pricing: Joi.number(), enabled: Joi.boolean(), - is_active: Joi.boolean(), - order_placing: CartPlatformModel.OrderPlacing(), - name: Joi.string().allow(""), - article_tags: Joi.array().items(Joi.string().allow("")), - allow_coupon_with_rewards: Joi.boolean(), - gst_input: Joi.boolean(), - staff_selection: Joi.boolean(), - placing_for_customer: Joi.boolean(), - pan_card: CartPlatformModel.PanCard(), - }); - } - - /** @returns {TimeStampIDResponse} */ - static TimeStampIDResponse() { - return Joi.object({ - id: Joi.string().allow(""), - app_id: Joi.string().allow(""), - company_id: Joi.number(), - created_on: Joi.string().allow(""), - updated_on: Joi.string().allow(""), - last_modified_by: Joi.string().allow(""), - }); - } - - /** @returns {CartMetaConfigDetailResponse} */ - static CartMetaConfigDetailResponse() { - return Joi.object({ - success: Joi.boolean(), - data: Joi.any(), - }); - } - - /** @returns {CartMetaConfigListObj} */ - static CartMetaConfigListObj() { - return Joi.object({ - id: Joi.string().allow(""), - name: Joi.string().allow(""), - slug: Joi.string().allow(""), - is_active: Joi.boolean(), - created_on: Joi.string().allow(""), - }); - } - - /** @returns {CartMetaConfigListResponse} */ - static CartMetaConfigListResponse() { - return Joi.object({ - success: Joi.boolean(), - data: Joi.array().items(CartPlatformModel.CartMetaConfigListObj()), }); } @@ -2760,25 +2562,13 @@ class CartPlatformModel { static CartMetaConfigAdd() { return Joi.object({ min_cart_value: Joi.number(), - max_cart_value: Joi.number(), bulk_coupons: Joi.boolean(), max_cart_items: Joi.number(), gift_display_text: Joi.string().allow(""), delivery_charges: CartPlatformModel.DeliveryCharges(), - international_delivery_charges: CartPlatformModel.DeliveryCharges(), revenue_engine_coupon: Joi.boolean(), gift_pricing: Joi.number(), enabled: Joi.boolean(), - is_active: Joi.boolean(), - order_placing: CartPlatformModel.OrderPlacing(), - name: Joi.string().allow("").required(), - slug: Joi.string().allow("").required(), - article_tags: Joi.array().items(Joi.string().allow("")), - allow_coupon_with_rewards: Joi.boolean(), - gst_input: Joi.boolean(), - staff_selection: Joi.boolean(), - placing_for_customer: Joi.boolean(), - pan_card: CartPlatformModel.PanCard(), }); } @@ -2823,8 +2613,6 @@ class CartPlatformModel { allowed_refund: Joi.boolean(), is_authenticated: Joi.boolean().required(), article_ids: Joi.array().items(CartPlatformModel.Article()).required(), - remove_articles: Joi.boolean(), - auto_remove: Joi.boolean(), meta: Joi.any(), cart_id: Joi.string().allow("").required(), }); @@ -2846,10 +2634,6 @@ class CartPlatformModel { article_ids: Joi.array().items(CartPlatformModel.Article()).required(), meta: Joi.any(), cart_id: Joi.string().allow("").required(), - remove_articles: Joi.boolean(), - auto_remove: Joi.boolean(), - distribution_level: Joi.string().allow(""), - distribution_type: Joi.string().allow(""), }); } @@ -2876,10 +2660,6 @@ class CartPlatformModel { article_ids: Joi.array().items(CartPlatformModel.Article()).required(), meta: Joi.any(), cart_id: Joi.string().allow("").required(), - remove_articles: Joi.boolean(), - auto_remove: Joi.boolean(), - distribution_level: Joi.string().allow(""), - distribution_type: Joi.string().allow(""), }); } @@ -3069,7 +2849,6 @@ class CartPlatformModel { seller_identifier: Joi.string().allow(""), quantity: Joi.number(), seller: CartPlatformModel.BaseInfo(), - product_name: Joi.string().allow(""), cart_item_meta: Joi.any(), parent_item_identifiers: Joi.any(), is_gift_visible: Joi.boolean(), @@ -3157,7 +2936,6 @@ class CartPlatformModel { promo_id: Joi.string().allow(""), meta: Joi.any(), code: Joi.string().allow("").allow(null), - custom_field_meta: Joi.array().items(Joi.any()), }); } @@ -3273,7 +3051,6 @@ class CartPlatformModel { CartPlatformModel.AppliedPromotion() ), delivery_promise: CartPlatformModel.ShipmentPromise(), - seller_count: Joi.number(), key: Joi.string().allow(""), coupon: CartPlatformModel.CouponDetails(), bulk_offer: Joi.any(), @@ -3565,16 +3342,6 @@ class CartPlatformModel { }); } - /** @returns {CustomCart} */ - static CustomCart() { - return Joi.object({ - id: Joi.string().allow(""), - cart_name: Joi.string().allow(""), - cart_type: Joi.string().allow(""), - is_universal: Joi.boolean(), - }); - } - /** @returns {CartDetailResponse} */ static CartDetailResponse() { return Joi.object({ @@ -3606,8 +3373,6 @@ class CartPlatformModel { CartPlatformModel.AppliedPromotion() ), pan_no: Joi.string().allow(""), - is_pan_received: Joi.boolean(), - custom_cart: CartPlatformModel.CustomCart(), }); } @@ -3620,7 +3385,6 @@ class CartPlatformModel { parent_item_identifiers: Joi.array().items( Joi.object().pattern(/\S/, Joi.string().allow("")) ), - price_factory_type_id: Joi.string().allow(""), product_group_tags: Joi.array().items(Joi.string().allow("").allow(null)), article_id: Joi.string().allow(""), article_assignment: Joi.any(), @@ -3662,7 +3426,6 @@ class CartPlatformModel { meta: Joi.any(), extra_meta: Joi.any(), _custom_json: Joi.any(), - price_factory_type_id: Joi.string().allow(""), item_id: Joi.number(), item_index: Joi.number(), identifiers: CartPlatformModel.CartProductIdentifer().required(), @@ -3873,7 +3636,6 @@ class CartPlatformModel { CartPlatformModel.AppliedPromotion() ), pan_no: Joi.string().allow(""), - is_pan_received: Joi.boolean(), }); } @@ -4107,7 +3869,6 @@ class CartPlatformModel { ), error: Joi.boolean(), pan_no: Joi.string().allow(""), - is_pan_received: Joi.boolean(), }); } @@ -4137,7 +3898,6 @@ class CartPlatformModel { checkout_mode: Joi.string().allow(""), gift_details: Joi.any().allow(null), pan_no: Joi.string().allow(""), - is_pan_received: Joi.boolean(), comment: Joi.string().allow(""), staff_user_id: Joi.string().allow("").allow(null), }); @@ -4220,7 +3980,7 @@ class CartPlatformModel { employee_code: Joi.string().allow("").allow(null), billing_address: Joi.any(), callback_url: Joi.string().allow("").allow(null), - user_id: Joi.string().allow("").allow(null), + user_id: Joi.string().allow("").allow(null).required(), extra_meta: Joi.any(), order_type: Joi.string().allow("").required(), files: Joi.array().items(CartPlatformModel.Files()), @@ -4265,7 +4025,6 @@ class CartPlatformModel { gstin: Joi.string().allow(""), cod_available: Joi.boolean(), delivery_charges: Joi.number(), - custom_cart: CartPlatformModel.CustomCart(), }); } @@ -4403,7 +4162,7 @@ class CartPlatformModel { employee_code: Joi.string().allow("").allow(null), billing_address: Joi.any(), callback_url: Joi.string().allow("").allow(null), - user_id: Joi.string().allow("").allow(null), + user_id: Joi.string().allow("").allow(null).required(), extra_meta: Joi.any(), order_type: Joi.string().allow("").required(), files: Joi.array().items(CartPlatformModel.Files()), diff --git a/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts b/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts index 8bb6c9ed4..be6282bea 100644 --- a/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +++ b/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts @@ -9,28 +9,12 @@ declare class Catalog { * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * + * @returns {Promise} - Success response * @name addCollectionItems * @summary: Add items to a collection * @description: Adds items to a collection specified by its `id`. See `CollectionItemRequest` for the list of attributes needed to add items to an collection. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/addCollectionItems/). */ - addCollectionItems({ id, body, requestHeaders }?: CatalogPlatformApplicationValidator.AddCollectionItemsParam, { responseHeaders }?: object): Promise; - /** - * @param {CatalogPlatformApplicationValidator.AddProductsInPriceFactoryByZoneIdParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name addProductsInPriceFactoryByZoneId - * @summary: - * @description: This API allows to add products in price factory. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/addProductsInPriceFactoryByZoneId/). - */ - addProductsInPriceFactoryByZoneId({ id, zoneId, body, requestHeaders }?: CatalogPlatformApplicationValidator.AddProductsInPriceFactoryByZoneIdParam, { responseHeaders }?: object): Promise; + addCollectionItems({ id, body, requestHeaders }?: CatalogPlatformApplicationValidator.AddCollectionItemsParam, { responseHeaders }?: object): Promise; /** * @param {CatalogPlatformApplicationValidator.CreateAppCategoryReturnConfigurationParam} arg * - Arg object @@ -43,19 +27,6 @@ declare class Catalog { * @description: Create Category level Application Return Configuration setttings - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createAppCategoryReturnConfiguration/). */ createAppCategoryReturnConfiguration({ body, requestHeaders }?: CatalogPlatformApplicationValidator.CreateAppCategoryReturnConfigurationParam, { responseHeaders }?: object): Promise; - /** - * @param {CatalogPlatformApplicationValidator.CreateAppPriceFactoryParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name createAppPriceFactory - * @summary: Create price factory - * @description: This API allows to create price factory. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createAppPriceFactory/). - */ - createAppPriceFactory({ body, requestHeaders }?: CatalogPlatformApplicationValidator.CreateAppPriceFactoryParam, { responseHeaders }?: object): Promise; /** * @param {CatalogPlatformApplicationValidator.CreateAppReturnConfigurationParam} arg * - Arg object @@ -68,20 +39,6 @@ declare class Catalog { * @description: Create Return configuration level set for an application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createAppReturnConfiguration/). */ createAppReturnConfiguration({ body, requestHeaders }?: CatalogPlatformApplicationValidator.CreateAppReturnConfigurationParam, { responseHeaders }?: object): Promise; - /** - * @param {CatalogPlatformApplicationValidator.CreateAutocompleteSettingsParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name createAutocompleteSettings - * @summary: Create autocomplete settings config for an application - * @description: This API allows to create autocomplete settings for an application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createAutocompleteSettings/). - */ - createAutocompleteSettings({ body, requestHeaders }?: CatalogPlatformApplicationValidator.CreateAutocompleteSettingsParam, { responseHeaders }?: object): Promise; /** * @param {CatalogPlatformApplicationValidator.CreateCollectionParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -163,93 +120,12 @@ declare class Catalog { * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * + * @returns {Promise} - Success response * @name createListingConfiguration * @summary: Add configuration for listings * @description: Add configuration for listing. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createListingConfiguration/). */ - createListingConfiguration({ configType, body, requestHeaders }?: CatalogPlatformApplicationValidator.CreateListingConfigurationParam, { responseHeaders }?: object): Promise; - /** - * @param {CatalogPlatformApplicationValidator.CreateMerchandisingRuleBoostActionParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name createMerchandisingRuleBoostAction - * @summary: Create Merchandising Rule's Boost action details - * @description: This allows you to create Boost action of a merchandising rule. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createMerchandisingRuleBoostAction/). - */ - createMerchandisingRuleBoostAction({ merchandisingRuleId, body, requestHeaders }?: CatalogPlatformApplicationValidator.CreateMerchandisingRuleBoostActionParam, { responseHeaders }?: object): Promise; - /** - * @param {CatalogPlatformApplicationValidator.CreateMerchandisingRuleBuryActionParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name createMerchandisingRuleBuryAction - * @summary: Get Merchandising Rule's Bury action details - * @description: This allows you to create Bury action of a merchandising rule. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createMerchandisingRuleBuryAction/). - */ - createMerchandisingRuleBuryAction({ merchandisingRuleId, body, requestHeaders }?: CatalogPlatformApplicationValidator.CreateMerchandisingRuleBuryActionParam, { responseHeaders }?: object): Promise; - /** - * @param {CatalogPlatformApplicationValidator.CreateMerchandisingRuleHideActionParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name createMerchandisingRuleHideAction - * @summary: Create Merchandising Rule's Hide action details - * @description: This allows you to create hide action of a merchandising rule. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createMerchandisingRuleHideAction/). - */ - createMerchandisingRuleHideAction({ merchandisingRuleId, body, requestHeaders }?: CatalogPlatformApplicationValidator.CreateMerchandisingRuleHideActionParam, { responseHeaders }?: object): Promise; - /** - * @param {CatalogPlatformApplicationValidator.CreateMerchandisingRulePinActionParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name createMerchandisingRulePinAction - * @summary: Create Merchandising Rule's action details - * @description: This allows you to create pin action of a merchandising rule. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createMerchandisingRulePinAction/). - */ - createMerchandisingRulePinAction({ merchandisingRuleId, body, requestHeaders }?: CatalogPlatformApplicationValidator.CreateMerchandisingRulePinActionParam, { responseHeaders }?: object): Promise; - /** - * @param {CatalogPlatformApplicationValidator.CreateMerchandisingRuleQueryParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name createMerchandisingRuleQuery - * @summary: Create a Merchandising Rule's query - * @description: This allows you to Create a merchandising rule's query. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createMerchandisingRuleQuery/). - */ - createMerchandisingRuleQuery({ body, requestHeaders }?: CatalogPlatformApplicationValidator.CreateMerchandisingRuleQueryParam, { responseHeaders }?: object): Promise; - /** - * @param {CatalogPlatformApplicationValidator.CreateProductPriceFactoryBulkJobParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name createProductPriceFactoryBulkJob - * @summary: - * @description: This API allows to create bulk job for adding products in price factory. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createProductPriceFactoryBulkJob/). - */ - createProductPriceFactoryBulkJob({ id, body, requestHeaders }?: CatalogPlatformApplicationValidator.CreateProductPriceFactoryBulkJobParam, { responseHeaders }?: object): Promise; + createListingConfiguration({ configType, body, requestHeaders }?: CatalogPlatformApplicationValidator.CreateListingConfigurationParam, { responseHeaders }?: object): Promise; /** * @param {CatalogPlatformApplicationValidator.CreateSearchConfigurationParam} arg * - Arg object @@ -264,19 +140,6 @@ declare class Catalog { * @description: This view allows you to modify searchable attributes for an application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createSearchConfiguration/). */ createSearchConfiguration({ body, requestHeaders }?: CatalogPlatformApplicationValidator.CreateSearchConfigurationParam, { responseHeaders }?: object): Promise; - /** - * @param {CatalogPlatformApplicationValidator.CreateSearchRerankParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name createSearchRerank - * @summary: Create search rerank for an application - * @description: This view allows you to create search rerank attributes for an application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createSearchRerank/). - */ - createSearchRerank({ body, requestHeaders }?: CatalogPlatformApplicationValidator.CreateSearchRerankParam, { responseHeaders }?: object): Promise; /** * @param {CatalogPlatformApplicationValidator.DeleteAppCategoryReturnConfigurationParam} arg * - Arg object @@ -363,32 +226,6 @@ declare class Catalog { * @description: Delete a keywords by it's id. Returns an object that tells whether the keywords was deleted successfully - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/deleteSearchKeywords/). */ deleteSearchKeywords({ id, requestHeaders }?: CatalogPlatformApplicationValidator.DeleteSearchKeywordsParam, { responseHeaders }?: object): Promise; - /** - * @param {CatalogPlatformApplicationValidator.DeleteSearchRerankConfigurationParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name deleteSearchRerankConfiguration - * @summary: Delete search rerank configuration for an application - * @description: This view allows you to delete search rerank configuration for an application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/deleteSearchRerankConfiguration/). - */ - deleteSearchRerankConfiguration({ id, requestHeaders }?: CatalogPlatformApplicationValidator.DeleteSearchRerankConfigurationParam, { responseHeaders }?: object): Promise; - /** - * @param {CatalogPlatformApplicationValidator.EditAppPriceFactoryParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name editAppPriceFactory - * @summary: - * @description: This API allows to update price factory. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/editAppPriceFactory/). - */ - editAppPriceFactory({ id, body, requestHeaders }?: CatalogPlatformApplicationValidator.EditAppPriceFactoryParam, { responseHeaders }?: object): Promise; /** * @param {CatalogPlatformApplicationValidator.GetAllCollectionsParam} arg * - Arg object @@ -401,7 +238,7 @@ declare class Catalog { * @summary: List all the collections * @description: A Collection allows you to organize your products into hierarchical groups. For example, a dress might be in the category _Clothing_, the individual product might also be in the collection _Summer_. On successful request, returns all the collections as specified in `CollectionListingSchema` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAllCollections/). */ - getAllCollections({ q, scheduleStatus, type, tag, isActive, pageNo, pageSize, requestHeaders, }?: CatalogPlatformApplicationValidator.GetAllCollectionsParam, { responseHeaders }?: object): Promise; + getAllCollections({ q, scheduleStatus, type, tags, isActive, pageNo, pageSize, requestHeaders, }?: CatalogPlatformApplicationValidator.GetAllCollectionsParam, { responseHeaders }?: object): Promise; /** * @param {CatalogPlatformApplicationValidator.GetAllSearchKeywordParam} arg * - Arg object @@ -413,7 +250,7 @@ declare class Catalog { * @summary: List all Search Custom Keyword Listing * @description: Custom Search Keyword allows you to map conditions with keywords to give you the ultimate results - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAllSearchKeyword/). */ - getAllSearchKeyword({ pageNo, pageSize, q, isActive, requestHeaders }?: CatalogPlatformApplicationValidator.GetAllSearchKeywordParam, { responseHeaders }?: object): Promise; + getAllSearchKeyword({ requestHeaders }?: any, { responseHeaders }?: object): Promise; /** * @param {CatalogPlatformApplicationValidator.GetAppCategoryReturnConfigParam} arg * - Arg object @@ -447,16 +284,16 @@ declare class Catalog { * @summary: Get list of locations * @description: This API allows to view all the locations asscoiated to a application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAppLocations/). */ - getAppLocations({ storeType, uid, q, stage, pageNo, pageSize, tags, storeTypes, companyUids, requestHeaders, }?: CatalogPlatformApplicationValidator.GetAppLocationsParam, { responseHeaders }?: object): Promise; + getAppLocations({ storeType, uid, q, stage, pageNo, pageSize, tags, storeTypes, requestHeaders, }?: CatalogPlatformApplicationValidator.GetAppLocationsParam, { responseHeaders }?: object): Promise; /** * @param {Object} arg - Arg object. - * @param {number} arg.companyId - Id of the company whose locations are to fetched + * @param {string} arg.companyId - Id of the company whose locations are to fetched * @param {string} arg.applicationId - Id of the application whose locations * are to fetched * @param {string} [arg.storeType] - Helps to sort the location list on the * basis of location type. - * @param {string} [arg.uid] - Helps to sort the location list on the basis - * of uid list. + * @param {number[]} [arg.uid] - Helps to sort the location list on the + * basis of uid list. * @param {string} [arg.q] - Query that is to be searched. * @param {string} [arg.stage] - To filter companies on basis of verified or * unverified companies. @@ -464,49 +301,21 @@ declare class Catalog { * page. Default is 20. * @param {string[]} [arg.tags] - Get locations filtered by tags. * @param {string[]} [arg.storeTypes] - Get locations filtered by store types. - * @param {number[]} [arg.companyUids] - Filter stores by company IDs - * available in the application. * @returns {Paginator} * @summary: Get list of locations * @description: This API allows to view all the locations asscoiated to a application. */ - getAppLocationsPaginator({ companyId, applicationId, storeType, uid, q, stage, pageSize, tags, storeTypes, companyUids, }?: { - companyId: number; + getAppLocationsPaginator({ companyId, applicationId, storeType, uid, q, stage, pageSize, tags, storeTypes, }?: { + companyId: string; applicationId: string; storeType?: string; - uid?: string; + uid?: number[]; q?: string; stage?: string; pageSize?: number; tags?: string[]; storeTypes?: string[]; - companyUids?: number[]; }): Paginator; - /** - * @param {CatalogPlatformApplicationValidator.GetAppPriceFactoriesParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name getAppPriceFactories - * @summary: Get price factory - * @description: This API allows to get price factories. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAppPriceFactories/). - */ - getAppPriceFactories({ isActive, factoryTypeId, code, pageNo, pageSize, requestHeaders }?: CatalogPlatformApplicationValidator.GetAppPriceFactoriesParam, { responseHeaders }?: object): Promise; - /** - * @param {CatalogPlatformApplicationValidator.GetAppPriceFactoryParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getAppPriceFactory - * @summary: Get price factory - * @description: This API allows to get price factory. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAppPriceFactory/). - */ - getAppPriceFactory({ id, requestHeaders }?: CatalogPlatformApplicationValidator.GetAppPriceFactoryParam, { responseHeaders }?: object): Promise; /** * @param {CatalogPlatformApplicationValidator.GetAppProductParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -556,7 +365,7 @@ declare class Catalog { getAppicationProducts({ q, f, c, filters, isDependent, sortOn, pageId, pageSize, pageNo, pageType, itemIds, requestHeaders, }?: CatalogPlatformApplicationValidator.GetAppicationProductsParam, { responseHeaders }?: object): Promise; /** * @param {Object} arg - Arg object. - * @param {number} arg.companyId - A `company_id` is a unique identifier for + * @param {string} arg.companyId - A `company_id` is a unique identifier for * a particular seller account. * @param {string} arg.applicationId - A `application_id` is a unique * identifier for a particular sale channel. @@ -579,13 +388,13 @@ declare class Catalog { * values below. * @param {number} [arg.pageSize] - Number of items to retrieve in each * page. Default is 12. - * @param {string[]} [arg.itemIds] - Item Ids of product + * @param {number[]} [arg.itemIds] - Item Ids of product * @returns {Paginator} * @summary: List the products * @description: List all the products associated with a brand, collection or category in a requested sort order. The API additionally supports arbitrary search queries that may refer the name of any product, brand, category or collection. If successful, returns a paginated list of products specified in `ApplicationProductListingResponse` */ getAppicationProductsPaginator({ companyId, applicationId, q, f, c, filters, isDependent, sortOn, pageSize, itemIds, }?: { - companyId: number; + companyId: string; applicationId: string; q?: string; f?: string; @@ -594,7 +403,7 @@ declare class Catalog { isDependent?: boolean; sortOn?: string; pageSize?: number; - itemIds?: string[]; + itemIds?: number[]; }): Paginator; /** * @param {CatalogPlatformApplicationValidator.GetApplicationBrandListingParam} arg @@ -642,7 +451,7 @@ declare class Catalog { getApplicationBrands({ department, pageNo, pageSize, q, brandId, requestHeaders }?: CatalogPlatformApplicationValidator.GetApplicationBrandsParam, { responseHeaders }?: object): Promise; /** * @param {Object} arg - Arg object. - * @param {number} arg.companyId - A `company_id` is a unique identifier for + * @param {string} arg.companyId - A `company_id` is a unique identifier for * a particular seller account. * @param {string} arg.applicationId - A `application_id` is a unique * identifier for a particular sale channel. @@ -654,19 +463,19 @@ declare class Catalog { * page. Default is 12. * @param {string} [arg.q] - Search query with brand name.Use this parameter * to search brands by brand name. - * @param {number} [arg.brandId] - Helps to sort the brands list on the + * @param {number[]} [arg.brandId] - Helps to sort the brands list on the * basis of uid list. * @returns {Paginator} * @summary: List all the brands * @description: A brand is the name under which a product is being sold. Use this API to list all the brands. You can pass optionally filter the brands by the department. If successful, returns a paginated list of brands specified in `BrandListingResponse` */ getApplicationBrandsPaginator({ companyId, applicationId, department, pageSize, q, brandId, }?: { - companyId: number; + companyId: string; applicationId: string; department?: string; pageSize?: number; q?: string; - brandId?: number; + brandId?: number[]; }): Paginator; /** * @param {CatalogPlatformApplicationValidator.GetApplicationCategoryListingParam} arg @@ -682,7 +491,7 @@ declare class Catalog { getApplicationCategoryListing({ departmentId, pageNo, pageSize, q, requestHeaders }?: CatalogPlatformApplicationValidator.GetApplicationCategoryListingParam, { responseHeaders }?: object): Promise; /** * @param {Object} arg - Arg object. - * @param {number} arg.companyId - A `company_id` is a unique identifier for + * @param {string} arg.companyId - A `company_id` is a unique identifier for * a particular seller account. * @param {string} arg.applicationId - A `application_id` is a unique * identifier for a particular sale channel. @@ -697,7 +506,7 @@ declare class Catalog { * @description: A brand is the name under which a product is being sold. Use this API to list all the brands. You can pass optionally filter the brands by the department. If successful, returns a paginated list of brands specified in `BrandListingResponse` */ getApplicationCategoryListingPaginator({ companyId, applicationId, departmentId, pageSize, q, }?: { - companyId: number; + companyId: string; applicationId: string; departmentId?: number; pageSize?: number; @@ -719,7 +528,7 @@ declare class Catalog { getApplicationDepartmentListing({ pageNo, pageSize, q, requestHeaders }?: CatalogPlatformApplicationValidator.GetApplicationDepartmentListingParam, { responseHeaders }?: object): Promise; /** * @param {Object} arg - Arg object. - * @param {number} arg.companyId - A `company_id` is a unique identifier for + * @param {string} arg.companyId - A `company_id` is a unique identifier for * a particular seller account. * @param {string} arg.applicationId - A `application_id` is a unique * identifier for a particular sale channel. @@ -732,64 +541,63 @@ declare class Catalog { * @description: Departments are a way to categorise similar products. A product can lie in multiple departments. For example, a skirt can below to the 'Women's Fashion' Department while a handbag can lie in 'Women's Accessories' Department. Use this API to list all the application departments. If successful, returns the list of departments specified in `ApplicationDepartmentListingResponse` */ getApplicationDepartmentListingPaginator({ companyId, applicationId, pageSize, q, }?: { - companyId: number; + companyId: string; applicationId: string; pageSize?: number; q?: string; }): Paginator; /** - * @param {CatalogPlatformApplicationValidator.GetAutocompleteConfigParam} arg + * @param {CatalogPlatformApplicationValidator.GetApplicationFilterKeysParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - + * @returns {Promise} - * Success response - * @name getAutocompleteConfig - * @summary: List all Autocomplete Keyword Listing - * @description: Custom Autocomplete Keyword allows you to map conditions with keywords to give you the ultimate results - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAutocompleteConfig/). + * @name getApplicationFilterKeys + * @summary: Get filters keys of the filter options. + * @description: Get query filters keys to configure a collection - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getApplicationFilterKeys/). */ - getAutocompleteConfig({ pageNo, pageSize, q, isActive, requestHeaders }?: CatalogPlatformApplicationValidator.GetAutocompleteConfigParam, { responseHeaders }?: object): Promise; + getApplicationFilterKeys({ c, requestHeaders }?: CatalogPlatformApplicationValidator.GetApplicationFilterKeysParam, { responseHeaders }?: object): Promise; /** - * @param {CatalogPlatformApplicationValidator.GetAutocompleteKeywordDetailParam} arg + * @param {CatalogPlatformApplicationValidator.GetApplicationFilterValuesParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - + * @returns {Promise} - * Success response - * @name getAutocompleteKeywordDetail - * @summary: Get a Autocomplete Keywords Details - * @description: Get the details of a words by its `id`. If successful, returns a keywords resource in the response body specified in `GetAutocompleteWordsResponseSchema` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAutocompleteKeywordDetail/). + * @name getApplicationFilterValues + * @summary: Get values of the selected value for the filter options. + * @description: Get query filters keys to configure a collection - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getApplicationFilterValues/). */ - getAutocompleteKeywordDetail({ id, requestHeaders }?: CatalogPlatformApplicationValidator.GetAutocompleteKeywordDetailParam, { responseHeaders }?: object): Promise; + getApplicationFilterValues({ filterKey, c, collectionId, pageNo, pageSize, q, requestHeaders }?: CatalogPlatformApplicationValidator.GetApplicationFilterValuesParam, { responseHeaders }?: object): Promise; /** - * @param {CatalogPlatformApplicationValidator.GetAutocompletePreviewParam} arg + * @param {CatalogPlatformApplicationValidator.GetAutocompleteConfigParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name getAutocompletePreview - * @summary: Get autocomplete suggestions as per config for an application - * @description: This API allows to get autocomplete suggestions as per config. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAutocompletePreview/). + * @returns {Promise} - + * Success response + * @name getAutocompleteConfig + * @summary: List all Autocomplete Keyword Listing + * @description: Custom Autocomplete Keyword allows you to map conditions with keywords to give you the ultimate results - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAutocompleteConfig/). */ - getAutocompletePreview({ q, categorySuggestion, brandSuggestion, collectionSuggestion, productSuggestion, querySuggestion, requestHeaders, }?: CatalogPlatformApplicationValidator.GetAutocompletePreviewParam, { responseHeaders }?: object): Promise; + getAutocompleteConfig({ requestHeaders }?: any, { responseHeaders }?: object): Promise; /** - * @param {CatalogPlatformApplicationValidator.GetAutocompleteSettingsParam} arg + * @param {CatalogPlatformApplicationValidator.GetAutocompleteKeywordDetailParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - + * @returns {Promise} - * Success response - * @name getAutocompleteSettings - * @summary: Get autocomplete settings config for an application - * @description: This API allows to get autocomplete settings config for an application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAutocompleteSettings/). + * @name getAutocompleteKeywordDetail + * @summary: Get a Autocomplete Keywords Details + * @description: Get the details of a words by its `id`. If successful, returns a keywords resource in the response body specified in `GetAutocompleteWordsResponseSchema` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAutocompleteKeywordDetail/). */ - getAutocompleteSettings({ requestHeaders }?: any, { responseHeaders }?: object): Promise; + getAutocompleteKeywordDetail({ id, requestHeaders }?: CatalogPlatformApplicationValidator.GetAutocompleteKeywordDetailParam, { responseHeaders }?: object): Promise; /** * @param {CatalogPlatformApplicationValidator.GetCatalogConfigurationParam} arg * - Arg object @@ -839,6 +647,19 @@ declare class Catalog { * @description: Get the details of a collection by its `slug`. If successful, returns a Collection resource in the response body specified in `CollectionDetailResponse` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getCollectionDetail/). */ getCollectionDetail({ slug, requestHeaders }?: CatalogPlatformApplicationValidator.GetCollectionDetailParam, { responseHeaders }?: object): Promise; + /** + * @param {CatalogPlatformApplicationValidator.GetCollectionItemsParam} arg + * - Arg object + * + * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` + * @param {import("../PlatformAPIClient").Options} - Options + * @returns {Promise} - + * Success response + * @name getCollectionItems + * @summary: Get the items for a collection + * @description: Get items from a collection specified by its `id`. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getCollectionItems/). + */ + getCollectionItems({ id, sortOn, pageId, pageSize, requestHeaders }?: CatalogPlatformApplicationValidator.GetCollectionItemsParam, { responseHeaders }?: object): Promise; /** * @param {CatalogPlatformApplicationValidator.GetConfigurationByTypeParam} arg * - Arg object @@ -865,7 +686,7 @@ declare class Catalog { * @summary: Get configuration metadata details for catalog for admin panel * @description: Get the configuraion metadata details for catalog. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getConfigurationMetadata/). */ - getConfigurationMetadata({ configType, templateSlug, requestHeaders }?: CatalogPlatformApplicationValidator.GetConfigurationMetadataParam, { responseHeaders }?: object): Promise; + getConfigurationMetadata({ configType, templateSlug, pageNo, pageSize, q, requestHeaders }?: CatalogPlatformApplicationValidator.GetConfigurationMetadataParam, { responseHeaders }?: object): Promise; /** * @param {CatalogPlatformApplicationValidator.GetConfigurationsParam} arg * - Arg object @@ -879,18 +700,6 @@ declare class Catalog { * @description: configured details for catalog. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getConfigurations/). */ getConfigurations({ requestHeaders }?: any, { responseHeaders }?: object): Promise; - /** - * @param {CatalogPlatformApplicationValidator.GetConfigurationsFilterMetadataParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getConfigurationsFilterMetadata - * @summary: Get filter details for application - * @description: configured details for catalog. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getConfigurationsFilterMetadata/). - */ - getConfigurationsFilterMetadata({ filter, requestHeaders }?: CatalogPlatformApplicationValidator.GetConfigurationsFilterMetadataParam, { responseHeaders }?: object): Promise; /** * @param {CatalogPlatformApplicationValidator.GetDepartmentsParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -914,7 +723,7 @@ declare class Catalog { * @summary: Get Inventory for company * @description: This API allows get Inventory data for particular company grouped by size and store. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getDiscountedInventoryBySizeIdentifier/). */ - getDiscountedInventoryBySizeIdentifier({ itemId, sizeIdentifier, pageNo, pageSize, locationIds, requestHeaders, }?: CatalogPlatformApplicationValidator.GetDiscountedInventoryBySizeIdentifierParam, { responseHeaders }?: object): Promise; + getDiscountedInventoryBySizeIdentifier({ itemId, sizeIdentifier, pageNo, pageSize, q, locationIds, requestHeaders, }?: CatalogPlatformApplicationValidator.GetDiscountedInventoryBySizeIdentifierParam, { responseHeaders }?: object): Promise; /** * @param {CatalogPlatformApplicationValidator.GetGroupConfigurationsParam} arg * - Arg object @@ -933,99 +742,12 @@ declare class Catalog { * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response + * @returns {Promise} - Success response * @name getListingConfigurations * @summary: Get the details of the application configured configurations of listing config types. * @description: Get the details of the application configured configurations of listing config types. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getListingConfigurations/). */ - getListingConfigurations({ configType, pageNo, pageSize, search, uids, requestHeaders }?: CatalogPlatformApplicationValidator.GetListingConfigurationsParam, { responseHeaders }?: object): Promise; - /** - * @param {CatalogPlatformApplicationValidator.GetLivePreviewParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getLivePreview - * @summary: Get live preview of a Merchandising Rule - * @description: This allows you to get live preview of a merchandising rule. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getLivePreview/). - */ - getLivePreview({ merchandisingRuleId, searchKeyword, requestHeaders }?: CatalogPlatformApplicationValidator.GetLivePreviewParam, { responseHeaders }?: object): Promise; - /** - * @param {CatalogPlatformApplicationValidator.GetMerchandisingQueryParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getMerchandisingQuery - * @summary: Get Merchandising Rule's query details - * @description: This allows you to get details of a merchandising rule's query. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getMerchandisingQuery/). - */ - getMerchandisingQuery({ merchandisingRuleId, requestHeaders }?: CatalogPlatformApplicationValidator.GetMerchandisingQueryParam, { responseHeaders }?: object): Promise; - /** - * @param {CatalogPlatformApplicationValidator.GetMerchandisingRuleBoostActionParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name getMerchandisingRuleBoostAction - * @summary: Get Merchandising Rule's Boost action details - * @description: This allows you to get details of Boost action of a merchandising rule. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getMerchandisingRuleBoostAction/). - */ - getMerchandisingRuleBoostAction({ merchandisingRuleId, requestHeaders }?: CatalogPlatformApplicationValidator.GetMerchandisingRuleBoostActionParam, { responseHeaders }?: object): Promise; - /** - * @param {CatalogPlatformApplicationValidator.GetMerchandisingRuleBuryActionParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name getMerchandisingRuleBuryAction - * @summary: Get Merchandising Rule's Bury action details - * @description: This allows you to get details of Bury action of a merchandising rule. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getMerchandisingRuleBuryAction/). - */ - getMerchandisingRuleBuryAction({ merchandisingRuleId, requestHeaders }?: CatalogPlatformApplicationValidator.GetMerchandisingRuleBuryActionParam, { responseHeaders }?: object): Promise; - /** - * @param {CatalogPlatformApplicationValidator.GetMerchandisingRuleHideActionParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getMerchandisingRuleHideAction - * @summary: Get Merchandising Rule's Hide action details - * @description: This allows you to get details of hide action of a merchandising rule. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getMerchandisingRuleHideAction/). - */ - getMerchandisingRuleHideAction({ merchandisingRuleId, requestHeaders }?: CatalogPlatformApplicationValidator.GetMerchandisingRuleHideActionParam, { responseHeaders }?: object): Promise; - /** - * @param {CatalogPlatformApplicationValidator.GetMerchandisingRulePinActionParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getMerchandisingRulePinAction - * @summary: Get Merchandising Rule's action details - * @description: This allows you to get details of pin action of a merchandising rule. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getMerchandisingRulePinAction/). - */ - getMerchandisingRulePinAction({ merchandisingRuleId, requestHeaders }?: CatalogPlatformApplicationValidator.GetMerchandisingRulePinActionParam, { responseHeaders }?: object): Promise; - /** - * @param {CatalogPlatformApplicationValidator.GetMerchandisingRulesParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getMerchandisingRules - * @summary: Get list of all Merchandising Rule's details - * @description: This allows you to get details of all merchandising rule's details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getMerchandisingRules/). - */ - getMerchandisingRules({ pageId, pageSize, requestHeaders }?: CatalogPlatformApplicationValidator.GetMerchandisingRulesParam, { responseHeaders }?: object): Promise; + getListingConfigurations({ configType, pageNo, pageSize, search, requestHeaders }?: CatalogPlatformApplicationValidator.GetListingConfigurationsParam, { responseHeaders }?: object): Promise; /** * @param {CatalogPlatformApplicationValidator.GetProductDetailBySlugParam} arg * - Arg object @@ -1038,20 +760,6 @@ declare class Catalog { * @description: Products are the core resource of an application. Products can be associated by categories, collections, brands and more. This API retrieves the product specified by the given **slug**. If successful, returns a Product resource in the response body specified in `ProductDetail` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductDetailBySlug/). */ getProductDetailBySlug({ slug, requestHeaders }?: CatalogPlatformApplicationValidator.GetProductDetailBySlugParam, { responseHeaders }?: object): Promise; - /** - * @param {CatalogPlatformApplicationValidator.GetProductsInPriceFactoryByZoneIdParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name getProductsInPriceFactoryByZoneId - * @summary: - * @description: This API allows to get products in price factory. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductsInPriceFactoryByZoneId/). - */ - getProductsInPriceFactoryByZoneId({ id, zoneId, itemId, sellerIdentifier, pageNo, pageSize, requestHeaders, }?: CatalogPlatformApplicationValidator.GetProductsInPriceFactoryByZoneIdParam, { responseHeaders }?: object): Promise; /** * @param {CatalogPlatformApplicationValidator.GetQueryFiltersParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -1082,63 +790,13 @@ declare class Catalog { * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response + * @returns {Promise} - + * Success response * @name getSearchKeywords * @summary: Get a Search Keywords Details * @description: Get the details of a words by its `id`. If successful, returns a Collection resource in the response body specified in `GetSearchWordsDetailResponseSchema` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getSearchKeywords/). */ - getSearchKeywords({ id, requestHeaders }?: CatalogPlatformApplicationValidator.GetSearchKeywordsParam, { responseHeaders }?: object): Promise; - /** - * @param {CatalogPlatformApplicationValidator.GetSearchRerankParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getSearchRerank - * @summary: Get search rerank for an application - * @description: This view allows you to create search rerank attributes for an application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getSearchRerank/). - */ - getSearchRerank({ requestHeaders }?: any, { responseHeaders }?: object): Promise; - /** - * @param {CatalogPlatformApplicationValidator.GetSearchRerankDetailParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name getSearchRerankDetail - * @summary: Get search rerank for an application - * @description: This view allows you to retrieve search rerank attribute detail for an application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getSearchRerankDetail/). - */ - getSearchRerankDetail({ id, requestHeaders }?: CatalogPlatformApplicationValidator.GetSearchRerankDetailParam, { responseHeaders }?: object): Promise; - /** - * @param {CatalogPlatformApplicationValidator.PollProductPriceFactoryBulkJobParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name pollProductPriceFactoryBulkJob - * @summary: - * @description: This API allows to poll bulk job for adding products in price factory. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/pollProductPriceFactoryBulkJob/). - */ - pollProductPriceFactoryBulkJob({ id, jobId, requestHeaders }?: CatalogPlatformApplicationValidator.PollProductPriceFactoryBulkJobParam, { responseHeaders }?: object): Promise; - /** - * @param {CatalogPlatformApplicationValidator.ProcessProductPriceFactoryBulkJobParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name processProductPriceFactoryBulkJob - * @summary: - * @description: This API allows to process bulk job for adding products in price factory. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/processProductPriceFactoryBulkJob/). - */ - processProductPriceFactoryBulkJob({ id, jobId, body, requestHeaders }?: CatalogPlatformApplicationValidator.ProcessProductPriceFactoryBulkJobParam, { responseHeaders }?: object): Promise; + getSearchKeywords({ id, requestHeaders }?: CatalogPlatformApplicationValidator.GetSearchKeywordsParam, { responseHeaders }?: object): Promise; /** * @param {CatalogPlatformApplicationValidator.UpdateAllowSingleParam} arg * - Arg object @@ -1237,27 +895,13 @@ declare class Catalog { * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - + * @returns {Promise} - * Success response * @name updateAutocompleteKeyword * @summary: Create & Update Autocomplete Keyword * @description: Update a mapping by it's id. On successful request, returns the updated Keyword mapping - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateAutocompleteKeyword/). */ - updateAutocompleteKeyword({ id, body, requestHeaders }?: CatalogPlatformApplicationValidator.UpdateAutocompleteKeywordParam, { responseHeaders }?: object): Promise; - /** - * @param {CatalogPlatformApplicationValidator.UpdateAutocompleteSettingsParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name updateAutocompleteSettings - * @summary: Update autocomplete settings config for an application - * @description: This API allows to update autocomplete settings for an application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateAutocompleteSettings/). - */ - updateAutocompleteSettings({ id, body, requestHeaders }?: CatalogPlatformApplicationValidator.UpdateAutocompleteSettingsParam, { responseHeaders }?: object): Promise; + updateAutocompleteKeyword({ id, body, requestHeaders }?: CatalogPlatformApplicationValidator.UpdateAutocompleteKeywordParam, { responseHeaders }?: object): Promise; /** * @param {CatalogPlatformApplicationValidator.UpdateCollectionParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -1298,93 +942,12 @@ declare class Catalog { * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * + * @returns {Promise} - Success response * @name updateListingConfiguration * @summary: Update configuration for listings * @description: Update configuration for listing. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateListingConfiguration/). */ - updateListingConfiguration({ configType, configId, body, requestHeaders }?: CatalogPlatformApplicationValidator.UpdateListingConfigurationParam, { responseHeaders }?: object): Promise; - /** - * @param {CatalogPlatformApplicationValidator.UpdateMerchandisingRuleBoostActionParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name updateMerchandisingRuleBoostAction - * @summary: Update Merchandising Rule's Boost action details - * @description: This allows you to update Boost action of a merchandising rule. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateMerchandisingRuleBoostAction/). - */ - updateMerchandisingRuleBoostAction({ merchandisingRuleId, body, requestHeaders }?: CatalogPlatformApplicationValidator.UpdateMerchandisingRuleBoostActionParam, { responseHeaders }?: object): Promise; - /** - * @param {CatalogPlatformApplicationValidator.UpdateMerchandisingRuleBuryActionParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name updateMerchandisingRuleBuryAction - * @summary: Update Merchandising Rule's Bury action details - * @description: This allows you to update Bury action of a merchandising rule. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateMerchandisingRuleBuryAction/). - */ - updateMerchandisingRuleBuryAction({ merchandisingRuleId, body, requestHeaders }?: CatalogPlatformApplicationValidator.UpdateMerchandisingRuleBuryActionParam, { responseHeaders }?: object): Promise; - /** - * @param {CatalogPlatformApplicationValidator.UpdateMerchandisingRuleHideActionParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name updateMerchandisingRuleHideAction - * @summary: Update Merchandising Rule's Hide action details - * @description: This allows you to update hide action of a merchandising rule. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateMerchandisingRuleHideAction/). - */ - updateMerchandisingRuleHideAction({ merchandisingRuleId, body, requestHeaders }?: CatalogPlatformApplicationValidator.UpdateMerchandisingRuleHideActionParam, { responseHeaders }?: object): Promise; - /** - * @param {CatalogPlatformApplicationValidator.UpdateMerchandisingRulePinActionParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name updateMerchandisingRulePinAction - * @summary: Update Merchandising Rule's action details - * @description: This allows you to update pin action of a merchandising rule. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateMerchandisingRulePinAction/). - */ - updateMerchandisingRulePinAction({ merchandisingRuleId, body, requestHeaders }?: CatalogPlatformApplicationValidator.UpdateMerchandisingRulePinActionParam, { responseHeaders }?: object): Promise; - /** - * @param {CatalogPlatformApplicationValidator.UpdateMerchandisingRuleQueryParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name updateMerchandisingRuleQuery - * @summary: Update a Merchandising Rule's query - * @description: This allows you to Update a merchandising rule's query. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateMerchandisingRuleQuery/). - */ - updateMerchandisingRuleQuery({ merchandisingRuleId, body, requestHeaders }?: CatalogPlatformApplicationValidator.UpdateMerchandisingRuleQueryParam, { responseHeaders }?: object): Promise; - /** - * @param {CatalogPlatformApplicationValidator.UpdateProductPriceByZoneInPriceFactoryParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name updateProductPriceByZoneInPriceFactory - * @summary: - * @description: This API allows to partially update products in price factory. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateProductPriceByZoneInPriceFactory/). - */ - updateProductPriceByZoneInPriceFactory({ id, itemId, zoneId, body, requestHeaders }?: CatalogPlatformApplicationValidator.UpdateProductPriceByZoneInPriceFactoryParam, { responseHeaders }?: object): Promise; + updateListingConfiguration({ configType, configId, body, requestHeaders }?: CatalogPlatformApplicationValidator.UpdateListingConfigurationParam, { responseHeaders }?: object): Promise; /** * @param {CatalogPlatformApplicationValidator.UpdateSearchConfigurationParam} arg * - Arg object @@ -1411,34 +974,7 @@ declare class Catalog { * @description: Update Search Keyword by its id. On successful request, returns the updated collection - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateSearchKeywords/). */ updateSearchKeywords({ id, body, requestHeaders }?: CatalogPlatformApplicationValidator.UpdateSearchKeywordsParam, { responseHeaders }?: object): Promise; - /** - * @param {CatalogPlatformApplicationValidator.UpdateSearchRerankConfigurationParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name updateSearchRerankConfiguration - * @summary: Update search rerank for an application - * @description: This view allows you to update search rerank attribute for an application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateSearchRerankConfiguration/). - */ - updateSearchRerankConfiguration({ id, body, requestHeaders }?: CatalogPlatformApplicationValidator.UpdateSearchRerankConfigurationParam, { responseHeaders }?: object): Promise; - /** - * @param {CatalogPlatformApplicationValidator.ValidateProductPriceFactoryBulkJobParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name validateProductPriceFactoryBulkJob - * @summary: - * @description: This API allows to validate bulk job for adding products in price factory. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/validateProductPriceFactoryBulkJob/). - */ - validateProductPriceFactoryBulkJob({ id, jobId, body, requestHeaders }?: CatalogPlatformApplicationValidator.ValidateProductPriceFactoryBulkJobParam, { responseHeaders }?: object): Promise; } -import CatalogPlatformApplicationValidator = require("sdk/output/javascript/code/sdk/platform/Catalog/CatalogPlatformApplicationValidator"); -import CatalogPlatformModel = require("sdk/output/javascript/code/sdk/platform/Catalog/CatalogPlatformModel"); -import Paginator = require("sdk/output/javascript/code/sdk/common/Paginator"); +import CatalogPlatformApplicationValidator = require("./CatalogPlatformApplicationValidator"); +import CatalogPlatformModel = require("./CatalogPlatformModel"); +import Paginator = require("../../common/Paginator"); diff --git a/sdk/platform/Catalog/CatalogPlatformApplicationClient.js b/sdk/platform/Catalog/CatalogPlatformApplicationClient.js index 806307020..1c44f5064 100644 --- a/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +++ b/sdk/platform/Catalog/CatalogPlatformApplicationClient.js @@ -21,9 +21,7 @@ class Catalog { * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * + * @returns {Promise} - Success response * @name addCollectionItems * @summary: Add items to a collection * @description: Adds items to a collection specified by its `id`. See `CollectionItemRequest` for the list of attributes needed to add items to an collection. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/addCollectionItems/). @@ -67,7 +65,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "post", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/collections/${id}/items`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/collections/${id}/items/`, query_params, body, requestHeaders, @@ -81,10 +79,10 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.CommonResponseSchemaCollection().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); + } = CatalogPlatformModel.UpdatedResponse().validate(responseData, { + abortEarly: false, + allowUnknown: true, + }); if (res_error) { if (this.config.options.strictResponseCheck === true) { @@ -100,93 +98,6 @@ class Catalog { return response; } - /** - * @param {CatalogPlatformApplicationValidator.AddProductsInPriceFactoryByZoneIdParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name addProductsInPriceFactoryByZoneId - * @summary: - * @description: This API allows to add products in price factory. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/addProductsInPriceFactoryByZoneId/). - */ - async addProductsInPriceFactoryByZoneId( - { id, zoneId, body, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = CatalogPlatformApplicationValidator.addProductsInPriceFactoryByZoneId().validate( - { - id, - zoneId, - body, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = CatalogPlatformApplicationValidator.addProductsInPriceFactoryByZoneId().validate( - { - id, - zoneId, - body, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > addProductsInPriceFactoryByZoneId \n ${warrning}`, - }); - } - - const query_params = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "post", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/price-factory/${id}/products/zone/${zoneId}`, - query_params, - body, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = CatalogPlatformModel.CreateAppPriceFactoryProductsResponse().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Catalog > addProductsInPriceFactoryByZoneId \n ${res_error}`, - }); - } - } - - return response; - } - /** * @param {CatalogPlatformApplicationValidator.CreateAppCategoryReturnConfigurationParam} arg * - Arg object @@ -268,88 +179,6 @@ class Catalog { return response; } - /** - * @param {CatalogPlatformApplicationValidator.CreateAppPriceFactoryParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name createAppPriceFactory - * @summary: Create price factory - * @description: This API allows to create price factory. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createAppPriceFactory/). - */ - async createAppPriceFactory( - { body, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = CatalogPlatformApplicationValidator.createAppPriceFactory().validate( - { - body, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = CatalogPlatformApplicationValidator.createAppPriceFactory().validate( - { - body, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > createAppPriceFactory \n ${warrning}`, - }); - } - - const query_params = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "post", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/price-factory`, - query_params, - body, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = CatalogPlatformModel.CreateAppPriceFactoryResponse().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Catalog > createAppPriceFactory \n ${res_error}`, - }); - } - } - - return response; - } - /** * @param {CatalogPlatformApplicationValidator.CreateAppReturnConfigurationParam} arg * - Arg object @@ -431,89 +260,6 @@ class Catalog { return response; } - /** - * @param {CatalogPlatformApplicationValidator.CreateAutocompleteSettingsParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name createAutocompleteSettings - * @summary: Create autocomplete settings config for an application - * @description: This API allows to create autocomplete settings for an application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createAutocompleteSettings/). - */ - async createAutocompleteSettings( - { body, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = CatalogPlatformApplicationValidator.createAutocompleteSettings().validate( - { - body, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = CatalogPlatformApplicationValidator.createAutocompleteSettings().validate( - { - body, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > createAutocompleteSettings \n ${warrning}`, - }); - } - - const query_params = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "post", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/search/autocomplete/settings`, - query_params, - body, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = CatalogPlatformModel.AutocompleteUpsertResponseSchema().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Catalog > createAutocompleteSettings \n ${res_error}`, - }); - } - } - - return response; - } - /** * @param {CatalogPlatformApplicationValidator.CreateCollectionParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -561,7 +307,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "post", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/collections`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/collections/`, query_params, body, requestHeaders, @@ -645,7 +391,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "post", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/product-configuration/${type}`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/product-configuration/${type}/`, query_params, body, requestHeaders, @@ -727,7 +473,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "post", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/product-configuration`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/product-configuration/`, query_params, body, requestHeaders, @@ -810,7 +556,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "post", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/search/autocomplete`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/search/autocomplete/`, query_params, body, requestHeaders, @@ -891,7 +637,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "post", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/search/keyword`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/search/keyword/`, query_params, body, requestHeaders, @@ -1013,9 +759,7 @@ class Catalog { * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * + * @returns {Promise} - Success response * @name createListingConfiguration * @summary: Add configuration for listings * @description: Add configuration for listing. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createListingConfiguration/). @@ -1059,7 +803,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "post", - `/service/platform/catalog/v2.0/company/${this.config.companyId}/application/${this.applicationId}/product-configuration/${configType}`, + `/service/platform/catalog/v2.0/company/${this.config.companyId}/application/${this.applicationId}/product-configuration/${configType}/`, query_params, body, requestHeaders, @@ -1073,10 +817,10 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.AppConfigurationsFilterResponse().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); + } = CatalogPlatformModel.AppConfigurationsSort().validate(responseData, { + abortEarly: false, + allowUnknown: true, + }); if (res_error) { if (this.config.options.strictResponseCheck === true) { @@ -1093,26 +837,26 @@ class Catalog { } /** - * @param {CatalogPlatformApplicationValidator.CreateMerchandisingRuleBoostActionParam} arg + * @param {CatalogPlatformApplicationValidator.CreateSearchConfigurationParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name createMerchandisingRuleBoostAction - * @summary: Create Merchandising Rule's Boost action details - * @description: This allows you to create Boost action of a merchandising rule. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createMerchandisingRuleBoostAction/). + * @returns {Promise} + * - Success response + * + * @name createSearchConfiguration + * @summary: Update search configuration for an application + * @description: This view allows you to modify searchable attributes for an application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createSearchConfiguration/). */ - async createMerchandisingRuleBoostAction( - { merchandisingRuleId, body, requestHeaders } = { requestHeaders: {} }, + async createSearchConfiguration( + { body, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformApplicationValidator.createMerchandisingRuleBoostAction().validate( + } = CatalogPlatformApplicationValidator.createSearchConfiguration().validate( { - merchandisingRuleId, body, }, { abortEarly: false, allowUnknown: true } @@ -1124,9 +868,8 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformApplicationValidator.createMerchandisingRuleBoostAction().validate( + } = CatalogPlatformApplicationValidator.createSearchConfiguration().validate( { - merchandisingRuleId, body, }, { abortEarly: false, allowUnknown: false } @@ -1134,7 +877,7 @@ class Catalog { if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > createMerchandisingRuleBoostAction \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > createSearchConfiguration \n ${warrning}`, }); } @@ -1143,7 +886,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "post", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/merchandise/rules/${merchandisingRuleId}/boost`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/search/configuration/`, query_params, body, requestHeaders, @@ -1157,7 +900,7 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.SuccessResponseMerchandising().validate( + } = CatalogPlatformModel.CreateSearchConfigurationResponse().validate( responseData, { abortEarly: false, allowUnknown: true } ); @@ -1168,7 +911,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > createMerchandisingRuleBoostAction \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > createSearchConfiguration \n ${res_error}`, }); } } @@ -1177,26 +920,24 @@ class Catalog { } /** - * @param {CatalogPlatformApplicationValidator.CreateMerchandisingRuleBuryActionParam} arg + * @param {CatalogPlatformApplicationValidator.DeleteAppCategoryReturnConfigurationParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name createMerchandisingRuleBuryAction - * @summary: Get Merchandising Rule's Bury action details - * @description: This allows you to create Bury action of a merchandising rule. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createMerchandisingRuleBuryAction/). + * @returns {Promise} - Success response + * @name deleteAppCategoryReturnConfiguration + * @summary: Delete Category level Application Return Configuration setttings + * @description: Delete Category level Application Return Configuration setttings - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/deleteAppCategoryReturnConfiguration/). */ - async createMerchandisingRuleBuryAction( - { merchandisingRuleId, body, requestHeaders } = { requestHeaders: {} }, + async deleteAppCategoryReturnConfiguration( + { body, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformApplicationValidator.createMerchandisingRuleBuryAction().validate( + } = CatalogPlatformApplicationValidator.deleteAppCategoryReturnConfiguration().validate( { - merchandisingRuleId, body, }, { abortEarly: false, allowUnknown: true } @@ -1208,9 +949,8 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformApplicationValidator.createMerchandisingRuleBuryAction().validate( + } = CatalogPlatformApplicationValidator.deleteAppCategoryReturnConfiguration().validate( { - merchandisingRuleId, body, }, { abortEarly: false, allowUnknown: false } @@ -1218,7 +958,7 @@ class Catalog { if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > createMerchandisingRuleBuryAction \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > deleteAppCategoryReturnConfiguration \n ${warrning}`, }); } @@ -1226,8 +966,8 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, - "post", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/merchandise/rules/${merchandisingRuleId}/bury`, + "delete", + `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/return-config/categories`, query_params, body, requestHeaders, @@ -1241,10 +981,10 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.SuccessResponseMerchandising().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); + } = CatalogPlatformModel.SuccessResponse().validate(responseData, { + abortEarly: false, + allowUnknown: true, + }); if (res_error) { if (this.config.options.strictResponseCheck === true) { @@ -1252,7 +992,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > createMerchandisingRuleBuryAction \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > deleteAppCategoryReturnConfiguration \n ${res_error}`, }); } } @@ -1261,27 +1001,25 @@ class Catalog { } /** - * @param {CatalogPlatformApplicationValidator.CreateMerchandisingRuleHideActionParam} arg + * @param {CatalogPlatformApplicationValidator.DeleteAutocompleteKeywordParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name createMerchandisingRuleHideAction - * @summary: Create Merchandising Rule's Hide action details - * @description: This allows you to create hide action of a merchandising rule. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createMerchandisingRuleHideAction/). + * @returns {Promise} - Success response + * @name deleteAutocompleteKeyword + * @summary: Delete a Autocomplete Keywords + * @description: Delete a keywords by it's id. Returns an object that tells whether the keywords was deleted successfully - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/deleteAutocompleteKeyword/). */ - async createMerchandisingRuleHideAction( - { merchandisingRuleId, body, requestHeaders } = { requestHeaders: {} }, + async deleteAutocompleteKeyword( + { id, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformApplicationValidator.createMerchandisingRuleHideAction().validate( + } = CatalogPlatformApplicationValidator.deleteAutocompleteKeyword().validate( { - merchandisingRuleId, - body, + id, }, { abortEarly: false, allowUnknown: true } ); @@ -1292,17 +1030,16 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformApplicationValidator.createMerchandisingRuleHideAction().validate( + } = CatalogPlatformApplicationValidator.deleteAutocompleteKeyword().validate( { - merchandisingRuleId, - body, + id, }, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > createMerchandisingRuleHideAction \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > deleteAutocompleteKeyword \n ${warrning}`, }); } @@ -1310,10 +1047,10 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, - "post", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/merchandise/rules/${merchandisingRuleId}/hide`, + "delete", + `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/search/autocomplete/${id}/`, query_params, - body, + undefined, requestHeaders, { responseHeaders } ); @@ -1325,10 +1062,10 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.SuccessResponseMerchandising().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); + } = CatalogPlatformModel.DeleteResponse().validate(responseData, { + abortEarly: false, + allowUnknown: true, + }); if (res_error) { if (this.config.options.strictResponseCheck === true) { @@ -1336,7 +1073,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > createMerchandisingRuleHideAction \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > deleteAutocompleteKeyword \n ${res_error}`, }); } } @@ -1345,27 +1082,25 @@ class Catalog { } /** - * @param {CatalogPlatformApplicationValidator.CreateMerchandisingRulePinActionParam} arg - * - Arg object - * + * @param {CatalogPlatformApplicationValidator.DeleteCollectionParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name createMerchandisingRulePinAction - * @summary: Create Merchandising Rule's action details - * @description: This allows you to create pin action of a merchandising rule. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createMerchandisingRulePinAction/). + * @returns {Promise} + * - Success response + * + * @name deleteCollection + * @summary: Delete a Collection + * @description: Delete a collection by it's id. Returns an object that tells whether the collection was deleted successfully - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/deleteCollection/). */ - async createMerchandisingRulePinAction( - { merchandisingRuleId, body, requestHeaders } = { requestHeaders: {} }, + async deleteCollection( + { id, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformApplicationValidator.createMerchandisingRulePinAction().validate( + } = CatalogPlatformApplicationValidator.deleteCollection().validate( { - merchandisingRuleId, - body, + id, }, { abortEarly: false, allowUnknown: true } ); @@ -1376,17 +1111,16 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformApplicationValidator.createMerchandisingRulePinAction().validate( + } = CatalogPlatformApplicationValidator.deleteCollection().validate( { - merchandisingRuleId, - body, + id, }, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > createMerchandisingRulePinAction \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > deleteCollection \n ${warrning}`, }); } @@ -1394,10 +1128,10 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, - "post", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/merchandise/rules/${merchandisingRuleId}/pin`, + "delete", + `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/collections/${id}/`, query_params, - body, + undefined, requestHeaders, { responseHeaders } ); @@ -1409,7 +1143,7 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.SuccessResponseMerchandising().validate( + } = CatalogPlatformModel.CommonResponseSchemaCollection().validate( responseData, { abortEarly: false, allowUnknown: true } ); @@ -1420,7 +1154,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > createMerchandisingRulePinAction \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > deleteCollection \n ${res_error}`, }); } } @@ -1429,26 +1163,26 @@ class Catalog { } /** - * @param {CatalogPlatformApplicationValidator.CreateMerchandisingRuleQueryParam} arg + * @param {CatalogPlatformApplicationValidator.DeleteGroupConfigurationParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name createMerchandisingRuleQuery - * @summary: Create a Merchandising Rule's query - * @description: This allows you to Create a merchandising rule's query. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createMerchandisingRuleQuery/). + * @returns {Promise} - Success response + * @name deleteGroupConfiguration + * @summary: Delete configuration of the product config type of the application. + * @description: Delete configuration of the product config type of the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/deleteGroupConfiguration/). */ - async createMerchandisingRuleQuery( - { body, requestHeaders } = { requestHeaders: {} }, + async deleteGroupConfiguration( + { configType, groupSlug, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformApplicationValidator.createMerchandisingRuleQuery().validate( + } = CatalogPlatformApplicationValidator.deleteGroupConfiguration().validate( { - body, + configType, + groupSlug, }, { abortEarly: false, allowUnknown: true } ); @@ -1459,16 +1193,17 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformApplicationValidator.createMerchandisingRuleQuery().validate( + } = CatalogPlatformApplicationValidator.deleteGroupConfiguration().validate( { - body, + configType, + groupSlug, }, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > createMerchandisingRuleQuery \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > deleteGroupConfiguration \n ${warrning}`, }); } @@ -1476,10 +1211,10 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, - "post", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/merchandise/rules/query`, + "delete", + `/service/platform/catalog/v2.0/company/${this.config.companyId}/application/${this.applicationId}/product-configuration/${configType}/groups/${groupSlug}`, query_params, - body, + undefined, requestHeaders, { responseHeaders } ); @@ -1491,7 +1226,7 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.MerchandiseQueryResponse().validate(responseData, { + } = CatalogPlatformModel.ConfigSuccessResponse().validate(responseData, { abortEarly: false, allowUnknown: true, }); @@ -1502,7 +1237,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > createMerchandisingRuleQuery \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > deleteGroupConfiguration \n ${res_error}`, }); } } @@ -1511,28 +1246,26 @@ class Catalog { } /** - * @param {CatalogPlatformApplicationValidator.CreateProductPriceFactoryBulkJobParam} arg + * @param {CatalogPlatformApplicationValidator.DeleteListingConfigurationParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name createProductPriceFactoryBulkJob - * @summary: - * @description: This API allows to create bulk job for adding products in price factory. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createProductPriceFactoryBulkJob/). + * @returns {Promise} - Success response + * @name deleteListingConfiguration + * @summary: Delete configuration for listings + * @description: Delete configuration for listing. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/deleteListingConfiguration/). */ - async createProductPriceFactoryBulkJob( - { id, body, requestHeaders } = { requestHeaders: {} }, + async deleteListingConfiguration( + { configType, configId, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformApplicationValidator.createProductPriceFactoryBulkJob().validate( + } = CatalogPlatformApplicationValidator.deleteListingConfiguration().validate( { - id, - body, + configType, + configId, }, { abortEarly: false, allowUnknown: true } ); @@ -1543,17 +1276,17 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformApplicationValidator.createProductPriceFactoryBulkJob().validate( + } = CatalogPlatformApplicationValidator.deleteListingConfiguration().validate( { - id, - body, + configType, + configId, }, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > createProductPriceFactoryBulkJob \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > deleteListingConfiguration \n ${warrning}`, }); } @@ -1561,10 +1294,10 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, - "post", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/price-factory/${id}/products/bulk`, + "delete", + `/service/platform/catalog/v2.0/company/${this.config.companyId}/application/${this.applicationId}/product-configuration/${configType}/item/${configId}/`, query_params, - body, + undefined, requestHeaders, { responseHeaders } ); @@ -1576,10 +1309,10 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.CreateAppPriceFactoryProductBulkJobResponse().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); + } = CatalogPlatformModel.ConfigSuccessResponse().validate(responseData, { + abortEarly: false, + allowUnknown: true, + }); if (res_error) { if (this.config.options.strictResponseCheck === true) { @@ -1587,7 +1320,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > createProductPriceFactoryBulkJob \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > deleteListingConfiguration \n ${res_error}`, }); } } @@ -1596,28 +1329,26 @@ class Catalog { } /** - * @param {CatalogPlatformApplicationValidator.CreateSearchConfigurationParam} arg + * @param {CatalogPlatformApplicationValidator.DeleteSearchConfigurationParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} + * @returns {Promise} * - Success response * - * @name createSearchConfiguration - * @summary: Update search configuration for an application - * @description: This view allows you to modify searchable attributes for an application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createSearchConfiguration/). + * @name deleteSearchConfiguration + * @summary: Delete search configuration for an application + * @description: This view allows you to reset search config for an application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/deleteSearchConfiguration/). */ - async createSearchConfiguration( - { body, requestHeaders } = { requestHeaders: {} }, + async deleteSearchConfiguration( + { requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformApplicationValidator.createSearchConfiguration().validate( - { - body, - }, + } = CatalogPlatformApplicationValidator.deleteSearchConfiguration().validate( + {}, { abortEarly: false, allowUnknown: true } ); if (error) { @@ -1627,16 +1358,14 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformApplicationValidator.createSearchConfiguration().validate( - { - body, - }, + } = CatalogPlatformApplicationValidator.deleteSearchConfiguration().validate( + {}, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > createSearchConfiguration \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > deleteSearchConfiguration \n ${warrning}`, }); } @@ -1644,10 +1373,10 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, - "post", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/search/configuration`, + "delete", + `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/search/configuration/`, query_params, - body, + undefined, requestHeaders, { responseHeaders } ); @@ -1659,7 +1388,7 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.CreateSearchConfigurationResponse().validate( + } = CatalogPlatformModel.DeleteSearchConfigurationResponse().validate( responseData, { abortEarly: false, allowUnknown: true } ); @@ -1670,7 +1399,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > createSearchConfiguration \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > deleteSearchConfiguration \n ${res_error}`, }); } } @@ -1679,26 +1408,25 @@ class Catalog { } /** - * @param {CatalogPlatformApplicationValidator.CreateSearchRerankParam} arg + * @param {CatalogPlatformApplicationValidator.DeleteSearchKeywordsParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name createSearchRerank - * @summary: Create search rerank for an application - * @description: This view allows you to create search rerank attributes for an application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createSearchRerank/). + * @returns {Promise} - Success response + * @name deleteSearchKeywords + * @summary: Delete a Search Keywords + * @description: Delete a keywords by it's id. Returns an object that tells whether the keywords was deleted successfully - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/deleteSearchKeywords/). */ - async createSearchRerank( - { body, requestHeaders } = { requestHeaders: {} }, + async deleteSearchKeywords( + { id, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformApplicationValidator.createSearchRerank().validate( + } = CatalogPlatformApplicationValidator.deleteSearchKeywords().validate( { - body, + id, }, { abortEarly: false, allowUnknown: true } ); @@ -1709,16 +1437,16 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformApplicationValidator.createSearchRerank().validate( + } = CatalogPlatformApplicationValidator.deleteSearchKeywords().validate( { - body, + id, }, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > createSearchRerank \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > deleteSearchKeywords \n ${warrning}`, }); } @@ -1726,10 +1454,10 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, - "post", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/search/rerank`, + "delete", + `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/search/keyword/${id}/`, query_params, - body, + undefined, requestHeaders, { responseHeaders } ); @@ -1741,10 +1469,10 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.CreateSearchRerankResponse().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); + } = CatalogPlatformModel.DeleteResponse().validate(responseData, { + abortEarly: false, + allowUnknown: true, + }); if (res_error) { if (this.config.options.strictResponseCheck === true) { @@ -1752,7 +1480,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > createSearchRerank \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > deleteSearchKeywords \n ${res_error}`, }); } } @@ -1761,25 +1489,41 @@ class Catalog { } /** - * @param {CatalogPlatformApplicationValidator.DeleteAppCategoryReturnConfigurationParam} arg + * @param {CatalogPlatformApplicationValidator.GetAllCollectionsParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name deleteAppCategoryReturnConfiguration - * @summary: Delete Category level Application Return Configuration setttings - * @description: Delete Category level Application Return Configuration setttings - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/deleteAppCategoryReturnConfiguration/). + * @returns {Promise} - + * Success response + * @name getAllCollections + * @summary: List all the collections + * @description: A Collection allows you to organize your products into hierarchical groups. For example, a dress might be in the category _Clothing_, the individual product might also be in the collection _Summer_. On successful request, returns all the collections as specified in `CollectionListingSchema` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAllCollections/). */ - async deleteAppCategoryReturnConfiguration( - { body, requestHeaders } = { requestHeaders: {} }, + async getAllCollections( + { + q, + scheduleStatus, + type, + tags, + isActive, + pageNo, + pageSize, + requestHeaders, + } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformApplicationValidator.deleteAppCategoryReturnConfiguration().validate( + } = CatalogPlatformApplicationValidator.getAllCollections().validate( { - body, + q, + scheduleStatus, + type, + tags, + isActive, + pageNo, + pageSize, }, { abortEarly: false, allowUnknown: true } ); @@ -1790,27 +1534,40 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformApplicationValidator.deleteAppCategoryReturnConfiguration().validate( + } = CatalogPlatformApplicationValidator.getAllCollections().validate( { - body, + q, + scheduleStatus, + type, + tags, + isActive, + pageNo, + pageSize, }, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > deleteAppCategoryReturnConfiguration \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > getAllCollections \n ${warrning}`, }); } const query_params = {}; + query_params["q"] = q; + query_params["schedule_status"] = scheduleStatus; + query_params["type"] = type; + query_params["tags"] = tags; + query_params["is_active"] = isActive; + query_params["page_no"] = pageNo; + query_params["page_size"] = pageSize; const response = await PlatformAPIClient.execute( this.config, - "delete", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/return-config/categories`, + "get", + `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/collections/`, query_params, - body, + undefined, requestHeaders, { responseHeaders } ); @@ -1822,10 +1579,10 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.SuccessResponse().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); + } = CatalogPlatformModel.GetCollectionListingResponse().validate( + responseData, + { abortEarly: false, allowUnknown: true } + ); if (res_error) { if (this.config.options.strictResponseCheck === true) { @@ -1833,7 +1590,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > deleteAppCategoryReturnConfiguration \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > getAllCollections \n ${res_error}`, }); } } @@ -1842,26 +1599,24 @@ class Catalog { } /** - * @param {CatalogPlatformApplicationValidator.DeleteAutocompleteKeywordParam} arg + * @param {CatalogPlatformApplicationValidator.GetAllSearchKeywordParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name deleteAutocompleteKeyword - * @summary: Delete a Autocomplete Keywords - * @description: Delete a keywords by it's id. Returns an object that tells whether the keywords was deleted successfully - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/deleteAutocompleteKeyword/). + * @returns {Promise} - Success response + * @name getAllSearchKeyword + * @summary: List all Search Custom Keyword Listing + * @description: Custom Search Keyword allows you to map conditions with keywords to give you the ultimate results - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAllSearchKeyword/). */ - async deleteAutocompleteKeyword( - { id, requestHeaders } = { requestHeaders: {} }, + async getAllSearchKeyword( + { requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformApplicationValidator.deleteAutocompleteKeyword().validate( - { - id, - }, + } = CatalogPlatformApplicationValidator.getAllSearchKeyword().validate( + {}, { abortEarly: false, allowUnknown: true } ); if (error) { @@ -1871,16 +1626,14 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformApplicationValidator.deleteAutocompleteKeyword().validate( - { - id, - }, + } = CatalogPlatformApplicationValidator.getAllSearchKeyword().validate( + {}, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > deleteAutocompleteKeyword \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > getAllSearchKeyword \n ${warrning}`, }); } @@ -1888,8 +1641,8 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, - "delete", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/search/autocomplete/${id}`, + "get", + `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/search/keyword/`, query_params, undefined, requestHeaders, @@ -1903,7 +1656,7 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.DeleteResponse().validate(responseData, { + } = CatalogPlatformModel.GetSearchWordsResponse().validate(responseData, { abortEarly: false, allowUnknown: true, }); @@ -1914,7 +1667,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > deleteAutocompleteKeyword \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > getAllSearchKeyword \n ${res_error}`, }); } } @@ -1923,26 +1676,26 @@ class Catalog { } /** - * @param {CatalogPlatformApplicationValidator.DeleteCollectionParam} arg - Arg object + * @param {CatalogPlatformApplicationValidator.GetAppCategoryReturnConfigParam} arg + * - Arg object + * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} + * @returns {Promise} * - Success response * - * @name deleteCollection - * @summary: Delete a Collection - * @description: Delete a collection by it's id. Returns an object that tells whether the collection was deleted successfully - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/deleteCollection/). + * @name getAppCategoryReturnConfig + * @summary: Get all category level configuration level set for an application + * @description: Get all category level configuration level set for an application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAppCategoryReturnConfig/). */ - async deleteCollection( - { id, requestHeaders } = { requestHeaders: {} }, + async getAppCategoryReturnConfig( + { requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformApplicationValidator.deleteCollection().validate( - { - id, - }, + } = CatalogPlatformApplicationValidator.getAppCategoryReturnConfig().validate( + {}, { abortEarly: false, allowUnknown: true } ); if (error) { @@ -1952,16 +1705,14 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformApplicationValidator.deleteCollection().validate( - { - id, - }, + } = CatalogPlatformApplicationValidator.getAppCategoryReturnConfig().validate( + {}, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > deleteCollection \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > getAppCategoryReturnConfig \n ${warrning}`, }); } @@ -1969,8 +1720,8 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, - "delete", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/collections/${id}`, + "get", + `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/return-config/categories`, query_params, undefined, requestHeaders, @@ -1984,7 +1735,7 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.CommonResponseSchemaCollection().validate( + } = CatalogPlatformModel.BaseAppCategoryReturnConfigResponse().validate( responseData, { abortEarly: false, allowUnknown: true } ); @@ -1995,7 +1746,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > deleteCollection \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > getAppCategoryReturnConfig \n ${res_error}`, }); } } @@ -2004,26 +1755,38 @@ class Catalog { } /** - * @param {CatalogPlatformApplicationValidator.DeleteGroupConfigurationParam} arg - * - Arg object - * + * @param {CatalogPlatformApplicationValidator.GetAppInventoryParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name deleteGroupConfiguration - * @summary: Delete configuration of the product config type of the application. - * @description: Delete configuration of the product config type of the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/deleteGroupConfiguration/). + * @returns {Promise} - Success response + * @name getAppInventory + * @summary: Get the stock of a product + * @description: Retrieve the available Inventory of the products. Use this API to get the Inventory status of products with the filters of timestamp, store_ids, brand_ids, item_id - Items - Pagination - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAppInventory/). */ - async deleteGroupConfiguration( - { configType, groupSlug, requestHeaders } = { requestHeaders: {} }, + async getAppInventory( + { + itemIds, + storeIds, + brandIds, + sellerIdentifiers, + timestamp, + pageSize, + pageId, + requestHeaders, + } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformApplicationValidator.deleteGroupConfiguration().validate( + } = CatalogPlatformApplicationValidator.getAppInventory().validate( { - configType, - groupSlug, + itemIds, + storeIds, + brandIds, + sellerIdentifiers, + timestamp, + pageSize, + pageId, }, { abortEarly: false, allowUnknown: true } ); @@ -2034,26 +1797,38 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformApplicationValidator.deleteGroupConfiguration().validate( + } = CatalogPlatformApplicationValidator.getAppInventory().validate( { - configType, - groupSlug, + itemIds, + storeIds, + brandIds, + sellerIdentifiers, + timestamp, + pageSize, + pageId, }, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > deleteGroupConfiguration \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > getAppInventory \n ${warrning}`, }); } const query_params = {}; + query_params["item_ids"] = itemIds; + query_params["store_ids"] = storeIds; + query_params["brand_ids"] = brandIds; + query_params["seller_identifiers"] = sellerIdentifiers; + query_params["timestamp"] = timestamp; + query_params["page_size"] = pageSize; + query_params["page_id"] = pageId; const response = await PlatformAPIClient.execute( this.config, - "delete", - `/service/platform/catalog/v2.0/company/${this.config.companyId}/application/${this.applicationId}/product-configuration/${configType}/groups/${groupSlug}`, + "get", + `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/inventory/`, query_params, undefined, requestHeaders, @@ -2067,7 +1842,7 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.ConfigSuccessResponse().validate(responseData, { + } = CatalogPlatformModel.InventoryStockResponse().validate(responseData, { abortEarly: false, allowUnknown: true, }); @@ -2078,7 +1853,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > deleteGroupConfiguration \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > getAppInventory \n ${res_error}`, }); } } @@ -2087,26 +1862,40 @@ class Catalog { } /** - * @param {CatalogPlatformApplicationValidator.DeleteListingConfigurationParam} arg - * - Arg object - * + * @param {CatalogPlatformApplicationValidator.GetAppLocationsParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name deleteListingConfiguration - * @summary: Delete configuration for listings - * @description: Delete configuration for listing. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/deleteListingConfiguration/). + * @returns {Promise} - Success response + * @name getAppLocations + * @summary: Get list of locations + * @description: This API allows to view all the locations asscoiated to a application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAppLocations/). */ - async deleteListingConfiguration( - { configType, configId, requestHeaders } = { requestHeaders: {} }, + async getAppLocations( + { + storeType, + uid, + q, + stage, + pageNo, + pageSize, + tags, + storeTypes, + requestHeaders, + } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformApplicationValidator.deleteListingConfiguration().validate( + } = CatalogPlatformApplicationValidator.getAppLocations().validate( { - configType, - configId, + storeType, + uid, + q, + stage, + pageNo, + pageSize, + tags, + storeTypes, }, { abortEarly: false, allowUnknown: true } ); @@ -2117,26 +1906,40 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformApplicationValidator.deleteListingConfiguration().validate( + } = CatalogPlatformApplicationValidator.getAppLocations().validate( { - configType, - configId, + storeType, + uid, + q, + stage, + pageNo, + pageSize, + tags, + storeTypes, }, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > deleteListingConfiguration \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > getAppLocations \n ${warrning}`, }); } const query_params = {}; + query_params["store_type"] = storeType; + query_params["uid"] = uid; + query_params["q"] = q; + query_params["stage"] = stage; + query_params["page_no"] = pageNo; + query_params["page_size"] = pageSize; + query_params["tags"] = tags; + query_params["store_types"] = storeTypes; const response = await PlatformAPIClient.execute( this.config, - "delete", - `/service/platform/catalog/v2.0/company/${this.config.companyId}/application/${this.applicationId}/product-configuration/${configType}/item/${configId}`, + "get", + `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/locations`, query_params, undefined, requestHeaders, @@ -2150,7 +1953,7 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.ConfigSuccessResponse().validate(responseData, { + } = CatalogPlatformModel.LocationListSerializer().validate(responseData, { abortEarly: false, allowUnknown: true, }); @@ -2161,7 +1964,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > deleteListingConfiguration \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > getAppLocations \n ${res_error}`, }); } } @@ -2170,104 +1973,81 @@ class Catalog { } /** - * @param {CatalogPlatformApplicationValidator.DeleteSearchConfigurationParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name deleteSearchConfiguration - * @summary: Delete search configuration for an application - * @description: This view allows you to reset search config for an application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/deleteSearchConfiguration/). + * @param {Object} arg - Arg object. + * @param {string} arg.companyId - Id of the company whose locations are to fetched + * @param {string} arg.applicationId - Id of the application whose locations + * are to fetched + * @param {string} [arg.storeType] - Helps to sort the location list on the + * basis of location type. + * @param {number[]} [arg.uid] - Helps to sort the location list on the + * basis of uid list. + * @param {string} [arg.q] - Query that is to be searched. + * @param {string} [arg.stage] - To filter companies on basis of verified or + * unverified companies. + * @param {number} [arg.pageSize] - Number of items to retrieve in each + * page. Default is 20. + * @param {string[]} [arg.tags] - Get locations filtered by tags. + * @param {string[]} [arg.storeTypes] - Get locations filtered by store types. + * @returns {Paginator} + * @summary: Get list of locations + * @description: This API allows to view all the locations asscoiated to a application. */ - async deleteSearchConfiguration( - { requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = CatalogPlatformApplicationValidator.deleteSearchConfiguration().validate( - {}, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = CatalogPlatformApplicationValidator.deleteSearchConfiguration().validate( - {}, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > deleteSearchConfiguration \n ${warrning}`, - }); - } - - const query_params = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "delete", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/search/configuration`, - query_params, - undefined, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = CatalogPlatformModel.DeleteSearchConfigurationResponse().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Catalog > deleteSearchConfiguration \n ${res_error}`, - }); - } - } - - return response; + getAppLocationsPaginator({ + companyId, + applicationId, + storeType, + uid, + q, + stage, + pageSize, + tags, + storeTypes, + } = {}) { + const paginator = new Paginator(); + const callback = async () => { + const pageId = paginator.nextId; + const pageNo = paginator.pageNo; + const pageType = "number"; + const data = await this.getAppLocations({ + companyId: companyId, + applicationId: applicationId, + storeType: storeType, + uid: uid, + q: q, + stage: stage, + pageNo: pageNo, + pageSize: pageSize, + tags: tags, + storeTypes: storeTypes, + }); + paginator.setPaginator({ + hasNext: data.page.has_next ? true : false, + nextId: data.page.next_id, + }); + return data; + }; + paginator.setCallback(callback.bind(this)); + return paginator; } /** - * @param {CatalogPlatformApplicationValidator.DeleteSearchKeywordsParam} arg - * - Arg object - * + * @param {CatalogPlatformApplicationValidator.GetAppProductParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name deleteSearchKeywords - * @summary: Delete a Search Keywords - * @description: Delete a keywords by it's id. Returns an object that tells whether the keywords was deleted successfully - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/deleteSearchKeywords/). + * @returns {Promise} - Success response + * @name getAppProduct + * @summary: Get company application product data. + * @description: Products are the core resource of an application. If successful, returns a Company Application Product resource in the response body depending upon filter sent. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAppProduct/). */ - async deleteSearchKeywords( - { id, requestHeaders } = { requestHeaders: {} }, + async getAppProduct( + { itemId, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformApplicationValidator.deleteSearchKeywords().validate( + } = CatalogPlatformApplicationValidator.getAppProduct().validate( { - id, + itemId, }, { abortEarly: false, allowUnknown: true } ); @@ -2278,16 +2058,16 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformApplicationValidator.deleteSearchKeywords().validate( + } = CatalogPlatformApplicationValidator.getAppProduct().validate( { - id, + itemId, }, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > deleteSearchKeywords \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > getAppProduct \n ${warrning}`, }); } @@ -2295,8 +2075,8 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, - "delete", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/search/keyword/${id}`, + "get", + `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/product/${itemId}/`, query_params, undefined, requestHeaders, @@ -2310,7 +2090,7 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.DeleteResponse().validate(responseData, { + } = CatalogPlatformModel.OwnerAppItemResponse().validate(responseData, { abortEarly: false, allowUnknown: true, }); @@ -2321,7 +2101,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > deleteSearchKeywords \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > getAppProduct \n ${res_error}`, }); } } @@ -2330,27 +2110,41 @@ class Catalog { } /** - * @param {CatalogPlatformApplicationValidator.DeleteSearchRerankConfigurationParam} arg - * - Arg object - * + * @param {CatalogPlatformApplicationValidator.GetAppProductsParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name deleteSearchRerankConfiguration - * @summary: Delete search rerank configuration for an application - * @description: This view allows you to delete search rerank configuration for an application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/deleteSearchRerankConfiguration/). + * @returns {Promise} - + * Success response + * @name getAppProducts + * @summary: Get applicationwise products + * @description: Products are the core resource of an application. Products can be associated by categories, collections, brands and more. If successful, returns a Product resource in the response body specified in `ApplicationProductListingResponseDatabasePowered` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAppProducts/). */ - async deleteSearchRerankConfiguration( - { id, requestHeaders } = { requestHeaders: {} }, + async getAppProducts( + { + brandIds, + categoryIds, + departmentIds, + tags, + itemIds, + pageNo, + pageSize, + q, + requestHeaders, + } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformApplicationValidator.deleteSearchRerankConfiguration().validate( + } = CatalogPlatformApplicationValidator.getAppProducts().validate( { - id, + brandIds, + categoryIds, + departmentIds, + tags, + itemIds, + pageNo, + pageSize, + q, }, { abortEarly: false, allowUnknown: true } ); @@ -2361,25 +2155,40 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformApplicationValidator.deleteSearchRerankConfiguration().validate( + } = CatalogPlatformApplicationValidator.getAppProducts().validate( { - id, + brandIds, + categoryIds, + departmentIds, + tags, + itemIds, + pageNo, + pageSize, + q, }, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > deleteSearchRerankConfiguration \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > getAppProducts \n ${warrning}`, }); } const query_params = {}; + query_params["brand_ids"] = brandIds; + query_params["category_ids"] = categoryIds; + query_params["department_ids"] = departmentIds; + query_params["tags"] = tags; + query_params["item_ids"] = itemIds; + query_params["page_no"] = pageNo; + query_params["page_size"] = pageSize; + query_params["q"] = q; const response = await PlatformAPIClient.execute( this.config, - "delete", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/search/rerank/${id}`, + "get", + `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/raw-products/`, query_params, undefined, requestHeaders, @@ -2393,7 +2202,7 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.DeleteSearchRerankConfigurationResponse().validate( + } = CatalogPlatformModel.RawProductListingResponse().validate( responseData, { abortEarly: false, allowUnknown: true } ); @@ -2404,7 +2213,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > deleteSearchRerankConfiguration \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > getAppProducts \n ${res_error}`, }); } } @@ -2413,27 +2222,24 @@ class Catalog { } /** - * @param {CatalogPlatformApplicationValidator.EditAppPriceFactoryParam} arg + * @param {CatalogPlatformApplicationValidator.GetAppReturnConfigurationParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name editAppPriceFactory - * @summary: - * @description: This API allows to update price factory. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/editAppPriceFactory/). + * @returns {Promise} - Success response + * @name getAppReturnConfiguration + * @summary: Get Return configuration level set for an application + * @description: Get Product Return configuration set at an application level - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAppReturnConfiguration/). */ - async editAppPriceFactory( - { id, body, requestHeaders } = { requestHeaders: {} }, + async getAppReturnConfiguration( + { requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformApplicationValidator.editAppPriceFactory().validate( - { - id, - body, - }, + } = CatalogPlatformApplicationValidator.getAppReturnConfiguration().validate( + {}, { abortEarly: false, allowUnknown: true } ); if (error) { @@ -2443,17 +2249,14 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformApplicationValidator.editAppPriceFactory().validate( - { - id, - body, - }, + } = CatalogPlatformApplicationValidator.getAppReturnConfiguration().validate( + {}, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > editAppPriceFactory \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > getAppReturnConfiguration \n ${warrning}`, }); } @@ -2461,10 +2264,10 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, - "put", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/price-factory/${id}`, + "get", + `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/return-config`, query_params, - body, + undefined, requestHeaders, { responseHeaders } ); @@ -2476,7 +2279,7 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.AppPriceFactory().validate(responseData, { + } = CatalogPlatformModel.AppReturnConfigResponse().validate(responseData, { abortEarly: false, allowUnknown: true, }); @@ -2487,7 +2290,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > editAppPriceFactory \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > getAppReturnConfiguration \n ${res_error}`, }); } } @@ -2496,41 +2299,50 @@ class Catalog { } /** - * @param {CatalogPlatformApplicationValidator.GetAllCollectionsParam} arg + * @param {CatalogPlatformApplicationValidator.GetAppicationProductsParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name getAllCollections - * @summary: List all the collections - * @description: A Collection allows you to organize your products into hierarchical groups. For example, a dress might be in the category _Clothing_, the individual product might also be in the collection _Summer_. On successful request, returns all the collections as specified in `CollectionListingSchema` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAllCollections/). + * @returns {Promise} + * - Success response + * + * @name getAppicationProducts + * @summary: List the products + * @description: List all the products associated with a brand, collection or category in a requested sort order. The API additionally supports arbitrary search queries that may refer the name of any product, brand, category or collection. If successful, returns a paginated list of products specified in `ApplicationProductListingResponse` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAppicationProducts/). */ - async getAllCollections( + async getAppicationProducts( { q, - scheduleStatus, - type, - tag, - isActive, - pageNo, + f, + c, + filters, + isDependent, + sortOn, + pageId, pageSize, + pageNo, + pageType, + itemIds, requestHeaders, } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformApplicationValidator.getAllCollections().validate( + } = CatalogPlatformApplicationValidator.getAppicationProducts().validate( { q, - scheduleStatus, - type, - tag, - isActive, - pageNo, + f, + c, + filters, + isDependent, + sortOn, + pageId, pageSize, + pageNo, + pageType, + itemIds, }, { abortEarly: false, allowUnknown: true } ); @@ -2541,38 +2353,46 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformApplicationValidator.getAllCollections().validate( + } = CatalogPlatformApplicationValidator.getAppicationProducts().validate( { q, - scheduleStatus, - type, - tag, - isActive, - pageNo, + f, + c, + filters, + isDependent, + sortOn, + pageId, pageSize, + pageNo, + pageType, + itemIds, }, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > getAllCollections \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > getAppicationProducts \n ${warrning}`, }); } const query_params = {}; query_params["q"] = q; - query_params["schedule_status"] = scheduleStatus; - query_params["type"] = type; - query_params["tag"] = tag; - query_params["is_active"] = isActive; - query_params["page_no"] = pageNo; + query_params["f"] = f; + query_params["c"] = c; + query_params["filters"] = filters; + query_params["is_dependent"] = isDependent; + query_params["sort_on"] = sortOn; + query_params["page_id"] = pageId; query_params["page_size"] = pageSize; - + query_params["page_no"] = pageNo; + query_params["page_type"] = pageType; + query_params["item_ids"] = itemIds; + const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/collections`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/products`, query_params, undefined, requestHeaders, @@ -2586,7 +2406,7 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.GetCollectionListingResponse().validate( + } = CatalogPlatformModel.ApplicationProductListingResponse().validate( responseData, { abortEarly: false, allowUnknown: true } ); @@ -2597,7 +2417,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > getAllCollections \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > getAppicationProducts \n ${res_error}`, }); } } @@ -2606,28 +2426,99 @@ class Catalog { } /** - * @param {CatalogPlatformApplicationValidator.GetAllSearchKeywordParam} arg + * @param {Object} arg - Arg object. + * @param {string} arg.companyId - A `company_id` is a unique identifier for + * a particular seller account. + * @param {string} arg.applicationId - A `application_id` is a unique + * identifier for a particular sale channel. + * @param {string} [arg.q] - The search query. This can be a partial or + * complete name of a either a product, brand or category + * @param {string} [arg.f] - The search filter parameters. All the parameter + * filtered from filter parameters will be passed in **f** parameter in + * this format. **?f=brand:voi-jeans||and:::category:t-shirts||shirts** + * @param {string} [arg.c] - The search filter parameters for collection + * items. All the parameter filtered from filter parameters will be passed + * in **c** parameter in this format. + * **?c=brand:in:voi-jeans|and:::category:nin:t-shirts|shirts** + * @param {boolean} [arg.filters] - Pass `filters` parameter to fetch the + * filter details. This flag is used to fetch all filters + * @param {boolean} [arg.isDependent] - This query parameter is used to get + * the dependent products in the listing. + * @param {string} [arg.sortOn] - The order to sort the list of products on. + * The supported sort parameters are popularity, price, redemption and + * discount in either ascending or descending order. See the supported + * values below. + * @param {number} [arg.pageSize] - Number of items to retrieve in each + * page. Default is 12. + * @param {number[]} [arg.itemIds] - Item Ids of product + * @returns {Paginator} + * @summary: List the products + * @description: List all the products associated with a brand, collection or category in a requested sort order. The API additionally supports arbitrary search queries that may refer the name of any product, brand, category or collection. If successful, returns a paginated list of products specified in `ApplicationProductListingResponse` + */ + getAppicationProductsPaginator({ + companyId, + applicationId, + q, + f, + c, + filters, + isDependent, + sortOn, + pageSize, + itemIds, + } = {}) { + const paginator = new Paginator(); + const callback = async () => { + const pageId = paginator.nextId; + const pageNo = paginator.pageNo; + const pageType = "cursor"; + const data = await this.getAppicationProducts({ + companyId: companyId, + applicationId: applicationId, + q: q, + f: f, + c: c, + filters: filters, + isDependent: isDependent, + sortOn: sortOn, + pageId: pageId, + pageSize: pageSize, + pageNo: pageNo, + pageType: pageType, + itemIds: itemIds, + }); + paginator.setPaginator({ + hasNext: data.page.has_next ? true : false, + nextId: data.page.next_id, + }); + return data; + }; + paginator.setCallback(callback.bind(this)); + return paginator; + } + + /** + * @param {CatalogPlatformApplicationValidator.GetApplicationBrandListingParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getAllSearchKeyword - * @summary: List all Search Custom Keyword Listing - * @description: Custom Search Keyword allows you to map conditions with keywords to give you the ultimate results - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAllSearchKeyword/). + * @returns {Promise} - Success response + * @name getApplicationBrandListing + * @summary: List all the brands for the application + * @description: A brand is the name under which a product is being sold. Use this API to list all the brands. You can pass optionally filter the brands by the department. If successful, returns a paginated list of brands specified in `BrandListingResponse` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getApplicationBrandListing/). */ - async getAllSearchKeyword( - { pageNo, pageSize, q, isActive, requestHeaders } = { requestHeaders: {} }, + async getApplicationBrandListing( + { pageNo, pageSize, q, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformApplicationValidator.getAllSearchKeyword().validate( + } = CatalogPlatformApplicationValidator.getApplicationBrandListing().validate( { pageNo, pageSize, q, - isActive, }, { abortEarly: false, allowUnknown: true } ); @@ -2638,19 +2529,18 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformApplicationValidator.getAllSearchKeyword().validate( + } = CatalogPlatformApplicationValidator.getApplicationBrandListing().validate( { pageNo, pageSize, q, - isActive, }, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > getAllSearchKeyword \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > getApplicationBrandListing \n ${warrning}`, }); } @@ -2658,12 +2548,11 @@ class Catalog { query_params["page_no"] = pageNo; query_params["page_size"] = pageSize; query_params["q"] = q; - query_params["is_active"] = isActive; const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/search/keyword`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/brand`, query_params, undefined, requestHeaders, @@ -2677,7 +2566,7 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.GetSearchWordsResponse().validate(responseData, { + } = CatalogPlatformModel.BrandListingResponse().validate(responseData, { abortEarly: false, allowUnknown: true, }); @@ -2688,7 +2577,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > getAllSearchKeyword \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > getApplicationBrandListing \n ${res_error}`, }); } } @@ -2697,26 +2586,74 @@ class Catalog { } /** - * @param {CatalogPlatformApplicationValidator.GetAppCategoryReturnConfigParam} arg + * @param {Object} arg - Arg object. + * @param {string} arg.companyId - A `company_id` is a unique identifier for + * a particular seller account. + * @param {string} arg.applicationId - A `application_id` is a unique + * identifier for a particular sale channel. + * @param {number} [arg.pageSize] - Number of items to retrieve in each + * page. Default is 12. + * @param {string} [arg.q] - Search query with brand name.Use this parameter + * to search brands by brand name. + * @returns {Paginator} + * @summary: List all the brands for the application + * @description: A brand is the name under which a product is being sold. Use this API to list all the brands. You can pass optionally filter the brands by the department. If successful, returns a paginated list of brands specified in `BrandListingResponse` + */ + getApplicationBrandListingPaginator({ + companyId, + applicationId, + pageSize, + q, + } = {}) { + const paginator = new Paginator(); + const callback = async () => { + const pageId = paginator.nextId; + const pageNo = paginator.pageNo; + const pageType = "number"; + const data = await this.getApplicationBrandListing({ + companyId: companyId, + applicationId: applicationId, + pageNo: pageNo, + pageSize: pageSize, + q: q, + }); + paginator.setPaginator({ + hasNext: data.page.has_next ? true : false, + nextId: data.page.next_id, + }); + return data; + }; + paginator.setCallback(callback.bind(this)); + return paginator; + } + + /** + * @param {CatalogPlatformApplicationValidator.GetApplicationBrandsParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name getAppCategoryReturnConfig - * @summary: Get all category level configuration level set for an application - * @description: Get all category level configuration level set for an application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAppCategoryReturnConfig/). + * @returns {Promise} - Success response + * @name getApplicationBrands + * @summary: List all the brands + * @description: A brand is the name under which a product is being sold. Use this API to list all the brands. You can pass optionally filter the brands by the department. If successful, returns a paginated list of brands specified in `BrandListingResponse` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getApplicationBrands/). */ - async getAppCategoryReturnConfig( - { requestHeaders } = { requestHeaders: {} }, + async getApplicationBrands( + { department, pageNo, pageSize, q, brandId, requestHeaders } = { + requestHeaders: {}, + }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformApplicationValidator.getAppCategoryReturnConfig().validate( - {}, + } = CatalogPlatformApplicationValidator.getApplicationBrands().validate( + { + department, + pageNo, + pageSize, + q, + brandId, + }, { abortEarly: false, allowUnknown: true } ); if (error) { @@ -2726,23 +2663,34 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformApplicationValidator.getAppCategoryReturnConfig().validate( - {}, + } = CatalogPlatformApplicationValidator.getApplicationBrands().validate( + { + department, + pageNo, + pageSize, + q, + brandId, + }, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > getAppCategoryReturnConfig \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > getApplicationBrands \n ${warrning}`, }); } const query_params = {}; + query_params["department"] = department; + query_params["page_no"] = pageNo; + query_params["page_size"] = pageSize; + query_params["q"] = q; + query_params["brand_id"] = brandId; const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/return-config/categories`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/brands`, query_params, undefined, requestHeaders, @@ -2756,10 +2704,10 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.BaseAppCategoryReturnConfigResponse().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); + } = CatalogPlatformModel.BrandListingResponse().validate(responseData, { + abortEarly: false, + allowUnknown: true, + }); if (res_error) { if (this.config.options.strictResponseCheck === true) { @@ -2767,229 +2715,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > getAppCategoryReturnConfig \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {CatalogPlatformApplicationValidator.GetAppInventoryParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getAppInventory - * @summary: Get the stock of a product - * @description: Retrieve the available Inventory of the products. Use this API to get the Inventory status of products with the filters of timestamp, store_ids, brand_ids, item_id - Items - Pagination - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAppInventory/). - */ - async getAppInventory( - { - itemIds, - storeIds, - brandIds, - sellerIdentifiers, - timestamp, - pageSize, - pageId, - requestHeaders, - } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = CatalogPlatformApplicationValidator.getAppInventory().validate( - { - itemIds, - storeIds, - brandIds, - sellerIdentifiers, - timestamp, - pageSize, - pageId, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = CatalogPlatformApplicationValidator.getAppInventory().validate( - { - itemIds, - storeIds, - brandIds, - sellerIdentifiers, - timestamp, - pageSize, - pageId, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > getAppInventory \n ${warrning}`, - }); - } - - const query_params = {}; - query_params["item_ids"] = itemIds; - query_params["store_ids"] = storeIds; - query_params["brand_ids"] = brandIds; - query_params["seller_identifiers"] = sellerIdentifiers; - query_params["timestamp"] = timestamp; - query_params["page_size"] = pageSize; - query_params["page_id"] = pageId; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/inventory`, - query_params, - undefined, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = CatalogPlatformModel.InventoryStockResponse().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Catalog > getAppInventory \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {CatalogPlatformApplicationValidator.GetAppLocationsParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getAppLocations - * @summary: Get list of locations - * @description: This API allows to view all the locations asscoiated to a application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAppLocations/). - */ - async getAppLocations( - { - storeType, - uid, - q, - stage, - pageNo, - pageSize, - tags, - storeTypes, - companyUids, - requestHeaders, - } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = CatalogPlatformApplicationValidator.getAppLocations().validate( - { - storeType, - uid, - q, - stage, - pageNo, - pageSize, - tags, - storeTypes, - companyUids, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = CatalogPlatformApplicationValidator.getAppLocations().validate( - { - storeType, - uid, - q, - stage, - pageNo, - pageSize, - tags, - storeTypes, - companyUids, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > getAppLocations \n ${warrning}`, - }); - } - - const query_params = {}; - query_params["store_type"] = storeType; - query_params["uid"] = uid; - query_params["q"] = q; - query_params["stage"] = stage; - query_params["page_no"] = pageNo; - query_params["page_size"] = pageSize; - query_params["tags"] = tags; - query_params["store_types"] = storeTypes; - query_params["company_uids"] = companyUids; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/locations`, - query_params, - undefined, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = CatalogPlatformModel.LocationListSerializer().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Catalog > getAppLocations \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > getApplicationBrands \n ${res_error}`, }); } } @@ -2999,2906 +2725,81 @@ class Catalog { /** * @param {Object} arg - Arg object. - * @param {number} arg.companyId - Id of the company whose locations are to fetched - * @param {string} arg.applicationId - Id of the application whose locations - * are to fetched - * @param {string} [arg.storeType] - Helps to sort the location list on the - * basis of location type. - * @param {string} [arg.uid] - Helps to sort the location list on the basis - * of uid list. - * @param {string} [arg.q] - Query that is to be searched. - * @param {string} [arg.stage] - To filter companies on basis of verified or - * unverified companies. + * @param {string} arg.companyId - A `company_id` is a unique identifier for + * a particular seller account. + * @param {string} arg.applicationId - A `application_id` is a unique + * identifier for a particular sale channel. + * @param {string} [arg.department] - The name of the department. Use this + * parameter to filter products by a particular department. See below the + * list of available departments. You can retrieve available departments + * from the **v1.0/departments/** API * @param {number} [arg.pageSize] - Number of items to retrieve in each - * page. Default is 20. - * @param {string[]} [arg.tags] - Get locations filtered by tags. - * @param {string[]} [arg.storeTypes] - Get locations filtered by store types. - * @param {number[]} [arg.companyUids] - Filter stores by company IDs - * available in the application. - * @returns {Paginator} - * @summary: Get list of locations - * @description: This API allows to view all the locations asscoiated to a application. - */ - getAppLocationsPaginator({ - companyId, - applicationId, - storeType, - uid, - q, - stage, - pageSize, - tags, - storeTypes, - companyUids, - } = {}) { - const paginator = new Paginator(); - const callback = async () => { - const pageId = paginator.nextId; - const pageNo = paginator.pageNo; - const pageType = "number"; - const data = await this.getAppLocations({ - companyId: companyId, - applicationId: applicationId, - storeType: storeType, - uid: uid, - q: q, - stage: stage, - pageNo: pageNo, - pageSize: pageSize, - tags: tags, - storeTypes: storeTypes, - companyUids: companyUids, - }); - paginator.setPaginator({ - hasNext: data.page.has_next ? true : false, - nextId: data.page.next_id, - }); - return data; - }; - paginator.setCallback(callback.bind(this)); - return paginator; - } - - /** - * @param {CatalogPlatformApplicationValidator.GetAppPriceFactoriesParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name getAppPriceFactories - * @summary: Get price factory - * @description: This API allows to get price factories. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAppPriceFactories/). - */ - async getAppPriceFactories( - { isActive, factoryTypeId, code, pageNo, pageSize, requestHeaders } = { - requestHeaders: {}, - }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = CatalogPlatformApplicationValidator.getAppPriceFactories().validate( - { - isActive, - factoryTypeId, - code, - pageNo, - pageSize, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = CatalogPlatformApplicationValidator.getAppPriceFactories().validate( - { - isActive, - factoryTypeId, - code, - pageNo, - pageSize, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > getAppPriceFactories \n ${warrning}`, - }); - } - - const query_params = {}; - query_params["is_active"] = isActive; - query_params["factory_type_id"] = factoryTypeId; - query_params["code"] = code; - query_params["page_no"] = pageNo; - query_params["page_size"] = pageSize; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/price-factory`, - query_params, - undefined, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = CatalogPlatformModel.GetAppPriceFactoryResponse().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Catalog > getAppPriceFactories \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {CatalogPlatformApplicationValidator.GetAppPriceFactoryParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getAppPriceFactory - * @summary: Get price factory - * @description: This API allows to get price factory. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAppPriceFactory/). - */ - async getAppPriceFactory( - { id, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = CatalogPlatformApplicationValidator.getAppPriceFactory().validate( - { - id, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = CatalogPlatformApplicationValidator.getAppPriceFactory().validate( - { - id, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > getAppPriceFactory \n ${warrning}`, - }); - } - - const query_params = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/price-factory/${id}`, - query_params, - undefined, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = CatalogPlatformModel.AppPriceFactory().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Catalog > getAppPriceFactory \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {CatalogPlatformApplicationValidator.GetAppProductParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getAppProduct - * @summary: Get company application product data. - * @description: Products are the core resource of an application. If successful, returns a Company Application Product resource in the response body depending upon filter sent. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAppProduct/). - */ - async getAppProduct( - { itemId, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = CatalogPlatformApplicationValidator.getAppProduct().validate( - { - itemId, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = CatalogPlatformApplicationValidator.getAppProduct().validate( - { - itemId, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > getAppProduct \n ${warrning}`, - }); - } - - const query_params = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/product/${itemId}`, - query_params, - undefined, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = CatalogPlatformModel.OwnerAppItemResponse().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Catalog > getAppProduct \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {CatalogPlatformApplicationValidator.GetAppProductsParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name getAppProducts - * @summary: Get applicationwise products - * @description: Products are the core resource of an application. Products can be associated by categories, collections, brands and more. If successful, returns a Product resource in the response body specified in `ApplicationProductListingResponseDatabasePowered` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAppProducts/). - */ - async getAppProducts( - { - brandIds, - categoryIds, - departmentIds, - tags, - itemIds, - pageNo, - pageSize, - q, - requestHeaders, - } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = CatalogPlatformApplicationValidator.getAppProducts().validate( - { - brandIds, - categoryIds, - departmentIds, - tags, - itemIds, - pageNo, - pageSize, - q, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = CatalogPlatformApplicationValidator.getAppProducts().validate( - { - brandIds, - categoryIds, - departmentIds, - tags, - itemIds, - pageNo, - pageSize, - q, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > getAppProducts \n ${warrning}`, - }); - } - - const query_params = {}; - query_params["brand_ids"] = brandIds; - query_params["category_ids"] = categoryIds; - query_params["department_ids"] = departmentIds; - query_params["tags"] = tags; - query_params["item_ids"] = itemIds; - query_params["page_no"] = pageNo; - query_params["page_size"] = pageSize; - query_params["q"] = q; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/raw-products`, - query_params, - undefined, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = CatalogPlatformModel.RawProductListingResponse().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Catalog > getAppProducts \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {CatalogPlatformApplicationValidator.GetAppReturnConfigurationParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getAppReturnConfiguration - * @summary: Get Return configuration level set for an application - * @description: Get Product Return configuration set at an application level - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAppReturnConfiguration/). - */ - async getAppReturnConfiguration( - { requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = CatalogPlatformApplicationValidator.getAppReturnConfiguration().validate( - {}, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = CatalogPlatformApplicationValidator.getAppReturnConfiguration().validate( - {}, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > getAppReturnConfiguration \n ${warrning}`, - }); - } - - const query_params = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/return-config`, - query_params, - undefined, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = CatalogPlatformModel.AppReturnConfigResponse().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Catalog > getAppReturnConfiguration \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {CatalogPlatformApplicationValidator.GetAppicationProductsParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name getAppicationProducts - * @summary: List the products - * @description: List all the products associated with a brand, collection or category in a requested sort order. The API additionally supports arbitrary search queries that may refer the name of any product, brand, category or collection. If successful, returns a paginated list of products specified in `ApplicationProductListingResponse` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAppicationProducts/). - */ - async getAppicationProducts( - { - q, - f, - c, - filters, - isDependent, - sortOn, - pageId, - pageSize, - pageNo, - pageType, - itemIds, - requestHeaders, - } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = CatalogPlatformApplicationValidator.getAppicationProducts().validate( - { - q, - f, - c, - filters, - isDependent, - sortOn, - pageId, - pageSize, - pageNo, - pageType, - itemIds, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = CatalogPlatformApplicationValidator.getAppicationProducts().validate( - { - q, - f, - c, - filters, - isDependent, - sortOn, - pageId, - pageSize, - pageNo, - pageType, - itemIds, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > getAppicationProducts \n ${warrning}`, - }); - } - - const query_params = {}; - query_params["q"] = q; - query_params["f"] = f; - query_params["c"] = c; - query_params["filters"] = filters; - query_params["is_dependent"] = isDependent; - query_params["sort_on"] = sortOn; - query_params["page_id"] = pageId; - query_params["page_size"] = pageSize; - query_params["page_no"] = pageNo; - query_params["page_type"] = pageType; - query_params["item_ids"] = itemIds; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/products`, - query_params, - undefined, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = CatalogPlatformModel.ApplicationProductListingResponse().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Catalog > getAppicationProducts \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {Object} arg - Arg object. - * @param {number} arg.companyId - A `company_id` is a unique identifier for - * a particular seller account. - * @param {string} arg.applicationId - A `application_id` is a unique - * identifier for a particular sale channel. - * @param {string} [arg.q] - The search query. This can be a partial or - * complete name of a either a product, brand or category - * @param {string} [arg.f] - The search filter parameters. All the parameter - * filtered from filter parameters will be passed in **f** parameter in - * this format. **?f=brand:voi-jeans||and:::category:t-shirts||shirts** - * @param {string} [arg.c] - The search filter parameters for collection - * items. All the parameter filtered from filter parameters will be passed - * in **c** parameter in this format. - * **?c=brand:in:voi-jeans|and:::category:nin:t-shirts|shirts** - * @param {boolean} [arg.filters] - Pass `filters` parameter to fetch the - * filter details. This flag is used to fetch all filters - * @param {boolean} [arg.isDependent] - This query parameter is used to get - * the dependent products in the listing. - * @param {string} [arg.sortOn] - The order to sort the list of products on. - * The supported sort parameters are popularity, price, redemption and - * discount in either ascending or descending order. See the supported - * values below. - * @param {number} [arg.pageSize] - Number of items to retrieve in each - * page. Default is 12. - * @param {string[]} [arg.itemIds] - Item Ids of product - * @returns {Paginator} - * @summary: List the products - * @description: List all the products associated with a brand, collection or category in a requested sort order. The API additionally supports arbitrary search queries that may refer the name of any product, brand, category or collection. If successful, returns a paginated list of products specified in `ApplicationProductListingResponse` - */ - getAppicationProductsPaginator({ - companyId, - applicationId, - q, - f, - c, - filters, - isDependent, - sortOn, - pageSize, - itemIds, - } = {}) { - const paginator = new Paginator(); - const callback = async () => { - const pageId = paginator.nextId; - const pageNo = paginator.pageNo; - const pageType = "cursor"; - const data = await this.getAppicationProducts({ - companyId: companyId, - applicationId: applicationId, - q: q, - f: f, - c: c, - filters: filters, - isDependent: isDependent, - sortOn: sortOn, - pageId: pageId, - pageSize: pageSize, - pageNo: pageNo, - pageType: pageType, - itemIds: itemIds, - }); - paginator.setPaginator({ - hasNext: data.page.has_next ? true : false, - nextId: data.page.next_id, - }); - return data; - }; - paginator.setCallback(callback.bind(this)); - return paginator; - } - - /** - * @param {CatalogPlatformApplicationValidator.GetApplicationBrandListingParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getApplicationBrandListing - * @summary: List all the brands for the application - * @description: A brand is the name under which a product is being sold. Use this API to list all the brands. You can pass optionally filter the brands by the department. If successful, returns a paginated list of brands specified in `BrandListingResponse` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getApplicationBrandListing/). - */ - async getApplicationBrandListing( - { pageNo, pageSize, q, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = CatalogPlatformApplicationValidator.getApplicationBrandListing().validate( - { - pageNo, - pageSize, - q, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = CatalogPlatformApplicationValidator.getApplicationBrandListing().validate( - { - pageNo, - pageSize, - q, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > getApplicationBrandListing \n ${warrning}`, - }); - } - - const query_params = {}; - query_params["page_no"] = pageNo; - query_params["page_size"] = pageSize; - query_params["q"] = q; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/brand`, - query_params, - undefined, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = CatalogPlatformModel.BrandListingResponse().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Catalog > getApplicationBrandListing \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {Object} arg - Arg object. - * @param {string} arg.companyId - A `company_id` is a unique identifier for - * a particular seller account. - * @param {string} arg.applicationId - A `application_id` is a unique - * identifier for a particular sale channel. - * @param {number} [arg.pageSize] - Number of items to retrieve in each - * page. Default is 12. - * @param {string} [arg.q] - Search query with brand name.Use this parameter - * to search brands by brand name. - * @returns {Paginator} - * @summary: List all the brands for the application - * @description: A brand is the name under which a product is being sold. Use this API to list all the brands. You can pass optionally filter the brands by the department. If successful, returns a paginated list of brands specified in `BrandListingResponse` - */ - getApplicationBrandListingPaginator({ - companyId, - applicationId, - pageSize, - q, - } = {}) { - const paginator = new Paginator(); - const callback = async () => { - const pageId = paginator.nextId; - const pageNo = paginator.pageNo; - const pageType = "number"; - const data = await this.getApplicationBrandListing({ - companyId: companyId, - applicationId: applicationId, - pageNo: pageNo, - pageSize: pageSize, - q: q, - }); - paginator.setPaginator({ - hasNext: data.page.has_next ? true : false, - nextId: data.page.next_id, - }); - return data; - }; - paginator.setCallback(callback.bind(this)); - return paginator; - } - - /** - * @param {CatalogPlatformApplicationValidator.GetApplicationBrandsParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getApplicationBrands - * @summary: List all the brands - * @description: A brand is the name under which a product is being sold. Use this API to list all the brands. You can pass optionally filter the brands by the department. If successful, returns a paginated list of brands specified in `BrandListingResponse` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getApplicationBrands/). - */ - async getApplicationBrands( - { department, pageNo, pageSize, q, brandId, requestHeaders } = { - requestHeaders: {}, - }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = CatalogPlatformApplicationValidator.getApplicationBrands().validate( - { - department, - pageNo, - pageSize, - q, - brandId, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = CatalogPlatformApplicationValidator.getApplicationBrands().validate( - { - department, - pageNo, - pageSize, - q, - brandId, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > getApplicationBrands \n ${warrning}`, - }); - } - - const query_params = {}; - query_params["department"] = department; - query_params["page_no"] = pageNo; - query_params["page_size"] = pageSize; - query_params["q"] = q; - query_params["brand_id"] = brandId; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/brands`, - query_params, - undefined, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = CatalogPlatformModel.BrandListingResponse().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Catalog > getApplicationBrands \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {Object} arg - Arg object. - * @param {number} arg.companyId - A `company_id` is a unique identifier for - * a particular seller account. - * @param {string} arg.applicationId - A `application_id` is a unique - * identifier for a particular sale channel. - * @param {string} [arg.department] - The name of the department. Use this - * parameter to filter products by a particular department. See below the - * list of available departments. You can retrieve available departments - * from the **v1.0/departments/** API - * @param {number} [arg.pageSize] - Number of items to retrieve in each - * page. Default is 12. - * @param {string} [arg.q] - Search query with brand name.Use this parameter - * to search brands by brand name. - * @param {number} [arg.brandId] - Helps to sort the brands list on the - * basis of uid list. - * @returns {Paginator} - * @summary: List all the brands - * @description: A brand is the name under which a product is being sold. Use this API to list all the brands. You can pass optionally filter the brands by the department. If successful, returns a paginated list of brands specified in `BrandListingResponse` - */ - getApplicationBrandsPaginator({ - companyId, - applicationId, - department, - pageSize, - q, - brandId, - } = {}) { - const paginator = new Paginator(); - const callback = async () => { - const pageId = paginator.nextId; - const pageNo = paginator.pageNo; - const pageType = "number"; - const data = await this.getApplicationBrands({ - companyId: companyId, - applicationId: applicationId, - department: department, - pageNo: pageNo, - pageSize: pageSize, - q: q, - brandId: brandId, - }); - paginator.setPaginator({ - hasNext: data.page.has_next ? true : false, - nextId: data.page.next_id, - }); - return data; - }; - paginator.setCallback(callback.bind(this)); - return paginator; - } - - /** - * @param {CatalogPlatformApplicationValidator.GetApplicationCategoryListingParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getApplicationCategoryListing - * @summary: List all the brands for the application - * @description: A brand is the name under which a product is being sold. Use this API to list all the brands. You can pass optionally filter the brands by the department. If successful, returns a paginated list of brands specified in `BrandListingResponse` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getApplicationCategoryListing/). - */ - async getApplicationCategoryListing( - { departmentId, pageNo, pageSize, q, requestHeaders } = { - requestHeaders: {}, - }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = CatalogPlatformApplicationValidator.getApplicationCategoryListing().validate( - { - departmentId, - pageNo, - pageSize, - q, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = CatalogPlatformApplicationValidator.getApplicationCategoryListing().validate( - { - departmentId, - pageNo, - pageSize, - q, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > getApplicationCategoryListing \n ${warrning}`, - }); - } - - const query_params = {}; - query_params["department_id"] = departmentId; - query_params["page_no"] = pageNo; - query_params["page_size"] = pageSize; - query_params["q"] = q; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/category`, - query_params, - undefined, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = CatalogPlatformModel.BrandListingResponse().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Catalog > getApplicationCategoryListing \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {Object} arg - Arg object. - * @param {number} arg.companyId - A `company_id` is a unique identifier for - * a particular seller account. - * @param {string} arg.applicationId - A `application_id` is a unique - * identifier for a particular sale channel. - * @param {number} [arg.departmentId] - A `department_id` is a unique - * identifier for a particular department. - * @param {number} [arg.pageSize] - Number of items to retrieve in each - * page. Default is 12. - * @param {string} [arg.q] - Search query with brand name.Use this parameter - * to search brands by brand name. - * @returns {Paginator} - * @summary: List all the brands for the application - * @description: A brand is the name under which a product is being sold. Use this API to list all the brands. You can pass optionally filter the brands by the department. If successful, returns a paginated list of brands specified in `BrandListingResponse` - */ - getApplicationCategoryListingPaginator({ - companyId, - applicationId, - departmentId, - pageSize, - q, - } = {}) { - const paginator = new Paginator(); - const callback = async () => { - const pageId = paginator.nextId; - const pageNo = paginator.pageNo; - const pageType = "number"; - const data = await this.getApplicationCategoryListing({ - companyId: companyId, - applicationId: applicationId, - departmentId: departmentId, - pageNo: pageNo, - pageSize: pageSize, - q: q, - }); - paginator.setPaginator({ - hasNext: data.page.has_next ? true : false, - nextId: data.page.next_id, - }); - return data; - }; - paginator.setCallback(callback.bind(this)); - return paginator; - } - - /** - * @param {CatalogPlatformApplicationValidator.GetApplicationDepartmentListingParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name getApplicationDepartmentListing - * @summary: List all the departments for the application - * @description: Departments are a way to categorise similar products. A product can lie in multiple departments. For example, a skirt can below to the 'Women's Fashion' Department while a handbag can lie in 'Women's Accessories' Department. Use this API to list all the application departments. If successful, returns the list of departments specified in `ApplicationDepartmentListingResponse` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getApplicationDepartmentListing/). - */ - async getApplicationDepartmentListing( - { pageNo, pageSize, q, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = CatalogPlatformApplicationValidator.getApplicationDepartmentListing().validate( - { - pageNo, - pageSize, - q, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = CatalogPlatformApplicationValidator.getApplicationDepartmentListing().validate( - { - pageNo, - pageSize, - q, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > getApplicationDepartmentListing \n ${warrning}`, - }); - } - - const query_params = {}; - query_params["page_no"] = pageNo; - query_params["page_size"] = pageSize; - query_params["q"] = q; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/department`, - query_params, - undefined, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = CatalogPlatformModel.ApplicationDepartmentListingResponse().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Catalog > getApplicationDepartmentListing \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {Object} arg - Arg object. - * @param {number} arg.companyId - A `company_id` is a unique identifier for - * a particular seller account. - * @param {string} arg.applicationId - A `application_id` is a unique - * identifier for a particular sale channel. - * @param {number} [arg.pageSize] - Number of items to retrieve in each - * page. Default is 12. - * @param {string} [arg.q] - Search query with brand name.Use this parameter - * to search department by name. - * @returns {Paginator} - * @summary: List all the departments for the application - * @description: Departments are a way to categorise similar products. A product can lie in multiple departments. For example, a skirt can below to the 'Women's Fashion' Department while a handbag can lie in 'Women's Accessories' Department. Use this API to list all the application departments. If successful, returns the list of departments specified in `ApplicationDepartmentListingResponse` - */ - getApplicationDepartmentListingPaginator({ - companyId, - applicationId, - pageSize, - q, - } = {}) { - const paginator = new Paginator(); - const callback = async () => { - const pageId = paginator.nextId; - const pageNo = paginator.pageNo; - const pageType = "number"; - const data = await this.getApplicationDepartmentListing({ - companyId: companyId, - applicationId: applicationId, - pageNo: pageNo, - pageSize: pageSize, - q: q, - }); - paginator.setPaginator({ - hasNext: data.page.has_next ? true : false, - nextId: data.page.next_id, - }); - return data; - }; - paginator.setCallback(callback.bind(this)); - return paginator; - } - - /** - * @param {CatalogPlatformApplicationValidator.GetAutocompleteConfigParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name getAutocompleteConfig - * @summary: List all Autocomplete Keyword Listing - * @description: Custom Autocomplete Keyword allows you to map conditions with keywords to give you the ultimate results - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAutocompleteConfig/). - */ - async getAutocompleteConfig( - { pageNo, pageSize, q, isActive, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = CatalogPlatformApplicationValidator.getAutocompleteConfig().validate( - { - pageNo, - pageSize, - q, - isActive, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = CatalogPlatformApplicationValidator.getAutocompleteConfig().validate( - { - pageNo, - pageSize, - q, - isActive, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > getAutocompleteConfig \n ${warrning}`, - }); - } - - const query_params = {}; - query_params["page_no"] = pageNo; - query_params["page_size"] = pageSize; - query_params["q"] = q; - query_params["is_active"] = isActive; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/search/autocomplete`, - query_params, - undefined, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = CatalogPlatformModel.GetAutocompleteWordsResponse().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Catalog > getAutocompleteConfig \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {CatalogPlatformApplicationValidator.GetAutocompleteKeywordDetailParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name getAutocompleteKeywordDetail - * @summary: Get a Autocomplete Keywords Details - * @description: Get the details of a words by its `id`. If successful, returns a keywords resource in the response body specified in `GetAutocompleteWordsResponseSchema` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAutocompleteKeywordDetail/). - */ - async getAutocompleteKeywordDetail( - { id, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = CatalogPlatformApplicationValidator.getAutocompleteKeywordDetail().validate( - { - id, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = CatalogPlatformApplicationValidator.getAutocompleteKeywordDetail().validate( - { - id, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > getAutocompleteKeywordDetail \n ${warrning}`, - }); - } - - const query_params = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/search/autocomplete/${id}`, - query_params, - undefined, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = CatalogPlatformModel.GetAutocompleteWordsData().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Catalog > getAutocompleteKeywordDetail \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {CatalogPlatformApplicationValidator.GetAutocompletePreviewParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name getAutocompletePreview - * @summary: Get autocomplete suggestions as per config for an application - * @description: This API allows to get autocomplete suggestions as per config. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAutocompletePreview/). - */ - async getAutocompletePreview( - { - q, - categorySuggestion, - brandSuggestion, - collectionSuggestion, - productSuggestion, - querySuggestion, - requestHeaders, - } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = CatalogPlatformApplicationValidator.getAutocompletePreview().validate( - { - q, - categorySuggestion, - brandSuggestion, - collectionSuggestion, - productSuggestion, - querySuggestion, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = CatalogPlatformApplicationValidator.getAutocompletePreview().validate( - { - q, - categorySuggestion, - brandSuggestion, - collectionSuggestion, - productSuggestion, - querySuggestion, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > getAutocompletePreview \n ${warrning}`, - }); - } - - const query_params = {}; - query_params["q"] = q; - query_params["category_suggestion"] = categorySuggestion; - query_params["brand_suggestion"] = brandSuggestion; - query_params["collection_suggestion"] = collectionSuggestion; - query_params["product_suggestion"] = productSuggestion; - query_params["query_suggestion"] = querySuggestion; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/search/autocomplete/preview`, - query_params, - undefined, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = CatalogPlatformModel.AutocompletePreviewResponseSchema().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Catalog > getAutocompletePreview \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {CatalogPlatformApplicationValidator.GetAutocompleteSettingsParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name getAutocompleteSettings - * @summary: Get autocomplete settings config for an application - * @description: This API allows to get autocomplete settings config for an application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAutocompleteSettings/). - */ - async getAutocompleteSettings( - { requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = CatalogPlatformApplicationValidator.getAutocompleteSettings().validate( - {}, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = CatalogPlatformApplicationValidator.getAutocompleteSettings().validate( - {}, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > getAutocompleteSettings \n ${warrning}`, - }); - } - - const query_params = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/search/autocomplete/settings`, - query_params, - undefined, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = CatalogPlatformModel.AutocompleteResponseSchema().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Catalog > getAutocompleteSettings \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {CatalogPlatformApplicationValidator.GetCatalogConfigurationParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name getCatalogConfiguration - * @summary: Get configuration meta details for catalog for admin panel - * @description: configuration meta details for catalog. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getCatalogConfiguration/). - */ - async getCatalogConfiguration( - { requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = CatalogPlatformApplicationValidator.getCatalogConfiguration().validate( - {}, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = CatalogPlatformApplicationValidator.getCatalogConfiguration().validate( - {}, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > getCatalogConfiguration \n ${warrning}`, - }); - } - - const query_params = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/product-configuration/metadata`, - query_params, - undefined, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = CatalogPlatformModel.GetCatalogConfigurationMetaData().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Catalog > getCatalogConfiguration \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {CatalogPlatformApplicationValidator.GetCatalogInsightsParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getCatalogInsights - * @summary: Analytics data of catalog and inventory. - * @description: Catalog Insights api returns the count of catalog related data like products, brands, departments and categories that have been made live as per configuration of the app. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getCatalogInsights/). - */ - async getCatalogInsights( - { brand, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = CatalogPlatformApplicationValidator.getCatalogInsights().validate( - { - brand, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = CatalogPlatformApplicationValidator.getCatalogInsights().validate( - { - brand, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > getCatalogInsights \n ${warrning}`, - }); - } - - const query_params = {}; - query_params["brand"] = brand; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/analytics/insights`, - query_params, - undefined, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = CatalogPlatformModel.CatalogInsightResponse().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Catalog > getCatalogInsights \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {CatalogPlatformApplicationValidator.GetCategoriesParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getCategories - * @summary: List all the categories - * @description: List all the categories. You can optionally pass filter the brands by the department. If successful, returns a paginated list of brands specified in `CategoryListingResponse` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getCategories/). - */ - async getCategories( - { department, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = CatalogPlatformApplicationValidator.getCategories().validate( - { - department, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = CatalogPlatformApplicationValidator.getCategories().validate( - { - department, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > getCategories \n ${warrning}`, - }); - } - - const query_params = {}; - query_params["department"] = department; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/categories`, - query_params, - undefined, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = CatalogPlatformModel.CategoryListingResponse().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Catalog > getCategories \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {CatalogPlatformApplicationValidator.GetCollectionDetailParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name getCollectionDetail - * @summary: Get a particular collection - * @description: Get the details of a collection by its `slug`. If successful, returns a Collection resource in the response body specified in `CollectionDetailResponse` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getCollectionDetail/). - */ - async getCollectionDetail( - { slug, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = CatalogPlatformApplicationValidator.getCollectionDetail().validate( - { - slug, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = CatalogPlatformApplicationValidator.getCollectionDetail().validate( - { - slug, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > getCollectionDetail \n ${warrning}`, - }); - } - - const query_params = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/collections/${slug}`, - query_params, - undefined, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = CatalogPlatformModel.GetCollectionDetailResponse().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Catalog > getCollectionDetail \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {CatalogPlatformApplicationValidator.GetConfigurationByTypeParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name getConfigurationByType - * @summary: Get configured details for catalog - * @description: configured details for catalog. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getConfigurationByType/). - */ - async getConfigurationByType( - { type, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = CatalogPlatformApplicationValidator.getConfigurationByType().validate( - { - type, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = CatalogPlatformApplicationValidator.getConfigurationByType().validate( - { - type, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > getConfigurationByType \n ${warrning}`, - }); - } - - const query_params = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/product-configuration/${type}`, - query_params, - undefined, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = CatalogPlatformModel.GetAppCatalogEntityConfiguration().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Catalog > getConfigurationByType \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {CatalogPlatformApplicationValidator.GetConfigurationMetadataParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name getConfigurationMetadata - * @summary: Get configuration metadata details for catalog for admin panel - * @description: Get the configuraion metadata details for catalog. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getConfigurationMetadata/). - */ - async getConfigurationMetadata( - { configType, templateSlug, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = CatalogPlatformApplicationValidator.getConfigurationMetadata().validate( - { - configType, - templateSlug, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = CatalogPlatformApplicationValidator.getConfigurationMetadata().validate( - { - configType, - templateSlug, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > getConfigurationMetadata \n ${warrning}`, - }); - } - - const query_params = {}; - query_params["template_slug"] = templateSlug; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/catalog/v2.0/company/${this.config.companyId}/application/${this.applicationId}/product-configuration/${configType}/metadata`, - query_params, - undefined, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = CatalogPlatformModel.GetConfigMetadataResponse().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Catalog > getConfigurationMetadata \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {CatalogPlatformApplicationValidator.GetConfigurationsParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name getConfigurations - * @summary: Get configured details for catalog - * @description: configured details for catalog. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getConfigurations/). - */ - async getConfigurations( - { requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = CatalogPlatformApplicationValidator.getConfigurations().validate( - {}, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = CatalogPlatformApplicationValidator.getConfigurations().validate( - {}, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > getConfigurations \n ${warrning}`, - }); - } - - const query_params = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/product-configuration`, - query_params, - undefined, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = CatalogPlatformModel.GetAppCatalogConfiguration().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Catalog > getConfigurations \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {CatalogPlatformApplicationValidator.GetConfigurationsFilterMetadataParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getConfigurationsFilterMetadata - * @summary: Get filter details for application - * @description: configured details for catalog. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getConfigurationsFilterMetadata/). - */ - async getConfigurationsFilterMetadata( - { filter, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = CatalogPlatformApplicationValidator.getConfigurationsFilterMetadata().validate( - { - filter, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = CatalogPlatformApplicationValidator.getConfigurationsFilterMetadata().validate( - { - filter, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > getConfigurationsFilterMetadata \n ${warrning}`, - }); - } - - const query_params = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/product-configuration/metadata/${filter}`, - query_params, - undefined, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = CatalogPlatformModel.FilterResponse().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Catalog > getConfigurationsFilterMetadata \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {CatalogPlatformApplicationValidator.GetDepartmentsParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getDepartments - * @summary: List all the departments - * @description: Departments are a way to categorise similar products. A product can lie in multiple departments. For example, a skirt can below to the 'Women's Fashion' Department while a handbag can lie in 'Women's Accessories' Department. Use this API to list all the departments. If successful, returns the list of departments specified in `DepartmentResponse` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getDepartments/). - */ - async getDepartments( - { requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = CatalogPlatformApplicationValidator.getDepartments().validate( - {}, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = CatalogPlatformApplicationValidator.getDepartments().validate( - {}, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > getDepartments \n ${warrning}`, - }); - } - - const query_params = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/departments`, - query_params, - undefined, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = CatalogPlatformModel.DepartmentResponse().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Catalog > getDepartments \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {CatalogPlatformApplicationValidator.GetDiscountedInventoryBySizeIdentifierParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name getDiscountedInventoryBySizeIdentifier - * @summary: Get Inventory for company - * @description: This API allows get Inventory data for particular company grouped by size and store. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getDiscountedInventoryBySizeIdentifier/). - */ - async getDiscountedInventoryBySizeIdentifier( - { - itemId, - sizeIdentifier, - pageNo, - pageSize, - locationIds, - requestHeaders, - } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = CatalogPlatformApplicationValidator.getDiscountedInventoryBySizeIdentifier().validate( - { - itemId, - sizeIdentifier, - pageNo, - pageSize, - locationIds, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = CatalogPlatformApplicationValidator.getDiscountedInventoryBySizeIdentifier().validate( - { - itemId, - sizeIdentifier, - pageNo, - pageSize, - locationIds, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > getDiscountedInventoryBySizeIdentifier \n ${warrning}`, - }); - } - - const query_params = {}; - query_params["page_no"] = pageNo; - query_params["page_size"] = pageSize; - query_params["location_ids"] = locationIds; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/products/${itemId}/inventory/${sizeIdentifier}`, - query_params, - undefined, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = CatalogPlatformModel.InventorySellerIdentifierResponsePaginated().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Catalog > getDiscountedInventoryBySizeIdentifier \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {CatalogPlatformApplicationValidator.GetGroupConfigurationsParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getGroupConfigurations - * @summary: Get the details of the application configured configurations of group config types. - * @description: Get the details of the application configured configurations of group config types. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getGroupConfigurations/). - */ - async getGroupConfigurations( - { configType, pageNo, pageSize, search, templateSlug, requestHeaders } = { - requestHeaders: {}, - }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = CatalogPlatformApplicationValidator.getGroupConfigurations().validate( - { - configType, - pageNo, - pageSize, - search, - templateSlug, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = CatalogPlatformApplicationValidator.getGroupConfigurations().validate( - { - configType, - pageNo, - pageSize, - search, - templateSlug, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > getGroupConfigurations \n ${warrning}`, - }); - } - - const query_params = {}; - query_params["page_no"] = pageNo; - query_params["page_size"] = pageSize; - query_params["search"] = search; - query_params["template_slug"] = templateSlug; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/catalog/v2.0/company/${this.config.companyId}/application/${this.applicationId}/product-configuration/${configType}/groups`, - query_params, - undefined, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = CatalogPlatformModel.GetConfigResponse().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Catalog > getGroupConfigurations \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {CatalogPlatformApplicationValidator.GetListingConfigurationsParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name getListingConfigurations - * @summary: Get the details of the application configured configurations of listing config types. - * @description: Get the details of the application configured configurations of listing config types. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getListingConfigurations/). - */ - async getListingConfigurations( - { configType, pageNo, pageSize, search, uids, requestHeaders } = { - requestHeaders: {}, - }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = CatalogPlatformApplicationValidator.getListingConfigurations().validate( - { - configType, - pageNo, - pageSize, - search, - uids, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = CatalogPlatformApplicationValidator.getListingConfigurations().validate( - { - configType, - pageNo, - pageSize, - search, - uids, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > getListingConfigurations \n ${warrning}`, - }); - } - - const query_params = {}; - query_params["page_no"] = pageNo; - query_params["page_size"] = pageSize; - query_params["search"] = search; - query_params["uids"] = uids; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/catalog/v2.0/company/${this.config.companyId}/application/${this.applicationId}/product-configuration/${configType}`, - query_params, - undefined, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = CatalogPlatformModel.GetListingConfigResponse().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Catalog > getListingConfigurations \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {CatalogPlatformApplicationValidator.GetLivePreviewParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getLivePreview - * @summary: Get live preview of a Merchandising Rule - * @description: This allows you to get live preview of a merchandising rule. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getLivePreview/). - */ - async getLivePreview( - { merchandisingRuleId, searchKeyword, requestHeaders } = { - requestHeaders: {}, - }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = CatalogPlatformApplicationValidator.getLivePreview().validate( - { - merchandisingRuleId, - searchKeyword, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = CatalogPlatformApplicationValidator.getLivePreview().validate( - { - merchandisingRuleId, - searchKeyword, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > getLivePreview \n ${warrning}`, - }); - } - - const query_params = {}; - query_params["search_keyword"] = searchKeyword; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/merchandise/rules/${merchandisingRuleId}/preview`, - query_params, - undefined, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = CatalogPlatformModel.ProductListingResponse().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Catalog > getLivePreview \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {CatalogPlatformApplicationValidator.GetMerchandisingQueryParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getMerchandisingQuery - * @summary: Get Merchandising Rule's query details - * @description: This allows you to get details of a merchandising rule's query. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getMerchandisingQuery/). - */ - async getMerchandisingQuery( - { merchandisingRuleId, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = CatalogPlatformApplicationValidator.getMerchandisingQuery().validate( - { - merchandisingRuleId, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = CatalogPlatformApplicationValidator.getMerchandisingQuery().validate( - { - merchandisingRuleId, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > getMerchandisingQuery \n ${warrning}`, - }); - } - - const query_params = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/merchandise/rules/${merchandisingRuleId}/query`, - query_params, - undefined, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = CatalogPlatformModel.SearchRequest().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Catalog > getMerchandisingQuery \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {CatalogPlatformApplicationValidator.GetMerchandisingRuleBoostActionParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name getMerchandisingRuleBoostAction - * @summary: Get Merchandising Rule's Boost action details - * @description: This allows you to get details of Boost action of a merchandising rule. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getMerchandisingRuleBoostAction/). - */ - async getMerchandisingRuleBoostAction( - { merchandisingRuleId, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = CatalogPlatformApplicationValidator.getMerchandisingRuleBoostAction().validate( - { - merchandisingRuleId, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = CatalogPlatformApplicationValidator.getMerchandisingRuleBoostAction().validate( - { - merchandisingRuleId, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > getMerchandisingRuleBoostAction \n ${warrning}`, - }); - } - - const query_params = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/merchandise/rules/${merchandisingRuleId}/boost`, - query_params, - undefined, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = CatalogPlatformModel.GetMerchandisingRuleBoostAction().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Catalog > getMerchandisingRuleBoostAction \n ${res_error}`, - }); - } - } - - return response; + * page. Default is 12. + * @param {string} [arg.q] - Search query with brand name.Use this parameter + * to search brands by brand name. + * @param {number[]} [arg.brandId] - Helps to sort the brands list on the + * basis of uid list. + * @returns {Paginator} + * @summary: List all the brands + * @description: A brand is the name under which a product is being sold. Use this API to list all the brands. You can pass optionally filter the brands by the department. If successful, returns a paginated list of brands specified in `BrandListingResponse` + */ + getApplicationBrandsPaginator({ + companyId, + applicationId, + department, + pageSize, + q, + brandId, + } = {}) { + const paginator = new Paginator(); + const callback = async () => { + const pageId = paginator.nextId; + const pageNo = paginator.pageNo; + const pageType = "number"; + const data = await this.getApplicationBrands({ + companyId: companyId, + applicationId: applicationId, + department: department, + pageNo: pageNo, + pageSize: pageSize, + q: q, + brandId: brandId, + }); + paginator.setPaginator({ + hasNext: data.page.has_next ? true : false, + nextId: data.page.next_id, + }); + return data; + }; + paginator.setCallback(callback.bind(this)); + return paginator; } /** - * @param {CatalogPlatformApplicationValidator.GetMerchandisingRuleBuryActionParam} arg + * @param {CatalogPlatformApplicationValidator.GetApplicationCategoryListingParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name getMerchandisingRuleBuryAction - * @summary: Get Merchandising Rule's Bury action details - * @description: This allows you to get details of Bury action of a merchandising rule. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getMerchandisingRuleBuryAction/). + * @returns {Promise} - Success response + * @name getApplicationCategoryListing + * @summary: List all the brands for the application + * @description: A brand is the name under which a product is being sold. Use this API to list all the brands. You can pass optionally filter the brands by the department. If successful, returns a paginated list of brands specified in `BrandListingResponse` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getApplicationCategoryListing/). */ - async getMerchandisingRuleBuryAction( - { merchandisingRuleId, requestHeaders } = { requestHeaders: {} }, + async getApplicationCategoryListing( + { departmentId, pageNo, pageSize, q, requestHeaders } = { + requestHeaders: {}, + }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformApplicationValidator.getMerchandisingRuleBuryAction().validate( + } = CatalogPlatformApplicationValidator.getApplicationCategoryListing().validate( { - merchandisingRuleId, + departmentId, + pageNo, + pageSize, + q, }, { abortEarly: false, allowUnknown: true } ); @@ -5909,25 +2810,32 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformApplicationValidator.getMerchandisingRuleBuryAction().validate( + } = CatalogPlatformApplicationValidator.getApplicationCategoryListing().validate( { - merchandisingRuleId, + departmentId, + pageNo, + pageSize, + q, }, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > getMerchandisingRuleBuryAction \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > getApplicationCategoryListing \n ${warrning}`, }); } const query_params = {}; + query_params["department_id"] = departmentId; + query_params["page_no"] = pageNo; + query_params["page_size"] = pageSize; + query_params["q"] = q; const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/merchandise/rules/${merchandisingRuleId}/bury`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/category`, query_params, undefined, requestHeaders, @@ -5941,10 +2849,10 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.GetMerchandisingRuleBuryAction().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); + } = CatalogPlatformModel.BrandListingResponse().validate(responseData, { + abortEarly: false, + allowUnknown: true, + }); if (res_error) { if (this.config.options.strictResponseCheck === true) { @@ -5952,7 +2860,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > getMerchandisingRuleBuryAction \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > getApplicationCategoryListing \n ${res_error}`, }); } } @@ -5961,25 +2869,75 @@ class Catalog { } /** - * @param {CatalogPlatformApplicationValidator.GetMerchandisingRuleHideActionParam} arg + * @param {Object} arg - Arg object. + * @param {string} arg.companyId - A `company_id` is a unique identifier for + * a particular seller account. + * @param {string} arg.applicationId - A `application_id` is a unique + * identifier for a particular sale channel. + * @param {number} [arg.departmentId] - A `department_id` is a unique + * identifier for a particular department. + * @param {number} [arg.pageSize] - Number of items to retrieve in each + * page. Default is 12. + * @param {string} [arg.q] - Search query with brand name.Use this parameter + * to search brands by brand name. + * @returns {Paginator} + * @summary: List all the brands for the application + * @description: A brand is the name under which a product is being sold. Use this API to list all the brands. You can pass optionally filter the brands by the department. If successful, returns a paginated list of brands specified in `BrandListingResponse` + */ + getApplicationCategoryListingPaginator({ + companyId, + applicationId, + departmentId, + pageSize, + q, + } = {}) { + const paginator = new Paginator(); + const callback = async () => { + const pageId = paginator.nextId; + const pageNo = paginator.pageNo; + const pageType = "number"; + const data = await this.getApplicationCategoryListing({ + companyId: companyId, + applicationId: applicationId, + departmentId: departmentId, + pageNo: pageNo, + pageSize: pageSize, + q: q, + }); + paginator.setPaginator({ + hasNext: data.page.has_next ? true : false, + nextId: data.page.next_id, + }); + return data; + }; + paginator.setCallback(callback.bind(this)); + return paginator; + } + + /** + * @param {CatalogPlatformApplicationValidator.GetApplicationDepartmentListingParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getMerchandisingRuleHideAction - * @summary: Get Merchandising Rule's Hide action details - * @description: This allows you to get details of hide action of a merchandising rule. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getMerchandisingRuleHideAction/). + * @returns {Promise} + * - Success response + * + * @name getApplicationDepartmentListing + * @summary: List all the departments for the application + * @description: Departments are a way to categorise similar products. A product can lie in multiple departments. For example, a skirt can below to the 'Women's Fashion' Department while a handbag can lie in 'Women's Accessories' Department. Use this API to list all the application departments. If successful, returns the list of departments specified in `ApplicationDepartmentListingResponse` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getApplicationDepartmentListing/). */ - async getMerchandisingRuleHideAction( - { merchandisingRuleId, requestHeaders } = { requestHeaders: {} }, + async getApplicationDepartmentListing( + { pageNo, pageSize, q, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformApplicationValidator.getMerchandisingRuleHideAction().validate( + } = CatalogPlatformApplicationValidator.getApplicationDepartmentListing().validate( { - merchandisingRuleId, + pageNo, + pageSize, + q, }, { abortEarly: false, allowUnknown: true } ); @@ -5990,25 +2948,30 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformApplicationValidator.getMerchandisingRuleHideAction().validate( + } = CatalogPlatformApplicationValidator.getApplicationDepartmentListing().validate( { - merchandisingRuleId, + pageNo, + pageSize, + q, }, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > getMerchandisingRuleHideAction \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > getApplicationDepartmentListing \n ${warrning}`, }); } const query_params = {}; + query_params["page_no"] = pageNo; + query_params["page_size"] = pageSize; + query_params["q"] = q; const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/merchandise/rules/${merchandisingRuleId}/hide`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/department`, query_params, undefined, requestHeaders, @@ -6022,10 +2985,10 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.HideResponse().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); + } = CatalogPlatformModel.ApplicationDepartmentListingResponse().validate( + responseData, + { abortEarly: false, allowUnknown: true } + ); if (res_error) { if (this.config.options.strictResponseCheck === true) { @@ -6033,7 +2996,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > getMerchandisingRuleHideAction \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > getApplicationDepartmentListing \n ${res_error}`, }); } } @@ -6042,25 +3005,68 @@ class Catalog { } /** - * @param {CatalogPlatformApplicationValidator.GetMerchandisingRulePinActionParam} arg + * @param {Object} arg - Arg object. + * @param {string} arg.companyId - A `company_id` is a unique identifier for + * a particular seller account. + * @param {string} arg.applicationId - A `application_id` is a unique + * identifier for a particular sale channel. + * @param {number} [arg.pageSize] - Number of items to retrieve in each + * page. Default is 12. + * @param {string} [arg.q] - Search query with brand name.Use this parameter + * to search department by name. + * @returns {Paginator} + * @summary: List all the departments for the application + * @description: Departments are a way to categorise similar products. A product can lie in multiple departments. For example, a skirt can below to the 'Women's Fashion' Department while a handbag can lie in 'Women's Accessories' Department. Use this API to list all the application departments. If successful, returns the list of departments specified in `ApplicationDepartmentListingResponse` + */ + getApplicationDepartmentListingPaginator({ + companyId, + applicationId, + pageSize, + q, + } = {}) { + const paginator = new Paginator(); + const callback = async () => { + const pageId = paginator.nextId; + const pageNo = paginator.pageNo; + const pageType = "number"; + const data = await this.getApplicationDepartmentListing({ + companyId: companyId, + applicationId: applicationId, + pageNo: pageNo, + pageSize: pageSize, + q: q, + }); + paginator.setPaginator({ + hasNext: data.page.has_next ? true : false, + nextId: data.page.next_id, + }); + return data; + }; + paginator.setCallback(callback.bind(this)); + return paginator; + } + + /** + * @param {CatalogPlatformApplicationValidator.GetApplicationFilterKeysParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getMerchandisingRulePinAction - * @summary: Get Merchandising Rule's action details - * @description: This allows you to get details of pin action of a merchandising rule. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getMerchandisingRulePinAction/). + * @returns {Promise} - + * Success response + * @name getApplicationFilterKeys + * @summary: Get filters keys of the filter options. + * @description: Get query filters keys to configure a collection - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getApplicationFilterKeys/). */ - async getMerchandisingRulePinAction( - { merchandisingRuleId, requestHeaders } = { requestHeaders: {} }, + async getApplicationFilterKeys( + { c, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformApplicationValidator.getMerchandisingRulePinAction().validate( + } = CatalogPlatformApplicationValidator.getApplicationFilterKeys().validate( { - merchandisingRuleId, + c, }, { abortEarly: false, allowUnknown: true } ); @@ -6071,25 +3077,26 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformApplicationValidator.getMerchandisingRulePinAction().validate( + } = CatalogPlatformApplicationValidator.getApplicationFilterKeys().validate( { - merchandisingRuleId, + c, }, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > getMerchandisingRulePinAction \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > getApplicationFilterKeys \n ${warrning}`, }); } const query_params = {}; + query_params["c"] = c; const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/merchandise/rules/${merchandisingRuleId}/pin`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/filter-options/keys`, query_params, undefined, requestHeaders, @@ -6103,10 +3110,10 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.PinResponse().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); + } = CatalogPlatformModel.GetQueryFiltersKeysResponse().validate( + responseData, + { abortEarly: false, allowUnknown: true } + ); if (res_error) { if (this.config.options.strictResponseCheck === true) { @@ -6114,7 +3121,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > getMerchandisingRulePinAction \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > getApplicationFilterKeys \n ${res_error}`, }); } } @@ -6123,26 +3130,33 @@ class Catalog { } /** - * @param {CatalogPlatformApplicationValidator.GetMerchandisingRulesParam} arg + * @param {CatalogPlatformApplicationValidator.GetApplicationFilterValuesParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getMerchandisingRules - * @summary: Get list of all Merchandising Rule's details - * @description: This allows you to get details of all merchandising rule's details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getMerchandisingRules/). + * @returns {Promise} - + * Success response + * @name getApplicationFilterValues + * @summary: Get values of the selected value for the filter options. + * @description: Get query filters keys to configure a collection - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getApplicationFilterValues/). */ - async getMerchandisingRules( - { pageId, pageSize, requestHeaders } = { requestHeaders: {} }, + async getApplicationFilterValues( + { filterKey, c, collectionId, pageNo, pageSize, q, requestHeaders } = { + requestHeaders: {}, + }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformApplicationValidator.getMerchandisingRules().validate( + } = CatalogPlatformApplicationValidator.getApplicationFilterValues().validate( { - pageId, + filterKey, + c, + collectionId, + pageNo, pageSize, + q, }, { abortEarly: false, allowUnknown: true } ); @@ -6153,28 +3167,35 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformApplicationValidator.getMerchandisingRules().validate( + } = CatalogPlatformApplicationValidator.getApplicationFilterValues().validate( { - pageId, + filterKey, + c, + collectionId, + pageNo, pageSize, + q, }, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > getMerchandisingRules \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > getApplicationFilterValues \n ${warrning}`, }); } const query_params = {}; - query_params["page_id"] = pageId; + query_params["c"] = c; + query_params["collection_id"] = collectionId; + query_params["page_no"] = pageNo; query_params["page_size"] = pageSize; + query_params["q"] = q; const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/merchandise/rules`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/filter-options/${filterKey}/values`, query_params, undefined, requestHeaders, @@ -6188,10 +3209,10 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.MerchandisingRulesList().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); + } = CatalogPlatformModel.GetQueryFiltersValuesResponse().validate( + responseData, + { abortEarly: false, allowUnknown: true } + ); if (res_error) { if (this.config.options.strictResponseCheck === true) { @@ -6199,7 +3220,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > getMerchandisingRules \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > getApplicationFilterValues \n ${res_error}`, }); } } @@ -6208,26 +3229,25 @@ class Catalog { } /** - * @param {CatalogPlatformApplicationValidator.GetProductDetailBySlugParam} arg + * @param {CatalogPlatformApplicationValidator.GetAutocompleteConfigParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getProductDetailBySlug - * @summary: Get a product - * @description: Products are the core resource of an application. Products can be associated by categories, collections, brands and more. This API retrieves the product specified by the given **slug**. If successful, returns a Product resource in the response body specified in `ProductDetail` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductDetailBySlug/). + * @returns {Promise} - + * Success response + * @name getAutocompleteConfig + * @summary: List all Autocomplete Keyword Listing + * @description: Custom Autocomplete Keyword allows you to map conditions with keywords to give you the ultimate results - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAutocompleteConfig/). */ - async getProductDetailBySlug( - { slug, requestHeaders } = { requestHeaders: {} }, + async getAutocompleteConfig( + { requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformApplicationValidator.getProductDetailBySlug().validate( - { - slug, - }, + } = CatalogPlatformApplicationValidator.getAutocompleteConfig().validate( + {}, { abortEarly: false, allowUnknown: true } ); if (error) { @@ -6237,16 +3257,14 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformApplicationValidator.getProductDetailBySlug().validate( - { - slug, - }, + } = CatalogPlatformApplicationValidator.getAutocompleteConfig().validate( + {}, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > getProductDetailBySlug \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > getAutocompleteConfig \n ${warrning}`, }); } @@ -6255,7 +3273,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/products/${slug}`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/search/autocomplete/`, query_params, undefined, requestHeaders, @@ -6267,12 +3285,12 @@ class Catalog { responseData = response[0]; } - const { - error: res_error, - } = CatalogPlatformModel.ProductDetail().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); + const { + error: res_error, + } = CatalogPlatformModel.GetAutocompleteWordsResponse().validate( + responseData, + { abortEarly: false, allowUnknown: true } + ); if (res_error) { if (this.config.options.strictResponseCheck === true) { @@ -6280,7 +3298,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > getProductDetailBySlug \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > getAutocompleteConfig \n ${res_error}`, }); } } @@ -6289,40 +3307,26 @@ class Catalog { } /** - * @param {CatalogPlatformApplicationValidator.GetProductsInPriceFactoryByZoneIdParam} arg + * @param {CatalogPlatformApplicationValidator.GetAutocompleteKeywordDetailParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name getProductsInPriceFactoryByZoneId - * @summary: - * @description: This API allows to get products in price factory. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductsInPriceFactoryByZoneId/). + * @returns {Promise} - + * Success response + * @name getAutocompleteKeywordDetail + * @summary: Get a Autocomplete Keywords Details + * @description: Get the details of a words by its `id`. If successful, returns a keywords resource in the response body specified in `GetAutocompleteWordsResponseSchema` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAutocompleteKeywordDetail/). */ - async getProductsInPriceFactoryByZoneId( - { - id, - zoneId, - itemId, - sellerIdentifier, - pageNo, - pageSize, - requestHeaders, - } = { requestHeaders: {} }, + async getAutocompleteKeywordDetail( + { id, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformApplicationValidator.getProductsInPriceFactoryByZoneId().validate( + } = CatalogPlatformApplicationValidator.getAutocompleteKeywordDetail().validate( { id, - zoneId, - itemId, - sellerIdentifier, - pageNo, - pageSize, }, { abortEarly: false, allowUnknown: true } ); @@ -6333,34 +3337,25 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformApplicationValidator.getProductsInPriceFactoryByZoneId().validate( + } = CatalogPlatformApplicationValidator.getAutocompleteKeywordDetail().validate( { id, - zoneId, - itemId, - sellerIdentifier, - pageNo, - pageSize, }, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > getProductsInPriceFactoryByZoneId \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > getAutocompleteKeywordDetail \n ${warrning}`, }); } const query_params = {}; - query_params["item_id"] = itemId; - query_params["seller_identifier"] = sellerIdentifier; - query_params["page_no"] = pageNo; - query_params["page_size"] = pageSize; const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/price-factory/${id}/products/zone/${zoneId}`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/search/autocomplete/${id}/`, query_params, undefined, requestHeaders, @@ -6374,7 +3369,7 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.CreateAppPriceFactoryProductsResponse().validate( + } = CatalogPlatformModel.GetAutocompleteWordsResponse().validate( responseData, { abortEarly: false, allowUnknown: true } ); @@ -6385,7 +3380,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > getProductsInPriceFactoryByZoneId \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > getAutocompleteKeywordDetail \n ${res_error}`, }); } } @@ -6394,21 +3389,25 @@ class Catalog { } /** - * @param {CatalogPlatformApplicationValidator.GetQueryFiltersParam} arg - Arg object + * @param {CatalogPlatformApplicationValidator.GetCatalogConfigurationParam} arg + * - Arg object + * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getQueryFilters - * @summary: Get query filters to configure a collection - * @description: Get query filters to configure a collection - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getQueryFilters/). + * @returns {Promise} + * - Success response + * + * @name getCatalogConfiguration + * @summary: Get configuration meta details for catalog for admin panel + * @description: configuration meta details for catalog. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getCatalogConfiguration/). */ - async getQueryFilters( + async getCatalogConfiguration( { requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformApplicationValidator.getQueryFilters().validate( + } = CatalogPlatformApplicationValidator.getCatalogConfiguration().validate( {}, { abortEarly: false, allowUnknown: true } ); @@ -6419,14 +3418,14 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformApplicationValidator.getQueryFilters().validate( + } = CatalogPlatformApplicationValidator.getCatalogConfiguration().validate( {}, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > getQueryFilters \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > getCatalogConfiguration \n ${warrning}`, }); } @@ -6435,7 +3434,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/collections/query-options`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/product-configuration/metadata/`, query_params, undefined, requestHeaders, @@ -6449,10 +3448,10 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.GetQueryFiltersResponse().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); + } = CatalogPlatformModel.GetCatalogConfigurationMetaData().validate( + responseData, + { abortEarly: false, allowUnknown: true } + ); if (res_error) { if (this.config.options.strictResponseCheck === true) { @@ -6460,7 +3459,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > getQueryFilters \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > getCatalogConfiguration \n ${res_error}`, }); } } @@ -6469,26 +3468,26 @@ class Catalog { } /** - * @param {CatalogPlatformApplicationValidator.GetSearchConfigurationParam} arg + * @param {CatalogPlatformApplicationValidator.GetCatalogInsightsParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name getSearchConfiguration - * @summary: List search configuration for an application - * @description: This view allows you to add/modify searchable attributes for an application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getSearchConfiguration/). + * @returns {Promise} - Success response + * @name getCatalogInsights + * @summary: Analytics data of catalog and inventory. + * @description: Catalog Insights api returns the count of catalog related data like products, brands, departments and categories that have been made live as per configuration of the app. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getCatalogInsights/). */ - async getSearchConfiguration( - { requestHeaders } = { requestHeaders: {} }, + async getCatalogInsights( + { brand, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformApplicationValidator.getSearchConfiguration().validate( - {}, + } = CatalogPlatformApplicationValidator.getCatalogInsights().validate( + { + brand, + }, { abortEarly: false, allowUnknown: true } ); if (error) { @@ -6498,23 +3497,26 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformApplicationValidator.getSearchConfiguration().validate( - {}, + } = CatalogPlatformApplicationValidator.getCatalogInsights().validate( + { + brand, + }, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > getSearchConfiguration \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > getCatalogInsights \n ${warrning}`, }); } const query_params = {}; + query_params["brand"] = brand; const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/search/configuration`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/analytics/insights/`, query_params, undefined, requestHeaders, @@ -6528,10 +3530,10 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.GetSearchConfigurationResponse().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); + } = CatalogPlatformModel.CatalogInsightResponse().validate(responseData, { + abortEarly: false, + allowUnknown: true, + }); if (res_error) { if (this.config.options.strictResponseCheck === true) { @@ -6539,7 +3541,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > getSearchConfiguration \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > getCatalogInsights \n ${res_error}`, }); } } @@ -6548,25 +3550,23 @@ class Catalog { } /** - * @param {CatalogPlatformApplicationValidator.GetSearchKeywordsParam} arg - * - Arg object - * + * @param {CatalogPlatformApplicationValidator.GetCategoriesParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getSearchKeywords - * @summary: Get a Search Keywords Details - * @description: Get the details of a words by its `id`. If successful, returns a Collection resource in the response body specified in `GetSearchWordsDetailResponseSchema` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getSearchKeywords/). + * @returns {Promise} - Success response + * @name getCategories + * @summary: List all the categories + * @description: List all the categories. You can optionally pass filter the brands by the department. If successful, returns a paginated list of brands specified in `CategoryListingResponse` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getCategories/). */ - async getSearchKeywords( - { id, requestHeaders } = { requestHeaders: {} }, + async getCategories( + { department, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformApplicationValidator.getSearchKeywords().validate( + } = CatalogPlatformApplicationValidator.getCategories().validate( { - id, + department, }, { abortEarly: false, allowUnknown: true } ); @@ -6577,25 +3577,26 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformApplicationValidator.getSearchKeywords().validate( + } = CatalogPlatformApplicationValidator.getCategories().validate( { - id, + department, }, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > getSearchKeywords \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > getCategories \n ${warrning}`, }); } const query_params = {}; + query_params["department"] = department; const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/search/keyword/${id}`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/categories`, query_params, undefined, requestHeaders, @@ -6609,7 +3610,7 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.GetSearchWordsData().validate(responseData, { + } = CatalogPlatformModel.CategoryListingResponse().validate(responseData, { abortEarly: false, allowUnknown: true, }); @@ -6620,7 +3621,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > getSearchKeywords \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > getCategories \n ${res_error}`, }); } } @@ -6629,22 +3630,27 @@ class Catalog { } /** - * @param {CatalogPlatformApplicationValidator.GetSearchRerankParam} arg - Arg object + * @param {CatalogPlatformApplicationValidator.GetCollectionDetailParam} arg + * - Arg object + * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getSearchRerank - * @summary: Get search rerank for an application - * @description: This view allows you to create search rerank attributes for an application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getSearchRerank/). + * @returns {Promise} - + * Success response + * @name getCollectionDetail + * @summary: Get a particular collection + * @description: Get the details of a collection by its `slug`. If successful, returns a Collection resource in the response body specified in `CollectionDetailResponse` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getCollectionDetail/). */ - async getSearchRerank( - { requestHeaders } = { requestHeaders: {} }, + async getCollectionDetail( + { slug, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformApplicationValidator.getSearchRerank().validate( - {}, + } = CatalogPlatformApplicationValidator.getCollectionDetail().validate( + { + slug, + }, { abortEarly: false, allowUnknown: true } ); if (error) { @@ -6654,14 +3660,16 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformApplicationValidator.getSearchRerank().validate( - {}, + } = CatalogPlatformApplicationValidator.getCollectionDetail().validate( + { + slug, + }, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > getSearchRerank \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > getCollectionDetail \n ${warrning}`, }); } @@ -6670,7 +3678,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/search/rerank`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/collections/${slug}/`, query_params, undefined, requestHeaders, @@ -6684,10 +3692,10 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.GetSearchRerankResponse().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); + } = CatalogPlatformModel.GetCollectionDetailResponse().validate( + responseData, + { abortEarly: false, allowUnknown: true } + ); if (res_error) { if (this.config.options.strictResponseCheck === true) { @@ -6695,7 +3703,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > getSearchRerank \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > getCollectionDetail \n ${res_error}`, }); } } @@ -6704,26 +3712,29 @@ class Catalog { } /** - * @param {CatalogPlatformApplicationValidator.GetSearchRerankDetailParam} arg + * @param {CatalogPlatformApplicationValidator.GetCollectionItemsParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - + * @returns {Promise} - * Success response - * @name getSearchRerankDetail - * @summary: Get search rerank for an application - * @description: This view allows you to retrieve search rerank attribute detail for an application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getSearchRerankDetail/). + * @name getCollectionItems + * @summary: Get the items for a collection + * @description: Get items from a collection specified by its `id`. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getCollectionItems/). */ - async getSearchRerankDetail( - { id, requestHeaders } = { requestHeaders: {} }, + async getCollectionItems( + { id, sortOn, pageId, pageSize, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformApplicationValidator.getSearchRerankDetail().validate( + } = CatalogPlatformApplicationValidator.getCollectionItems().validate( { id, + sortOn, + pageId, + pageSize, }, { abortEarly: false, allowUnknown: true } ); @@ -6734,25 +3745,31 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformApplicationValidator.getSearchRerankDetail().validate( + } = CatalogPlatformApplicationValidator.getCollectionItems().validate( { id, + sortOn, + pageId, + pageSize, }, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > getSearchRerankDetail \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > getCollectionItems \n ${warrning}`, }); } const query_params = {}; + query_params["sort_on"] = sortOn; + query_params["page_id"] = pageId; + query_params["page_size"] = pageSize; const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/search/rerank/${id}`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/collections/${id}/items/`, query_params, undefined, requestHeaders, @@ -6766,7 +3783,7 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.GetSearchRerankDetailResponse().validate( + } = CatalogPlatformModel.GetCollectionItemsResponse().validate( responseData, { abortEarly: false, allowUnknown: true } ); @@ -6777,7 +3794,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > getSearchRerankDetail \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > getCollectionItems \n ${res_error}`, }); } } @@ -6786,28 +3803,27 @@ class Catalog { } /** - * @param {CatalogPlatformApplicationValidator.PollProductPriceFactoryBulkJobParam} arg + * @param {CatalogPlatformApplicationValidator.GetConfigurationByTypeParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} + * @returns {Promise} * - Success response * - * @name pollProductPriceFactoryBulkJob - * @summary: - * @description: This API allows to poll bulk job for adding products in price factory. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/pollProductPriceFactoryBulkJob/). + * @name getConfigurationByType + * @summary: Get configured details for catalog + * @description: configured details for catalog. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getConfigurationByType/). */ - async pollProductPriceFactoryBulkJob( - { id, jobId, requestHeaders } = { requestHeaders: {} }, + async getConfigurationByType( + { type, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformApplicationValidator.pollProductPriceFactoryBulkJob().validate( + } = CatalogPlatformApplicationValidator.getConfigurationByType().validate( { - id, - jobId, + type, }, { abortEarly: false, allowUnknown: true } ); @@ -6818,17 +3834,16 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformApplicationValidator.pollProductPriceFactoryBulkJob().validate( + } = CatalogPlatformApplicationValidator.getConfigurationByType().validate( { - id, - jobId, + type, }, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > pollProductPriceFactoryBulkJob \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > getConfigurationByType \n ${warrning}`, }); } @@ -6837,7 +3852,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/price-factory/${id}/products/bulk/${jobId}/poll`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/product-configuration/${type}/`, query_params, undefined, requestHeaders, @@ -6851,7 +3866,7 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.CreateAppPriceFactoryProductBulkJobPollResponse().validate( + } = CatalogPlatformModel.GetAppCatalogEntityConfiguration().validate( responseData, { abortEarly: false, allowUnknown: true } ); @@ -6862,7 +3877,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > pollProductPriceFactoryBulkJob \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > getConfigurationByType \n ${res_error}`, }); } } @@ -6871,29 +3886,32 @@ class Catalog { } /** - * @param {CatalogPlatformApplicationValidator.ProcessProductPriceFactoryBulkJobParam} arg + * @param {CatalogPlatformApplicationValidator.GetConfigurationMetadataParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name processProductPriceFactoryBulkJob - * @summary: - * @description: This API allows to process bulk job for adding products in price factory. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/processProductPriceFactoryBulkJob/). + * @returns {Promise} - + * Success response + * @name getConfigurationMetadata + * @summary: Get configuration metadata details for catalog for admin panel + * @description: Get the configuraion metadata details for catalog. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getConfigurationMetadata/). */ - async processProductPriceFactoryBulkJob( - { id, jobId, body, requestHeaders } = { requestHeaders: {} }, + async getConfigurationMetadata( + { configType, templateSlug, pageNo, pageSize, q, requestHeaders } = { + requestHeaders: {}, + }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformApplicationValidator.processProductPriceFactoryBulkJob().validate( + } = CatalogPlatformApplicationValidator.getConfigurationMetadata().validate( { - id, - jobId, - body, + configType, + templateSlug, + pageNo, + pageSize, + q, }, { abortEarly: false, allowUnknown: true } ); @@ -6904,29 +3922,35 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformApplicationValidator.processProductPriceFactoryBulkJob().validate( + } = CatalogPlatformApplicationValidator.getConfigurationMetadata().validate( { - id, - jobId, - body, + configType, + templateSlug, + pageNo, + pageSize, + q, }, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > processProductPriceFactoryBulkJob \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > getConfigurationMetadata \n ${warrning}`, }); } const query_params = {}; + query_params["template_slug"] = templateSlug; + query_params["page_no"] = pageNo; + query_params["page_size"] = pageSize; + query_params["q"] = q; const response = await PlatformAPIClient.execute( this.config, - "post", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/price-factory/${id}/products/bulk/${jobId}/process`, + "get", + `/service/platform/catalog/v2.0/company/${this.config.companyId}/application/${this.applicationId}/product-configuration/${configType}/metadata/`, query_params, - body, + undefined, requestHeaders, { responseHeaders } ); @@ -6938,7 +3962,7 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.CreateAppPriceFactoryProductBulkJobResponse().validate( + } = CatalogPlatformModel.GetConfigMetadataResponse().validate( responseData, { abortEarly: false, allowUnknown: true } ); @@ -6949,7 +3973,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > processProductPriceFactoryBulkJob \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > getConfigurationMetadata \n ${res_error}`, }); } } @@ -6958,26 +3982,25 @@ class Catalog { } /** - * @param {CatalogPlatformApplicationValidator.UpdateAllowSingleParam} arg + * @param {CatalogPlatformApplicationValidator.GetConfigurationsParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name updateAllowSingle - * @summary: Update allow single flag for filters of the application. - * @description: Update allow single flag for filters of the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateAllowSingle/). + * @returns {Promise} - + * Success response + * @name getConfigurations + * @summary: Get configured details for catalog + * @description: configured details for catalog. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getConfigurations/). */ - async updateAllowSingle( - { body, requestHeaders } = { requestHeaders: {} }, + async getConfigurations( + { requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformApplicationValidator.updateAllowSingle().validate( - { - body, - }, + } = CatalogPlatformApplicationValidator.getConfigurations().validate( + {}, { abortEarly: false, allowUnknown: true } ); if (error) { @@ -6987,16 +4010,14 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformApplicationValidator.updateAllowSingle().validate( - { - body, - }, + } = CatalogPlatformApplicationValidator.getConfigurations().validate( + {}, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > updateAllowSingle \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > getConfigurations \n ${warrning}`, }); } @@ -7004,10 +4025,10 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, - "post", - `/service/platform/catalog/v2.0/company/${this.config.companyId}/application/${this.applicationId}/product-configuration/filter/allow_single`, + "get", + `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/product-configuration/`, query_params, - body, + undefined, requestHeaders, { responseHeaders } ); @@ -7019,10 +4040,10 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.ConfigSuccessResponse().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); + } = CatalogPlatformModel.GetAppCatalogConfiguration().validate( + responseData, + { abortEarly: false, allowUnknown: true } + ); if (res_error) { if (this.config.options.strictResponseCheck === true) { @@ -7030,7 +4051,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > updateAllowSingle \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > getConfigurations \n ${res_error}`, }); } } @@ -7039,25 +4060,22 @@ class Catalog { } /** - * @param {CatalogPlatformApplicationValidator.UpdateAppBrandParam} arg - Arg object + * @param {CatalogPlatformApplicationValidator.GetDepartmentsParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name updateAppBrand - * @summary: Update a single custom json. - * @description: This API helps to update data associated to a item custom meta. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateAppBrand/). + * @returns {Promise} - Success response + * @name getDepartments + * @summary: List all the departments + * @description: Departments are a way to categorise similar products. A product can lie in multiple departments. For example, a skirt can below to the 'Women's Fashion' Department while a handbag can lie in 'Women's Accessories' Department. Use this API to list all the departments. If successful, returns the list of departments specified in `DepartmentResponse` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getDepartments/). */ - async updateAppBrand( - { brandUid, body, requestHeaders } = { requestHeaders: {} }, + async getDepartments( + { requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformApplicationValidator.updateAppBrand().validate( - { - brandUid, - body, - }, + } = CatalogPlatformApplicationValidator.getDepartments().validate( + {}, { abortEarly: false, allowUnknown: true } ); if (error) { @@ -7067,17 +4085,14 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformApplicationValidator.updateAppBrand().validate( - { - brandUid, - body, - }, + } = CatalogPlatformApplicationValidator.getDepartments().validate( + {}, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > updateAppBrand \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > getDepartments \n ${warrning}`, }); } @@ -7085,10 +4100,10 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, - "patch", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/brand/${brandUid}`, + "get", + `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/departments`, query_params, - body, + undefined, requestHeaders, { responseHeaders } ); @@ -7100,7 +4115,7 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.SuccessResponse1().validate(responseData, { + } = CatalogPlatformModel.DepartmentResponse().validate(responseData, { abortEarly: false, allowUnknown: true, }); @@ -7111,7 +4126,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > updateAppBrand \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > getDepartments \n ${res_error}`, }); } } @@ -7120,26 +4135,40 @@ class Catalog { } /** - * @param {CatalogPlatformApplicationValidator.UpdateAppCategoryParam} arg + * @param {CatalogPlatformApplicationValidator.GetDiscountedInventoryBySizeIdentifierParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name updateAppCategory - * @summary: Update a single custom json. - * @description: This API helps to update data associated to a item custom meta. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateAppCategory/). + * @returns {Promise} + * - Success response + * + * @name getDiscountedInventoryBySizeIdentifier + * @summary: Get Inventory for company + * @description: This API allows get Inventory data for particular company grouped by size and store. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getDiscountedInventoryBySizeIdentifier/). */ - async updateAppCategory( - { categoryUid, body, requestHeaders } = { requestHeaders: {} }, + async getDiscountedInventoryBySizeIdentifier( + { + itemId, + sizeIdentifier, + pageNo, + pageSize, + q, + locationIds, + requestHeaders, + } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformApplicationValidator.updateAppCategory().validate( + } = CatalogPlatformApplicationValidator.getDiscountedInventoryBySizeIdentifier().validate( { - categoryUid, - body, + itemId, + sizeIdentifier, + pageNo, + pageSize, + q, + locationIds, }, { abortEarly: false, allowUnknown: true } ); @@ -7150,28 +4179,36 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformApplicationValidator.updateAppCategory().validate( + } = CatalogPlatformApplicationValidator.getDiscountedInventoryBySizeIdentifier().validate( { - categoryUid, - body, + itemId, + sizeIdentifier, + pageNo, + pageSize, + q, + locationIds, }, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > updateAppCategory \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > getDiscountedInventoryBySizeIdentifier \n ${warrning}`, }); } const query_params = {}; + query_params["page_no"] = pageNo; + query_params["page_size"] = pageSize; + query_params["q"] = q; + query_params["location_ids"] = locationIds; const response = await PlatformAPIClient.execute( this.config, - "patch", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/category/${categoryUid}`, + "get", + `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/products/${itemId}/inventory/${sizeIdentifier}`, query_params, - body, + undefined, requestHeaders, { responseHeaders } ); @@ -7183,10 +4220,10 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.SuccessResponse1().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); + } = CatalogPlatformModel.InventorySellerIdentifierResponsePaginated().validate( + responseData, + { abortEarly: false, allowUnknown: true } + ); if (res_error) { if (this.config.options.strictResponseCheck === true) { @@ -7194,7 +4231,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > updateAppCategory \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > getDiscountedInventoryBySizeIdentifier \n ${res_error}`, }); } } @@ -7203,25 +4240,31 @@ class Catalog { } /** - * @param {CatalogPlatformApplicationValidator.UpdateAppCategoryReturnConfigurationParam} arg + * @param {CatalogPlatformApplicationValidator.GetGroupConfigurationsParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name updateAppCategoryReturnConfiguration - * @summary: Update Category level Application Return Configuration setttings - * @description: Update Category level Application Return Configuration setttings - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateAppCategoryReturnConfiguration/). + * @returns {Promise} - Success response + * @name getGroupConfigurations + * @summary: Get the details of the application configured configurations of group config types. + * @description: Get the details of the application configured configurations of group config types. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getGroupConfigurations/). */ - async updateAppCategoryReturnConfiguration( - { body, requestHeaders } = { requestHeaders: {} }, + async getGroupConfigurations( + { configType, pageNo, pageSize, search, templateSlug, requestHeaders } = { + requestHeaders: {}, + }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformApplicationValidator.updateAppCategoryReturnConfiguration().validate( + } = CatalogPlatformApplicationValidator.getGroupConfigurations().validate( { - body, + configType, + pageNo, + pageSize, + search, + templateSlug, }, { abortEarly: false, allowUnknown: true } ); @@ -7232,27 +4275,35 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformApplicationValidator.updateAppCategoryReturnConfiguration().validate( + } = CatalogPlatformApplicationValidator.getGroupConfigurations().validate( { - body, + configType, + pageNo, + pageSize, + search, + templateSlug, }, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > updateAppCategoryReturnConfiguration \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > getGroupConfigurations \n ${warrning}`, }); } const query_params = {}; + query_params["page_no"] = pageNo; + query_params["page_size"] = pageSize; + query_params["search"] = search; + query_params["template_slug"] = templateSlug; const response = await PlatformAPIClient.execute( this.config, - "put", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/return-config/categories`, + "get", + `/service/platform/catalog/v2.0/company/${this.config.companyId}/application/${this.applicationId}/product-configuration/${configType}/groups`, query_params, - body, + undefined, requestHeaders, { responseHeaders } ); @@ -7264,7 +4315,7 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.SuccessResponse().validate(responseData, { + } = CatalogPlatformModel.GetConfigResponse().validate(responseData, { abortEarly: false, allowUnknown: true, }); @@ -7275,7 +4326,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > updateAppCategoryReturnConfiguration \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > getGroupConfigurations \n ${res_error}`, }); } } @@ -7284,26 +4335,30 @@ class Catalog { } /** - * @param {CatalogPlatformApplicationValidator.UpdateAppDepartmentParam} arg + * @param {CatalogPlatformApplicationValidator.GetListingConfigurationsParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name updateAppDepartment - * @summary: Update a single custom json. - * @description: This API helps to update data associated to a item custom meta. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateAppDepartment/). + * @returns {Promise} - Success response + * @name getListingConfigurations + * @summary: Get the details of the application configured configurations of listing config types. + * @description: Get the details of the application configured configurations of listing config types. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getListingConfigurations/). */ - async updateAppDepartment( - { departmentUid, body, requestHeaders } = { requestHeaders: {} }, + async getListingConfigurations( + { configType, pageNo, pageSize, search, requestHeaders } = { + requestHeaders: {}, + }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformApplicationValidator.updateAppDepartment().validate( + } = CatalogPlatformApplicationValidator.getListingConfigurations().validate( { - departmentUid, - body, + configType, + pageNo, + pageSize, + search, }, { abortEarly: false, allowUnknown: true } ); @@ -7314,28 +4369,33 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformApplicationValidator.updateAppDepartment().validate( + } = CatalogPlatformApplicationValidator.getListingConfigurations().validate( { - departmentUid, - body, + configType, + pageNo, + pageSize, + search, }, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > updateAppDepartment \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > getListingConfigurations \n ${warrning}`, }); } const query_params = {}; + query_params["page_no"] = pageNo; + query_params["page_size"] = pageSize; + query_params["search"] = search; const response = await PlatformAPIClient.execute( this.config, - "patch", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/department/${departmentUid}`, + "get", + `/service/platform/catalog/v2.0/company/${this.config.companyId}/application/${this.applicationId}/product-configuration/${configType}/`, query_params, - body, + undefined, requestHeaders, { responseHeaders } ); @@ -7347,7 +4407,7 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.SuccessResponse1().validate(responseData, { + } = CatalogPlatformModel.GetConfigResponse().validate(responseData, { abortEarly: false, allowUnknown: true, }); @@ -7358,7 +4418,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > updateAppDepartment \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > getListingConfigurations \n ${res_error}`, }); } } @@ -7367,26 +4427,25 @@ class Catalog { } /** - * @param {CatalogPlatformApplicationValidator.UpdateAppLocationParam} arg + * @param {CatalogPlatformApplicationValidator.GetProductDetailBySlugParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name updateAppLocation - * @summary: Update a single custom json. - * @description: This API helps to update data associated to a item custom meta. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateAppLocation/). + * @returns {Promise} - Success response + * @name getProductDetailBySlug + * @summary: Get a product + * @description: Products are the core resource of an application. Products can be associated by categories, collections, brands and more. This API retrieves the product specified by the given **slug**. If successful, returns a Product resource in the response body specified in `ProductDetail` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductDetailBySlug/). */ - async updateAppLocation( - { storeUid, body, requestHeaders } = { requestHeaders: {} }, + async getProductDetailBySlug( + { slug, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformApplicationValidator.updateAppLocation().validate( + } = CatalogPlatformApplicationValidator.getProductDetailBySlug().validate( { - storeUid, - body, + slug, }, { abortEarly: false, allowUnknown: true } ); @@ -7397,17 +4456,16 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformApplicationValidator.updateAppLocation().validate( + } = CatalogPlatformApplicationValidator.getProductDetailBySlug().validate( { - storeUid, - body, + slug, }, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > updateAppLocation \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > getProductDetailBySlug \n ${warrning}`, }); } @@ -7415,10 +4473,10 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, - "patch", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/store/${storeUid}`, + "get", + `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/products/${slug}`, query_params, - body, + undefined, requestHeaders, { responseHeaders } ); @@ -7430,7 +4488,7 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.SuccessResponse1().validate(responseData, { + } = CatalogPlatformModel.ProductDetail().validate(responseData, { abortEarly: false, allowUnknown: true, }); @@ -7441,7 +4499,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > updateAppLocation \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > getProductDetailBySlug \n ${res_error}`, }); } } @@ -7450,25 +4508,22 @@ class Catalog { } /** - * @param {CatalogPlatformApplicationValidator.UpdateAppProductParam} arg - Arg object + * @param {CatalogPlatformApplicationValidator.GetQueryFiltersParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name updateAppProduct - * @summary: Update a single custom meta. - * @description: This API helps to update data associated to a item custom meta. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateAppProduct/). + * @returns {Promise} - Success response + * @name getQueryFilters + * @summary: Get query filters to configure a collection + * @description: Get query filters to configure a collection - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getQueryFilters/). */ - async updateAppProduct( - { itemId, body, requestHeaders } = { requestHeaders: {} }, + async getQueryFilters( + { requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformApplicationValidator.updateAppProduct().validate( - { - itemId, - body, - }, + } = CatalogPlatformApplicationValidator.getQueryFilters().validate( + {}, { abortEarly: false, allowUnknown: true } ); if (error) { @@ -7478,17 +4533,14 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformApplicationValidator.updateAppProduct().validate( - { - itemId, - body, - }, + } = CatalogPlatformApplicationValidator.getQueryFilters().validate( + {}, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > updateAppProduct \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > getQueryFilters \n ${warrning}`, }); } @@ -7496,10 +4548,10 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, - "patch", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/product/${itemId}`, + "get", + `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/collections/query-options/`, query_params, - body, + undefined, requestHeaders, { responseHeaders } ); @@ -7511,7 +4563,7 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.SuccessResponse1().validate(responseData, { + } = CatalogPlatformModel.GetQueryFiltersResponse().validate(responseData, { abortEarly: false, allowUnknown: true, }); @@ -7522,7 +4574,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > updateAppProduct \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > getQueryFilters \n ${res_error}`, }); } } @@ -7531,26 +4583,26 @@ class Catalog { } /** - * @param {CatalogPlatformApplicationValidator.UpdateAppReturnConfigurationParam} arg + * @param {CatalogPlatformApplicationValidator.GetSearchConfigurationParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name updateAppReturnConfiguration - * @summary: Update Return configuration level set for an application - * @description: Update Return configuration level set for an application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateAppReturnConfiguration/). + * @returns {Promise} + * - Success response + * + * @name getSearchConfiguration + * @summary: List search configuration for an application + * @description: This view allows you to add/modify searchable attributes for an application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getSearchConfiguration/). */ - async updateAppReturnConfiguration( - { body, requestHeaders } = { requestHeaders: {} }, + async getSearchConfiguration( + { requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformApplicationValidator.updateAppReturnConfiguration().validate( - { - body, - }, + } = CatalogPlatformApplicationValidator.getSearchConfiguration().validate( + {}, { abortEarly: false, allowUnknown: true } ); if (error) { @@ -7560,16 +4612,14 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformApplicationValidator.updateAppReturnConfiguration().validate( - { - body, - }, + } = CatalogPlatformApplicationValidator.getSearchConfiguration().validate( + {}, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > updateAppReturnConfiguration \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > getSearchConfiguration \n ${warrning}`, }); } @@ -7577,10 +4627,10 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, - "put", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/return-config`, + "get", + `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/search/configuration/`, query_params, - body, + undefined, requestHeaders, { responseHeaders } ); @@ -7592,10 +4642,10 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.SuccessResponse1().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); + } = CatalogPlatformModel.GetSearchConfigurationResponse().validate( + responseData, + { abortEarly: false, allowUnknown: true } + ); if (res_error) { if (this.config.options.strictResponseCheck === true) { @@ -7603,7 +4653,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > updateAppReturnConfiguration \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > getSearchConfiguration \n ${res_error}`, }); } } @@ -7612,27 +4662,26 @@ class Catalog { } /** - * @param {CatalogPlatformApplicationValidator.UpdateAutocompleteKeywordParam} arg + * @param {CatalogPlatformApplicationValidator.GetSearchKeywordsParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - + * @returns {Promise} - * Success response - * @name updateAutocompleteKeyword - * @summary: Create & Update Autocomplete Keyword - * @description: Update a mapping by it's id. On successful request, returns the updated Keyword mapping - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateAutocompleteKeyword/). + * @name getSearchKeywords + * @summary: Get a Search Keywords Details + * @description: Get the details of a words by its `id`. If successful, returns a Collection resource in the response body specified in `GetSearchWordsDetailResponseSchema` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getSearchKeywords/). */ - async updateAutocompleteKeyword( - { id, body, requestHeaders } = { requestHeaders: {} }, + async getSearchKeywords( + { id, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformApplicationValidator.updateAutocompleteKeyword().validate( + } = CatalogPlatformApplicationValidator.getSearchKeywords().validate( { id, - body, }, { abortEarly: false, allowUnknown: true } ); @@ -7643,17 +4692,16 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformApplicationValidator.updateAutocompleteKeyword().validate( + } = CatalogPlatformApplicationValidator.getSearchKeywords().validate( { id, - body, }, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > updateAutocompleteKeyword \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > getSearchKeywords \n ${warrning}`, }); } @@ -7661,10 +4709,10 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, - "put", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/search/autocomplete/${id}`, + "get", + `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/search/keyword/${id}/`, query_params, - body, + undefined, requestHeaders, { responseHeaders } ); @@ -7676,10 +4724,10 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.GetAutocompleteWordsData().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); + } = CatalogPlatformModel.GetSearchWordsDetailResponse().validate( + responseData, + { abortEarly: false, allowUnknown: true } + ); if (res_error) { if (this.config.options.strictResponseCheck === true) { @@ -7687,7 +4735,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > updateAutocompleteKeyword \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > getSearchKeywords \n ${res_error}`, }); } } @@ -7696,27 +4744,24 @@ class Catalog { } /** - * @param {CatalogPlatformApplicationValidator.UpdateAutocompleteSettingsParam} arg + * @param {CatalogPlatformApplicationValidator.UpdateAllowSingleParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name updateAutocompleteSettings - * @summary: Update autocomplete settings config for an application - * @description: This API allows to update autocomplete settings for an application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateAutocompleteSettings/). + * @returns {Promise} - Success response + * @name updateAllowSingle + * @summary: Update allow single flag for filters of the application. + * @description: Update allow single flag for filters of the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateAllowSingle/). */ - async updateAutocompleteSettings( - { id, body, requestHeaders } = { requestHeaders: {} }, + async updateAllowSingle( + { body, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformApplicationValidator.updateAutocompleteSettings().validate( + } = CatalogPlatformApplicationValidator.updateAllowSingle().validate( { - id, body, }, { abortEarly: false, allowUnknown: true } @@ -7728,9 +4773,8 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformApplicationValidator.updateAutocompleteSettings().validate( + } = CatalogPlatformApplicationValidator.updateAllowSingle().validate( { - id, body, }, { abortEarly: false, allowUnknown: false } @@ -7738,7 +4782,7 @@ class Catalog { if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > updateAutocompleteSettings \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > updateAllowSingle \n ${warrning}`, }); } @@ -7746,8 +4790,8 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, - "put", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/search/autocomplete/settings/${id}`, + "post", + `/service/platform/catalog/v2.0/company/${this.config.companyId}/application/${this.applicationId}/product-configuration/filter/allow_single`, query_params, body, requestHeaders, @@ -7761,10 +4805,10 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.AutocompleteUpsertResponseSchema().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); + } = CatalogPlatformModel.ConfigSuccessResponse().validate(responseData, { + abortEarly: false, + allowUnknown: true, + }); if (res_error) { if (this.config.options.strictResponseCheck === true) { @@ -7772,7 +4816,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > updateAutocompleteSettings \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > updateAllowSingle \n ${res_error}`, }); } } @@ -7781,23 +4825,23 @@ class Catalog { } /** - * @param {CatalogPlatformApplicationValidator.UpdateCollectionParam} arg - Arg object + * @param {CatalogPlatformApplicationValidator.UpdateAppBrandParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name updateCollection - * @summary: Update a collection - * @description: Update a collection by it's id. On successful request, returns the updated collection - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateCollection/). + * @returns {Promise} - Success response + * @name updateAppBrand + * @summary: Update a single custom json. + * @description: This API helps to update data associated to a item custom meta. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateAppBrand/). */ - async updateCollection( - { id, body, requestHeaders } = { requestHeaders: {} }, + async updateAppBrand( + { brandUid, body, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformApplicationValidator.updateCollection().validate( + } = CatalogPlatformApplicationValidator.updateAppBrand().validate( { - id, + brandUid, body, }, { abortEarly: false, allowUnknown: true } @@ -7809,9 +4853,9 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformApplicationValidator.updateCollection().validate( + } = CatalogPlatformApplicationValidator.updateAppBrand().validate( { - id, + brandUid, body, }, { abortEarly: false, allowUnknown: false } @@ -7819,7 +4863,7 @@ class Catalog { if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > updateCollection \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > updateAppBrand \n ${warrning}`, }); } @@ -7827,8 +4871,8 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, - "put", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/collections/${id}`, + "patch", + `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/brand/${brandUid}`, query_params, body, requestHeaders, @@ -7842,7 +4886,7 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.UpdateCollection().validate(responseData, { + } = CatalogPlatformModel.SuccessResponse1().validate(responseData, { abortEarly: false, allowUnknown: true, }); @@ -7853,7 +4897,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > updateCollection \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > updateAppBrand \n ${res_error}`, }); } } @@ -7862,24 +4906,25 @@ class Catalog { } /** - * @param {CatalogPlatformApplicationValidator.UpdateDefaultSortParam} arg + * @param {CatalogPlatformApplicationValidator.UpdateAppCategoryParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name updateDefaultSort - * @summary: Update the default sort key configuration for the application. - * @description: Update the default sort key configuration for the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateDefaultSort/). + * @returns {Promise} - Success response + * @name updateAppCategory + * @summary: Update a single custom json. + * @description: This API helps to update data associated to a item custom meta. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateAppCategory/). */ - async updateDefaultSort( - { body, requestHeaders } = { requestHeaders: {} }, + async updateAppCategory( + { categoryUid, body, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformApplicationValidator.updateDefaultSort().validate( + } = CatalogPlatformApplicationValidator.updateAppCategory().validate( { + categoryUid, body, }, { abortEarly: false, allowUnknown: true } @@ -7891,8 +4936,9 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformApplicationValidator.updateDefaultSort().validate( + } = CatalogPlatformApplicationValidator.updateAppCategory().validate( { + categoryUid, body, }, { abortEarly: false, allowUnknown: false } @@ -7900,7 +4946,7 @@ class Catalog { if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > updateDefaultSort \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > updateAppCategory \n ${warrning}`, }); } @@ -7908,8 +4954,8 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, - "post", - `/service/platform/catalog/v2.0/company/${this.config.companyId}/application/${this.applicationId}/product-configuration/sort/default_key`, + "patch", + `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/category/${categoryUid}`, query_params, body, requestHeaders, @@ -7923,7 +4969,7 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.ConfigSuccessResponse().validate(responseData, { + } = CatalogPlatformModel.SuccessResponse1().validate(responseData, { abortEarly: false, allowUnknown: true, }); @@ -7934,7 +4980,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > updateDefaultSort \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > updateAppCategory \n ${res_error}`, }); } } @@ -7943,26 +4989,24 @@ class Catalog { } /** - * @param {CatalogPlatformApplicationValidator.UpdateGroupConfigurationParam} arg + * @param {CatalogPlatformApplicationValidator.UpdateAppCategoryReturnConfigurationParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name updateGroupConfiguration - * @summary: Update the group configurations for the application. - * @description: Update the group configurations for the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateGroupConfiguration/). + * @returns {Promise} - Success response + * @name updateAppCategoryReturnConfiguration + * @summary: Update Category level Application Return Configuration setttings + * @description: Update Category level Application Return Configuration setttings - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateAppCategoryReturnConfiguration/). */ - async updateGroupConfiguration( - { configType, groupSlug, body, requestHeaders } = { requestHeaders: {} }, + async updateAppCategoryReturnConfiguration( + { body, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformApplicationValidator.updateGroupConfiguration().validate( + } = CatalogPlatformApplicationValidator.updateAppCategoryReturnConfiguration().validate( { - configType, - groupSlug, body, }, { abortEarly: false, allowUnknown: true } @@ -7974,10 +5018,8 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformApplicationValidator.updateGroupConfiguration().validate( + } = CatalogPlatformApplicationValidator.updateAppCategoryReturnConfiguration().validate( { - configType, - groupSlug, body, }, { abortEarly: false, allowUnknown: false } @@ -7985,7 +5027,7 @@ class Catalog { if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > updateGroupConfiguration \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > updateAppCategoryReturnConfiguration \n ${warrning}`, }); } @@ -7994,7 +5036,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "put", - `/service/platform/catalog/v2.0/company/${this.config.companyId}/application/${this.applicationId}/product-configuration/${configType}/groups/${groupSlug}`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/return-config/categories`, query_params, body, requestHeaders, @@ -8008,7 +5050,7 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.AppConfigurationDetail().validate(responseData, { + } = CatalogPlatformModel.SuccessResponse().validate(responseData, { abortEarly: false, allowUnknown: true, }); @@ -8019,7 +5061,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > updateGroupConfiguration \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > updateAppCategoryReturnConfiguration \n ${res_error}`, }); } } @@ -8028,28 +5070,25 @@ class Catalog { } /** - * @param {CatalogPlatformApplicationValidator.UpdateListingConfigurationParam} arg + * @param {CatalogPlatformApplicationValidator.UpdateAppDepartmentParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name updateListingConfiguration - * @summary: Update configuration for listings - * @description: Update configuration for listing. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateListingConfiguration/). + * @returns {Promise} - Success response + * @name updateAppDepartment + * @summary: Update a single custom json. + * @description: This API helps to update data associated to a item custom meta. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateAppDepartment/). */ - async updateListingConfiguration( - { configType, configId, body, requestHeaders } = { requestHeaders: {} }, + async updateAppDepartment( + { departmentUid, body, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformApplicationValidator.updateListingConfiguration().validate( + } = CatalogPlatformApplicationValidator.updateAppDepartment().validate( { - configType, - configId, + departmentUid, body, }, { abortEarly: false, allowUnknown: true } @@ -8061,10 +5100,9 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformApplicationValidator.updateListingConfiguration().validate( + } = CatalogPlatformApplicationValidator.updateAppDepartment().validate( { - configType, - configId, + departmentUid, body, }, { abortEarly: false, allowUnknown: false } @@ -8072,7 +5110,7 @@ class Catalog { if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > updateListingConfiguration \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > updateAppDepartment \n ${warrning}`, }); } @@ -8080,8 +5118,8 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, - "put", - `/service/platform/catalog/v2.0/company/${this.config.companyId}/application/${this.applicationId}/product-configuration/${configType}/item/${configId}`, + "patch", + `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/department/${departmentUid}`, query_params, body, requestHeaders, @@ -8095,10 +5133,10 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.AppConfigurationsFilterResponse().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); + } = CatalogPlatformModel.SuccessResponse1().validate(responseData, { + abortEarly: false, + allowUnknown: true, + }); if (res_error) { if (this.config.options.strictResponseCheck === true) { @@ -8106,7 +5144,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > updateListingConfiguration \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > updateAppDepartment \n ${res_error}`, }); } } @@ -8115,26 +5153,25 @@ class Catalog { } /** - * @param {CatalogPlatformApplicationValidator.UpdateMerchandisingRuleBoostActionParam} arg + * @param {CatalogPlatformApplicationValidator.UpdateAppLocationParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name updateMerchandisingRuleBoostAction - * @summary: Update Merchandising Rule's Boost action details - * @description: This allows you to update Boost action of a merchandising rule. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateMerchandisingRuleBoostAction/). + * @returns {Promise} - Success response + * @name updateAppLocation + * @summary: Update a single custom json. + * @description: This API helps to update data associated to a item custom meta. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateAppLocation/). */ - async updateMerchandisingRuleBoostAction( - { merchandisingRuleId, body, requestHeaders } = { requestHeaders: {} }, + async updateAppLocation( + { storeUid, body, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformApplicationValidator.updateMerchandisingRuleBoostAction().validate( + } = CatalogPlatformApplicationValidator.updateAppLocation().validate( { - merchandisingRuleId, + storeUid, body, }, { abortEarly: false, allowUnknown: true } @@ -8146,9 +5183,9 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformApplicationValidator.updateMerchandisingRuleBoostAction().validate( + } = CatalogPlatformApplicationValidator.updateAppLocation().validate( { - merchandisingRuleId, + storeUid, body, }, { abortEarly: false, allowUnknown: false } @@ -8156,7 +5193,7 @@ class Catalog { if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > updateMerchandisingRuleBoostAction \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > updateAppLocation \n ${warrning}`, }); } @@ -8164,8 +5201,8 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, - "put", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/merchandise/rules/${merchandisingRuleId}/boost`, + "patch", + `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/store/${storeUid}`, query_params, body, requestHeaders, @@ -8179,10 +5216,10 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.SuccessResponseMerchandising().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); + } = CatalogPlatformModel.SuccessResponse1().validate(responseData, { + abortEarly: false, + allowUnknown: true, + }); if (res_error) { if (this.config.options.strictResponseCheck === true) { @@ -8190,7 +5227,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > updateMerchandisingRuleBoostAction \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > updateAppLocation \n ${res_error}`, }); } } @@ -8199,26 +5236,23 @@ class Catalog { } /** - * @param {CatalogPlatformApplicationValidator.UpdateMerchandisingRuleBuryActionParam} arg - * - Arg object - * + * @param {CatalogPlatformApplicationValidator.UpdateAppProductParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name updateMerchandisingRuleBuryAction - * @summary: Update Merchandising Rule's Bury action details - * @description: This allows you to update Bury action of a merchandising rule. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateMerchandisingRuleBuryAction/). + * @returns {Promise} - Success response + * @name updateAppProduct + * @summary: Update a single custom meta. + * @description: This API helps to update data associated to a item custom meta. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateAppProduct/). */ - async updateMerchandisingRuleBuryAction( - { merchandisingRuleId, body, requestHeaders } = { requestHeaders: {} }, + async updateAppProduct( + { itemId, body, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformApplicationValidator.updateMerchandisingRuleBuryAction().validate( + } = CatalogPlatformApplicationValidator.updateAppProduct().validate( { - merchandisingRuleId, + itemId, body, }, { abortEarly: false, allowUnknown: true } @@ -8230,9 +5264,9 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformApplicationValidator.updateMerchandisingRuleBuryAction().validate( + } = CatalogPlatformApplicationValidator.updateAppProduct().validate( { - merchandisingRuleId, + itemId, body, }, { abortEarly: false, allowUnknown: false } @@ -8240,7 +5274,7 @@ class Catalog { if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > updateMerchandisingRuleBuryAction \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > updateAppProduct \n ${warrning}`, }); } @@ -8248,8 +5282,8 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, - "put", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/merchandise/rules/${merchandisingRuleId}/bury`, + "patch", + `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/product/${itemId}/`, query_params, body, requestHeaders, @@ -8263,10 +5297,10 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.SuccessResponseMerchandising().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); + } = CatalogPlatformModel.SuccessResponse1().validate(responseData, { + abortEarly: false, + allowUnknown: true, + }); if (res_error) { if (this.config.options.strictResponseCheck === true) { @@ -8274,7 +5308,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > updateMerchandisingRuleBuryAction \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > updateAppProduct \n ${res_error}`, }); } } @@ -8283,26 +5317,24 @@ class Catalog { } /** - * @param {CatalogPlatformApplicationValidator.UpdateMerchandisingRuleHideActionParam} arg + * @param {CatalogPlatformApplicationValidator.UpdateAppReturnConfigurationParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name updateMerchandisingRuleHideAction - * @summary: Update Merchandising Rule's Hide action details - * @description: This allows you to update hide action of a merchandising rule. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateMerchandisingRuleHideAction/). + * @returns {Promise} - Success response + * @name updateAppReturnConfiguration + * @summary: Update Return configuration level set for an application + * @description: Update Return configuration level set for an application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateAppReturnConfiguration/). */ - async updateMerchandisingRuleHideAction( - { merchandisingRuleId, body, requestHeaders } = { requestHeaders: {} }, + async updateAppReturnConfiguration( + { body, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformApplicationValidator.updateMerchandisingRuleHideAction().validate( + } = CatalogPlatformApplicationValidator.updateAppReturnConfiguration().validate( { - merchandisingRuleId, body, }, { abortEarly: false, allowUnknown: true } @@ -8314,9 +5346,8 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformApplicationValidator.updateMerchandisingRuleHideAction().validate( + } = CatalogPlatformApplicationValidator.updateAppReturnConfiguration().validate( { - merchandisingRuleId, body, }, { abortEarly: false, allowUnknown: false } @@ -8324,7 +5355,7 @@ class Catalog { if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > updateMerchandisingRuleHideAction \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > updateAppReturnConfiguration \n ${warrning}`, }); } @@ -8333,7 +5364,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "put", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/merchandise/rules/${merchandisingRuleId}/hide`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/return-config`, query_params, body, requestHeaders, @@ -8347,10 +5378,10 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.SuccessResponseMerchandising().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); + } = CatalogPlatformModel.SuccessResponse1().validate(responseData, { + abortEarly: false, + allowUnknown: true, + }); if (res_error) { if (this.config.options.strictResponseCheck === true) { @@ -8358,7 +5389,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > updateMerchandisingRuleHideAction \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > updateAppReturnConfiguration \n ${res_error}`, }); } } @@ -8367,26 +5398,26 @@ class Catalog { } /** - * @param {CatalogPlatformApplicationValidator.UpdateMerchandisingRulePinActionParam} arg + * @param {CatalogPlatformApplicationValidator.UpdateAutocompleteKeywordParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - + * @returns {Promise} - * Success response - * @name updateMerchandisingRulePinAction - * @summary: Update Merchandising Rule's action details - * @description: This allows you to update pin action of a merchandising rule. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateMerchandisingRulePinAction/). + * @name updateAutocompleteKeyword + * @summary: Create & Update Autocomplete Keyword + * @description: Update a mapping by it's id. On successful request, returns the updated Keyword mapping - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateAutocompleteKeyword/). */ - async updateMerchandisingRulePinAction( - { merchandisingRuleId, body, requestHeaders } = { requestHeaders: {} }, + async updateAutocompleteKeyword( + { id, body, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformApplicationValidator.updateMerchandisingRulePinAction().validate( + } = CatalogPlatformApplicationValidator.updateAutocompleteKeyword().validate( { - merchandisingRuleId, + id, body, }, { abortEarly: false, allowUnknown: true } @@ -8398,9 +5429,9 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformApplicationValidator.updateMerchandisingRulePinAction().validate( + } = CatalogPlatformApplicationValidator.updateAutocompleteKeyword().validate( { - merchandisingRuleId, + id, body, }, { abortEarly: false, allowUnknown: false } @@ -8408,7 +5439,7 @@ class Catalog { if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > updateMerchandisingRulePinAction \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > updateAutocompleteKeyword \n ${warrning}`, }); } @@ -8417,7 +5448,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "put", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/merchandise/rules/${merchandisingRuleId}/pin`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/search/autocomplete/${id}/`, query_params, body, requestHeaders, @@ -8431,7 +5462,7 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.SuccessResponseMerchandising().validate( + } = CatalogPlatformModel.GetAutocompleteWordsResponse().validate( responseData, { abortEarly: false, allowUnknown: true } ); @@ -8442,7 +5473,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > updateMerchandisingRulePinAction \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > updateAutocompleteKeyword \n ${res_error}`, }); } } @@ -8451,26 +5482,23 @@ class Catalog { } /** - * @param {CatalogPlatformApplicationValidator.UpdateMerchandisingRuleQueryParam} arg - * - Arg object - * + * @param {CatalogPlatformApplicationValidator.UpdateCollectionParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name updateMerchandisingRuleQuery - * @summary: Update a Merchandising Rule's query - * @description: This allows you to Update a merchandising rule's query. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateMerchandisingRuleQuery/). + * @returns {Promise} - Success response + * @name updateCollection + * @summary: Update a collection + * @description: Update a collection by it's id. On successful request, returns the updated collection - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateCollection/). */ - async updateMerchandisingRuleQuery( - { merchandisingRuleId, body, requestHeaders } = { requestHeaders: {} }, + async updateCollection( + { id, body, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformApplicationValidator.updateMerchandisingRuleQuery().validate( + } = CatalogPlatformApplicationValidator.updateCollection().validate( { - merchandisingRuleId, + id, body, }, { abortEarly: false, allowUnknown: true } @@ -8482,9 +5510,9 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformApplicationValidator.updateMerchandisingRuleQuery().validate( + } = CatalogPlatformApplicationValidator.updateCollection().validate( { - merchandisingRuleId, + id, body, }, { abortEarly: false, allowUnknown: false } @@ -8492,7 +5520,7 @@ class Catalog { if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > updateMerchandisingRuleQuery \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > updateCollection \n ${warrning}`, }); } @@ -8501,7 +5529,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "put", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/merchandise/rules/${merchandisingRuleId}/query`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/collections/${id}/`, query_params, body, requestHeaders, @@ -8515,10 +5543,10 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.SuccessResponseMerchandising().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); + } = CatalogPlatformModel.UpdateCollection().validate(responseData, { + abortEarly: false, + allowUnknown: true, + }); if (res_error) { if (this.config.options.strictResponseCheck === true) { @@ -8526,7 +5554,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > updateMerchandisingRuleQuery \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > updateCollection \n ${res_error}`, }); } } @@ -8535,29 +5563,24 @@ class Catalog { } /** - * @param {CatalogPlatformApplicationValidator.UpdateProductPriceByZoneInPriceFactoryParam} arg + * @param {CatalogPlatformApplicationValidator.UpdateDefaultSortParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name updateProductPriceByZoneInPriceFactory - * @summary: - * @description: This API allows to partially update products in price factory. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateProductPriceByZoneInPriceFactory/). + * @returns {Promise} - Success response + * @name updateDefaultSort + * @summary: Update the default sort key configuration for the application. + * @description: Update the default sort key configuration for the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateDefaultSort/). */ - async updateProductPriceByZoneInPriceFactory( - { id, itemId, zoneId, body, requestHeaders } = { requestHeaders: {} }, + async updateDefaultSort( + { body, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformApplicationValidator.updateProductPriceByZoneInPriceFactory().validate( + } = CatalogPlatformApplicationValidator.updateDefaultSort().validate( { - id, - itemId, - zoneId, body, }, { abortEarly: false, allowUnknown: true } @@ -8569,11 +5592,8 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformApplicationValidator.updateProductPriceByZoneInPriceFactory().validate( + } = CatalogPlatformApplicationValidator.updateDefaultSort().validate( { - id, - itemId, - zoneId, body, }, { abortEarly: false, allowUnknown: false } @@ -8581,7 +5601,7 @@ class Catalog { if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > updateProductPriceByZoneInPriceFactory \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > updateDefaultSort \n ${warrning}`, }); } @@ -8589,8 +5609,8 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, - "patch", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/price-factory/${id}/product/${itemId}/zone/${zoneId}/price`, + "post", + `/service/platform/catalog/v2.0/company/${this.config.companyId}/application/${this.applicationId}/product-configuration/sort/default_key`, query_params, body, requestHeaders, @@ -8604,10 +5624,10 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.UpdateAppPriceFactoryProductResponse().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); + } = CatalogPlatformModel.ConfigSuccessResponse().validate(responseData, { + abortEarly: false, + allowUnknown: true, + }); if (res_error) { if (this.config.options.strictResponseCheck === true) { @@ -8615,7 +5635,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > updateProductPriceByZoneInPriceFactory \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > updateDefaultSort \n ${res_error}`, }); } } @@ -8624,26 +5644,26 @@ class Catalog { } /** - * @param {CatalogPlatformApplicationValidator.UpdateSearchConfigurationParam} arg + * @param {CatalogPlatformApplicationValidator.UpdateGroupConfigurationParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name updateSearchConfiguration - * @summary: Update search configuration for an application - * @description: This view allows you to modify searchable attributes for an application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateSearchConfiguration/). + * @returns {Promise} - Success response + * @name updateGroupConfiguration + * @summary: Update the group configurations for the application. + * @description: Update the group configurations for the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateGroupConfiguration/). */ - async updateSearchConfiguration( - { body, requestHeaders } = { requestHeaders: {} }, + async updateGroupConfiguration( + { configType, groupSlug, body, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformApplicationValidator.updateSearchConfiguration().validate( + } = CatalogPlatformApplicationValidator.updateGroupConfiguration().validate( { + configType, + groupSlug, body, }, { abortEarly: false, allowUnknown: true } @@ -8655,8 +5675,10 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformApplicationValidator.updateSearchConfiguration().validate( + } = CatalogPlatformApplicationValidator.updateGroupConfiguration().validate( { + configType, + groupSlug, body, }, { abortEarly: false, allowUnknown: false } @@ -8664,7 +5686,7 @@ class Catalog { if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > updateSearchConfiguration \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > updateGroupConfiguration \n ${warrning}`, }); } @@ -8673,7 +5695,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "put", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/search/configuration`, + `/service/platform/catalog/v2.0/company/${this.config.companyId}/application/${this.applicationId}/product-configuration/${configType}/groups/${groupSlug}`, query_params, body, requestHeaders, @@ -8687,10 +5709,10 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.UpdateSearchConfigurationResponse().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); + } = CatalogPlatformModel.AppConfigurationDetail().validate(responseData, { + abortEarly: false, + allowUnknown: true, + }); if (res_error) { if (this.config.options.strictResponseCheck === true) { @@ -8698,7 +5720,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > updateSearchConfiguration \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > updateGroupConfiguration \n ${res_error}`, }); } } @@ -8707,25 +5729,26 @@ class Catalog { } /** - * @param {CatalogPlatformApplicationValidator.UpdateSearchKeywordsParam} arg + * @param {CatalogPlatformApplicationValidator.UpdateListingConfigurationParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name updateSearchKeywords - * @summary: Update Search Keyword - * @description: Update Search Keyword by its id. On successful request, returns the updated collection - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateSearchKeywords/). + * @returns {Promise} - Success response + * @name updateListingConfiguration + * @summary: Update configuration for listings + * @description: Update configuration for listing. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateListingConfiguration/). */ - async updateSearchKeywords( - { id, body, requestHeaders } = { requestHeaders: {} }, + async updateListingConfiguration( + { configType, configId, body, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformApplicationValidator.updateSearchKeywords().validate( + } = CatalogPlatformApplicationValidator.updateListingConfiguration().validate( { - id, + configType, + configId, body, }, { abortEarly: false, allowUnknown: true } @@ -8737,9 +5760,10 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformApplicationValidator.updateSearchKeywords().validate( + } = CatalogPlatformApplicationValidator.updateListingConfiguration().validate( { - id, + configType, + configId, body, }, { abortEarly: false, allowUnknown: false } @@ -8747,7 +5771,7 @@ class Catalog { if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > updateSearchKeywords \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > updateListingConfiguration \n ${warrning}`, }); } @@ -8756,7 +5780,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "put", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/search/keyword/${id}`, + `/service/platform/catalog/v2.0/company/${this.config.companyId}/application/${this.applicationId}/product-configuration/${configType}/item/${configId}/`, query_params, body, requestHeaders, @@ -8770,7 +5794,7 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.GetSearchWordsData().validate(responseData, { + } = CatalogPlatformModel.AppConfigurationsSort().validate(responseData, { abortEarly: false, allowUnknown: true, }); @@ -8781,7 +5805,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > updateSearchKeywords \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > updateListingConfiguration \n ${res_error}`, }); } } @@ -8790,26 +5814,26 @@ class Catalog { } /** - * @param {CatalogPlatformApplicationValidator.UpdateSearchRerankConfigurationParam} arg + * @param {CatalogPlatformApplicationValidator.UpdateSearchConfigurationParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name updateSearchRerankConfiguration - * @summary: Update search rerank for an application - * @description: This view allows you to update search rerank attribute for an application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateSearchRerankConfiguration/). + * @returns {Promise} + * - Success response + * + * @name updateSearchConfiguration + * @summary: Update search configuration for an application + * @description: This view allows you to modify searchable attributes for an application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateSearchConfiguration/). */ - async updateSearchRerankConfiguration( - { id, body, requestHeaders } = { requestHeaders: {} }, + async updateSearchConfiguration( + { body, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformApplicationValidator.updateSearchRerankConfiguration().validate( + } = CatalogPlatformApplicationValidator.updateSearchConfiguration().validate( { - id, body, }, { abortEarly: false, allowUnknown: true } @@ -8821,9 +5845,8 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformApplicationValidator.updateSearchRerankConfiguration().validate( + } = CatalogPlatformApplicationValidator.updateSearchConfiguration().validate( { - id, body, }, { abortEarly: false, allowUnknown: false } @@ -8831,7 +5854,7 @@ class Catalog { if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > updateSearchRerankConfiguration \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > updateSearchConfiguration \n ${warrning}`, }); } @@ -8840,7 +5863,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "put", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/search/rerank/${id}`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/search/configuration/`, query_params, body, requestHeaders, @@ -8854,7 +5877,7 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.UpdateSearchRerankResponse().validate( + } = CatalogPlatformModel.UpdateSearchConfigurationResponse().validate( responseData, { abortEarly: false, allowUnknown: true } ); @@ -8865,7 +5888,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > updateSearchRerankConfiguration \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > updateSearchConfiguration \n ${res_error}`, }); } } @@ -8874,28 +5897,25 @@ class Catalog { } /** - * @param {CatalogPlatformApplicationValidator.ValidateProductPriceFactoryBulkJobParam} arg + * @param {CatalogPlatformApplicationValidator.UpdateSearchKeywordsParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name validateProductPriceFactoryBulkJob - * @summary: - * @description: This API allows to validate bulk job for adding products in price factory. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/validateProductPriceFactoryBulkJob/). + * @returns {Promise} - Success response + * @name updateSearchKeywords + * @summary: Update Search Keyword + * @description: Update Search Keyword by its id. On successful request, returns the updated collection - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateSearchKeywords/). */ - async validateProductPriceFactoryBulkJob( - { id, jobId, body, requestHeaders } = { requestHeaders: {} }, + async updateSearchKeywords( + { id, body, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformApplicationValidator.validateProductPriceFactoryBulkJob().validate( + } = CatalogPlatformApplicationValidator.updateSearchKeywords().validate( { id, - jobId, body, }, { abortEarly: false, allowUnknown: true } @@ -8907,10 +5927,9 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformApplicationValidator.validateProductPriceFactoryBulkJob().validate( + } = CatalogPlatformApplicationValidator.updateSearchKeywords().validate( { id, - jobId, body, }, { abortEarly: false, allowUnknown: false } @@ -8918,7 +5937,7 @@ class Catalog { if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > validateProductPriceFactoryBulkJob \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > updateSearchKeywords \n ${warrning}`, }); } @@ -8926,8 +5945,8 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, - "post", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/price-factory/${id}/products/bulk/${jobId}/validate`, + "put", + `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/search/keyword/${id}/`, query_params, body, requestHeaders, @@ -8941,10 +5960,10 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.CreateAppPriceFactoryProductBulkJobResponse().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); + } = CatalogPlatformModel.GetSearchWordsData().validate(responseData, { + abortEarly: false, + allowUnknown: true, + }); if (res_error) { if (this.config.options.strictResponseCheck === true) { @@ -8952,7 +5971,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > validateProductPriceFactoryBulkJob \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > updateSearchKeywords \n ${res_error}`, }); } } diff --git a/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts b/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts index 35f0f23da..1ee8ad617 100644 --- a/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +++ b/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts @@ -2,31 +2,16 @@ export = CatalogPlatformApplicationValidator; /** * @typedef AddCollectionItemsParam * @property {string} id - A `id` is a unique identifier of a collection. - * @property {CatalogPlatformModel.CollectionItemUpdateSchema} body - */ -/** - * @typedef AddProductsInPriceFactoryByZoneIdParam - * @property {string} id - An `id` is a unique identifier for a particular price factory. - * @property {string} zoneId - An `zone_id` is a unique identifier for a - * particular price factory zone. - * @property {CatalogPlatformModel.CreateAppPriceFactoryProductRequest} body + * @property {CatalogPlatformModel.CollectionItemUpdate} body */ /** * @typedef CreateAppCategoryReturnConfigurationParam * @property {CatalogPlatformModel.BaseAppCategoryReturnConfig} body */ -/** - * @typedef CreateAppPriceFactoryParam - * @property {CatalogPlatformModel.CreateAppPriceFactoryRequest} body - */ /** * @typedef CreateAppReturnConfigurationParam * @property {CatalogPlatformModel.CreateUpdateAppReturnConfig} body */ -/** - * @typedef CreateAutocompleteSettingsParam - * @property {CatalogPlatformModel.AutocompleteRequestSchema} body - */ /** * @typedef CreateCollectionParam * @property {CatalogPlatformModel.CreateCollection} body @@ -52,55 +37,18 @@ export = CatalogPlatformApplicationValidator; * @typedef CreateGroupConfigurationParam * @property {string} configType - A `config_type` is a unique identifier for a * particular group configuration type. - * @property {CatalogPlatformModel.AppConfigurationCreateDetail} body + * @property {CatalogPlatformModel.AppConfigurationDetail} body */ /** * @typedef CreateListingConfigurationParam * @property {string} configType - A `config_type` is a unique identifier for a * particular listing configuration type. - * @property {CatalogPlatformModel.AppConfigurationsFilter} body - */ -/** - * @typedef CreateMerchandisingRuleBoostActionParam - * @property {string} merchandisingRuleId - A `merchandising_rule_id` is a - * unique identifier for a particular merchandising rule. - * @property {CatalogPlatformModel.GetMerchandisingRuleBoostAction} body - */ -/** - * @typedef CreateMerchandisingRuleBuryActionParam - * @property {string} merchandisingRuleId - A `merchandising_rule_id` is a - * unique identifier for a particular merchandising rule. - * @property {CatalogPlatformModel.GetMerchandisingRuleBuryAction} body - */ -/** - * @typedef CreateMerchandisingRuleHideActionParam - * @property {string} merchandisingRuleId - A `merchandising_rule_id` is a - * unique identifier for a particular merchandising rule. - * @property {CatalogPlatformModel.HideRequest} body - */ -/** - * @typedef CreateMerchandisingRulePinActionParam - * @property {string} merchandisingRuleId - A `merchandising_rule_id` is a - * unique identifier for a particular merchandising rule. - * @property {CatalogPlatformModel.PinRequest} body - */ -/** - * @typedef CreateMerchandisingRuleQueryParam - * @property {CatalogPlatformModel.MerchandisingRuleQueryPost} body - */ -/** - * @typedef CreateProductPriceFactoryBulkJobParam - * @property {string} id - An `id` is a unique identifier for a particular price factory. - * @property {CatalogPlatformModel.CreateAppPriceFactoryProductBulkJobRequest} body + * @property {CatalogPlatformModel.AppConfigurationsSort} body */ /** * @typedef CreateSearchConfigurationParam * @property {CatalogPlatformModel.CreateSearchConfigurationRequest} body */ -/** - * @typedef CreateSearchRerankParam - * @property {CatalogPlatformModel.CreateSearchRerankRequest} body - */ /** * @typedef DeleteAppCategoryReturnConfigurationParam * @property {CatalogPlatformModel.DeleteAppCategoryReturnConfig} body @@ -134,22 +82,12 @@ export = CatalogPlatformApplicationValidator; * @property {string} id - A `id` is a unique identifier for a particular * detail. Pass the `id` of the keywords which you want to delete. */ -/** - * @typedef DeleteSearchRerankConfigurationParam - * @property {string} id - An `id` is the identifier for a particular search - * rerank configuration. channel. - */ -/** - * @typedef EditAppPriceFactoryParam - * @property {string} id - An `id` is a unique identifier for a particular price factory. - * @property {CatalogPlatformModel.EditAppPriceFactoryRequest} body - */ /** * @typedef GetAllCollectionsParam * @property {string} [q] - Get collection list filtered by q string, * @property {string} [scheduleStatus] - Get collection list filtered by scheduled status, * @property {string} [type] - Type of the collections - * @property {string[]} [tag] - Each response will contain next_id param, which + * @property {string[]} [tags] - Each response will contain next_id param, which * should be sent back to make pagination work. * @property {boolean} [isActive] - Get collections filtered by active status. * @property {number} [pageNo] - The page number to navigate through the given @@ -157,17 +95,7 @@ export = CatalogPlatformApplicationValidator; * @property {number} [pageSize] - Number of items to retrieve in each page. * Default is 12. */ -/** - * @typedef GetAllSearchKeywordParam - * @property {number} [pageNo] - The page number to navigate through the given - * set of results - * @property {number} [pageSize] - Number of items to retrieve in each page. - * Default is 12. - * @property {string} [q] - Search query with words name.Use this parameter to - * search keywords by words. - * @property {boolean} [isActive] - Can query for keywords based on whether they - * are active or inactive. - */ +/** @typedef GetAllSearchKeywordParam */ /** @typedef GetAppCategoryReturnConfigParam */ /** * @typedef GetAppInventoryParam @@ -183,7 +111,7 @@ export = CatalogPlatformApplicationValidator; * @typedef GetAppLocationsParam * @property {string} [storeType] - Helps to sort the location list on the basis * of location type. - * @property {string} [uid] - Helps to sort the location list on the basis of uid list. + * @property {number[]} [uid] - Helps to sort the location list on the basis of uid list. * @property {string} [q] - Query that is to be searched. * @property {string} [stage] - To filter companies on basis of verified or * unverified companies. @@ -193,26 +121,10 @@ export = CatalogPlatformApplicationValidator; * Default is 20. * @property {string[]} [tags] - Get locations filtered by tags. * @property {string[]} [storeTypes] - Get locations filtered by store types. - * @property {number[]} [companyUids] - Filter stores by company IDs available - * in the application. - */ -/** - * @typedef GetAppPriceFactoriesParam - * @property {boolean} [isActive] - Gets price factory filtered by active status. - * @property {string} [factoryTypeId] - Gets price factory filtered by factory_type_id. - * @property {string} [code] - Gets price factory filtered by pricezone code. - * @property {number} [pageNo] - The page number to navigate through the given - * set of results. - * @property {number} [pageSize] - Number of items to retrieve in each page. - * Default is 12. - */ -/** - * @typedef GetAppPriceFactoryParam - * @property {string} id - An `id` is a unique identifier for a particular price factory. */ /** * @typedef GetAppProductParam - * @property {number} itemId - Product id for a particular product. + * @property {string} itemId - Product id for a particular product. */ /** * @typedef GetAppProductsParam @@ -254,7 +166,7 @@ export = CatalogPlatformApplicationValidator; * page items. Default is 1. * @property {string} [pageType] - For pagination type should be cursor or * number. Default is cursor. - * @property {string[]} [itemIds] - Item Ids of product + * @property {number[]} [itemIds] - Item Ids of product */ /** * @typedef GetApplicationBrandListingParam @@ -277,7 +189,8 @@ export = CatalogPlatformApplicationValidator; * Default is 12. * @property {string} [q] - Search query with brand name.Use this parameter to * search brands by brand name. - * @property {number} [brandId] - Helps to sort the brands list on the basis of uid list. + * @property {number[]} [brandId] - Helps to sort the brands list on the basis + * of uid list. */ /** * @typedef GetApplicationCategoryListingParam @@ -300,31 +213,34 @@ export = CatalogPlatformApplicationValidator; * search department by name. */ /** - * @typedef GetAutocompleteConfigParam + * @typedef GetApplicationFilterKeysParam + * @property {string} [c] - The search filter parameters for collection items. + * All the parameter filtered from filter parameters will be passed in **c** + * parameter in this format. + * **?c=brand:in:voi-jeans|and:::category:nin:t-shirts|shirts** + */ +/** + * @typedef GetApplicationFilterValuesParam + * @property {string} filterKey - A `filter_key` is a filter key for a for which + * all the available filter values will returned. channel. + * @property {string} [c] - The search filter parameters for collection items. + * All the parameter filtered from filter parameters will be passed in **c** + * parameter in this format. + * **?c=brand:in:voi-jeans|and:::category:nin:t-shirts|shirts** + * @property {string} [collectionId] - A `collection_id` is a unique identifier + * for a particular collection. channel. * @property {number} [pageNo] - The page number to navigate through the given * set of results * @property {number} [pageSize] - Number of items to retrieve in each page. - * Default is 12. - * @property {string} [q] - Search query with words name.Use this parameter to - * search keywords by words. - * @property {boolean} [isActive] - Can query for keywords based on whether they - * are active or inactive. + * Default is 10. + * @property {string} [q] - Get Values filtered by q string */ +/** @typedef GetAutocompleteConfigParam */ /** * @typedef GetAutocompleteKeywordDetailParam * @property {string} id - A `id` is a unique identifier for a particular * detail. Pass the `id` of the keywords which you want to retrieve. */ -/** - * @typedef GetAutocompletePreviewParam - * @property {string} [q] - Get suggestions related to `q` string. - * @property {number} [categorySuggestion] - For getting related category suggestions. - * @property {number} [brandSuggestion] - For getting related brand suggestions. - * @property {number} [collectionSuggestion] - For getting collection suggestions. - * @property {number} [productSuggestion] - For getting product suggestions. - * @property {number} [querySuggestion] - For getting query suggestions. - */ -/** @typedef GetAutocompleteSettingsParam */ /** @typedef GetCatalogConfigurationParam */ /** * @typedef GetCatalogInsightsParam @@ -343,6 +259,16 @@ export = CatalogPlatformApplicationValidator; * identifier of an object. Pass the `slug` of the collection which you want * to retrieve. */ +/** + * @typedef GetCollectionItemsParam + * @property {string} id - A `id` is a unique identifier of a collection. + * @property {string} [sortOn] - Each response will contain sort_on param, which + * should be sent back to make pagination work. + * @property {string} [pageId] - Each response will contain next_id param, which + * should be sent back to make pagination work. + * @property {number} [pageSize] - Number of items to retrieve in each page. + * Default is 12. + */ /** * @typedef GetConfigurationByTypeParam * @property {string} type - Type can be brands, categories etc. @@ -353,22 +279,23 @@ export = CatalogPlatformApplicationValidator; * a specific type of configuration. * @property {string} [templateSlug] - Get configuration list filtered by * `template_slug` string. This is for the details and comparision groups. + * @property {number} [pageNo] - The page number to navigate through the given + * set of results. + * @property {number} [pageSize] - Number of items to retrieve in each page. + * @property {string} [q] - Get configuration list filtered by `q` string. */ /** @typedef GetConfigurationsParam */ -/** - * @typedef GetConfigurationsFilterMetadataParam - * @property {string} filter - Filter whose values needs to be fetched. - */ /** @typedef GetDepartmentsParam */ /** * @typedef GetDiscountedInventoryBySizeIdentifierParam * @property {number} itemId - Item code of the product of which size is to be get. - * @property {number} sizeIdentifier - Size Identifier (Seller Identifier or + * @property {string} sizeIdentifier - Size Identifier (Seller Identifier or * Primary Identifier) of which inventory is to get. * @property {number} [pageNo] - The page number to navigate through the given * set of results * @property {number} [pageSize] - Number of items to retrieve in each page. * Default is 12. + * @property {string} [q] - Search with help of store code. * @property {number[]} [locationIds] - Search by store ids. */ /** @@ -392,66 +319,12 @@ export = CatalogPlatformApplicationValidator; * @property {number} [pageSize] - Number of items to retrieve in each page. * Default is 12. * @property {string} [search] - Get configuration list filtered by `search` string. - * @property {number[]} [uids] - Only for categories config type, Get - * configuration list filtered by `uids`. - */ -/** - * @typedef GetLivePreviewParam - * @property {string} merchandisingRuleId - A `merchandising_rule_id` is a - * unique identifier for a particular merchandising rule. - * @property {string} [searchKeyword] - A sample query that can be used to get a - * live preview of the merchandising rule. - */ -/** - * @typedef GetMerchandisingQueryParam - * @property {string} merchandisingRuleId - A `merchandising_rule_id` is a - * unique identifier for a particular merchandising rule. - */ -/** - * @typedef GetMerchandisingRuleBoostActionParam - * @property {string} merchandisingRuleId - A `merchandising_rule_id` is a - * unique identifier for a particular merchandising rule. - */ -/** - * @typedef GetMerchandisingRuleBuryActionParam - * @property {string} merchandisingRuleId - A `merchandising_rule_id` is a - * unique identifier for a particular merchandising rule. - */ -/** - * @typedef GetMerchandisingRuleHideActionParam - * @property {string} merchandisingRuleId - A `merchandising_rule_id` is a - * unique identifier for a particular merchandising rule. - */ -/** - * @typedef GetMerchandisingRulePinActionParam - * @property {string} merchandisingRuleId - A `merchandising_rule_id` is a - * unique identifier for a particular merchandising rule. - */ -/** - * @typedef GetMerchandisingRulesParam - * @property {string} [pageId] - Each response will contain next_id param, which - * should be sent back to make pagination work. - * @property {number} [pageSize] - Number of items to retrieve in each page. - * Default is 12. */ /** * @typedef GetProductDetailBySlugParam * @property {string} slug - The unique identifier of a product. i.e; `slug` of - * a product or `uid` of a product. You can retrieve these from the APIs that - * list products like **v1.0/products/** - */ -/** - * @typedef GetProductsInPriceFactoryByZoneIdParam - * @property {string} id - An `id` is a unique identifier for a particular price factory. - * @property {string} zoneId - An `zone_id` is a unique identifier for a - * particular price factory zone. - * @property {boolean} [itemId] - Gets price factory filtered by item_id. - * @property {string} [sellerIdentifier] - Gets price factory filtered by - * seller_identifier. - * @property {number} [pageNo] - The page number to navigate through the given - * set of results. - * @property {number} [pageSize] - Number of items to retrieve in each page. - * Default is 12. + * a product. You can retrieve these from the APIs that list products like + * **v1.0/products/** */ /** @typedef GetQueryFiltersParam */ /** @typedef GetSearchConfigurationParam */ @@ -460,35 +333,18 @@ export = CatalogPlatformApplicationValidator; * @property {string} id - A `id` is a unique identifier for a particular * detail. Pass the `id` of the keywords which you want to retrieve. */ -/** @typedef GetSearchRerankParam */ -/** - * @typedef GetSearchRerankDetailParam - * @property {string} id - An `id` is the identifier for a particular search - * rerank configuration. channel. - */ -/** - * @typedef PollProductPriceFactoryBulkJobParam - * @property {string} id - An `id` is a unique identifier for a particular price factory. - * @property {string} jobId - A `job_id` is a unique identifier for a particular bulk job. - */ -/** - * @typedef ProcessProductPriceFactoryBulkJobParam - * @property {string} id - An `id` is a unique identifier for a particular price factory. - * @property {string} jobId - A `job_id` is a unique identifier for a particular bulk job. - * @property {CatalogPlatformModel.CreateAppPriceFactoryProductBulkJobRequest} body - */ /** * @typedef UpdateAllowSingleParam * @property {CatalogPlatformModel.AllowSingleRequest} body */ /** * @typedef UpdateAppBrandParam - * @property {number} brandUid - Brand id for which the custom_json is associated. + * @property {string} brandUid - Brand id for which the custom_json is associated. * @property {CatalogPlatformModel.ApplicationBrandJson} body */ /** * @typedef UpdateAppCategoryParam - * @property {number} categoryUid - Category id for which the custom_json is associated. + * @property {string} categoryUid - Category id for which the custom_json is associated. * @property {CatalogPlatformModel.ApplicationCategoryJson} body */ /** @@ -497,18 +353,18 @@ export = CatalogPlatformApplicationValidator; */ /** * @typedef UpdateAppDepartmentParam - * @property {number} departmentUid - Department id for which the custom_json is + * @property {string} departmentUid - Department id for which the custom_json is * associated. * @property {CatalogPlatformModel.ApplicationDepartmentJson} body */ /** * @typedef UpdateAppLocationParam - * @property {number} storeUid - Store id for which the custom_json is associated. + * @property {string} storeUid - Store id for which the custom_json is associated. * @property {CatalogPlatformModel.ApplicationStoreJson} body */ /** * @typedef UpdateAppProductParam - * @property {number} itemId - Product id for which the custom_meta is associated. + * @property {string} itemId - Product id for which the custom_meta is associated. * @property {CatalogPlatformModel.ApplicationItemMeta} body */ /** @@ -521,12 +377,6 @@ export = CatalogPlatformApplicationValidator; * detail. Pass the `id` of the keywords which you want to delete. * @property {CatalogPlatformModel.CreateAutocompleteKeyword} body */ -/** - * @typedef UpdateAutocompleteSettingsParam - * @property {string} id - An `id` is a unique identifier for a particular - * autocomplete settings config. - * @property {CatalogPlatformModel.AutocompleteRequestSchema} body - */ /** * @typedef UpdateCollectionParam * @property {string} id - A `id` is a unique identifier of a collection. @@ -550,45 +400,7 @@ export = CatalogPlatformApplicationValidator; * particular listing configuration type. * @property {string} configId - A `config_id` is a unique identifier of a * particular configuration. - * @property {CatalogPlatformModel.AppConfigurationsFilterResponse} body - */ -/** - * @typedef UpdateMerchandisingRuleBoostActionParam - * @property {string} merchandisingRuleId - A `merchandising_rule_id` is a - * unique identifier for a particular merchandising rule. - * @property {CatalogPlatformModel.GetMerchandisingRuleBoostAction} body - */ -/** - * @typedef UpdateMerchandisingRuleBuryActionParam - * @property {string} merchandisingRuleId - A `merchandising_rule_id` is a - * unique identifier for a particular merchandising rule. - * @property {CatalogPlatformModel.GetMerchandisingRuleBuryAction} body - */ -/** - * @typedef UpdateMerchandisingRuleHideActionParam - * @property {string} merchandisingRuleId - A `merchandising_rule_id` is a - * unique identifier for a particular merchandising rule. - * @property {CatalogPlatformModel.HideRequest} body - */ -/** - * @typedef UpdateMerchandisingRulePinActionParam - * @property {string} merchandisingRuleId - A `merchandising_rule_id` is a - * unique identifier for a particular merchandising rule. - * @property {CatalogPlatformModel.PinRequest} body - */ -/** - * @typedef UpdateMerchandisingRuleQueryParam - * @property {string} merchandisingRuleId - A `merchandising_rule_id` is a - * unique identifier for a particular merchandising rule. - * @property {CatalogPlatformModel.MerchandisingRuleQueryPost} body - */ -/** - * @typedef UpdateProductPriceByZoneInPriceFactoryParam - * @property {string} id - A `id` is a unique identifier for a particular price factory. - * @property {number} itemId - A `item_id` is a unique identifier for a - * particular product. - * @property {string} zoneId - A `zone_id` is a unique identifier for a particular zone. - * @property {CatalogPlatformModel.UpdateAppPriceFactoryProductRequest} body + * @property {CatalogPlatformModel.AppConfigurationsSort} body */ /** * @typedef UpdateSearchConfigurationParam @@ -600,31 +412,13 @@ export = CatalogPlatformApplicationValidator; * detail. Pass the `id` of the keywords which you want to delete. * @property {CatalogPlatformModel.CreateSearchKeyword} body */ -/** - * @typedef UpdateSearchRerankConfigurationParam - * @property {string} id - An `id` is the identifier for a particular search - * rerank configuration. channel. - * @property {CatalogPlatformModel.UpdateSearchRerankRequest} body - */ -/** - * @typedef ValidateProductPriceFactoryBulkJobParam - * @property {string} id - An `id` is a unique identifier for a particular price factory. - * @property {string} jobId - A `job_id` is a unique identifier for a particular bulk job. - * @property {CatalogPlatformModel.CreateAppPriceFactoryProductBulkJobRequest} body - */ declare class CatalogPlatformApplicationValidator { /** @returns {AddCollectionItemsParam} */ static addCollectionItems(): AddCollectionItemsParam; - /** @returns {AddProductsInPriceFactoryByZoneIdParam} */ - static addProductsInPriceFactoryByZoneId(): AddProductsInPriceFactoryByZoneIdParam; /** @returns {CreateAppCategoryReturnConfigurationParam} */ static createAppCategoryReturnConfiguration(): CreateAppCategoryReturnConfigurationParam; - /** @returns {CreateAppPriceFactoryParam} */ - static createAppPriceFactory(): CreateAppPriceFactoryParam; /** @returns {CreateAppReturnConfigurationParam} */ static createAppReturnConfiguration(): CreateAppReturnConfigurationParam; - /** @returns {CreateAutocompleteSettingsParam} */ - static createAutocompleteSettings(): CreateAutocompleteSettingsParam; /** @returns {CreateCollectionParam} */ static createCollection(): CreateCollectionParam; /** @returns {CreateConfigurationByTypeParam} */ @@ -639,22 +433,8 @@ declare class CatalogPlatformApplicationValidator { static createGroupConfiguration(): CreateGroupConfigurationParam; /** @returns {CreateListingConfigurationParam} */ static createListingConfiguration(): CreateListingConfigurationParam; - /** @returns {CreateMerchandisingRuleBoostActionParam} */ - static createMerchandisingRuleBoostAction(): CreateMerchandisingRuleBoostActionParam; - /** @returns {CreateMerchandisingRuleBuryActionParam} */ - static createMerchandisingRuleBuryAction(): CreateMerchandisingRuleBuryActionParam; - /** @returns {CreateMerchandisingRuleHideActionParam} */ - static createMerchandisingRuleHideAction(): CreateMerchandisingRuleHideActionParam; - /** @returns {CreateMerchandisingRulePinActionParam} */ - static createMerchandisingRulePinAction(): CreateMerchandisingRulePinActionParam; - /** @returns {CreateMerchandisingRuleQueryParam} */ - static createMerchandisingRuleQuery(): CreateMerchandisingRuleQueryParam; - /** @returns {CreateProductPriceFactoryBulkJobParam} */ - static createProductPriceFactoryBulkJob(): CreateProductPriceFactoryBulkJobParam; /** @returns {CreateSearchConfigurationParam} */ static createSearchConfiguration(): CreateSearchConfigurationParam; - /** @returns {CreateSearchRerankParam} */ - static createSearchRerank(): CreateSearchRerankParam; /** @returns {DeleteAppCategoryReturnConfigurationParam} */ static deleteAppCategoryReturnConfiguration(): DeleteAppCategoryReturnConfigurationParam; /** @returns {DeleteAutocompleteKeywordParam} */ @@ -669,24 +449,16 @@ declare class CatalogPlatformApplicationValidator { static deleteSearchConfiguration(): any; /** @returns {DeleteSearchKeywordsParam} */ static deleteSearchKeywords(): DeleteSearchKeywordsParam; - /** @returns {DeleteSearchRerankConfigurationParam} */ - static deleteSearchRerankConfiguration(): DeleteSearchRerankConfigurationParam; - /** @returns {EditAppPriceFactoryParam} */ - static editAppPriceFactory(): EditAppPriceFactoryParam; /** @returns {GetAllCollectionsParam} */ static getAllCollections(): GetAllCollectionsParam; /** @returns {GetAllSearchKeywordParam} */ - static getAllSearchKeyword(): GetAllSearchKeywordParam; + static getAllSearchKeyword(): any; /** @returns {GetAppCategoryReturnConfigParam} */ static getAppCategoryReturnConfig(): any; /** @returns {GetAppInventoryParam} */ static getAppInventory(): GetAppInventoryParam; /** @returns {GetAppLocationsParam} */ static getAppLocations(): GetAppLocationsParam; - /** @returns {GetAppPriceFactoriesParam} */ - static getAppPriceFactories(): GetAppPriceFactoriesParam; - /** @returns {GetAppPriceFactoryParam} */ - static getAppPriceFactory(): GetAppPriceFactoryParam; /** @returns {GetAppProductParam} */ static getAppProduct(): GetAppProductParam; /** @returns {GetAppProductsParam} */ @@ -703,14 +475,14 @@ declare class CatalogPlatformApplicationValidator { static getApplicationCategoryListing(): GetApplicationCategoryListingParam; /** @returns {GetApplicationDepartmentListingParam} */ static getApplicationDepartmentListing(): GetApplicationDepartmentListingParam; + /** @returns {GetApplicationFilterKeysParam} */ + static getApplicationFilterKeys(): GetApplicationFilterKeysParam; + /** @returns {GetApplicationFilterValuesParam} */ + static getApplicationFilterValues(): GetApplicationFilterValuesParam; /** @returns {GetAutocompleteConfigParam} */ - static getAutocompleteConfig(): GetAutocompleteConfigParam; + static getAutocompleteConfig(): any; /** @returns {GetAutocompleteKeywordDetailParam} */ static getAutocompleteKeywordDetail(): GetAutocompleteKeywordDetailParam; - /** @returns {GetAutocompletePreviewParam} */ - static getAutocompletePreview(): GetAutocompletePreviewParam; - /** @returns {GetAutocompleteSettingsParam} */ - static getAutocompleteSettings(): any; /** @returns {GetCatalogConfigurationParam} */ static getCatalogConfiguration(): any; /** @returns {GetCatalogInsightsParam} */ @@ -719,14 +491,14 @@ declare class CatalogPlatformApplicationValidator { static getCategories(): GetCategoriesParam; /** @returns {GetCollectionDetailParam} */ static getCollectionDetail(): GetCollectionDetailParam; + /** @returns {GetCollectionItemsParam} */ + static getCollectionItems(): GetCollectionItemsParam; /** @returns {GetConfigurationByTypeParam} */ static getConfigurationByType(): GetConfigurationByTypeParam; /** @returns {GetConfigurationMetadataParam} */ static getConfigurationMetadata(): GetConfigurationMetadataParam; /** @returns {GetConfigurationsParam} */ static getConfigurations(): any; - /** @returns {GetConfigurationsFilterMetadataParam} */ - static getConfigurationsFilterMetadata(): GetConfigurationsFilterMetadataParam; /** @returns {GetDepartmentsParam} */ static getDepartments(): any; /** @returns {GetDiscountedInventoryBySizeIdentifierParam} */ @@ -735,38 +507,14 @@ declare class CatalogPlatformApplicationValidator { static getGroupConfigurations(): GetGroupConfigurationsParam; /** @returns {GetListingConfigurationsParam} */ static getListingConfigurations(): GetListingConfigurationsParam; - /** @returns {GetLivePreviewParam} */ - static getLivePreview(): GetLivePreviewParam; - /** @returns {GetMerchandisingQueryParam} */ - static getMerchandisingQuery(): GetMerchandisingQueryParam; - /** @returns {GetMerchandisingRuleBoostActionParam} */ - static getMerchandisingRuleBoostAction(): GetMerchandisingRuleBoostActionParam; - /** @returns {GetMerchandisingRuleBuryActionParam} */ - static getMerchandisingRuleBuryAction(): GetMerchandisingRuleBuryActionParam; - /** @returns {GetMerchandisingRuleHideActionParam} */ - static getMerchandisingRuleHideAction(): GetMerchandisingRuleHideActionParam; - /** @returns {GetMerchandisingRulePinActionParam} */ - static getMerchandisingRulePinAction(): GetMerchandisingRulePinActionParam; - /** @returns {GetMerchandisingRulesParam} */ - static getMerchandisingRules(): GetMerchandisingRulesParam; /** @returns {GetProductDetailBySlugParam} */ static getProductDetailBySlug(): GetProductDetailBySlugParam; - /** @returns {GetProductsInPriceFactoryByZoneIdParam} */ - static getProductsInPriceFactoryByZoneId(): GetProductsInPriceFactoryByZoneIdParam; /** @returns {GetQueryFiltersParam} */ static getQueryFilters(): any; /** @returns {GetSearchConfigurationParam} */ static getSearchConfiguration(): any; /** @returns {GetSearchKeywordsParam} */ static getSearchKeywords(): GetSearchKeywordsParam; - /** @returns {GetSearchRerankParam} */ - static getSearchRerank(): any; - /** @returns {GetSearchRerankDetailParam} */ - static getSearchRerankDetail(): GetSearchRerankDetailParam; - /** @returns {PollProductPriceFactoryBulkJobParam} */ - static pollProductPriceFactoryBulkJob(): PollProductPriceFactoryBulkJobParam; - /** @returns {ProcessProductPriceFactoryBulkJobParam} */ - static processProductPriceFactoryBulkJob(): ProcessProductPriceFactoryBulkJobParam; /** @returns {UpdateAllowSingleParam} */ static updateAllowSingle(): UpdateAllowSingleParam; /** @returns {UpdateAppBrandParam} */ @@ -785,8 +533,6 @@ declare class CatalogPlatformApplicationValidator { static updateAppReturnConfiguration(): UpdateAppReturnConfigurationParam; /** @returns {UpdateAutocompleteKeywordParam} */ static updateAutocompleteKeyword(): UpdateAutocompleteKeywordParam; - /** @returns {UpdateAutocompleteSettingsParam} */ - static updateAutocompleteSettings(): UpdateAutocompleteSettingsParam; /** @returns {UpdateCollectionParam} */ static updateCollection(): UpdateCollectionParam; /** @returns {UpdateDefaultSortParam} */ @@ -795,61 +541,27 @@ declare class CatalogPlatformApplicationValidator { static updateGroupConfiguration(): UpdateGroupConfigurationParam; /** @returns {UpdateListingConfigurationParam} */ static updateListingConfiguration(): UpdateListingConfigurationParam; - /** @returns {UpdateMerchandisingRuleBoostActionParam} */ - static updateMerchandisingRuleBoostAction(): UpdateMerchandisingRuleBoostActionParam; - /** @returns {UpdateMerchandisingRuleBuryActionParam} */ - static updateMerchandisingRuleBuryAction(): UpdateMerchandisingRuleBuryActionParam; - /** @returns {UpdateMerchandisingRuleHideActionParam} */ - static updateMerchandisingRuleHideAction(): UpdateMerchandisingRuleHideActionParam; - /** @returns {UpdateMerchandisingRulePinActionParam} */ - static updateMerchandisingRulePinAction(): UpdateMerchandisingRulePinActionParam; - /** @returns {UpdateMerchandisingRuleQueryParam} */ - static updateMerchandisingRuleQuery(): UpdateMerchandisingRuleQueryParam; - /** @returns {UpdateProductPriceByZoneInPriceFactoryParam} */ - static updateProductPriceByZoneInPriceFactory(): UpdateProductPriceByZoneInPriceFactoryParam; /** @returns {UpdateSearchConfigurationParam} */ static updateSearchConfiguration(): UpdateSearchConfigurationParam; /** @returns {UpdateSearchKeywordsParam} */ static updateSearchKeywords(): UpdateSearchKeywordsParam; - /** @returns {UpdateSearchRerankConfigurationParam} */ - static updateSearchRerankConfiguration(): UpdateSearchRerankConfigurationParam; - /** @returns {ValidateProductPriceFactoryBulkJobParam} */ - static validateProductPriceFactoryBulkJob(): ValidateProductPriceFactoryBulkJobParam; } declare namespace CatalogPlatformApplicationValidator { - export { AddCollectionItemsParam, AddProductsInPriceFactoryByZoneIdParam, CreateAppCategoryReturnConfigurationParam, CreateAppPriceFactoryParam, CreateAppReturnConfigurationParam, CreateAutocompleteSettingsParam, CreateCollectionParam, CreateConfigurationByTypeParam, CreateConfigurationProductListingParam, CreateCustomAutocompleteRuleParam, CreateCustomKeywordParam, CreateGroupConfigurationParam, CreateListingConfigurationParam, CreateMerchandisingRuleBoostActionParam, CreateMerchandisingRuleBuryActionParam, CreateMerchandisingRuleHideActionParam, CreateMerchandisingRulePinActionParam, CreateMerchandisingRuleQueryParam, CreateProductPriceFactoryBulkJobParam, CreateSearchConfigurationParam, CreateSearchRerankParam, DeleteAppCategoryReturnConfigurationParam, DeleteAutocompleteKeywordParam, DeleteCollectionParam, DeleteGroupConfigurationParam, DeleteListingConfigurationParam, DeleteSearchConfigurationParam, DeleteSearchKeywordsParam, DeleteSearchRerankConfigurationParam, EditAppPriceFactoryParam, GetAllCollectionsParam, GetAllSearchKeywordParam, GetAppCategoryReturnConfigParam, GetAppInventoryParam, GetAppLocationsParam, GetAppPriceFactoriesParam, GetAppPriceFactoryParam, GetAppProductParam, GetAppProductsParam, GetAppReturnConfigurationParam, GetAppicationProductsParam, GetApplicationBrandListingParam, GetApplicationBrandsParam, GetApplicationCategoryListingParam, GetApplicationDepartmentListingParam, GetAutocompleteConfigParam, GetAutocompleteKeywordDetailParam, GetAutocompletePreviewParam, GetAutocompleteSettingsParam, GetCatalogConfigurationParam, GetCatalogInsightsParam, GetCategoriesParam, GetCollectionDetailParam, GetConfigurationByTypeParam, GetConfigurationMetadataParam, GetConfigurationsParam, GetConfigurationsFilterMetadataParam, GetDepartmentsParam, GetDiscountedInventoryBySizeIdentifierParam, GetGroupConfigurationsParam, GetListingConfigurationsParam, GetLivePreviewParam, GetMerchandisingQueryParam, GetMerchandisingRuleBoostActionParam, GetMerchandisingRuleBuryActionParam, GetMerchandisingRuleHideActionParam, GetMerchandisingRulePinActionParam, GetMerchandisingRulesParam, GetProductDetailBySlugParam, GetProductsInPriceFactoryByZoneIdParam, GetQueryFiltersParam, GetSearchConfigurationParam, GetSearchKeywordsParam, GetSearchRerankParam, GetSearchRerankDetailParam, PollProductPriceFactoryBulkJobParam, ProcessProductPriceFactoryBulkJobParam, UpdateAllowSingleParam, UpdateAppBrandParam, UpdateAppCategoryParam, UpdateAppCategoryReturnConfigurationParam, UpdateAppDepartmentParam, UpdateAppLocationParam, UpdateAppProductParam, UpdateAppReturnConfigurationParam, UpdateAutocompleteKeywordParam, UpdateAutocompleteSettingsParam, UpdateCollectionParam, UpdateDefaultSortParam, UpdateGroupConfigurationParam, UpdateListingConfigurationParam, UpdateMerchandisingRuleBoostActionParam, UpdateMerchandisingRuleBuryActionParam, UpdateMerchandisingRuleHideActionParam, UpdateMerchandisingRulePinActionParam, UpdateMerchandisingRuleQueryParam, UpdateProductPriceByZoneInPriceFactoryParam, UpdateSearchConfigurationParam, UpdateSearchKeywordsParam, UpdateSearchRerankConfigurationParam, ValidateProductPriceFactoryBulkJobParam }; + export { AddCollectionItemsParam, CreateAppCategoryReturnConfigurationParam, CreateAppReturnConfigurationParam, CreateCollectionParam, CreateConfigurationByTypeParam, CreateConfigurationProductListingParam, CreateCustomAutocompleteRuleParam, CreateCustomKeywordParam, CreateGroupConfigurationParam, CreateListingConfigurationParam, CreateSearchConfigurationParam, DeleteAppCategoryReturnConfigurationParam, DeleteAutocompleteKeywordParam, DeleteCollectionParam, DeleteGroupConfigurationParam, DeleteListingConfigurationParam, DeleteSearchConfigurationParam, DeleteSearchKeywordsParam, GetAllCollectionsParam, GetAllSearchKeywordParam, GetAppCategoryReturnConfigParam, GetAppInventoryParam, GetAppLocationsParam, GetAppProductParam, GetAppProductsParam, GetAppReturnConfigurationParam, GetAppicationProductsParam, GetApplicationBrandListingParam, GetApplicationBrandsParam, GetApplicationCategoryListingParam, GetApplicationDepartmentListingParam, GetApplicationFilterKeysParam, GetApplicationFilterValuesParam, GetAutocompleteConfigParam, GetAutocompleteKeywordDetailParam, GetCatalogConfigurationParam, GetCatalogInsightsParam, GetCategoriesParam, GetCollectionDetailParam, GetCollectionItemsParam, GetConfigurationByTypeParam, GetConfigurationMetadataParam, GetConfigurationsParam, GetDepartmentsParam, GetDiscountedInventoryBySizeIdentifierParam, GetGroupConfigurationsParam, GetListingConfigurationsParam, GetProductDetailBySlugParam, GetQueryFiltersParam, GetSearchConfigurationParam, GetSearchKeywordsParam, UpdateAllowSingleParam, UpdateAppBrandParam, UpdateAppCategoryParam, UpdateAppCategoryReturnConfigurationParam, UpdateAppDepartmentParam, UpdateAppLocationParam, UpdateAppProductParam, UpdateAppReturnConfigurationParam, UpdateAutocompleteKeywordParam, UpdateCollectionParam, UpdateDefaultSortParam, UpdateGroupConfigurationParam, UpdateListingConfigurationParam, UpdateSearchConfigurationParam, UpdateSearchKeywordsParam }; } type AddCollectionItemsParam = { /** * - A `id` is a unique identifier of a collection. */ id: string; - body: CatalogPlatformModel.CollectionItemUpdateSchema; -}; -type AddProductsInPriceFactoryByZoneIdParam = { - /** - * - An `id` is a unique identifier for a particular price factory. - */ - id: string; - /** - * - An `zone_id` is a unique identifier for a - * particular price factory zone. - */ - zoneId: string; - body: CatalogPlatformModel.CreateAppPriceFactoryProductRequest; + body: CatalogPlatformModel.CollectionItemUpdate; }; type CreateAppCategoryReturnConfigurationParam = { body: CatalogPlatformModel.BaseAppCategoryReturnConfig; }; -type CreateAppPriceFactoryParam = { - body: CatalogPlatformModel.CreateAppPriceFactoryRequest; -}; type CreateAppReturnConfigurationParam = { body: CatalogPlatformModel.CreateUpdateAppReturnConfig; }; -type CreateAutocompleteSettingsParam = { - body: CatalogPlatformModel.AutocompleteRequestSchema; -}; type CreateCollectionParam = { body: CatalogPlatformModel.CreateCollection; }; @@ -875,7 +587,7 @@ type CreateGroupConfigurationParam = { * particular group configuration type. */ configType: string; - body: CatalogPlatformModel.AppConfigurationCreateDetail; + body: CatalogPlatformModel.AppConfigurationDetail; }; type CreateListingConfigurationParam = { /** @@ -883,56 +595,11 @@ type CreateListingConfigurationParam = { * particular listing configuration type. */ configType: string; - body: CatalogPlatformModel.AppConfigurationsFilter; -}; -type CreateMerchandisingRuleBoostActionParam = { - /** - * - A `merchandising_rule_id` is a - * unique identifier for a particular merchandising rule. - */ - merchandisingRuleId: string; - body: CatalogPlatformModel.GetMerchandisingRuleBoostAction; -}; -type CreateMerchandisingRuleBuryActionParam = { - /** - * - A `merchandising_rule_id` is a - * unique identifier for a particular merchandising rule. - */ - merchandisingRuleId: string; - body: CatalogPlatformModel.GetMerchandisingRuleBuryAction; -}; -type CreateMerchandisingRuleHideActionParam = { - /** - * - A `merchandising_rule_id` is a - * unique identifier for a particular merchandising rule. - */ - merchandisingRuleId: string; - body: CatalogPlatformModel.HideRequest; -}; -type CreateMerchandisingRulePinActionParam = { - /** - * - A `merchandising_rule_id` is a - * unique identifier for a particular merchandising rule. - */ - merchandisingRuleId: string; - body: CatalogPlatformModel.PinRequest; -}; -type CreateMerchandisingRuleQueryParam = { - body: CatalogPlatformModel.MerchandisingRuleQueryPost; -}; -type CreateProductPriceFactoryBulkJobParam = { - /** - * - An `id` is a unique identifier for a particular price factory. - */ - id: string; - body: CatalogPlatformModel.CreateAppPriceFactoryProductBulkJobRequest; + body: CatalogPlatformModel.AppConfigurationsSort; }; type CreateSearchConfigurationParam = { body: CatalogPlatformModel.CreateSearchConfigurationRequest; }; -type CreateSearchRerankParam = { - body: CatalogPlatformModel.CreateSearchRerankRequest; -}; type DeleteAppCategoryReturnConfigurationParam = { body: CatalogPlatformModel.DeleteAppCategoryReturnConfig; }; @@ -980,20 +647,6 @@ type DeleteSearchKeywordsParam = { */ id: string; }; -type DeleteSearchRerankConfigurationParam = { - /** - * - An `id` is the identifier for a particular search - * rerank configuration. channel. - */ - id: string; -}; -type EditAppPriceFactoryParam = { - /** - * - An `id` is a unique identifier for a particular price factory. - */ - id: string; - body: CatalogPlatformModel.EditAppPriceFactoryRequest; -}; type GetAllCollectionsParam = { /** * - Get collection list filtered by q string, @@ -1011,7 +664,7 @@ type GetAllCollectionsParam = { * - Each response will contain next_id param, which * should be sent back to make pagination work. */ - tag?: string[]; + tags?: string[]; /** * - Get collections filtered by active status. */ @@ -1027,28 +680,6 @@ type GetAllCollectionsParam = { */ pageSize?: number; }; -type GetAllSearchKeywordParam = { - /** - * - The page number to navigate through the given - * set of results - */ - pageNo?: number; - /** - * - Number of items to retrieve in each page. - * Default is 12. - */ - pageSize?: number; - /** - * - Search query with words name.Use this parameter to - * search keywords by words. - */ - q?: string; - /** - * - Can query for keywords based on whether they - * are active or inactive. - */ - isActive?: boolean; -}; type GetAppInventoryParam = { /** * - The Item Id of the product. @@ -1088,7 +719,7 @@ type GetAppLocationsParam = { /** * - Helps to sort the location list on the basis of uid list. */ - uid?: string; + uid?: number[]; /** * - Query that is to be searched. */ @@ -1116,47 +747,12 @@ type GetAppLocationsParam = { * - Get locations filtered by store types. */ storeTypes?: string[]; - /** - * - Filter stores by company IDs available - * in the application. - */ - companyUids?: number[]; -}; -type GetAppPriceFactoriesParam = { - /** - * - Gets price factory filtered by active status. - */ - isActive?: boolean; - /** - * - Gets price factory filtered by factory_type_id. - */ - factoryTypeId?: string; - /** - * - Gets price factory filtered by pricezone code. - */ - code?: string; - /** - * - The page number to navigate through the given - * set of results. - */ - pageNo?: number; - /** - * - Number of items to retrieve in each page. - * Default is 12. - */ - pageSize?: number; -}; -type GetAppPriceFactoryParam = { - /** - * - An `id` is a unique identifier for a particular price factory. - */ - id: string; }; type GetAppProductParam = { /** * - Product id for a particular product. */ - itemId: number; + itemId: string; }; type GetAppProductsParam = { /** @@ -1252,7 +848,7 @@ type GetAppicationProductsParam = { /** * - Item Ids of product */ - itemIds?: string[]; + itemIds?: number[]; }; type GetApplicationBrandListingParam = { /** @@ -1295,9 +891,10 @@ type GetApplicationBrandsParam = { */ q?: string; /** - * - Helps to sort the brands list on the basis of uid list. + * - Helps to sort the brands list on the basis + * of uid list. */ - brandId?: number; + brandId?: number[]; }; type GetApplicationCategoryListingParam = { /** @@ -1338,7 +935,33 @@ type GetApplicationDepartmentListingParam = { */ q?: string; }; -type GetAutocompleteConfigParam = { +type GetApplicationFilterKeysParam = { + /** + * - The search filter parameters for collection items. + * All the parameter filtered from filter parameters will be passed in **c** + * parameter in this format. + * **?c=brand:in:voi-jeans|and:::category:nin:t-shirts|shirts** + */ + c?: string; +}; +type GetApplicationFilterValuesParam = { + /** + * - A `filter_key` is a filter key for a for which + * all the available filter values will returned. channel. + */ + filterKey: string; + /** + * - The search filter parameters for collection items. + * All the parameter filtered from filter parameters will be passed in **c** + * parameter in this format. + * **?c=brand:in:voi-jeans|and:::category:nin:t-shirts|shirts** + */ + c?: string; + /** + * - A `collection_id` is a unique identifier + * for a particular collection. channel. + */ + collectionId?: string; /** * - The page number to navigate through the given * set of results @@ -1346,19 +969,13 @@ type GetAutocompleteConfigParam = { pageNo?: number; /** * - Number of items to retrieve in each page. - * Default is 12. + * Default is 10. */ pageSize?: number; /** - * - Search query with words name.Use this parameter to - * search keywords by words. + * - Get Values filtered by q string */ q?: string; - /** - * - Can query for keywords based on whether they - * are active or inactive. - */ - isActive?: boolean; }; type GetAutocompleteKeywordDetailParam = { /** @@ -1367,32 +984,6 @@ type GetAutocompleteKeywordDetailParam = { */ id: string; }; -type GetAutocompletePreviewParam = { - /** - * - Get suggestions related to `q` string. - */ - q?: string; - /** - * - For getting related category suggestions. - */ - categorySuggestion?: number; - /** - * - For getting related brand suggestions. - */ - brandSuggestion?: number; - /** - * - For getting collection suggestions. - */ - collectionSuggestion?: number; - /** - * - For getting product suggestions. - */ - productSuggestion?: number; - /** - * - For getting query suggestions. - */ - querySuggestion?: number; -}; type GetCatalogInsightsParam = { /** * - Brand slug @@ -1416,6 +1007,27 @@ type GetCollectionDetailParam = { */ slug: string; }; +type GetCollectionItemsParam = { + /** + * - A `id` is a unique identifier of a collection. + */ + id: string; + /** + * - Each response will contain sort_on param, which + * should be sent back to make pagination work. + */ + sortOn?: string; + /** + * - Each response will contain next_id param, which + * should be sent back to make pagination work. + */ + pageId?: string; + /** + * - Number of items to retrieve in each page. + * Default is 12. + */ + pageSize?: number; +}; type GetConfigurationByTypeParam = { /** * - Type can be brands, categories etc. @@ -1433,12 +1045,19 @@ type GetConfigurationMetadataParam = { * `template_slug` string. This is for the details and comparision groups. */ templateSlug?: string; -}; -type GetConfigurationsFilterMetadataParam = { /** - * - Filter whose values needs to be fetched. + * - The page number to navigate through the given + * set of results. + */ + pageNo?: number; + /** + * - Number of items to retrieve in each page. + */ + pageSize?: number; + /** + * - Get configuration list filtered by `q` string. */ - filter: string; + q?: string; }; type GetDiscountedInventoryBySizeIdentifierParam = { /** @@ -1449,7 +1068,7 @@ type GetDiscountedInventoryBySizeIdentifierParam = { * - Size Identifier (Seller Identifier or * Primary Identifier) of which inventory is to get. */ - sizeIdentifier: number; + sizeIdentifier: string; /** * - The page number to navigate through the given * set of results @@ -1460,6 +1079,10 @@ type GetDiscountedInventoryBySizeIdentifierParam = { * Default is 12. */ pageSize?: number; + /** + * - Search with help of store code. + */ + q?: string; /** * - Search by store ids. */ @@ -1511,109 +1134,15 @@ type GetListingConfigurationsParam = { * - Get configuration list filtered by `search` string. */ search?: string; - /** - * - Only for categories config type, Get - * configuration list filtered by `uids`. - */ - uids?: number[]; -}; -type GetLivePreviewParam = { - /** - * - A `merchandising_rule_id` is a - * unique identifier for a particular merchandising rule. - */ - merchandisingRuleId: string; - /** - * - A sample query that can be used to get a - * live preview of the merchandising rule. - */ - searchKeyword?: string; -}; -type GetMerchandisingQueryParam = { - /** - * - A `merchandising_rule_id` is a - * unique identifier for a particular merchandising rule. - */ - merchandisingRuleId: string; -}; -type GetMerchandisingRuleBoostActionParam = { - /** - * - A `merchandising_rule_id` is a - * unique identifier for a particular merchandising rule. - */ - merchandisingRuleId: string; -}; -type GetMerchandisingRuleBuryActionParam = { - /** - * - A `merchandising_rule_id` is a - * unique identifier for a particular merchandising rule. - */ - merchandisingRuleId: string; -}; -type GetMerchandisingRuleHideActionParam = { - /** - * - A `merchandising_rule_id` is a - * unique identifier for a particular merchandising rule. - */ - merchandisingRuleId: string; -}; -type GetMerchandisingRulePinActionParam = { - /** - * - A `merchandising_rule_id` is a - * unique identifier for a particular merchandising rule. - */ - merchandisingRuleId: string; -}; -type GetMerchandisingRulesParam = { - /** - * - Each response will contain next_id param, which - * should be sent back to make pagination work. - */ - pageId?: string; - /** - * - Number of items to retrieve in each page. - * Default is 12. - */ - pageSize?: number; }; type GetProductDetailBySlugParam = { /** * - The unique identifier of a product. i.e; `slug` of - * a product or `uid` of a product. You can retrieve these from the APIs that - * list products like **v1.0/products/** + * a product. You can retrieve these from the APIs that list products like + * **v1.0/products/** */ slug: string; }; -type GetProductsInPriceFactoryByZoneIdParam = { - /** - * - An `id` is a unique identifier for a particular price factory. - */ - id: string; - /** - * - An `zone_id` is a unique identifier for a - * particular price factory zone. - */ - zoneId: string; - /** - * - Gets price factory filtered by item_id. - */ - itemId?: boolean; - /** - * - Gets price factory filtered by - * seller_identifier. - */ - sellerIdentifier?: string; - /** - * - The page number to navigate through the given - * set of results. - */ - pageNo?: number; - /** - * - Number of items to retrieve in each page. - * Default is 12. - */ - pageSize?: number; -}; type GetSearchKeywordsParam = { /** * - A `id` is a unique identifier for a particular @@ -1621,34 +1150,6 @@ type GetSearchKeywordsParam = { */ id: string; }; -type GetSearchRerankDetailParam = { - /** - * - An `id` is the identifier for a particular search - * rerank configuration. channel. - */ - id: string; -}; -type PollProductPriceFactoryBulkJobParam = { - /** - * - An `id` is a unique identifier for a particular price factory. - */ - id: string; - /** - * - A `job_id` is a unique identifier for a particular bulk job. - */ - jobId: string; -}; -type ProcessProductPriceFactoryBulkJobParam = { - /** - * - An `id` is a unique identifier for a particular price factory. - */ - id: string; - /** - * - A `job_id` is a unique identifier for a particular bulk job. - */ - jobId: string; - body: CatalogPlatformModel.CreateAppPriceFactoryProductBulkJobRequest; -}; type UpdateAllowSingleParam = { body: CatalogPlatformModel.AllowSingleRequest; }; @@ -1656,14 +1157,14 @@ type UpdateAppBrandParam = { /** * - Brand id for which the custom_json is associated. */ - brandUid: number; + brandUid: string; body: CatalogPlatformModel.ApplicationBrandJson; }; type UpdateAppCategoryParam = { /** * - Category id for which the custom_json is associated. */ - categoryUid: number; + categoryUid: string; body: CatalogPlatformModel.ApplicationCategoryJson; }; type UpdateAppCategoryReturnConfigurationParam = { @@ -1674,21 +1175,21 @@ type UpdateAppDepartmentParam = { * - Department id for which the custom_json is * associated. */ - departmentUid: number; + departmentUid: string; body: CatalogPlatformModel.ApplicationDepartmentJson; }; type UpdateAppLocationParam = { /** * - Store id for which the custom_json is associated. */ - storeUid: number; + storeUid: string; body: CatalogPlatformModel.ApplicationStoreJson; }; type UpdateAppProductParam = { /** * - Product id for which the custom_meta is associated. */ - itemId: number; + itemId: string; body: CatalogPlatformModel.ApplicationItemMeta; }; type UpdateAppReturnConfigurationParam = { @@ -1702,14 +1203,6 @@ type UpdateAutocompleteKeywordParam = { id: string; body: CatalogPlatformModel.CreateAutocompleteKeyword; }; -type UpdateAutocompleteSettingsParam = { - /** - * - An `id` is a unique identifier for a particular - * autocomplete settings config. - */ - id: string; - body: CatalogPlatformModel.AutocompleteRequestSchema; -}; type UpdateCollectionParam = { /** * - A `id` is a unique identifier of a collection. @@ -1744,63 +1237,7 @@ type UpdateListingConfigurationParam = { * particular configuration. */ configId: string; - body: CatalogPlatformModel.AppConfigurationsFilterResponse; -}; -type UpdateMerchandisingRuleBoostActionParam = { - /** - * - A `merchandising_rule_id` is a - * unique identifier for a particular merchandising rule. - */ - merchandisingRuleId: string; - body: CatalogPlatformModel.GetMerchandisingRuleBoostAction; -}; -type UpdateMerchandisingRuleBuryActionParam = { - /** - * - A `merchandising_rule_id` is a - * unique identifier for a particular merchandising rule. - */ - merchandisingRuleId: string; - body: CatalogPlatformModel.GetMerchandisingRuleBuryAction; -}; -type UpdateMerchandisingRuleHideActionParam = { - /** - * - A `merchandising_rule_id` is a - * unique identifier for a particular merchandising rule. - */ - merchandisingRuleId: string; - body: CatalogPlatformModel.HideRequest; -}; -type UpdateMerchandisingRulePinActionParam = { - /** - * - A `merchandising_rule_id` is a - * unique identifier for a particular merchandising rule. - */ - merchandisingRuleId: string; - body: CatalogPlatformModel.PinRequest; -}; -type UpdateMerchandisingRuleQueryParam = { - /** - * - A `merchandising_rule_id` is a - * unique identifier for a particular merchandising rule. - */ - merchandisingRuleId: string; - body: CatalogPlatformModel.MerchandisingRuleQueryPost; -}; -type UpdateProductPriceByZoneInPriceFactoryParam = { - /** - * - A `id` is a unique identifier for a particular price factory. - */ - id: string; - /** - * - A `item_id` is a unique identifier for a - * particular product. - */ - itemId: number; - /** - * - A `zone_id` is a unique identifier for a particular zone. - */ - zoneId: string; - body: CatalogPlatformModel.UpdateAppPriceFactoryProductRequest; + body: CatalogPlatformModel.AppConfigurationsSort; }; type UpdateSearchConfigurationParam = { body: CatalogPlatformModel.UpdateSearchConfigurationRequest; @@ -1813,33 +1250,14 @@ type UpdateSearchKeywordsParam = { id: string; body: CatalogPlatformModel.CreateSearchKeyword; }; -type UpdateSearchRerankConfigurationParam = { - /** - * - An `id` is the identifier for a particular search - * rerank configuration. channel. - */ - id: string; - body: CatalogPlatformModel.UpdateSearchRerankRequest; -}; -type ValidateProductPriceFactoryBulkJobParam = { - /** - * - An `id` is a unique identifier for a particular price factory. - */ - id: string; - /** - * - A `job_id` is a unique identifier for a particular bulk job. - */ - jobId: string; - body: CatalogPlatformModel.CreateAppPriceFactoryProductBulkJobRequest; -}; type DeleteSearchConfigurationParam = any; +type GetAllSearchKeywordParam = any; type GetAppCategoryReturnConfigParam = any; type GetAppReturnConfigurationParam = any; -type GetAutocompleteSettingsParam = any; +type GetAutocompleteConfigParam = any; type GetCatalogConfigurationParam = any; type GetConfigurationsParam = any; type GetDepartmentsParam = any; type GetQueryFiltersParam = any; type GetSearchConfigurationParam = any; -type GetSearchRerankParam = any; -import CatalogPlatformModel = require("sdk/output/javascript/code/sdk/platform/Catalog/CatalogPlatformModel"); +import CatalogPlatformModel = require("./CatalogPlatformModel"); diff --git a/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js b/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js index 4a61f9b01..fec79c69f 100644 --- a/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +++ b/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js @@ -5,15 +5,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel"); /** * @typedef AddCollectionItemsParam * @property {string} id - A `id` is a unique identifier of a collection. - * @property {CatalogPlatformModel.CollectionItemUpdateSchema} body - */ - -/** - * @typedef AddProductsInPriceFactoryByZoneIdParam - * @property {string} id - An `id` is a unique identifier for a particular price factory. - * @property {string} zoneId - An `zone_id` is a unique identifier for a - * particular price factory zone. - * @property {CatalogPlatformModel.CreateAppPriceFactoryProductRequest} body + * @property {CatalogPlatformModel.CollectionItemUpdate} body */ /** @@ -21,21 +13,11 @@ const CatalogPlatformModel = require("./CatalogPlatformModel"); * @property {CatalogPlatformModel.BaseAppCategoryReturnConfig} body */ -/** - * @typedef CreateAppPriceFactoryParam - * @property {CatalogPlatformModel.CreateAppPriceFactoryRequest} body - */ - /** * @typedef CreateAppReturnConfigurationParam * @property {CatalogPlatformModel.CreateUpdateAppReturnConfig} body */ -/** - * @typedef CreateAutocompleteSettingsParam - * @property {CatalogPlatformModel.AutocompleteRequestSchema} body - */ - /** * @typedef CreateCollectionParam * @property {CatalogPlatformModel.CreateCollection} body @@ -66,53 +48,14 @@ const CatalogPlatformModel = require("./CatalogPlatformModel"); * @typedef CreateGroupConfigurationParam * @property {string} configType - A `config_type` is a unique identifier for a * particular group configuration type. - * @property {CatalogPlatformModel.AppConfigurationCreateDetail} body + * @property {CatalogPlatformModel.AppConfigurationDetail} body */ /** * @typedef CreateListingConfigurationParam * @property {string} configType - A `config_type` is a unique identifier for a * particular listing configuration type. - * @property {CatalogPlatformModel.AppConfigurationsFilter} body - */ - -/** - * @typedef CreateMerchandisingRuleBoostActionParam - * @property {string} merchandisingRuleId - A `merchandising_rule_id` is a - * unique identifier for a particular merchandising rule. - * @property {CatalogPlatformModel.GetMerchandisingRuleBoostAction} body - */ - -/** - * @typedef CreateMerchandisingRuleBuryActionParam - * @property {string} merchandisingRuleId - A `merchandising_rule_id` is a - * unique identifier for a particular merchandising rule. - * @property {CatalogPlatformModel.GetMerchandisingRuleBuryAction} body - */ - -/** - * @typedef CreateMerchandisingRuleHideActionParam - * @property {string} merchandisingRuleId - A `merchandising_rule_id` is a - * unique identifier for a particular merchandising rule. - * @property {CatalogPlatformModel.HideRequest} body - */ - -/** - * @typedef CreateMerchandisingRulePinActionParam - * @property {string} merchandisingRuleId - A `merchandising_rule_id` is a - * unique identifier for a particular merchandising rule. - * @property {CatalogPlatformModel.PinRequest} body - */ - -/** - * @typedef CreateMerchandisingRuleQueryParam - * @property {CatalogPlatformModel.MerchandisingRuleQueryPost} body - */ - -/** - * @typedef CreateProductPriceFactoryBulkJobParam - * @property {string} id - An `id` is a unique identifier for a particular price factory. - * @property {CatalogPlatformModel.CreateAppPriceFactoryProductBulkJobRequest} body + * @property {CatalogPlatformModel.AppConfigurationsSort} body */ /** @@ -120,11 +63,6 @@ const CatalogPlatformModel = require("./CatalogPlatformModel"); * @property {CatalogPlatformModel.CreateSearchConfigurationRequest} body */ -/** - * @typedef CreateSearchRerankParam - * @property {CatalogPlatformModel.CreateSearchRerankRequest} body - */ - /** * @typedef DeleteAppCategoryReturnConfigurationParam * @property {CatalogPlatformModel.DeleteAppCategoryReturnConfig} body @@ -165,24 +103,12 @@ const CatalogPlatformModel = require("./CatalogPlatformModel"); * detail. Pass the `id` of the keywords which you want to delete. */ -/** - * @typedef DeleteSearchRerankConfigurationParam - * @property {string} id - An `id` is the identifier for a particular search - * rerank configuration. channel. - */ - -/** - * @typedef EditAppPriceFactoryParam - * @property {string} id - An `id` is a unique identifier for a particular price factory. - * @property {CatalogPlatformModel.EditAppPriceFactoryRequest} body - */ - /** * @typedef GetAllCollectionsParam * @property {string} [q] - Get collection list filtered by q string, * @property {string} [scheduleStatus] - Get collection list filtered by scheduled status, * @property {string} [type] - Type of the collections - * @property {string[]} [tag] - Each response will contain next_id param, which + * @property {string[]} [tags] - Each response will contain next_id param, which * should be sent back to make pagination work. * @property {boolean} [isActive] - Get collections filtered by active status. * @property {number} [pageNo] - The page number to navigate through the given @@ -191,17 +117,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel"); * Default is 12. */ -/** - * @typedef GetAllSearchKeywordParam - * @property {number} [pageNo] - The page number to navigate through the given - * set of results - * @property {number} [pageSize] - Number of items to retrieve in each page. - * Default is 12. - * @property {string} [q] - Search query with words name.Use this parameter to - * search keywords by words. - * @property {boolean} [isActive] - Can query for keywords based on whether they - * are active or inactive. - */ +/** @typedef GetAllSearchKeywordParam */ /** @typedef GetAppCategoryReturnConfigParam */ @@ -220,7 +136,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel"); * @typedef GetAppLocationsParam * @property {string} [storeType] - Helps to sort the location list on the basis * of location type. - * @property {string} [uid] - Helps to sort the location list on the basis of uid list. + * @property {number[]} [uid] - Helps to sort the location list on the basis of uid list. * @property {string} [q] - Query that is to be searched. * @property {string} [stage] - To filter companies on basis of verified or * unverified companies. @@ -230,29 +146,11 @@ const CatalogPlatformModel = require("./CatalogPlatformModel"); * Default is 20. * @property {string[]} [tags] - Get locations filtered by tags. * @property {string[]} [storeTypes] - Get locations filtered by store types. - * @property {number[]} [companyUids] - Filter stores by company IDs available - * in the application. - */ - -/** - * @typedef GetAppPriceFactoriesParam - * @property {boolean} [isActive] - Gets price factory filtered by active status. - * @property {string} [factoryTypeId] - Gets price factory filtered by factory_type_id. - * @property {string} [code] - Gets price factory filtered by pricezone code. - * @property {number} [pageNo] - The page number to navigate through the given - * set of results. - * @property {number} [pageSize] - Number of items to retrieve in each page. - * Default is 12. - */ - -/** - * @typedef GetAppPriceFactoryParam - * @property {string} id - An `id` is a unique identifier for a particular price factory. */ /** * @typedef GetAppProductParam - * @property {number} itemId - Product id for a particular product. + * @property {string} itemId - Product id for a particular product. */ /** @@ -297,7 +195,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel"); * page items. Default is 1. * @property {string} [pageType] - For pagination type should be cursor or * number. Default is cursor. - * @property {string[]} [itemIds] - Item Ids of product + * @property {number[]} [itemIds] - Item Ids of product */ /** @@ -322,7 +220,8 @@ const CatalogPlatformModel = require("./CatalogPlatformModel"); * Default is 12. * @property {string} [q] - Search query with brand name.Use this parameter to * search brands by brand name. - * @property {number} [brandId] - Helps to sort the brands list on the basis of uid list. + * @property {number[]} [brandId] - Helps to sort the brands list on the basis + * of uid list. */ /** @@ -348,35 +247,38 @@ const CatalogPlatformModel = require("./CatalogPlatformModel"); */ /** - * @typedef GetAutocompleteConfigParam + * @typedef GetApplicationFilterKeysParam + * @property {string} [c] - The search filter parameters for collection items. + * All the parameter filtered from filter parameters will be passed in **c** + * parameter in this format. + * **?c=brand:in:voi-jeans|and:::category:nin:t-shirts|shirts** + */ + +/** + * @typedef GetApplicationFilterValuesParam + * @property {string} filterKey - A `filter_key` is a filter key for a for which + * all the available filter values will returned. channel. + * @property {string} [c] - The search filter parameters for collection items. + * All the parameter filtered from filter parameters will be passed in **c** + * parameter in this format. + * **?c=brand:in:voi-jeans|and:::category:nin:t-shirts|shirts** + * @property {string} [collectionId] - A `collection_id` is a unique identifier + * for a particular collection. channel. * @property {number} [pageNo] - The page number to navigate through the given * set of results * @property {number} [pageSize] - Number of items to retrieve in each page. - * Default is 12. - * @property {string} [q] - Search query with words name.Use this parameter to - * search keywords by words. - * @property {boolean} [isActive] - Can query for keywords based on whether they - * are active or inactive. + * Default is 10. + * @property {string} [q] - Get Values filtered by q string */ +/** @typedef GetAutocompleteConfigParam */ + /** * @typedef GetAutocompleteKeywordDetailParam * @property {string} id - A `id` is a unique identifier for a particular * detail. Pass the `id` of the keywords which you want to retrieve. */ -/** - * @typedef GetAutocompletePreviewParam - * @property {string} [q] - Get suggestions related to `q` string. - * @property {number} [categorySuggestion] - For getting related category suggestions. - * @property {number} [brandSuggestion] - For getting related brand suggestions. - * @property {number} [collectionSuggestion] - For getting collection suggestions. - * @property {number} [productSuggestion] - For getting product suggestions. - * @property {number} [querySuggestion] - For getting query suggestions. - */ - -/** @typedef GetAutocompleteSettingsParam */ - /** @typedef GetCatalogConfigurationParam */ /** @@ -399,6 +301,17 @@ const CatalogPlatformModel = require("./CatalogPlatformModel"); * to retrieve. */ +/** + * @typedef GetCollectionItemsParam + * @property {string} id - A `id` is a unique identifier of a collection. + * @property {string} [sortOn] - Each response will contain sort_on param, which + * should be sent back to make pagination work. + * @property {string} [pageId] - Each response will contain next_id param, which + * should be sent back to make pagination work. + * @property {number} [pageSize] - Number of items to retrieve in each page. + * Default is 12. + */ + /** * @typedef GetConfigurationByTypeParam * @property {string} type - Type can be brands, categories etc. @@ -410,26 +323,26 @@ const CatalogPlatformModel = require("./CatalogPlatformModel"); * a specific type of configuration. * @property {string} [templateSlug] - Get configuration list filtered by * `template_slug` string. This is for the details and comparision groups. + * @property {number} [pageNo] - The page number to navigate through the given + * set of results. + * @property {number} [pageSize] - Number of items to retrieve in each page. + * @property {string} [q] - Get configuration list filtered by `q` string. */ /** @typedef GetConfigurationsParam */ -/** - * @typedef GetConfigurationsFilterMetadataParam - * @property {string} filter - Filter whose values needs to be fetched. - */ - /** @typedef GetDepartmentsParam */ /** * @typedef GetDiscountedInventoryBySizeIdentifierParam * @property {number} itemId - Item code of the product of which size is to be get. - * @property {number} sizeIdentifier - Size Identifier (Seller Identifier or + * @property {string} sizeIdentifier - Size Identifier (Seller Identifier or * Primary Identifier) of which inventory is to get. * @property {number} [pageNo] - The page number to navigate through the given * set of results * @property {number} [pageSize] - Number of items to retrieve in each page. * Default is 12. + * @property {string} [q] - Search with help of store code. * @property {number[]} [locationIds] - Search by store ids. */ @@ -455,75 +368,13 @@ const CatalogPlatformModel = require("./CatalogPlatformModel"); * @property {number} [pageSize] - Number of items to retrieve in each page. * Default is 12. * @property {string} [search] - Get configuration list filtered by `search` string. - * @property {number[]} [uids] - Only for categories config type, Get - * configuration list filtered by `uids`. - */ - -/** - * @typedef GetLivePreviewParam - * @property {string} merchandisingRuleId - A `merchandising_rule_id` is a - * unique identifier for a particular merchandising rule. - * @property {string} [searchKeyword] - A sample query that can be used to get a - * live preview of the merchandising rule. - */ - -/** - * @typedef GetMerchandisingQueryParam - * @property {string} merchandisingRuleId - A `merchandising_rule_id` is a - * unique identifier for a particular merchandising rule. - */ - -/** - * @typedef GetMerchandisingRuleBoostActionParam - * @property {string} merchandisingRuleId - A `merchandising_rule_id` is a - * unique identifier for a particular merchandising rule. - */ - -/** - * @typedef GetMerchandisingRuleBuryActionParam - * @property {string} merchandisingRuleId - A `merchandising_rule_id` is a - * unique identifier for a particular merchandising rule. - */ - -/** - * @typedef GetMerchandisingRuleHideActionParam - * @property {string} merchandisingRuleId - A `merchandising_rule_id` is a - * unique identifier for a particular merchandising rule. - */ - -/** - * @typedef GetMerchandisingRulePinActionParam - * @property {string} merchandisingRuleId - A `merchandising_rule_id` is a - * unique identifier for a particular merchandising rule. - */ - -/** - * @typedef GetMerchandisingRulesParam - * @property {string} [pageId] - Each response will contain next_id param, which - * should be sent back to make pagination work. - * @property {number} [pageSize] - Number of items to retrieve in each page. - * Default is 12. */ /** * @typedef GetProductDetailBySlugParam * @property {string} slug - The unique identifier of a product. i.e; `slug` of - * a product or `uid` of a product. You can retrieve these from the APIs that - * list products like **v1.0/products/** - */ - -/** - * @typedef GetProductsInPriceFactoryByZoneIdParam - * @property {string} id - An `id` is a unique identifier for a particular price factory. - * @property {string} zoneId - An `zone_id` is a unique identifier for a - * particular price factory zone. - * @property {boolean} [itemId] - Gets price factory filtered by item_id. - * @property {string} [sellerIdentifier] - Gets price factory filtered by - * seller_identifier. - * @property {number} [pageNo] - The page number to navigate through the given - * set of results. - * @property {number} [pageSize] - Number of items to retrieve in each page. - * Default is 12. + * a product. You can retrieve these from the APIs that list products like + * **v1.0/products/** */ /** @typedef GetQueryFiltersParam */ @@ -536,27 +387,6 @@ const CatalogPlatformModel = require("./CatalogPlatformModel"); * detail. Pass the `id` of the keywords which you want to retrieve. */ -/** @typedef GetSearchRerankParam */ - -/** - * @typedef GetSearchRerankDetailParam - * @property {string} id - An `id` is the identifier for a particular search - * rerank configuration. channel. - */ - -/** - * @typedef PollProductPriceFactoryBulkJobParam - * @property {string} id - An `id` is a unique identifier for a particular price factory. - * @property {string} jobId - A `job_id` is a unique identifier for a particular bulk job. - */ - -/** - * @typedef ProcessProductPriceFactoryBulkJobParam - * @property {string} id - An `id` is a unique identifier for a particular price factory. - * @property {string} jobId - A `job_id` is a unique identifier for a particular bulk job. - * @property {CatalogPlatformModel.CreateAppPriceFactoryProductBulkJobRequest} body - */ - /** * @typedef UpdateAllowSingleParam * @property {CatalogPlatformModel.AllowSingleRequest} body @@ -564,13 +394,13 @@ const CatalogPlatformModel = require("./CatalogPlatformModel"); /** * @typedef UpdateAppBrandParam - * @property {number} brandUid - Brand id for which the custom_json is associated. + * @property {string} brandUid - Brand id for which the custom_json is associated. * @property {CatalogPlatformModel.ApplicationBrandJson} body */ /** * @typedef UpdateAppCategoryParam - * @property {number} categoryUid - Category id for which the custom_json is associated. + * @property {string} categoryUid - Category id for which the custom_json is associated. * @property {CatalogPlatformModel.ApplicationCategoryJson} body */ @@ -581,20 +411,20 @@ const CatalogPlatformModel = require("./CatalogPlatformModel"); /** * @typedef UpdateAppDepartmentParam - * @property {number} departmentUid - Department id for which the custom_json is + * @property {string} departmentUid - Department id for which the custom_json is * associated. * @property {CatalogPlatformModel.ApplicationDepartmentJson} body */ /** * @typedef UpdateAppLocationParam - * @property {number} storeUid - Store id for which the custom_json is associated. + * @property {string} storeUid - Store id for which the custom_json is associated. * @property {CatalogPlatformModel.ApplicationStoreJson} body */ /** * @typedef UpdateAppProductParam - * @property {number} itemId - Product id for which the custom_meta is associated. + * @property {string} itemId - Product id for which the custom_meta is associated. * @property {CatalogPlatformModel.ApplicationItemMeta} body */ @@ -610,13 +440,6 @@ const CatalogPlatformModel = require("./CatalogPlatformModel"); * @property {CatalogPlatformModel.CreateAutocompleteKeyword} body */ -/** - * @typedef UpdateAutocompleteSettingsParam - * @property {string} id - An `id` is a unique identifier for a particular - * autocomplete settings config. - * @property {CatalogPlatformModel.AutocompleteRequestSchema} body - */ - /** * @typedef UpdateCollectionParam * @property {string} id - A `id` is a unique identifier of a collection. @@ -643,51 +466,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel"); * particular listing configuration type. * @property {string} configId - A `config_id` is a unique identifier of a * particular configuration. - * @property {CatalogPlatformModel.AppConfigurationsFilterResponse} body - */ - -/** - * @typedef UpdateMerchandisingRuleBoostActionParam - * @property {string} merchandisingRuleId - A `merchandising_rule_id` is a - * unique identifier for a particular merchandising rule. - * @property {CatalogPlatformModel.GetMerchandisingRuleBoostAction} body - */ - -/** - * @typedef UpdateMerchandisingRuleBuryActionParam - * @property {string} merchandisingRuleId - A `merchandising_rule_id` is a - * unique identifier for a particular merchandising rule. - * @property {CatalogPlatformModel.GetMerchandisingRuleBuryAction} body - */ - -/** - * @typedef UpdateMerchandisingRuleHideActionParam - * @property {string} merchandisingRuleId - A `merchandising_rule_id` is a - * unique identifier for a particular merchandising rule. - * @property {CatalogPlatformModel.HideRequest} body - */ - -/** - * @typedef UpdateMerchandisingRulePinActionParam - * @property {string} merchandisingRuleId - A `merchandising_rule_id` is a - * unique identifier for a particular merchandising rule. - * @property {CatalogPlatformModel.PinRequest} body - */ - -/** - * @typedef UpdateMerchandisingRuleQueryParam - * @property {string} merchandisingRuleId - A `merchandising_rule_id` is a - * unique identifier for a particular merchandising rule. - * @property {CatalogPlatformModel.MerchandisingRuleQueryPost} body - */ - -/** - * @typedef UpdateProductPriceByZoneInPriceFactoryParam - * @property {string} id - A `id` is a unique identifier for a particular price factory. - * @property {number} itemId - A `item_id` is a unique identifier for a - * particular product. - * @property {string} zoneId - A `zone_id` is a unique identifier for a particular zone. - * @property {CatalogPlatformModel.UpdateAppPriceFactoryProductRequest} body + * @property {CatalogPlatformModel.AppConfigurationsSort} body */ /** @@ -702,35 +481,12 @@ const CatalogPlatformModel = require("./CatalogPlatformModel"); * @property {CatalogPlatformModel.CreateSearchKeyword} body */ -/** - * @typedef UpdateSearchRerankConfigurationParam - * @property {string} id - An `id` is the identifier for a particular search - * rerank configuration. channel. - * @property {CatalogPlatformModel.UpdateSearchRerankRequest} body - */ - -/** - * @typedef ValidateProductPriceFactoryBulkJobParam - * @property {string} id - An `id` is a unique identifier for a particular price factory. - * @property {string} jobId - A `job_id` is a unique identifier for a particular bulk job. - * @property {CatalogPlatformModel.CreateAppPriceFactoryProductBulkJobRequest} body - */ - class CatalogPlatformApplicationValidator { /** @returns {AddCollectionItemsParam} */ static addCollectionItems() { return Joi.object({ id: Joi.string().allow("").required(), - body: CatalogPlatformModel.CollectionItemUpdateSchema().required(), - }).required(); - } - - /** @returns {AddProductsInPriceFactoryByZoneIdParam} */ - static addProductsInPriceFactoryByZoneId() { - return Joi.object({ - id: Joi.string().allow("").required(), - zoneId: Joi.string().allow("").required(), - body: CatalogPlatformModel.CreateAppPriceFactoryProductRequest().required(), + body: CatalogPlatformModel.CollectionItemUpdate().required(), }).required(); } @@ -741,13 +497,6 @@ class CatalogPlatformApplicationValidator { }).required(); } - /** @returns {CreateAppPriceFactoryParam} */ - static createAppPriceFactory() { - return Joi.object({ - body: CatalogPlatformModel.CreateAppPriceFactoryRequest().required(), - }).required(); - } - /** @returns {CreateAppReturnConfigurationParam} */ static createAppReturnConfiguration() { return Joi.object({ @@ -755,13 +504,6 @@ class CatalogPlatformApplicationValidator { }).required(); } - /** @returns {CreateAutocompleteSettingsParam} */ - static createAutocompleteSettings() { - return Joi.object({ - body: CatalogPlatformModel.AutocompleteRequestSchema().required(), - }).required(); - } - /** @returns {CreateCollectionParam} */ static createCollection() { return Joi.object({ @@ -802,7 +544,7 @@ class CatalogPlatformApplicationValidator { static createGroupConfiguration() { return Joi.object({ configType: Joi.string().allow("").required(), - body: CatalogPlatformModel.AppConfigurationCreateDetail().required(), + body: CatalogPlatformModel.AppConfigurationDetail().required(), }).required(); } @@ -810,54 +552,7 @@ class CatalogPlatformApplicationValidator { static createListingConfiguration() { return Joi.object({ configType: Joi.string().allow("").required(), - body: CatalogPlatformModel.AppConfigurationsFilter().required(), - }).required(); - } - - /** @returns {CreateMerchandisingRuleBoostActionParam} */ - static createMerchandisingRuleBoostAction() { - return Joi.object({ - merchandisingRuleId: Joi.string().allow("").required(), - body: CatalogPlatformModel.GetMerchandisingRuleBoostAction().required(), - }).required(); - } - - /** @returns {CreateMerchandisingRuleBuryActionParam} */ - static createMerchandisingRuleBuryAction() { - return Joi.object({ - merchandisingRuleId: Joi.string().allow("").required(), - body: CatalogPlatformModel.GetMerchandisingRuleBuryAction().required(), - }).required(); - } - - /** @returns {CreateMerchandisingRuleHideActionParam} */ - static createMerchandisingRuleHideAction() { - return Joi.object({ - merchandisingRuleId: Joi.string().allow("").required(), - body: CatalogPlatformModel.HideRequest().required(), - }).required(); - } - - /** @returns {CreateMerchandisingRulePinActionParam} */ - static createMerchandisingRulePinAction() { - return Joi.object({ - merchandisingRuleId: Joi.string().allow("").required(), - body: CatalogPlatformModel.PinRequest().required(), - }).required(); - } - - /** @returns {CreateMerchandisingRuleQueryParam} */ - static createMerchandisingRuleQuery() { - return Joi.object({ - body: CatalogPlatformModel.MerchandisingRuleQueryPost().required(), - }).required(); - } - - /** @returns {CreateProductPriceFactoryBulkJobParam} */ - static createProductPriceFactoryBulkJob() { - return Joi.object({ - id: Joi.string().allow("").required(), - body: CatalogPlatformModel.CreateAppPriceFactoryProductBulkJobRequest().required(), + body: CatalogPlatformModel.AppConfigurationsSort().required(), }).required(); } @@ -868,13 +563,6 @@ class CatalogPlatformApplicationValidator { }).required(); } - /** @returns {CreateSearchRerankParam} */ - static createSearchRerank() { - return Joi.object({ - body: CatalogPlatformModel.CreateSearchRerankRequest().required(), - }).required(); - } - /** @returns {DeleteAppCategoryReturnConfigurationParam} */ static deleteAppCategoryReturnConfiguration() { return Joi.object({ @@ -924,28 +612,13 @@ class CatalogPlatformApplicationValidator { }).required(); } - /** @returns {DeleteSearchRerankConfigurationParam} */ - static deleteSearchRerankConfiguration() { - return Joi.object({ - id: Joi.string().allow("").required(), - }).required(); - } - - /** @returns {EditAppPriceFactoryParam} */ - static editAppPriceFactory() { - return Joi.object({ - id: Joi.string().allow("").required(), - body: CatalogPlatformModel.EditAppPriceFactoryRequest().required(), - }).required(); - } - /** @returns {GetAllCollectionsParam} */ static getAllCollections() { return Joi.object({ q: Joi.string().allow(""), scheduleStatus: Joi.string().allow(""), type: Joi.string().allow(""), - tag: Joi.array().items(Joi.string().allow("")), + tags: Joi.array().items(Joi.string().allow("")), isActive: Joi.boolean(), pageNo: Joi.number(), pageSize: Joi.number(), @@ -954,12 +627,7 @@ class CatalogPlatformApplicationValidator { /** @returns {GetAllSearchKeywordParam} */ static getAllSearchKeyword() { - return Joi.object({ - pageNo: Joi.number(), - pageSize: Joi.number(), - q: Joi.string().allow(""), - isActive: Joi.boolean(), - }).required(); + return Joi.object({}).required(); } /** @returns {GetAppCategoryReturnConfigParam} */ @@ -984,39 +652,20 @@ class CatalogPlatformApplicationValidator { static getAppLocations() { return Joi.object({ storeType: Joi.string().allow(""), - uid: Joi.string().allow(""), + uid: Joi.array().items(Joi.number()), q: Joi.string().allow(""), stage: Joi.string().allow(""), pageNo: Joi.number(), pageSize: Joi.number(), tags: Joi.array().items(Joi.string().allow("")), storeTypes: Joi.array().items(Joi.string().allow("")), - companyUids: Joi.array().items(Joi.number()), - }).required(); - } - - /** @returns {GetAppPriceFactoriesParam} */ - static getAppPriceFactories() { - return Joi.object({ - isActive: Joi.boolean(), - factoryTypeId: Joi.string().allow(""), - code: Joi.string().allow(""), - pageNo: Joi.number(), - pageSize: Joi.number(), - }).required(); - } - - /** @returns {GetAppPriceFactoryParam} */ - static getAppPriceFactory() { - return Joi.object({ - id: Joi.string().allow("").required(), }).required(); } /** @returns {GetAppProductParam} */ static getAppProduct() { return Joi.object({ - itemId: Joi.number().required(), + itemId: Joi.string().allow("").required(), }).required(); } @@ -1052,7 +701,7 @@ class CatalogPlatformApplicationValidator { pageSize: Joi.number(), pageNo: Joi.number(), pageType: Joi.string().allow(""), - itemIds: Joi.array().items(Joi.string().allow("")), + itemIds: Joi.array().items(Joi.number()), }).required(); } @@ -1072,7 +721,7 @@ class CatalogPlatformApplicationValidator { pageNo: Joi.number(), pageSize: Joi.number(), q: Joi.string().allow(""), - brandId: Joi.number(), + brandId: Joi.array().items(Joi.number()), }).required(); } @@ -1095,16 +744,30 @@ class CatalogPlatformApplicationValidator { }).required(); } - /** @returns {GetAutocompleteConfigParam} */ - static getAutocompleteConfig() { + /** @returns {GetApplicationFilterKeysParam} */ + static getApplicationFilterKeys() { + return Joi.object({ + c: Joi.string().allow(""), + }).required(); + } + + /** @returns {GetApplicationFilterValuesParam} */ + static getApplicationFilterValues() { return Joi.object({ + filterKey: Joi.string().allow("").required(), + c: Joi.string().allow(""), + collectionId: Joi.string().allow(""), pageNo: Joi.number(), pageSize: Joi.number(), q: Joi.string().allow(""), - isActive: Joi.boolean(), }).required(); } + /** @returns {GetAutocompleteConfigParam} */ + static getAutocompleteConfig() { + return Joi.object({}).required(); + } + /** @returns {GetAutocompleteKeywordDetailParam} */ static getAutocompleteKeywordDetail() { return Joi.object({ @@ -1112,23 +775,6 @@ class CatalogPlatformApplicationValidator { }).required(); } - /** @returns {GetAutocompletePreviewParam} */ - static getAutocompletePreview() { - return Joi.object({ - q: Joi.string().allow(""), - categorySuggestion: Joi.number(), - brandSuggestion: Joi.number(), - collectionSuggestion: Joi.number(), - productSuggestion: Joi.number(), - querySuggestion: Joi.number(), - }).required(); - } - - /** @returns {GetAutocompleteSettingsParam} */ - static getAutocompleteSettings() { - return Joi.object({}).required(); - } - /** @returns {GetCatalogConfigurationParam} */ static getCatalogConfiguration() { return Joi.object({}).required(); @@ -1155,6 +801,16 @@ class CatalogPlatformApplicationValidator { }).required(); } + /** @returns {GetCollectionItemsParam} */ + static getCollectionItems() { + return Joi.object({ + id: Joi.string().allow("").required(), + sortOn: Joi.string().allow(""), + pageId: Joi.string().allow(""), + pageSize: Joi.number(), + }).required(); + } + /** @returns {GetConfigurationByTypeParam} */ static getConfigurationByType() { return Joi.object({ @@ -1167,6 +823,9 @@ class CatalogPlatformApplicationValidator { return Joi.object({ configType: Joi.string().allow("").required(), templateSlug: Joi.string().allow(""), + pageNo: Joi.number(), + pageSize: Joi.number(), + q: Joi.string().allow(""), }).required(); } @@ -1175,13 +834,6 @@ class CatalogPlatformApplicationValidator { return Joi.object({}).required(); } - /** @returns {GetConfigurationsFilterMetadataParam} */ - static getConfigurationsFilterMetadata() { - return Joi.object({ - filter: Joi.string().allow("").required(), - }).required(); - } - /** @returns {GetDepartmentsParam} */ static getDepartments() { return Joi.object({}).required(); @@ -1191,9 +843,10 @@ class CatalogPlatformApplicationValidator { static getDiscountedInventoryBySizeIdentifier() { return Joi.object({ itemId: Joi.number().required(), - sizeIdentifier: Joi.number().required(), + sizeIdentifier: Joi.string().allow("").required(), pageNo: Joi.number(), pageSize: Joi.number(), + q: Joi.string().allow(""), locationIds: Joi.array().items(Joi.number()), }).required(); } @@ -1216,58 +869,6 @@ class CatalogPlatformApplicationValidator { pageNo: Joi.number(), pageSize: Joi.number(), search: Joi.string().allow(""), - uids: Joi.array().items(Joi.number()), - }).required(); - } - - /** @returns {GetLivePreviewParam} */ - static getLivePreview() { - return Joi.object({ - merchandisingRuleId: Joi.string().allow("").required(), - searchKeyword: Joi.string().allow(""), - }).required(); - } - - /** @returns {GetMerchandisingQueryParam} */ - static getMerchandisingQuery() { - return Joi.object({ - merchandisingRuleId: Joi.string().allow("").required(), - }).required(); - } - - /** @returns {GetMerchandisingRuleBoostActionParam} */ - static getMerchandisingRuleBoostAction() { - return Joi.object({ - merchandisingRuleId: Joi.string().allow("").required(), - }).required(); - } - - /** @returns {GetMerchandisingRuleBuryActionParam} */ - static getMerchandisingRuleBuryAction() { - return Joi.object({ - merchandisingRuleId: Joi.string().allow("").required(), - }).required(); - } - - /** @returns {GetMerchandisingRuleHideActionParam} */ - static getMerchandisingRuleHideAction() { - return Joi.object({ - merchandisingRuleId: Joi.string().allow("").required(), - }).required(); - } - - /** @returns {GetMerchandisingRulePinActionParam} */ - static getMerchandisingRulePinAction() { - return Joi.object({ - merchandisingRuleId: Joi.string().allow("").required(), - }).required(); - } - - /** @returns {GetMerchandisingRulesParam} */ - static getMerchandisingRules() { - return Joi.object({ - pageId: Joi.string().allow(""), - pageSize: Joi.number(), }).required(); } @@ -1278,18 +879,6 @@ class CatalogPlatformApplicationValidator { }).required(); } - /** @returns {GetProductsInPriceFactoryByZoneIdParam} */ - static getProductsInPriceFactoryByZoneId() { - return Joi.object({ - id: Joi.string().allow("").required(), - zoneId: Joi.string().allow("").required(), - itemId: Joi.boolean(), - sellerIdentifier: Joi.string().allow(""), - pageNo: Joi.number(), - pageSize: Joi.number(), - }).required(); - } - /** @returns {GetQueryFiltersParam} */ static getQueryFilters() { return Joi.object({}).required(); @@ -1307,35 +896,6 @@ class CatalogPlatformApplicationValidator { }).required(); } - /** @returns {GetSearchRerankParam} */ - static getSearchRerank() { - return Joi.object({}).required(); - } - - /** @returns {GetSearchRerankDetailParam} */ - static getSearchRerankDetail() { - return Joi.object({ - id: Joi.string().allow("").required(), - }).required(); - } - - /** @returns {PollProductPriceFactoryBulkJobParam} */ - static pollProductPriceFactoryBulkJob() { - return Joi.object({ - id: Joi.string().allow("").required(), - jobId: Joi.string().allow("").required(), - }).required(); - } - - /** @returns {ProcessProductPriceFactoryBulkJobParam} */ - static processProductPriceFactoryBulkJob() { - return Joi.object({ - id: Joi.string().allow("").required(), - jobId: Joi.string().allow("").required(), - body: CatalogPlatformModel.CreateAppPriceFactoryProductBulkJobRequest().required(), - }).required(); - } - /** @returns {UpdateAllowSingleParam} */ static updateAllowSingle() { return Joi.object({ @@ -1346,7 +906,7 @@ class CatalogPlatformApplicationValidator { /** @returns {UpdateAppBrandParam} */ static updateAppBrand() { return Joi.object({ - brandUid: Joi.number().required(), + brandUid: Joi.string().allow("").required(), body: CatalogPlatformModel.ApplicationBrandJson().required(), }).required(); } @@ -1354,7 +914,7 @@ class CatalogPlatformApplicationValidator { /** @returns {UpdateAppCategoryParam} */ static updateAppCategory() { return Joi.object({ - categoryUid: Joi.number().required(), + categoryUid: Joi.string().allow("").required(), body: CatalogPlatformModel.ApplicationCategoryJson().required(), }).required(); } @@ -1369,7 +929,7 @@ class CatalogPlatformApplicationValidator { /** @returns {UpdateAppDepartmentParam} */ static updateAppDepartment() { return Joi.object({ - departmentUid: Joi.number().required(), + departmentUid: Joi.string().allow("").required(), body: CatalogPlatformModel.ApplicationDepartmentJson().required(), }).required(); } @@ -1377,7 +937,7 @@ class CatalogPlatformApplicationValidator { /** @returns {UpdateAppLocationParam} */ static updateAppLocation() { return Joi.object({ - storeUid: Joi.number().required(), + storeUid: Joi.string().allow("").required(), body: CatalogPlatformModel.ApplicationStoreJson().required(), }).required(); } @@ -1385,7 +945,7 @@ class CatalogPlatformApplicationValidator { /** @returns {UpdateAppProductParam} */ static updateAppProduct() { return Joi.object({ - itemId: Joi.number().required(), + itemId: Joi.string().allow("").required(), body: CatalogPlatformModel.ApplicationItemMeta().required(), }).required(); } @@ -1405,14 +965,6 @@ class CatalogPlatformApplicationValidator { }).required(); } - /** @returns {UpdateAutocompleteSettingsParam} */ - static updateAutocompleteSettings() { - return Joi.object({ - id: Joi.string().allow("").required(), - body: CatalogPlatformModel.AutocompleteRequestSchema().required(), - }).required(); - } - /** @returns {UpdateCollectionParam} */ static updateCollection() { return Joi.object({ @@ -1442,57 +994,7 @@ class CatalogPlatformApplicationValidator { return Joi.object({ configType: Joi.string().allow("").required(), configId: Joi.string().allow("").required(), - body: CatalogPlatformModel.AppConfigurationsFilterResponse().required(), - }).required(); - } - - /** @returns {UpdateMerchandisingRuleBoostActionParam} */ - static updateMerchandisingRuleBoostAction() { - return Joi.object({ - merchandisingRuleId: Joi.string().allow("").required(), - body: CatalogPlatformModel.GetMerchandisingRuleBoostAction().required(), - }).required(); - } - - /** @returns {UpdateMerchandisingRuleBuryActionParam} */ - static updateMerchandisingRuleBuryAction() { - return Joi.object({ - merchandisingRuleId: Joi.string().allow("").required(), - body: CatalogPlatformModel.GetMerchandisingRuleBuryAction().required(), - }).required(); - } - - /** @returns {UpdateMerchandisingRuleHideActionParam} */ - static updateMerchandisingRuleHideAction() { - return Joi.object({ - merchandisingRuleId: Joi.string().allow("").required(), - body: CatalogPlatformModel.HideRequest().required(), - }).required(); - } - - /** @returns {UpdateMerchandisingRulePinActionParam} */ - static updateMerchandisingRulePinAction() { - return Joi.object({ - merchandisingRuleId: Joi.string().allow("").required(), - body: CatalogPlatformModel.PinRequest().required(), - }).required(); - } - - /** @returns {UpdateMerchandisingRuleQueryParam} */ - static updateMerchandisingRuleQuery() { - return Joi.object({ - merchandisingRuleId: Joi.string().allow("").required(), - body: CatalogPlatformModel.MerchandisingRuleQueryPost().required(), - }).required(); - } - - /** @returns {UpdateProductPriceByZoneInPriceFactoryParam} */ - static updateProductPriceByZoneInPriceFactory() { - return Joi.object({ - id: Joi.string().allow("").required(), - itemId: Joi.number().required(), - zoneId: Joi.string().allow("").required(), - body: CatalogPlatformModel.UpdateAppPriceFactoryProductRequest().required(), + body: CatalogPlatformModel.AppConfigurationsSort().required(), }).required(); } @@ -1510,23 +1012,6 @@ class CatalogPlatformApplicationValidator { body: CatalogPlatformModel.CreateSearchKeyword().required(), }).required(); } - - /** @returns {UpdateSearchRerankConfigurationParam} */ - static updateSearchRerankConfiguration() { - return Joi.object({ - id: Joi.string().allow("").required(), - body: CatalogPlatformModel.UpdateSearchRerankRequest().required(), - }).required(); - } - - /** @returns {ValidateProductPriceFactoryBulkJobParam} */ - static validateProductPriceFactoryBulkJob() { - return Joi.object({ - id: Joi.string().allow("").required(), - jobId: Joi.string().allow("").required(), - body: CatalogPlatformModel.CreateAppPriceFactoryProductBulkJobRequest().required(), - }).required(); - } } module.exports = CatalogPlatformApplicationValidator; diff --git a/sdk/platform/Catalog/CatalogPlatformClient.d.ts b/sdk/platform/Catalog/CatalogPlatformClient.d.ts index fd880052c..66ef8153a 100644 --- a/sdk/platform/Catalog/CatalogPlatformClient.d.ts +++ b/sdk/platform/Catalog/CatalogPlatformClient.d.ts @@ -2,6 +2,16 @@ export = Catalog; declare class Catalog { constructor(config: any); config: any; + /** + * @param {CatalogPlatformValidator.AddInventoryParam} arg - Arg object + * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` + * @param {import("../PlatformAPIClient").Options} - Options + * @returns {Promise} - Success response + * @name addInventory + * @summary: Add Inventory for particular size and store. + * @description: This API allows add Inventory for particular size and store. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/addInventory/). + */ + addInventory({ itemId, size, body, requestHeaders }?: CatalogPlatformValidator.AddInventoryParam, { responseHeaders }?: object): Promise; /** * @param {CatalogPlatformValidator.AllSizesParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -36,22 +46,22 @@ declare class Catalog { * @param {CatalogPlatformValidator.CreateBulkInventoryJobParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response + * @returns {Promise} - Success response * @name createBulkInventoryJob * @summary: Create a Bulk Inventory upload Job. * @description: This API helps to create a bulk Inventory upload job. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createBulkInventoryJob/). */ - createBulkInventoryJob({ body, requestHeaders }?: CatalogPlatformValidator.CreateBulkInventoryJobParam, { responseHeaders }?: object): Promise; + createBulkInventoryJob({ body, requestHeaders }?: CatalogPlatformValidator.CreateBulkInventoryJobParam, { responseHeaders }?: object): Promise; /** * @param {CatalogPlatformValidator.CreateBulkProductUploadJobParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response + * @returns {Promise} - Success response * @name createBulkProductUploadJob * @summary: Create a Bulk product to upload job. * @description: This API helps to create a bulk products upload job. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createBulkProductUploadJob/). */ - createBulkProductUploadJob({ body, requestHeaders }?: CatalogPlatformValidator.CreateBulkProductUploadJobParam, { responseHeaders }?: object): Promise; + createBulkProductUploadJob({ body, requestHeaders }?: CatalogPlatformValidator.CreateBulkProductUploadJobParam, { responseHeaders }?: object): Promise; /** * @param {CatalogPlatformValidator.CreateCategoriesParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -97,14 +107,12 @@ declare class Catalog { * @param {CatalogPlatformValidator.CreateMarketplaceOptinParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * + * @returns {Promise} - Success response * @name createMarketplaceOptin - * @summary: Update marketplace optin - * @description: This API allows to create marketplace optin for a company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createMarketplaceOptin/). + * @summary: Create/Update opt-in infomation. + * @description: Use this API to create/update opt-in information for given platform. If successful, returns data in the response body as specified in `OptInPostResponseSchema` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createMarketplaceOptin/). */ - createMarketplaceOptin({ marketplace, body, requestHeaders }?: CatalogPlatformValidator.CreateMarketplaceOptinParam, { responseHeaders }?: object): Promise; + createMarketplaceOptin({ marketplace, body, requestHeaders }?: CatalogPlatformValidator.CreateMarketplaceOptinParam, { responseHeaders }?: object): Promise; /** * @param {CatalogPlatformValidator.CreateProductParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -141,14 +149,13 @@ declare class Catalog { * @param {CatalogPlatformValidator.CreateProductExportJobParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * + * @returns {Promise} - + * Success response * @name createProductExportJob * @summary: Create a product export job. * @description: This API helps to create a Inventory export job. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createProductExportJob/). */ - createProductExportJob({ body, requestHeaders }?: CatalogPlatformValidator.CreateProductExportJobParam, { responseHeaders }?: object): Promise; + createProductExportJob({ body, requestHeaders }?: CatalogPlatformValidator.CreateProductExportJobParam, { responseHeaders }?: object): Promise; /** * @param {CatalogPlatformValidator.CreateProductsInBulkParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -231,7 +238,7 @@ declare class Catalog { * @summary: Download Product Template View * @description: Allows you to download product template data - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/downloadInventoryTemplateView/). */ - downloadInventoryTemplateView({ type, requestHeaders }?: CatalogPlatformValidator.DownloadInventoryTemplateViewParam, { responseHeaders }?: object): Promise; + downloadInventoryTemplateView({ itemType, requestHeaders }?: CatalogPlatformValidator.DownloadInventoryTemplateViewParam, { responseHeaders }?: object): Promise; /** * @param {CatalogPlatformValidator.DownloadProductTemplateViewsParam} arg * - Arg object @@ -263,7 +270,7 @@ declare class Catalog { * @summary: Get List of different filters for inventory export * @description: This API allows get List of different filters like brand, store, and type for inventory export. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/exportInventoryConfig/). */ - exportInventoryConfig({ filter, requestHeaders }?: CatalogPlatformValidator.ExportInventoryConfigParam, { responseHeaders }?: object): Promise; + exportInventoryConfig({ filterType, requestHeaders }?: CatalogPlatformValidator.ExportInventoryConfigParam, { responseHeaders }?: object): Promise; /** * @param {CatalogPlatformValidator.GetAllProductHsnCodesParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -317,17 +324,6 @@ declare class Catalog { * @description: Get the Company metrics associated with the company ID passed. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getCompanyMetrics/). */ getCompanyMetrics({ requestHeaders }?: any, { responseHeaders }?: object): Promise; - /** - * @param {CatalogPlatformValidator.GetCompanyVerificationParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name getCompanyVerification - * @summary: Get company verification status - * @description: This API gets company verification details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getCompanyVerification/). - */ - getCompanyVerification({ q, pageNo, pageSize, requestHeaders }?: CatalogPlatformValidator.GetCompanyVerificationParam, { responseHeaders }?: object): Promise; /** * @param {CatalogPlatformValidator.GetDepartmentDataParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -409,25 +405,22 @@ declare class Catalog { * @param {CatalogPlatformValidator.GetInventoryExportParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response + * @returns {Promise} - Success response * @name getInventoryExport * @summary: Get Inventory export history. * @description: This API helps to get Inventory export history. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getInventoryExport/). */ - getInventoryExport({ requestHeaders }?: any, { responseHeaders }?: object): Promise; + getInventoryExport({ requestHeaders }?: any, { responseHeaders }?: object): Promise; /** - * @param {CatalogPlatformValidator.GetInventoryExportDetailParam} arg - Arg object + * @param {CatalogPlatformValidator.GetMarketplaceOptinDetailParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name getInventoryExportDetail - * @summary: Get Detail Product export detail. - * @description: This API helps to get detail of Product export. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getInventoryExportDetail/). + * @returns {Promise} - Success response + * @name getMarketplaceOptinDetail + * @summary: Get opt-in infomation. + * @description: Use this API to fetch opt-in information for all the platforms. If successful, returns a logs in the response body as specified in `GetOptInPlatformSchema` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getMarketplaceOptinDetail/). */ - getInventoryExportDetail({ jobId, requestHeaders }?: CatalogPlatformValidator.GetInventoryExportDetailParam, { responseHeaders }?: object): Promise; + getMarketplaceOptinDetail({ requestHeaders }?: any, { responseHeaders }?: object): Promise; /** * @param {CatalogPlatformValidator.GetMarketplacesParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -445,7 +438,7 @@ declare class Catalog { * @returns {Promise} - Success response * @name getOptimalLocations * @summary: Location Reassignment - * @description: Allows you to reassign locations - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getOptimalLocations/). + * @description: - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getOptimalLocations/). */ getOptimalLocations({ body, requestHeaders }?: CatalogPlatformValidator.GetOptimalLocationsParam, { responseHeaders }?: object): Promise; /** @@ -500,7 +493,7 @@ declare class Catalog { * @summary: List all Product Bundles * @description: Get all product bundles for a particular company - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductBundle/). */ - getProductBundle({ q, slug, pageNo, pageSize, requestHeaders }?: CatalogPlatformValidator.GetProductBundleParam, { responseHeaders }?: object): Promise; + getProductBundle({ q, slug, requestHeaders }?: CatalogPlatformValidator.GetProductBundleParam, { responseHeaders }?: object): Promise; /** * @param {CatalogPlatformValidator.GetProductBundleDetailParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -512,17 +505,6 @@ declare class Catalog { * @description: Get a particular Bundle details by its `id`. If successful, returns a Product bundle resource in the response body specified in `GetProductBundleResponse` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductBundleDetail/). */ getProductBundleDetail({ id, requestHeaders }?: CatalogPlatformValidator.GetProductBundleDetailParam, { responseHeaders }?: object): Promise; - /** - * @param {CatalogPlatformValidator.GetProductExportDetailParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name getProductExportDetail - * @summary: Get Detail Product export detail. - * @description: This API helps to get detail of Product export. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductExportDetail/). - */ - getProductExportDetail({ jobId, requestHeaders }?: CatalogPlatformValidator.GetProductExportDetailParam, { responseHeaders }?: object): Promise; /** * @param {CatalogPlatformValidator.GetProductExportJobsParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -538,12 +520,12 @@ declare class Catalog { * @param {CatalogPlatformValidator.GetProductSizeParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response + * @returns {Promise} - Success response * @name getProductSize * @summary: Get a single product size. * @description: This API helps to get data associated to a particular product size. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductSize/). */ - getProductSize({ itemId, requestHeaders }?: CatalogPlatformValidator.GetProductSizeParam, { responseHeaders }?: object): Promise; + getProductSize({ itemId, itemCode, brandUid, uid, requestHeaders }?: CatalogPlatformValidator.GetProductSizeParam, { responseHeaders }?: object): Promise; /** * @param {CatalogPlatformValidator.GetProductTagsParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -554,18 +536,6 @@ declare class Catalog { * @description: This API helps to get tags data associated to a particular company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductTags/). */ getProductTags({ requestHeaders }?: any, { responseHeaders }?: object): Promise; - /** - * @param {CatalogPlatformValidator.GetProductTemplateBySlugParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name getProductTemplateBySlug - * @summary: Update marketplace optin - * @description: This API retrieves template for a given slug. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductTemplateBySlug/). - */ - getProductTemplateBySlug({ slug, requestHeaders }?: CatalogPlatformValidator.GetProductTemplateBySlugParam, { responseHeaders }?: object): Promise; /** * @param {CatalogPlatformValidator.GetProductValidationParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -575,20 +545,7 @@ declare class Catalog { * @summary: Validate product/size data * @description: This API validates product data. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductValidation/). */ - getProductValidation({ type, slug, requestHeaders }?: CatalogPlatformValidator.GetProductValidationParam, { responseHeaders }?: object): Promise; - /** - * @param {CatalogPlatformValidator.GetProductVerificationDetailsParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name getProductVerificationDetails - * @summary: Get the verification detail of a product - * @description: Get the verification detail of a product - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductVerificationDetails/). - */ - getProductVerificationDetails({ itemId, requestHeaders }?: CatalogPlatformValidator.GetProductVerificationDetailsParam, { responseHeaders }?: object): Promise; + getProductValidation({ requestHeaders }?: any, { responseHeaders }?: object): Promise; /** * @param {CatalogPlatformValidator.GetProductsParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -639,7 +596,7 @@ declare class Catalog { * @summary: Get list of size guides * @description: This API allows to view all the size guides associated to the seller. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getSizeGuides/). */ - getSizeGuides({ active, q, brandId, tag, pageNo, pageSize, requestHeaders }?: CatalogPlatformValidator.GetSizeGuidesParam, { responseHeaders }?: object): Promise; + getSizeGuides({ active, q, tag, pageNo, pageSize, brandId, requestHeaders }?: CatalogPlatformValidator.GetSizeGuidesParam, { responseHeaders }?: object): Promise; /** * @param {CatalogPlatformValidator.GetStoreDetailParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -650,16 +607,6 @@ declare class Catalog { * @description: Get the details of the store associated with the company ID passed. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getStoreDetail/). */ getStoreDetail({ q, pageNo, pageSize, requestHeaders }?: CatalogPlatformValidator.GetStoreDetailParam, { responseHeaders }?: object): Promise; - /** - * @param {CatalogPlatformValidator.GetVariantTypesParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getVariantTypes - * @summary: Get variant type list - * @description: This API gets meta associated to products. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getVariantTypes/). - */ - getVariantTypes({ templateTag, requestHeaders }?: CatalogPlatformValidator.GetVariantTypesParam, { responseHeaders }?: object): Promise; /** * @param {CatalogPlatformValidator.GetVariantsOfProductsParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -679,7 +626,7 @@ declare class Catalog { * @summary: Get product categories list * @description: This API gets meta associated to product categories. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/listCategories/). */ - listCategories({ level, department, q, pageNo, pageSize, uids, requestHeaders }?: CatalogPlatformValidator.ListCategoriesParam, { responseHeaders }?: object): Promise; + listCategories({ level, department, q, pageNo, pageSize, uids, slug, requestHeaders }?: CatalogPlatformValidator.ListCategoriesParam, { responseHeaders }?: object): Promise; /** * @param {CatalogPlatformValidator.ListDepartmentsDataParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -689,7 +636,7 @@ declare class Catalog { * @summary: List all Departments. * @description: Allows you to list all departments, also can search using name and filter active and incative departments, and item type. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/listDepartmentsData/). */ - listDepartmentsData({ pageNo, itemType, pageSize, name, search, isActive, uids, requestHeaders, }?: CatalogPlatformValidator.ListDepartmentsDataParam, { responseHeaders }?: object): Promise; + listDepartmentsData({ pageNo, itemType, pageSize, name, search, isActive, slug, requestHeaders, }?: CatalogPlatformValidator.ListDepartmentsDataParam, { responseHeaders }?: object): Promise; /** * @param {CatalogPlatformValidator.ListHSNCodesParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -760,29 +707,6 @@ declare class Catalog { * @description: The filter type query parameter defines what type of data to return. The type of query returns the valid values for the same - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/listTemplateBrandTypeValues/). */ listTemplateBrandTypeValues({ filter, templateTag, itemType, requestHeaders }?: CatalogPlatformValidator.ListTemplateBrandTypeValuesParam, { responseHeaders }?: object): Promise; - /** - * @param {CatalogPlatformValidator.PatchInventoryExportDetailParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name patchInventoryExportDetail - * @summary: Edit notification_emails and status of export job. - * @description: This API helps to edit notification_emails and status of export job. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/patchInventoryExportDetail/). - */ - patchInventoryExportDetail({ jobId, body, requestHeaders }?: CatalogPlatformValidator.PatchInventoryExportDetailParam, { responseHeaders }?: object): Promise; - /** - * @param {CatalogPlatformValidator.PatchProductExportDetailParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name patchProductExportDetail - * @summary: Edit notification_emails and status of export job. - * @description: This API helps to edit notification_emails and status of export job. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/patchProductExportDetail/). - */ - patchProductExportDetail({ jobId, body, requestHeaders }?: CatalogPlatformValidator.PatchProductExportDetailParam, { responseHeaders }?: object): Promise; /** * @param {CatalogPlatformValidator.UpdateCategoryParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -807,12 +731,12 @@ declare class Catalog { * @param {CatalogPlatformValidator.UpdateHsnCodeParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response + * @returns {Promise} - Success response * @name updateHsnCode * @summary: Update Hsn Code. * @description: Update Hsn Code. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateHsnCode/). */ - updateHsnCode({ id, body, requestHeaders }?: CatalogPlatformValidator.UpdateHsnCodeParam, { responseHeaders }?: object): Promise; + updateHsnCode({ id, body, requestHeaders }?: CatalogPlatformValidator.UpdateHsnCodeParam, { responseHeaders }?: object): Promise; /** * @param {CatalogPlatformValidator.UpdateInventoriesParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -834,7 +758,7 @@ declare class Catalog { * @summary: Update marketplace optin * @description: This API allows to update marketplace optin for a company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateMarketplaceOptin/). */ - updateMarketplaceOptin({ marketplace, body, requestHeaders }?: CatalogPlatformValidator.UpdateMarketplaceOptinParam, { responseHeaders }?: object): Promise; + updateMarketplaceOptin({ marketplaceSlug, body, requestHeaders }?: CatalogPlatformValidator.UpdateMarketplaceOptinParam, { responseHeaders }?: object): Promise; /** * @param {CatalogPlatformValidator.UpdateProductBundleParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -871,12 +795,12 @@ declare class Catalog { * @param {CatalogPlatformValidator.UploadBulkProductsParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response + * @returns {Promise} - Success response * @name uploadBulkProducts * @summary: Create a Bulk product to upload job. * @description: This API helps to create a bulk products upload job. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/uploadBulkProducts/). */ - uploadBulkProducts({ department, productType, body, requestHeaders }?: CatalogPlatformValidator.UploadBulkProductsParam, { responseHeaders }?: object): Promise; + uploadBulkProducts({ department, productType, body, requestHeaders }?: CatalogPlatformValidator.UploadBulkProductsParam, { responseHeaders }?: object): Promise; /** * @param {CatalogPlatformValidator.ValidateProductTemplateParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -900,7 +824,7 @@ declare class Catalog { * @summary: Validate Product Template Schema * @description: Allows you to list all product templates validation values for all the fields present in the database - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/validateProductTemplateSchema/). */ - validateProductTemplateSchema({ itemType, bulk, requestHeaders }?: CatalogPlatformValidator.ValidateProductTemplateSchemaParam, { responseHeaders }?: object): Promise; + validateProductTemplateSchema({ itemType, requestHeaders }?: CatalogPlatformValidator.ValidateProductTemplateSchemaParam, { responseHeaders }?: object): Promise; } -import CatalogPlatformValidator = require("sdk/output/javascript/code/sdk/platform/Catalog/CatalogPlatformValidator"); -import CatalogPlatformModel = require("sdk/output/javascript/code/sdk/platform/Catalog/CatalogPlatformModel"); +import CatalogPlatformValidator = require("./CatalogPlatformValidator"); +import CatalogPlatformModel = require("./CatalogPlatformModel"); diff --git a/sdk/platform/Catalog/CatalogPlatformClient.js b/sdk/platform/Catalog/CatalogPlatformClient.js index ab9c71b2d..947497275 100644 --- a/sdk/platform/Catalog/CatalogPlatformClient.js +++ b/sdk/platform/Catalog/CatalogPlatformClient.js @@ -14,6 +14,89 @@ class Catalog { this.config = config; } + /** + * @param {CatalogPlatformValidator.AddInventoryParam} arg - Arg object + * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` + * @param {import("../PlatformAPIClient").Options} - Options + * @returns {Promise} - Success response + * @name addInventory + * @summary: Add Inventory for particular size and store. + * @description: This API allows add Inventory for particular size and store. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/addInventory/). + */ + async addInventory( + { itemId, size, body, requestHeaders } = { requestHeaders: {} }, + { responseHeaders } = { responseHeaders: false } + ) { + const { error } = CatalogPlatformValidator.addInventory().validate( + { + itemId, + size, + body, + }, + { abortEarly: false, allowUnknown: true } + ); + if (error) { + return Promise.reject(new FDKClientValidationError(error)); + } + + // Showing warrnings if extra unknown parameters are found + const { + error: warrning, + } = CatalogPlatformValidator.addInventory().validate( + { + itemId, + size, + body, + }, + { abortEarly: false, allowUnknown: false } + ); + if (warrning) { + Logger({ + level: "WARN", + message: `Parameter Validation warrnings for platform > Catalog > addInventory \n ${warrning}`, + }); + } + + const query_params = {}; + + const xHeaders = {}; + + const response = await PlatformAPIClient.execute( + this.config, + "post", + `/service/platform/catalog/v1.0/company/${this.config.companyId}/products/${itemId}/sizes/${size}`, + query_params, + body, + { ...xHeaders, ...requestHeaders }, + { responseHeaders } + ); + + let responseData = response; + if (responseHeaders) { + responseData = response[0]; + } + + const { + error: res_error, + } = CatalogPlatformModel.SuccessResponse().validate(responseData, { + abortEarly: false, + allowUnknown: true, + }); + + if (res_error) { + if (this.config.options.strictResponseCheck === true) { + return Promise.reject(new FDKResponseValidationError(res_error)); + } else { + Logger({ + level: "WARN", + message: `Response Validation Warnings for platform > Catalog > addInventory \n ${res_error}`, + }); + } + } + + return response; + } + /** * @param {CatalogPlatformValidator.AllSizesParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -135,7 +218,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "post", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/hsn/bulk`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/hsn/bulk/`, query_params, body, { ...xHeaders, ...requestHeaders }, @@ -216,7 +299,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "post", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/inventory/bulk/${batchId}`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/inventory/bulk/${batchId}/`, query_params, body, { ...xHeaders, ...requestHeaders }, @@ -253,7 +336,7 @@ class Catalog { * @param {CatalogPlatformValidator.CreateBulkInventoryJobParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response + * @returns {Promise} - Success response * @name createBulkInventoryJob * @summary: Create a Bulk Inventory upload Job. * @description: This API helps to create a bulk Inventory upload job. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createBulkInventoryJob/). @@ -311,7 +394,7 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.InventoryBulkResponse().validate(responseData, { + } = CatalogPlatformModel.BulkResponse().validate(responseData, { abortEarly: false, allowUnknown: true, }); @@ -334,7 +417,7 @@ class Catalog { * @param {CatalogPlatformValidator.CreateBulkProductUploadJobParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response + * @returns {Promise} - Success response * @name createBulkProductUploadJob * @summary: Create a Bulk product to upload job. * @description: This API helps to create a bulk products upload job. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createBulkProductUploadJob/). @@ -392,7 +475,7 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.ProductBulkResponse().validate(responseData, { + } = CatalogPlatformModel.BulkResponse().validate(responseData, { abortEarly: false, allowUnknown: true, }); @@ -457,7 +540,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "post", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/category`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/category/`, query_params, body, { ...xHeaders, ...requestHeaders }, @@ -537,7 +620,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "post", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/departments`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/departments/`, query_params, body, { ...xHeaders, ...requestHeaders }, @@ -616,7 +699,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "post", - `/service/platform/catalog/v2.0/company/${this.config.companyId}/inventory/download`, + `/service/platform/catalog/v2.0/company/${this.config.companyId}/inventory/download/`, query_params, body, { ...xHeaders, ...requestHeaders }, @@ -697,7 +780,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "post", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/inventory/download`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/inventory/download/`, query_params, body, { ...xHeaders, ...requestHeaders }, @@ -734,12 +817,10 @@ class Catalog { * @param {CatalogPlatformValidator.CreateMarketplaceOptinParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * + * @returns {Promise} - Success response * @name createMarketplaceOptin - * @summary: Update marketplace optin - * @description: This API allows to create marketplace optin for a company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createMarketplaceOptin/). + * @summary: Create/Update opt-in infomation. + * @description: Use this API to create/update opt-in information for given platform. If successful, returns data in the response body as specified in `OptInPostResponseSchema` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createMarketplaceOptin/). */ async createMarketplaceOptin( { marketplace, body, requestHeaders } = { requestHeaders: {} }, @@ -782,7 +863,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "post", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/channel/${marketplace}/opt-in`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/marketplaces/${marketplace}/optin/`, query_params, body, { ...xHeaders, ...requestHeaders }, @@ -796,10 +877,10 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.CreateMarketplaceOptinResponse().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); + } = CatalogPlatformModel.UpdatedResponse().validate(responseData, { + abortEarly: false, + allowUnknown: true, + }); if (res_error) { if (this.config.options.strictResponseCheck === true) { @@ -861,7 +942,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "post", - `/service/platform/catalog/v2.0/company/${this.config.companyId}/products`, + `/service/platform/catalog/v2.0/company/${this.config.companyId}/products/`, query_params, body, { ...xHeaders, ...requestHeaders }, @@ -942,7 +1023,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "post", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/products/assets/bulk`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/products/assets/bulk/`, query_params, body, { ...xHeaders, ...requestHeaders }, @@ -1023,7 +1104,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "post", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/product-bundle`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/product-bundle/`, query_params, body, { ...xHeaders, ...requestHeaders }, @@ -1060,9 +1141,8 @@ class Catalog { * @param {CatalogPlatformValidator.CreateProductExportJobParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * + * @returns {Promise} - + * Success response * @name createProductExportJob * @summary: Create a product export job. * @description: This API helps to create a Inventory export job. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createProductExportJob/). @@ -1106,7 +1186,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "post", - `/service/platform/catalog/v2.0/company/${this.config.companyId}/products/downloads`, + `/service/platform/catalog/v2.0/company/${this.config.companyId}/products/downloads/`, query_params, body, { ...xHeaders, ...requestHeaders }, @@ -1120,10 +1200,10 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.CreateProductDownloadsResponse().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); + } = CatalogPlatformModel.ProductDownloadsResponse().validate(responseData, { + abortEarly: false, + allowUnknown: true, + }); if (res_error) { if (this.config.options.strictResponseCheck === true) { @@ -1347,7 +1427,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "delete", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/inventory/bulk/${batchId}`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/inventory/bulk/${batchId}/`, query_params, undefined, { ...xHeaders, ...requestHeaders }, @@ -1426,7 +1506,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "delete", - `/service/platform/catalog/v2.0/company/${this.config.companyId}/products/${itemId}`, + `/service/platform/catalog/v2.0/company/${this.config.companyId}/products/${itemId}/`, query_params, undefined, { ...xHeaders, ...requestHeaders }, @@ -1715,14 +1795,14 @@ class Catalog { * @description: Allows you to download product template data - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/downloadInventoryTemplateView/). */ async downloadInventoryTemplateView( - { type, requestHeaders } = { requestHeaders: {} }, + { itemType, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, } = CatalogPlatformValidator.downloadInventoryTemplateView().validate( { - type, + itemType, }, { abortEarly: false, allowUnknown: true } ); @@ -1735,7 +1815,7 @@ class Catalog { error: warrning, } = CatalogPlatformValidator.downloadInventoryTemplateView().validate( { - type, + itemType, }, { abortEarly: false, allowUnknown: false } ); @@ -1747,14 +1827,14 @@ class Catalog { } const query_params = {}; - query_params["type"] = type; + query_params["item_type"] = itemType; const xHeaders = {}; const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/inventory/templates/download`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/inventory/templates/download/`, query_params, undefined, { ...xHeaders, ...requestHeaders }, @@ -1840,7 +1920,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/products/templates/${slug}/download`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/products/templates/${slug}/download/`, query_params, undefined, { ...xHeaders, ...requestHeaders }, @@ -1916,7 +1996,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "put", - `/service/platform/catalog/v2.0/company/${this.config.companyId}/products/${itemId}`, + `/service/platform/catalog/v2.0/company/${this.config.companyId}/products/${itemId}/`, query_params, body, { ...xHeaders, ...requestHeaders }, @@ -1959,12 +2039,12 @@ class Catalog { * @description: This API allows get List of different filters like brand, store, and type for inventory export. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/exportInventoryConfig/). */ async exportInventoryConfig( - { filter, requestHeaders } = { requestHeaders: {} }, + { filterType, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error } = CatalogPlatformValidator.exportInventoryConfig().validate( { - filter, + filterType, }, { abortEarly: false, allowUnknown: true } ); @@ -1977,7 +2057,7 @@ class Catalog { error: warrning, } = CatalogPlatformValidator.exportInventoryConfig().validate( { - filter, + filterType, }, { abortEarly: false, allowUnknown: false } ); @@ -1989,14 +2069,14 @@ class Catalog { } const query_params = {}; - query_params["filter"] = filter; + query_params["filter_type"] = filterType; const xHeaders = {}; const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/inventory/download/configuration`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/inventory/download/configuration/`, query_params, undefined, { ...xHeaders, ...requestHeaders }, @@ -2087,7 +2167,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/catalog/v2.0/company/${this.config.companyId}/hsn`, + `/service/platform/catalog/v2.0/company/${this.config.companyId}/hsn/`, query_params, undefined, { ...xHeaders, ...requestHeaders }, @@ -2166,7 +2246,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/category/${uid}`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/category/${uid}/`, query_params, undefined, { ...xHeaders, ...requestHeaders }, @@ -2261,7 +2341,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/marketplaces/company-brand-details`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/marketplaces/company-brand-details/`, query_params, undefined, { ...xHeaders, ...requestHeaders }, @@ -2336,7 +2416,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/marketplaces/company-details`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/marketplaces/company-details/`, query_params, undefined, { ...xHeaders, ...requestHeaders }, @@ -2411,7 +2491,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/marketplaces/company-metrics`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/marketplaces/company-metrics/`, query_params, undefined, { ...xHeaders, ...requestHeaders }, @@ -2444,95 +2524,6 @@ class Catalog { return response; } - /** - * @param {CatalogPlatformValidator.GetCompanyVerificationParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name getCompanyVerification - * @summary: Get company verification status - * @description: This API gets company verification details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getCompanyVerification/). - */ - async getCompanyVerification( - { q, pageNo, pageSize, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = CatalogPlatformValidator.getCompanyVerification().validate( - { - q, - pageNo, - pageSize, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = CatalogPlatformValidator.getCompanyVerification().validate( - { - q, - pageNo, - pageSize, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > getCompanyVerification \n ${warrning}`, - }); - } - - const query_params = {}; - query_params["q"] = q; - query_params["page_no"] = pageNo; - query_params["page_size"] = pageSize; - - const xHeaders = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/verification`, - query_params, - undefined, - { ...xHeaders, ...requestHeaders }, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = CatalogPlatformModel.CompanyVerificationResponse().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Catalog > getCompanyVerification \n ${res_error}`, - }); - } - } - - return response; - } - /** * @param {CatalogPlatformValidator.GetDepartmentDataParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -2579,7 +2570,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/departments/${uid}`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/departments/${uid}/`, query_params, undefined, { ...xHeaders, ...requestHeaders }, @@ -2735,7 +2726,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/hsn/${id}`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/hsn/${id}/`, query_params, undefined, { ...xHeaders, ...requestHeaders }, @@ -3173,8 +3164,7 @@ class Catalog { * @param {CatalogPlatformValidator.GetInventoryExportParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response + * @returns {Promise} - Success response * @name getInventoryExport * @summary: Get Inventory export history. * @description: This API helps to get Inventory export history. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getInventoryExport/). @@ -3212,7 +3202,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/inventory/download`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/inventory/download/`, query_params, undefined, { ...xHeaders, ...requestHeaders }, @@ -3226,10 +3216,10 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.InventoryExportJobResponse().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); + } = CatalogPlatformModel.InventoryExportJob().validate(responseData, { + abortEarly: false, + allowUnknown: true, + }); if (res_error) { if (this.config.options.strictResponseCheck === true) { @@ -3246,26 +3236,22 @@ class Catalog { } /** - * @param {CatalogPlatformValidator.GetInventoryExportDetailParam} arg - Arg object + * @param {CatalogPlatformValidator.GetMarketplaceOptinDetailParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name getInventoryExportDetail - * @summary: Get Detail Product export detail. - * @description: This API helps to get detail of Product export. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getInventoryExportDetail/). + * @returns {Promise} - Success response + * @name getMarketplaceOptinDetail + * @summary: Get opt-in infomation. + * @description: Use this API to fetch opt-in information for all the platforms. If successful, returns a logs in the response body as specified in `GetOptInPlatformSchema` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getMarketplaceOptinDetail/). */ - async getInventoryExportDetail( - { jobId, requestHeaders } = { requestHeaders: {} }, + async getMarketplaceOptinDetail( + { requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = CatalogPlatformValidator.getInventoryExportDetail().validate( - { - jobId, - }, + } = CatalogPlatformValidator.getMarketplaceOptinDetail().validate( + {}, { abortEarly: false, allowUnknown: true } ); if (error) { @@ -3275,16 +3261,14 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformValidator.getInventoryExportDetail().validate( - { - jobId, - }, + } = CatalogPlatformValidator.getMarketplaceOptinDetail().validate( + {}, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > getInventoryExportDetail \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > getMarketplaceOptinDetail \n ${warrning}`, }); } @@ -3295,7 +3279,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/catalog/v2.0/company/${this.config.companyId}/inventory/download/${jobId}`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/marketplaces/`, query_params, undefined, { ...xHeaders, ...requestHeaders }, @@ -3309,10 +3293,10 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.EditInventoryDownloadsResponse().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); + } = CatalogPlatformModel.GetOptInPlatform().validate(responseData, { + abortEarly: false, + allowUnknown: true, + }); if (res_error) { if (this.config.options.strictResponseCheck === true) { @@ -3320,7 +3304,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > getInventoryExportDetail \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > getMarketplaceOptinDetail \n ${res_error}`, }); } } @@ -3410,7 +3394,7 @@ class Catalog { * @returns {Promise} - Success response * @name getOptimalLocations * @summary: Location Reassignment - * @description: Allows you to reassign locations - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getOptimalLocations/). + * @description: - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getOptimalLocations/). */ async getOptimalLocations( { body, requestHeaders } = { requestHeaders: {} }, @@ -3449,7 +3433,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "post", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/location/reassign`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/location/reassign/`, query_params, body, { ...xHeaders, ...requestHeaders }, @@ -3532,7 +3516,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/catalog/v2.0/company/${this.config.companyId}/products/${itemId}`, + `/service/platform/catalog/v2.0/company/${this.config.companyId}/products/${itemId}/`, query_params, undefined, { ...xHeaders, ...requestHeaders }, @@ -3617,7 +3601,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/products/assets/bulk`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/products/assets/bulk/`, query_params, undefined, { ...xHeaders, ...requestHeaders }, @@ -3701,7 +3685,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/product-attributes`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/product-attributes/`, query_params, undefined, { ...xHeaders, ...requestHeaders }, @@ -3834,15 +3818,13 @@ class Catalog { * @description: Get all product bundles for a particular company - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductBundle/). */ async getProductBundle( - { q, slug, pageNo, pageSize, requestHeaders } = { requestHeaders: {} }, + { q, slug, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error } = CatalogPlatformValidator.getProductBundle().validate( { q, slug, - pageNo, - pageSize, }, { abortEarly: false, allowUnknown: true } ); @@ -3857,8 +3839,6 @@ class Catalog { { q, slug, - pageNo, - pageSize, }, { abortEarly: false, allowUnknown: false } ); @@ -3872,15 +3852,13 @@ class Catalog { const query_params = {}; query_params["q"] = q; query_params["slug"] = slug; - query_params["page_no"] = pageNo; - query_params["page_size"] = pageSize; const xHeaders = {}; const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/product-bundle`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/product-bundle/`, query_params, undefined, { ...xHeaders, ...requestHeaders }, @@ -3962,7 +3940,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/product-bundle/${id}`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/product-bundle/${id}/`, query_params, undefined, { ...xHeaders, ...requestHeaders }, @@ -3996,24 +3974,25 @@ class Catalog { } /** - * @param {CatalogPlatformValidator.GetProductExportDetailParam} arg - Arg object + * @param {CatalogPlatformValidator.GetProductExportJobsParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - + * @returns {Promise} - * Success response - * @name getProductExportDetail - * @summary: Get Detail Product export detail. - * @description: This API helps to get detail of Product export. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductExportDetail/). + * @name getProductExportJobs + * @summary: Allows you to list all product templates export list details + * @description: Can view details including trigger data, task id , etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductExportJobs/). */ - async getProductExportDetail( - { jobId, requestHeaders } = { requestHeaders: {} }, + async getProductExportJobs( + { status, fromDate, toDate, q, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { - const { - error, - } = CatalogPlatformValidator.getProductExportDetail().validate( + const { error } = CatalogPlatformValidator.getProductExportJobs().validate( { - jobId, + status, + fromDate, + toDate, + q, }, { abortEarly: false, allowUnknown: true } ); @@ -4024,27 +4003,34 @@ class Catalog { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = CatalogPlatformValidator.getProductExportDetail().validate( + } = CatalogPlatformValidator.getProductExportJobs().validate( { - jobId, + status, + fromDate, + toDate, + q, }, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > getProductExportDetail \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Catalog > getProductExportJobs \n ${warrning}`, }); } const query_params = {}; + query_params["status"] = status; + query_params["from_date"] = fromDate; + query_params["to_date"] = toDate; + query_params["q"] = q; const xHeaders = {}; const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/catalog/v2.0/company/${this.config.companyId}/products/downloads/${jobId}`, + `/service/platform/catalog/v2.0/company/${this.config.companyId}/products/downloads/`, query_params, undefined, { ...xHeaders, ...requestHeaders }, @@ -4058,10 +4044,10 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.GetProductDownloadsResponse().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); + } = CatalogPlatformModel.ProductDownloadsResponse().validate(responseData, { + abortEarly: false, + allowUnknown: true, + }); if (res_error) { if (this.config.options.strictResponseCheck === true) { @@ -4069,7 +4055,7 @@ class Catalog { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Catalog > getProductExportDetail \n ${res_error}`, + message: `Response Validation Warnings for platform > Catalog > getProductExportJobs \n ${res_error}`, }); } } @@ -4078,111 +4064,26 @@ class Catalog { } /** - * @param {CatalogPlatformValidator.GetProductExportJobsParam} arg - Arg object + * @param {CatalogPlatformValidator.GetProductSizeParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name getProductExportJobs - * @summary: Allows you to list all product templates export list details - * @description: Can view details including trigger data, task id , etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductExportJobs/). + * @returns {Promise} - Success response + * @name getProductSize + * @summary: Get a single product size. + * @description: This API helps to get data associated to a particular product size. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductSize/). */ - async getProductExportJobs( - { status, fromDate, toDate, q, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { error } = CatalogPlatformValidator.getProductExportJobs().validate( - { - status, - fromDate, - toDate, - q, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = CatalogPlatformValidator.getProductExportJobs().validate( - { - status, - fromDate, - toDate, - q, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > getProductExportJobs \n ${warrning}`, - }); - } - - const query_params = {}; - query_params["status"] = status; - query_params["from_date"] = fromDate; - query_params["to_date"] = toDate; - query_params["q"] = q; - - const xHeaders = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/catalog/v2.0/company/${this.config.companyId}/products/downloads`, - query_params, - undefined, - { ...xHeaders, ...requestHeaders }, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = CatalogPlatformModel.ProductDownloadsResponse().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Catalog > getProductExportJobs \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {CatalogPlatformValidator.GetProductSizeParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getProductSize - * @summary: Get a single product size. - * @description: This API helps to get data associated to a particular product size. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductSize/). - */ - async getProductSize( - { itemId, requestHeaders } = { requestHeaders: {} }, + async getProductSize( + { itemId, itemCode, brandUid, uid, requestHeaders } = { + requestHeaders: {}, + }, { responseHeaders } = { responseHeaders: false } ) { const { error } = CatalogPlatformValidator.getProductSize().validate( { itemId, + itemCode, + brandUid, + uid, }, { abortEarly: false, allowUnknown: true } ); @@ -4196,6 +4097,9 @@ class Catalog { } = CatalogPlatformValidator.getProductSize().validate( { itemId, + itemCode, + brandUid, + uid, }, { abortEarly: false, allowUnknown: false } ); @@ -4207,13 +4111,16 @@ class Catalog { } const query_params = {}; + query_params["item_code"] = itemCode; + query_params["brand_uid"] = brandUid; + query_params["uid"] = uid; const xHeaders = {}; const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/products/${itemId}/sizes`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/products/${itemId}/sizes/`, query_params, undefined, { ...xHeaders, ...requestHeaders }, @@ -4227,7 +4134,7 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.Product().validate(responseData, { + } = CatalogPlatformModel.ProductListingResponse().validate(responseData, { abortEarly: false, allowUnknown: true, }); @@ -4321,89 +4228,6 @@ class Catalog { return response; } - /** - * @param {CatalogPlatformValidator.GetProductTemplateBySlugParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name getProductTemplateBySlug - * @summary: Update marketplace optin - * @description: This API retrieves template for a given slug. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductTemplateBySlug/). - */ - async getProductTemplateBySlug( - { slug, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = CatalogPlatformValidator.getProductTemplateBySlug().validate( - { - slug, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = CatalogPlatformValidator.getProductTemplateBySlug().validate( - { - slug, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > getProductTemplateBySlug \n ${warrning}`, - }); - } - - const query_params = {}; - - const xHeaders = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/products/templates/${slug}`, - query_params, - undefined, - { ...xHeaders, ...requestHeaders }, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = CatalogPlatformModel.GetProductTemplateSlugResponse().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Catalog > getProductTemplateBySlug \n ${res_error}`, - }); - } - } - - return response; - } - /** * @param {CatalogPlatformValidator.GetProductValidationParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -4414,14 +4238,11 @@ class Catalog { * @description: This API validates product data. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductValidation/). */ async getProductValidation( - { type, slug, requestHeaders } = { requestHeaders: {} }, + { requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error } = CatalogPlatformValidator.getProductValidation().validate( - { - type, - slug, - }, + {}, { abortEarly: false, allowUnknown: true } ); if (error) { @@ -4432,10 +4253,7 @@ class Catalog { const { error: warrning, } = CatalogPlatformValidator.getProductValidation().validate( - { - type, - slug, - }, + {}, { abortEarly: false, allowUnknown: false } ); if (warrning) { @@ -4446,15 +4264,13 @@ class Catalog { } const query_params = {}; - query_params["type"] = type; - query_params["slug"] = slug; const xHeaders = {}; const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/products/validation`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/products/validation/`, query_params, undefined, { ...xHeaders, ...requestHeaders }, @@ -4487,90 +4303,6 @@ class Catalog { return response; } - /** - * @param {CatalogPlatformValidator.GetProductVerificationDetailsParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name getProductVerificationDetails - * @summary: Get the verification detail of a product - * @description: Get the verification detail of a product - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductVerificationDetails/). - */ - async getProductVerificationDetails( - { itemId, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = CatalogPlatformValidator.getProductVerificationDetails().validate( - { - itemId, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = CatalogPlatformValidator.getProductVerificationDetails().validate( - { - itemId, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > getProductVerificationDetails \n ${warrning}`, - }); - } - - const query_params = {}; - - const xHeaders = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/verification/products/${itemId}`, - query_params, - undefined, - { ...xHeaders, ...requestHeaders }, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = CatalogPlatformModel.ProductVerificationModel().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Catalog > getProductVerificationDetails \n ${res_error}`, - }); - } - } - - return response; - } - /** * @param {CatalogPlatformValidator.GetProductsParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -4652,7 +4384,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/catalog/v2.0/company/${this.config.companyId}/products`, + `/service/platform/catalog/v2.0/company/${this.config.companyId}/products/`, query_params, undefined, { ...xHeaders, ...requestHeaders }, @@ -4731,7 +4463,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/cross-selling/${sellerAppId}/analytics/insights`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/cross-selling/${sellerAppId}/analytics/insights/`, query_params, undefined, { ...xHeaders, ...requestHeaders }, @@ -4855,7 +4587,9 @@ class Catalog { { responseHeaders } = { responseHeaders: false } ) { const { error } = CatalogPlatformValidator.getSizeGuide().validate( - { id }, + { + id, + }, { abortEarly: false, allowUnknown: true } ); if (error) { @@ -4866,7 +4600,9 @@ class Catalog { const { error: warrning, } = CatalogPlatformValidator.getSizeGuide().validate( - { id }, + { + id, + }, { abortEarly: false, allowUnknown: false } ); if (warrning) { @@ -4883,7 +4619,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/sizeguide/${id}`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/sizeguide/${id}/`, query_params, undefined, { ...xHeaders, ...requestHeaders }, @@ -4926,7 +4662,7 @@ class Catalog { * @description: This API allows to view all the size guides associated to the seller. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getSizeGuides/). */ async getSizeGuides( - { active, q, brandId, tag, pageNo, pageSize, requestHeaders } = { + { active, q, tag, pageNo, pageSize, brandId, requestHeaders } = { requestHeaders: {}, }, { responseHeaders } = { responseHeaders: false } @@ -4935,10 +4671,10 @@ class Catalog { { active, q, - brandId, tag, pageNo, pageSize, + brandId, }, { abortEarly: false, allowUnknown: true } ); @@ -4953,10 +4689,10 @@ class Catalog { { active, q, - brandId, tag, pageNo, pageSize, + brandId, }, { abortEarly: false, allowUnknown: false } ); @@ -4970,10 +4706,10 @@ class Catalog { const query_params = {}; query_params["active"] = active; query_params["q"] = q; - query_params["brand_id"] = brandId; query_params["tag"] = tag; query_params["page_no"] = pageNo; query_params["page_size"] = pageSize; + query_params["brand_id"] = brandId; const xHeaders = {}; @@ -5066,7 +4802,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/marketplaces/location-details`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/marketplaces/location-details/`, query_params, undefined, { ...xHeaders, ...requestHeaders }, @@ -5099,86 +4835,6 @@ class Catalog { return response; } - /** - * @param {CatalogPlatformValidator.GetVariantTypesParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getVariantTypes - * @summary: Get variant type list - * @description: This API gets meta associated to products. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getVariantTypes/). - */ - async getVariantTypes( - { templateTag, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { error } = CatalogPlatformValidator.getVariantTypes().validate( - { - templateTag, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = CatalogPlatformValidator.getVariantTypes().validate( - { - templateTag, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > getVariantTypes \n ${warrning}`, - }); - } - - const query_params = {}; - query_params["template_tag"] = templateTag; - - const xHeaders = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/catalog/v2.0/company/${this.config.companyId}/variant-types`, - query_params, - undefined, - { ...xHeaders, ...requestHeaders }, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = CatalogPlatformModel.VariantTypesResponse().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Catalog > getVariantTypes \n ${res_error}`, - }); - } - } - - return response; - } - /** * @param {CatalogPlatformValidator.GetVariantsOfProductsParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -5278,7 +4934,7 @@ class Catalog { * @description: This API gets meta associated to product categories. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/listCategories/). */ async listCategories( - { level, department, q, pageNo, pageSize, uids, requestHeaders } = { + { level, department, q, pageNo, pageSize, uids, slug, requestHeaders } = { requestHeaders: {}, }, { responseHeaders } = { responseHeaders: false } @@ -5291,6 +4947,7 @@ class Catalog { pageNo, pageSize, uids, + slug, }, { abortEarly: false, allowUnknown: true } ); @@ -5309,6 +4966,7 @@ class Catalog { pageNo, pageSize, uids, + slug, }, { abortEarly: false, allowUnknown: false } ); @@ -5326,13 +4984,14 @@ class Catalog { query_params["page_no"] = pageNo; query_params["page_size"] = pageSize; query_params["uids"] = uids; + query_params["slug"] = slug; const xHeaders = {}; const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/category`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/category/`, query_params, undefined, { ...xHeaders, ...requestHeaders }, @@ -5382,7 +5041,7 @@ class Catalog { name, search, isActive, - uids, + slug, requestHeaders, } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } @@ -5395,7 +5054,7 @@ class Catalog { name, search, isActive, - uids, + slug, }, { abortEarly: false, allowUnknown: true } ); @@ -5414,7 +5073,7 @@ class Catalog { name, search, isActive, - uids, + slug, }, { abortEarly: false, allowUnknown: false } ); @@ -5432,14 +5091,14 @@ class Catalog { query_params["name"] = name; query_params["search"] = search; query_params["is_active"] = isActive; - query_params["uids"] = uids; + query_params["slug"] = slug; const xHeaders = {}; const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/departments`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/departments/`, query_params, undefined, { ...xHeaders, ...requestHeaders }, @@ -5514,7 +5173,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/products/hsn`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/products/hsn/`, query_params, undefined, { ...xHeaders, ...requestHeaders }, @@ -5605,7 +5264,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/catalog/v2.0/company/${this.config.companyId}/inventory/download`, + `/service/platform/catalog/v2.0/company/${this.config.companyId}/inventory/download/`, query_params, undefined, { ...xHeaders, ...requestHeaders }, @@ -5685,7 +5344,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/products/templates`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/products/templates/`, query_params, undefined, { ...xHeaders, ...requestHeaders }, @@ -5774,7 +5433,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/products/templates/categories`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/products/templates/categories/`, query_params, undefined, { ...xHeaders, ...requestHeaders }, @@ -5854,7 +5513,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/products/downloads`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/products/downloads/`, query_params, undefined, { ...xHeaders, ...requestHeaders }, @@ -5943,7 +5602,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/downloads/configuration`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/downloads/configuration/`, query_params, undefined, { ...xHeaders, ...requestHeaders }, @@ -5976,175 +5635,6 @@ class Catalog { return response; } - /** - * @param {CatalogPlatformValidator.PatchInventoryExportDetailParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name patchInventoryExportDetail - * @summary: Edit notification_emails and status of export job. - * @description: This API helps to edit notification_emails and status of export job. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/patchInventoryExportDetail/). - */ - async patchInventoryExportDetail( - { jobId, body, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = CatalogPlatformValidator.patchInventoryExportDetail().validate( - { - jobId, - body, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = CatalogPlatformValidator.patchInventoryExportDetail().validate( - { - jobId, - body, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > patchInventoryExportDetail \n ${warrning}`, - }); - } - - const query_params = {}; - - const xHeaders = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "put", - `/service/platform/catalog/v2.0/company/${this.config.companyId}/inventory/download/${jobId}`, - query_params, - body, - { ...xHeaders, ...requestHeaders }, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = CatalogPlatformModel.EditInventoryDownloadsResponse().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Catalog > patchInventoryExportDetail \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {CatalogPlatformValidator.PatchProductExportDetailParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name patchProductExportDetail - * @summary: Edit notification_emails and status of export job. - * @description: This API helps to edit notification_emails and status of export job. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/patchProductExportDetail/). - */ - async patchProductExportDetail( - { jobId, body, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = CatalogPlatformValidator.patchProductExportDetail().validate( - { - jobId, - body, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = CatalogPlatformValidator.patchProductExportDetail().validate( - { - jobId, - body, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Catalog > patchProductExportDetail \n ${warrning}`, - }); - } - - const query_params = {}; - - const xHeaders = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "patch", - `/service/platform/catalog/v2.0/company/${this.config.companyId}/products/downloads/${jobId}`, - query_params, - body, - { ...xHeaders, ...requestHeaders }, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = CatalogPlatformModel.PatchProductDownloadsResponse().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Catalog > patchProductExportDetail \n ${res_error}`, - }); - } - } - - return response; - } - /** * @param {CatalogPlatformValidator.UpdateCategoryParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -6193,7 +5683,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "put", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/category/${uid}`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/category/${uid}/`, query_params, body, { ...xHeaders, ...requestHeaders }, @@ -6274,7 +5764,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "put", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/departments/${uid}`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/departments/${uid}/`, query_params, body, { ...xHeaders, ...requestHeaders }, @@ -6311,7 +5801,7 @@ class Catalog { * @param {CatalogPlatformValidator.UpdateHsnCodeParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response + * @returns {Promise} - Success response * @name updateHsnCode * @summary: Update Hsn Code. * @description: Update Hsn Code. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateHsnCode/). @@ -6355,7 +5845,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "put", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/hsn/${id}`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/hsn/${id}/`, query_params, body, { ...xHeaders, ...requestHeaders }, @@ -6369,7 +5859,7 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.UpdateHsnCode().validate(responseData, { + } = CatalogPlatformModel.HsnCode().validate(responseData, { abortEarly: false, allowUnknown: true, }); @@ -6434,7 +5924,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "post", - `/service/platform/catalog/v2.0/company/${this.config.companyId}/inventory`, + `/service/platform/catalog/v2.0/company/${this.config.companyId}/inventory/`, query_params, body, { ...xHeaders, ...requestHeaders }, @@ -6479,14 +5969,14 @@ class Catalog { * @description: This API allows to update marketplace optin for a company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateMarketplaceOptin/). */ async updateMarketplaceOptin( - { marketplace, body, requestHeaders } = { requestHeaders: {} }, + { marketplaceSlug, body, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, } = CatalogPlatformValidator.updateMarketplaceOptin().validate( { - marketplace, + marketplaceSlug, body, }, { abortEarly: false, allowUnknown: true } @@ -6500,7 +5990,7 @@ class Catalog { error: warrning, } = CatalogPlatformValidator.updateMarketplaceOptin().validate( { - marketplace, + marketplaceSlug, body, }, { abortEarly: false, allowUnknown: false } @@ -6519,7 +6009,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "put", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/channel/${marketplace}/opt-in`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/channel/${marketplaceSlug}/opt-in`, query_params, body, { ...xHeaders, ...requestHeaders }, @@ -6602,7 +6092,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "put", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/product-bundle/${id}`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/product-bundle/${id}/`, query_params, body, { ...xHeaders, ...requestHeaders }, @@ -6768,7 +6258,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "put", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/sizeguide/${id}`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/sizeguide/${id}/`, query_params, body, { ...xHeaders, ...requestHeaders }, @@ -6805,7 +6295,7 @@ class Catalog { * @param {CatalogPlatformValidator.UploadBulkProductsParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response + * @returns {Promise} - Success response * @name uploadBulkProducts * @summary: Create a Bulk product to upload job. * @description: This API helps to create a bulk products upload job. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/uploadBulkProducts/). @@ -6867,7 +6357,7 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.ProductBulkResponse().validate(responseData, { + } = CatalogPlatformModel.BulkResponse().validate(responseData, { abortEarly: false, allowUnknown: true, }); @@ -6941,7 +6431,7 @@ class Catalog { const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/products/templates/${slug}/validation/schema`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/products/templates/${slug}/validation/schema/`, query_params, undefined, { ...xHeaders, ...requestHeaders }, @@ -6987,7 +6477,7 @@ class Catalog { * @description: Allows you to list all product templates validation values for all the fields present in the database - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/validateProductTemplateSchema/). */ async validateProductTemplateSchema( - { itemType, bulk, requestHeaders } = { requestHeaders: {} }, + { itemType, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { @@ -6995,7 +6485,6 @@ class Catalog { } = CatalogPlatformValidator.validateProductTemplateSchema().validate( { itemType, - bulk, }, { abortEarly: false, allowUnknown: true } ); @@ -7009,7 +6498,6 @@ class Catalog { } = CatalogPlatformValidator.validateProductTemplateSchema().validate( { itemType, - bulk, }, { abortEarly: false, allowUnknown: false } ); @@ -7022,14 +6510,13 @@ class Catalog { const query_params = {}; query_params["item_type"] = itemType; - query_params["bulk"] = bulk; const xHeaders = {}; const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/catalog/v1.0/company/${this.config.companyId}/inventory/templates/validation/schema`, + `/service/platform/catalog/v1.0/company/${this.config.companyId}/inventory/templates/validation/schema/`, query_params, undefined, { ...xHeaders, ...requestHeaders }, diff --git a/sdk/platform/Catalog/CatalogPlatformModel.d.ts b/sdk/platform/Catalog/CatalogPlatformModel.d.ts index 3f06d04e2..b88ea78fa 100644 --- a/sdk/platform/Catalog/CatalogPlatformModel.d.ts +++ b/sdk/platform/Catalog/CatalogPlatformModel.d.ts @@ -1,102 +1,10 @@ export = CatalogPlatformModel; -/** - * @typedef SearchRequest - * @property {boolean} [is_active] - * @property {string} [q] - * @property {number} [page_no] - * @property {number} [page_size] - */ -/** - * @typedef MerchandisingRuleQuery - * @property {string} [condition] - * @property {string} [search_query] - * @property {string} [synonyms] - */ -/** - * @typedef MerchandisingRulesList - * @property {string} [rule_id] - * @property {MerchandisingRuleQuery} [query] - * @property {string[]} [actions] - * @property {string[]} [zones] - */ -/** - * @typedef SuccessResponseMerchandising - * @property {string} [message] - */ -/** - * @typedef MerchandiseQueryResponse - * @property {string} [message] - * @property {string} [merchandising_rule_id] - */ -/** - * @typedef MerchandisingRuleQueryPost - * @property {string} [query_condition] - * @property {MerchandisingRuleQuery} [query] - * @property {string[]} [actions] - * @property {string[]} [zones] - */ -/** - * @typedef PinItem - * @property {string} [name] - * @property {number} [uid] - * @property {number} [position] - */ -/** - * @typedef PinItemRequest - * @property {string} [action] - * @property {number} [item_id] - * @property {number} [position] - */ -/** - * @typedef PinRequest - * @property {PinItemRequest[]} [action_value] - */ -/** - * @typedef PinResponse - * @property {PinItem[]} [data] - */ -/** - * @typedef HideAttribute - * @property {string} [name] - * @property {number} [uid] - */ -/** - * @typedef HideAttributeRequest - * @property {string} [action] - * @property {number} [item_id] - */ -/** - * @typedef HideResponse - * @property {HideAttribute[]} [data] - */ -/** - * @typedef HideRequest - * @property {HideAttributeRequest[]} [data] - */ -/** - * @typedef BoostAttribute - * @property {string} [attribute] - * @property {string} [value] - * @property {number} [strength] - */ -/** - * @typedef GetMerchandisingRuleBoostAction - * @property {BoostAttribute[]} [data] - */ -/** - * @typedef GetMerchandisingRuleBuryAction - * @property {BoostAttribute[]} [data] - */ /** * @typedef Action * @property {ActionPage} [page] * @property {ActionPage} [popup] * @property {string} [type] */ -/** - * @typedef ActionProperties - * @property {string[]} [collection] - */ /** * @typedef ActionPage * @property {Object} [params] @@ -124,11 +32,11 @@ export = CatalogPlatformModel; * @property {string} app_id * @property {string} [config_id] * @property {string} config_type - * @property {UserSerializer} [created_by] - The user who created the configuration. + * @property {Object} [created_by] * @property {string} [created_on] * @property {string} [id] * @property {ConfigurationListing} [listing] - * @property {UserSerializer} [modified_by] - The user who modified the configuration. + * @property {Object} [modified_by] * @property {string} [modified_on] * @property {ConfigurationProduct} [product] * @property {string} [type] @@ -160,22 +68,9 @@ export = CatalogPlatformModel; * @property {ConfigurationProduct} [product] * @property {string} [type] */ -/** - * @typedef AppConfigurationCreateDetail - * @property {string} [app_id] - * @property {AttributeDetailsGroup[]} [attributes] - * @property {boolean} is_active - * @property {boolean} is_default - * @property {string} [logo] - * @property {string} [name] - * @property {number} priority - * @property {string} slug - * @property {string[]} [template_slugs] - */ /** * @typedef AppConfigurationDetail - * @property {string} [id] - * @property {string} [app_id] + * @property {string} app_id * @property {AttributeDetailsGroup[]} [attributes] * @property {boolean} is_active * @property {boolean} is_default @@ -185,44 +80,10 @@ export = CatalogPlatformModel; * @property {string} slug * @property {string[]} [template_slugs] */ -/** - * @typedef AppConfigurationsResponse - * @property {string} [id] - * @property {string} [app_id] - * @property {string} [default_key] - * @property {boolean} [is_active] - * @property {boolean} [is_default] - * @property {string} [key] - * @property {string} [logo] - * @property {string} [name] - * @property {number} [priority] - */ /** * @typedef AppConfigurationsSort * @property {string} app_id - * @property {string} [default_key] - * @property {boolean} is_active - * @property {boolean} is_default - * @property {string} key - * @property {string} [logo] - * @property {string} [name] - * @property {number} priority - */ -/** - * @typedef ValueConfigType - * @property {Object[]} [bucket_points] - * @property {Object} [map] - * @property {string} [sort] - * @property {string} [condition] - * @property {string} [value] - */ -/** - * @typedef AppConfigurationsFilter - * @property {string} app_id - * @property {boolean} [allow_single] - * @property {string} [attribute_name] - * @property {ValueConfigType} [value_config] - * @property {string} [type] + * @property {string} default_key * @property {boolean} is_active * @property {boolean} is_default * @property {string} key @@ -230,21 +91,6 @@ export = CatalogPlatformModel; * @property {string} [name] * @property {number} priority */ -/** - * @typedef AppConfigurationsFilterResponse - * @property {string} [id] - * @property {string} [app_id] - * @property {boolean} [allow_single] - * @property {string} [attribute_name] - * @property {ValueConfigType} [value_config] - * @property {string} [type] - * @property {boolean} [is_active] - * @property {boolean} [is_default] - * @property {string} [key] - * @property {string} [logo] - * @property {string} [name] - * @property {number} [priority] - */ /** * @typedef ApplicationBrandJson * @property {Object} _custom_json @@ -301,31 +147,22 @@ export = CatalogPlatformModel; * @typedef ApplicationProductListingResponse * @property {ProductFilters[]} [filters] * @property {ProductListingDetail[]} [items] - * @property {OperatorsResponse} [operators] + * @property {Object} [operators] * @property {Page} page * @property {ProductSortOn[]} [sort_on] */ -/** - * @typedef OperatorsResponse - * @property {string} [btw] - * @property {string} [lte] - * @property {string} [gte] - * @property {string} [gt] - * @property {string} [lt] - * @property {string} [nin] - */ /** * @typedef ApplicationStoreJson * @property {Object} _custom_json */ /** * @typedef AppReturnConfigResponse - * @property {CreatedBy} [created_by] - * @property {CreatedBy} [modified_by] * @property {string} [app_id] - Channel identifier * @property {number} [category_count] - Count of L3 category return config set * for application * @property {number} [company_id] - Unique identifer of company + * @property {Object} [created_by] - User details + * @property {Object} [modified_by] - User details * @property {string} [modified_on] - Modification date * @property {string} [return_config_level] - Configuration level of return * window category|product|no-return @@ -478,7 +315,7 @@ export = CatalogPlatformModel; /** * @typedef BaseAppCategoryReturnConfigResponse * @property {AppCategoryReturnConfigResponse[]} [data] - * @property {PageResponse1} [page] + * @property {PageResponse} [page] */ /** * @typedef Brand @@ -486,18 +323,13 @@ export = CatalogPlatformModel; * @property {string} [name] * @property {number} [uid] */ -/** - * @typedef BrandLogo - * @property {string} [url] - * @property {string} [type] - */ /** * @typedef BrandItem * @property {Action} [action] * @property {ImageUrls} [banners] - * @property {number[]} [departments] + * @property {string[]} [departments] * @property {string} [discount] - * @property {BrandLogo} [logo] + * @property {Media2} [logo] * @property {string} [name] * @property {string} [slug] * @property {number} [uid] @@ -523,14 +355,10 @@ export = CatalogPlatformModel; * @property {Page} [page] */ /** - * @typedef BulkHsnDataResponse + * @typedef BulkHsnResponse * @property {boolean} [success] - Flag indicating the success status of the * bulk HSN operation. */ -/** - * @typedef BulkHsnResponse - * @property {BulkHsnDataResponse} [data] - */ /** * @typedef BulkHsnUpsert * @property {HsnUpsert[]} data @@ -558,24 +386,6 @@ export = CatalogPlatformModel; * @property {number} [succeed] * @property {number} [total] */ -/** - * @typedef BulkProductUploadJob - * @property {number} [company_id] - The ID of the company - * @property {number} [total] - Total records to be imported - * @property {number} [succeed] - Successfully imported records - * @property {string} [stage] - The import stage - * @property {string} [file_path] - * @property {string} [template_tag] - Template tag for the import - * @property {string} [tracking_url] - */ -/** - * @typedef BulkProductJob - * @property {string} [company_id] - * @property {string} [template_tag] - * @property {string} [product_type] - * @property {string} [department] - * @property {string} [file_path] - */ /** * @typedef BulkJob * @property {number} [cancelled] @@ -666,70 +476,6 @@ export = CatalogPlatformModel; * @property {string[]} [tryouts] - It is the list of tryouts. * @property {number} [uid] - It is the unique identifier of the category. */ -/** - * @typedef ChannelListResponse - * @property {ChannelItem[]} [items] - * @property {Page} [page] - */ -/** - * @typedef ChannelDetailResponse - * @property {string} [created_on] - * @property {CreatedBy} [created_by] - * @property {string} [name] - * @property {string} [logo] - * @property {ChannelValidation} [validation] - * @property {string} [_id] - * @property {string} [description] - * @property {string} [slug] - * @property {string} [app_id] - * @property {CreatedBy} [modified_by] - * @property {string} [modified_on] - * @property {string} [display_name] - */ -/** - * @typedef ChannelItem - * @property {string} [logo] - * @property {CreatedBy} [modified_by] - * @property {CreatedBy} [created_by] - * @property {string} [slug] - * @property {string} [name] - * @property {string} [app_id] - * @property {string} [modified_on] - * @property {string} [_id] - * @property {string} [description] - * @property {ChannelValidation} [validation] - * @property {string} [created_on] - * @property {string} [display_name] - */ -/** - * @typedef ChannelValidation - * @property {ProductValidation} [product] - * @property {BrandValidationItem} [brand] - * @property {CompanyValidation} [company] - * @property {LocationValidation} [location] - */ -/** - * @typedef ProductValidation - * @property {boolean} [gated_category_applicable] - * @property {boolean} [imageless_products] - * @property {string} [stage] - */ -/** - * @typedef BrandValidationItem - * @property {string} [stage] - * @property {boolean} [consent_doc_required] - */ -/** - * @typedef CompanyValidation - * @property {boolean} [bank_ac_required] - * @property {boolean} [gst_required] - * @property {boolean} [verified] - */ -/** - * @typedef LocationValidation - * @property {boolean} [gst_required] - * @property {string} [stage] - */ /** * @typedef CategoryCreateResponse * @property {string} [message] - It is the message of the response from the category. @@ -811,41 +557,26 @@ export = CatalogPlatformModel; * @property {CollectionImage} landscape * @property {CollectionImage} portrait */ -/** - * @typedef CollectionBannerResponse - * @property {CollectionImageResponse} [landscape] - * @property {CollectionImageResponse} [portrait] - */ -/** - * @typedef BadgeDetail - * @property {string} [color] - * @property {string} [text] - */ /** * @typedef CollectionCreateResponse - * @property {CollectionBadge} [badge] - * @property {CollectionBannerResponse} [banners] + * @property {string} [uid] + * @property {Object} [_schedule] + * @property {boolean} [allow_facets] + * @property {boolean} [allow_sort] + * @property {string} [app_id] + * @property {Object} [badge] + * @property {ImageUrls} [banners] + * @property {Object} [cron] * @property {string} [description] * @property {boolean} [is_active] - * @property {boolean} [is_visible] - * @property {CollectionImageResponse} [logo] + * @property {BannerImage} [logo] * @property {Object} [meta] * @property {string} [name] * @property {number} [priority] - * @property {boolean} [published] * @property {CollectionQuery[]} [query] - * @property {SeoDetail} [seo] - * @property {Object} [_custom_json] - * @property {Object} [_locale_language] - * @property {CollectionSchedule} [_schedule] - * @property {Action} [action] - * @property {string} [uid] - * @property {boolean} [allow_facets] - * @property {boolean} [allow_sort] - * @property {string} [app_id] * @property {string} [slug] * @property {string} [sort_on] - * @property {string[]} [tags] + * @property {string[]} [tag] * @property {string} [type] * @property {string[]} [visible_facets_keys] */ @@ -873,15 +604,8 @@ export = CatalogPlatformModel; */ /** * @typedef CollectionImage - * @property {string} [aspect_ratio] - * @property {string} [url] - * @property {string} [secure_url] - * @property {string} [type] - */ -/** - * @typedef CollectionImageResponse - * @property {string} [type] - * @property {string} [url] + * @property {string} aspect_ratio + * @property {string} url */ /** * @typedef CollectionItem @@ -920,7 +644,7 @@ export = CatalogPlatformModel; * @property {string} attribute - The attribute of the collection query * @property {string} op - The operation to be performed on the attribute of the * collection query - * @property {string[]} value - The value of the attribute of the collection query + * @property {Object[]} value - The value of the attribute of the collection query */ /** * @typedef CollectionSchedule @@ -936,9 +660,6 @@ export = CatalogPlatformModel; * @property {string} [brand_name] * @property {number} [company_id] * @property {number} [total_article] - * @property {Object} [logo] - * @property {string} [name] - * @property {number} [id] */ /** * @typedef CompanyMeta @@ -963,8 +684,6 @@ export = CatalogPlatformModel; */ /** * @typedef ConfigErrorResponse - * @property {string} [code] - * @property {Object} [errors] * @property {string} message */ /** @@ -979,8 +698,8 @@ export = CatalogPlatformModel; */ /** * @typedef ConfigurationListing - * @property {ConfigurationListingFilter} [filter] - * @property {ConfigurationListingSort} [sort] + * @property {ConfigurationListingFilter} filter + * @property {ConfigurationListingSort} sort */ /** * @typedef ConfigurationListingFilter @@ -1023,31 +742,8 @@ export = CatalogPlatformModel; */ /** * @typedef ConfigurationProduct - * @property {ConfigurationProductSimilar} [similar] - * @property {ConfigurationProductVariant} [variant] - * @property {ConfigurationProductDetailsGroups} [details_groups] - */ -/** - * @typedef ConfigurationProductDetailsGroups - * @property {ConfigurationProductDetailsConfig[]} [config] - */ -/** - * @typedef ConfigurationProductDetailsConfig - * @property {string} [name] - * @property {string} [slug] - * @property {number} [priority] - * @property {string[]} [template_slugs] - * @property {ConfigurationProductDetailsAttribute[]} [attributes] - * @property {boolean} [is_active] - */ -/** - * @typedef ConfigurationProductDetailsAttribute - * @property {string} [name] - * @property {string} [slug] - * @property {string} [display_type] - * @property {number} [priority] - * @property {boolean} [is_active] - * @property {string} [key] + * @property {ConfigurationProductSimilar} similar + * @property {ConfigurationProductVariant} variant */ /** * @typedef ConfigurationProductConfig @@ -1084,15 +780,12 @@ export = CatalogPlatformModel; * @property {boolean} [is_active] * @property {AutocompleteResult[]} [results] * @property {string[]} [words] - * @property {AutocompleteAction} [action] */ /** * @typedef CreateAutocompleteWordsResponse - * @property {string} [uid] - * @property {boolean} [is_active] - * @property {AutocompleteResult[]} [results] * @property {Object} [_custom_json] * @property {string} [app_id] + * @property {Object[]} [results] * @property {string[]} [words] */ /** @@ -1102,7 +795,7 @@ export = CatalogPlatformModel; * @property {CollectionSchedule} [_schedule] * @property {boolean} [allow_facets] * @property {boolean} [allow_sort] - * @property {string} [app_id] + * @property {string} app_id * @property {CollectionBadge} [badge] * @property {CollectionBanner} banners * @property {UserInfo} [created_by] @@ -1124,97 +817,23 @@ export = CatalogPlatformModel; * @property {string[]} [visible_facets_keys] */ /** - * @typedef RerankingBoostItems - * @property {BoostItem[]} [boost] - */ -/** - * @typedef GetSearchRerankDetailResponse - * @property {RerankingBoostItems} [ranking] - * @property {boolean} [is_active] - * @property {CreatedBy} [modified_by] - * @property {CreatedBy} [created_by] - * @property {string[]} [words] - * @property {string} [app_id] - * @property {string} [modified_on] - * @property {string} [created_on] - * @property {string} [id] - */ -/** - * @typedef BoostItem - * @property {string} [attribute_key] - * @property {string} [attribute_value] - */ -/** - * @typedef GetSearchRerankItemResponse - * @property {string} [created_on] - * @property {string} [modified_on] - * @property {string[]} [words] - * @property {string} [app_id] - * @property {CreatedBy} [modified_by] - The user who modified the search rerank. - * @property {RerankingBoostItems} [ranking] - * @property {CreatedBy} [created_by] - The user who created the search rerank. - * @property {boolean} [is_active] - * @property {string} [id] - */ -/** - * @typedef GetSearchRerankResponse - * @property {GetSearchRerankItemResponse[]} [items] - * @property {PageResponse1} [page] - */ -/** - * @typedef CreateSearchRerankResponse - * @property {string[]} [words] - * @property {string} [app_id] - * @property {RerankingBoostItems} [ranking] - * @property {boolean} [is_active] - * @property {string} [created_on] - * @property {CreatedBy} [created_by] - The user who created the search rerank. - * @property {string} [modified_on] - * @property {CreatedBy} [modified_by] - The user who modified the search rerank. - */ -/** - * @typedef UpdateSearchRerankResponse - * @property {string[]} [words] - * @property {string} [app_id] - * @property {RerankingBoostItems} [ranking] - * @property {boolean} [is_active] - * @property {string} [created_on] - * @property {CreatedBy} [created_by] - The user who created the search rerank. - * @property {string} [modified_on] - * @property {CreatedBy} [modified_by] - The user who modified the search rerank. - */ -/** - * @typedef UpdateSearchRerankRequest - * @property {string[]} [words] - * @property {boolean} [is_active] - * @property {string} [application_id] - * @property {RerankingBoostItems} [ranking] - */ -/** - * @typedef CreateSearchRerankRequest - * @property {string[]} [words] - * @property {boolean} [is_active] - * @property {string} [application_id] - * @property {RerankingBoostItems} [ranking] - */ -/** - * @typedef CreateSearchConfigurationRequest - * @property {string} application_id - The application id where custom search - * configuration is set - * @property {number} company_id - The company id where custom search configuration is set - * @property {UserSerializer} [created_by] - The user who created the search - * configuration. - * @property {string} [created_on] - The date and time when the search - * configuration was created. - * @property {boolean} [is_proximity_enabled] - Flag indicating if proximity - * search is enabled for this attribute. - * @property {UserSerializer} [modified_by] - The user who modified the search - * configuration. - * @property {string} [modified_on] - The date and time when the search - * configuration was last modified. - * @property {number} [proximity] - Proximity distance configuration - * @property {SearchableAttribute[]} [searchable_attributes] - The searchable - * attributes defined on the application. + * @typedef CreateSearchConfigurationRequest + * @property {string} application_id - The application id where custom search + * configuration is set + * @property {number} company_id - The company id where custom search configuration is set + * @property {UserSerializer} [created_by] - The user who created the search + * configuration. + * @property {string} [created_on] - The date and time when the search + * configuration was created. + * @property {boolean} [is_proximity_enabled] - Flag indicating if proximity + * search is enabled for this attribute. + * @property {UserSerializer} [modified_by] - The user who modified the search + * configuration. + * @property {string} [modified_on] - The date and time when the search + * configuration was last modified. + * @property {number} [proximity] - Proximity distance configuration + * @property {SearchableAttribute[]} [searchable_attributes] - The searchable + * attributes defined on the application. */ /** * @typedef CreateSearchConfigurationResponse @@ -1242,8 +861,8 @@ export = CatalogPlatformModel; */ /** * @typedef CrossSellingResponse - * @property {number} [articles] - * @property {number} [products] + * @property {CatalogInsightBrand} [brand_distribution] + * @property {CrossSellingData} [data] */ /** * @typedef CustomOrder @@ -1276,11 +895,6 @@ export = CatalogPlatformModel; * @typedef DeleteSearchConfigurationResponse * @property {boolean} [success] */ -/** - * @typedef DeleteSearchRerankConfigurationResponse - * @property {boolean} [success] - * @property {string} [message] - */ /** * @typedef Department * @property {Media2} [logo] @@ -1296,11 +910,7 @@ export = CatalogPlatformModel; */ /** * @typedef DepartmentCreateErrorResponse - * @property {Object} [error] - */ -/** - * @typedef ProductBundleCreateErrorResponse - * @property {Object} [error] + * @property {string} [error] */ /** * @typedef DepartmentCreateResponse @@ -1340,10 +950,12 @@ export = CatalogPlatformModel; * @property {Object} [_custom_json] * @property {string} [_id] * @property {UserDetail} [created_by] - User details of the creator of the document + * @property {string} created_on - Timestamp of the creation of the document * @property {boolean} [is_active] - Whether the department is currently active * @property {string} logo - The URL of the department's logo * @property {UserDetail} [modified_by] - User details of the last modifier of * the document + * @property {string} modified_on - Timestamp of the last modification of the document * @property {string} name - The name of the department * @property {number} priority_order - The priority order of the department * @property {string} slug - The unique slug identifier for the department @@ -1358,10 +970,6 @@ export = CatalogPlatformModel; * @typedef DepartmentResponse * @property {Department[]} [items] */ -/** - * @typedef ValidationFailedResponse - * @property {string} [message] - Response message for failed validation - */ /** * @typedef DepartmentsResponse * @property {GetDepartment[]} [items] @@ -1392,27 +1000,21 @@ export = CatalogPlatformModel; */ /** * @typedef EntityConfiguration - * @property {string} [app_id] + * @property {string} app_id * @property {string} [config_id] - * @property {string} [config_type] + * @property {string} config_type * @property {string} [id] * @property {GetCatalogConfigurationDetailsSchemaListing} [listing] * @property {GetCatalogConfigurationDetailsProduct} [product] */ /** * @typedef ErrorResponse - * @property {number} [code] + * @property {string} [code] * @property {string} [error] * @property {string} [message] * @property {Object} [meta] * @property {number} [status] */ -/** - * @typedef CategoryErrorResponse - * @property {string} [code] - * @property {Object} [error] - * @property {string} [message] - */ /** * @typedef FilerList * @property {string} [display] @@ -1496,24 +1098,18 @@ export = CatalogPlatformModel; */ /** * @typedef GenderDetail - * @property {string} [created_on] - It is Date and time when the attribute was created. - * @property {string} [modified_on] - It is Date and time when the attribute was modified. - * @property {CreatedBy} [created_by] - Details of the user who created the attribute. - * @property {CreatedBy} [modified_by] - Details of the user who last modified - * the attribute. * @property {string[]} [departments] * @property {string} [description] * @property {AttributeMasterDetails} [details] * @property {boolean} [enabled_for_end_consumer] * @property {AttributeMasterFilter} [filters] - * @property {string} [_id] + * @property {string} [id] * @property {boolean} [is_nested] * @property {string} [logo] * @property {AttributeMasterMeta} [meta] * @property {string} [name] * @property {AttributeMaster} [schema] * @property {string} [slug] - * @property {boolean} [variant] */ /** * @typedef GetAddressSerializer @@ -1533,15 +1129,6 @@ export = CatalogPlatformModel; * @typedef GetAllSizes * @property {AllSizes[]} [all_sizes] */ -/** - * @typedef FilterResponse - * @property {ValueItem[]} [values] - */ -/** - * @typedef ValueItem - * @property {string} [text] - * @property {string} [value] - */ /** * @typedef GetAppCatalogConfiguration * @property {AppCatalogConfiguration} [data] @@ -1554,11 +1141,11 @@ export = CatalogPlatformModel; */ /** * @typedef GetAutocompleteWordsData - * @property {AutocompleteResult[]} [results] + * @property {Object} [_custom_json] * @property {string} [app_id] - * @property {string[]} [words] - * @property {boolean} [is_active] + * @property {Object[]} [results] * @property {string} [uid] + * @property {string[]} [words] */ /** * @typedef GetAutocompleteWordsResponse @@ -1567,53 +1154,10 @@ export = CatalogPlatformModel; */ /** * @typedef GetCatalogConfigurationDetailsProduct - * @property {CompareFilter} [compare] - * @property {SimilarFilter} [similar] - * @property {VariantFilter} [variant] - * @property {DetailFilter} [detail] - */ -/** - * @typedef FilterItem - * @property {string} [key] - * @property {string} [display] - * @property {string[]} [filter_types] - * @property {string[]} [units] - */ -/** - * @typedef CompareFilter - * @property {FilterItem[]} [data] - */ -/** - * @typedef SimilarFilter - * @property {SimilarItem[]} [data] - */ -/** - * @typedef VariantFilter - * @property {VariantItem[]} [data] - */ -/** - * @typedef DetailFilter - * @property {FilterItem[]} [data] - * @property {DetailFilterValues} [values] - */ -/** - * @typedef DetailFilterValues - * @property {DisplayType[]} [display_type] - */ -/** - * @typedef DisplayType - * @property {string} [key] - * @property {string} [display] - */ -/** - * @typedef SimilarItem - * @property {string} [key] - * @property {string} [display] - */ -/** - * @typedef VariantItem - * @property {string} [key] - * @property {string} [display] + * @property {Object} [compare] + * @property {Object} [detail] + * @property {Object} [similar] + * @property {Object} [variant] */ /** * @typedef GetCatalogConfigurationDetailsSchemaListing @@ -1683,91 +1227,16 @@ export = CatalogPlatformModel; * @property {UserSerializer2} [verified_by] * @property {string} [verified_on] */ -/** - * @typedef ConditionItem - * @property {string} [key] - * @property {string} [display] - */ -/** - * @typedef DataItem - * @property {string} [key] - * @property {string} [display] - * @property {string[]} [filter_types] - * @property {string[]} [compatible_units] - */ -/** - * @typedef ValueTypeItem - * @property {string} [key] - * @property {string} [display] - */ -/** - * @typedef SortTypeItem - * @property {string} [key] - * @property {string} [display] - */ /** * @typedef GetConfigMetadataResponse + * @property {Object[]} [condition] + * @property {Object[]} data * @property {Page} [page] - * @property {ConditionItem[]} [condition] - * @property {DataItem[]} data - * @property {GetConfigMetadataValues} [values] - */ -/** - * @typedef GetConfigMetadataValues - * @property {ValueTypeItem[]} [type] - * @property {SortTypeItem[]} [sort] - */ -/** - * @typedef AttributeType - * @property {string} [unit] - * @property {number} [priority] - * @property {string} [name] - * @property {string} [key] - * @property {string} [display_type] - * @property {boolean} [is_active] - * @property {string} [slug] - */ -/** - * @typedef DataType - * @property {string} [app_id] - * @property {boolean} [is_default] - * @property {number} [priority] - * @property {string} [name] - * @property {AttributeType[]} [attributes] - * @property {boolean} [is_active] - * @property {string} [slug] - * @property {string} [id] - */ -/** - * @typedef ListingValueConfigType - * @property {string} [sort] - * @property {Object[]} [bucket_points] - * @property {Object} [map] - * @property {string} [condition] - * @property {string} [value] - */ -/** - * @typedef ListingDataType - * @property {string} [app_id] - * @property {boolean} [allow_single] - * @property {string} [id] - * @property {boolean} [is_active] - * @property {string} [key] - * @property {string} [name] - * @property {boolean} [is_default] - * @property {number} [priority] - * @property {string} [logo] - * @property {ListingValueConfigType} [value_config] - * @property {string} [type] - */ -/** - * @typedef GetListingConfigResponse - * @property {ListingDataType[]} [data] - * @property {PageResponseType} [page] + * @property {Object[]} [values] */ /** * @typedef GetConfigResponse - * @property {DataType[]} data + * @property {Object[]} data * @property {PageResponseType} page */ /** @@ -1861,15 +1330,15 @@ export = CatalogPlatformModel; */ /** * @typedef GetProductBundleCreateResponse - * @property {UserSerializer} [created_by] - The user who created the product bundle. - * @property {UserSerializer} [modified_by] - The user who created the product bundle. * @property {string} choice * @property {number} [company_id] + * @property {Object} [created_by] * @property {string} [created_on] * @property {string} [id] * @property {boolean} is_active * @property {string} [logo] * @property {Object} [meta] + * @property {Object} [modified_by] * @property {string} [modified_on] * @property {string} name * @property {string[]} [page_visibility] @@ -1939,17 +1408,22 @@ export = CatalogPlatformModel; * @typedef CommonResponseSchemaCollection * @property {string} [message] */ +/** + * @typedef GetQueryFiltersKeysResponse + * @property {ProductFiltersKeysOnly[]} [filters] + * @property {Object} operators + * @property {ProductSortOn[]} [sort_on] + */ /** * @typedef GetQueryFiltersResponse * @property {ProductFilters[]} [filters] - * @property {Object} [operators] + * @property {Object} operators * @property {ProductSortOn[]} [sort_on] */ /** - * @typedef GetCollectionItemsResponseSchema + * @typedef GetCollectionItemsResponseSchemaV2 * @property {ProductDetailV2[]} [items] - * @property {ProductSortOnv2[]} [sort_on] - * @property {Page} [page] + * @property {Page1} [page] */ /** * @typedef Page1 @@ -1970,21 +1444,20 @@ export = CatalogPlatformModel; * @property {number} [priority] */ /** - * @typedef CollectionItemUpdateSchema + * @typedef CollectionItemUpdateSchemaV2 * @property {boolean} [allow_facets] * @property {boolean} [allow_sort] * @property {CollectionItemSchemaV2[]} [items] * @property {CollectionQuerySchemaV2[]} [query] * @property {string} type * @property {string[]} [visible_facets_keys] - * @property {boolean} [reset_items] */ /** * @typedef CollectionQuerySchemaV2 * @property {string} attribute - The attribute of the collection query * @property {string} op - The operation to be performed on the attribute of the * collection query - * @property {string[]} value + * @property {Object[]} value - The value of the attribute of the collection query */ /** * @typedef ProductDetailV2 @@ -2002,7 +1475,6 @@ export = CatalogPlatformModel; */ /** * @typedef GetSearchConfigurationResponse - * @property {string} [_id] - The id of the search configuration. * @property {string} application_id - The application id where custom search * configuration is set * @property {number} company_id - The company id where custom search configuration is set @@ -2022,8 +1494,6 @@ export = CatalogPlatformModel; */ /** * @typedef GetSearchWordsData - * @property {Object} [query] - * @property {string} [sort_on] * @property {Object} [_custom_json] * @property {string} [app_id] * @property {boolean} [is_active] @@ -2066,15 +1536,13 @@ export = CatalogPlatformModel; */ /** * @typedef HSNDataInsertV2 - * @property {string} [id] - ID of the HSN. * @property {string} country_code - Country code. - * @property {CreatedBy} [created_by] - Details of the user who created the HSN data. - * @property {CreatedBy} [modified_by] - Details of the user who last modified - * the HSN data. + * @property {Object} [created_by] - Details of the user who created the HSN data. * @property {string} [created_on] - Date and time when the HSN data was created. * @property {string} description - Description of the HSN data. * @property {string} hsn_code - HSN code. * @property {string} [hsn_code_id] - Unique identifier of the HSN code. + * @property {Object} [modified_by] - Details of the user who last modified the HSN data. * @property {string} [modified_on] - Date and time when the HSN data was last modified. * @property {string} reporting_hsn - HSN code. * @property {TaxSlab[]} taxes - List of tax slabs. @@ -2093,29 +1561,10 @@ export = CatalogPlatformModel; * @typedef HsnCode * @property {HsnCodesObject} [data] - The HSN code data. */ -/** - * @typedef SlabObject - * @property {number} [threshold] - * @property {number} [tax] - */ -/** - * @typedef UpdateHsnCodesObject - * @property {CreatedBy} [modified_by] - * @property {number} [company_id] - The ID of the company. - * @property {SlabObject[]} [slabs] - * @property {string} [hs2_code] - The HS2 code. - * @property {string} [hsn_code] - The HSN code. - * @property {string} [tax_on] - * @property {string} [id] - */ -/** - * @typedef UpdateHsnCode - * @property {UpdateHsnCodesObject} [data] - The HSN code data. - */ /** * @typedef HsnCodesListingResponseSchemaV2 * @property {HSNDataInsertV2[]} [items] - * @property {PageResponse1} [page] + * @property {PageResponse} [page] */ /** * @typedef HsnCodesObject @@ -2190,7 +1639,7 @@ export = CatalogPlatformModel; /** * @typedef InventoryConfig * @property {FilerList[]} [data] - * @property {boolean} [multivalue] + * @property {boolean} [multivalues] */ /** * @typedef InventoryCreateRequest @@ -2221,28 +1670,6 @@ export = CatalogPlatformModel; * @property {string} [to_date] - The modified on date till when the data needs * to be exported. */ -/** - * @typedef InventoryExportJobResponse - * @property {InventoryExportItem[]} [items] - */ -/** - * @typedef InventoryExportItem - * @property {string} [status] - * @property {string} [type] - * @property {Object} [stats] - * @property {string} [completed_on] - * @property {string} [created_on] - * @property {string} [modified_on] - * @property {number} [seller_id] - * @property {string} [task_id] - * @property {string[]} [notification_emails] - * @property {CreatedBy} [created_by] - * @property {string} [_id] - * @property {string} [url] - * @property {string} [trigger_on] - * @property {number[]} [brand] - * @property {number[]} [store] - */ /** * @typedef InventoryExportJob * @property {string} [completed_on] - Completion datetime of the job. @@ -2255,37 +1682,10 @@ export = CatalogPlatformModel; * @property {string} type - The type of file that needs to be exported. * @property {string} [url] - URL odf the exported file. */ -/** - * @typedef InventoryExportJobListFilters - * @property {number[]} [brand_ids] - * @property {number[]} [store_ids] - * @property {string[]} [brands] - * @property {string[]} [stores] - */ -/** - * @typedef InventoryExportJobListStats - * @property {number} [success] - * @property {number} [total] - */ -/** - * @typedef InventoryExportJobList - * @property {string} [status] - * @property {string} [completed_on] - * @property {string[]} [notification_emails] - * @property {InventoryExportJobListFilters} [filters] - * @property {InventoryExportJobListStats} [stats] - * @property {string} [type] - * @property {string} [modified_on] - * @property {string} [created_on] - * @property {number} [seller_id] - * @property {string} [url] - * @property {string} [task_id] - * @property {CreatedBy} [created_by] - * @property {string} [id] - */ /** * @typedef InventoryExportJobListResponse - * @property {InventoryExportJobList[]} [items] + * @property {InventoryJobDetailResponse} items - This is the list/history of + * all the jobs. */ /** * @typedef InventoryExportQuantityFilter @@ -2293,64 +1693,28 @@ export = CatalogPlatformModel; * @property {number} [min] - The minimum quantity that needs to be exported. * @property {string} operators - Condition for the quantity that needs to be exported. */ -/** - * @typedef ExportPatchRequest - * @property {string[]} [notification_emails] - * @property {string} [status] - */ /** * @typedef InventoryExportRequest * @property {number[]} [brand] * @property {number[]} [store] * @property {string} [type] */ -/** - * @typedef EditInventoryDataDownloadsResponse - * @property {string} [url] - * @property {string} [completed_on] - * @property {number} [seller_id] - * @property {string} [task_id] - * @property {string} [created_on] - * @property {string} [modified_on] - * @property {string[]} [notification_emails] - * @property {string} [status] - */ -/** - * @typedef EditInventoryDownloadsResponse - * @property {EditInventoryDataDownloadsResponse} [data] - */ -/** - * @typedef InventoryExportFiltersResponse - * @property {number[]} [brand_ids] - * @property {number[]} [store_ids] - */ -/** - * @typedef Stats - * @property {number} [total] - */ /** * @typedef InventoryExportResponse - * @property {CreatedBy} [created_by] - The user that created the job. + * @property {string} [created_by] - The user that created the job. * @property {string} [created_on] - Creation datetime of the job - * @property {InventoryExportFiltersResponse} [filters] + * @property {Object} [filters] - The filters that needs to be exported. * @property {string} [modified_on] - Modification date of the job * @property {string[]} [notification_emails] - The notification emails for the job. * @property {number} seller_id - The seller id that needs to be exported. * @property {string} [status] - The status of the job. * @property {string} task_id - The task id of the job. * @property {string} [type] - The type of file that needs to be exported. - * @property {Stats} [stats] - * @property {string} [_id] - * @property {string} [trigger_on] - * @property {number[]} [brand] - * @property {number[]} [store] */ /** * @typedef InventoryFailedReason * @property {string} [errors] - It is the error message of the inventory error response. * @property {string} message - It is the message of the activity performed. - * @property {number} [reason_code] - It is the reason code of the inventory - * error response. */ /** * @typedef InventoryJobDetailResponse @@ -2432,6 +1796,7 @@ export = CatalogPlatformModel; */ /** * @typedef InventoryRequestSchemaV2 + * @property {number} company_id - The ID of the company. * @property {Object} [meta] - Additional metadata for the inventory request. * @property {InventoryPayload[]} [payload] - The list of inventory payloads. */ @@ -2521,8 +1886,7 @@ export = CatalogPlatformModel; /** * @typedef InventoryUpdateResponse * @property {InventoryResponseItem[]} [items] - * @property {string} [message] - It is the success message of the inventory update. - * @property {boolean} [success] - It is the success message of the inventory update. + * @property {string} message - It is the success message of the inventory update. */ /** * @typedef InventoryValidationResponse @@ -2566,17 +1930,6 @@ export = CatalogPlatformModel; * @property {number} [total] * @property {string} [tracking_url] */ -/** - * @typedef PriceRange - * @property {number} [min] - * @property {number} [max] - */ -/** - * @typedef ProductPriceRangeSchema - * @property {PriceRange} [effective] - * @property {PriceRange} [marked] - * @property {string} [currency] - */ /** * @typedef LimitedProductData * @property {Object} [attributes] @@ -2585,7 +1938,7 @@ export = CatalogPlatformModel; * @property {string[]} [images] * @property {string} [item_code] * @property {string} [name] - * @property {ProductPriceRangeSchema} [price] + * @property {Object} [price] * @property {number} [quantity] * @property {string} [short_description] * @property {string[]} [sizes] @@ -2594,8 +1947,8 @@ export = CatalogPlatformModel; */ /** * @typedef ListSizeGuide - * @property {SizeGuideResponse[]} [items] - * @property {Page} [page] + * @property {Object[]} [items] + * @property {Object} [page] */ /** * @typedef LocationDayWiseSerializer @@ -2611,7 +1964,6 @@ export = CatalogPlatformModel; */ /** * @typedef LocationListSerializer - * @property {Object[]} [filters] * @property {GetLocationSerializer[]} [items] * @property {Page} [page] */ @@ -2671,24 +2023,9 @@ export = CatalogPlatformModel; */ /** * @typedef Meta - * @property {GuideHeaders} [headers] - * @property {GuideValues[]} [values] + * @property {Object} [headers] * @property {string} [unit] - */ -/** - * @typedef GuideHeaders - * @property {Header} [col_1] - * @property {Header} [col_2] - */ -/** - * @typedef GuideValues - * @property {string} [col_1] - * @property {string} [col_2] - */ -/** - * @typedef Header - * @property {string} [value] - * @property {boolean} [convertable] + * @property {Object[]} [values] */ /** * @typedef MetaDataListingFilterMetaResponse @@ -2752,42 +2089,12 @@ export = CatalogPlatformModel; * @property {CompanyBrandDetail[]} [items] * @property {Page} [page] */ -/** - * @typedef OptinAddress - * @property {string} [address1] - * @property {string} [state] - * @property {string} [pincode] - * @property {string} [city] - * @property {string} [country] - * @property {number} [latitude] - * @property {number} [longitude] - * @property {string} [country_code] - */ -/** - * @typedef OptinDocument - * @property {string} [type] - * @property {string} [value] - * @property {string} [legal_name] - * @property {boolean} [verified] - */ -/** - * @typedef OptinBusinessCountryInfo - * @property {string} [country] - * @property {string} [country_code] - */ /** * @typedef OptinCompanyDetail + * @property {string} [business_type] + * @property {string} [company_type] * @property {string} [name] * @property {number} [uid] - * @property {string} [business_info] - * @property {string} [business_type] - * @property {OptinBusinessCountryInfo} [business_country_info] - * @property {OptinAddress} [address] - * @property {OptinDocument} [document] - * @property {number[]} [brands] - * @property {string[]} [notification_emails] - * @property {Object} [warnings] - * @property {string} [stage] */ /** * @typedef OptinCompanyMetrics @@ -2802,7 +2109,6 @@ export = CatalogPlatformModel; */ /** * @typedef OwnerAppItemResponse - * @property {Object} [size_promotion_threshold] * @property {Object} [alt_text] * @property {boolean} [is_cod] * @property {boolean} [is_gift] @@ -2961,12 +2267,10 @@ export = CatalogPlatformModel; */ /** * @typedef ProductBrand - * @property {string} [type] - * @property {number} [uid] + * @property {Action} [action] + * @property {Media} [logo] * @property {string} [name] - * @property {Object} [logo] - * @property {PageAction} [action] - * @property {Object} [_custom_json] + * @property {number} [uid] */ /** * @typedef ProductBulkAssets @@ -2994,19 +2298,6 @@ export = CatalogPlatformModel; * @property {string} [template_tag] * @property {number} [total] */ -/** - * @typedef InventoryBulkJob - * @property {string} [company_id] - The ID of the company. - * @property {string} [file_path] - The file path of the company. - */ -/** - * @typedef ProductBulkResponse - * @property {string} [batch_id] - */ -/** - * @typedef InventoryBulkResponse - * @property {string} [batch_id] - */ /** * @typedef ProductBulkRequestList * @property {ProductBulkRequest[]} [items] @@ -3024,7 +2315,7 @@ export = CatalogPlatformModel; /** * @typedef ProductBundleRequest * @property {string} choice - * @property {string} [company_id] + * @property {number} [company_id] * @property {Object} [created_by] * @property {string} [created_on] * @property {boolean} is_active @@ -3041,7 +2332,7 @@ export = CatalogPlatformModel; /** * @typedef ProductBundleUpdateRequest * @property {string} choice - * @property {string} [company_id] + * @property {number} [company_id] * @property {boolean} is_active * @property {string} [logo] * @property {Object} [meta] @@ -3058,24 +2349,6 @@ export = CatalogPlatformModel; * @property {Object[]} [data] * @property {boolean} [multivalue] */ -/** - * @typedef ProductCreateUpdateSizesSchema - * @property {string} [size] - * @property {number} [price] - * @property {number} [price_effective] - * @property {number} [price_transfer] - * @property {string} [currency] - * @property {number} [item_length] - * @property {number} [item_width] - * @property {number} [item_height] - * @property {number} [item_weight] - * @property {string} [item_dimensions_unit_of_measure] - * @property {string} [item_weight_unit_of_measure] - * @property {boolean} [track_inventory] - * @property {GTIN[]} [identifiers] - * @property {Object} [_custom_json] - * @property {string} [name] - */ /** * @typedef ProductCreateUpdateSchemaV2 * @property {Object} [_custom_json] @@ -3109,7 +2382,7 @@ export = CatalogPlatformModel; * @property {ReturnConfig} return_config * @property {string} [short_description] * @property {string} [size_guide] - * @property {ProductCreateUpdateSizesSchema[]} sizes + * @property {Object[]} sizes * @property {string} slug * @property {string[]} [tags] * @property {TaxIdentifier} tax_identifier @@ -3158,58 +2431,6 @@ export = CatalogPlatformModel; * @property {ProductDetailAttribute[]} [details] * @property {string} [title] */ -/** - * @typedef PatchProductDownloadsDataResponse - * @property {string} [created_on] - * @property {CreatedBy} [created_by] - * @property {string} [task_id] - * @property {string} [modified_on] - * @property {number} [seller_id] - * @property {string} [url] - * @property {string} [status] - * @property {string[]} [notification_emails] - * @property {string} [completed_on] - */ -/** - * @typedef PatchProductDownloadsResponse - * @property {PatchProductDownloadsDataResponse} [data] - */ -/** - * @typedef ProductDownloadFilters - * @property {string[]} brands - * @property {string[]} catalogue_types - * @property {string[]} templates - */ -/** - * @typedef CreateProductDownloadsDataResponse - * @property {string} [created_on] - * @property {string} [type] - * @property {string} [task_id] - * @property {ProductDownloadFilters} [filters] - * @property {CreatedBy} [created_by] - * @property {string} [_id] - * @property {Object[]} [notification_emails] - * @property {string} [modified_on] - * @property {string} [status] - * @property {number} [seller_id] - * @property {Stats} [stats] - */ -/** - * @typedef CreateProductDownloadsResponse - * @property {CreateProductDownloadsDataResponse} [data] - */ -/** - * @typedef GetProductDownloadsResponse - * @property {string} [modified_on] - * @property {string} [url] - * @property {string} [status] - * @property {string} [completed_on] - * @property {CreatedBy} [created_by] - * @property {string} [created_on] - * @property {number} [seller_id] - * @property {string} [task_id] - * @property {string} [id] - */ /** * @typedef ProductDownloadsResponse * @property {ProductTemplateExportResponse[]} [items] - The items of the job. @@ -3219,6 +2440,15 @@ export = CatalogPlatformModel; * @property {ProductFiltersKey} key * @property {ProductFiltersValue[]} values */ +/** + * @typedef GetQueryFiltersValuesResponse + * @property {ProductFiltersValue[]} values + * @property {Page} page + */ +/** + * @typedef ProductFiltersKeysOnly + * @property {ProductFiltersKey} key + */ /** * @typedef ProductFiltersKey * @property {string} display @@ -3240,7 +2470,7 @@ export = CatalogPlatformModel; * @property {string} [query_format] * @property {number} [selected_max] * @property {number} [selected_min] - * @property {string} value + * @property {Object} value */ /** * @typedef ProductListingDetail @@ -3270,23 +2500,6 @@ export = CatalogPlatformModel; * @property {string[]} [tryouts] * @property {string} [type] * @property {number} [uid] - * @property {string[]} [categories] - * @property {string[]} [_custom_meta] - * @property {PageAction} [action] - * @property {boolean} [is_tryout] - * @property {number[]} [all_company_ids] - * @property {boolean} [is_custom_order] - * @property {string[]} [collections] - */ -/** - * @typedef PageAction - * @property {ActionObject} [page] - * @property {string} [type] - */ -/** - * @typedef ActionObject - * @property {string} [type] - * @property {Object} [query] */ /** * @typedef ProductListingPrice @@ -3303,22 +2516,6 @@ export = CatalogPlatformModel; * @property {ProductSchemaV2[]} [items] * @property {Page} [page] */ -/** - * @typedef ProductVerificationModel - * @property {Object} [rejected_fields] - * @property {string} [status] - * @property {number} [brand_uid] - * @property {string} [created_on] - * @property {number[]} [company_ids] - * @property {string} [item_code] - * @property {string} [remark] - * @property {CreatedBy} [created_by] - * @property {string} [modified_on] - * @property {string} [slug] - * @property {CreatedBy} [modified_by] - * @property {number} [item_id] - * @property {string} [id] - */ /** * @typedef ProductPublish * @property {boolean} [is_set] @@ -3345,20 +2542,8 @@ export = CatalogPlatformModel; * @property {number} time - Valid return time for an item * @property {string} unit - Unit of return config days|hours */ -/** - * @typedef CategorySubSchema - * @property {string} [name] - * @property {number} [uid] - */ -/** - * @typedef CategoryProduct - * @property {CategorySubSchema} [l3] - * @property {CategorySubSchema} [l1] - * @property {CategorySubSchema} [l2] - */ /** * @typedef ProductSchemaV2 - * @property {CategoryProduct} [category] * @property {Object} [_custom_json] * @property {number[]} [all_company_ids] * @property {string[]} [all_identifiers] @@ -3366,6 +2551,7 @@ export = CatalogPlatformModel; * @property {Object} [attributes] * @property {Brand} [brand] * @property {number} [brand_uid] + * @property {Object} [category] * @property {string} [category_slug] * @property {number} [category_uid] * @property {string} [color] @@ -3442,16 +2628,6 @@ export = CatalogPlatformModel; * @property {boolean} [is_selected] * @property {string} [name] * @property {string} [value] - * @property {string} [display] - * @property {string} [logo] - */ -/** - * @typedef ProductSortOnv2 - * @property {boolean} [is_selected] - * @property {string} [name] - * @property {string} [value] - * @property {string} [display] - * @property {string} [logo] */ /** * @typedef ProductTagsViewResponse @@ -3461,8 +2637,7 @@ export = CatalogPlatformModel; * @typedef ProductTemplate * @property {string[]} [attributes] * @property {string[]} [categories] - * @property {CreatedBy} [created_by] - * @property {CreatedBy} [modified_by] + * @property {Object} [created_by] * @property {string} [created_on] * @property {string[]} [departments] * @property {string} [description] @@ -3471,7 +2646,7 @@ export = CatalogPlatformModel; * @property {boolean} is_expirable * @property {boolean} is_physical * @property {string} [logo] - * @property {string} [id] + * @property {Object} [modified_by] * @property {string} [modified_on] * @property {string} [name] * @property {string} slug @@ -3498,9 +2673,6 @@ export = CatalogPlatformModel; */ /** * @typedef ProductTemplateExportResponse - * @property {string} [trigger_on] - * @property {string} [id] - * @property {Object} [template_tags] * @property {string} [completed_on] - Completion datetime of the job * @property {UserInfo1} [created_by] - The user that created the job. * @property {Object} [filters] - The filters that needs to be exported. @@ -3521,16 +2693,6 @@ export = CatalogPlatformModel; * @property {string} [name] * @property {number} [uid] */ -/** - * @typedef CompanyVerificationStats - * @property {number} [verified] - */ -/** - * @typedef CompanyVerificationResponse - * @property {number} [uid] - * @property {string} [name] - * @property {CompanyVerificationStats} [stats] - */ /** * @typedef ProductVariantsResponse * @property {Page} [page] @@ -3594,8 +2756,8 @@ export = CatalogPlatformModel; /** * @typedef ReturnConfig * @property {boolean} returnable - * @property {number} [time] - * @property {string} [unit] + * @property {number} time + * @property {string} unit */ /** * @typedef ReturnConfig1 @@ -3628,7 +2790,7 @@ export = CatalogPlatformModel; /** * @typedef ApplicationItemSeoBreadcrumbs * @property {string} [url] - * @property {Object} [action] + * @property {ApplicationItemSeoAction[]} [action] */ /** * @typedef ApplicationItemSeoMetaTagItem @@ -3688,16 +2850,11 @@ export = CatalogPlatformModel; * @property {number} country_code * @property {string} number */ -/** - * @typedef SitemapDetail - * @property {number} [priority] - * @property {string} [frequency] - */ /** * @typedef SeoDetail * @property {string} [description] * @property {string} [title] - * @property {SitemapDetail} [sitemap] + * @property {Object} [sitemap] * @property {ApplicationItemSeoBreadcrumbs[]} [breadcrumbs] * @property {Metatags[]} [meta_tags] * @property {string} [canonical_url] @@ -3711,17 +2868,6 @@ export = CatalogPlatformModel; * @typedef SingleCategoryResponse * @property {Category} [data] */ -/** - * @typedef VariantTypesResponse - * @property {VariantTypeItem[]} [items] - */ -/** - * @typedef VariantTypeItem - * @property {string} [name] - Name of the item - * @property {string} [key] - Key of the item - * @property {string[]} [type] - Array of item types - * @property {Object} [image_config] - Configuration for the image - */ /** * @typedef SingleProductResponse * @property {ProductSchemaV2} [data] @@ -3739,15 +2885,14 @@ export = CatalogPlatformModel; */ /** * @typedef SizeGuideResponse - * @property {string} [image] - * @property {UserSerializer} [created_by] - The user who created the size guide. - * @property {UserSerializer} [modified_by] - The user who modified the size guide. * @property {boolean} [active] * @property {number} [brand_id] * @property {number} [company_id] + * @property {Object} [created_by] * @property {string} [created_on] * @property {Object} [guide] * @property {string} [id] + * @property {Object} [modified_by] * @property {string} [modified_on] * @property {string} [name] * @property {string} [subtitle] @@ -3756,98 +2901,39 @@ export = CatalogPlatformModel; */ /** * @typedef StoreAssignResponse - * @property {boolean} [success] - * @property {Object[]} [items] - */ -/** - * @typedef Time - * @property {number} [hour] - * @property {number} [minute] - */ -/** - * @typedef Timing - * @property {Time} [closing] - * @property {string} [weekday] - * @property {Time} [opening] - * @property {boolean} [open] - */ -/** - * @typedef StoreItem - * @property {string} [stage] - * @property {string} [name] - * @property {string} [display_name] - * @property {string} [modified_on] - * @property {UserSchemaCustom} [modified_by] - * @property {Manager} [manager] - * @property {string[]} [notification_emails] - * @property {string} [verified_on] - * @property {UserSchemaCustom} [verified_by] - * @property {IntegrationType} [integration_type] + * @property {string} [_id] + * @property {ArticleAssignment1} article_assignment * @property {number} [company_id] - * @property {Document[]} [documents] - * @property {string} [created_on] - * @property {Address} [address] - * @property {UserSchemaCustom} [created_by] - * @property {Object} [_custom_json] - * @property {number} [uid] - * @property {Timing[]} [timing] - * @property {string} [store_type] - */ -/** - * @typedef UserSchemaCustom - * @property {string} [user_id] - * @property {string} [username] - */ -/** - * @typedef Manager - * @property {string} [name] - * @property {string} [email] - * @property {MobileNo} [mobile_no] - */ -/** - * @typedef MobileNo - * @property {number} [country_code] - * @property {string} [number] - */ -/** - * @typedef IntegrationType - * @property {string} [order] - * @property {string} [inventory] - */ -/** - * @typedef Address - * @property {string} [country_code] - * @property {string} [address1] - * @property {string} [city] - * @property {string} [address2] - * @property {string} [country] - * @property {number} [pincode] - * @property {string} [landmark] - * @property {string} [state] + * @property {string} [group_id] + * @property {number} [index] + * @property {number} item_id + * @property {Object} [meta] + * @property {number} [price_effective] + * @property {number} [price_marked] + * @property {number} quantity + * @property {string} [s_city] + * @property {string} size + * @property {boolean} status + * @property {number} [store_id] + * @property {number} [store_pincode] + * @property {Object[]} [strategy_wise_listing] + * @property {string} [uid] */ /** * @typedef StoreDetail * @property {Object[]} [additional_contacts] + * @property {Object} [address] * @property {number} [company_id] * @property {string} [created_on] * @property {string} [display_name] + * @property {Object[]} [documents] + * @property {Object} [manager] * @property {string} [modified_on] * @property {string} [name] * @property {string} [store_code] * @property {string} [store_type] - * @property {Timing[]} [timing] + * @property {Object} [timing] * @property {number} [uid] - * @property {string} [stage] - * @property {UserSchemaCustom} [modified_by] - * @property {Manager} [manager] - * @property {string[]} [notification_emails] - * @property {string} [verified_on] - * @property {UserSchemaCustom} [verified_by] - * @property {IntegrationType} [integration_type] - * @property {Document[]} [documents] - * @property {Address} [address] - * @property {UserSchemaCustom} [created_by] - * @property {Object} [_custom_json] */ /** * @typedef StoreMeta @@ -3903,7 +2989,7 @@ export = CatalogPlatformModel; */ /** * @typedef TemplatesResponse - * @property {ProductTemplate[]} [items] + * @property {ProductTemplate} [items] * @property {Page} [page] */ /** @@ -3941,9 +3027,6 @@ export = CatalogPlatformModel; */ /** * @typedef UpdateCollection - * @property {Action} [action] - * @property {string} [uid] - * @property {string} [app_id] * @property {Object} [_custom_json] * @property {Object} [_locale_language] * @property {CollectionSchedule} [_schedule] @@ -4064,7 +3147,6 @@ export = CatalogPlatformModel; /** * @typedef ValidateProduct * @property {boolean} [valid] - * @property {string} [message] */ /** * @typedef ValidateSizeGuide @@ -4111,12 +3193,12 @@ export = CatalogPlatformModel; * @property {string} [app_id] * @property {boolean} [enabled] * @property {CreatedBy} [created_by] - * @property {string} [created_on] + * @property {Object} [created_on] * @property {string} [opt_level] * @property {number} [company_id] * @property {CreatedBy} [modified_by] * @property {number[]} [store_ids] - * @property {string} [modified_on] + * @property {Object} [modified_on] * @property {string} [platforms] * @property {string} [_id] */ @@ -4125,56 +3207,14 @@ export = CatalogPlatformModel; * @property {Marketplaces[]} [items] * @property {Page} [page] */ -/** - * @typedef CreateMarketplaceOptinRequest - * @property {number[]} [brand_ids] - * @property {number} [company_id] - * @property {boolean} [enabled] - * @property {number} [opt_level] - * @property {string} [platform] - * @property {number[]} [store_ids] - */ /** * @typedef UpdateMarketplaceOptinRequest * @property {number[]} [brand_ids] * @property {number} [company_id] * @property {boolean} [enabled] - * @property {number} [opt_level] - * @property {string} [platform] - * @property {number[]} [store_ids] - */ -/** - * @typedef CreateMarketplaceOptinResponse - * @property {number[]} [store_ids] - * @property {number[]} [brand_ids] - * @property {number} [company_id] * @property {string} [opt_level] * @property {string} [platform] - * @property {boolean} [enabled] - * @property {CreatedBy} [created_by] - * @property {CreatedBy} [modified_by] - * @property {string} [app_id] - */ -/** - * @typedef GetProductTemplateSlugItems - * @property {string[]} [attributes] - * @property {string[]} [departments] - * @property {boolean} [is_active] - * @property {string} [tag] - * @property {boolean} [is_physical] - * @property {string} [description] - * @property {string} [logo] - * @property {boolean} [is_archived] - * @property {string} [slug] - * @property {string[]} [categories] - * @property {boolean} [is_expirable] - * @property {string} [name] - * @property {string} [id] - */ -/** - * @typedef GetProductTemplateSlugResponse - * @property {Page} [page] - * @property {GetProductTemplateSlugItems[]} [items] + * @property {number[]} [store_ids] */ /** * @typedef UpdateMarketplaceOptinResponse @@ -4188,187 +3228,6 @@ export = CatalogPlatformModel; * @property {CreatedBy} [created_by] * @property {CreatedBy} [modified_by] */ -/** - * @typedef AutocompleteRequestSchema - * @property {Object} [query_suggestion] - * @property {Object} [product_suggestion] - * @property {Object} [collection_suggestion] - * @property {Object} [brand_suggestion] - * @property {Object} [category_suggestion] - */ -/** - * @typedef AutocompleteUpsertResponseSchema - * @property {string} [message] - * @property {string} [id] - * @property {boolean} [success] - */ -/** - * @typedef AutocompleteErrorResponseSchema - * @property {string} [message] - * @property {boolean} [success] - */ -/** - * @typedef AutocompleteResponseSchema - * @property {string} [id] - * @property {Object} [query_suggestion] - * @property {Object} [product_suggestion] - * @property {Object} [collection_suggestion] - * @property {Object} [brand_suggestion] - * @property {Object} [category_suggestion] - */ -/** - * @typedef ProductListingActionPage - * @property {string} [type] - * @property {Object} [query] - * @property {Object} [params] - */ -/** - * @typedef ProductListingAction - * @property {string} [type] - * @property {ProductListingActionPage} [page] - */ -/** - * @typedef AutocompleteItem - * @property {Media} [logo] - * @property {string} [display] - * @property {string} [type] - * @property {Object} [_custom_json] - * @property {ProductListingAction} [action] - */ -/** - * @typedef AutocompletePreviewResponseSchema - * @property {AutocompleteItem[]} [items] - */ -/** - * @typedef CreateAppPriceFactoryRequest - * @property {number[]} [departments] - * @property {string} [factory_type] - * @property {string[]} [factory_type_ids] - * @property {string} [code] - * @property {string} [name] - * @property {boolean} [is_active] - */ -/** - * @typedef CreateAppPriceFactoryResponse - * @property {string} [id] - * @property {number[]} [departments] - * @property {string} [factory_type] - * @property {string[]} [factory_type_ids] - * @property {string} [code] - * @property {string} [name] - * @property {boolean} [is_active] - */ -/** - * @typedef AppPriceFactory - * @property {string} [id] - * @property {number[]} [departments] - * @property {string} [factory_type] - * @property {number[]} [factory_type_ids] - * @property {string} [code] - * @property {string} [name] - * @property {boolean} [is_active] - * @property {CreatedBy} [created_by] - * @property {CreatedBy} [modified_by] - * @property {string} [created_on] - * @property {string} [modified_on] - */ -/** - * @typedef EditAppPriceFactoryRequest - * @property {string[]} [departments] - * @property {string} [factory_type] - * @property {number[]} [factory_type_ids] - * @property {string} [code] - * @property {string} [name] - * @property {boolean} [is_active] - */ -/** - * @typedef GetAppPriceFactoryResponse - * @property {AppPriceFactory[]} [items] - * @property {Page} [page] - */ -/** - * @typedef CreateAppPriceFactoryProduct - * @property {number} [item_id] - * @property {string} [brand] - * @property {string} [seller_identifier] - */ -/** - * @typedef PriceFactorySizes - * @property {string} [size_name] - * @property {string} [seller_identifier] - * @property {number} [marked_price] - * @property {number} [selling_price] - * @property {string} [currency] - * @property {boolean} [is_active] - */ -/** - * @typedef CompanySizes - * @property {string} [size_name] - * @property {string} [seller_identifier] - * @property {number} [marked_price] - * @property {number} [selling_price] - * @property {string} [currency] - * @property {boolean} [is_active] - */ -/** - * @typedef CreateAppPriceFactoryProductResponse - * @property {number} [item_id] - * @property {string} [item_name] - * @property {string} [item_code] - * @property {string} [brand] - * @property {string} [category] - * @property {string[]} [factory_type_id] - * @property {Object} [media] - * @property {Object} [sizes] - * @property {Object} [company_sizes] - */ -/** - * @typedef UpdateAppPriceFactoryProductRequest - * @property {Object} [sizes] - */ -/** - * @typedef UpdateAppPriceFactoryProductResponse - * @property {number} [item_id] - * @property {string} [zone_id] - * @property {Object} [media] - * @property {Object} [company_sizes] - * @property {Object} [sizes] - */ -/** - * @typedef CreateAppPriceFactoryProductRequest - * @property {CreateAppPriceFactoryProduct[]} [items] - */ -/** - * @typedef CreateAppPriceFactoryProductsResponse - * @property {CreateAppPriceFactoryProductResponse[]} [items] - */ -/** - * @typedef CreateAppPriceFactoryProductBulkJobRequest - * @property {string} [file_path] - * @property {string} [file_type] - * @property {string} [job_type] - */ -/** - * @typedef CreateAppPriceFactoryProductBulkJobResponse - * @property {string} [job_id] - * @property {string} [status] - * @property {Object} [created_on] - * @property {Object} [modified_on] - * @property {CreatedBy} [created_by] - * @property {CreatedBy} [modified_by] - */ -/** - * @typedef CreateAppPriceFactoryProductBulkJobPollResponse - * @property {string} [status] - * @property {number} [total_records] - * @property {number} [success_records] - * @property {number} [failed_records] - * @property {string} [error_file] - * @property {Object} [created_on] - * @property {Object} [modified_on] - * @property {CreatedBy} [created_by] - * @property {CreatedBy} [modified_by] - */ /** * @typedef {| "about-us" * | "addresses" @@ -4420,113 +3279,8 @@ export = CatalogPlatformModel; declare class CatalogPlatformModel { } declare namespace CatalogPlatformModel { - export { SearchRequest, MerchandisingRuleQuery, MerchandisingRulesList, SuccessResponseMerchandising, MerchandiseQueryResponse, MerchandisingRuleQueryPost, PinItem, PinItemRequest, PinRequest, PinResponse, HideAttribute, HideAttributeRequest, HideResponse, HideRequest, BoostAttribute, GetMerchandisingRuleBoostAction, GetMerchandisingRuleBuryAction, Action, ActionProperties, ActionPage, AllSizes, AllowSingleRequest, AppCatalogConfiguration, AppCategoryReturnConfig, AppCategoryReturnConfigResponse, AppConfiguration, AppConfigurationCreateDetail, AppConfigurationDetail, AppConfigurationsResponse, AppConfigurationsSort, ValueConfigType, AppConfigurationsFilter, AppConfigurationsFilterResponse, ApplicationBrandJson, ApplicationCategoryJson, ApplicationDepartment, ApplicationDepartmentJson, ApplicationDepartmentListingResponse, ApplicationItemMOQ, ApplicationItemMeta, ApplicationItemSEO, ApplicationProductListingResponse, OperatorsResponse, ApplicationStoreJson, AppReturnConfigResponse, ArticleAssignment, ArticleAssignment1, ArticleQuery, ArticleStoreResponse, AssignStore, AssignStoreArticle, AttributeDetailsGroup, AttributeMaster, AttributeMasterDetails, AttributeMasterFilter, AttributeMasterMandatoryDetails, AttributeMasterMeta, AttributeMasterSerializer, AttributeSchemaRange, AutoCompleteMedia, AutocompleteAction, AutocompletePageAction, AutocompleteResult, BannerImage, BaseAppCategoryReturnConfig, BaseAppCategoryReturnConfigResponse, Brand, BrandLogo, BrandItem, BrandListingResponse, BrandMeta, BrandMeta1, BulkAssetResponse, BulkHsnDataResponse, BulkHsnResponse, BulkHsnUpsert, BulkInventoryGet, BulkInventoryGetItems, BulkProductUploadJob, BulkProductJob, BulkJob, BulkProductRequest, BulkResponse, CatalogInsightBrand, CatalogInsightItem, CatalogInsightResponse, CategoriesResponse, Category, ChannelListResponse, ChannelDetailResponse, ChannelItem, ChannelValidation, ProductValidation, BrandValidationItem, CompanyValidation, LocationValidation, CategoryCreateResponse, CategoryItems, CategoryListingResponse, CategoryMapping, CategoryMappingValues, CategoryRequestBody, CategoryResponse, CategoryUpdateResponse, Child, CollectionBadge, CollectionBanner, CollectionBannerResponse, BadgeDetail, CollectionCreateResponse, CollectionDetailResponse, CollectionImage, CollectionImageResponse, CollectionItem, CollectionItemUpdate, CollectionListingFilter, CollectionListingFilterTag, CollectionListingFilterType, CollectionQuery, CollectionSchedule, CompanyBrandDetail, CompanyMeta, CompanyMeta1, CompanyOptIn, ConfigErrorResponse, ConfigSuccessResponse, ConfigurationBucketPoints, ConfigurationListing, ConfigurationListingFilter, ConfigurationListingFilterConfig, ConfigurationListingFilterValue, ConfigurationListingSort, ConfigurationListingSortConfig, ConfigurationProduct, ConfigurationProductDetailsGroups, ConfigurationProductDetailsConfig, ConfigurationProductDetailsAttribute, ConfigurationProductConfig, ConfigurationProductSimilar, ConfigurationProductVariant, ConfigurationProductVariantConfig, CreateAutocompleteKeyword, CreateAutocompleteWordsResponse, CreateCollection, RerankingBoostItems, GetSearchRerankDetailResponse, BoostItem, GetSearchRerankItemResponse, GetSearchRerankResponse, CreateSearchRerankResponse, UpdateSearchRerankResponse, UpdateSearchRerankRequest, CreateSearchRerankRequest, CreateSearchConfigurationRequest, CreateSearchConfigurationResponse, CreateSearchKeyword, CreateUpdateAppReturnConfig, CrossSellingData, CrossSellingResponse, CustomOrder, DateMeta, DefaultKeyRequest, DeleteAppCategoryReturnConfig, DeleteResponse, DeleteSearchConfigurationResponse, DeleteSearchRerankConfigurationResponse, Department, DepartmentCategoryTree, DepartmentCreateErrorResponse, ProductBundleCreateErrorResponse, DepartmentCreateResponse, DepartmentCreateUpdate, DepartmentErrorResponse, DepartmentIdentifier, DepartmentModel, DepartmentResponse, ValidationFailedResponse, DepartmentsResponse, DimensionResponse, DimensionResponse1, Document, EntityConfiguration, ErrorResponse, CategoryErrorResponse, FilerList, RawProduct, RawProductListingResponse, GTIN, GenderDetail, GetAddressSerializer, GetAllSizes, FilterResponse, ValueItem, GetAppCatalogConfiguration, GetAppCatalogEntityConfiguration, GetAutocompleteWordsData, GetAutocompleteWordsResponse, GetCatalogConfigurationDetailsProduct, FilterItem, CompareFilter, SimilarFilter, VariantFilter, DetailFilter, DetailFilterValues, DisplayType, SimilarItem, VariantItem, GetCatalogConfigurationDetailsSchemaListing, GetCatalogConfigurationMetaData, GetCollectionDetailNest, GetCollectionItemsResponse, GetCollectionListingResponse, GetCollectionQueryOptionResponse, GetCompanySerializer, ConditionItem, DataItem, ValueTypeItem, SortTypeItem, GetConfigMetadataResponse, GetConfigMetadataValues, AttributeType, DataType, ListingValueConfigType, ListingDataType, GetListingConfigResponse, GetConfigResponse, GetDepartment, GetInventories, GetInventoriesResponse, GetLocationSerializer, GetOptInPlatform, GetProductBundleCreateResponse, GetProductBundleListingResponse, GetProductBundleResponse, GetProducts, GetCollectionDetailResponse, CommonResponseSchemaCollection, GetQueryFiltersResponse, GetCollectionItemsResponseSchema, Page1, CollectionItemSchemaV2, CollectionItemUpdateSchema, CollectionQuerySchemaV2, ProductDetailV2, GetSearchConfigurationResponse, GetSearchWordsData, GetSearchWordsDetailResponse, GetSearchWordsResponse, GlobalValidation, Guide, HSNCodesResponse, HSNData, HSNDataInsertV2, Hierarchy, HsnCode, SlabObject, UpdateHsnCodesObject, UpdateHsnCode, HsnCodesListingResponseSchemaV2, HsnCodesObject, HsnUpsert, Image, ImageUrls, InvSize, InventoryBulkRequest, InventoryConfig, InventoryCreateRequest, InventoryExportAdvanceOption, InventoryExportFilter, InventoryExportJobResponse, InventoryExportItem, InventoryExportJob, InventoryExportJobListFilters, InventoryExportJobListStats, InventoryExportJobList, InventoryExportJobListResponse, InventoryExportQuantityFilter, ExportPatchRequest, InventoryExportRequest, EditInventoryDataDownloadsResponse, EditInventoryDownloadsResponse, InventoryExportFiltersResponse, Stats, InventoryExportResponse, InventoryFailedReason, InventoryJobDetailResponse, InventoryJobFilters, InventoryJobPayload, InventoryPage, InventoryPayload, InventoryRequest, InventoryRequestSchemaV2, InventoryResponse, InventoryResponseItem, InventoryResponsePaginated, InventorySellerIdentifierResponsePaginated, InventorySellerResponse, InventorySet, InventoryStockResponse, InventoryUpdateResponse, InventoryValidationResponse, InvoiceCredSerializer, InvoiceDetailsSerializer, ItemQuery, Items, PriceRange, ProductPriceRangeSchema, LimitedProductData, ListSizeGuide, LocationDayWiseSerializer, LocationIntegrationType, LocationListSerializer, LocationManagerSerializer, LocationTimingSerializer, Logo, MOQData, ManufacturerResponse, ManufacturerResponse1, Media, Media1, Media2, Meta, GuideHeaders, GuideValues, Header, MetaDataListingFilterMetaResponse, MetaDataListingFilterResponse, MetaDataListingResponse, MetaDataListingSortMetaResponse, MetaDataListingSortResponse, MetaFields, NetQuantity, NetQuantityResponse, NextSchedule, OptInPostRequest, OptinCompanyBrandDetailsView, OptinAddress, OptinDocument, OptinBusinessCountryInfo, OptinCompanyDetail, OptinCompanyMetrics, OptinStoreDetails, OwnerAppItemResponse, PTErrorResponse, Page, PageResponse, PageResponse1, PageResponseType, Price, Price1, PriceArticle, PriceMeta, ProdcutTemplateCategoriesResponse, Product, ProductAttributesResponse, ProductBrand, ProductBulkAssets, ProductBulkRequest, InventoryBulkJob, ProductBulkResponse, InventoryBulkResponse, ProductBulkRequestList, ProductBundleItem, ProductBundleRequest, ProductBundleUpdateRequest, ProductConfigurationDownloads, ProductCreateUpdateSizesSchema, ProductCreateUpdateSchemaV2, ProductDetail, ProductDetailAttribute, ProductDetailGroupedAttribute, PatchProductDownloadsDataResponse, PatchProductDownloadsResponse, ProductDownloadFilters, CreateProductDownloadsDataResponse, CreateProductDownloadsResponse, GetProductDownloadsResponse, ProductDownloadsResponse, ProductFilters, ProductFiltersKey, ProductFiltersValue, ProductListingDetail, PageAction, ActionObject, ProductListingPrice, ProductListingResponse, ProductListingResponseV2, ProductVerificationModel, ProductPublish, ProductPublish1, ProductPublished, ProductReturnConfigSerializer, ProductReturnConfigBaseSerializer, CategorySubSchema, CategoryProduct, ProductSchemaV2, ProductSize, ProductSizeDeleteDataResponse, ProductSizeDeleteResponse, ProductSortOn, ProductSortOnv2, ProductTagsViewResponse, ProductTemplate, ProductTemplateDownloadsExport, ProductTemplateExportFilterRequest, ProductTemplateExportResponse, ProductVariants, CompanyVerificationStats, CompanyVerificationResponse, ProductVariantsResponse, Properties, Quantities, QuantitiesArticle, Quantity, QuantityBase, ReturnConfig, ReturnConfig1, ReturnConfig2, ReturnConfigResponse, Sitemap, ApplicationItemSeoAction, ApplicationItemSeoBreadcrumbs, ApplicationItemSeoMetaTagItem, ApplicationItemSeoMetaTags, Metatags, SizePromotionThreshold, SEOData, SearchKeywordResult, SearchableAttribute, SecondLevelChild, SellerPhoneNumber, SitemapDetail, SeoDetail, SetSize, SingleCategoryResponse, VariantTypesResponse, VariantTypeItem, SingleProductResponse, Size, SizeDistribution, SizeGuideResponse, StoreAssignResponse, Time, Timing, StoreItem, UserSchemaCustom, Manager, MobileNo, IntegrationType, Address, StoreDetail, StoreMeta, SuccessResponse, SuccessResponse1, TaxIdentifier, TaxSlab, TeaserTag, TemplateDetails, TemplateValidationData, TemplatesResponse, TemplatesValidationResponse, ThirdLevelChild, Trader, Trader1, Trader2, UpdateCollection, UpdateSearchConfigurationRequest, UpdateSearchConfigurationResponse, UpdatedResponse, UserCommon, UserDetail, UserDetail1, UserInfo, UserInfo1, UserSerializer, UserSerializer1, UserSerializer2, UserSerializer3, ValidateIdentifier, ValidateProduct, ValidateSizeGuide, VerifiedBy, WeightResponse, WeightResponse1, CreatedBy, Marketplaces, GetAllMarketplaces, CreateMarketplaceOptinRequest, UpdateMarketplaceOptinRequest, CreateMarketplaceOptinResponse, GetProductTemplateSlugItems, GetProductTemplateSlugResponse, UpdateMarketplaceOptinResponse, AutocompleteRequestSchema, AutocompleteUpsertResponseSchema, AutocompleteErrorResponseSchema, AutocompleteResponseSchema, ProductListingActionPage, ProductListingAction, AutocompleteItem, AutocompletePreviewResponseSchema, CreateAppPriceFactoryRequest, CreateAppPriceFactoryResponse, AppPriceFactory, EditAppPriceFactoryRequest, GetAppPriceFactoryResponse, CreateAppPriceFactoryProduct, PriceFactorySizes, CompanySizes, CreateAppPriceFactoryProductResponse, UpdateAppPriceFactoryProductRequest, UpdateAppPriceFactoryProductResponse, CreateAppPriceFactoryProductRequest, CreateAppPriceFactoryProductsResponse, CreateAppPriceFactoryProductBulkJobRequest, CreateAppPriceFactoryProductBulkJobResponse, CreateAppPriceFactoryProductBulkJobPollResponse, PageType }; + export { Action, ActionPage, AllSizes, AllowSingleRequest, AppCatalogConfiguration, AppCategoryReturnConfig, AppCategoryReturnConfigResponse, AppConfiguration, AppConfigurationDetail, AppConfigurationsSort, ApplicationBrandJson, ApplicationCategoryJson, ApplicationDepartment, ApplicationDepartmentJson, ApplicationDepartmentListingResponse, ApplicationItemMOQ, ApplicationItemMeta, ApplicationItemSEO, ApplicationProductListingResponse, ApplicationStoreJson, AppReturnConfigResponse, ArticleAssignment, ArticleAssignment1, ArticleQuery, ArticleStoreResponse, AssignStore, AssignStoreArticle, AttributeDetailsGroup, AttributeMaster, AttributeMasterDetails, AttributeMasterFilter, AttributeMasterMandatoryDetails, AttributeMasterMeta, AttributeMasterSerializer, AttributeSchemaRange, AutoCompleteMedia, AutocompleteAction, AutocompletePageAction, AutocompleteResult, BannerImage, BaseAppCategoryReturnConfig, BaseAppCategoryReturnConfigResponse, Brand, BrandItem, BrandListingResponse, BrandMeta, BrandMeta1, BulkAssetResponse, BulkHsnResponse, BulkHsnUpsert, BulkInventoryGet, BulkInventoryGetItems, BulkJob, BulkProductRequest, BulkResponse, CatalogInsightBrand, CatalogInsightItem, CatalogInsightResponse, CategoriesResponse, Category, CategoryCreateResponse, CategoryItems, CategoryListingResponse, CategoryMapping, CategoryMappingValues, CategoryRequestBody, CategoryResponse, CategoryUpdateResponse, Child, CollectionBadge, CollectionBanner, CollectionCreateResponse, CollectionDetailResponse, CollectionImage, CollectionItem, CollectionItemUpdate, CollectionListingFilter, CollectionListingFilterTag, CollectionListingFilterType, CollectionQuery, CollectionSchedule, CompanyBrandDetail, CompanyMeta, CompanyMeta1, CompanyOptIn, ConfigErrorResponse, ConfigSuccessResponse, ConfigurationBucketPoints, ConfigurationListing, ConfigurationListingFilter, ConfigurationListingFilterConfig, ConfigurationListingFilterValue, ConfigurationListingSort, ConfigurationListingSortConfig, ConfigurationProduct, ConfigurationProductConfig, ConfigurationProductSimilar, ConfigurationProductVariant, ConfigurationProductVariantConfig, CreateAutocompleteKeyword, CreateAutocompleteWordsResponse, CreateCollection, CreateSearchConfigurationRequest, CreateSearchConfigurationResponse, CreateSearchKeyword, CreateUpdateAppReturnConfig, CrossSellingData, CrossSellingResponse, CustomOrder, DateMeta, DefaultKeyRequest, DeleteAppCategoryReturnConfig, DeleteResponse, DeleteSearchConfigurationResponse, Department, DepartmentCategoryTree, DepartmentCreateErrorResponse, DepartmentCreateResponse, DepartmentCreateUpdate, DepartmentErrorResponse, DepartmentIdentifier, DepartmentModel, DepartmentResponse, DepartmentsResponse, DimensionResponse, DimensionResponse1, Document, EntityConfiguration, ErrorResponse, FilerList, RawProduct, RawProductListingResponse, GTIN, GenderDetail, GetAddressSerializer, GetAllSizes, GetAppCatalogConfiguration, GetAppCatalogEntityConfiguration, GetAutocompleteWordsData, GetAutocompleteWordsResponse, GetCatalogConfigurationDetailsProduct, GetCatalogConfigurationDetailsSchemaListing, GetCatalogConfigurationMetaData, GetCollectionDetailNest, GetCollectionItemsResponse, GetCollectionListingResponse, GetCollectionQueryOptionResponse, GetCompanySerializer, GetConfigMetadataResponse, GetConfigResponse, GetDepartment, GetInventories, GetInventoriesResponse, GetLocationSerializer, GetOptInPlatform, GetProductBundleCreateResponse, GetProductBundleListingResponse, GetProductBundleResponse, GetProducts, GetCollectionDetailResponse, CommonResponseSchemaCollection, GetQueryFiltersKeysResponse, GetQueryFiltersResponse, GetCollectionItemsResponseSchemaV2, Page1, CollectionItemSchemaV2, CollectionItemUpdateSchemaV2, CollectionQuerySchemaV2, ProductDetailV2, GetSearchConfigurationResponse, GetSearchWordsData, GetSearchWordsDetailResponse, GetSearchWordsResponse, GlobalValidation, Guide, HSNCodesResponse, HSNData, HSNDataInsertV2, Hierarchy, HsnCode, HsnCodesListingResponseSchemaV2, HsnCodesObject, HsnUpsert, Image, ImageUrls, InvSize, InventoryBulkRequest, InventoryConfig, InventoryCreateRequest, InventoryExportAdvanceOption, InventoryExportFilter, InventoryExportJob, InventoryExportJobListResponse, InventoryExportQuantityFilter, InventoryExportRequest, InventoryExportResponse, InventoryFailedReason, InventoryJobDetailResponse, InventoryJobFilters, InventoryJobPayload, InventoryPage, InventoryPayload, InventoryRequest, InventoryRequestSchemaV2, InventoryResponse, InventoryResponseItem, InventoryResponsePaginated, InventorySellerIdentifierResponsePaginated, InventorySellerResponse, InventorySet, InventoryStockResponse, InventoryUpdateResponse, InventoryValidationResponse, InvoiceCredSerializer, InvoiceDetailsSerializer, ItemQuery, Items, LimitedProductData, ListSizeGuide, LocationDayWiseSerializer, LocationIntegrationType, LocationListSerializer, LocationManagerSerializer, LocationTimingSerializer, Logo, MOQData, ManufacturerResponse, ManufacturerResponse1, Media, Media1, Media2, Meta, MetaDataListingFilterMetaResponse, MetaDataListingFilterResponse, MetaDataListingResponse, MetaDataListingSortMetaResponse, MetaDataListingSortResponse, MetaFields, NetQuantity, NetQuantityResponse, NextSchedule, OptInPostRequest, OptinCompanyBrandDetailsView, OptinCompanyDetail, OptinCompanyMetrics, OptinStoreDetails, OwnerAppItemResponse, PTErrorResponse, Page, PageResponse, PageResponse1, PageResponseType, Price, Price1, PriceArticle, PriceMeta, ProdcutTemplateCategoriesResponse, Product, ProductAttributesResponse, ProductBrand, ProductBulkAssets, ProductBulkRequest, ProductBulkRequestList, ProductBundleItem, ProductBundleRequest, ProductBundleUpdateRequest, ProductConfigurationDownloads, ProductCreateUpdateSchemaV2, ProductDetail, ProductDetailAttribute, ProductDetailGroupedAttribute, ProductDownloadsResponse, ProductFilters, GetQueryFiltersValuesResponse, ProductFiltersKeysOnly, ProductFiltersKey, ProductFiltersValue, ProductListingDetail, ProductListingPrice, ProductListingResponse, ProductListingResponseV2, ProductPublish, ProductPublish1, ProductPublished, ProductReturnConfigSerializer, ProductReturnConfigBaseSerializer, ProductSchemaV2, ProductSize, ProductSizeDeleteDataResponse, ProductSizeDeleteResponse, ProductSortOn, ProductTagsViewResponse, ProductTemplate, ProductTemplateDownloadsExport, ProductTemplateExportFilterRequest, ProductTemplateExportResponse, ProductVariants, ProductVariantsResponse, Properties, Quantities, QuantitiesArticle, Quantity, QuantityBase, ReturnConfig, ReturnConfig1, ReturnConfig2, ReturnConfigResponse, Sitemap, ApplicationItemSeoAction, ApplicationItemSeoBreadcrumbs, ApplicationItemSeoMetaTagItem, ApplicationItemSeoMetaTags, Metatags, SizePromotionThreshold, SEOData, SearchKeywordResult, SearchableAttribute, SecondLevelChild, SellerPhoneNumber, SeoDetail, SetSize, SingleCategoryResponse, SingleProductResponse, Size, SizeDistribution, SizeGuideResponse, StoreAssignResponse, StoreDetail, StoreMeta, SuccessResponse, SuccessResponse1, TaxIdentifier, TaxSlab, TeaserTag, TemplateDetails, TemplateValidationData, TemplatesResponse, TemplatesValidationResponse, ThirdLevelChild, Trader, Trader1, Trader2, UpdateCollection, UpdateSearchConfigurationRequest, UpdateSearchConfigurationResponse, UpdatedResponse, UserCommon, UserDetail, UserDetail1, UserInfo, UserInfo1, UserSerializer, UserSerializer1, UserSerializer2, UserSerializer3, ValidateIdentifier, ValidateProduct, ValidateSizeGuide, VerifiedBy, WeightResponse, WeightResponse1, CreatedBy, Marketplaces, GetAllMarketplaces, UpdateMarketplaceOptinRequest, UpdateMarketplaceOptinResponse, PageType }; } -/** @returns {SearchRequest} */ -declare function SearchRequest(): SearchRequest; -type SearchRequest = { - is_active?: boolean; - q?: string; - page_no?: number; - page_size?: number; -}; -/** @returns {MerchandisingRuleQuery} */ -declare function MerchandisingRuleQuery(): MerchandisingRuleQuery; -type MerchandisingRuleQuery = { - condition?: string; - search_query?: string; - synonyms?: string; -}; -/** @returns {MerchandisingRulesList} */ -declare function MerchandisingRulesList(): MerchandisingRulesList; -type MerchandisingRulesList = { - rule_id?: string; - query?: MerchandisingRuleQuery; - actions?: string[]; - zones?: string[]; -}; -/** @returns {SuccessResponseMerchandising} */ -declare function SuccessResponseMerchandising(): SuccessResponseMerchandising; -type SuccessResponseMerchandising = { - message?: string; -}; -/** @returns {MerchandiseQueryResponse} */ -declare function MerchandiseQueryResponse(): MerchandiseQueryResponse; -type MerchandiseQueryResponse = { - message?: string; - merchandising_rule_id?: string; -}; -/** @returns {MerchandisingRuleQueryPost} */ -declare function MerchandisingRuleQueryPost(): MerchandisingRuleQueryPost; -type MerchandisingRuleQueryPost = { - query_condition?: string; - query?: MerchandisingRuleQuery; - actions?: string[]; - zones?: string[]; -}; -/** @returns {PinItem} */ -declare function PinItem(): PinItem; -type PinItem = { - name?: string; - uid?: number; - position?: number; -}; -/** @returns {PinItemRequest} */ -declare function PinItemRequest(): PinItemRequest; -type PinItemRequest = { - action?: string; - item_id?: number; - position?: number; -}; -/** @returns {PinRequest} */ -declare function PinRequest(): PinRequest; -type PinRequest = { - action_value?: PinItemRequest[]; -}; -/** @returns {PinResponse} */ -declare function PinResponse(): PinResponse; -type PinResponse = { - data?: PinItem[]; -}; -/** @returns {HideAttribute} */ -declare function HideAttribute(): HideAttribute; -type HideAttribute = { - name?: string; - uid?: number; -}; -/** @returns {HideAttributeRequest} */ -declare function HideAttributeRequest(): HideAttributeRequest; -type HideAttributeRequest = { - action?: string; - item_id?: number; -}; -/** @returns {HideResponse} */ -declare function HideResponse(): HideResponse; -type HideResponse = { - data?: HideAttribute[]; -}; -/** @returns {HideRequest} */ -declare function HideRequest(): HideRequest; -type HideRequest = { - data?: HideAttributeRequest[]; -}; -/** @returns {BoostAttribute} */ -declare function BoostAttribute(): BoostAttribute; -type BoostAttribute = { - attribute?: string; - value?: string; - strength?: number; -}; -/** @returns {GetMerchandisingRuleBoostAction} */ -declare function GetMerchandisingRuleBoostAction(): GetMerchandisingRuleBoostAction; -type GetMerchandisingRuleBoostAction = { - data?: BoostAttribute[]; -}; -/** @returns {GetMerchandisingRuleBuryAction} */ -declare function GetMerchandisingRuleBuryAction(): GetMerchandisingRuleBuryAction; -type GetMerchandisingRuleBuryAction = { - data?: BoostAttribute[]; -}; /** @returns {Action} */ declare function Action(): Action; type Action = { @@ -4534,11 +3288,6 @@ type Action = { popup?: ActionPage; type?: string; }; -/** @returns {ActionProperties} */ -declare function ActionProperties(): ActionProperties; -type ActionProperties = { - collection?: string[]; -}; /** @returns {ActionPage} */ declare function ActionPage(): ActionPage; type ActionPage = { @@ -4570,17 +3319,11 @@ type AppCatalogConfiguration = { app_id: string; config_id?: string; config_type: string; - /** - * - The user who created the configuration. - */ - created_by?: UserSerializer; + created_by?: any; created_on?: string; id?: string; listing?: ConfigurationListing; - /** - * - The user who modified the configuration. - */ - modified_by?: UserSerializer; + modified_by?: any; modified_on?: string; product?: ConfigurationProduct; type?: string; @@ -4630,24 +3373,10 @@ type AppConfiguration = { product?: ConfigurationProduct; type?: string; }; -/** @returns {AppConfigurationCreateDetail} */ -declare function AppConfigurationCreateDetail(): AppConfigurationCreateDetail; -type AppConfigurationCreateDetail = { - app_id?: string; - attributes?: AttributeDetailsGroup[]; - is_active: boolean; - is_default: boolean; - logo?: string; - name?: string; - priority: number; - slug: string; - template_slugs?: string[]; -}; /** @returns {AppConfigurationDetail} */ declare function AppConfigurationDetail(): AppConfigurationDetail; type AppConfigurationDetail = { - id?: string; - app_id?: string; + app_id: string; attributes?: AttributeDetailsGroup[]; is_active: boolean; is_default: boolean; @@ -4657,48 +3386,11 @@ type AppConfigurationDetail = { slug: string; template_slugs?: string[]; }; -/** @returns {AppConfigurationsResponse} */ -declare function AppConfigurationsResponse(): AppConfigurationsResponse; -type AppConfigurationsResponse = { - id?: string; - app_id?: string; - default_key?: string; - is_active?: boolean; - is_default?: boolean; - key?: string; - logo?: string; - name?: string; - priority?: number; -}; /** @returns {AppConfigurationsSort} */ declare function AppConfigurationsSort(): AppConfigurationsSort; type AppConfigurationsSort = { app_id: string; - default_key?: string; - is_active: boolean; - is_default: boolean; - key: string; - logo?: string; - name?: string; - priority: number; -}; -/** @returns {ValueConfigType} */ -declare function ValueConfigType(): ValueConfigType; -type ValueConfigType = { - bucket_points?: any[]; - map?: any; - sort?: string; - condition?: string; - value?: string; -}; -/** @returns {AppConfigurationsFilter} */ -declare function AppConfigurationsFilter(): AppConfigurationsFilter; -type AppConfigurationsFilter = { - app_id: string; - allow_single?: boolean; - attribute_name?: string; - value_config?: ValueConfigType; - type?: string; + default_key: string; is_active: boolean; is_default: boolean; key: string; @@ -4706,22 +3398,6 @@ type AppConfigurationsFilter = { name?: string; priority: number; }; -/** @returns {AppConfigurationsFilterResponse} */ -declare function AppConfigurationsFilterResponse(): AppConfigurationsFilterResponse; -type AppConfigurationsFilterResponse = { - id?: string; - app_id?: string; - allow_single?: boolean; - attribute_name?: string; - value_config?: ValueConfigType; - type?: string; - is_active?: boolean; - is_default?: boolean; - key?: string; - logo?: string; - name?: string; - priority?: number; -}; /** @returns {ApplicationBrandJson} */ declare function ApplicationBrandJson(): ApplicationBrandJson; type ApplicationBrandJson = { @@ -4826,20 +3502,10 @@ declare function ApplicationProductListingResponse(): ApplicationProductListingR type ApplicationProductListingResponse = { filters?: ProductFilters[]; items?: ProductListingDetail[]; - operators?: OperatorsResponse; + operators?: any; page: Page; sort_on?: ProductSortOn[]; }; -/** @returns {OperatorsResponse} */ -declare function OperatorsResponse(): OperatorsResponse; -type OperatorsResponse = { - btw?: string; - lte?: string; - gte?: string; - gt?: string; - lt?: string; - nin?: string; -}; /** @returns {ApplicationStoreJson} */ declare function ApplicationStoreJson(): ApplicationStoreJson; type ApplicationStoreJson = { @@ -4848,8 +3514,6 @@ type ApplicationStoreJson = { /** @returns {AppReturnConfigResponse} */ declare function AppReturnConfigResponse(): AppReturnConfigResponse; type AppReturnConfigResponse = { - created_by?: CreatedBy; - modified_by?: CreatedBy; /** * - Channel identifier */ @@ -4863,6 +3527,14 @@ type AppReturnConfigResponse = { * - Unique identifer of company */ company_id?: number; + /** + * - User details + */ + created_by?: any; + /** + * - User details + */ + modified_by?: any; /** * - Modification date */ @@ -5051,7 +3723,7 @@ type BaseAppCategoryReturnConfig = { declare function BaseAppCategoryReturnConfigResponse(): BaseAppCategoryReturnConfigResponse; type BaseAppCategoryReturnConfigResponse = { data?: AppCategoryReturnConfigResponse[]; - page?: PageResponse1; + page?: PageResponse; }; /** @returns {Brand} */ declare function Brand(): Brand; @@ -5060,20 +3732,14 @@ type Brand = { name?: string; uid?: number; }; -/** @returns {BrandLogo} */ -declare function BrandLogo(): BrandLogo; -type BrandLogo = { - url?: string; - type?: string; -}; /** @returns {BrandItem} */ declare function BrandItem(): BrandItem; type BrandItem = { action?: Action; banners?: ImageUrls; - departments?: number[]; + departments?: string[]; discount?: string; - logo?: BrandLogo; + logo?: Media2; name?: string; slug?: string; uid?: number; @@ -5102,20 +3768,15 @@ type BulkAssetResponse = { items?: Items[]; page?: Page; }; -/** @returns {BulkHsnDataResponse} */ -declare function BulkHsnDataResponse(): BulkHsnDataResponse; -type BulkHsnDataResponse = { +/** @returns {BulkHsnResponse} */ +declare function BulkHsnResponse(): BulkHsnResponse; +type BulkHsnResponse = { /** * - Flag indicating the success status of the * bulk HSN operation. */ success?: boolean; }; -/** @returns {BulkHsnResponse} */ -declare function BulkHsnResponse(): BulkHsnResponse; -type BulkHsnResponse = { - data?: BulkHsnDataResponse; -}; /** @returns {BulkHsnUpsert} */ declare function BulkHsnUpsert(): BulkHsnUpsert; type BulkHsnUpsert = { @@ -5146,41 +3807,6 @@ type BulkInventoryGetItems = { succeed?: number; total?: number; }; -/** @returns {BulkProductUploadJob} */ -declare function BulkProductUploadJob(): BulkProductUploadJob; -type BulkProductUploadJob = { - /** - * - The ID of the company - */ - company_id?: number; - /** - * - Total records to be imported - */ - total?: number; - /** - * - Successfully imported records - */ - succeed?: number; - /** - * - The import stage - */ - stage?: string; - file_path?: string; - /** - * - Template tag for the import - */ - template_tag?: string; - tracking_url?: string; -}; -/** @returns {BulkProductJob} */ -declare function BulkProductJob(): BulkProductJob; -type BulkProductJob = { - company_id?: string; - template_tag?: string; - product_type?: string; - department?: string; - file_path?: string; -}; /** @returns {BulkJob} */ declare function BulkJob(): BulkJob; type BulkJob = { @@ -5360,78 +3986,6 @@ type Category = { */ uid?: number; }; -/** @returns {ChannelListResponse} */ -declare function ChannelListResponse(): ChannelListResponse; -type ChannelListResponse = { - items?: ChannelItem[]; - page?: Page; -}; -/** @returns {ChannelDetailResponse} */ -declare function ChannelDetailResponse(): ChannelDetailResponse; -type ChannelDetailResponse = { - created_on?: string; - created_by?: CreatedBy; - name?: string; - logo?: string; - validation?: ChannelValidation; - _id?: string; - description?: string; - slug?: string; - app_id?: string; - modified_by?: CreatedBy; - modified_on?: string; - display_name?: string; -}; -/** @returns {ChannelItem} */ -declare function ChannelItem(): ChannelItem; -type ChannelItem = { - logo?: string; - modified_by?: CreatedBy; - created_by?: CreatedBy; - slug?: string; - name?: string; - app_id?: string; - modified_on?: string; - _id?: string; - description?: string; - validation?: ChannelValidation; - created_on?: string; - display_name?: string; -}; -/** @returns {ChannelValidation} */ -declare function ChannelValidation(): ChannelValidation; -type ChannelValidation = { - product?: ProductValidation; - brand?: BrandValidationItem; - company?: CompanyValidation; - location?: LocationValidation; -}; -/** @returns {ProductValidation} */ -declare function ProductValidation(): ProductValidation; -type ProductValidation = { - gated_category_applicable?: boolean; - imageless_products?: boolean; - stage?: string; -}; -/** @returns {BrandValidationItem} */ -declare function BrandValidationItem(): BrandValidationItem; -type BrandValidationItem = { - stage?: string; - consent_doc_required?: boolean; -}; -/** @returns {CompanyValidation} */ -declare function CompanyValidation(): CompanyValidation; -type CompanyValidation = { - bank_ac_required?: boolean; - gst_required?: boolean; - verified?: boolean; -}; -/** @returns {LocationValidation} */ -declare function LocationValidation(): LocationValidation; -type LocationValidation = { - gst_required?: boolean; - stage?: string; -}; /** @returns {CategoryCreateResponse} */ declare function CategoryCreateResponse(): CategoryCreateResponse; type CategoryCreateResponse = { @@ -5584,44 +4138,27 @@ type CollectionBanner = { landscape: CollectionImage; portrait: CollectionImage; }; -/** @returns {CollectionBannerResponse} */ -declare function CollectionBannerResponse(): CollectionBannerResponse; -type CollectionBannerResponse = { - landscape?: CollectionImageResponse; - portrait?: CollectionImageResponse; -}; -/** @returns {BadgeDetail} */ -declare function BadgeDetail(): BadgeDetail; -type BadgeDetail = { - color?: string; - text?: string; -}; /** @returns {CollectionCreateResponse} */ declare function CollectionCreateResponse(): CollectionCreateResponse; type CollectionCreateResponse = { - badge?: CollectionBadge; - banners?: CollectionBannerResponse; + uid?: string; + _schedule?: any; + allow_facets?: boolean; + allow_sort?: boolean; + app_id?: string; + badge?: any; + banners?: ImageUrls; + cron?: any; description?: string; is_active?: boolean; - is_visible?: boolean; - logo?: CollectionImageResponse; + logo?: BannerImage; meta?: any; name?: string; priority?: number; - published?: boolean; query?: CollectionQuery[]; - seo?: SeoDetail; - _custom_json?: any; - _locale_language?: any; - _schedule?: CollectionSchedule; - action?: Action; - uid?: string; - allow_facets?: boolean; - allow_sort?: boolean; - app_id?: string; slug?: string; sort_on?: string; - tags?: string[]; + tag?: string[]; type?: string; visible_facets_keys?: string[]; }; @@ -5651,16 +4188,8 @@ type CollectionDetailResponse = { /** @returns {CollectionImage} */ declare function CollectionImage(): CollectionImage; type CollectionImage = { - aspect_ratio?: string; - url?: string; - secure_url?: string; - type?: string; -}; -/** @returns {CollectionImageResponse} */ -declare function CollectionImageResponse(): CollectionImageResponse; -type CollectionImageResponse = { - type?: string; - url?: string; + aspect_ratio: string; + url: string; }; /** @returns {CollectionItem} */ declare function CollectionItem(): CollectionItem; @@ -5714,7 +4243,7 @@ type CollectionQuery = { /** * - The value of the attribute of the collection query */ - value: string[]; + value: any[]; }; /** @returns {CollectionSchedule} */ declare function CollectionSchedule(): CollectionSchedule; @@ -5732,9 +4261,6 @@ type CompanyBrandDetail = { brand_name?: string; company_id?: number; total_article?: number; - logo?: any; - name?: string; - id?: number; }; /** @returns {CompanyMeta} */ declare function CompanyMeta(): CompanyMeta; @@ -5763,8 +4289,6 @@ type CompanyOptIn = { /** @returns {ConfigErrorResponse} */ declare function ConfigErrorResponse(): ConfigErrorResponse; type ConfigErrorResponse = { - code?: string; - errors?: any; message: string; }; /** @returns {ConfigSuccessResponse} */ @@ -5782,8 +4306,8 @@ type ConfigurationBucketPoints = { /** @returns {ConfigurationListing} */ declare function ConfigurationListing(): ConfigurationListing; type ConfigurationListing = { - filter?: ConfigurationListingFilter; - sort?: ConfigurationListingSort; + filter: ConfigurationListingFilter; + sort: ConfigurationListingSort; }; /** @returns {ConfigurationListingFilter} */ declare function ConfigurationListingFilter(): ConfigurationListingFilter; @@ -5832,34 +4356,8 @@ type ConfigurationListingSortConfig = { /** @returns {ConfigurationProduct} */ declare function ConfigurationProduct(): ConfigurationProduct; type ConfigurationProduct = { - similar?: ConfigurationProductSimilar; - variant?: ConfigurationProductVariant; - details_groups?: ConfigurationProductDetailsGroups; -}; -/** @returns {ConfigurationProductDetailsGroups} */ -declare function ConfigurationProductDetailsGroups(): ConfigurationProductDetailsGroups; -type ConfigurationProductDetailsGroups = { - config?: ConfigurationProductDetailsConfig[]; -}; -/** @returns {ConfigurationProductDetailsConfig} */ -declare function ConfigurationProductDetailsConfig(): ConfigurationProductDetailsConfig; -type ConfigurationProductDetailsConfig = { - name?: string; - slug?: string; - priority?: number; - template_slugs?: string[]; - attributes?: ConfigurationProductDetailsAttribute[]; - is_active?: boolean; -}; -/** @returns {ConfigurationProductDetailsAttribute} */ -declare function ConfigurationProductDetailsAttribute(): ConfigurationProductDetailsAttribute; -type ConfigurationProductDetailsAttribute = { - name?: string; - slug?: string; - display_type?: string; - priority?: number; - is_active?: boolean; - key?: string; + similar: ConfigurationProductSimilar; + variant: ConfigurationProductVariant; }; /** @returns {ConfigurationProductConfig} */ declare function ConfigurationProductConfig(): ConfigurationProductConfig; @@ -5901,16 +4399,13 @@ type CreateAutocompleteKeyword = { is_active?: boolean; results?: AutocompleteResult[]; words?: string[]; - action?: AutocompleteAction; }; /** @returns {CreateAutocompleteWordsResponse} */ declare function CreateAutocompleteWordsResponse(): CreateAutocompleteWordsResponse; type CreateAutocompleteWordsResponse = { - uid?: string; - is_active?: boolean; - results?: AutocompleteResult[]; _custom_json?: any; app_id?: string; + results?: any[]; words?: string[]; }; /** @returns {CreateCollection} */ @@ -5921,7 +4416,7 @@ type CreateCollection = { _schedule?: CollectionSchedule; allow_facets?: boolean; allow_sort?: boolean; - app_id?: string; + app_id: string; badge?: CollectionBadge; banners: CollectionBanner; created_by?: UserInfo; @@ -5942,107 +4437,6 @@ type CreateCollection = { type: string; visible_facets_keys?: string[]; }; -/** @returns {RerankingBoostItems} */ -declare function RerankingBoostItems(): RerankingBoostItems; -type RerankingBoostItems = { - boost?: BoostItem[]; -}; -/** @returns {GetSearchRerankDetailResponse} */ -declare function GetSearchRerankDetailResponse(): GetSearchRerankDetailResponse; -type GetSearchRerankDetailResponse = { - ranking?: RerankingBoostItems; - is_active?: boolean; - modified_by?: CreatedBy; - created_by?: CreatedBy; - words?: string[]; - app_id?: string; - modified_on?: string; - created_on?: string; - id?: string; -}; -/** @returns {BoostItem} */ -declare function BoostItem(): BoostItem; -type BoostItem = { - attribute_key?: string; - attribute_value?: string; -}; -/** @returns {GetSearchRerankItemResponse} */ -declare function GetSearchRerankItemResponse(): GetSearchRerankItemResponse; -type GetSearchRerankItemResponse = { - created_on?: string; - modified_on?: string; - words?: string[]; - app_id?: string; - /** - * - The user who modified the search rerank. - */ - modified_by?: CreatedBy; - ranking?: RerankingBoostItems; - /** - * - The user who created the search rerank. - */ - created_by?: CreatedBy; - is_active?: boolean; - id?: string; -}; -/** @returns {GetSearchRerankResponse} */ -declare function GetSearchRerankResponse(): GetSearchRerankResponse; -type GetSearchRerankResponse = { - items?: GetSearchRerankItemResponse[]; - page?: PageResponse1; -}; -/** @returns {CreateSearchRerankResponse} */ -declare function CreateSearchRerankResponse(): CreateSearchRerankResponse; -type CreateSearchRerankResponse = { - words?: string[]; - app_id?: string; - ranking?: RerankingBoostItems; - is_active?: boolean; - created_on?: string; - /** - * - The user who created the search rerank. - */ - created_by?: CreatedBy; - modified_on?: string; - /** - * - The user who modified the search rerank. - */ - modified_by?: CreatedBy; -}; -/** @returns {UpdateSearchRerankResponse} */ -declare function UpdateSearchRerankResponse(): UpdateSearchRerankResponse; -type UpdateSearchRerankResponse = { - words?: string[]; - app_id?: string; - ranking?: RerankingBoostItems; - is_active?: boolean; - created_on?: string; - /** - * - The user who created the search rerank. - */ - created_by?: CreatedBy; - modified_on?: string; - /** - * - The user who modified the search rerank. - */ - modified_by?: CreatedBy; -}; -/** @returns {UpdateSearchRerankRequest} */ -declare function UpdateSearchRerankRequest(): UpdateSearchRerankRequest; -type UpdateSearchRerankRequest = { - words?: string[]; - is_active?: boolean; - application_id?: string; - ranking?: RerankingBoostItems; -}; -/** @returns {CreateSearchRerankRequest} */ -declare function CreateSearchRerankRequest(): CreateSearchRerankRequest; -type CreateSearchRerankRequest = { - words?: string[]; - is_active?: boolean; - application_id?: string; - ranking?: RerankingBoostItems; -}; /** @returns {CreateSearchConfigurationRequest} */ declare function CreateSearchConfigurationRequest(): CreateSearchConfigurationRequest; type CreateSearchConfigurationRequest = { @@ -6130,8 +4524,8 @@ type CrossSellingData = { /** @returns {CrossSellingResponse} */ declare function CrossSellingResponse(): CrossSellingResponse; type CrossSellingResponse = { - articles?: number; - products?: number; + brand_distribution?: CatalogInsightBrand; + data?: CrossSellingData; }; /** @returns {CustomOrder} */ declare function CustomOrder(): CustomOrder; @@ -6179,12 +4573,6 @@ declare function DeleteSearchConfigurationResponse(): DeleteSearchConfigurationR type DeleteSearchConfigurationResponse = { success?: boolean; }; -/** @returns {DeleteSearchRerankConfigurationResponse} */ -declare function DeleteSearchRerankConfigurationResponse(): DeleteSearchRerankConfigurationResponse; -type DeleteSearchRerankConfigurationResponse = { - success?: boolean; - message?: string; -}; /** @returns {Department} */ declare function Department(): Department; type Department = { @@ -6203,12 +4591,7 @@ type DepartmentCategoryTree = { /** @returns {DepartmentCreateErrorResponse} */ declare function DepartmentCreateErrorResponse(): DepartmentCreateErrorResponse; type DepartmentCreateErrorResponse = { - error?: any; -}; -/** @returns {ProductBundleCreateErrorResponse} */ -declare function ProductBundleCreateErrorResponse(): ProductBundleCreateErrorResponse; -type ProductBundleCreateErrorResponse = { - error?: any; + error?: string; }; /** @returns {DepartmentCreateResponse} */ declare function DepartmentCreateResponse(): DepartmentCreateResponse; @@ -6256,6 +4639,10 @@ type DepartmentModel = { * - User details of the creator of the document */ created_by?: UserDetail; + /** + * - Timestamp of the creation of the document + */ + created_on: string; /** * - Whether the department is currently active */ @@ -6269,6 +4656,10 @@ type DepartmentModel = { * the document */ modified_by?: UserDetail; + /** + * - Timestamp of the last modification of the document + */ + modified_on: string; /** * - The name of the department */ @@ -6305,14 +4696,6 @@ declare function DepartmentResponse(): DepartmentResponse; type DepartmentResponse = { items?: Department[]; }; -/** @returns {ValidationFailedResponse} */ -declare function ValidationFailedResponse(): ValidationFailedResponse; -type ValidationFailedResponse = { - /** - * - Response message for failed validation - */ - message?: string; -}; /** @returns {DepartmentsResponse} */ declare function DepartmentsResponse(): DepartmentsResponse; type DepartmentsResponse = { @@ -6363,9 +4746,9 @@ type Document = { /** @returns {EntityConfiguration} */ declare function EntityConfiguration(): EntityConfiguration; type EntityConfiguration = { - app_id?: string; + app_id: string; config_id?: string; - config_type?: string; + config_type: string; id?: string; listing?: GetCatalogConfigurationDetailsSchemaListing; product?: GetCatalogConfigurationDetailsProduct; @@ -6373,19 +4756,12 @@ type EntityConfiguration = { /** @returns {ErrorResponse} */ declare function ErrorResponse(): ErrorResponse; type ErrorResponse = { - code?: number; + code?: string; error?: string; message?: string; meta?: any; status?: number; }; -/** @returns {CategoryErrorResponse} */ -declare function CategoryErrorResponse(): CategoryErrorResponse; -type CategoryErrorResponse = { - code?: string; - error?: any; - message?: string; -}; /** @returns {FilerList} */ declare function FilerList(): FilerList; type FilerList = { @@ -6474,36 +4850,18 @@ type GTIN = { /** @returns {GenderDetail} */ declare function GenderDetail(): GenderDetail; type GenderDetail = { - /** - * - It is Date and time when the attribute was created. - */ - created_on?: string; - /** - * - It is Date and time when the attribute was modified. - */ - modified_on?: string; - /** - * - Details of the user who created the attribute. - */ - created_by?: CreatedBy; - /** - * - Details of the user who last modified - * the attribute. - */ - modified_by?: CreatedBy; departments?: string[]; description?: string; details?: AttributeMasterDetails; enabled_for_end_consumer?: boolean; filters?: AttributeMasterFilter; - _id?: string; + id?: string; is_nested?: boolean; logo?: string; meta?: AttributeMasterMeta; name?: string; schema?: AttributeMaster; slug?: string; - variant?: boolean; }; /** @returns {GetAddressSerializer} */ declare function GetAddressSerializer(): GetAddressSerializer; @@ -6525,17 +4883,6 @@ declare function GetAllSizes(): GetAllSizes; type GetAllSizes = { all_sizes?: AllSizes[]; }; -/** @returns {FilterResponse} */ -declare function FilterResponse(): FilterResponse; -type FilterResponse = { - values?: ValueItem[]; -}; -/** @returns {ValueItem} */ -declare function ValueItem(): ValueItem; -type ValueItem = { - text?: string; - value?: string; -}; /** @returns {GetAppCatalogConfiguration} */ declare function GetAppCatalogConfiguration(): GetAppCatalogConfiguration; type GetAppCatalogConfiguration = { @@ -6551,11 +4898,11 @@ type GetAppCatalogEntityConfiguration = { /** @returns {GetAutocompleteWordsData} */ declare function GetAutocompleteWordsData(): GetAutocompleteWordsData; type GetAutocompleteWordsData = { - results?: AutocompleteResult[]; + _custom_json?: any; app_id?: string; - words?: string[]; - is_active?: boolean; + results?: any[]; uid?: string; + words?: string[]; }; /** @returns {GetAutocompleteWordsResponse} */ declare function GetAutocompleteWordsResponse(): GetAutocompleteWordsResponse; @@ -6566,62 +4913,10 @@ type GetAutocompleteWordsResponse = { /** @returns {GetCatalogConfigurationDetailsProduct} */ declare function GetCatalogConfigurationDetailsProduct(): GetCatalogConfigurationDetailsProduct; type GetCatalogConfigurationDetailsProduct = { - compare?: CompareFilter; - similar?: SimilarFilter; - variant?: VariantFilter; - detail?: DetailFilter; -}; -/** @returns {FilterItem} */ -declare function FilterItem(): FilterItem; -type FilterItem = { - key?: string; - display?: string; - filter_types?: string[]; - units?: string[]; -}; -/** @returns {CompareFilter} */ -declare function CompareFilter(): CompareFilter; -type CompareFilter = { - data?: FilterItem[]; -}; -/** @returns {SimilarFilter} */ -declare function SimilarFilter(): SimilarFilter; -type SimilarFilter = { - data?: SimilarItem[]; -}; -/** @returns {VariantFilter} */ -declare function VariantFilter(): VariantFilter; -type VariantFilter = { - data?: VariantItem[]; -}; -/** @returns {DetailFilter} */ -declare function DetailFilter(): DetailFilter; -type DetailFilter = { - data?: FilterItem[]; - values?: DetailFilterValues; -}; -/** @returns {DetailFilterValues} */ -declare function DetailFilterValues(): DetailFilterValues; -type DetailFilterValues = { - display_type?: DisplayType[]; -}; -/** @returns {DisplayType} */ -declare function DisplayType(): DisplayType; -type DisplayType = { - key?: string; - display?: string; -}; -/** @returns {SimilarItem} */ -declare function SimilarItem(): SimilarItem; -type SimilarItem = { - key?: string; - display?: string; -}; -/** @returns {VariantItem} */ -declare function VariantItem(): VariantItem; -type VariantItem = { - key?: string; - display?: string; + compare?: any; + detail?: any; + similar?: any; + variant?: any; }; /** @returns {GetCatalogConfigurationDetailsSchemaListing} */ declare function GetCatalogConfigurationDetailsSchemaListing(): GetCatalogConfigurationDetailsSchemaListing; @@ -6692,109 +4987,24 @@ type GetCompanySerializer = { modified_by?: UserSerializer2; modified_on?: string; name?: string; - reject_reason?: string; - stage?: string; - uid?: number; - verified_by?: UserSerializer2; - verified_on?: string; -}; -/** @returns {ConditionItem} */ -declare function ConditionItem(): ConditionItem; -type ConditionItem = { - key?: string; - display?: string; -}; -/** @returns {DataItem} */ -declare function DataItem(): DataItem; -type DataItem = { - key?: string; - display?: string; - filter_types?: string[]; - compatible_units?: string[]; -}; -/** @returns {ValueTypeItem} */ -declare function ValueTypeItem(): ValueTypeItem; -type ValueTypeItem = { - key?: string; - display?: string; -}; -/** @returns {SortTypeItem} */ -declare function SortTypeItem(): SortTypeItem; -type SortTypeItem = { - key?: string; - display?: string; + reject_reason?: string; + stage?: string; + uid?: number; + verified_by?: UserSerializer2; + verified_on?: string; }; /** @returns {GetConfigMetadataResponse} */ declare function GetConfigMetadataResponse(): GetConfigMetadataResponse; type GetConfigMetadataResponse = { + condition?: any[]; + data: any[]; page?: Page; - condition?: ConditionItem[]; - data: DataItem[]; - values?: GetConfigMetadataValues; -}; -/** @returns {GetConfigMetadataValues} */ -declare function GetConfigMetadataValues(): GetConfigMetadataValues; -type GetConfigMetadataValues = { - type?: ValueTypeItem[]; - sort?: SortTypeItem[]; -}; -/** @returns {AttributeType} */ -declare function AttributeType(): AttributeType; -type AttributeType = { - unit?: string; - priority?: number; - name?: string; - key?: string; - display_type?: string; - is_active?: boolean; - slug?: string; -}; -/** @returns {DataType} */ -declare function DataType(): DataType; -type DataType = { - app_id?: string; - is_default?: boolean; - priority?: number; - name?: string; - attributes?: AttributeType[]; - is_active?: boolean; - slug?: string; - id?: string; -}; -/** @returns {ListingValueConfigType} */ -declare function ListingValueConfigType(): ListingValueConfigType; -type ListingValueConfigType = { - sort?: string; - bucket_points?: any[]; - map?: any; - condition?: string; - value?: string; -}; -/** @returns {ListingDataType} */ -declare function ListingDataType(): ListingDataType; -type ListingDataType = { - app_id?: string; - allow_single?: boolean; - id?: string; - is_active?: boolean; - key?: string; - name?: string; - is_default?: boolean; - priority?: number; - logo?: string; - value_config?: ListingValueConfigType; - type?: string; -}; -/** @returns {GetListingConfigResponse} */ -declare function GetListingConfigResponse(): GetListingConfigResponse; -type GetListingConfigResponse = { - data?: ListingDataType[]; - page?: PageResponseType; + values?: any[]; }; /** @returns {GetConfigResponse} */ declare function GetConfigResponse(): GetConfigResponse; type GetConfigResponse = { - data: DataType[]; + data: any[]; page: PageResponseType; }; /** @returns {GetDepartment} */ @@ -6894,21 +5104,15 @@ type GetOptInPlatform = { /** @returns {GetProductBundleCreateResponse} */ declare function GetProductBundleCreateResponse(): GetProductBundleCreateResponse; type GetProductBundleCreateResponse = { - /** - * - The user who created the product bundle. - */ - created_by?: UserSerializer; - /** - * - The user who created the product bundle. - */ - modified_by?: UserSerializer; choice: string; company_id?: number; + created_by?: any; created_on?: string; id?: string; is_active: boolean; logo?: string; meta?: any; + modified_by?: any; modified_on?: string; name: string; page_visibility?: string[]; @@ -6983,19 +5187,25 @@ declare function CommonResponseSchemaCollection(): CommonResponseSchemaCollectio type CommonResponseSchemaCollection = { message?: string; }; +/** @returns {GetQueryFiltersKeysResponse} */ +declare function GetQueryFiltersKeysResponse(): GetQueryFiltersKeysResponse; +type GetQueryFiltersKeysResponse = { + filters?: ProductFiltersKeysOnly[]; + operators: any; + sort_on?: ProductSortOn[]; +}; /** @returns {GetQueryFiltersResponse} */ declare function GetQueryFiltersResponse(): GetQueryFiltersResponse; type GetQueryFiltersResponse = { filters?: ProductFilters[]; - operators?: any; + operators: any; sort_on?: ProductSortOn[]; }; -/** @returns {GetCollectionItemsResponseSchema} */ -declare function GetCollectionItemsResponseSchema(): GetCollectionItemsResponseSchema; -type GetCollectionItemsResponseSchema = { +/** @returns {GetCollectionItemsResponseSchemaV2} */ +declare function GetCollectionItemsResponseSchemaV2(): GetCollectionItemsResponseSchemaV2; +type GetCollectionItemsResponseSchemaV2 = { items?: ProductDetailV2[]; - sort_on?: ProductSortOnv2[]; - page?: Page; + page?: Page1; }; /** @returns {Page1} */ declare function Page1(): Page1; @@ -7017,16 +5227,15 @@ type CollectionItemSchemaV2 = { item_id: number; priority?: number; }; -/** @returns {CollectionItemUpdateSchema} */ -declare function CollectionItemUpdateSchema(): CollectionItemUpdateSchema; -type CollectionItemUpdateSchema = { +/** @returns {CollectionItemUpdateSchemaV2} */ +declare function CollectionItemUpdateSchemaV2(): CollectionItemUpdateSchemaV2; +type CollectionItemUpdateSchemaV2 = { allow_facets?: boolean; allow_sort?: boolean; items?: CollectionItemSchemaV2[]; query?: CollectionQuerySchemaV2[]; type: string; visible_facets_keys?: string[]; - reset_items?: boolean; }; /** @returns {CollectionQuerySchemaV2} */ declare function CollectionQuerySchemaV2(): CollectionQuerySchemaV2; @@ -7040,7 +5249,10 @@ type CollectionQuerySchemaV2 = { * collection query */ op: string; - value: string[]; + /** + * - The value of the attribute of the collection query + */ + value: any[]; }; /** @returns {ProductDetailV2} */ declare function ProductDetailV2(): ProductDetailV2; @@ -7060,10 +5272,6 @@ type ProductDetailV2 = { /** @returns {GetSearchConfigurationResponse} */ declare function GetSearchConfigurationResponse(): GetSearchConfigurationResponse; type GetSearchConfigurationResponse = { - /** - * - The id of the search configuration. - */ - _id?: string; /** * - The application id where custom search * configuration is set @@ -7111,8 +5319,6 @@ type GetSearchConfigurationResponse = { /** @returns {GetSearchWordsData} */ declare function GetSearchWordsData(): GetSearchWordsData; type GetSearchWordsData = { - query?: any; - sort_on?: string; _custom_json?: any; app_id?: string; is_active?: boolean; @@ -7162,10 +5368,6 @@ type HSNData = { /** @returns {HSNDataInsertV2} */ declare function HSNDataInsertV2(): HSNDataInsertV2; type HSNDataInsertV2 = { - /** - * - ID of the HSN. - */ - id?: string; /** * - Country code. */ @@ -7173,12 +5375,7 @@ type HSNDataInsertV2 = { /** * - Details of the user who created the HSN data. */ - created_by?: CreatedBy; - /** - * - Details of the user who last modified - * the HSN data. - */ - modified_by?: CreatedBy; + created_by?: any; /** * - Date and time when the HSN data was created. */ @@ -7195,6 +5392,10 @@ type HSNDataInsertV2 = { * - Unique identifier of the HSN code. */ hsn_code_id?: string; + /** + * - Details of the user who last modified the HSN data. + */ + modified_by?: any; /** * - Date and time when the HSN data was last modified. */ @@ -7239,45 +5440,11 @@ type HsnCode = { */ data?: HsnCodesObject; }; -/** @returns {SlabObject} */ -declare function SlabObject(): SlabObject; -type SlabObject = { - threshold?: number; - tax?: number; -}; -/** @returns {UpdateHsnCodesObject} */ -declare function UpdateHsnCodesObject(): UpdateHsnCodesObject; -type UpdateHsnCodesObject = { - modified_by?: CreatedBy; - /** - * - The ID of the company. - */ - company_id?: number; - slabs?: SlabObject[]; - /** - * - The HS2 code. - */ - hs2_code?: string; - /** - * - The HSN code. - */ - hsn_code?: string; - tax_on?: string; - id?: string; -}; -/** @returns {UpdateHsnCode} */ -declare function UpdateHsnCode(): UpdateHsnCode; -type UpdateHsnCode = { - /** - * - The HSN code data. - */ - data?: UpdateHsnCodesObject; -}; /** @returns {HsnCodesListingResponseSchemaV2} */ declare function HsnCodesListingResponseSchemaV2(): HsnCodesListingResponseSchemaV2; type HsnCodesListingResponseSchemaV2 = { items?: HSNDataInsertV2[]; - page?: PageResponse1; + page?: PageResponse; }; /** @returns {HsnCodesObject} */ declare function HsnCodesObject(): HsnCodesObject; @@ -7446,7 +5613,7 @@ type InventoryBulkRequest = { declare function InventoryConfig(): InventoryConfig; type InventoryConfig = { data?: FilerList[]; - multivalue?: boolean; + multivalues?: boolean; }; /** @returns {InventoryCreateRequest} */ declare function InventoryCreateRequest(): InventoryCreateRequest; @@ -7507,30 +5674,6 @@ type InventoryExportFilter = { */ to_date?: string; }; -/** @returns {InventoryExportJobResponse} */ -declare function InventoryExportJobResponse(): InventoryExportJobResponse; -type InventoryExportJobResponse = { - items?: InventoryExportItem[]; -}; -/** @returns {InventoryExportItem} */ -declare function InventoryExportItem(): InventoryExportItem; -type InventoryExportItem = { - status?: string; - type?: string; - stats?: any; - completed_on?: string; - created_on?: string; - modified_on?: string; - seller_id?: number; - task_id?: string; - notification_emails?: string[]; - created_by?: CreatedBy; - _id?: string; - url?: string; - trigger_on?: string; - brand?: number[]; - store?: number[]; -}; /** @returns {InventoryExportJob} */ declare function InventoryExportJob(): InventoryExportJob; type InventoryExportJob = { @@ -7568,41 +5711,14 @@ type InventoryExportJob = { */ url?: string; }; -/** @returns {InventoryExportJobListFilters} */ -declare function InventoryExportJobListFilters(): InventoryExportJobListFilters; -type InventoryExportJobListFilters = { - brand_ids?: number[]; - store_ids?: number[]; - brands?: string[]; - stores?: string[]; -}; -/** @returns {InventoryExportJobListStats} */ -declare function InventoryExportJobListStats(): InventoryExportJobListStats; -type InventoryExportJobListStats = { - success?: number; - total?: number; -}; -/** @returns {InventoryExportJobList} */ -declare function InventoryExportJobList(): InventoryExportJobList; -type InventoryExportJobList = { - status?: string; - completed_on?: string; - notification_emails?: string[]; - filters?: InventoryExportJobListFilters; - stats?: InventoryExportJobListStats; - type?: string; - modified_on?: string; - created_on?: string; - seller_id?: number; - url?: string; - task_id?: string; - created_by?: CreatedBy; - id?: string; -}; /** @returns {InventoryExportJobListResponse} */ declare function InventoryExportJobListResponse(): InventoryExportJobListResponse; type InventoryExportJobListResponse = { - items?: InventoryExportJobList[]; + /** + * - This is the list/history of + * all the jobs. + */ + items: InventoryJobDetailResponse; }; /** @returns {InventoryExportQuantityFilter} */ declare function InventoryExportQuantityFilter(): InventoryExportQuantityFilter; @@ -7620,12 +5736,6 @@ type InventoryExportQuantityFilter = { */ operators: string; }; -/** @returns {ExportPatchRequest} */ -declare function ExportPatchRequest(): ExportPatchRequest; -type ExportPatchRequest = { - notification_emails?: string[]; - status?: string; -}; /** @returns {InventoryExportRequest} */ declare function InventoryExportRequest(): InventoryExportRequest; type InventoryExportRequest = { @@ -7633,46 +5743,21 @@ type InventoryExportRequest = { store?: number[]; type?: string; }; -/** @returns {EditInventoryDataDownloadsResponse} */ -declare function EditInventoryDataDownloadsResponse(): EditInventoryDataDownloadsResponse; -type EditInventoryDataDownloadsResponse = { - url?: string; - completed_on?: string; - seller_id?: number; - task_id?: string; - created_on?: string; - modified_on?: string; - notification_emails?: string[]; - status?: string; -}; -/** @returns {EditInventoryDownloadsResponse} */ -declare function EditInventoryDownloadsResponse(): EditInventoryDownloadsResponse; -type EditInventoryDownloadsResponse = { - data?: EditInventoryDataDownloadsResponse; -}; -/** @returns {InventoryExportFiltersResponse} */ -declare function InventoryExportFiltersResponse(): InventoryExportFiltersResponse; -type InventoryExportFiltersResponse = { - brand_ids?: number[]; - store_ids?: number[]; -}; -/** @returns {Stats} */ -declare function Stats(): Stats; -type Stats = { - total?: number; -}; /** @returns {InventoryExportResponse} */ declare function InventoryExportResponse(): InventoryExportResponse; type InventoryExportResponse = { /** * - The user that created the job. */ - created_by?: CreatedBy; + created_by?: string; /** * - Creation datetime of the job */ created_on?: string; - filters?: InventoryExportFiltersResponse; + /** + * - The filters that needs to be exported. + */ + filters?: any; /** * - Modification date of the job */ @@ -7697,11 +5782,6 @@ type InventoryExportResponse = { * - The type of file that needs to be exported. */ type?: string; - stats?: Stats; - _id?: string; - trigger_on?: string; - brand?: number[]; - store?: number[]; }; /** @returns {InventoryFailedReason} */ declare function InventoryFailedReason(): InventoryFailedReason; @@ -7714,11 +5794,6 @@ type InventoryFailedReason = { * - It is the message of the activity performed. */ message: string; - /** - * - It is the reason code of the inventory - * error response. - */ - reason_code?: number; }; /** @returns {InventoryJobDetailResponse} */ declare function InventoryJobDetailResponse(): InventoryJobDetailResponse; @@ -7927,6 +6002,10 @@ type InventoryRequest = { /** @returns {InventoryRequestSchemaV2} */ declare function InventoryRequestSchemaV2(): InventoryRequestSchemaV2; type InventoryRequestSchemaV2 = { + /** + * - The ID of the company. + */ + company_id: number; /** * - Additional metadata for the inventory request. */ @@ -8132,11 +6211,7 @@ type InventoryUpdateResponse = { /** * - It is the success message of the inventory update. */ - message?: string; - /** - * - It is the success message of the inventory update. - */ - success?: boolean; + message: string; }; /** @returns {InventoryValidationResponse} */ declare function InventoryValidationResponse(): InventoryValidationResponse; @@ -8185,19 +6260,6 @@ type Items = { total?: number; tracking_url?: string; }; -/** @returns {PriceRange} */ -declare function PriceRange(): PriceRange; -type PriceRange = { - min?: number; - max?: number; -}; -/** @returns {ProductPriceRangeSchema} */ -declare function ProductPriceRangeSchema(): ProductPriceRangeSchema; -type ProductPriceRangeSchema = { - effective?: PriceRange; - marked?: PriceRange; - currency?: string; -}; /** @returns {LimitedProductData} */ declare function LimitedProductData(): LimitedProductData; type LimitedProductData = { @@ -8207,7 +6269,7 @@ type LimitedProductData = { images?: string[]; item_code?: string; name?: string; - price?: ProductPriceRangeSchema; + price?: any; quantity?: number; short_description?: string; sizes?: string[]; @@ -8217,8 +6279,8 @@ type LimitedProductData = { /** @returns {ListSizeGuide} */ declare function ListSizeGuide(): ListSizeGuide; type ListSizeGuide = { - items?: SizeGuideResponse[]; - page?: Page; + items?: any[]; + page?: any; }; /** @returns {LocationDayWiseSerializer} */ declare function LocationDayWiseSerializer(): LocationDayWiseSerializer; @@ -8237,7 +6299,6 @@ type LocationIntegrationType = { /** @returns {LocationListSerializer} */ declare function LocationListSerializer(): LocationListSerializer; type LocationListSerializer = { - filters?: any[]; items?: GetLocationSerializer[]; page?: Page; }; @@ -8325,27 +6386,9 @@ type Media2 = { /** @returns {Meta} */ declare function Meta(): Meta; type Meta = { - headers?: GuideHeaders; - values?: GuideValues[]; + headers?: any; unit?: string; -}; -/** @returns {GuideHeaders} */ -declare function GuideHeaders(): GuideHeaders; -type GuideHeaders = { - col_1?: Header; - col_2?: Header; -}; -/** @returns {GuideValues} */ -declare function GuideValues(): GuideValues; -type GuideValues = { - col_1?: string; - col_2?: string; -}; -/** @returns {Header} */ -declare function Header(): Header; -type Header = { - value?: string; - convertable?: boolean; + values?: any[]; }; /** @returns {MetaDataListingFilterMetaResponse} */ declare function MetaDataListingFilterMetaResponse(): MetaDataListingFilterMetaResponse; @@ -8432,46 +6475,13 @@ type OptinCompanyBrandDetailsView = { items?: CompanyBrandDetail[]; page?: Page; }; -/** @returns {OptinAddress} */ -declare function OptinAddress(): OptinAddress; -type OptinAddress = { - address1?: string; - state?: string; - pincode?: string; - city?: string; - country?: string; - latitude?: number; - longitude?: number; - country_code?: string; -}; -/** @returns {OptinDocument} */ -declare function OptinDocument(): OptinDocument; -type OptinDocument = { - type?: string; - value?: string; - legal_name?: string; - verified?: boolean; -}; -/** @returns {OptinBusinessCountryInfo} */ -declare function OptinBusinessCountryInfo(): OptinBusinessCountryInfo; -type OptinBusinessCountryInfo = { - country?: string; - country_code?: string; -}; /** @returns {OptinCompanyDetail} */ declare function OptinCompanyDetail(): OptinCompanyDetail; type OptinCompanyDetail = { + business_type?: string; + company_type?: string; name?: string; uid?: number; - business_info?: string; - business_type?: string; - business_country_info?: OptinBusinessCountryInfo; - address?: OptinAddress; - document?: OptinDocument; - brands?: number[]; - notification_emails?: string[]; - warnings?: any; - stage?: string; }; /** @returns {OptinCompanyMetrics} */ declare function OptinCompanyMetrics(): OptinCompanyMetrics; @@ -8489,7 +6499,6 @@ type OptinStoreDetails = { /** @returns {OwnerAppItemResponse} */ declare function OwnerAppItemResponse(): OwnerAppItemResponse; type OwnerAppItemResponse = { - size_promotion_threshold?: any; alt_text?: any; is_cod?: boolean; is_gift?: boolean; @@ -8694,12 +6703,10 @@ type ProductAttributesResponse = { /** @returns {ProductBrand} */ declare function ProductBrand(): ProductBrand; type ProductBrand = { - type?: string; - uid?: number; + action?: Action; + logo?: Media; name?: string; - logo?: any; - action?: PageAction; - _custom_json?: any; + uid?: number; }; /** @returns {ProductBulkAssets} */ declare function ProductBulkAssets(): ProductBulkAssets; @@ -8729,28 +6736,6 @@ type ProductBulkRequest = { template_tag?: string; total?: number; }; -/** @returns {InventoryBulkJob} */ -declare function InventoryBulkJob(): InventoryBulkJob; -type InventoryBulkJob = { - /** - * - The ID of the company. - */ - company_id?: string; - /** - * - The file path of the company. - */ - file_path?: string; -}; -/** @returns {ProductBulkResponse} */ -declare function ProductBulkResponse(): ProductBulkResponse; -type ProductBulkResponse = { - batch_id?: string; -}; -/** @returns {InventoryBulkResponse} */ -declare function InventoryBulkResponse(): InventoryBulkResponse; -type InventoryBulkResponse = { - batch_id?: string; -}; /** @returns {ProductBulkRequestList} */ declare function ProductBulkRequestList(): ProductBulkRequestList; type ProductBulkRequestList = { @@ -8771,7 +6756,7 @@ type ProductBundleItem = { declare function ProductBundleRequest(): ProductBundleRequest; type ProductBundleRequest = { choice: string; - company_id?: string; + company_id?: number; created_by?: any; created_on?: string; is_active: boolean; @@ -8789,7 +6774,7 @@ type ProductBundleRequest = { declare function ProductBundleUpdateRequest(): ProductBundleUpdateRequest; type ProductBundleUpdateRequest = { choice: string; - company_id?: string; + company_id?: number; is_active: boolean; logo?: string; meta?: any; @@ -8807,25 +6792,6 @@ type ProductConfigurationDownloads = { data?: any[]; multivalue?: boolean; }; -/** @returns {ProductCreateUpdateSizesSchema} */ -declare function ProductCreateUpdateSizesSchema(): ProductCreateUpdateSizesSchema; -type ProductCreateUpdateSizesSchema = { - size?: string; - price?: number; - price_effective?: number; - price_transfer?: number; - currency?: string; - item_length?: number; - item_width?: number; - item_height?: number; - item_weight?: number; - item_dimensions_unit_of_measure?: string; - item_weight_unit_of_measure?: string; - track_inventory?: boolean; - identifiers?: GTIN[]; - _custom_json?: any; - name?: string; -}; /** @returns {ProductCreateUpdateSchemaV2} */ declare function ProductCreateUpdateSchemaV2(): ProductCreateUpdateSchemaV2; type ProductCreateUpdateSchemaV2 = { @@ -8860,7 +6826,7 @@ type ProductCreateUpdateSchemaV2 = { return_config: ReturnConfig; short_description?: string; size_guide?: string; - sizes: ProductCreateUpdateSizesSchema[]; + sizes: any[]; slug: string; tags?: string[]; tax_identifier: TaxIdentifier; @@ -8909,66 +6875,8 @@ type ProductDetailAttribute = { /** @returns {ProductDetailGroupedAttribute} */ declare function ProductDetailGroupedAttribute(): ProductDetailGroupedAttribute; type ProductDetailGroupedAttribute = { - details?: ProductDetailAttribute[]; - title?: string; -}; -/** @returns {PatchProductDownloadsDataResponse} */ -declare function PatchProductDownloadsDataResponse(): PatchProductDownloadsDataResponse; -type PatchProductDownloadsDataResponse = { - created_on?: string; - created_by?: CreatedBy; - task_id?: string; - modified_on?: string; - seller_id?: number; - url?: string; - status?: string; - notification_emails?: string[]; - completed_on?: string; -}; -/** @returns {PatchProductDownloadsResponse} */ -declare function PatchProductDownloadsResponse(): PatchProductDownloadsResponse; -type PatchProductDownloadsResponse = { - data?: PatchProductDownloadsDataResponse; -}; -/** @returns {ProductDownloadFilters} */ -declare function ProductDownloadFilters(): ProductDownloadFilters; -type ProductDownloadFilters = { - brands: string[]; - catalogue_types: string[]; - templates: string[]; -}; -/** @returns {CreateProductDownloadsDataResponse} */ -declare function CreateProductDownloadsDataResponse(): CreateProductDownloadsDataResponse; -type CreateProductDownloadsDataResponse = { - created_on?: string; - type?: string; - task_id?: string; - filters?: ProductDownloadFilters; - created_by?: CreatedBy; - _id?: string; - notification_emails?: any[]; - modified_on?: string; - status?: string; - seller_id?: number; - stats?: Stats; -}; -/** @returns {CreateProductDownloadsResponse} */ -declare function CreateProductDownloadsResponse(): CreateProductDownloadsResponse; -type CreateProductDownloadsResponse = { - data?: CreateProductDownloadsDataResponse; -}; -/** @returns {GetProductDownloadsResponse} */ -declare function GetProductDownloadsResponse(): GetProductDownloadsResponse; -type GetProductDownloadsResponse = { - modified_on?: string; - url?: string; - status?: string; - completed_on?: string; - created_by?: CreatedBy; - created_on?: string; - seller_id?: number; - task_id?: string; - id?: string; + details?: ProductDetailAttribute[]; + title?: string; }; /** @returns {ProductDownloadsResponse} */ declare function ProductDownloadsResponse(): ProductDownloadsResponse; @@ -8984,6 +6892,17 @@ type ProductFilters = { key: ProductFiltersKey; values: ProductFiltersValue[]; }; +/** @returns {GetQueryFiltersValuesResponse} */ +declare function GetQueryFiltersValuesResponse(): GetQueryFiltersValuesResponse; +type GetQueryFiltersValuesResponse = { + values: ProductFiltersValue[]; + page: Page; +}; +/** @returns {ProductFiltersKeysOnly} */ +declare function ProductFiltersKeysOnly(): ProductFiltersKeysOnly; +type ProductFiltersKeysOnly = { + key: ProductFiltersKey; +}; /** @returns {ProductFiltersKey} */ declare function ProductFiltersKey(): ProductFiltersKey; type ProductFiltersKey = { @@ -9007,7 +6926,7 @@ type ProductFiltersValue = { query_format?: string; selected_max?: number; selected_min?: number; - value: string; + value: any; }; /** @returns {ProductListingDetail} */ declare function ProductListingDetail(): ProductListingDetail; @@ -9038,25 +6957,6 @@ type ProductListingDetail = { tryouts?: string[]; type?: string; uid?: number; - categories?: string[]; - _custom_meta?: string[]; - action?: PageAction; - is_tryout?: boolean; - all_company_ids?: number[]; - is_custom_order?: boolean; - collections?: string[]; -}; -/** @returns {PageAction} */ -declare function PageAction(): PageAction; -type PageAction = { - page?: ActionObject; - type?: string; -}; -/** @returns {ActionObject} */ -declare function ActionObject(): ActionObject; -type ActionObject = { - type?: string; - query?: any; }; /** @returns {ProductListingPrice} */ declare function ProductListingPrice(): ProductListingPrice; @@ -9076,23 +6976,6 @@ type ProductListingResponseV2 = { items?: ProductSchemaV2[]; page?: Page; }; -/** @returns {ProductVerificationModel} */ -declare function ProductVerificationModel(): ProductVerificationModel; -type ProductVerificationModel = { - rejected_fields?: any; - status?: string; - brand_uid?: number; - created_on?: string; - company_ids?: number[]; - item_code?: string; - remark?: string; - created_by?: CreatedBy; - modified_on?: string; - slug?: string; - modified_by?: CreatedBy; - item_id?: number; - id?: string; -}; /** @returns {ProductPublish} */ declare function ProductPublish(): ProductPublish; type ProductPublish = { @@ -9133,23 +7016,9 @@ type ProductReturnConfigBaseSerializer = { */ unit: string; }; -/** @returns {CategorySubSchema} */ -declare function CategorySubSchema(): CategorySubSchema; -type CategorySubSchema = { - name?: string; - uid?: number; -}; -/** @returns {CategoryProduct} */ -declare function CategoryProduct(): CategoryProduct; -type CategoryProduct = { - l3?: CategorySubSchema; - l1?: CategorySubSchema; - l2?: CategorySubSchema; -}; /** @returns {ProductSchemaV2} */ declare function ProductSchemaV2(): ProductSchemaV2; type ProductSchemaV2 = { - category?: CategoryProduct; _custom_json?: any; all_company_ids?: number[]; all_identifiers?: string[]; @@ -9157,6 +7026,7 @@ type ProductSchemaV2 = { attributes?: any; brand?: Brand; brand_uid?: number; + category?: any; category_slug?: string; category_uid?: number; color?: string; @@ -9237,17 +7107,6 @@ type ProductSortOn = { is_selected?: boolean; name?: string; value?: string; - display?: string; - logo?: string; -}; -/** @returns {ProductSortOnv2} */ -declare function ProductSortOnv2(): ProductSortOnv2; -type ProductSortOnv2 = { - is_selected?: boolean; - name?: string; - value?: string; - display?: string; - logo?: string; }; /** @returns {ProductTagsViewResponse} */ declare function ProductTagsViewResponse(): ProductTagsViewResponse; @@ -9259,8 +7118,7 @@ declare function ProductTemplate(): ProductTemplate; type ProductTemplate = { attributes?: string[]; categories?: string[]; - created_by?: CreatedBy; - modified_by?: CreatedBy; + created_by?: any; created_on?: string; departments?: string[]; description?: string; @@ -9269,7 +7127,7 @@ type ProductTemplate = { is_expirable: boolean; is_physical: boolean; logo?: string; - id?: string; + modified_by?: any; modified_on?: string; name?: string; slug: string; @@ -9323,9 +7181,6 @@ type ProductTemplateExportFilterRequest = { /** @returns {ProductTemplateExportResponse} */ declare function ProductTemplateExportResponse(): ProductTemplateExportResponse; type ProductTemplateExportResponse = { - trigger_on?: string; - id?: string; - template_tags?: any; /** * - Completion datetime of the job */ @@ -9377,18 +7232,6 @@ type ProductVariants = { name?: string; uid?: number; }; -/** @returns {CompanyVerificationStats} */ -declare function CompanyVerificationStats(): CompanyVerificationStats; -type CompanyVerificationStats = { - verified?: number; -}; -/** @returns {CompanyVerificationResponse} */ -declare function CompanyVerificationResponse(): CompanyVerificationResponse; -type CompanyVerificationResponse = { - uid?: number; - name?: string; - stats?: CompanyVerificationStats; -}; /** @returns {ProductVariantsResponse} */ declare function ProductVariantsResponse(): ProductVariantsResponse; type ProductVariantsResponse = { @@ -9459,8 +7302,8 @@ type QuantityBase = { declare function ReturnConfig(): ReturnConfig; type ReturnConfig = { returnable: boolean; - time?: number; - unit?: string; + time: number; + unit: string; }; /** @returns {ReturnConfig1} */ declare function ReturnConfig1(): ReturnConfig1; @@ -9508,7 +7351,7 @@ type ApplicationItemSeoAction = { declare function ApplicationItemSeoBreadcrumbs(): ApplicationItemSeoBreadcrumbs; type ApplicationItemSeoBreadcrumbs = { url?: string; - action?: any; + action?: ApplicationItemSeoAction[]; }; /** @returns {ApplicationItemSeoMetaTagItem} */ declare function ApplicationItemSeoMetaTagItem(): ApplicationItemSeoMetaTagItem; @@ -9586,18 +7429,12 @@ type SellerPhoneNumber = { country_code: number; number: string; }; -/** @returns {SitemapDetail} */ -declare function SitemapDetail(): SitemapDetail; -type SitemapDetail = { - priority?: number; - frequency?: string; -}; /** @returns {SeoDetail} */ declare function SeoDetail(): SeoDetail; type SeoDetail = { description?: string; title?: string; - sitemap?: SitemapDetail; + sitemap?: any; breadcrumbs?: ApplicationItemSeoBreadcrumbs[]; meta_tags?: Metatags[]; canonical_url?: string; @@ -9613,31 +7450,6 @@ declare function SingleCategoryResponse(): SingleCategoryResponse; type SingleCategoryResponse = { data?: Category; }; -/** @returns {VariantTypesResponse} */ -declare function VariantTypesResponse(): VariantTypesResponse; -type VariantTypesResponse = { - items?: VariantTypeItem[]; -}; -/** @returns {VariantTypeItem} */ -declare function VariantTypeItem(): VariantTypeItem; -type VariantTypeItem = { - /** - * - Name of the item - */ - name?: string; - /** - * - Key of the item - */ - key?: string; - /** - * - Array of item types - */ - type?: string[]; - /** - * - Configuration for the image - */ - image_config?: any; -}; /** @returns {SingleProductResponse} */ declare function SingleProductResponse(): SingleProductResponse; type SingleProductResponse = { @@ -9659,21 +7471,14 @@ type SizeDistribution = { /** @returns {SizeGuideResponse} */ declare function SizeGuideResponse(): SizeGuideResponse; type SizeGuideResponse = { - image?: string; - /** - * - The user who created the size guide. - */ - created_by?: UserSerializer; - /** - * - The user who modified the size guide. - */ - modified_by?: UserSerializer; active?: boolean; brand_id?: number; company_id?: number; + created_by?: any; created_on?: string; guide?: any; id?: string; + modified_by?: any; modified_on?: string; name?: string; subtitle?: string; @@ -9683,107 +7488,40 @@ type SizeGuideResponse = { /** @returns {StoreAssignResponse} */ declare function StoreAssignResponse(): StoreAssignResponse; type StoreAssignResponse = { - success?: boolean; - items?: any[]; -}; -/** @returns {Time} */ -declare function Time(): Time; -type Time = { - hour?: number; - minute?: number; -}; -/** @returns {Timing} */ -declare function Timing(): Timing; -type Timing = { - closing?: Time; - weekday?: string; - opening?: Time; - open?: boolean; -}; -/** @returns {StoreItem} */ -declare function StoreItem(): StoreItem; -type StoreItem = { - stage?: string; - name?: string; - display_name?: string; - modified_on?: string; - modified_by?: UserSchemaCustom; - manager?: Manager; - notification_emails?: string[]; - verified_on?: string; - verified_by?: UserSchemaCustom; - integration_type?: IntegrationType; + _id?: string; + article_assignment: ArticleAssignment1; company_id?: number; - documents?: Document[]; - created_on?: string; - address?: Address; - created_by?: UserSchemaCustom; - _custom_json?: any; - uid?: number; - timing?: Timing[]; - store_type?: string; -}; -/** @returns {UserSchemaCustom} */ -declare function UserSchemaCustom(): UserSchemaCustom; -type UserSchemaCustom = { - user_id?: string; - username?: string; -}; -/** @returns {Manager} */ -declare function Manager(): Manager; -type Manager = { - name?: string; - email?: string; - mobile_no?: MobileNo; -}; -/** @returns {MobileNo} */ -declare function MobileNo(): MobileNo; -type MobileNo = { - country_code?: number; - number?: string; -}; -/** @returns {IntegrationType} */ -declare function IntegrationType(): IntegrationType; -type IntegrationType = { - order?: string; - inventory?: string; -}; -/** @returns {Address} */ -declare function Address(): Address; -type Address = { - country_code?: string; - address1?: string; - city?: string; - address2?: string; - country?: string; - pincode?: number; - landmark?: string; - state?: string; + group_id?: string; + index?: number; + item_id: number; + meta?: any; + price_effective?: number; + price_marked?: number; + quantity: number; + s_city?: string; + size: string; + status: boolean; + store_id?: number; + store_pincode?: number; + strategy_wise_listing?: any[]; + uid?: string; }; /** @returns {StoreDetail} */ declare function StoreDetail(): StoreDetail; type StoreDetail = { additional_contacts?: any[]; + address?: any; company_id?: number; created_on?: string; display_name?: string; + documents?: any[]; + manager?: any; modified_on?: string; name?: string; store_code?: string; store_type?: string; - timing?: Timing[]; + timing?: any; uid?: number; - stage?: string; - modified_by?: UserSchemaCustom; - manager?: Manager; - notification_emails?: string[]; - verified_on?: string; - verified_by?: UserSchemaCustom; - integration_type?: IntegrationType; - documents?: Document[]; - address?: Address; - created_by?: UserSchemaCustom; - _custom_json?: any; }; /** @returns {StoreMeta} */ declare function StoreMeta(): StoreMeta; @@ -9848,7 +7586,7 @@ type TemplateValidationData = { /** @returns {TemplatesResponse} */ declare function TemplatesResponse(): TemplatesResponse; type TemplatesResponse = { - items?: ProductTemplate[]; + items?: ProductTemplate; page?: Page; }; /** @returns {TemplatesValidationResponse} */ @@ -9892,9 +7630,6 @@ type Trader2 = { /** @returns {UpdateCollection} */ declare function UpdateCollection(): UpdateCollection; type UpdateCollection = { - action?: Action; - uid?: string; - app_id?: string; _custom_json?: any; _locale_language?: any; _schedule?: CollectionSchedule; @@ -10092,7 +7827,6 @@ type ValidateIdentifier = { declare function ValidateProduct(): ValidateProduct; type ValidateProduct = { valid?: boolean; - message?: string; }; /** @returns {ValidateSizeGuide} */ declare function ValidateSizeGuide(): ValidateSizeGuide; @@ -10154,12 +7888,12 @@ type Marketplaces = { app_id?: string; enabled?: boolean; created_by?: CreatedBy; - created_on?: string; + created_on?: any; opt_level?: string; company_id?: number; modified_by?: CreatedBy; store_ids?: number[]; - modified_on?: string; + modified_on?: any; platforms?: string; _id?: string; }; @@ -10169,61 +7903,15 @@ type GetAllMarketplaces = { items?: Marketplaces[]; page?: Page; }; -/** @returns {CreateMarketplaceOptinRequest} */ -declare function CreateMarketplaceOptinRequest(): CreateMarketplaceOptinRequest; -type CreateMarketplaceOptinRequest = { - brand_ids?: number[]; - company_id?: number; - enabled?: boolean; - opt_level?: number; - platform?: string; - store_ids?: number[]; -}; /** @returns {UpdateMarketplaceOptinRequest} */ declare function UpdateMarketplaceOptinRequest(): UpdateMarketplaceOptinRequest; type UpdateMarketplaceOptinRequest = { brand_ids?: number[]; company_id?: number; enabled?: boolean; - opt_level?: number; - platform?: string; - store_ids?: number[]; -}; -/** @returns {CreateMarketplaceOptinResponse} */ -declare function CreateMarketplaceOptinResponse(): CreateMarketplaceOptinResponse; -type CreateMarketplaceOptinResponse = { - store_ids?: number[]; - brand_ids?: number[]; - company_id?: number; opt_level?: string; platform?: string; - enabled?: boolean; - created_by?: CreatedBy; - modified_by?: CreatedBy; - app_id?: string; -}; -/** @returns {GetProductTemplateSlugItems} */ -declare function GetProductTemplateSlugItems(): GetProductTemplateSlugItems; -type GetProductTemplateSlugItems = { - attributes?: string[]; - departments?: string[]; - is_active?: boolean; - tag?: string; - is_physical?: boolean; - description?: string; - logo?: string; - is_archived?: boolean; - slug?: string; - categories?: string[]; - is_expirable?: boolean; - name?: string; - id?: string; -}; -/** @returns {GetProductTemplateSlugResponse} */ -declare function GetProductTemplateSlugResponse(): GetProductTemplateSlugResponse; -type GetProductTemplateSlugResponse = { - page?: Page; - items?: GetProductTemplateSlugItems[]; + store_ids?: number[]; }; /** @returns {UpdateMarketplaceOptinResponse} */ declare function UpdateMarketplaceOptinResponse(): UpdateMarketplaceOptinResponse; @@ -10238,211 +7926,6 @@ type UpdateMarketplaceOptinResponse = { created_by?: CreatedBy; modified_by?: CreatedBy; }; -/** @returns {AutocompleteRequestSchema} */ -declare function AutocompleteRequestSchema(): AutocompleteRequestSchema; -type AutocompleteRequestSchema = { - query_suggestion?: any; - product_suggestion?: any; - collection_suggestion?: any; - brand_suggestion?: any; - category_suggestion?: any; -}; -/** @returns {AutocompleteUpsertResponseSchema} */ -declare function AutocompleteUpsertResponseSchema(): AutocompleteUpsertResponseSchema; -type AutocompleteUpsertResponseSchema = { - message?: string; - id?: string; - success?: boolean; -}; -/** @returns {AutocompleteErrorResponseSchema} */ -declare function AutocompleteErrorResponseSchema(): AutocompleteErrorResponseSchema; -type AutocompleteErrorResponseSchema = { - message?: string; - success?: boolean; -}; -/** @returns {AutocompleteResponseSchema} */ -declare function AutocompleteResponseSchema(): AutocompleteResponseSchema; -type AutocompleteResponseSchema = { - id?: string; - query_suggestion?: any; - product_suggestion?: any; - collection_suggestion?: any; - brand_suggestion?: any; - category_suggestion?: any; -}; -/** @returns {ProductListingActionPage} */ -declare function ProductListingActionPage(): ProductListingActionPage; -type ProductListingActionPage = { - type?: string; - query?: any; - params?: any; -}; -/** @returns {ProductListingAction} */ -declare function ProductListingAction(): ProductListingAction; -type ProductListingAction = { - type?: string; - page?: ProductListingActionPage; -}; -/** @returns {AutocompleteItem} */ -declare function AutocompleteItem(): AutocompleteItem; -type AutocompleteItem = { - logo?: Media; - display?: string; - type?: string; - _custom_json?: any; - action?: ProductListingAction; -}; -/** @returns {AutocompletePreviewResponseSchema} */ -declare function AutocompletePreviewResponseSchema(): AutocompletePreviewResponseSchema; -type AutocompletePreviewResponseSchema = { - items?: AutocompleteItem[]; -}; -/** @returns {CreateAppPriceFactoryRequest} */ -declare function CreateAppPriceFactoryRequest(): CreateAppPriceFactoryRequest; -type CreateAppPriceFactoryRequest = { - departments?: number[]; - factory_type?: string; - factory_type_ids?: string[]; - code?: string; - name?: string; - is_active?: boolean; -}; -/** @returns {CreateAppPriceFactoryResponse} */ -declare function CreateAppPriceFactoryResponse(): CreateAppPriceFactoryResponse; -type CreateAppPriceFactoryResponse = { - id?: string; - departments?: number[]; - factory_type?: string; - factory_type_ids?: string[]; - code?: string; - name?: string; - is_active?: boolean; -}; -/** @returns {AppPriceFactory} */ -declare function AppPriceFactory(): AppPriceFactory; -type AppPriceFactory = { - id?: string; - departments?: number[]; - factory_type?: string; - factory_type_ids?: number[]; - code?: string; - name?: string; - is_active?: boolean; - created_by?: CreatedBy; - modified_by?: CreatedBy; - created_on?: string; - modified_on?: string; -}; -/** @returns {EditAppPriceFactoryRequest} */ -declare function EditAppPriceFactoryRequest(): EditAppPriceFactoryRequest; -type EditAppPriceFactoryRequest = { - departments?: string[]; - factory_type?: string; - factory_type_ids?: number[]; - code?: string; - name?: string; - is_active?: boolean; -}; -/** @returns {GetAppPriceFactoryResponse} */ -declare function GetAppPriceFactoryResponse(): GetAppPriceFactoryResponse; -type GetAppPriceFactoryResponse = { - items?: AppPriceFactory[]; - page?: Page; -}; -/** @returns {CreateAppPriceFactoryProduct} */ -declare function CreateAppPriceFactoryProduct(): CreateAppPriceFactoryProduct; -type CreateAppPriceFactoryProduct = { - item_id?: number; - brand?: string; - seller_identifier?: string; -}; -/** @returns {PriceFactorySizes} */ -declare function PriceFactorySizes(): PriceFactorySizes; -type PriceFactorySizes = { - size_name?: string; - seller_identifier?: string; - marked_price?: number; - selling_price?: number; - currency?: string; - is_active?: boolean; -}; -/** @returns {CompanySizes} */ -declare function CompanySizes(): CompanySizes; -type CompanySizes = { - size_name?: string; - seller_identifier?: string; - marked_price?: number; - selling_price?: number; - currency?: string; - is_active?: boolean; -}; -/** @returns {CreateAppPriceFactoryProductResponse} */ -declare function CreateAppPriceFactoryProductResponse(): CreateAppPriceFactoryProductResponse; -type CreateAppPriceFactoryProductResponse = { - item_id?: number; - item_name?: string; - item_code?: string; - brand?: string; - category?: string; - factory_type_id?: string[]; - media?: any; - sizes?: any; - company_sizes?: any; -}; -/** @returns {UpdateAppPriceFactoryProductRequest} */ -declare function UpdateAppPriceFactoryProductRequest(): UpdateAppPriceFactoryProductRequest; -type UpdateAppPriceFactoryProductRequest = { - sizes?: any; -}; -/** @returns {UpdateAppPriceFactoryProductResponse} */ -declare function UpdateAppPriceFactoryProductResponse(): UpdateAppPriceFactoryProductResponse; -type UpdateAppPriceFactoryProductResponse = { - item_id?: number; - zone_id?: string; - media?: any; - company_sizes?: any; - sizes?: any; -}; -/** @returns {CreateAppPriceFactoryProductRequest} */ -declare function CreateAppPriceFactoryProductRequest(): CreateAppPriceFactoryProductRequest; -type CreateAppPriceFactoryProductRequest = { - items?: CreateAppPriceFactoryProduct[]; -}; -/** @returns {CreateAppPriceFactoryProductsResponse} */ -declare function CreateAppPriceFactoryProductsResponse(): CreateAppPriceFactoryProductsResponse; -type CreateAppPriceFactoryProductsResponse = { - items?: CreateAppPriceFactoryProductResponse[]; -}; -/** @returns {CreateAppPriceFactoryProductBulkJobRequest} */ -declare function CreateAppPriceFactoryProductBulkJobRequest(): CreateAppPriceFactoryProductBulkJobRequest; -type CreateAppPriceFactoryProductBulkJobRequest = { - file_path?: string; - file_type?: string; - job_type?: string; -}; -/** @returns {CreateAppPriceFactoryProductBulkJobResponse} */ -declare function CreateAppPriceFactoryProductBulkJobResponse(): CreateAppPriceFactoryProductBulkJobResponse; -type CreateAppPriceFactoryProductBulkJobResponse = { - job_id?: string; - status?: string; - created_on?: any; - modified_on?: any; - created_by?: CreatedBy; - modified_by?: CreatedBy; -}; -/** @returns {CreateAppPriceFactoryProductBulkJobPollResponse} */ -declare function CreateAppPriceFactoryProductBulkJobPollResponse(): CreateAppPriceFactoryProductBulkJobPollResponse; -type CreateAppPriceFactoryProductBulkJobPollResponse = { - status?: string; - total_records?: number; - success_records?: number; - failed_records?: number; - error_file?: string; - created_on?: any; - modified_on?: any; - created_by?: CreatedBy; - modified_by?: CreatedBy; -}; /** * Enum: PageType Used By: Catalog * diff --git a/sdk/platform/Catalog/CatalogPlatformModel.js b/sdk/platform/Catalog/CatalogPlatformModel.js index b40bd745f..7ead03cd0 100644 --- a/sdk/platform/Catalog/CatalogPlatformModel.js +++ b/sdk/platform/Catalog/CatalogPlatformModel.js @@ -1,110 +1,5 @@ const Joi = require("joi"); -/** - * @typedef SearchRequest - * @property {boolean} [is_active] - * @property {string} [q] - * @property {number} [page_no] - * @property {number} [page_size] - */ - -/** - * @typedef MerchandisingRuleQuery - * @property {string} [condition] - * @property {string} [search_query] - * @property {string} [synonyms] - */ - -/** - * @typedef MerchandisingRulesList - * @property {string} [rule_id] - * @property {MerchandisingRuleQuery} [query] - * @property {string[]} [actions] - * @property {string[]} [zones] - */ - -/** - * @typedef SuccessResponseMerchandising - * @property {string} [message] - */ - -/** - * @typedef MerchandiseQueryResponse - * @property {string} [message] - * @property {string} [merchandising_rule_id] - */ - -/** - * @typedef MerchandisingRuleQueryPost - * @property {string} [query_condition] - * @property {MerchandisingRuleQuery} [query] - * @property {string[]} [actions] - * @property {string[]} [zones] - */ - -/** - * @typedef PinItem - * @property {string} [name] - * @property {number} [uid] - * @property {number} [position] - */ - -/** - * @typedef PinItemRequest - * @property {string} [action] - * @property {number} [item_id] - * @property {number} [position] - */ - -/** - * @typedef PinRequest - * @property {PinItemRequest[]} [action_value] - */ - -/** - * @typedef PinResponse - * @property {PinItem[]} [data] - */ - -/** - * @typedef HideAttribute - * @property {string} [name] - * @property {number} [uid] - */ - -/** - * @typedef HideAttributeRequest - * @property {string} [action] - * @property {number} [item_id] - */ - -/** - * @typedef HideResponse - * @property {HideAttribute[]} [data] - */ - -/** - * @typedef HideRequest - * @property {HideAttributeRequest[]} [data] - */ - -/** - * @typedef BoostAttribute - * @property {string} [attribute] - * @property {string} [value] - * @property {number} [strength] - */ - -/** - * @typedef GetMerchandisingRuleBoostAction - * @property {BoostAttribute[]} [data] - */ - -/** - * @typedef GetMerchandisingRuleBuryAction - * @property {BoostAttribute[]} [data] - */ - /** * @typedef Action * @property {ActionPage} [page] @@ -112,11 +7,6 @@ const Joi = require("joi"); * @property {string} [type] */ -/** - * @typedef ActionProperties - * @property {string[]} [collection] - */ - /** * @typedef ActionPage * @property {Object} [params] @@ -147,11 +37,11 @@ const Joi = require("joi"); * @property {string} app_id * @property {string} [config_id] * @property {string} config_type - * @property {UserSerializer} [created_by] - The user who created the configuration. + * @property {Object} [created_by] * @property {string} [created_on] * @property {string} [id] * @property {ConfigurationListing} [listing] - * @property {UserSerializer} [modified_by] - The user who modified the configuration. + * @property {Object} [modified_by] * @property {string} [modified_on] * @property {ConfigurationProduct} [product] * @property {string} [type] @@ -187,23 +77,9 @@ const Joi = require("joi"); * @property {string} [type] */ -/** - * @typedef AppConfigurationCreateDetail - * @property {string} [app_id] - * @property {AttributeDetailsGroup[]} [attributes] - * @property {boolean} is_active - * @property {boolean} is_default - * @property {string} [logo] - * @property {string} [name] - * @property {number} priority - * @property {string} slug - * @property {string[]} [template_slugs] - */ - /** * @typedef AppConfigurationDetail - * @property {string} [id] - * @property {string} [app_id] + * @property {string} app_id * @property {AttributeDetailsGroup[]} [attributes] * @property {boolean} is_active * @property {boolean} is_default @@ -214,47 +90,10 @@ const Joi = require("joi"); * @property {string[]} [template_slugs] */ -/** - * @typedef AppConfigurationsResponse - * @property {string} [id] - * @property {string} [app_id] - * @property {string} [default_key] - * @property {boolean} [is_active] - * @property {boolean} [is_default] - * @property {string} [key] - * @property {string} [logo] - * @property {string} [name] - * @property {number} [priority] - */ - /** * @typedef AppConfigurationsSort * @property {string} app_id - * @property {string} [default_key] - * @property {boolean} is_active - * @property {boolean} is_default - * @property {string} key - * @property {string} [logo] - * @property {string} [name] - * @property {number} priority - */ - -/** - * @typedef ValueConfigType - * @property {Object[]} [bucket_points] - * @property {Object} [map] - * @property {string} [sort] - * @property {string} [condition] - * @property {string} [value] - */ - -/** - * @typedef AppConfigurationsFilter - * @property {string} app_id - * @property {boolean} [allow_single] - * @property {string} [attribute_name] - * @property {ValueConfigType} [value_config] - * @property {string} [type] + * @property {string} default_key * @property {boolean} is_active * @property {boolean} is_default * @property {string} key @@ -263,22 +102,6 @@ const Joi = require("joi"); * @property {number} priority */ -/** - * @typedef AppConfigurationsFilterResponse - * @property {string} [id] - * @property {string} [app_id] - * @property {boolean} [allow_single] - * @property {string} [attribute_name] - * @property {ValueConfigType} [value_config] - * @property {string} [type] - * @property {boolean} [is_active] - * @property {boolean} [is_default] - * @property {string} [key] - * @property {string} [logo] - * @property {string} [name] - * @property {number} [priority] - */ - /** * @typedef ApplicationBrandJson * @property {Object} _custom_json @@ -343,21 +166,11 @@ const Joi = require("joi"); * @typedef ApplicationProductListingResponse * @property {ProductFilters[]} [filters] * @property {ProductListingDetail[]} [items] - * @property {OperatorsResponse} [operators] + * @property {Object} [operators] * @property {Page} page * @property {ProductSortOn[]} [sort_on] */ -/** - * @typedef OperatorsResponse - * @property {string} [btw] - * @property {string} [lte] - * @property {string} [gte] - * @property {string} [gt] - * @property {string} [lt] - * @property {string} [nin] - */ - /** * @typedef ApplicationStoreJson * @property {Object} _custom_json @@ -365,12 +178,12 @@ const Joi = require("joi"); /** * @typedef AppReturnConfigResponse - * @property {CreatedBy} [created_by] - * @property {CreatedBy} [modified_by] * @property {string} [app_id] - Channel identifier * @property {number} [category_count] - Count of L3 category return config set * for application * @property {number} [company_id] - Unique identifer of company + * @property {Object} [created_by] - User details + * @property {Object} [modified_by] - User details * @property {string} [modified_on] - Modification date * @property {string} [return_config_level] - Configuration level of return * window category|product|no-return @@ -544,7 +357,7 @@ const Joi = require("joi"); /** * @typedef BaseAppCategoryReturnConfigResponse * @property {AppCategoryReturnConfigResponse[]} [data] - * @property {PageResponse1} [page] + * @property {PageResponse} [page] */ /** @@ -554,19 +367,13 @@ const Joi = require("joi"); * @property {number} [uid] */ -/** - * @typedef BrandLogo - * @property {string} [url] - * @property {string} [type] - */ - /** * @typedef BrandItem * @property {Action} [action] * @property {ImageUrls} [banners] - * @property {number[]} [departments] + * @property {string[]} [departments] * @property {string} [discount] - * @property {BrandLogo} [logo] + * @property {Media2} [logo] * @property {string} [name] * @property {string} [slug] * @property {number} [uid] @@ -597,16 +404,11 @@ const Joi = require("joi"); */ /** - * @typedef BulkHsnDataResponse + * @typedef BulkHsnResponse * @property {boolean} [success] - Flag indicating the success status of the * bulk HSN operation. */ -/** - * @typedef BulkHsnResponse - * @property {BulkHsnDataResponse} [data] - */ - /** * @typedef BulkHsnUpsert * @property {HsnUpsert[]} data @@ -637,26 +439,6 @@ const Joi = require("joi"); * @property {number} [total] */ -/** - * @typedef BulkProductUploadJob - * @property {number} [company_id] - The ID of the company - * @property {number} [total] - Total records to be imported - * @property {number} [succeed] - Successfully imported records - * @property {string} [stage] - The import stage - * @property {string} [file_path] - * @property {string} [template_tag] - Template tag for the import - * @property {string} [tracking_url] - */ - -/** - * @typedef BulkProductJob - * @property {string} [company_id] - * @property {string} [template_tag] - * @property {string} [product_type] - * @property {string} [department] - * @property {string} [file_path] - */ - /** * @typedef BulkJob * @property {number} [cancelled] @@ -755,78 +537,6 @@ const Joi = require("joi"); * @property {number} [uid] - It is the unique identifier of the category. */ -/** - * @typedef ChannelListResponse - * @property {ChannelItem[]} [items] - * @property {Page} [page] - */ - -/** - * @typedef ChannelDetailResponse - * @property {string} [created_on] - * @property {CreatedBy} [created_by] - * @property {string} [name] - * @property {string} [logo] - * @property {ChannelValidation} [validation] - * @property {string} [_id] - * @property {string} [description] - * @property {string} [slug] - * @property {string} [app_id] - * @property {CreatedBy} [modified_by] - * @property {string} [modified_on] - * @property {string} [display_name] - */ - -/** - * @typedef ChannelItem - * @property {string} [logo] - * @property {CreatedBy} [modified_by] - * @property {CreatedBy} [created_by] - * @property {string} [slug] - * @property {string} [name] - * @property {string} [app_id] - * @property {string} [modified_on] - * @property {string} [_id] - * @property {string} [description] - * @property {ChannelValidation} [validation] - * @property {string} [created_on] - * @property {string} [display_name] - */ - -/** - * @typedef ChannelValidation - * @property {ProductValidation} [product] - * @property {BrandValidationItem} [brand] - * @property {CompanyValidation} [company] - * @property {LocationValidation} [location] - */ - -/** - * @typedef ProductValidation - * @property {boolean} [gated_category_applicable] - * @property {boolean} [imageless_products] - * @property {string} [stage] - */ - -/** - * @typedef BrandValidationItem - * @property {string} [stage] - * @property {boolean} [consent_doc_required] - */ - -/** - * @typedef CompanyValidation - * @property {boolean} [bank_ac_required] - * @property {boolean} [gst_required] - * @property {boolean} [verified] - */ - -/** - * @typedef LocationValidation - * @property {boolean} [gst_required] - * @property {string} [stage] - */ - /** * @typedef CategoryCreateResponse * @property {string} [message] - It is the message of the response from the category. @@ -919,43 +629,26 @@ const Joi = require("joi"); * @property {CollectionImage} portrait */ -/** - * @typedef CollectionBannerResponse - * @property {CollectionImageResponse} [landscape] - * @property {CollectionImageResponse} [portrait] - */ - -/** - * @typedef BadgeDetail - * @property {string} [color] - * @property {string} [text] - */ - /** * @typedef CollectionCreateResponse - * @property {CollectionBadge} [badge] - * @property {CollectionBannerResponse} [banners] + * @property {string} [uid] + * @property {Object} [_schedule] + * @property {boolean} [allow_facets] + * @property {boolean} [allow_sort] + * @property {string} [app_id] + * @property {Object} [badge] + * @property {ImageUrls} [banners] + * @property {Object} [cron] * @property {string} [description] * @property {boolean} [is_active] - * @property {boolean} [is_visible] - * @property {CollectionImageResponse} [logo] + * @property {BannerImage} [logo] * @property {Object} [meta] * @property {string} [name] * @property {number} [priority] - * @property {boolean} [published] * @property {CollectionQuery[]} [query] - * @property {SeoDetail} [seo] - * @property {Object} [_custom_json] - * @property {Object} [_locale_language] - * @property {CollectionSchedule} [_schedule] - * @property {Action} [action] - * @property {string} [uid] - * @property {boolean} [allow_facets] - * @property {boolean} [allow_sort] - * @property {string} [app_id] * @property {string} [slug] * @property {string} [sort_on] - * @property {string[]} [tags] + * @property {string[]} [tag] * @property {string} [type] * @property {string[]} [visible_facets_keys] */ @@ -985,16 +678,8 @@ const Joi = require("joi"); /** * @typedef CollectionImage - * @property {string} [aspect_ratio] - * @property {string} [url] - * @property {string} [secure_url] - * @property {string} [type] - */ - -/** - * @typedef CollectionImageResponse - * @property {string} [type] - * @property {string} [url] + * @property {string} aspect_ratio + * @property {string} url */ /** @@ -1039,7 +724,7 @@ const Joi = require("joi"); * @property {string} attribute - The attribute of the collection query * @property {string} op - The operation to be performed on the attribute of the * collection query - * @property {string[]} value - The value of the attribute of the collection query + * @property {Object[]} value - The value of the attribute of the collection query */ /** @@ -1057,9 +742,6 @@ const Joi = require("joi"); * @property {string} [brand_name] * @property {number} [company_id] * @property {number} [total_article] - * @property {Object} [logo] - * @property {string} [name] - * @property {number} [id] */ /** @@ -1088,8 +770,6 @@ const Joi = require("joi"); /** * @typedef ConfigErrorResponse - * @property {string} [code] - * @property {Object} [errors] * @property {string} message */ @@ -1107,8 +787,8 @@ const Joi = require("joi"); /** * @typedef ConfigurationListing - * @property {ConfigurationListingFilter} [filter] - * @property {ConfigurationListingSort} [sort] + * @property {ConfigurationListingFilter} filter + * @property {ConfigurationListingSort} sort */ /** @@ -1157,34 +837,8 @@ const Joi = require("joi"); /** * @typedef ConfigurationProduct - * @property {ConfigurationProductSimilar} [similar] - * @property {ConfigurationProductVariant} [variant] - * @property {ConfigurationProductDetailsGroups} [details_groups] - */ - -/** - * @typedef ConfigurationProductDetailsGroups - * @property {ConfigurationProductDetailsConfig[]} [config] - */ - -/** - * @typedef ConfigurationProductDetailsConfig - * @property {string} [name] - * @property {string} [slug] - * @property {number} [priority] - * @property {string[]} [template_slugs] - * @property {ConfigurationProductDetailsAttribute[]} [attributes] - * @property {boolean} [is_active] - */ - -/** - * @typedef ConfigurationProductDetailsAttribute - * @property {string} [name] - * @property {string} [slug] - * @property {string} [display_type] - * @property {number} [priority] - * @property {boolean} [is_active] - * @property {string} [key] + * @property {ConfigurationProductSimilar} similar + * @property {ConfigurationProductVariant} variant */ /** @@ -1226,16 +880,13 @@ const Joi = require("joi"); * @property {boolean} [is_active] * @property {AutocompleteResult[]} [results] * @property {string[]} [words] - * @property {AutocompleteAction} [action] */ /** * @typedef CreateAutocompleteWordsResponse - * @property {string} [uid] - * @property {boolean} [is_active] - * @property {AutocompleteResult[]} [results] * @property {Object} [_custom_json] * @property {string} [app_id] + * @property {Object[]} [results] * @property {string[]} [words] */ @@ -1246,7 +897,7 @@ const Joi = require("joi"); * @property {CollectionSchedule} [_schedule] * @property {boolean} [allow_facets] * @property {boolean} [allow_sort] - * @property {string} [app_id] + * @property {string} app_id * @property {CollectionBadge} [badge] * @property {CollectionBanner} banners * @property {UserInfo} [created_by] @@ -1268,89 +919,6 @@ const Joi = require("joi"); * @property {string[]} [visible_facets_keys] */ -/** - * @typedef RerankingBoostItems - * @property {BoostItem[]} [boost] - */ - -/** - * @typedef GetSearchRerankDetailResponse - * @property {RerankingBoostItems} [ranking] - * @property {boolean} [is_active] - * @property {CreatedBy} [modified_by] - * @property {CreatedBy} [created_by] - * @property {string[]} [words] - * @property {string} [app_id] - * @property {string} [modified_on] - * @property {string} [created_on] - * @property {string} [id] - */ - -/** - * @typedef BoostItem - * @property {string} [attribute_key] - * @property {string} [attribute_value] - */ - -/** - * @typedef GetSearchRerankItemResponse - * @property {string} [created_on] - * @property {string} [modified_on] - * @property {string[]} [words] - * @property {string} [app_id] - * @property {CreatedBy} [modified_by] - The user who modified the search rerank. - * @property {RerankingBoostItems} [ranking] - * @property {CreatedBy} [created_by] - The user who created the search rerank. - * @property {boolean} [is_active] - * @property {string} [id] - */ - -/** - * @typedef GetSearchRerankResponse - * @property {GetSearchRerankItemResponse[]} [items] - * @property {PageResponse1} [page] - */ - -/** - * @typedef CreateSearchRerankResponse - * @property {string[]} [words] - * @property {string} [app_id] - * @property {RerankingBoostItems} [ranking] - * @property {boolean} [is_active] - * @property {string} [created_on] - * @property {CreatedBy} [created_by] - The user who created the search rerank. - * @property {string} [modified_on] - * @property {CreatedBy} [modified_by] - The user who modified the search rerank. - */ - -/** - * @typedef UpdateSearchRerankResponse - * @property {string[]} [words] - * @property {string} [app_id] - * @property {RerankingBoostItems} [ranking] - * @property {boolean} [is_active] - * @property {string} [created_on] - * @property {CreatedBy} [created_by] - The user who created the search rerank. - * @property {string} [modified_on] - * @property {CreatedBy} [modified_by] - The user who modified the search rerank. - */ - -/** - * @typedef UpdateSearchRerankRequest - * @property {string[]} [words] - * @property {boolean} [is_active] - * @property {string} [application_id] - * @property {RerankingBoostItems} [ranking] - */ - -/** - * @typedef CreateSearchRerankRequest - * @property {string[]} [words] - * @property {boolean} [is_active] - * @property {string} [application_id] - * @property {RerankingBoostItems} [ranking] - */ - /** * @typedef CreateSearchConfigurationRequest * @property {string} application_id - The application id where custom search @@ -1401,8 +969,8 @@ const Joi = require("joi"); /** * @typedef CrossSellingResponse - * @property {number} [articles] - * @property {number} [products] + * @property {CatalogInsightBrand} [brand_distribution] + * @property {CrossSellingData} [data] */ /** @@ -1442,12 +1010,6 @@ const Joi = require("joi"); * @property {boolean} [success] */ -/** - * @typedef DeleteSearchRerankConfigurationResponse - * @property {boolean} [success] - * @property {string} [message] - */ - /** * @typedef Department * @property {Media2} [logo] @@ -1465,12 +1027,7 @@ const Joi = require("joi"); /** * @typedef DepartmentCreateErrorResponse - * @property {Object} [error] - */ - -/** - * @typedef ProductBundleCreateErrorResponse - * @property {Object} [error] + * @property {string} [error] */ /** @@ -1515,10 +1072,12 @@ const Joi = require("joi"); * @property {Object} [_custom_json] * @property {string} [_id] * @property {UserDetail} [created_by] - User details of the creator of the document + * @property {string} created_on - Timestamp of the creation of the document * @property {boolean} [is_active] - Whether the department is currently active * @property {string} logo - The URL of the department's logo * @property {UserDetail} [modified_by] - User details of the last modifier of * the document + * @property {string} modified_on - Timestamp of the last modification of the document * @property {string} name - The name of the department * @property {number} priority_order - The priority order of the department * @property {string} slug - The unique slug identifier for the department @@ -1535,11 +1094,6 @@ const Joi = require("joi"); * @property {Department[]} [items] */ -/** - * @typedef ValidationFailedResponse - * @property {string} [message] - Response message for failed validation - */ - /** * @typedef DepartmentsResponse * @property {GetDepartment[]} [items] @@ -1574,9 +1128,9 @@ const Joi = require("joi"); /** * @typedef EntityConfiguration - * @property {string} [app_id] + * @property {string} app_id * @property {string} [config_id] - * @property {string} [config_type] + * @property {string} config_type * @property {string} [id] * @property {GetCatalogConfigurationDetailsSchemaListing} [listing] * @property {GetCatalogConfigurationDetailsProduct} [product] @@ -1584,20 +1138,13 @@ const Joi = require("joi"); /** * @typedef ErrorResponse - * @property {number} [code] + * @property {string} [code] * @property {string} [error] * @property {string} [message] * @property {Object} [meta] * @property {number} [status] */ -/** - * @typedef CategoryErrorResponse - * @property {string} [code] - * @property {Object} [error] - * @property {string} [message] - */ - /** * @typedef FilerList * @property {string} [display] @@ -1685,24 +1232,18 @@ const Joi = require("joi"); /** * @typedef GenderDetail - * @property {string} [created_on] - It is Date and time when the attribute was created. - * @property {string} [modified_on] - It is Date and time when the attribute was modified. - * @property {CreatedBy} [created_by] - Details of the user who created the attribute. - * @property {CreatedBy} [modified_by] - Details of the user who last modified - * the attribute. * @property {string[]} [departments] * @property {string} [description] * @property {AttributeMasterDetails} [details] * @property {boolean} [enabled_for_end_consumer] * @property {AttributeMasterFilter} [filters] - * @property {string} [_id] + * @property {string} [id] * @property {boolean} [is_nested] * @property {string} [logo] * @property {AttributeMasterMeta} [meta] * @property {string} [name] * @property {AttributeMaster} [schema] * @property {string} [slug] - * @property {boolean} [variant] */ /** @@ -1725,17 +1266,6 @@ const Joi = require("joi"); * @property {AllSizes[]} [all_sizes] */ -/** - * @typedef FilterResponse - * @property {ValueItem[]} [values] - */ - -/** - * @typedef ValueItem - * @property {string} [text] - * @property {string} [value] - */ - /** * @typedef GetAppCatalogConfiguration * @property {AppCatalogConfiguration} [data] @@ -1750,11 +1280,11 @@ const Joi = require("joi"); /** * @typedef GetAutocompleteWordsData - * @property {AutocompleteResult[]} [results] + * @property {Object} [_custom_json] * @property {string} [app_id] - * @property {string[]} [words] - * @property {boolean} [is_active] + * @property {Object[]} [results] * @property {string} [uid] + * @property {string[]} [words] */ /** @@ -1765,62 +1295,10 @@ const Joi = require("joi"); /** * @typedef GetCatalogConfigurationDetailsProduct - * @property {CompareFilter} [compare] - * @property {SimilarFilter} [similar] - * @property {VariantFilter} [variant] - * @property {DetailFilter} [detail] - */ - -/** - * @typedef FilterItem - * @property {string} [key] - * @property {string} [display] - * @property {string[]} [filter_types] - * @property {string[]} [units] - */ - -/** - * @typedef CompareFilter - * @property {FilterItem[]} [data] - */ - -/** - * @typedef SimilarFilter - * @property {SimilarItem[]} [data] - */ - -/** - * @typedef VariantFilter - * @property {VariantItem[]} [data] - */ - -/** - * @typedef DetailFilter - * @property {FilterItem[]} [data] - * @property {DetailFilterValues} [values] - */ - -/** - * @typedef DetailFilterValues - * @property {DisplayType[]} [display_type] - */ - -/** - * @typedef DisplayType - * @property {string} [key] - * @property {string} [display] - */ - -/** - * @typedef SimilarItem - * @property {string} [key] - * @property {string} [display] - */ - -/** - * @typedef VariantItem - * @property {string} [key] - * @property {string} [display] + * @property {Object} [compare] + * @property {Object} [detail] + * @property {Object} [similar] + * @property {Object} [variant] */ /** @@ -1898,102 +1376,17 @@ const Joi = require("joi"); * @property {string} [verified_on] */ -/** - * @typedef ConditionItem - * @property {string} [key] - * @property {string} [display] - */ - -/** - * @typedef DataItem - * @property {string} [key] - * @property {string} [display] - * @property {string[]} [filter_types] - * @property {string[]} [compatible_units] - */ - -/** - * @typedef ValueTypeItem - * @property {string} [key] - * @property {string} [display] - */ - -/** - * @typedef SortTypeItem - * @property {string} [key] - * @property {string} [display] - */ - /** * @typedef GetConfigMetadataResponse + * @property {Object[]} [condition] + * @property {Object[]} data * @property {Page} [page] - * @property {ConditionItem[]} [condition] - * @property {DataItem[]} data - * @property {GetConfigMetadataValues} [values] - */ - -/** - * @typedef GetConfigMetadataValues - * @property {ValueTypeItem[]} [type] - * @property {SortTypeItem[]} [sort] - */ - -/** - * @typedef AttributeType - * @property {string} [unit] - * @property {number} [priority] - * @property {string} [name] - * @property {string} [key] - * @property {string} [display_type] - * @property {boolean} [is_active] - * @property {string} [slug] - */ - -/** - * @typedef DataType - * @property {string} [app_id] - * @property {boolean} [is_default] - * @property {number} [priority] - * @property {string} [name] - * @property {AttributeType[]} [attributes] - * @property {boolean} [is_active] - * @property {string} [slug] - * @property {string} [id] - */ - -/** - * @typedef ListingValueConfigType - * @property {string} [sort] - * @property {Object[]} [bucket_points] - * @property {Object} [map] - * @property {string} [condition] - * @property {string} [value] - */ - -/** - * @typedef ListingDataType - * @property {string} [app_id] - * @property {boolean} [allow_single] - * @property {string} [id] - * @property {boolean} [is_active] - * @property {string} [key] - * @property {string} [name] - * @property {boolean} [is_default] - * @property {number} [priority] - * @property {string} [logo] - * @property {ListingValueConfigType} [value_config] - * @property {string} [type] - */ - -/** - * @typedef GetListingConfigResponse - * @property {ListingDataType[]} [data] - * @property {PageResponseType} [page] + * @property {Object[]} [values] */ /** * @typedef GetConfigResponse - * @property {DataType[]} data + * @property {Object[]} data * @property {PageResponseType} page */ @@ -2093,15 +1486,15 @@ const Joi = require("joi"); /** * @typedef GetProductBundleCreateResponse - * @property {UserSerializer} [created_by] - The user who created the product bundle. - * @property {UserSerializer} [modified_by] - The user who created the product bundle. * @property {string} choice * @property {number} [company_id] + * @property {Object} [created_by] * @property {string} [created_on] * @property {string} [id] * @property {boolean} is_active * @property {string} [logo] * @property {Object} [meta] + * @property {Object} [modified_by] * @property {string} [modified_on] * @property {string} name * @property {string[]} [page_visibility] @@ -2177,18 +1570,24 @@ const Joi = require("joi"); * @property {string} [message] */ +/** + * @typedef GetQueryFiltersKeysResponse + * @property {ProductFiltersKeysOnly[]} [filters] + * @property {Object} operators + * @property {ProductSortOn[]} [sort_on] + */ + /** * @typedef GetQueryFiltersResponse * @property {ProductFilters[]} [filters] - * @property {Object} [operators] + * @property {Object} operators * @property {ProductSortOn[]} [sort_on] */ /** - * @typedef GetCollectionItemsResponseSchema + * @typedef GetCollectionItemsResponseSchemaV2 * @property {ProductDetailV2[]} [items] - * @property {ProductSortOnv2[]} [sort_on] - * @property {Page} [page] + * @property {Page1} [page] */ /** @@ -2212,14 +1611,13 @@ const Joi = require("joi"); */ /** - * @typedef CollectionItemUpdateSchema + * @typedef CollectionItemUpdateSchemaV2 * @property {boolean} [allow_facets] * @property {boolean} [allow_sort] * @property {CollectionItemSchemaV2[]} [items] * @property {CollectionQuerySchemaV2[]} [query] * @property {string} type * @property {string[]} [visible_facets_keys] - * @property {boolean} [reset_items] */ /** @@ -2227,7 +1625,7 @@ const Joi = require("joi"); * @property {string} attribute - The attribute of the collection query * @property {string} op - The operation to be performed on the attribute of the * collection query - * @property {string[]} value + * @property {Object[]} value - The value of the attribute of the collection query */ /** @@ -2247,7 +1645,6 @@ const Joi = require("joi"); /** * @typedef GetSearchConfigurationResponse - * @property {string} [_id] - The id of the search configuration. * @property {string} application_id - The application id where custom search * configuration is set * @property {number} company_id - The company id where custom search configuration is set @@ -2268,8 +1665,6 @@ const Joi = require("joi"); /** * @typedef GetSearchWordsData - * @property {Object} [query] - * @property {string} [sort_on] * @property {Object} [_custom_json] * @property {string} [app_id] * @property {boolean} [is_active] @@ -2319,15 +1714,13 @@ const Joi = require("joi"); /** * @typedef HSNDataInsertV2 - * @property {string} [id] - ID of the HSN. * @property {string} country_code - Country code. - * @property {CreatedBy} [created_by] - Details of the user who created the HSN data. - * @property {CreatedBy} [modified_by] - Details of the user who last modified - * the HSN data. + * @property {Object} [created_by] - Details of the user who created the HSN data. * @property {string} [created_on] - Date and time when the HSN data was created. * @property {string} description - Description of the HSN data. * @property {string} hsn_code - HSN code. * @property {string} [hsn_code_id] - Unique identifier of the HSN code. + * @property {Object} [modified_by] - Details of the user who last modified the HSN data. * @property {string} [modified_on] - Date and time when the HSN data was last modified. * @property {string} reporting_hsn - HSN code. * @property {TaxSlab[]} taxes - List of tax slabs. @@ -2349,32 +1742,10 @@ const Joi = require("joi"); * @property {HsnCodesObject} [data] - The HSN code data. */ -/** - * @typedef SlabObject - * @property {number} [threshold] - * @property {number} [tax] - */ - -/** - * @typedef UpdateHsnCodesObject - * @property {CreatedBy} [modified_by] - * @property {number} [company_id] - The ID of the company. - * @property {SlabObject[]} [slabs] - * @property {string} [hs2_code] - The HS2 code. - * @property {string} [hsn_code] - The HSN code. - * @property {string} [tax_on] - * @property {string} [id] - */ - -/** - * @typedef UpdateHsnCode - * @property {UpdateHsnCodesObject} [data] - The HSN code data. - */ - /** * @typedef HsnCodesListingResponseSchemaV2 * @property {HSNDataInsertV2[]} [items] - * @property {PageResponse1} [page] + * @property {PageResponse} [page] */ /** @@ -2456,7 +1827,7 @@ const Joi = require("joi"); /** * @typedef InventoryConfig * @property {FilerList[]} [data] - * @property {boolean} [multivalue] + * @property {boolean} [multivalues] */ /** @@ -2491,30 +1862,6 @@ const Joi = require("joi"); * to be exported. */ -/** - * @typedef InventoryExportJobResponse - * @property {InventoryExportItem[]} [items] - */ - -/** - * @typedef InventoryExportItem - * @property {string} [status] - * @property {string} [type] - * @property {Object} [stats] - * @property {string} [completed_on] - * @property {string} [created_on] - * @property {string} [modified_on] - * @property {number} [seller_id] - * @property {string} [task_id] - * @property {string[]} [notification_emails] - * @property {CreatedBy} [created_by] - * @property {string} [_id] - * @property {string} [url] - * @property {string} [trigger_on] - * @property {number[]} [brand] - * @property {number[]} [store] - */ - /** * @typedef InventoryExportJob * @property {string} [completed_on] - Completion datetime of the job. @@ -2528,40 +1875,10 @@ const Joi = require("joi"); * @property {string} [url] - URL odf the exported file. */ -/** - * @typedef InventoryExportJobListFilters - * @property {number[]} [brand_ids] - * @property {number[]} [store_ids] - * @property {string[]} [brands] - * @property {string[]} [stores] - */ - -/** - * @typedef InventoryExportJobListStats - * @property {number} [success] - * @property {number} [total] - */ - -/** - * @typedef InventoryExportJobList - * @property {string} [status] - * @property {string} [completed_on] - * @property {string[]} [notification_emails] - * @property {InventoryExportJobListFilters} [filters] - * @property {InventoryExportJobListStats} [stats] - * @property {string} [type] - * @property {string} [modified_on] - * @property {string} [created_on] - * @property {number} [seller_id] - * @property {string} [url] - * @property {string} [task_id] - * @property {CreatedBy} [created_by] - * @property {string} [id] - */ - /** * @typedef InventoryExportJobListResponse - * @property {InventoryExportJobList[]} [items] + * @property {InventoryJobDetailResponse} items - This is the list/history of + * all the jobs. */ /** @@ -2571,12 +1888,6 @@ const Joi = require("joi"); * @property {string} operators - Condition for the quantity that needs to be exported. */ -/** - * @typedef ExportPatchRequest - * @property {string[]} [notification_emails] - * @property {string} [status] - */ - /** * @typedef InventoryExportRequest * @property {number[]} [brand] @@ -2584,58 +1895,23 @@ const Joi = require("joi"); * @property {string} [type] */ -/** - * @typedef EditInventoryDataDownloadsResponse - * @property {string} [url] - * @property {string} [completed_on] - * @property {number} [seller_id] - * @property {string} [task_id] - * @property {string} [created_on] - * @property {string} [modified_on] - * @property {string[]} [notification_emails] - * @property {string} [status] - */ - -/** - * @typedef EditInventoryDownloadsResponse - * @property {EditInventoryDataDownloadsResponse} [data] - */ - -/** - * @typedef InventoryExportFiltersResponse - * @property {number[]} [brand_ids] - * @property {number[]} [store_ids] - */ - -/** - * @typedef Stats - * @property {number} [total] - */ - /** * @typedef InventoryExportResponse - * @property {CreatedBy} [created_by] - The user that created the job. + * @property {string} [created_by] - The user that created the job. * @property {string} [created_on] - Creation datetime of the job - * @property {InventoryExportFiltersResponse} [filters] + * @property {Object} [filters] - The filters that needs to be exported. * @property {string} [modified_on] - Modification date of the job * @property {string[]} [notification_emails] - The notification emails for the job. * @property {number} seller_id - The seller id that needs to be exported. * @property {string} [status] - The status of the job. * @property {string} task_id - The task id of the job. * @property {string} [type] - The type of file that needs to be exported. - * @property {Stats} [stats] - * @property {string} [_id] - * @property {string} [trigger_on] - * @property {number[]} [brand] - * @property {number[]} [store] */ /** * @typedef InventoryFailedReason * @property {string} [errors] - It is the error message of the inventory error response. * @property {string} message - It is the message of the activity performed. - * @property {number} [reason_code] - It is the reason code of the inventory - * error response. */ /** @@ -2724,6 +2000,7 @@ const Joi = require("joi"); /** * @typedef InventoryRequestSchemaV2 + * @property {number} company_id - The ID of the company. * @property {Object} [meta] - Additional metadata for the inventory request. * @property {InventoryPayload[]} [payload] - The list of inventory payloads. */ @@ -2821,8 +2098,7 @@ const Joi = require("joi"); /** * @typedef InventoryUpdateResponse * @property {InventoryResponseItem[]} [items] - * @property {string} [message] - It is the success message of the inventory update. - * @property {boolean} [success] - It is the success message of the inventory update. + * @property {string} message - It is the success message of the inventory update. */ /** @@ -2872,19 +2148,6 @@ const Joi = require("joi"); * @property {string} [tracking_url] */ -/** - * @typedef PriceRange - * @property {number} [min] - * @property {number} [max] - */ - -/** - * @typedef ProductPriceRangeSchema - * @property {PriceRange} [effective] - * @property {PriceRange} [marked] - * @property {string} [currency] - */ - /** * @typedef LimitedProductData * @property {Object} [attributes] @@ -2893,7 +2156,7 @@ const Joi = require("joi"); * @property {string[]} [images] * @property {string} [item_code] * @property {string} [name] - * @property {ProductPriceRangeSchema} [price] + * @property {Object} [price] * @property {number} [quantity] * @property {string} [short_description] * @property {string[]} [sizes] @@ -2903,8 +2166,8 @@ const Joi = require("joi"); /** * @typedef ListSizeGuide - * @property {SizeGuideResponse[]} [items] - * @property {Page} [page] + * @property {Object[]} [items] + * @property {Object} [page] */ /** @@ -2923,7 +2186,6 @@ const Joi = require("joi"); /** * @typedef LocationListSerializer - * @property {Object[]} [filters] * @property {GetLocationSerializer[]} [items] * @property {Page} [page] */ @@ -2993,27 +2255,9 @@ const Joi = require("joi"); /** * @typedef Meta - * @property {GuideHeaders} [headers] - * @property {GuideValues[]} [values] + * @property {Object} [headers] * @property {string} [unit] - */ - -/** - * @typedef GuideHeaders - * @property {Header} [col_1] - * @property {Header} [col_2] - */ - -/** - * @typedef GuideValues - * @property {string} [col_1] - * @property {string} [col_2] - */ - -/** - * @typedef Header - * @property {string} [value] - * @property {boolean} [convertable] + * @property {Object[]} [values] */ /** @@ -3089,45 +2333,12 @@ const Joi = require("joi"); * @property {Page} [page] */ -/** - * @typedef OptinAddress - * @property {string} [address1] - * @property {string} [state] - * @property {string} [pincode] - * @property {string} [city] - * @property {string} [country] - * @property {number} [latitude] - * @property {number} [longitude] - * @property {string} [country_code] - */ - -/** - * @typedef OptinDocument - * @property {string} [type] - * @property {string} [value] - * @property {string} [legal_name] - * @property {boolean} [verified] - */ - -/** - * @typedef OptinBusinessCountryInfo - * @property {string} [country] - * @property {string} [country_code] - */ - /** * @typedef OptinCompanyDetail + * @property {string} [business_type] + * @property {string} [company_type] * @property {string} [name] * @property {number} [uid] - * @property {string} [business_info] - * @property {string} [business_type] - * @property {OptinBusinessCountryInfo} [business_country_info] - * @property {OptinAddress} [address] - * @property {OptinDocument} [document] - * @property {number[]} [brands] - * @property {string[]} [notification_emails] - * @property {Object} [warnings] - * @property {string} [stage] */ /** @@ -3145,7 +2356,6 @@ const Joi = require("joi"); /** * @typedef OwnerAppItemResponse - * @property {Object} [size_promotion_threshold] * @property {Object} [alt_text] * @property {boolean} [is_cod] * @property {boolean} [is_gift] @@ -3317,12 +2527,10 @@ const Joi = require("joi"); /** * @typedef ProductBrand - * @property {string} [type] - * @property {number} [uid] + * @property {Action} [action] + * @property {Media} [logo] * @property {string} [name] - * @property {Object} [logo] - * @property {PageAction} [action] - * @property {Object} [_custom_json] + * @property {number} [uid] */ /** @@ -3353,22 +2561,6 @@ const Joi = require("joi"); * @property {number} [total] */ -/** - * @typedef InventoryBulkJob - * @property {string} [company_id] - The ID of the company. - * @property {string} [file_path] - The file path of the company. - */ - -/** - * @typedef ProductBulkResponse - * @property {string} [batch_id] - */ - -/** - * @typedef InventoryBulkResponse - * @property {string} [batch_id] - */ - /** * @typedef ProductBulkRequestList * @property {ProductBulkRequest[]} [items] @@ -3388,7 +2580,7 @@ const Joi = require("joi"); /** * @typedef ProductBundleRequest * @property {string} choice - * @property {string} [company_id] + * @property {number} [company_id] * @property {Object} [created_by] * @property {string} [created_on] * @property {boolean} is_active @@ -3406,7 +2598,7 @@ const Joi = require("joi"); /** * @typedef ProductBundleUpdateRequest * @property {string} choice - * @property {string} [company_id] + * @property {number} [company_id] * @property {boolean} is_active * @property {string} [logo] * @property {Object} [meta] @@ -3425,25 +2617,6 @@ const Joi = require("joi"); * @property {boolean} [multivalue] */ -/** - * @typedef ProductCreateUpdateSizesSchema - * @property {string} [size] - * @property {number} [price] - * @property {number} [price_effective] - * @property {number} [price_transfer] - * @property {string} [currency] - * @property {number} [item_length] - * @property {number} [item_width] - * @property {number} [item_height] - * @property {number} [item_weight] - * @property {string} [item_dimensions_unit_of_measure] - * @property {string} [item_weight_unit_of_measure] - * @property {boolean} [track_inventory] - * @property {GTIN[]} [identifiers] - * @property {Object} [_custom_json] - * @property {string} [name] - */ - /** * @typedef ProductCreateUpdateSchemaV2 * @property {Object} [_custom_json] @@ -3477,7 +2650,7 @@ const Joi = require("joi"); * @property {ReturnConfig} return_config * @property {string} [short_description] * @property {string} [size_guide] - * @property {ProductCreateUpdateSizesSchema[]} sizes + * @property {Object[]} sizes * @property {string} slug * @property {string[]} [tags] * @property {TaxIdentifier} tax_identifier @@ -3531,72 +2704,25 @@ const Joi = require("joi"); */ /** - * @typedef PatchProductDownloadsDataResponse - * @property {string} [created_on] - * @property {CreatedBy} [created_by] - * @property {string} [task_id] - * @property {string} [modified_on] - * @property {number} [seller_id] - * @property {string} [url] - * @property {string} [status] - * @property {string[]} [notification_emails] - * @property {string} [completed_on] - */ - -/** - * @typedef PatchProductDownloadsResponse - * @property {PatchProductDownloadsDataResponse} [data] - */ - -/** - * @typedef ProductDownloadFilters - * @property {string[]} brands - * @property {string[]} catalogue_types - * @property {string[]} templates - */ - -/** - * @typedef CreateProductDownloadsDataResponse - * @property {string} [created_on] - * @property {string} [type] - * @property {string} [task_id] - * @property {ProductDownloadFilters} [filters] - * @property {CreatedBy} [created_by] - * @property {string} [_id] - * @property {Object[]} [notification_emails] - * @property {string} [modified_on] - * @property {string} [status] - * @property {number} [seller_id] - * @property {Stats} [stats] - */ - -/** - * @typedef CreateProductDownloadsResponse - * @property {CreateProductDownloadsDataResponse} [data] + * @typedef ProductDownloadsResponse + * @property {ProductTemplateExportResponse[]} [items] - The items of the job. */ /** - * @typedef GetProductDownloadsResponse - * @property {string} [modified_on] - * @property {string} [url] - * @property {string} [status] - * @property {string} [completed_on] - * @property {CreatedBy} [created_by] - * @property {string} [created_on] - * @property {number} [seller_id] - * @property {string} [task_id] - * @property {string} [id] + * @typedef ProductFilters + * @property {ProductFiltersKey} key + * @property {ProductFiltersValue[]} values */ /** - * @typedef ProductDownloadsResponse - * @property {ProductTemplateExportResponse[]} [items] - The items of the job. + * @typedef GetQueryFiltersValuesResponse + * @property {ProductFiltersValue[]} values + * @property {Page} page */ /** - * @typedef ProductFilters + * @typedef ProductFiltersKeysOnly * @property {ProductFiltersKey} key - * @property {ProductFiltersValue[]} values */ /** @@ -3621,7 +2747,7 @@ const Joi = require("joi"); * @property {string} [query_format] * @property {number} [selected_max] * @property {number} [selected_min] - * @property {string} value + * @property {Object} value */ /** @@ -3652,25 +2778,6 @@ const Joi = require("joi"); * @property {string[]} [tryouts] * @property {string} [type] * @property {number} [uid] - * @property {string[]} [categories] - * @property {string[]} [_custom_meta] - * @property {PageAction} [action] - * @property {boolean} [is_tryout] - * @property {number[]} [all_company_ids] - * @property {boolean} [is_custom_order] - * @property {string[]} [collections] - */ - -/** - * @typedef PageAction - * @property {ActionObject} [page] - * @property {string} [type] - */ - -/** - * @typedef ActionObject - * @property {string} [type] - * @property {Object} [query] */ /** @@ -3691,23 +2798,6 @@ const Joi = require("joi"); * @property {Page} [page] */ -/** - * @typedef ProductVerificationModel - * @property {Object} [rejected_fields] - * @property {string} [status] - * @property {number} [brand_uid] - * @property {string} [created_on] - * @property {number[]} [company_ids] - * @property {string} [item_code] - * @property {string} [remark] - * @property {CreatedBy} [created_by] - * @property {string} [modified_on] - * @property {string} [slug] - * @property {CreatedBy} [modified_by] - * @property {number} [item_id] - * @property {string} [id] - */ - /** * @typedef ProductPublish * @property {boolean} [is_set] @@ -3739,22 +2829,8 @@ const Joi = require("joi"); * @property {string} unit - Unit of return config days|hours */ -/** - * @typedef CategorySubSchema - * @property {string} [name] - * @property {number} [uid] - */ - -/** - * @typedef CategoryProduct - * @property {CategorySubSchema} [l3] - * @property {CategorySubSchema} [l1] - * @property {CategorySubSchema} [l2] - */ - /** * @typedef ProductSchemaV2 - * @property {CategoryProduct} [category] * @property {Object} [_custom_json] * @property {number[]} [all_company_ids] * @property {string[]} [all_identifiers] @@ -3762,6 +2838,7 @@ const Joi = require("joi"); * @property {Object} [attributes] * @property {Brand} [brand] * @property {number} [brand_uid] + * @property {Object} [category] * @property {string} [category_slug] * @property {number} [category_uid] * @property {string} [color] @@ -3842,17 +2919,6 @@ const Joi = require("joi"); * @property {boolean} [is_selected] * @property {string} [name] * @property {string} [value] - * @property {string} [display] - * @property {string} [logo] - */ - -/** - * @typedef ProductSortOnv2 - * @property {boolean} [is_selected] - * @property {string} [name] - * @property {string} [value] - * @property {string} [display] - * @property {string} [logo] */ /** @@ -3864,8 +2930,7 @@ const Joi = require("joi"); * @typedef ProductTemplate * @property {string[]} [attributes] * @property {string[]} [categories] - * @property {CreatedBy} [created_by] - * @property {CreatedBy} [modified_by] + * @property {Object} [created_by] * @property {string} [created_on] * @property {string[]} [departments] * @property {string} [description] @@ -3874,7 +2939,7 @@ const Joi = require("joi"); * @property {boolean} is_expirable * @property {boolean} is_physical * @property {string} [logo] - * @property {string} [id] + * @property {Object} [modified_by] * @property {string} [modified_on] * @property {string} [name] * @property {string} slug @@ -3904,9 +2969,6 @@ const Joi = require("joi"); /** * @typedef ProductTemplateExportResponse - * @property {string} [trigger_on] - * @property {string} [id] - * @property {Object} [template_tags] * @property {string} [completed_on] - Completion datetime of the job * @property {UserInfo1} [created_by] - The user that created the job. * @property {Object} [filters] - The filters that needs to be exported. @@ -3929,18 +2991,6 @@ const Joi = require("joi"); * @property {number} [uid] */ -/** - * @typedef CompanyVerificationStats - * @property {number} [verified] - */ - -/** - * @typedef CompanyVerificationResponse - * @property {number} [uid] - * @property {string} [name] - * @property {CompanyVerificationStats} [stats] - */ - /** * @typedef ProductVariantsResponse * @property {Page} [page] @@ -4010,8 +3060,8 @@ const Joi = require("joi"); /** * @typedef ReturnConfig * @property {boolean} returnable - * @property {number} [time] - * @property {string} [unit] + * @property {number} time + * @property {string} unit */ /** @@ -4050,7 +3100,7 @@ const Joi = require("joi"); /** * @typedef ApplicationItemSeoBreadcrumbs * @property {string} [url] - * @property {Object} [action] + * @property {ApplicationItemSeoAction[]} [action] */ /** @@ -4120,17 +3170,11 @@ const Joi = require("joi"); * @property {string} number */ -/** - * @typedef SitemapDetail - * @property {number} [priority] - * @property {string} [frequency] - */ - /** * @typedef SeoDetail * @property {string} [description] * @property {string} [title] - * @property {SitemapDetail} [sitemap] + * @property {Object} [sitemap] * @property {ApplicationItemSeoBreadcrumbs[]} [breadcrumbs] * @property {Metatags[]} [meta_tags] * @property {string} [canonical_url] @@ -4147,19 +3191,6 @@ const Joi = require("joi"); * @property {Category} [data] */ -/** - * @typedef VariantTypesResponse - * @property {VariantTypeItem[]} [items] - */ - -/** - * @typedef VariantTypeItem - * @property {string} [name] - Name of the item - * @property {string} [key] - Key of the item - * @property {string[]} [type] - Array of item types - * @property {Object} [image_config] - Configuration for the image - */ - /** * @typedef SingleProductResponse * @property {ProductSchemaV2} [data] @@ -4180,15 +3211,14 @@ const Joi = require("joi"); /** * @typedef SizeGuideResponse - * @property {string} [image] - * @property {UserSerializer} [created_by] - The user who created the size guide. - * @property {UserSerializer} [modified_by] - The user who modified the size guide. * @property {boolean} [active] * @property {number} [brand_id] * @property {number} [company_id] + * @property {Object} [created_by] * @property {string} [created_on] * @property {Object} [guide] * @property {string} [id] + * @property {Object} [modified_by] * @property {string} [modified_on] * @property {string} [name] * @property {string} [subtitle] @@ -4198,107 +3228,40 @@ const Joi = require("joi"); /** * @typedef StoreAssignResponse - * @property {boolean} [success] - * @property {Object[]} [items] - */ - -/** - * @typedef Time - * @property {number} [hour] - * @property {number} [minute] - */ - -/** - * @typedef Timing - * @property {Time} [closing] - * @property {string} [weekday] - * @property {Time} [opening] - * @property {boolean} [open] - */ - -/** - * @typedef StoreItem - * @property {string} [stage] - * @property {string} [name] - * @property {string} [display_name] - * @property {string} [modified_on] - * @property {UserSchemaCustom} [modified_by] - * @property {Manager} [manager] - * @property {string[]} [notification_emails] - * @property {string} [verified_on] - * @property {UserSchemaCustom} [verified_by] - * @property {IntegrationType} [integration_type] + * @property {string} [_id] + * @property {ArticleAssignment1} article_assignment * @property {number} [company_id] - * @property {Document[]} [documents] - * @property {string} [created_on] - * @property {Address} [address] - * @property {UserSchemaCustom} [created_by] - * @property {Object} [_custom_json] - * @property {number} [uid] - * @property {Timing[]} [timing] - * @property {string} [store_type] - */ - -/** - * @typedef UserSchemaCustom - * @property {string} [user_id] - * @property {string} [username] - */ - -/** - * @typedef Manager - * @property {string} [name] - * @property {string} [email] - * @property {MobileNo} [mobile_no] - */ - -/** - * @typedef MobileNo - * @property {number} [country_code] - * @property {string} [number] - */ - -/** - * @typedef IntegrationType - * @property {string} [order] - * @property {string} [inventory] - */ - -/** - * @typedef Address - * @property {string} [country_code] - * @property {string} [address1] - * @property {string} [city] - * @property {string} [address2] - * @property {string} [country] - * @property {number} [pincode] - * @property {string} [landmark] - * @property {string} [state] + * @property {string} [group_id] + * @property {number} [index] + * @property {number} item_id + * @property {Object} [meta] + * @property {number} [price_effective] + * @property {number} [price_marked] + * @property {number} quantity + * @property {string} [s_city] + * @property {string} size + * @property {boolean} status + * @property {number} [store_id] + * @property {number} [store_pincode] + * @property {Object[]} [strategy_wise_listing] + * @property {string} [uid] */ /** * @typedef StoreDetail * @property {Object[]} [additional_contacts] + * @property {Object} [address] * @property {number} [company_id] * @property {string} [created_on] * @property {string} [display_name] + * @property {Object[]} [documents] + * @property {Object} [manager] * @property {string} [modified_on] * @property {string} [name] * @property {string} [store_code] * @property {string} [store_type] - * @property {Timing[]} [timing] + * @property {Object} [timing] * @property {number} [uid] - * @property {string} [stage] - * @property {UserSchemaCustom} [modified_by] - * @property {Manager} [manager] - * @property {string[]} [notification_emails] - * @property {string} [verified_on] - * @property {UserSchemaCustom} [verified_by] - * @property {IntegrationType} [integration_type] - * @property {Document[]} [documents] - * @property {Address} [address] - * @property {UserSchemaCustom} [created_by] - * @property {Object} [_custom_json] */ /** @@ -4363,7 +3326,7 @@ const Joi = require("joi"); /** * @typedef TemplatesResponse - * @property {ProductTemplate[]} [items] + * @property {ProductTemplate} [items] * @property {Page} [page] */ @@ -4407,9 +3370,6 @@ const Joi = require("joi"); /** * @typedef UpdateCollection - * @property {Action} [action] - * @property {string} [uid] - * @property {string} [app_id] * @property {Object} [_custom_json] * @property {Object} [_locale_language] * @property {CollectionSchedule} [_schedule] @@ -4544,7 +3504,6 @@ const Joi = require("joi"); /** * @typedef ValidateProduct * @property {boolean} [valid] - * @property {string} [message] */ /** @@ -4597,12 +3556,12 @@ const Joi = require("joi"); * @property {string} [app_id] * @property {boolean} [enabled] * @property {CreatedBy} [created_by] - * @property {string} [created_on] + * @property {Object} [created_on] * @property {string} [opt_level] * @property {number} [company_id] * @property {CreatedBy} [modified_by] * @property {number[]} [store_ids] - * @property {string} [modified_on] + * @property {Object} [modified_on] * @property {string} [platforms] * @property {string} [_id] */ @@ -4613,60 +3572,14 @@ const Joi = require("joi"); * @property {Page} [page] */ -/** - * @typedef CreateMarketplaceOptinRequest - * @property {number[]} [brand_ids] - * @property {number} [company_id] - * @property {boolean} [enabled] - * @property {number} [opt_level] - * @property {string} [platform] - * @property {number[]} [store_ids] - */ - /** * @typedef UpdateMarketplaceOptinRequest * @property {number[]} [brand_ids] * @property {number} [company_id] * @property {boolean} [enabled] - * @property {number} [opt_level] - * @property {string} [platform] - * @property {number[]} [store_ids] - */ - -/** - * @typedef CreateMarketplaceOptinResponse - * @property {number[]} [store_ids] - * @property {number[]} [brand_ids] - * @property {number} [company_id] * @property {string} [opt_level] * @property {string} [platform] - * @property {boolean} [enabled] - * @property {CreatedBy} [created_by] - * @property {CreatedBy} [modified_by] - * @property {string} [app_id] - */ - -/** - * @typedef GetProductTemplateSlugItems - * @property {string[]} [attributes] - * @property {string[]} [departments] - * @property {boolean} [is_active] - * @property {string} [tag] - * @property {boolean} [is_physical] - * @property {string} [description] - * @property {string} [logo] - * @property {boolean} [is_archived] - * @property {string} [slug] - * @property {string[]} [categories] - * @property {boolean} [is_expirable] - * @property {string} [name] - * @property {string} [id] - */ - -/** - * @typedef GetProductTemplateSlugResponse - * @property {Page} [page] - * @property {GetProductTemplateSlugItems[]} [items] + * @property {number[]} [store_ids] */ /** @@ -4682,211 +3595,6 @@ const Joi = require("joi"); * @property {CreatedBy} [modified_by] */ -/** - * @typedef AutocompleteRequestSchema - * @property {Object} [query_suggestion] - * @property {Object} [product_suggestion] - * @property {Object} [collection_suggestion] - * @property {Object} [brand_suggestion] - * @property {Object} [category_suggestion] - */ - -/** - * @typedef AutocompleteUpsertResponseSchema - * @property {string} [message] - * @property {string} [id] - * @property {boolean} [success] - */ - -/** - * @typedef AutocompleteErrorResponseSchema - * @property {string} [message] - * @property {boolean} [success] - */ - -/** - * @typedef AutocompleteResponseSchema - * @property {string} [id] - * @property {Object} [query_suggestion] - * @property {Object} [product_suggestion] - * @property {Object} [collection_suggestion] - * @property {Object} [brand_suggestion] - * @property {Object} [category_suggestion] - */ - -/** - * @typedef ProductListingActionPage - * @property {string} [type] - * @property {Object} [query] - * @property {Object} [params] - */ - -/** - * @typedef ProductListingAction - * @property {string} [type] - * @property {ProductListingActionPage} [page] - */ - -/** - * @typedef AutocompleteItem - * @property {Media} [logo] - * @property {string} [display] - * @property {string} [type] - * @property {Object} [_custom_json] - * @property {ProductListingAction} [action] - */ - -/** - * @typedef AutocompletePreviewResponseSchema - * @property {AutocompleteItem[]} [items] - */ - -/** - * @typedef CreateAppPriceFactoryRequest - * @property {number[]} [departments] - * @property {string} [factory_type] - * @property {string[]} [factory_type_ids] - * @property {string} [code] - * @property {string} [name] - * @property {boolean} [is_active] - */ - -/** - * @typedef CreateAppPriceFactoryResponse - * @property {string} [id] - * @property {number[]} [departments] - * @property {string} [factory_type] - * @property {string[]} [factory_type_ids] - * @property {string} [code] - * @property {string} [name] - * @property {boolean} [is_active] - */ - -/** - * @typedef AppPriceFactory - * @property {string} [id] - * @property {number[]} [departments] - * @property {string} [factory_type] - * @property {number[]} [factory_type_ids] - * @property {string} [code] - * @property {string} [name] - * @property {boolean} [is_active] - * @property {CreatedBy} [created_by] - * @property {CreatedBy} [modified_by] - * @property {string} [created_on] - * @property {string} [modified_on] - */ - -/** - * @typedef EditAppPriceFactoryRequest - * @property {string[]} [departments] - * @property {string} [factory_type] - * @property {number[]} [factory_type_ids] - * @property {string} [code] - * @property {string} [name] - * @property {boolean} [is_active] - */ - -/** - * @typedef GetAppPriceFactoryResponse - * @property {AppPriceFactory[]} [items] - * @property {Page} [page] - */ - -/** - * @typedef CreateAppPriceFactoryProduct - * @property {number} [item_id] - * @property {string} [brand] - * @property {string} [seller_identifier] - */ - -/** - * @typedef PriceFactorySizes - * @property {string} [size_name] - * @property {string} [seller_identifier] - * @property {number} [marked_price] - * @property {number} [selling_price] - * @property {string} [currency] - * @property {boolean} [is_active] - */ - -/** - * @typedef CompanySizes - * @property {string} [size_name] - * @property {string} [seller_identifier] - * @property {number} [marked_price] - * @property {number} [selling_price] - * @property {string} [currency] - * @property {boolean} [is_active] - */ - -/** - * @typedef CreateAppPriceFactoryProductResponse - * @property {number} [item_id] - * @property {string} [item_name] - * @property {string} [item_code] - * @property {string} [brand] - * @property {string} [category] - * @property {string[]} [factory_type_id] - * @property {Object} [media] - * @property {Object} [sizes] - * @property {Object} [company_sizes] - */ - -/** - * @typedef UpdateAppPriceFactoryProductRequest - * @property {Object} [sizes] - */ - -/** - * @typedef UpdateAppPriceFactoryProductResponse - * @property {number} [item_id] - * @property {string} [zone_id] - * @property {Object} [media] - * @property {Object} [company_sizes] - * @property {Object} [sizes] - */ - -/** - * @typedef CreateAppPriceFactoryProductRequest - * @property {CreateAppPriceFactoryProduct[]} [items] - */ - -/** - * @typedef CreateAppPriceFactoryProductsResponse - * @property {CreateAppPriceFactoryProductResponse[]} [items] - */ - -/** - * @typedef CreateAppPriceFactoryProductBulkJobRequest - * @property {string} [file_path] - * @property {string} [file_type] - * @property {string} [job_type] - */ - -/** - * @typedef CreateAppPriceFactoryProductBulkJobResponse - * @property {string} [job_id] - * @property {string} [status] - * @property {Object} [created_on] - * @property {Object} [modified_on] - * @property {CreatedBy} [created_by] - * @property {CreatedBy} [modified_by] - */ - -/** - * @typedef CreateAppPriceFactoryProductBulkJobPollResponse - * @property {string} [status] - * @property {number} [total_records] - * @property {number} [success_records] - * @property {number} [failed_records] - * @property {string} [error_file] - * @property {Object} [created_on] - * @property {Object} [modified_on] - * @property {CreatedBy} [created_by] - * @property {CreatedBy} [modified_by] - */ - /** * @typedef {| "about-us" * | "addresses" @@ -4924,158 +3632,19 @@ const Joi = require("joi"); * | "tnc" * | "track-order" * | "wishlist" - * | "sections" - * | "form" - * | "cart-delivery" - * | "cart-payment" - * | "cart-review" - * | "login" - * | "register" - * | "shipping-policy" - * | "return-policy" - * | "order-status"} PageType - */ - -class CatalogPlatformModel { - /** @returns {SearchRequest} */ - static SearchRequest() { - return Joi.object({ - is_active: Joi.boolean(), - q: Joi.string().allow(""), - page_no: Joi.number(), - page_size: Joi.number(), - }); - } - - /** @returns {MerchandisingRuleQuery} */ - static MerchandisingRuleQuery() { - return Joi.object({ - condition: Joi.string().allow(""), - search_query: Joi.string().allow(""), - synonyms: Joi.string().allow(""), - }); - } - - /** @returns {MerchandisingRulesList} */ - static MerchandisingRulesList() { - return Joi.object({ - rule_id: Joi.string().allow(""), - query: CatalogPlatformModel.MerchandisingRuleQuery(), - actions: Joi.array().items(Joi.string().allow("")), - zones: Joi.array().items(Joi.string().allow("")), - }); - } - - /** @returns {SuccessResponseMerchandising} */ - static SuccessResponseMerchandising() { - return Joi.object({ - message: Joi.string().allow(""), - }); - } - - /** @returns {MerchandiseQueryResponse} */ - static MerchandiseQueryResponse() { - return Joi.object({ - message: Joi.string().allow(""), - merchandising_rule_id: Joi.string().allow(""), - }); - } - - /** @returns {MerchandisingRuleQueryPost} */ - static MerchandisingRuleQueryPost() { - return Joi.object({ - query_condition: Joi.string().allow(""), - query: CatalogPlatformModel.MerchandisingRuleQuery(), - actions: Joi.array().items(Joi.string().allow("")), - zones: Joi.array().items(Joi.string().allow("")), - }); - } - - /** @returns {PinItem} */ - static PinItem() { - return Joi.object({ - name: Joi.string().allow(""), - uid: Joi.number(), - position: Joi.number(), - }); - } - - /** @returns {PinItemRequest} */ - static PinItemRequest() { - return Joi.object({ - action: Joi.string().allow(""), - item_id: Joi.number(), - position: Joi.number(), - }); - } - - /** @returns {PinRequest} */ - static PinRequest() { - return Joi.object({ - action_value: Joi.array().items(CatalogPlatformModel.PinItemRequest()), - }); - } - - /** @returns {PinResponse} */ - static PinResponse() { - return Joi.object({ - data: Joi.array().items(CatalogPlatformModel.PinItem()), - }); - } - - /** @returns {HideAttribute} */ - static HideAttribute() { - return Joi.object({ - name: Joi.string().allow(""), - uid: Joi.number(), - }); - } - - /** @returns {HideAttributeRequest} */ - static HideAttributeRequest() { - return Joi.object({ - action: Joi.string().allow(""), - item_id: Joi.number(), - }); - } - - /** @returns {HideResponse} */ - static HideResponse() { - return Joi.object({ - data: Joi.array().items(CatalogPlatformModel.HideAttribute()), - }); - } - - /** @returns {HideRequest} */ - static HideRequest() { - return Joi.object({ - data: Joi.array().items(CatalogPlatformModel.HideAttributeRequest()), - }); - } - - /** @returns {BoostAttribute} */ - static BoostAttribute() { - return Joi.object({ - attribute: Joi.string().allow(""), - value: Joi.string().allow(""), - strength: Joi.number(), - }); - } - - /** @returns {GetMerchandisingRuleBoostAction} */ - static GetMerchandisingRuleBoostAction() { - return Joi.object({ - data: Joi.array().items(CatalogPlatformModel.BoostAttribute()), - }); - } - - /** @returns {GetMerchandisingRuleBuryAction} */ - static GetMerchandisingRuleBuryAction() { - return Joi.object({ - data: Joi.array().items(CatalogPlatformModel.BoostAttribute()), - }); - } + * | "sections" + * | "form" + * | "cart-delivery" + * | "cart-payment" + * | "cart-review" + * | "login" + * | "register" + * | "shipping-policy" + * | "return-policy" + * | "order-status"} PageType + */ +class CatalogPlatformModel { /** @returns {Action} */ static Action() { return Joi.object({ @@ -5085,13 +3654,6 @@ class CatalogPlatformModel { }); } - /** @returns {ActionProperties} */ - static ActionProperties() { - return Joi.object({ - collection: Joi.array().items(Joi.string().allow("")), - }); - } - /** @returns {ActionPage} */ static ActionPage() { return Joi.object({ @@ -5135,11 +3697,11 @@ class CatalogPlatformModel { app_id: Joi.string().allow("").required(), config_id: Joi.string().allow(""), config_type: Joi.string().allow("").required(), - created_by: CatalogPlatformModel.UserSerializer(), + created_by: Joi.any(), created_on: Joi.string().allow(""), id: Joi.string().allow(""), listing: CatalogPlatformModel.ConfigurationListing(), - modified_by: CatalogPlatformModel.UserSerializer(), + modified_by: Joi.any(), modified_on: Joi.string().allow(""), product: CatalogPlatformModel.ConfigurationProduct(), type: Joi.string().allow(""), @@ -5181,28 +3743,10 @@ class CatalogPlatformModel { }); } - /** @returns {AppConfigurationCreateDetail} */ - static AppConfigurationCreateDetail() { - return Joi.object({ - app_id: Joi.string().allow(""), - attributes: Joi.array().items( - CatalogPlatformModel.AttributeDetailsGroup() - ), - is_active: Joi.boolean().required(), - is_default: Joi.boolean().required(), - logo: Joi.string().allow(""), - name: Joi.string().allow(""), - priority: Joi.number().required(), - slug: Joi.string().allow("").required(), - template_slugs: Joi.array().items(Joi.string().allow("")), - }); - } - /** @returns {AppConfigurationDetail} */ static AppConfigurationDetail() { return Joi.object({ - id: Joi.string().allow(""), - app_id: Joi.string().allow(""), + app_id: Joi.string().allow("").required(), attributes: Joi.array().items( CatalogPlatformModel.AttributeDetailsGroup() ), @@ -5216,54 +3760,11 @@ class CatalogPlatformModel { }); } - /** @returns {AppConfigurationsResponse} */ - static AppConfigurationsResponse() { - return Joi.object({ - id: Joi.string().allow(""), - app_id: Joi.string().allow(""), - default_key: Joi.string().allow(""), - is_active: Joi.boolean(), - is_default: Joi.boolean(), - key: Joi.string().allow(""), - logo: Joi.string().allow(""), - name: Joi.string().allow(""), - priority: Joi.number(), - }); - } - /** @returns {AppConfigurationsSort} */ static AppConfigurationsSort() { return Joi.object({ app_id: Joi.string().allow("").required(), - default_key: Joi.string().allow(""), - is_active: Joi.boolean().required(), - is_default: Joi.boolean().required(), - key: Joi.string().allow("").required(), - logo: Joi.string().allow(""), - name: Joi.string().allow(""), - priority: Joi.number().required(), - }); - } - - /** @returns {ValueConfigType} */ - static ValueConfigType() { - return Joi.object({ - bucket_points: Joi.array().items(Joi.any()), - map: Joi.any(), - sort: Joi.string().allow(""), - condition: Joi.string().allow(""), - value: Joi.string().allow(""), - }); - } - - /** @returns {AppConfigurationsFilter} */ - static AppConfigurationsFilter() { - return Joi.object({ - app_id: Joi.string().allow("").required(), - allow_single: Joi.boolean(), - attribute_name: Joi.string().allow(""), - value_config: CatalogPlatformModel.ValueConfigType(), - type: Joi.string().allow(""), + default_key: Joi.string().allow("").required(), is_active: Joi.boolean().required(), is_default: Joi.boolean().required(), key: Joi.string().allow("").required(), @@ -5273,24 +3774,6 @@ class CatalogPlatformModel { }); } - /** @returns {AppConfigurationsFilterResponse} */ - static AppConfigurationsFilterResponse() { - return Joi.object({ - id: Joi.string().allow(""), - app_id: Joi.string().allow(""), - allow_single: Joi.boolean(), - attribute_name: Joi.string().allow(""), - value_config: CatalogPlatformModel.ValueConfigType(), - type: Joi.string().allow(""), - is_active: Joi.boolean(), - is_default: Joi.boolean(), - key: Joi.string().allow(""), - logo: Joi.string().allow(""), - name: Joi.string().allow(""), - priority: Joi.number(), - }); - } - /** @returns {ApplicationBrandJson} */ static ApplicationBrandJson() { return Joi.object({ @@ -5368,24 +3851,12 @@ class CatalogPlatformModel { return Joi.object({ filters: Joi.array().items(CatalogPlatformModel.ProductFilters()), items: Joi.array().items(CatalogPlatformModel.ProductListingDetail()), - operators: CatalogPlatformModel.OperatorsResponse(), + operators: Joi.any(), page: CatalogPlatformModel.Page().required(), sort_on: Joi.array().items(CatalogPlatformModel.ProductSortOn()), }); } - /** @returns {OperatorsResponse} */ - static OperatorsResponse() { - return Joi.object({ - btw: Joi.string().allow(""), - lte: Joi.string().allow(""), - gte: Joi.string().allow(""), - gt: Joi.string().allow(""), - lt: Joi.string().allow(""), - nin: Joi.string().allow(""), - }); - } - /** @returns {ApplicationStoreJson} */ static ApplicationStoreJson() { return Joi.object({ @@ -5396,11 +3867,11 @@ class CatalogPlatformModel { /** @returns {AppReturnConfigResponse} */ static AppReturnConfigResponse() { return Joi.object({ - created_by: CatalogPlatformModel.CreatedBy(), - modified_by: CatalogPlatformModel.CreatedBy(), app_id: Joi.string().allow(""), category_count: Joi.number(), company_id: Joi.number(), + created_by: Joi.any(), + modified_by: Joi.any(), modified_on: Joi.string().allow(""), return_config_level: Joi.string().allow(""), }); @@ -5621,7 +4092,7 @@ class CatalogPlatformModel { data: Joi.array().items( CatalogPlatformModel.AppCategoryReturnConfigResponse() ), - page: CatalogPlatformModel.PageResponse1(), + page: CatalogPlatformModel.PageResponse(), }); } @@ -5634,22 +4105,14 @@ class CatalogPlatformModel { }); } - /** @returns {BrandLogo} */ - static BrandLogo() { - return Joi.object({ - url: Joi.string().allow(""), - type: Joi.string().allow(""), - }); - } - /** @returns {BrandItem} */ static BrandItem() { return Joi.object({ action: CatalogPlatformModel.Action(), banners: CatalogPlatformModel.ImageUrls(), - departments: Joi.array().items(Joi.number()), + departments: Joi.array().items(Joi.string().allow("")), discount: Joi.string().allow(""), - logo: CatalogPlatformModel.BrandLogo(), + logo: CatalogPlatformModel.Media2(), name: Joi.string().allow(""), slug: Joi.string().allow(""), uid: Joi.number(), @@ -5688,17 +4151,10 @@ class CatalogPlatformModel { }); } - /** @returns {BulkHsnDataResponse} */ - static BulkHsnDataResponse() { - return Joi.object({ - success: Joi.boolean(), - }); - } - /** @returns {BulkHsnResponse} */ static BulkHsnResponse() { return Joi.object({ - data: CatalogPlatformModel.BulkHsnDataResponse(), + success: Joi.boolean(), }); } @@ -5738,30 +4194,6 @@ class CatalogPlatformModel { }); } - /** @returns {BulkProductUploadJob} */ - static BulkProductUploadJob() { - return Joi.object({ - company_id: Joi.number(), - total: Joi.number(), - succeed: Joi.number(), - stage: Joi.string().allow(""), - file_path: Joi.string().allow(""), - template_tag: Joi.string().allow(""), - tracking_url: Joi.string().allow(""), - }); - } - - /** @returns {BulkProductJob} */ - static BulkProductJob() { - return Joi.object({ - company_id: Joi.string().allow(""), - template_tag: Joi.string().allow(""), - product_type: Joi.string().allow(""), - department: Joi.string().allow(""), - file_path: Joi.string().allow(""), - }); - } - /** @returns {BulkJob} */ static BulkJob() { return Joi.object({ @@ -5870,94 +4302,6 @@ class CatalogPlatformModel { }); } - /** @returns {ChannelListResponse} */ - static ChannelListResponse() { - return Joi.object({ - items: Joi.array().items(CatalogPlatformModel.ChannelItem()), - page: CatalogPlatformModel.Page(), - }); - } - - /** @returns {ChannelDetailResponse} */ - static ChannelDetailResponse() { - return Joi.object({ - created_on: Joi.string().allow(""), - created_by: CatalogPlatformModel.CreatedBy(), - name: Joi.string().allow(""), - logo: Joi.string().allow(""), - validation: CatalogPlatformModel.ChannelValidation(), - _id: Joi.string().allow(""), - description: Joi.string().allow(""), - slug: Joi.string().allow(""), - app_id: Joi.string().allow(""), - modified_by: CatalogPlatformModel.CreatedBy(), - modified_on: Joi.string().allow(""), - display_name: Joi.string().allow(""), - }); - } - - /** @returns {ChannelItem} */ - static ChannelItem() { - return Joi.object({ - logo: Joi.string().allow(""), - modified_by: CatalogPlatformModel.CreatedBy(), - created_by: CatalogPlatformModel.CreatedBy(), - slug: Joi.string().allow(""), - name: Joi.string().allow(""), - app_id: Joi.string().allow(""), - modified_on: Joi.string().allow(""), - _id: Joi.string().allow(""), - description: Joi.string().allow(""), - validation: CatalogPlatformModel.ChannelValidation(), - created_on: Joi.string().allow(""), - display_name: Joi.string().allow(""), - }); - } - - /** @returns {ChannelValidation} */ - static ChannelValidation() { - return Joi.object({ - product: CatalogPlatformModel.ProductValidation(), - brand: CatalogPlatformModel.BrandValidationItem(), - company: CatalogPlatformModel.CompanyValidation(), - location: CatalogPlatformModel.LocationValidation(), - }); - } - - /** @returns {ProductValidation} */ - static ProductValidation() { - return Joi.object({ - gated_category_applicable: Joi.boolean(), - imageless_products: Joi.boolean(), - stage: Joi.string().allow(""), - }); - } - - /** @returns {BrandValidationItem} */ - static BrandValidationItem() { - return Joi.object({ - stage: Joi.string().allow(""), - consent_doc_required: Joi.boolean(), - }); - } - - /** @returns {CompanyValidation} */ - static CompanyValidation() { - return Joi.object({ - bank_ac_required: Joi.boolean(), - gst_required: Joi.boolean(), - verified: Joi.boolean(), - }); - } - - /** @returns {LocationValidation} */ - static LocationValidation() { - return Joi.object({ - gst_required: Joi.boolean(), - stage: Joi.string().allow(""), - }); - } - /** @returns {CategoryCreateResponse} */ static CategoryCreateResponse() { return Joi.object({ @@ -6067,48 +4411,27 @@ class CatalogPlatformModel { }); } - /** @returns {CollectionBannerResponse} */ - static CollectionBannerResponse() { - return Joi.object({ - landscape: CatalogPlatformModel.CollectionImageResponse(), - portrait: CatalogPlatformModel.CollectionImageResponse(), - }); - } - - /** @returns {BadgeDetail} */ - static BadgeDetail() { - return Joi.object({ - color: Joi.string().allow(""), - text: Joi.string().allow(""), - }); - } - /** @returns {CollectionCreateResponse} */ static CollectionCreateResponse() { return Joi.object({ - badge: CatalogPlatformModel.CollectionBadge(), - banners: CatalogPlatformModel.CollectionBannerResponse(), + uid: Joi.string().allow(""), + _schedule: Joi.any(), + allow_facets: Joi.boolean(), + allow_sort: Joi.boolean(), + app_id: Joi.string().allow(""), + badge: Joi.any(), + banners: CatalogPlatformModel.ImageUrls(), + cron: Joi.any(), description: Joi.string().allow(""), is_active: Joi.boolean(), - is_visible: Joi.boolean(), - logo: CatalogPlatformModel.CollectionImageResponse(), + logo: CatalogPlatformModel.BannerImage(), meta: Joi.any(), name: Joi.string().allow(""), priority: Joi.number(), - published: Joi.boolean(), query: Joi.array().items(CatalogPlatformModel.CollectionQuery()), - seo: CatalogPlatformModel.SeoDetail(), - _custom_json: Joi.any(), - _locale_language: Joi.any(), - _schedule: CatalogPlatformModel.CollectionSchedule(), - action: CatalogPlatformModel.Action(), - uid: Joi.string().allow(""), - allow_facets: Joi.boolean(), - allow_sort: Joi.boolean(), - app_id: Joi.string().allow(""), slug: Joi.string().allow(""), sort_on: Joi.string().allow(""), - tags: Joi.array().items(Joi.string().allow("")), + tag: Joi.array().items(Joi.string().allow("")), type: Joi.string().allow(""), visible_facets_keys: Joi.array().items(Joi.string().allow("")), }); @@ -6142,18 +4465,8 @@ class CatalogPlatformModel { /** @returns {CollectionImage} */ static CollectionImage() { return Joi.object({ - aspect_ratio: Joi.string().allow(""), - url: Joi.string().allow(""), - secure_url: Joi.string().allow(""), - type: Joi.string().allow(""), - }); - } - - /** @returns {CollectionImageResponse} */ - static CollectionImageResponse() { - return Joi.object({ - type: Joi.string().allow(""), - url: Joi.string().allow(""), + aspect_ratio: Joi.string().allow("").required(), + url: Joi.string().allow("").required(), }); } @@ -6213,7 +4526,7 @@ class CatalogPlatformModel { return Joi.object({ attribute: Joi.string().allow("").required(), op: Joi.string().allow("").required(), - value: Joi.array().items(Joi.string().allow("")).required(), + value: Joi.array().items(Joi.any()).required(), }); } @@ -6235,9 +4548,6 @@ class CatalogPlatformModel { brand_name: Joi.string().allow(""), company_id: Joi.number(), total_article: Joi.number(), - logo: Joi.any(), - name: Joi.string().allow(""), - id: Joi.number(), }); } @@ -6274,8 +4584,6 @@ class CatalogPlatformModel { /** @returns {ConfigErrorResponse} */ static ConfigErrorResponse() { return Joi.object({ - code: Joi.string().allow(""), - errors: Joi.any(), message: Joi.string().allow("").required(), }); } @@ -6299,8 +4607,8 @@ class CatalogPlatformModel { /** @returns {ConfigurationListing} */ static ConfigurationListing() { return Joi.object({ - filter: CatalogPlatformModel.ConfigurationListingFilter(), - sort: CatalogPlatformModel.ConfigurationListingSort(), + filter: CatalogPlatformModel.ConfigurationListingFilter().required(), + sort: CatalogPlatformModel.ConfigurationListingSort().required(), }); } @@ -6359,52 +4667,16 @@ class CatalogPlatformModel { is_active: Joi.boolean().required(), key: Joi.string().allow("").required(), logo: Joi.string().allow(""), - name: Joi.string().allow(""), - priority: Joi.number().required(), - }); - } - - /** @returns {ConfigurationProduct} */ - static ConfigurationProduct() { - return Joi.object({ - similar: CatalogPlatformModel.ConfigurationProductSimilar(), - variant: CatalogPlatformModel.ConfigurationProductVariant(), - details_groups: CatalogPlatformModel.ConfigurationProductDetailsGroups(), - }); - } - - /** @returns {ConfigurationProductDetailsGroups} */ - static ConfigurationProductDetailsGroups() { - return Joi.object({ - config: Joi.array().items( - CatalogPlatformModel.ConfigurationProductDetailsConfig() - ), - }); - } - - /** @returns {ConfigurationProductDetailsConfig} */ - static ConfigurationProductDetailsConfig() { - return Joi.object({ - name: Joi.string().allow(""), - slug: Joi.string().allow(""), - priority: Joi.number(), - template_slugs: Joi.array().items(Joi.string().allow("")), - attributes: Joi.array().items( - CatalogPlatformModel.ConfigurationProductDetailsAttribute() - ), - is_active: Joi.boolean(), + name: Joi.string().allow(""), + priority: Joi.number().required(), }); } - /** @returns {ConfigurationProductDetailsAttribute} */ - static ConfigurationProductDetailsAttribute() { + /** @returns {ConfigurationProduct} */ + static ConfigurationProduct() { return Joi.object({ - name: Joi.string().allow(""), - slug: Joi.string().allow(""), - display_type: Joi.string().allow(""), - priority: Joi.number(), - is_active: Joi.boolean(), - key: Joi.string().allow(""), + similar: CatalogPlatformModel.ConfigurationProductSimilar().required(), + variant: CatalogPlatformModel.ConfigurationProductVariant().required(), }); } @@ -6460,18 +4732,15 @@ class CatalogPlatformModel { is_active: Joi.boolean(), results: Joi.array().items(CatalogPlatformModel.AutocompleteResult()), words: Joi.array().items(Joi.string().allow("")), - action: CatalogPlatformModel.AutocompleteAction(), }); } /** @returns {CreateAutocompleteWordsResponse} */ static CreateAutocompleteWordsResponse() { return Joi.object({ - uid: Joi.string().allow(""), - is_active: Joi.boolean(), - results: Joi.array().items(CatalogPlatformModel.AutocompleteResult()), _custom_json: Joi.any(), app_id: Joi.string().allow(""), + results: Joi.array().items(Joi.any()), words: Joi.array().items(Joi.string().allow("")), }); } @@ -6484,7 +4753,7 @@ class CatalogPlatformModel { _schedule: CatalogPlatformModel.CollectionSchedule(), allow_facets: Joi.boolean(), allow_sort: Joi.boolean(), - app_id: Joi.string().allow(""), + app_id: Joi.string().allow("").required(), badge: CatalogPlatformModel.CollectionBadge(), banners: CatalogPlatformModel.CollectionBanner().required(), created_by: CatalogPlatformModel.UserInfo(), @@ -6507,109 +4776,6 @@ class CatalogPlatformModel { }); } - /** @returns {RerankingBoostItems} */ - static RerankingBoostItems() { - return Joi.object({ - boost: Joi.array().items(CatalogPlatformModel.BoostItem()), - }); - } - - /** @returns {GetSearchRerankDetailResponse} */ - static GetSearchRerankDetailResponse() { - return Joi.object({ - ranking: CatalogPlatformModel.RerankingBoostItems(), - is_active: Joi.boolean(), - modified_by: CatalogPlatformModel.CreatedBy(), - created_by: CatalogPlatformModel.CreatedBy(), - words: Joi.array().items(Joi.string().allow("")), - app_id: Joi.string().allow(""), - modified_on: Joi.string().allow(""), - created_on: Joi.string().allow(""), - id: Joi.string().allow(""), - }); - } - - /** @returns {BoostItem} */ - static BoostItem() { - return Joi.object({ - attribute_key: Joi.string().allow(""), - attribute_value: Joi.string().allow(""), - }); - } - - /** @returns {GetSearchRerankItemResponse} */ - static GetSearchRerankItemResponse() { - return Joi.object({ - created_on: Joi.string().allow(""), - modified_on: Joi.string().allow(""), - words: Joi.array().items(Joi.string().allow("")), - app_id: Joi.string().allow(""), - modified_by: CatalogPlatformModel.CreatedBy(), - ranking: CatalogPlatformModel.RerankingBoostItems(), - created_by: CatalogPlatformModel.CreatedBy(), - is_active: Joi.boolean(), - id: Joi.string().allow(""), - }); - } - - /** @returns {GetSearchRerankResponse} */ - static GetSearchRerankResponse() { - return Joi.object({ - items: Joi.array().items( - CatalogPlatformModel.GetSearchRerankItemResponse() - ), - page: CatalogPlatformModel.PageResponse1(), - }); - } - - /** @returns {CreateSearchRerankResponse} */ - static CreateSearchRerankResponse() { - return Joi.object({ - words: Joi.array().items(Joi.string().allow("")), - app_id: Joi.string().allow(""), - ranking: CatalogPlatformModel.RerankingBoostItems(), - is_active: Joi.boolean(), - created_on: Joi.string().allow(""), - created_by: CatalogPlatformModel.CreatedBy(), - modified_on: Joi.string().allow(""), - modified_by: CatalogPlatformModel.CreatedBy(), - }); - } - - /** @returns {UpdateSearchRerankResponse} */ - static UpdateSearchRerankResponse() { - return Joi.object({ - words: Joi.array().items(Joi.string().allow("")), - app_id: Joi.string().allow(""), - ranking: CatalogPlatformModel.RerankingBoostItems(), - is_active: Joi.boolean(), - created_on: Joi.string().allow(""), - created_by: CatalogPlatformModel.CreatedBy(), - modified_on: Joi.string().allow(""), - modified_by: CatalogPlatformModel.CreatedBy(), - }); - } - - /** @returns {UpdateSearchRerankRequest} */ - static UpdateSearchRerankRequest() { - return Joi.object({ - words: Joi.array().items(Joi.string().allow("")), - is_active: Joi.boolean(), - application_id: Joi.string().allow(""), - ranking: CatalogPlatformModel.RerankingBoostItems(), - }); - } - - /** @returns {CreateSearchRerankRequest} */ - static CreateSearchRerankRequest() { - return Joi.object({ - words: Joi.array().items(Joi.string().allow("")), - is_active: Joi.boolean(), - application_id: Joi.string().allow(""), - ranking: CatalogPlatformModel.RerankingBoostItems(), - }); - } - /** @returns {CreateSearchConfigurationRequest} */ static CreateSearchConfigurationRequest() { return Joi.object({ @@ -6665,8 +4831,8 @@ class CatalogPlatformModel { /** @returns {CrossSellingResponse} */ static CrossSellingResponse() { return Joi.object({ - articles: Joi.number(), - products: Joi.number(), + brand_distribution: CatalogPlatformModel.CatalogInsightBrand(), + data: CatalogPlatformModel.CrossSellingData(), }); } @@ -6719,14 +4885,6 @@ class CatalogPlatformModel { }); } - /** @returns {DeleteSearchRerankConfigurationResponse} */ - static DeleteSearchRerankConfigurationResponse() { - return Joi.object({ - success: Joi.boolean(), - message: Joi.string().allow(""), - }); - } - /** @returns {Department} */ static Department() { return Joi.object({ @@ -6749,14 +4907,7 @@ class CatalogPlatformModel { /** @returns {DepartmentCreateErrorResponse} */ static DepartmentCreateErrorResponse() { return Joi.object({ - error: Joi.any(), - }); - } - - /** @returns {ProductBundleCreateErrorResponse} */ - static ProductBundleCreateErrorResponse() { - return Joi.object({ - error: Joi.any(), + error: Joi.string().allow(""), }); } @@ -6811,9 +4962,11 @@ class CatalogPlatformModel { _custom_json: Joi.any(), _id: Joi.string().allow(""), created_by: CatalogPlatformModel.UserDetail(), + created_on: Joi.string().allow("").required(), is_active: Joi.boolean(), logo: Joi.string().allow("").required(), modified_by: CatalogPlatformModel.UserDetail(), + modified_on: Joi.string().allow("").required(), name: Joi.string().allow("").required(), priority_order: Joi.number().required(), slug: Joi.string().allow("").required(), @@ -6831,13 +4984,6 @@ class CatalogPlatformModel { }); } - /** @returns {ValidationFailedResponse} */ - static ValidationFailedResponse() { - return Joi.object({ - message: Joi.string().allow(""), - }); - } - /** @returns {DepartmentsResponse} */ static DepartmentsResponse() { return Joi.object({ @@ -6881,9 +5027,9 @@ class CatalogPlatformModel { /** @returns {EntityConfiguration} */ static EntityConfiguration() { return Joi.object({ - app_id: Joi.string().allow(""), + app_id: Joi.string().allow("").required(), config_id: Joi.string().allow(""), - config_type: Joi.string().allow(""), + config_type: Joi.string().allow("").required(), id: Joi.string().allow(""), listing: CatalogPlatformModel.GetCatalogConfigurationDetailsSchemaListing(), product: CatalogPlatformModel.GetCatalogConfigurationDetailsProduct(), @@ -6893,7 +5039,7 @@ class CatalogPlatformModel { /** @returns {ErrorResponse} */ static ErrorResponse() { return Joi.object({ - code: Joi.number(), + code: Joi.string().allow(""), error: Joi.string().allow(""), message: Joi.string().allow(""), meta: Joi.any(), @@ -6901,15 +5047,6 @@ class CatalogPlatformModel { }); } - /** @returns {CategoryErrorResponse} */ - static CategoryErrorResponse() { - return Joi.object({ - code: Joi.string().allow(""), - error: Joi.any(), - message: Joi.string().allow(""), - }); - } - /** @returns {FilerList} */ static FilerList() { return Joi.object({ @@ -7006,23 +5143,18 @@ class CatalogPlatformModel { /** @returns {GenderDetail} */ static GenderDetail() { return Joi.object({ - created_on: Joi.string().allow(""), - modified_on: Joi.string().allow(""), - created_by: CatalogPlatformModel.CreatedBy(), - modified_by: CatalogPlatformModel.CreatedBy(), departments: Joi.array().items(Joi.string().allow("")), description: Joi.string().allow(""), details: CatalogPlatformModel.AttributeMasterDetails(), enabled_for_end_consumer: Joi.boolean(), filters: CatalogPlatformModel.AttributeMasterFilter(), - _id: Joi.string().allow(""), + id: Joi.string().allow(""), is_nested: Joi.boolean(), logo: Joi.string().allow(""), meta: CatalogPlatformModel.AttributeMasterMeta(), name: Joi.string().allow(""), schema: CatalogPlatformModel.AttributeMaster(), slug: Joi.string().allow(""), - variant: Joi.boolean(), }); } @@ -7050,21 +5182,6 @@ class CatalogPlatformModel { }); } - /** @returns {FilterResponse} */ - static FilterResponse() { - return Joi.object({ - values: Joi.array().items(CatalogPlatformModel.ValueItem()), - }); - } - - /** @returns {ValueItem} */ - static ValueItem() { - return Joi.object({ - text: Joi.string().allow(""), - value: Joi.string().allow(""), - }); - } - /** @returns {GetAppCatalogConfiguration} */ static GetAppCatalogConfiguration() { return Joi.object({ @@ -7084,11 +5201,11 @@ class CatalogPlatformModel { /** @returns {GetAutocompleteWordsData} */ static GetAutocompleteWordsData() { return Joi.object({ - results: Joi.array().items(CatalogPlatformModel.AutocompleteResult()), + _custom_json: Joi.any(), app_id: Joi.string().allow(""), - words: Joi.array().items(Joi.string().allow("")), - is_active: Joi.boolean(), + results: Joi.array().items(Joi.any()), uid: Joi.string().allow(""), + words: Joi.array().items(Joi.string().allow("")), }); } @@ -7103,80 +5220,10 @@ class CatalogPlatformModel { /** @returns {GetCatalogConfigurationDetailsProduct} */ static GetCatalogConfigurationDetailsProduct() { return Joi.object({ - compare: CatalogPlatformModel.CompareFilter(), - similar: CatalogPlatformModel.SimilarFilter(), - variant: CatalogPlatformModel.VariantFilter(), - detail: CatalogPlatformModel.DetailFilter(), - }); - } - - /** @returns {FilterItem} */ - static FilterItem() { - return Joi.object({ - key: Joi.string().allow(""), - display: Joi.string().allow(""), - filter_types: Joi.array().items(Joi.string().allow("")), - units: Joi.array().items(Joi.string().allow("")), - }); - } - - /** @returns {CompareFilter} */ - static CompareFilter() { - return Joi.object({ - data: Joi.array().items(CatalogPlatformModel.FilterItem()), - }); - } - - /** @returns {SimilarFilter} */ - static SimilarFilter() { - return Joi.object({ - data: Joi.array().items(CatalogPlatformModel.SimilarItem()), - }); - } - - /** @returns {VariantFilter} */ - static VariantFilter() { - return Joi.object({ - data: Joi.array().items(CatalogPlatformModel.VariantItem()), - }); - } - - /** @returns {DetailFilter} */ - static DetailFilter() { - return Joi.object({ - data: Joi.array().items(CatalogPlatformModel.FilterItem()), - values: CatalogPlatformModel.DetailFilterValues(), - }); - } - - /** @returns {DetailFilterValues} */ - static DetailFilterValues() { - return Joi.object({ - display_type: Joi.array().items(CatalogPlatformModel.DisplayType()), - }); - } - - /** @returns {DisplayType} */ - static DisplayType() { - return Joi.object({ - key: Joi.string().allow(""), - display: Joi.string().allow(""), - }); - } - - /** @returns {SimilarItem} */ - static SimilarItem() { - return Joi.object({ - key: Joi.string().allow(""), - display: Joi.string().allow(""), - }); - } - - /** @returns {VariantItem} */ - static VariantItem() { - return Joi.object({ - key: Joi.string().allow(""), - display: Joi.string().allow(""), + compare: Joi.any(), + detail: Joi.any(), + similar: Joi.any(), + variant: Joi.any(), }); } @@ -7222,172 +5269,67 @@ class CatalogPlatformModel { }); } - /** @returns {GetCollectionItemsResponse} */ - static GetCollectionItemsResponse() { - return Joi.object({ - filters: Joi.array().items(CatalogPlatformModel.ProductFilters()), - items: Joi.array().items(CatalogPlatformModel.ProductListingDetail()), - page: CatalogPlatformModel.Page(), - sort_on: Joi.array().items(CatalogPlatformModel.ProductSortOn()), - }); - } - - /** @returns {GetCollectionListingResponse} */ - static GetCollectionListingResponse() { - return Joi.object({ - filters: CatalogPlatformModel.CollectionListingFilter(), - items: Joi.array().items(CatalogPlatformModel.GetCollectionDetailNest()), - page: CatalogPlatformModel.Page(), - }); - } - - /** @returns {GetCollectionQueryOptionResponse} */ - static GetCollectionQueryOptionResponse() { - return Joi.object({ - filters: Joi.array().items(CatalogPlatformModel.ProductFilters()), - operators: Joi.object().pattern(/\S/, Joi.string().allow("")).required(), - sort_on: Joi.array().items(CatalogPlatformModel.ProductSortOn()), - }); - } - - /** @returns {GetCompanySerializer} */ - static GetCompanySerializer() { - return Joi.object({ - addresses: Joi.array().items(CatalogPlatformModel.GetAddressSerializer()), - business_type: Joi.string().allow(""), - company_type: Joi.string().allow(""), - created_by: CatalogPlatformModel.UserSerializer2(), - created_on: Joi.string().allow(""), - modified_by: CatalogPlatformModel.UserSerializer2(), - modified_on: Joi.string().allow(""), - name: Joi.string().allow(""), - reject_reason: Joi.string().allow(""), - stage: Joi.string().allow(""), - uid: Joi.number(), - verified_by: CatalogPlatformModel.UserSerializer2(), - verified_on: Joi.string().allow(""), - }); - } - - /** @returns {ConditionItem} */ - static ConditionItem() { - return Joi.object({ - key: Joi.string().allow(""), - display: Joi.string().allow(""), - }); - } - - /** @returns {DataItem} */ - static DataItem() { - return Joi.object({ - key: Joi.string().allow(""), - display: Joi.string().allow(""), - filter_types: Joi.array().items(Joi.string().allow("")), - compatible_units: Joi.array().items(Joi.string().allow("")), - }); - } - - /** @returns {ValueTypeItem} */ - static ValueTypeItem() { - return Joi.object({ - key: Joi.string().allow(""), - display: Joi.string().allow(""), - }); - } - - /** @returns {SortTypeItem} */ - static SortTypeItem() { - return Joi.object({ - key: Joi.string().allow(""), - display: Joi.string().allow(""), - }); - } - - /** @returns {GetConfigMetadataResponse} */ - static GetConfigMetadataResponse() { + /** @returns {GetCollectionItemsResponse} */ + static GetCollectionItemsResponse() { return Joi.object({ + filters: Joi.array().items(CatalogPlatformModel.ProductFilters()), + items: Joi.array().items(CatalogPlatformModel.ProductListingDetail()), page: CatalogPlatformModel.Page(), - condition: Joi.array().items(CatalogPlatformModel.ConditionItem()), - data: Joi.array().items(CatalogPlatformModel.DataItem()).required(), - values: CatalogPlatformModel.GetConfigMetadataValues(), - }); - } - - /** @returns {GetConfigMetadataValues} */ - static GetConfigMetadataValues() { - return Joi.object({ - type: Joi.array().items(CatalogPlatformModel.ValueTypeItem()), - sort: Joi.array().items(CatalogPlatformModel.SortTypeItem()), - }); - } - - /** @returns {AttributeType} */ - static AttributeType() { - return Joi.object({ - unit: Joi.string().allow(""), - priority: Joi.number(), - name: Joi.string().allow(""), - key: Joi.string().allow(""), - display_type: Joi.string().allow(""), - is_active: Joi.boolean(), - slug: Joi.string().allow(""), + sort_on: Joi.array().items(CatalogPlatformModel.ProductSortOn()), }); } - /** @returns {DataType} */ - static DataType() { + /** @returns {GetCollectionListingResponse} */ + static GetCollectionListingResponse() { return Joi.object({ - app_id: Joi.string().allow(""), - is_default: Joi.boolean(), - priority: Joi.number(), - name: Joi.string().allow(""), - attributes: Joi.array().items(CatalogPlatformModel.AttributeType()), - is_active: Joi.boolean(), - slug: Joi.string().allow(""), - id: Joi.string().allow(""), + filters: CatalogPlatformModel.CollectionListingFilter(), + items: Joi.array().items(CatalogPlatformModel.GetCollectionDetailNest()), + page: CatalogPlatformModel.Page(), }); } - /** @returns {ListingValueConfigType} */ - static ListingValueConfigType() { + /** @returns {GetCollectionQueryOptionResponse} */ + static GetCollectionQueryOptionResponse() { return Joi.object({ - sort: Joi.string().allow(""), - bucket_points: Joi.array().items(Joi.any()), - map: Joi.any(), - condition: Joi.string().allow(""), - value: Joi.string().allow(""), + filters: Joi.array().items(CatalogPlatformModel.ProductFilters()), + operators: Joi.object().pattern(/\S/, Joi.string().allow("")).required(), + sort_on: Joi.array().items(CatalogPlatformModel.ProductSortOn()), }); } - /** @returns {ListingDataType} */ - static ListingDataType() { + /** @returns {GetCompanySerializer} */ + static GetCompanySerializer() { return Joi.object({ - app_id: Joi.string().allow(""), - allow_single: Joi.boolean(), - id: Joi.string().allow(""), - is_active: Joi.boolean(), - key: Joi.string().allow(""), + addresses: Joi.array().items(CatalogPlatformModel.GetAddressSerializer()), + business_type: Joi.string().allow(""), + company_type: Joi.string().allow(""), + created_by: CatalogPlatformModel.UserSerializer2(), + created_on: Joi.string().allow(""), + modified_by: CatalogPlatformModel.UserSerializer2(), + modified_on: Joi.string().allow(""), name: Joi.string().allow(""), - is_default: Joi.boolean(), - priority: Joi.number(), - logo: Joi.string().allow(""), - value_config: CatalogPlatformModel.ListingValueConfigType(), - type: Joi.string().allow(""), + reject_reason: Joi.string().allow(""), + stage: Joi.string().allow(""), + uid: Joi.number(), + verified_by: CatalogPlatformModel.UserSerializer2(), + verified_on: Joi.string().allow(""), }); } - /** @returns {GetListingConfigResponse} */ - static GetListingConfigResponse() { + /** @returns {GetConfigMetadataResponse} */ + static GetConfigMetadataResponse() { return Joi.object({ - data: Joi.array().items(CatalogPlatformModel.ListingDataType()), - page: CatalogPlatformModel.PageResponseType(), + condition: Joi.array().items(Joi.any()), + data: Joi.array().items(Joi.any()).required(), + page: CatalogPlatformModel.Page(), + values: Joi.array().items(Joi.any()), }); } /** @returns {GetConfigResponse} */ static GetConfigResponse() { return Joi.object({ - data: Joi.array().items(CatalogPlatformModel.DataType()).required(), + data: Joi.array().items(Joi.any()).required(), page: CatalogPlatformModel.PageResponseType().required(), }); } @@ -7503,15 +5445,15 @@ class CatalogPlatformModel { /** @returns {GetProductBundleCreateResponse} */ static GetProductBundleCreateResponse() { return Joi.object({ - created_by: CatalogPlatformModel.UserSerializer(), - modified_by: CatalogPlatformModel.UserSerializer(), choice: Joi.string().allow("").required(), company_id: Joi.number(), + created_by: Joi.any(), created_on: Joi.string().allow(""), id: Joi.string().allow(""), is_active: Joi.boolean().required(), logo: Joi.string().allow("").allow(null), meta: Joi.any(), + modified_by: Joi.any(), modified_on: Joi.string().allow(""), name: Joi.string().allow("").required(), page_visibility: Joi.array().items(Joi.string().allow("")), @@ -7602,21 +5544,29 @@ class CatalogPlatformModel { }); } + /** @returns {GetQueryFiltersKeysResponse} */ + static GetQueryFiltersKeysResponse() { + return Joi.object({ + filters: Joi.array().items(CatalogPlatformModel.ProductFiltersKeysOnly()), + operators: Joi.object().pattern(/\S/, Joi.string().allow("")).required(), + sort_on: Joi.array().items(CatalogPlatformModel.ProductSortOn()), + }); + } + /** @returns {GetQueryFiltersResponse} */ static GetQueryFiltersResponse() { return Joi.object({ filters: Joi.array().items(CatalogPlatformModel.ProductFilters()), - operators: Joi.object().pattern(/\S/, Joi.string().allow("")), + operators: Joi.object().pattern(/\S/, Joi.string().allow("")).required(), sort_on: Joi.array().items(CatalogPlatformModel.ProductSortOn()), }); } - /** @returns {GetCollectionItemsResponseSchema} */ - static GetCollectionItemsResponseSchema() { + /** @returns {GetCollectionItemsResponseSchemaV2} */ + static GetCollectionItemsResponseSchemaV2() { return Joi.object({ items: Joi.array().items(CatalogPlatformModel.ProductDetailV2()), - sort_on: Joi.array().items(CatalogPlatformModel.ProductSortOnv2()), - page: CatalogPlatformModel.Page(), + page: CatalogPlatformModel.Page1(), }); } @@ -7644,8 +5594,8 @@ class CatalogPlatformModel { }); } - /** @returns {CollectionItemUpdateSchema} */ - static CollectionItemUpdateSchema() { + /** @returns {CollectionItemUpdateSchemaV2} */ + static CollectionItemUpdateSchemaV2() { return Joi.object({ allow_facets: Joi.boolean(), allow_sort: Joi.boolean(), @@ -7653,7 +5603,6 @@ class CatalogPlatformModel { query: Joi.array().items(CatalogPlatformModel.CollectionQuerySchemaV2()), type: Joi.string().allow("").required(), visible_facets_keys: Joi.array().items(Joi.string().allow("")), - reset_items: Joi.boolean(), }); } @@ -7662,7 +5611,7 @@ class CatalogPlatformModel { return Joi.object({ attribute: Joi.string().allow("").required(), op: Joi.string().allow("").required(), - value: Joi.array().items(Joi.string().allow("")).required(), + value: Joi.array().items(Joi.any()).required(), }); } @@ -7686,7 +5635,6 @@ class CatalogPlatformModel { /** @returns {GetSearchConfigurationResponse} */ static GetSearchConfigurationResponse() { return Joi.object({ - _id: Joi.string().allow(""), application_id: Joi.string().allow("").required(), company_id: Joi.number().required(), created_by: CatalogPlatformModel.UserSerializer(), @@ -7704,8 +5652,6 @@ class CatalogPlatformModel { /** @returns {GetSearchWordsData} */ static GetSearchWordsData() { return Joi.object({ - query: Joi.any(), - sort_on: Joi.string().allow(""), _custom_json: Joi.any(), app_id: Joi.string().allow(""), is_active: Joi.boolean(), @@ -7769,14 +5715,13 @@ class CatalogPlatformModel { /** @returns {HSNDataInsertV2} */ static HSNDataInsertV2() { return Joi.object({ - id: Joi.string().allow(""), country_code: Joi.string().allow("").required(), - created_by: CatalogPlatformModel.CreatedBy(), - modified_by: CatalogPlatformModel.CreatedBy(), + created_by: Joi.any(), created_on: Joi.string().allow(""), description: Joi.string().allow("").required(), hsn_code: Joi.string().allow("").required(), hsn_code_id: Joi.string().allow(""), + modified_by: Joi.any(), modified_on: Joi.string().allow(""), reporting_hsn: Joi.string().allow("").required(), taxes: Joi.array().items(CatalogPlatformModel.TaxSlab()).required(), @@ -7800,39 +5745,11 @@ class CatalogPlatformModel { }); } - /** @returns {SlabObject} */ - static SlabObject() { - return Joi.object({ - threshold: Joi.number(), - tax: Joi.number(), - }); - } - - /** @returns {UpdateHsnCodesObject} */ - static UpdateHsnCodesObject() { - return Joi.object({ - modified_by: CatalogPlatformModel.CreatedBy(), - company_id: Joi.number(), - slabs: Joi.array().items(CatalogPlatformModel.SlabObject()), - hs2_code: Joi.string().allow(""), - hsn_code: Joi.string().allow(""), - tax_on: Joi.string().allow(""), - id: Joi.string().allow(""), - }); - } - - /** @returns {UpdateHsnCode} */ - static UpdateHsnCode() { - return Joi.object({ - data: CatalogPlatformModel.UpdateHsnCodesObject(), - }); - } - /** @returns {HsnCodesListingResponseSchemaV2} */ static HsnCodesListingResponseSchemaV2() { return Joi.object({ items: Joi.array().items(CatalogPlatformModel.HSNDataInsertV2()), - page: CatalogPlatformModel.PageResponse1(), + page: CatalogPlatformModel.PageResponse(), }); } @@ -7927,7 +5844,7 @@ class CatalogPlatformModel { static InventoryConfig() { return Joi.object({ data: Joi.array().items(CatalogPlatformModel.FilerList()), - multivalue: Joi.boolean(), + multivalues: Joi.boolean(), }); } @@ -7937,7 +5854,7 @@ class CatalogPlatformModel { data: Joi.array().items(Joi.string().allow("")), filters: CatalogPlatformModel.InventoryExportFilter().required(), notification_emails: Joi.array().items(Joi.string().allow("")), - type: Joi.string().allow(""), + type: Joi.string().allow("").allow(null), }); } @@ -7963,34 +5880,6 @@ class CatalogPlatformModel { }); } - /** @returns {InventoryExportJobResponse} */ - static InventoryExportJobResponse() { - return Joi.object({ - items: Joi.array().items(CatalogPlatformModel.InventoryExportItem()), - }); - } - - /** @returns {InventoryExportItem} */ - static InventoryExportItem() { - return Joi.object({ - status: Joi.string().allow(""), - type: Joi.string().allow(""), - stats: Joi.any(), - completed_on: Joi.string().allow(""), - created_on: Joi.string().allow(""), - modified_on: Joi.string().allow(""), - seller_id: Joi.number(), - task_id: Joi.string().allow(""), - notification_emails: Joi.array().items(Joi.string().allow("")), - created_by: CatalogPlatformModel.CreatedBy(), - _id: Joi.string().allow(""), - url: Joi.string().allow(""), - trigger_on: Joi.string().allow(""), - brand: Joi.array().items(Joi.number()), - store: Joi.array().items(Joi.number()), - }); - } - /** @returns {InventoryExportJob} */ static InventoryExportJob() { return Joi.object({ @@ -8005,47 +5894,10 @@ class CatalogPlatformModel { }); } - /** @returns {InventoryExportJobListFilters} */ - static InventoryExportJobListFilters() { - return Joi.object({ - brand_ids: Joi.array().items(Joi.number()), - store_ids: Joi.array().items(Joi.number()), - brands: Joi.array().items(Joi.string().allow("")), - stores: Joi.array().items(Joi.string().allow("")), - }); - } - - /** @returns {InventoryExportJobListStats} */ - static InventoryExportJobListStats() { - return Joi.object({ - success: Joi.number(), - total: Joi.number(), - }); - } - - /** @returns {InventoryExportJobList} */ - static InventoryExportJobList() { - return Joi.object({ - status: Joi.string().allow(""), - completed_on: Joi.string().allow(""), - notification_emails: Joi.array().items(Joi.string().allow("")), - filters: CatalogPlatformModel.InventoryExportJobListFilters(), - stats: CatalogPlatformModel.InventoryExportJobListStats(), - type: Joi.string().allow(""), - modified_on: Joi.string().allow(""), - created_on: Joi.string().allow(""), - seller_id: Joi.number(), - url: Joi.string().allow(""), - task_id: Joi.string().allow(""), - created_by: CatalogPlatformModel.CreatedBy(), - id: Joi.string().allow(""), - }); - } - /** @returns {InventoryExportJobListResponse} */ static InventoryExportJobListResponse() { return Joi.object({ - items: Joi.array().items(CatalogPlatformModel.InventoryExportJobList()), + items: CatalogPlatformModel.InventoryJobDetailResponse().required(), }); } @@ -8058,76 +5910,27 @@ class CatalogPlatformModel { }); } - /** @returns {ExportPatchRequest} */ - static ExportPatchRequest() { - return Joi.object({ - notification_emails: Joi.array().items(Joi.string().allow("")), - status: Joi.string().allow(""), - }); - } - /** @returns {InventoryExportRequest} */ static InventoryExportRequest() { return Joi.object({ brand: Joi.array().items(Joi.number()), store: Joi.array().items(Joi.number()), - type: Joi.string().allow(""), - }); - } - - /** @returns {EditInventoryDataDownloadsResponse} */ - static EditInventoryDataDownloadsResponse() { - return Joi.object({ - url: Joi.string().allow(""), - completed_on: Joi.string().allow(""), - seller_id: Joi.number(), - task_id: Joi.string().allow(""), - created_on: Joi.string().allow(""), - modified_on: Joi.string().allow(""), - notification_emails: Joi.array().items(Joi.string().allow("")), - status: Joi.string().allow(""), - }); - } - - /** @returns {EditInventoryDownloadsResponse} */ - static EditInventoryDownloadsResponse() { - return Joi.object({ - data: CatalogPlatformModel.EditInventoryDataDownloadsResponse(), - }); - } - - /** @returns {InventoryExportFiltersResponse} */ - static InventoryExportFiltersResponse() { - return Joi.object({ - brand_ids: Joi.array().items(Joi.number()), - store_ids: Joi.array().items(Joi.number()), - }); - } - - /** @returns {Stats} */ - static Stats() { - return Joi.object({ - total: Joi.number(), + type: Joi.string().allow("").allow(null), }); } /** @returns {InventoryExportResponse} */ static InventoryExportResponse() { return Joi.object({ - created_by: CatalogPlatformModel.CreatedBy(), + created_by: Joi.string().allow(""), created_on: Joi.string().allow(""), - filters: CatalogPlatformModel.InventoryExportFiltersResponse(), + filters: Joi.any(), modified_on: Joi.string().allow(""), notification_emails: Joi.array().items(Joi.string().allow("")), seller_id: Joi.number().required(), status: Joi.string().allow(""), task_id: Joi.string().allow("").required(), type: Joi.string().allow(""), - stats: CatalogPlatformModel.Stats(), - _id: Joi.string().allow(""), - trigger_on: Joi.string().allow(""), - brand: Joi.array().items(Joi.number()), - store: Joi.array().items(Joi.number()), }); } @@ -8136,7 +5939,6 @@ class CatalogPlatformModel { return Joi.object({ errors: Joi.string().allow(""), message: Joi.string().allow("").required(), - reason_code: Joi.number(), }); } @@ -8155,7 +5957,7 @@ class CatalogPlatformModel { seller_id: Joi.number().required(), status: Joi.string().allow(""), task_id: Joi.string().allow("").required(), - type: Joi.string().allow(""), + type: Joi.string().allow("").allow(null), url: Joi.string().allow("").required(), }); } @@ -8227,6 +6029,7 @@ class CatalogPlatformModel { /** @returns {InventoryRequestSchemaV2} */ static InventoryRequestSchemaV2() { return Joi.object({ + company_id: Joi.number().required(), meta: Joi.any(), payload: Joi.array().items(CatalogPlatformModel.InventoryPayload()), }); @@ -8338,8 +6141,7 @@ class CatalogPlatformModel { static InventoryUpdateResponse() { return Joi.object({ items: Joi.array().items(CatalogPlatformModel.InventoryResponseItem()), - message: Joi.string().allow(""), - success: Joi.boolean(), + message: Joi.string().allow("").required(), }); } @@ -8400,23 +6202,6 @@ class CatalogPlatformModel { }); } - /** @returns {PriceRange} */ - static PriceRange() { - return Joi.object({ - min: Joi.number(), - max: Joi.number(), - }); - } - - /** @returns {ProductPriceRangeSchema} */ - static ProductPriceRangeSchema() { - return Joi.object({ - effective: CatalogPlatformModel.PriceRange(), - marked: CatalogPlatformModel.PriceRange(), - currency: Joi.string().allow(""), - }); - } - /** @returns {LimitedProductData} */ static LimitedProductData() { return Joi.object({ @@ -8426,7 +6211,7 @@ class CatalogPlatformModel { images: Joi.array().items(Joi.string().allow("")), item_code: Joi.string().allow(""), name: Joi.string().allow(""), - price: CatalogPlatformModel.ProductPriceRangeSchema(), + price: Joi.any(), quantity: Joi.number(), short_description: Joi.string().allow(""), sizes: Joi.array().items(Joi.string().allow("")), @@ -8438,8 +6223,8 @@ class CatalogPlatformModel { /** @returns {ListSizeGuide} */ static ListSizeGuide() { return Joi.object({ - items: Joi.array().items(CatalogPlatformModel.SizeGuideResponse()), - page: CatalogPlatformModel.Page(), + items: Joi.array().items(Joi.any()), + page: Joi.any(), }); } @@ -8464,7 +6249,6 @@ class CatalogPlatformModel { /** @returns {LocationListSerializer} */ static LocationListSerializer() { return Joi.object({ - filters: Joi.array().items(Joi.any()), items: Joi.array().items(CatalogPlatformModel.GetLocationSerializer()), page: CatalogPlatformModel.Page(), }); @@ -8554,33 +6338,9 @@ class CatalogPlatformModel { /** @returns {Meta} */ static Meta() { return Joi.object({ - headers: CatalogPlatformModel.GuideHeaders(), - values: Joi.array().items(CatalogPlatformModel.GuideValues()), + headers: Joi.any(), unit: Joi.string().allow(""), - }); - } - - /** @returns {GuideHeaders} */ - static GuideHeaders() { - return Joi.object({ - col_1: CatalogPlatformModel.Header(), - col_2: CatalogPlatformModel.Header(), - }); - } - - /** @returns {GuideValues} */ - static GuideValues() { - return Joi.object({ - col_1: Joi.string().allow(""), - col_2: Joi.string().allow(""), - }); - } - - /** @returns {Header} */ - static Header() { - return Joi.object({ - value: Joi.string().allow(""), - convertable: Joi.boolean(), + values: Joi.array().items(Joi.any()), }); } @@ -8680,52 +6440,13 @@ class CatalogPlatformModel { }); } - /** @returns {OptinAddress} */ - static OptinAddress() { - return Joi.object({ - address1: Joi.string().allow(""), - state: Joi.string().allow(""), - pincode: Joi.string().allow(""), - city: Joi.string().allow(""), - country: Joi.string().allow(""), - latitude: Joi.number(), - longitude: Joi.number(), - country_code: Joi.string().allow(""), - }); - } - - /** @returns {OptinDocument} */ - static OptinDocument() { - return Joi.object({ - type: Joi.string().allow(""), - value: Joi.string().allow(""), - legal_name: Joi.string().allow(""), - verified: Joi.boolean(), - }); - } - - /** @returns {OptinBusinessCountryInfo} */ - static OptinBusinessCountryInfo() { - return Joi.object({ - country: Joi.string().allow(""), - country_code: Joi.string().allow(""), - }); - } - /** @returns {OptinCompanyDetail} */ static OptinCompanyDetail() { return Joi.object({ + business_type: Joi.string().allow(""), + company_type: Joi.string().allow(""), name: Joi.string().allow(""), uid: Joi.number(), - business_info: Joi.string().allow(""), - business_type: Joi.string().allow(""), - business_country_info: CatalogPlatformModel.OptinBusinessCountryInfo(), - address: CatalogPlatformModel.OptinAddress(), - document: CatalogPlatformModel.OptinDocument(), - brands: Joi.array().items(Joi.number()), - notification_emails: Joi.array().items(Joi.string().allow("")), - warnings: Joi.any(), - stage: Joi.string().allow(""), }); } @@ -8749,7 +6470,6 @@ class CatalogPlatformModel { /** @returns {OwnerAppItemResponse} */ static OwnerAppItemResponse() { return Joi.object({ - size_promotion_threshold: Joi.any(), alt_text: Joi.any(), is_cod: Joi.boolean(), is_gift: Joi.boolean(), @@ -8947,12 +6667,10 @@ class CatalogPlatformModel { /** @returns {ProductBrand} */ static ProductBrand() { return Joi.object({ - type: Joi.string().allow(""), - uid: Joi.number(), + action: CatalogPlatformModel.Action(), + logo: CatalogPlatformModel.Media(), name: Joi.string().allow(""), - logo: Joi.any(), - action: CatalogPlatformModel.PageAction(), - _custom_json: Joi.any(), + uid: Joi.number(), }); } @@ -8988,28 +6706,6 @@ class CatalogPlatformModel { }); } - /** @returns {InventoryBulkJob} */ - static InventoryBulkJob() { - return Joi.object({ - company_id: Joi.string().allow(""), - file_path: Joi.string().allow(""), - }); - } - - /** @returns {ProductBulkResponse} */ - static ProductBulkResponse() { - return Joi.object({ - batch_id: Joi.string().allow(""), - }); - } - - /** @returns {InventoryBulkResponse} */ - static InventoryBulkResponse() { - return Joi.object({ - batch_id: Joi.string().allow(""), - }); - } - /** @returns {ProductBulkRequestList} */ static ProductBulkRequestList() { return Joi.object({ @@ -9034,7 +6730,7 @@ class CatalogPlatformModel { static ProductBundleRequest() { return Joi.object({ choice: Joi.string().allow("").required(), - company_id: Joi.string().allow(""), + company_id: Joi.number(), created_by: Joi.any(), created_on: Joi.string().allow(""), is_active: Joi.boolean().required(), @@ -9056,7 +6752,7 @@ class CatalogPlatformModel { static ProductBundleUpdateRequest() { return Joi.object({ choice: Joi.string().allow("").required(), - company_id: Joi.string().allow(""), + company_id: Joi.number(), is_active: Joi.boolean().required(), logo: Joi.string().allow("").allow(null), meta: Joi.any(), @@ -9080,27 +6776,6 @@ class CatalogPlatformModel { }); } - /** @returns {ProductCreateUpdateSizesSchema} */ - static ProductCreateUpdateSizesSchema() { - return Joi.object({ - size: Joi.string().allow(""), - price: Joi.number(), - price_effective: Joi.number(), - price_transfer: Joi.number(), - currency: Joi.string().allow(""), - item_length: Joi.number(), - item_width: Joi.number(), - item_height: Joi.number(), - item_weight: Joi.number(), - item_dimensions_unit_of_measure: Joi.string().allow(""), - item_weight_unit_of_measure: Joi.string().allow(""), - track_inventory: Joi.boolean(), - identifiers: Joi.array().items(CatalogPlatformModel.GTIN()), - _custom_json: Joi.any(), - name: Joi.string().allow(""), - }); - } - /** @returns {ProductCreateUpdateSchemaV2} */ static ProductCreateUpdateSchemaV2() { return Joi.object({ @@ -9135,9 +6810,7 @@ class CatalogPlatformModel { return_config: CatalogPlatformModel.ReturnConfig().required(), short_description: Joi.string().allow(""), size_guide: Joi.string().allow(""), - sizes: Joi.array() - .items(CatalogPlatformModel.ProductCreateUpdateSizesSchema()) - .required(), + sizes: Joi.array().items(Joi.any()).required(), slug: Joi.string().allow("").required(), tags: Joi.array().items(Joi.string().allow("")), tax_identifier: CatalogPlatformModel.TaxIdentifier().required(), @@ -9199,76 +6872,6 @@ class CatalogPlatformModel { }); } - /** @returns {PatchProductDownloadsDataResponse} */ - static PatchProductDownloadsDataResponse() { - return Joi.object({ - created_on: Joi.string().allow(""), - created_by: CatalogPlatformModel.CreatedBy(), - task_id: Joi.string().allow(""), - modified_on: Joi.string().allow(""), - seller_id: Joi.number(), - url: Joi.string().allow(""), - status: Joi.string().allow(""), - notification_emails: Joi.array().items(Joi.string().allow("")), - completed_on: Joi.string().allow(""), - }); - } - - /** @returns {PatchProductDownloadsResponse} */ - static PatchProductDownloadsResponse() { - return Joi.object({ - data: CatalogPlatformModel.PatchProductDownloadsDataResponse(), - }); - } - - /** @returns {ProductDownloadFilters} */ - static ProductDownloadFilters() { - return Joi.object({ - brands: Joi.array().items(Joi.string().allow("")).required(), - catalogue_types: Joi.array().items(Joi.string().allow("")).required(), - templates: Joi.array().items(Joi.string().allow("")).required(), - }); - } - - /** @returns {CreateProductDownloadsDataResponse} */ - static CreateProductDownloadsDataResponse() { - return Joi.object({ - created_on: Joi.string().allow(""), - type: Joi.string().allow(""), - task_id: Joi.string().allow(""), - filters: CatalogPlatformModel.ProductDownloadFilters(), - created_by: CatalogPlatformModel.CreatedBy(), - _id: Joi.string().allow(""), - notification_emails: Joi.array().items(Joi.any()), - modified_on: Joi.string().allow(""), - status: Joi.string().allow(""), - seller_id: Joi.number(), - stats: CatalogPlatformModel.Stats(), - }); - } - - /** @returns {CreateProductDownloadsResponse} */ - static CreateProductDownloadsResponse() { - return Joi.object({ - data: CatalogPlatformModel.CreateProductDownloadsDataResponse(), - }); - } - - /** @returns {GetProductDownloadsResponse} */ - static GetProductDownloadsResponse() { - return Joi.object({ - modified_on: Joi.string().allow(""), - url: Joi.string().allow(""), - status: Joi.string().allow(""), - completed_on: Joi.string().allow(""), - created_by: CatalogPlatformModel.CreatedBy(), - created_on: Joi.string().allow(""), - seller_id: Joi.number(), - task_id: Joi.string().allow(""), - id: Joi.string().allow(""), - }); - } - /** @returns {ProductDownloadsResponse} */ static ProductDownloadsResponse() { return Joi.object({ @@ -9288,6 +6891,23 @@ class CatalogPlatformModel { }); } + /** @returns {GetQueryFiltersValuesResponse} */ + static GetQueryFiltersValuesResponse() { + return Joi.object({ + values: Joi.array() + .items(CatalogPlatformModel.ProductFiltersValue()) + .required(), + page: CatalogPlatformModel.Page().required(), + }); + } + + /** @returns {ProductFiltersKeysOnly} */ + static ProductFiltersKeysOnly() { + return Joi.object({ + key: CatalogPlatformModel.ProductFiltersKey().required(), + }); + } + /** @returns {ProductFiltersKey} */ static ProductFiltersKey() { return Joi.object({ @@ -9313,7 +6933,7 @@ class CatalogPlatformModel { query_format: Joi.string().allow(""), selected_max: Joi.number(), selected_min: Joi.number(), - value: Joi.string().allow("").required(), + value: Joi.any().required(), }); } @@ -9348,29 +6968,6 @@ class CatalogPlatformModel { tryouts: Joi.array().items(Joi.string().allow("")), type: Joi.string().allow(""), uid: Joi.number(), - categories: Joi.array().items(Joi.string().allow("")), - _custom_meta: Joi.array().items(Joi.string().allow("")), - action: CatalogPlatformModel.PageAction(), - is_tryout: Joi.boolean(), - all_company_ids: Joi.array().items(Joi.number()), - is_custom_order: Joi.boolean(), - collections: Joi.array().items(Joi.string().allow("")), - }); - } - - /** @returns {PageAction} */ - static PageAction() { - return Joi.object({ - page: CatalogPlatformModel.ActionObject(), - type: Joi.string().allow(""), - }); - } - - /** @returns {ActionObject} */ - static ActionObject() { - return Joi.object({ - type: Joi.string().allow(""), - query: Joi.any(), }); } @@ -9398,25 +6995,6 @@ class CatalogPlatformModel { }); } - /** @returns {ProductVerificationModel} */ - static ProductVerificationModel() { - return Joi.object({ - rejected_fields: Joi.any(), - status: Joi.string().allow(""), - brand_uid: Joi.number(), - created_on: Joi.string().allow(""), - company_ids: Joi.array().items(Joi.number()), - item_code: Joi.string().allow(""), - remark: Joi.string().allow(""), - created_by: CatalogPlatformModel.CreatedBy(), - modified_on: Joi.string().allow(""), - slug: Joi.string().allow(""), - modified_by: CatalogPlatformModel.CreatedBy(), - item_id: Joi.number(), - id: Joi.string().allow(""), - }); - } - /** @returns {ProductPublish} */ static ProductPublish() { return Joi.object({ @@ -9458,27 +7036,9 @@ class CatalogPlatformModel { }); } - /** @returns {CategorySubSchema} */ - static CategorySubSchema() { - return Joi.object({ - name: Joi.string().allow(""), - uid: Joi.number(), - }); - } - - /** @returns {CategoryProduct} */ - static CategoryProduct() { - return Joi.object({ - l3: CatalogPlatformModel.CategorySubSchema(), - l1: CatalogPlatformModel.CategorySubSchema(), - l2: CatalogPlatformModel.CategorySubSchema(), - }); - } - /** @returns {ProductSchemaV2} */ static ProductSchemaV2() { return Joi.object({ - category: CatalogPlatformModel.CategoryProduct(), _custom_json: Joi.any(), all_company_ids: Joi.array().items(Joi.number()), all_identifiers: Joi.array().items(Joi.string().allow("")), @@ -9486,6 +7046,7 @@ class CatalogPlatformModel { attributes: Joi.any(), brand: CatalogPlatformModel.Brand(), brand_uid: Joi.number(), + category: Joi.any(), category_slug: Joi.string().allow(""), category_uid: Joi.number(), color: Joi.string().allow(""), @@ -9574,19 +7135,6 @@ class CatalogPlatformModel { is_selected: Joi.boolean(), name: Joi.string().allow(""), value: Joi.string().allow(""), - display: Joi.string().allow(""), - logo: Joi.string().allow(""), - }); - } - - /** @returns {ProductSortOnv2} */ - static ProductSortOnv2() { - return Joi.object({ - is_selected: Joi.boolean(), - name: Joi.string().allow(""), - value: Joi.string().allow(""), - display: Joi.string().allow(""), - logo: Joi.string().allow(""), }); } @@ -9602,8 +7150,7 @@ class CatalogPlatformModel { return Joi.object({ attributes: Joi.array().items(Joi.string().allow("")), categories: Joi.array().items(Joi.string().allow("")), - created_by: CatalogPlatformModel.CreatedBy(), - modified_by: CatalogPlatformModel.CreatedBy(), + created_by: Joi.any(), created_on: Joi.string().allow(""), departments: Joi.array().items(Joi.string().allow("")), description: Joi.string().allow(""), @@ -9612,7 +7159,7 @@ class CatalogPlatformModel { is_expirable: Joi.boolean().required(), is_physical: Joi.boolean().required(), logo: Joi.string().allow(""), - id: Joi.string().allow(""), + modified_by: Joi.any(), modified_on: Joi.string().allow(""), name: Joi.string().allow(""), slug: Joi.string().allow("").required(), @@ -9643,9 +7190,6 @@ class CatalogPlatformModel { /** @returns {ProductTemplateExportResponse} */ static ProductTemplateExportResponse() { return Joi.object({ - trigger_on: Joi.string().allow(""), - id: Joi.string().allow(""), - template_tags: Joi.any(), completed_on: Joi.string().allow(""), created_by: CatalogPlatformModel.UserInfo1(), filters: Joi.any(), @@ -9671,22 +7215,6 @@ class CatalogPlatformModel { }); } - /** @returns {CompanyVerificationStats} */ - static CompanyVerificationStats() { - return Joi.object({ - verified: Joi.number(), - }); - } - - /** @returns {CompanyVerificationResponse} */ - static CompanyVerificationResponse() { - return Joi.object({ - uid: Joi.number(), - name: Joi.string().allow(""), - stats: CatalogPlatformModel.CompanyVerificationStats(), - }); - } - /** @returns {ProductVariantsResponse} */ static ProductVariantsResponse() { return Joi.object({ @@ -9769,8 +7297,8 @@ class CatalogPlatformModel { static ReturnConfig() { return Joi.object({ returnable: Joi.boolean().required(), - time: Joi.number(), - unit: Joi.string().allow(""), + time: Joi.number().required(), + unit: Joi.string().allow("").required(), }); } @@ -9821,7 +7349,9 @@ class CatalogPlatformModel { static ApplicationItemSeoBreadcrumbs() { return Joi.object({ url: Joi.string().allow(""), - action: Joi.any(), + action: Joi.array().items( + CatalogPlatformModel.ApplicationItemSeoAction() + ), }); } @@ -9913,20 +7443,12 @@ class CatalogPlatformModel { }); } - /** @returns {SitemapDetail} */ - static SitemapDetail() { - return Joi.object({ - priority: Joi.number(), - frequency: Joi.string().allow(""), - }); - } - /** @returns {SeoDetail} */ static SeoDetail() { return Joi.object({ description: Joi.string().allow(""), title: Joi.string().allow(""), - sitemap: CatalogPlatformModel.SitemapDetail(), + sitemap: Joi.any(), breadcrumbs: Joi.array().items( CatalogPlatformModel.ApplicationItemSeoBreadcrumbs() ), @@ -9950,23 +7472,6 @@ class CatalogPlatformModel { }); } - /** @returns {VariantTypesResponse} */ - static VariantTypesResponse() { - return Joi.object({ - items: Joi.array().items(CatalogPlatformModel.VariantTypeItem()), - }); - } - - /** @returns {VariantTypeItem} */ - static VariantTypeItem() { - return Joi.object({ - name: Joi.string().allow(""), - key: Joi.string().allow(""), - type: Joi.array().items(Joi.string().allow("")), - image_config: Joi.any().allow(null), - }); - } - /** @returns {SingleProductResponse} */ static SingleProductResponse() { return Joi.object({ @@ -9994,118 +7499,42 @@ class CatalogPlatformModel { /** @returns {SizeGuideResponse} */ static SizeGuideResponse() { return Joi.object({ - image: Joi.string().allow(""), - created_by: CatalogPlatformModel.UserSerializer(), - modified_by: CatalogPlatformModel.UserSerializer(), active: Joi.boolean(), - brand_id: Joi.number(), - company_id: Joi.number(), - created_on: Joi.string().allow(""), - guide: Joi.any(), - id: Joi.string().allow(""), - modified_on: Joi.string().allow(""), - name: Joi.string().allow(""), - subtitle: Joi.string().allow(""), - tag: Joi.string().allow(""), - title: Joi.string().allow(""), - }); - } - - /** @returns {StoreAssignResponse} */ - static StoreAssignResponse() { - return Joi.object({ - success: Joi.boolean(), - items: Joi.array().items(Joi.any()), - }); - } - - /** @returns {Time} */ - static Time() { - return Joi.object({ - hour: Joi.number(), - minute: Joi.number(), - }); - } - - /** @returns {Timing} */ - static Timing() { - return Joi.object({ - closing: CatalogPlatformModel.Time(), - weekday: Joi.string().allow(""), - opening: CatalogPlatformModel.Time(), - open: Joi.boolean(), - }); - } - - /** @returns {StoreItem} */ - static StoreItem() { - return Joi.object({ - stage: Joi.string().allow(""), - name: Joi.string().allow(""), - display_name: Joi.string().allow(""), - modified_on: Joi.string().allow(""), - modified_by: CatalogPlatformModel.UserSchemaCustom(), - manager: CatalogPlatformModel.Manager(), - notification_emails: Joi.array().items(Joi.string().allow("")), - verified_on: Joi.string().allow(""), - verified_by: CatalogPlatformModel.UserSchemaCustom(), - integration_type: CatalogPlatformModel.IntegrationType(), - company_id: Joi.number(), - documents: Joi.array().items(CatalogPlatformModel.Document()), - created_on: Joi.string().allow(""), - address: CatalogPlatformModel.Address(), - created_by: CatalogPlatformModel.UserSchemaCustom(), - _custom_json: Joi.any(), - uid: Joi.number(), - timing: Joi.array().items(CatalogPlatformModel.Timing()), - store_type: Joi.string().allow(""), - }); - } - - /** @returns {UserSchemaCustom} */ - static UserSchemaCustom() { - return Joi.object({ - user_id: Joi.string().allow(""), - username: Joi.string().allow(""), - }); - } - - /** @returns {Manager} */ - static Manager() { - return Joi.object({ - name: Joi.string().allow(""), - email: Joi.string().allow(""), - mobile_no: CatalogPlatformModel.MobileNo(), - }); - } - - /** @returns {MobileNo} */ - static MobileNo() { - return Joi.object({ - country_code: Joi.number(), - number: Joi.string().allow(""), - }); - } - - /** @returns {IntegrationType} */ - static IntegrationType() { - return Joi.object({ - order: Joi.string().allow(""), - inventory: Joi.string().allow(""), + brand_id: Joi.number(), + company_id: Joi.number(), + created_by: Joi.any(), + created_on: Joi.string().allow(""), + guide: Joi.any(), + id: Joi.string().allow(""), + modified_by: Joi.any(), + modified_on: Joi.string().allow(""), + name: Joi.string().allow(""), + subtitle: Joi.string().allow(""), + tag: Joi.string().allow(""), + title: Joi.string().allow(""), }); } - /** @returns {Address} */ - static Address() { + /** @returns {StoreAssignResponse} */ + static StoreAssignResponse() { return Joi.object({ - country_code: Joi.string().allow(""), - address1: Joi.string().allow(""), - city: Joi.string().allow(""), - address2: Joi.string().allow(""), - country: Joi.string().allow(""), - pincode: Joi.number(), - landmark: Joi.string().allow(""), - state: Joi.string().allow(""), + _id: Joi.string().allow(""), + article_assignment: CatalogPlatformModel.ArticleAssignment1().required(), + company_id: Joi.number(), + group_id: Joi.string().allow(""), + index: Joi.number(), + item_id: Joi.number().required(), + meta: Joi.any(), + price_effective: Joi.number(), + price_marked: Joi.number(), + quantity: Joi.number().required(), + s_city: Joi.string().allow(""), + size: Joi.string().allow("").required(), + status: Joi.boolean().required(), + store_id: Joi.number(), + store_pincode: Joi.number(), + strategy_wise_listing: Joi.array().items(Joi.any()), + uid: Joi.string().allow(""), }); } @@ -10113,26 +7542,18 @@ class CatalogPlatformModel { static StoreDetail() { return Joi.object({ additional_contacts: Joi.array().items(Joi.any()), + address: Joi.any(), company_id: Joi.number(), created_on: Joi.string().allow(""), display_name: Joi.string().allow(""), + documents: Joi.array().items(Joi.any()), + manager: Joi.any(), modified_on: Joi.string().allow(""), name: Joi.string().allow(""), store_code: Joi.string().allow(""), store_type: Joi.string().allow(""), - timing: Joi.array().items(CatalogPlatformModel.Timing()), + timing: Joi.any(), uid: Joi.number(), - stage: Joi.string().allow(""), - modified_by: CatalogPlatformModel.UserSchemaCustom(), - manager: CatalogPlatformModel.Manager(), - notification_emails: Joi.array().items(Joi.string().allow("")), - verified_on: Joi.string().allow(""), - verified_by: CatalogPlatformModel.UserSchemaCustom(), - integration_type: CatalogPlatformModel.IntegrationType(), - documents: Joi.array().items(CatalogPlatformModel.Document()), - address: CatalogPlatformModel.Address(), - created_by: CatalogPlatformModel.UserSchemaCustom(), - _custom_json: Joi.any(), }); } @@ -10215,7 +7636,7 @@ class CatalogPlatformModel { /** @returns {TemplatesResponse} */ static TemplatesResponse() { return Joi.object({ - items: Joi.array().items(CatalogPlatformModel.ProductTemplate()), + items: CatalogPlatformModel.ProductTemplate(), page: CatalogPlatformModel.Page(), }); } @@ -10271,9 +7692,6 @@ class CatalogPlatformModel { /** @returns {UpdateCollection} */ static UpdateCollection() { return Joi.object({ - action: CatalogPlatformModel.Action(), - uid: Joi.string().allow(""), - app_id: Joi.string().allow(""), _custom_json: Joi.any(), _locale_language: Joi.any(), _schedule: CatalogPlatformModel.CollectionSchedule(), @@ -10431,7 +7849,6 @@ class CatalogPlatformModel { static ValidateProduct() { return Joi.object({ valid: Joi.boolean(), - message: Joi.string().allow(""), }); } @@ -10496,12 +7913,12 @@ class CatalogPlatformModel { app_id: Joi.string().allow(""), enabled: Joi.boolean(), created_by: CatalogPlatformModel.CreatedBy(), - created_on: Joi.string().allow(""), + created_on: Joi.any(), opt_level: Joi.string().allow(""), company_id: Joi.number(), modified_by: CatalogPlatformModel.CreatedBy(), store_ids: Joi.array().items(Joi.number()), - modified_on: Joi.string().allow(""), + modified_on: Joi.any(), platforms: Joi.string().allow(""), _id: Joi.string().allow(""), }); @@ -10515,71 +7932,15 @@ class CatalogPlatformModel { }); } - /** @returns {CreateMarketplaceOptinRequest} */ - static CreateMarketplaceOptinRequest() { - return Joi.object({ - brand_ids: Joi.array().items(Joi.number()), - company_id: Joi.number(), - enabled: Joi.boolean(), - opt_level: Joi.number(), - platform: Joi.string().allow(""), - store_ids: Joi.array().items(Joi.number()), - }); - } - /** @returns {UpdateMarketplaceOptinRequest} */ static UpdateMarketplaceOptinRequest() { return Joi.object({ brand_ids: Joi.array().items(Joi.number()), company_id: Joi.number(), enabled: Joi.boolean(), - opt_level: Joi.number(), - platform: Joi.string().allow(""), - store_ids: Joi.array().items(Joi.number()), - }); - } - - /** @returns {CreateMarketplaceOptinResponse} */ - static CreateMarketplaceOptinResponse() { - return Joi.object({ - store_ids: Joi.array().items(Joi.number()), - brand_ids: Joi.array().items(Joi.number()), - company_id: Joi.number(), opt_level: Joi.string().allow(""), platform: Joi.string().allow(""), - enabled: Joi.boolean(), - created_by: CatalogPlatformModel.CreatedBy(), - modified_by: CatalogPlatformModel.CreatedBy(), - app_id: Joi.string().allow(""), - }); - } - - /** @returns {GetProductTemplateSlugItems} */ - static GetProductTemplateSlugItems() { - return Joi.object({ - attributes: Joi.array().items(Joi.string().allow("")), - departments: Joi.array().items(Joi.string().allow("")), - is_active: Joi.boolean(), - tag: Joi.string().allow(""), - is_physical: Joi.boolean(), - description: Joi.string().allow(""), - logo: Joi.string().allow(""), - is_archived: Joi.boolean(), - slug: Joi.string().allow(""), - categories: Joi.array().items(Joi.string().allow("")), - is_expirable: Joi.boolean(), - name: Joi.string().allow(""), - id: Joi.string().allow(""), - }); - } - - /** @returns {GetProductTemplateSlugResponse} */ - static GetProductTemplateSlugResponse() { - return Joi.object({ - page: CatalogPlatformModel.Page(), - items: Joi.array().items( - CatalogPlatformModel.GetProductTemplateSlugItems() - ), + store_ids: Joi.array().items(Joi.number()), }); } @@ -10598,263 +7959,6 @@ class CatalogPlatformModel { }); } - /** @returns {AutocompleteRequestSchema} */ - static AutocompleteRequestSchema() { - return Joi.object({ - query_suggestion: Joi.any(), - product_suggestion: Joi.any(), - collection_suggestion: Joi.any(), - brand_suggestion: Joi.any(), - category_suggestion: Joi.any(), - }); - } - - /** @returns {AutocompleteUpsertResponseSchema} */ - static AutocompleteUpsertResponseSchema() { - return Joi.object({ - message: Joi.string().allow(""), - id: Joi.string().allow(""), - success: Joi.boolean(), - }); - } - - /** @returns {AutocompleteErrorResponseSchema} */ - static AutocompleteErrorResponseSchema() { - return Joi.object({ - message: Joi.string().allow(""), - success: Joi.boolean(), - }); - } - - /** @returns {AutocompleteResponseSchema} */ - static AutocompleteResponseSchema() { - return Joi.object({ - id: Joi.string().allow(""), - query_suggestion: Joi.any(), - product_suggestion: Joi.any(), - collection_suggestion: Joi.any(), - brand_suggestion: Joi.any(), - category_suggestion: Joi.any(), - }); - } - - /** @returns {ProductListingActionPage} */ - static ProductListingActionPage() { - return Joi.object({ - type: Joi.string().allow(""), - query: Joi.any(), - params: Joi.any(), - }); - } - - /** @returns {ProductListingAction} */ - static ProductListingAction() { - return Joi.object({ - type: Joi.string().allow(""), - page: CatalogPlatformModel.ProductListingActionPage(), - }); - } - - /** @returns {AutocompleteItem} */ - static AutocompleteItem() { - return Joi.object({ - logo: CatalogPlatformModel.Media(), - display: Joi.string().allow(""), - type: Joi.string().allow(""), - _custom_json: Joi.any(), - action: CatalogPlatformModel.ProductListingAction(), - }); - } - - /** @returns {AutocompletePreviewResponseSchema} */ - static AutocompletePreviewResponseSchema() { - return Joi.object({ - items: Joi.array().items(CatalogPlatformModel.AutocompleteItem()), - }); - } - - /** @returns {CreateAppPriceFactoryRequest} */ - static CreateAppPriceFactoryRequest() { - return Joi.object({ - departments: Joi.array().items(Joi.number()), - factory_type: Joi.string().allow(""), - factory_type_ids: Joi.array().items(Joi.string().allow("")), - code: Joi.string().allow(""), - name: Joi.string().allow(""), - is_active: Joi.boolean(), - }); - } - - /** @returns {CreateAppPriceFactoryResponse} */ - static CreateAppPriceFactoryResponse() { - return Joi.object({ - id: Joi.string().allow(""), - departments: Joi.array().items(Joi.number()), - factory_type: Joi.string().allow(""), - factory_type_ids: Joi.array().items(Joi.string().allow("")), - code: Joi.string().allow(""), - name: Joi.string().allow(""), - is_active: Joi.boolean(), - }); - } - - /** @returns {AppPriceFactory} */ - static AppPriceFactory() { - return Joi.object({ - id: Joi.string().allow(""), - departments: Joi.array().items(Joi.number()), - factory_type: Joi.string().allow(""), - factory_type_ids: Joi.array().items(Joi.number()), - code: Joi.string().allow(""), - name: Joi.string().allow(""), - is_active: Joi.boolean(), - created_by: CatalogPlatformModel.CreatedBy(), - modified_by: CatalogPlatformModel.CreatedBy(), - created_on: Joi.string().allow(""), - modified_on: Joi.string().allow(""), - }); - } - - /** @returns {EditAppPriceFactoryRequest} */ - static EditAppPriceFactoryRequest() { - return Joi.object({ - departments: Joi.array().items(Joi.string().allow("")), - factory_type: Joi.string().allow(""), - factory_type_ids: Joi.array().items(Joi.number()), - code: Joi.string().allow(""), - name: Joi.string().allow(""), - is_active: Joi.boolean(), - }); - } - - /** @returns {GetAppPriceFactoryResponse} */ - static GetAppPriceFactoryResponse() { - return Joi.object({ - items: Joi.array().items(CatalogPlatformModel.AppPriceFactory()), - page: CatalogPlatformModel.Page(), - }); - } - - /** @returns {CreateAppPriceFactoryProduct} */ - static CreateAppPriceFactoryProduct() { - return Joi.object({ - item_id: Joi.number(), - brand: Joi.string().allow(""), - seller_identifier: Joi.string().allow(""), - }); - } - - /** @returns {PriceFactorySizes} */ - static PriceFactorySizes() { - return Joi.object({ - size_name: Joi.string().allow(""), - seller_identifier: Joi.string().allow(""), - marked_price: Joi.number(), - selling_price: Joi.number(), - currency: Joi.string().allow(""), - is_active: Joi.boolean(), - }); - } - - /** @returns {CompanySizes} */ - static CompanySizes() { - return Joi.object({ - size_name: Joi.string().allow(""), - seller_identifier: Joi.string().allow(""), - marked_price: Joi.number(), - selling_price: Joi.number(), - currency: Joi.string().allow(""), - is_active: Joi.boolean(), - }); - } - - /** @returns {CreateAppPriceFactoryProductResponse} */ - static CreateAppPriceFactoryProductResponse() { - return Joi.object({ - item_id: Joi.number(), - item_name: Joi.string().allow(""), - item_code: Joi.string().allow(""), - brand: Joi.string().allow(""), - category: Joi.string().allow(""), - factory_type_id: Joi.array().items(Joi.string().allow("")), - media: Joi.any(), - sizes: Joi.any(), - company_sizes: Joi.any(), - }); - } - - /** @returns {UpdateAppPriceFactoryProductRequest} */ - static UpdateAppPriceFactoryProductRequest() { - return Joi.object({ - sizes: Joi.any(), - }); - } - - /** @returns {UpdateAppPriceFactoryProductResponse} */ - static UpdateAppPriceFactoryProductResponse() { - return Joi.object({ - item_id: Joi.number(), - zone_id: Joi.string().allow(""), - media: Joi.any(), - company_sizes: Joi.any(), - sizes: Joi.any(), - }); - } - - /** @returns {CreateAppPriceFactoryProductRequest} */ - static CreateAppPriceFactoryProductRequest() { - return Joi.object({ - items: Joi.array().items( - CatalogPlatformModel.CreateAppPriceFactoryProduct() - ), - }); - } - - /** @returns {CreateAppPriceFactoryProductsResponse} */ - static CreateAppPriceFactoryProductsResponse() { - return Joi.object({ - items: Joi.array().items( - CatalogPlatformModel.CreateAppPriceFactoryProductResponse() - ), - }); - } - - /** @returns {CreateAppPriceFactoryProductBulkJobRequest} */ - static CreateAppPriceFactoryProductBulkJobRequest() { - return Joi.object({ - file_path: Joi.string().allow(""), - file_type: Joi.string().allow(""), - job_type: Joi.string().allow(""), - }); - } - - /** @returns {CreateAppPriceFactoryProductBulkJobResponse} */ - static CreateAppPriceFactoryProductBulkJobResponse() { - return Joi.object({ - job_id: Joi.string().allow(""), - status: Joi.string().allow(""), - created_on: Joi.any(), - modified_on: Joi.any(), - created_by: CatalogPlatformModel.CreatedBy(), - modified_by: CatalogPlatformModel.CreatedBy(), - }); - } - - /** @returns {CreateAppPriceFactoryProductBulkJobPollResponse} */ - static CreateAppPriceFactoryProductBulkJobPollResponse() { - return Joi.object({ - status: Joi.string().allow(""), - total_records: Joi.number(), - success_records: Joi.number(), - failed_records: Joi.number(), - error_file: Joi.string().allow(""), - created_on: Joi.any(), - modified_on: Joi.any(), - created_by: CatalogPlatformModel.CreatedBy(), - modified_by: CatalogPlatformModel.CreatedBy(), - }); - } - /** * Enum: PageType Used By: Catalog * diff --git a/sdk/platform/Catalog/CatalogPlatformValidator.d.ts b/sdk/platform/Catalog/CatalogPlatformValidator.d.ts index 65db10d5f..75066dd10 100644 --- a/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +++ b/sdk/platform/Catalog/CatalogPlatformValidator.d.ts @@ -1,4 +1,10 @@ export = CatalogPlatformValidator; +/** + * @typedef AddInventoryParam + * @property {number} itemId - Item code of the product of which size is to be get. + * @property {string} size - Size in which inventory is to be added. + * @property {CatalogPlatformModel.InventoryRequest} body + */ /** * @typedef AllSizesParam * @property {number} itemId - Id of the product to be updated. @@ -14,11 +20,11 @@ export = CatalogPlatformValidator; */ /** * @typedef CreateBulkInventoryJobParam - * @property {CatalogPlatformModel.InventoryBulkJob} body + * @property {CatalogPlatformModel.BulkJob} body */ /** * @typedef CreateBulkProductUploadJobParam - * @property {CatalogPlatformModel.BulkProductUploadJob} body + * @property {CatalogPlatformModel.BulkJob} body */ /** * @typedef CreateCategoriesParam @@ -38,8 +44,9 @@ export = CatalogPlatformValidator; */ /** * @typedef CreateMarketplaceOptinParam - * @property {string} marketplace - Slug of the marketplace . - * @property {CatalogPlatformModel.CreateMarketplaceOptinRequest} body + * @property {string} marketplace - The marketplace for which the detail needs + * to be retrieved. + * @property {CatalogPlatformModel.OptInPostRequest} body */ /** * @typedef CreateProductParam @@ -76,7 +83,7 @@ export = CatalogPlatformValidator; */ /** * @typedef DeleteProductBulkJobParam - * @property {string} batchId - Batch Id of the bulk product job to be deleted. + * @property {number} batchId - Batch Id of the bulk product job to be deleted. */ /** * @typedef DeleteRealtimeInventoryParam @@ -92,7 +99,7 @@ export = CatalogPlatformValidator; */ /** * @typedef DownloadInventoryTemplateViewParam - * @property {string} type - Type of file + * @property {string} itemType - An `item_type` defines the type of item. */ /** * @typedef DownloadProductTemplateViewsParam @@ -108,7 +115,8 @@ export = CatalogPlatformValidator; */ /** * @typedef ExportInventoryConfigParam - * @property {string} filter - Filter type from any one of ['brand', 'store', 'type'] + * @property {string} [filterType] - Filter type from any one of ['brand', + * 'store', 'type'] */ /** * @typedef GetAllProductHsnCodesParam @@ -133,12 +141,6 @@ export = CatalogPlatformValidator; */ /** @typedef GetCompanyDetailParam */ /** @typedef GetCompanyMetricsParam */ -/** - * @typedef GetCompanyVerificationParam - * @property {string} [q] - A `q` parameter is used to search the company by its name. - * @property {number} [pageNo] - A `page_no` parameter is a number of the page requested. - * @property {number} [pageSize] - A `page_size` is the no of items per page. - */ /** * @typedef GetDepartmentDataParam * @property {string} uid - A `uid` is a unique identifier of a department. @@ -154,7 +156,7 @@ export = CatalogPlatformValidator; */ /** * @typedef GetInventoriesParam - * @property {number} [itemId] - Item code of the product of which size is to be get. + * @property {string} [itemId] - Item code of the product of which size is to be get. * @property {string} [size] - Size of which inventory is to get. * @property {number} [pageNo] - The page number to navigate through the given * set of results @@ -163,7 +165,7 @@ export = CatalogPlatformValidator; * @property {string} [q] - Search with help of store code. * @property {boolean} [sellable] - Filter on whether product is in stock or not. * @property {number[]} [storeIds] - The Store Id of products to fetch inventory. - * @property {number} [sizeIdentifier] - Size Identifier (Seller Identifier or + * @property {string} [sizeIdentifier] - Size Identifier (Seller Identifier or * Primary Identifier) of which inventory is to get. */ /** @@ -197,10 +199,7 @@ export = CatalogPlatformValidator; * @property {number[]} [locationIds] - Search by store ids. */ /** @typedef GetInventoryExportParam */ -/** - * @typedef GetInventoryExportDetailParam - * @property {string} jobId - Company Id in which assets to be uploaded. - */ +/** @typedef GetMarketplaceOptinDetailParam */ /** @typedef GetMarketplacesParam */ /** * @typedef GetOptimalLocationsParam @@ -237,20 +236,12 @@ export = CatalogPlatformValidator; * @typedef GetProductBundleParam * @property {string} [q] - A search string that is searched with product bundle name. * @property {string[]} [slug] - Slugs of bundles to be retrieved. - * @property {number} [pageNo] - The page number to navigate through the given - * set of results - * @property {number} [pageSize] - Number of items to retrieve in each page. - * Default is 12. */ /** * @typedef GetProductBundleDetailParam * @property {string} id - A `id` is a unique identifier for a particular * detail. Pass the `id` of the keywords which you want to retrieve. */ -/** - * @typedef GetProductExportDetailParam - * @property {string} jobId - Company Id in which assets to be uploaded. - */ /** * @typedef GetProductExportJobsParam * @property {string} [status] - This is a parameter used to find all the jobs @@ -264,22 +255,13 @@ export = CatalogPlatformValidator; */ /** * @typedef GetProductSizeParam + * @property {string} [itemCode] - Item code of the product size. * @property {number} itemId - Item Id of the product size. + * @property {number} [brandUid] - Brand Id of the product size. + * @property {number} [uid] - Id of the product size. */ /** @typedef GetProductTagsParam */ -/** - * @typedef GetProductTemplateBySlugParam - * @property {string} slug - Slug of the template. - */ -/** - * @typedef GetProductValidationParam - * @property {string} type - Type of identifier to validate the product against. - * @property {string} slug - Type of identifier to validate the product against. - */ -/** - * @typedef GetProductVerificationDetailsParam - * @property {number} itemId - A `item_id` is a unique identifier for a specific product. - */ +/** @typedef GetProductValidationParam */ /** * @typedef GetProductsParam * @property {number[]} [brandIds] - Get multiple products filtered by Brand Ids @@ -311,12 +293,12 @@ export = CatalogPlatformValidator; * @typedef GetSizeGuidesParam * @property {boolean} [active] - Filter size guide on basis of active, in-active * @property {string} [q] - Query that is to be searched. - * @property {number} [brandId] - Brand id that is to be searched. * @property {string} [tag] - To filter size guide on basis of tag. * @property {number} [pageNo] - The page number to navigate through the given * set of results * @property {number} [pageSize] - Number of items to retrieve in each page. * Default is 10. + * @property {number} [brandId] - Brand id that is to be searched. */ /** * @typedef GetStoreDetailParam @@ -325,11 +307,6 @@ export = CatalogPlatformValidator; * @property {number} [pageSize] - Number of records that can be seen on the * page for the company id. */ -/** - * @typedef GetVariantTypesParam - * @property {string} templateTag - The page number to navigate through the - * given set of results - */ /** * @typedef GetVariantsOfProductsParam * @property {number} itemId - Get list of variants of item Id @@ -349,6 +326,7 @@ export = CatalogPlatformValidator; * @property {number} [pageSize] - Number of items to retrieve in each page. * Default is 10. * @property {number[]} [uids] - Get multiple categories filtered by category uids. + * @property {string} [slug] - Get category by slug */ /** * @typedef ListDepartmentsDataParam @@ -363,7 +341,7 @@ export = CatalogPlatformValidator; * department in search parameter. * @property {boolean} [isActive] - Can query for departments based on whether * they are active or inactive. - * @property {number[]} [uids] - Filter department by uids. + * @property {string} [slug] - Can filter by slug */ /** @typedef ListHSNCodesParam */ /** @@ -395,16 +373,6 @@ export = CatalogPlatformValidator; * @property {string} [itemType] - A `item_type` is the identifier of the type * of template required. */ -/** - * @typedef PatchInventoryExportDetailParam - * @property {string} jobId - Company Id in which assets to be uploaded. - * @property {CatalogPlatformModel.ExportPatchRequest} body - */ -/** - * @typedef PatchProductExportDetailParam - * @property {string} jobId - Company Id in which assets to be uploaded. - * @property {CatalogPlatformModel.ExportPatchRequest} body - */ /** * @typedef UpdateCategoryParam * @property {string} uid - Category unique id @@ -426,7 +394,7 @@ export = CatalogPlatformValidator; */ /** * @typedef UpdateMarketplaceOptinParam - * @property {string} marketplace - Slug of the marketplace . + * @property {string} marketplaceSlug - Slug of the marketplace . * @property {CatalogPlatformModel.UpdateMarketplaceOptinRequest} body */ /** @@ -452,7 +420,7 @@ export = CatalogPlatformValidator; * @property {string} department - Department of the product to be uploaded. * @property {string} productType - Product type of the product to be uploaded * i.e. set, standard , digital. - * @property {CatalogPlatformModel.BulkProductJob} body + * @property {CatalogPlatformModel.BulkJob} body */ /** * @typedef ValidateProductTemplateParam @@ -468,9 +436,10 @@ export = CatalogPlatformValidator; * @typedef ValidateProductTemplateSchemaParam * @property {string} itemType - An `item_type` defines the type of item. The * default value is standard. - * @property {boolean} bulk - Type of file template i.e if bulk */ declare class CatalogPlatformValidator { + /** @returns {AddInventoryParam} */ + static addInventory(): AddInventoryParam; /** @returns {AllSizesParam} */ static allSizes(): AllSizesParam; /** @returns {BulkHsnCodeParam} */ @@ -531,8 +500,6 @@ declare class CatalogPlatformValidator { static getCompanyDetail(): any; /** @returns {GetCompanyMetricsParam} */ static getCompanyMetrics(): any; - /** @returns {GetCompanyVerificationParam} */ - static getCompanyVerification(): GetCompanyVerificationParam; /** @returns {GetDepartmentDataParam} */ static getDepartmentData(): GetDepartmentDataParam; /** @returns {GetGenderAttributeParam} */ @@ -549,8 +516,8 @@ declare class CatalogPlatformValidator { static getInventoryBySizeIdentifier(): GetInventoryBySizeIdentifierParam; /** @returns {GetInventoryExportParam} */ static getInventoryExport(): any; - /** @returns {GetInventoryExportDetailParam} */ - static getInventoryExportDetail(): GetInventoryExportDetailParam; + /** @returns {GetMarketplaceOptinDetailParam} */ + static getMarketplaceOptinDetail(): any; /** @returns {GetMarketplacesParam} */ static getMarketplaces(): any; /** @returns {GetOptimalLocationsParam} */ @@ -567,20 +534,14 @@ declare class CatalogPlatformValidator { static getProductBundle(): GetProductBundleParam; /** @returns {GetProductBundleDetailParam} */ static getProductBundleDetail(): GetProductBundleDetailParam; - /** @returns {GetProductExportDetailParam} */ - static getProductExportDetail(): GetProductExportDetailParam; /** @returns {GetProductExportJobsParam} */ static getProductExportJobs(): GetProductExportJobsParam; /** @returns {GetProductSizeParam} */ static getProductSize(): GetProductSizeParam; /** @returns {GetProductTagsParam} */ static getProductTags(): any; - /** @returns {GetProductTemplateBySlugParam} */ - static getProductTemplateBySlug(): GetProductTemplateBySlugParam; /** @returns {GetProductValidationParam} */ - static getProductValidation(): GetProductValidationParam; - /** @returns {GetProductVerificationDetailsParam} */ - static getProductVerificationDetails(): GetProductVerificationDetailsParam; + static getProductValidation(): any; /** @returns {GetProductsParam} */ static getProducts(): GetProductsParam; /** @returns {GetSellerInsightsParam} */ @@ -593,8 +554,6 @@ declare class CatalogPlatformValidator { static getSizeGuides(): GetSizeGuidesParam; /** @returns {GetStoreDetailParam} */ static getStoreDetail(): GetStoreDetailParam; - /** @returns {GetVariantTypesParam} */ - static getVariantTypes(): GetVariantTypesParam; /** @returns {GetVariantsOfProductsParam} */ static getVariantsOfProducts(): GetVariantsOfProductsParam; /** @returns {ListCategoriesParam} */ @@ -613,10 +572,6 @@ declare class CatalogPlatformValidator { static listProductTemplateExportDetails(): any; /** @returns {ListTemplateBrandTypeValuesParam} */ static listTemplateBrandTypeValues(): ListTemplateBrandTypeValuesParam; - /** @returns {PatchInventoryExportDetailParam} */ - static patchInventoryExportDetail(): PatchInventoryExportDetailParam; - /** @returns {PatchProductExportDetailParam} */ - static patchProductExportDetail(): PatchProductExportDetailParam; /** @returns {UpdateCategoryParam} */ static updateCategory(): UpdateCategoryParam; /** @returns {UpdateDepartmentParam} */ @@ -641,8 +596,19 @@ declare class CatalogPlatformValidator { static validateProductTemplateSchema(): ValidateProductTemplateSchemaParam; } declare namespace CatalogPlatformValidator { - export { AllSizesParam, BulkHsnCodeParam, CreateBulkInventoryParam, CreateBulkInventoryJobParam, CreateBulkProductUploadJobParam, CreateCategoriesParam, CreateDepartmentsParam, CreateInventoryExportParam, CreateInventoryExportJobParam, CreateMarketplaceOptinParam, CreateProductParam, CreateProductAssetsInBulkParam, CreateProductBundleParam, CreateProductExportJobParam, CreateProductsInBulkParam, CreateSizeGuideParam, DeleteBulkInventoryJobParam, DeleteProductParam, DeleteProductBulkJobParam, DeleteRealtimeInventoryParam, DeleteSizeParam, DownloadInventoryTemplateViewParam, DownloadProductTemplateViewsParam, EditProductParam, ExportInventoryConfigParam, GetAllProductHsnCodesParam, GetCategoryDataParam, GetCompanyBrandDetailParam, GetCompanyDetailParam, GetCompanyMetricsParam, GetCompanyVerificationParam, GetDepartmentDataParam, GetGenderAttributeParam, GetHsnCodeParam, GetInventoriesParam, GetInventoryBulkUploadHistoryParam, GetInventoryBySizeParam, GetInventoryBySizeIdentifierParam, GetInventoryExportParam, GetInventoryExportDetailParam, GetMarketplacesParam, GetOptimalLocationsParam, GetProductParam, GetProductAssetsInBulkParam, GetProductAttributesParam, GetProductBulkUploadHistoryParam, GetProductBundleParam, GetProductBundleDetailParam, GetProductExportDetailParam, GetProductExportJobsParam, GetProductSizeParam, GetProductTagsParam, GetProductTemplateBySlugParam, GetProductValidationParam, GetProductVerificationDetailsParam, GetProductsParam, GetSellerInsightsParam, GetSingleProductHSNCodeParam, GetSizeGuideParam, GetSizeGuidesParam, GetStoreDetailParam, GetVariantTypesParam, GetVariantsOfProductsParam, ListCategoriesParam, ListDepartmentsDataParam, ListHSNCodesParam, ListInventoryExportParam, ListProductTemplateParam, ListProductTemplateCategoriesParam, ListProductTemplateExportDetailsParam, ListTemplateBrandTypeValuesParam, PatchInventoryExportDetailParam, PatchProductExportDetailParam, UpdateCategoryParam, UpdateDepartmentParam, UpdateHsnCodeParam, UpdateInventoriesParam, UpdateMarketplaceOptinParam, UpdateProductBundleParam, UpdateRealtimeInventoryParam, UpdateSizeGuideParam, UploadBulkProductsParam, ValidateProductTemplateParam, ValidateProductTemplateSchemaParam }; + export { AddInventoryParam, AllSizesParam, BulkHsnCodeParam, CreateBulkInventoryParam, CreateBulkInventoryJobParam, CreateBulkProductUploadJobParam, CreateCategoriesParam, CreateDepartmentsParam, CreateInventoryExportParam, CreateInventoryExportJobParam, CreateMarketplaceOptinParam, CreateProductParam, CreateProductAssetsInBulkParam, CreateProductBundleParam, CreateProductExportJobParam, CreateProductsInBulkParam, CreateSizeGuideParam, DeleteBulkInventoryJobParam, DeleteProductParam, DeleteProductBulkJobParam, DeleteRealtimeInventoryParam, DeleteSizeParam, DownloadInventoryTemplateViewParam, DownloadProductTemplateViewsParam, EditProductParam, ExportInventoryConfigParam, GetAllProductHsnCodesParam, GetCategoryDataParam, GetCompanyBrandDetailParam, GetCompanyDetailParam, GetCompanyMetricsParam, GetDepartmentDataParam, GetGenderAttributeParam, 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, UpdateCategoryParam, UpdateDepartmentParam, UpdateHsnCodeParam, UpdateInventoriesParam, UpdateMarketplaceOptinParam, UpdateProductBundleParam, UpdateRealtimeInventoryParam, UpdateSizeGuideParam, UploadBulkProductsParam, ValidateProductTemplateParam, ValidateProductTemplateSchemaParam }; } +type AddInventoryParam = { + /** + * - Item code of the product of which size is to be get. + */ + itemId: number; + /** + * - Size in which inventory is to be added. + */ + size: string; + body: CatalogPlatformModel.InventoryRequest; +}; type AllSizesParam = { /** * - Id of the product to be updated. @@ -660,10 +626,10 @@ type CreateBulkInventoryParam = { body: CatalogPlatformModel.InventoryBulkRequest; }; type CreateBulkInventoryJobParam = { - body: CatalogPlatformModel.InventoryBulkJob; + body: CatalogPlatformModel.BulkJob; }; type CreateBulkProductUploadJobParam = { - body: CatalogPlatformModel.BulkProductUploadJob; + body: CatalogPlatformModel.BulkJob; }; type CreateCategoriesParam = { body: CatalogPlatformModel.CategoryRequestBody; @@ -679,10 +645,11 @@ type CreateInventoryExportJobParam = { }; type CreateMarketplaceOptinParam = { /** - * - Slug of the marketplace . + * - The marketplace for which the detail needs + * to be retrieved. */ marketplace: string; - body: CatalogPlatformModel.CreateMarketplaceOptinRequest; + body: CatalogPlatformModel.OptInPostRequest; }; type CreateProductParam = { body: CatalogPlatformModel.ProductCreateUpdateSchemaV2; @@ -722,7 +689,7 @@ type DeleteProductBulkJobParam = { /** * - Batch Id of the bulk product job to be deleted. */ - batchId: string; + batchId: number; }; type DeleteRealtimeInventoryParam = { /** @@ -748,9 +715,9 @@ type DeleteSizeParam = { }; type DownloadInventoryTemplateViewParam = { /** - * - Type of file + * - An `item_type` defines the type of item. */ - type: string; + itemType: string; }; type DownloadProductTemplateViewsParam = { /** @@ -776,9 +743,10 @@ type EditProductParam = { }; type ExportInventoryConfigParam = { /** - * - Filter type from any one of ['brand', 'store', 'type'] + * - Filter type from any one of ['brand', + * 'store', 'type'] */ - filter: string; + filterType?: string; }; type GetAllProductHsnCodesParam = { /** @@ -828,20 +796,6 @@ type GetCompanyBrandDetailParam = { */ marketplace?: string; }; -type GetCompanyVerificationParam = { - /** - * - A `q` parameter is used to search the company by its name. - */ - q?: string; - /** - * - A `page_no` parameter is a number of the page requested. - */ - pageNo?: number; - /** - * - A `page_size` is the no of items per page. - */ - pageSize?: number; -}; type GetDepartmentDataParam = { /** * - A `uid` is a unique identifier of a department. @@ -865,7 +819,7 @@ type GetInventoriesParam = { /** * - Item code of the product of which size is to be get. */ - itemId?: number; + itemId?: string; /** * - Size of which inventory is to get. */ @@ -896,7 +850,7 @@ type GetInventoriesParam = { * - Size Identifier (Seller Identifier or * Primary Identifier) of which inventory is to get. */ - sizeIdentifier?: number; + sizeIdentifier?: string; }; type GetInventoryBulkUploadHistoryParam = { /** @@ -967,12 +921,6 @@ type GetInventoryBySizeIdentifierParam = { */ locationIds?: number[]; }; -type GetInventoryExportDetailParam = { - /** - * - Company Id in which assets to be uploaded. - */ - jobId: string; -}; type GetOptimalLocationsParam = { body: CatalogPlatformModel.AssignStore; }; @@ -1038,16 +986,6 @@ type GetProductBundleParam = { * - Slugs of bundles to be retrieved. */ slug?: string[]; - /** - * - The page number to navigate through the given - * set of results - */ - pageNo?: number; - /** - * - Number of items to retrieve in each page. - * Default is 12. - */ - pageSize?: number; }; type GetProductBundleDetailParam = { /** @@ -1056,12 +994,6 @@ type GetProductBundleDetailParam = { */ id: string; }; -type GetProductExportDetailParam = { - /** - * - Company Id in which assets to be uploaded. - */ - jobId: string; -}; type GetProductExportJobsParam = { /** * - This is a parameter used to find all the jobs @@ -1086,31 +1018,21 @@ type GetProductExportJobsParam = { }; type GetProductSizeParam = { /** - * - Item Id of the product size. + * - Item code of the product size. */ - itemId: number; -}; -type GetProductTemplateBySlugParam = { - /** - * - Slug of the template. - */ - slug: string; -}; -type GetProductValidationParam = { + itemCode?: string; /** - * - Type of identifier to validate the product against. + * - Item Id of the product size. */ - type: string; + itemId: number; /** - * - Type of identifier to validate the product against. + * - Brand Id of the product size. */ - slug: string; -}; -type GetProductVerificationDetailsParam = { + brandUid?: number; /** - * - A `item_id` is a unique identifier for a specific product. + * - Id of the product size. */ - itemId: number; + uid?: number; }; type GetProductsParam = { /** @@ -1180,10 +1102,6 @@ type GetSizeGuidesParam = { * - Query that is to be searched. */ q?: string; - /** - * - Brand id that is to be searched. - */ - brandId?: number; /** * - To filter size guide on basis of tag. */ @@ -1198,6 +1116,10 @@ type GetSizeGuidesParam = { * Default is 10. */ pageSize?: number; + /** + * - Brand id that is to be searched. + */ + brandId?: number; }; type GetStoreDetailParam = { /** @@ -1214,13 +1136,6 @@ type GetStoreDetailParam = { */ pageSize?: number; }; -type GetVariantTypesParam = { - /** - * - The page number to navigate through the - * given set of results - */ - templateTag: string; -}; type GetVariantsOfProductsParam = { /** * - Get list of variants of item Id @@ -1268,6 +1183,10 @@ type ListCategoriesParam = { * - Get multiple categories filtered by category uids. */ uids?: number[]; + /** + * - Get category by slug + */ + slug?: string; }; type ListDepartmentsDataParam = { /** @@ -1300,9 +1219,9 @@ type ListDepartmentsDataParam = { */ isActive?: boolean; /** - * - Filter department by uids. + * - Can filter by slug */ - uids?: number[]; + slug?: string; }; type ListInventoryExportParam = { /** @@ -1358,20 +1277,6 @@ type ListTemplateBrandTypeValuesParam = { */ itemType?: string; }; -type PatchInventoryExportDetailParam = { - /** - * - Company Id in which assets to be uploaded. - */ - jobId: string; - body: CatalogPlatformModel.ExportPatchRequest; -}; -type PatchProductExportDetailParam = { - /** - * - Company Id in which assets to be uploaded. - */ - jobId: string; - body: CatalogPlatformModel.ExportPatchRequest; -}; type UpdateCategoryParam = { /** * - Category unique id @@ -1400,7 +1305,7 @@ type UpdateMarketplaceOptinParam = { /** * - Slug of the marketplace . */ - marketplace: string; + marketplaceSlug: string; body: CatalogPlatformModel.UpdateMarketplaceOptinRequest; }; type UpdateProductBundleParam = { @@ -1440,7 +1345,7 @@ type UploadBulkProductsParam = { * i.e. set, standard , digital. */ productType: string; - body: CatalogPlatformModel.BulkProductJob; + body: CatalogPlatformModel.BulkJob; }; type ValidateProductTemplateParam = { /** @@ -1466,16 +1371,14 @@ type ValidateProductTemplateSchemaParam = { * default value is standard. */ itemType: string; - /** - * - Type of file template i.e if bulk - */ - bulk: boolean; }; type GetCompanyDetailParam = any; type GetCompanyMetricsParam = any; type GetInventoryExportParam = any; +type GetMarketplaceOptinDetailParam = any; type GetMarketplacesParam = any; type GetProductTagsParam = any; +type GetProductValidationParam = any; type ListHSNCodesParam = any; type ListProductTemplateExportDetailsParam = any; -import CatalogPlatformModel = require("sdk/output/javascript/code/sdk/platform/Catalog/CatalogPlatformModel"); +import CatalogPlatformModel = require("./CatalogPlatformModel"); diff --git a/sdk/platform/Catalog/CatalogPlatformValidator.js b/sdk/platform/Catalog/CatalogPlatformValidator.js index d50e50e1b..3ecee9516 100644 --- a/sdk/platform/Catalog/CatalogPlatformValidator.js +++ b/sdk/platform/Catalog/CatalogPlatformValidator.js @@ -2,6 +2,13 @@ const Joi = require("joi"); const CatalogPlatformModel = require("./CatalogPlatformModel"); +/** + * @typedef AddInventoryParam + * @property {number} itemId - Item code of the product of which size is to be get. + * @property {string} size - Size in which inventory is to be added. + * @property {CatalogPlatformModel.InventoryRequest} body + */ + /** * @typedef AllSizesParam * @property {number} itemId - Id of the product to be updated. @@ -20,12 +27,12 @@ const CatalogPlatformModel = require("./CatalogPlatformModel"); /** * @typedef CreateBulkInventoryJobParam - * @property {CatalogPlatformModel.InventoryBulkJob} body + * @property {CatalogPlatformModel.BulkJob} body */ /** * @typedef CreateBulkProductUploadJobParam - * @property {CatalogPlatformModel.BulkProductUploadJob} body + * @property {CatalogPlatformModel.BulkJob} body */ /** @@ -50,8 +57,9 @@ const CatalogPlatformModel = require("./CatalogPlatformModel"); /** * @typedef CreateMarketplaceOptinParam - * @property {string} marketplace - Slug of the marketplace . - * @property {CatalogPlatformModel.CreateMarketplaceOptinRequest} body + * @property {string} marketplace - The marketplace for which the detail needs + * to be retrieved. + * @property {CatalogPlatformModel.OptInPostRequest} body */ /** @@ -97,7 +105,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel"); /** * @typedef DeleteProductBulkJobParam - * @property {string} batchId - Batch Id of the bulk product job to be deleted. + * @property {number} batchId - Batch Id of the bulk product job to be deleted. */ /** @@ -116,7 +124,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel"); /** * @typedef DownloadInventoryTemplateViewParam - * @property {string} type - Type of file + * @property {string} itemType - An `item_type` defines the type of item. */ /** @@ -135,7 +143,8 @@ const CatalogPlatformModel = require("./CatalogPlatformModel"); /** * @typedef ExportInventoryConfigParam - * @property {string} filter - Filter type from any one of ['brand', 'store', 'type'] + * @property {string} [filterType] - Filter type from any one of ['brand', + * 'store', 'type'] */ /** @@ -166,13 +175,6 @@ const CatalogPlatformModel = require("./CatalogPlatformModel"); /** @typedef GetCompanyMetricsParam */ -/** - * @typedef GetCompanyVerificationParam - * @property {string} [q] - A `q` parameter is used to search the company by its name. - * @property {number} [pageNo] - A `page_no` parameter is a number of the page requested. - * @property {number} [pageSize] - A `page_size` is the no of items per page. - */ - /** * @typedef GetDepartmentDataParam * @property {string} uid - A `uid` is a unique identifier of a department. @@ -191,7 +193,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel"); /** * @typedef GetInventoriesParam - * @property {number} [itemId] - Item code of the product of which size is to be get. + * @property {string} [itemId] - Item code of the product of which size is to be get. * @property {string} [size] - Size of which inventory is to get. * @property {number} [pageNo] - The page number to navigate through the given * set of results @@ -200,7 +202,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel"); * @property {string} [q] - Search with help of store code. * @property {boolean} [sellable] - Filter on whether product is in stock or not. * @property {number[]} [storeIds] - The Store Id of products to fetch inventory. - * @property {number} [sizeIdentifier] - Size Identifier (Seller Identifier or + * @property {string} [sizeIdentifier] - Size Identifier (Seller Identifier or * Primary Identifier) of which inventory is to get. */ @@ -239,10 +241,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel"); /** @typedef GetInventoryExportParam */ -/** - * @typedef GetInventoryExportDetailParam - * @property {string} jobId - Company Id in which assets to be uploaded. - */ +/** @typedef GetMarketplaceOptinDetailParam */ /** @typedef GetMarketplacesParam */ @@ -286,10 +285,6 @@ const CatalogPlatformModel = require("./CatalogPlatformModel"); * @typedef GetProductBundleParam * @property {string} [q] - A search string that is searched with product bundle name. * @property {string[]} [slug] - Slugs of bundles to be retrieved. - * @property {number} [pageNo] - The page number to navigate through the given - * set of results - * @property {number} [pageSize] - Number of items to retrieve in each page. - * Default is 12. */ /** @@ -298,11 +293,6 @@ const CatalogPlatformModel = require("./CatalogPlatformModel"); * detail. Pass the `id` of the keywords which you want to retrieve. */ -/** - * @typedef GetProductExportDetailParam - * @property {string} jobId - Company Id in which assets to be uploaded. - */ - /** * @typedef GetProductExportJobsParam * @property {string} [status] - This is a parameter used to find all the jobs @@ -317,26 +307,15 @@ const CatalogPlatformModel = require("./CatalogPlatformModel"); /** * @typedef GetProductSizeParam + * @property {string} [itemCode] - Item code of the product size. * @property {number} itemId - Item Id of the product size. + * @property {number} [brandUid] - Brand Id of the product size. + * @property {number} [uid] - Id of the product size. */ /** @typedef GetProductTagsParam */ -/** - * @typedef GetProductTemplateBySlugParam - * @property {string} slug - Slug of the template. - */ - -/** - * @typedef GetProductValidationParam - * @property {string} type - Type of identifier to validate the product against. - * @property {string} slug - Type of identifier to validate the product against. - */ - -/** - * @typedef GetProductVerificationDetailsParam - * @property {number} itemId - A `item_id` is a unique identifier for a specific product. - */ +/** @typedef GetProductValidationParam */ /** * @typedef GetProductsParam @@ -373,12 +352,12 @@ const CatalogPlatformModel = require("./CatalogPlatformModel"); * @typedef GetSizeGuidesParam * @property {boolean} [active] - Filter size guide on basis of active, in-active * @property {string} [q] - Query that is to be searched. - * @property {number} [brandId] - Brand id that is to be searched. * @property {string} [tag] - To filter size guide on basis of tag. * @property {number} [pageNo] - The page number to navigate through the given * set of results * @property {number} [pageSize] - Number of items to retrieve in each page. * Default is 10. + * @property {number} [brandId] - Brand id that is to be searched. */ /** @@ -389,12 +368,6 @@ const CatalogPlatformModel = require("./CatalogPlatformModel"); * page for the company id. */ -/** - * @typedef GetVariantTypesParam - * @property {string} templateTag - The page number to navigate through the - * given set of results - */ - /** * @typedef GetVariantsOfProductsParam * @property {number} itemId - Get list of variants of item Id @@ -415,6 +388,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel"); * @property {number} [pageSize] - Number of items to retrieve in each page. * Default is 10. * @property {number[]} [uids] - Get multiple categories filtered by category uids. + * @property {string} [slug] - Get category by slug */ /** @@ -430,7 +404,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel"); * department in search parameter. * @property {boolean} [isActive] - Can query for departments based on whether * they are active or inactive. - * @property {number[]} [uids] - Filter department by uids. + * @property {string} [slug] - Can filter by slug */ /** @typedef ListHSNCodesParam */ @@ -469,18 +443,6 @@ const CatalogPlatformModel = require("./CatalogPlatformModel"); * of template required. */ -/** - * @typedef PatchInventoryExportDetailParam - * @property {string} jobId - Company Id in which assets to be uploaded. - * @property {CatalogPlatformModel.ExportPatchRequest} body - */ - -/** - * @typedef PatchProductExportDetailParam - * @property {string} jobId - Company Id in which assets to be uploaded. - * @property {CatalogPlatformModel.ExportPatchRequest} body - */ - /** * @typedef UpdateCategoryParam * @property {string} uid - Category unique id @@ -506,7 +468,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel"); /** * @typedef UpdateMarketplaceOptinParam - * @property {string} marketplace - Slug of the marketplace . + * @property {string} marketplaceSlug - Slug of the marketplace . * @property {CatalogPlatformModel.UpdateMarketplaceOptinRequest} body */ @@ -536,7 +498,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel"); * @property {string} department - Department of the product to be uploaded. * @property {string} productType - Product type of the product to be uploaded * i.e. set, standard , digital. - * @property {CatalogPlatformModel.BulkProductJob} body + * @property {CatalogPlatformModel.BulkJob} body */ /** @@ -554,10 +516,18 @@ const CatalogPlatformModel = require("./CatalogPlatformModel"); * @typedef ValidateProductTemplateSchemaParam * @property {string} itemType - An `item_type` defines the type of item. The * default value is standard. - * @property {boolean} bulk - Type of file template i.e if bulk */ class CatalogPlatformValidator { + /** @returns {AddInventoryParam} */ + static addInventory() { + return Joi.object({ + itemId: Joi.number().required(), + size: Joi.string().allow("").required(), + body: CatalogPlatformModel.InventoryRequest().required(), + }).required(); + } + /** @returns {AllSizesParam} */ static allSizes() { return Joi.object({ @@ -583,14 +553,14 @@ class CatalogPlatformValidator { /** @returns {CreateBulkInventoryJobParam} */ static createBulkInventoryJob() { return Joi.object({ - body: CatalogPlatformModel.InventoryBulkJob().required(), + body: CatalogPlatformModel.BulkJob().required(), }).required(); } /** @returns {CreateBulkProductUploadJobParam} */ static createBulkProductUploadJob() { return Joi.object({ - body: CatalogPlatformModel.BulkProductUploadJob().required(), + body: CatalogPlatformModel.BulkJob().required(), }).required(); } @@ -626,7 +596,7 @@ class CatalogPlatformValidator { static createMarketplaceOptin() { return Joi.object({ marketplace: Joi.string().allow("").required(), - body: CatalogPlatformModel.CreateMarketplaceOptinRequest().required(), + body: CatalogPlatformModel.OptInPostRequest().required(), }).required(); } @@ -690,7 +660,7 @@ class CatalogPlatformValidator { /** @returns {DeleteProductBulkJobParam} */ static deleteProductBulkJob() { return Joi.object({ - batchId: Joi.string().allow("").required(), + batchId: Joi.number().required(), }).required(); } @@ -714,7 +684,7 @@ class CatalogPlatformValidator { /** @returns {DownloadInventoryTemplateViewParam} */ static downloadInventoryTemplateView() { return Joi.object({ - type: Joi.string().allow("").required(), + itemType: Joi.string().allow("").required(), }).required(); } @@ -738,7 +708,7 @@ class CatalogPlatformValidator { /** @returns {ExportInventoryConfigParam} */ static exportInventoryConfig() { return Joi.object({ - filter: Joi.string().allow("").required(), + filterType: Joi.string().allow(""), }).required(); } @@ -780,15 +750,6 @@ class CatalogPlatformValidator { return Joi.object({}).required(); } - /** @returns {GetCompanyVerificationParam} */ - static getCompanyVerification() { - return Joi.object({ - q: Joi.string().allow(""), - pageNo: Joi.number(), - pageSize: Joi.number(), - }).required(); - } - /** @returns {GetDepartmentDataParam} */ static getDepartmentData() { return Joi.object({ @@ -813,14 +774,14 @@ class CatalogPlatformValidator { /** @returns {GetInventoriesParam} */ static getInventories() { return Joi.object({ - itemId: Joi.number(), + itemId: Joi.string().allow(""), size: Joi.string().allow(""), pageNo: Joi.number(), pageSize: Joi.number(), q: Joi.string().allow(""), sellable: Joi.boolean(), storeIds: Joi.array().items(Joi.number()), - sizeIdentifier: Joi.number(), + sizeIdentifier: Joi.string().allow(""), }).required(); } @@ -861,11 +822,9 @@ class CatalogPlatformValidator { return Joi.object({}).required(); } - /** @returns {GetInventoryExportDetailParam} */ - static getInventoryExportDetail() { - return Joi.object({ - jobId: Joi.string().allow("").required(), - }).required(); + /** @returns {GetMarketplaceOptinDetailParam} */ + static getMarketplaceOptinDetail() { + return Joi.object({}).required(); } /** @returns {GetMarketplacesParam} */ @@ -919,8 +878,6 @@ class CatalogPlatformValidator { return Joi.object({ q: Joi.string().allow(""), slug: Joi.array().items(Joi.string().allow("")), - pageNo: Joi.number(), - pageSize: Joi.number(), }).required(); } @@ -931,13 +888,6 @@ class CatalogPlatformValidator { }).required(); } - /** @returns {GetProductExportDetailParam} */ - static getProductExportDetail() { - return Joi.object({ - jobId: Joi.string().allow("").required(), - }).required(); - } - /** @returns {GetProductExportJobsParam} */ static getProductExportJobs() { return Joi.object({ @@ -951,7 +901,10 @@ class CatalogPlatformValidator { /** @returns {GetProductSizeParam} */ static getProductSize() { return Joi.object({ + itemCode: Joi.string().allow(""), itemId: Joi.number().required(), + brandUid: Joi.number(), + uid: Joi.number(), }).required(); } @@ -960,26 +913,9 @@ class CatalogPlatformValidator { return Joi.object({}).required(); } - /** @returns {GetProductTemplateBySlugParam} */ - static getProductTemplateBySlug() { - return Joi.object({ - slug: Joi.string().allow("").required(), - }).required(); - } - /** @returns {GetProductValidationParam} */ static getProductValidation() { - return Joi.object({ - type: Joi.string().allow("").required(), - slug: Joi.string().allow("").required(), - }).required(); - } - - /** @returns {GetProductVerificationDetailsParam} */ - static getProductVerificationDetails() { - return Joi.object({ - itemId: Joi.number().required(), - }).required(); + return Joi.object({}).required(); } /** @returns {GetProductsParam} */ @@ -1023,10 +959,10 @@ class CatalogPlatformValidator { return Joi.object({ active: Joi.boolean(), q: Joi.string().allow(""), - brandId: Joi.number(), tag: Joi.string().allow(""), pageNo: Joi.number(), pageSize: Joi.number(), + brandId: Joi.number(), }).required(); } @@ -1039,13 +975,6 @@ class CatalogPlatformValidator { }).required(); } - /** @returns {GetVariantTypesParam} */ - static getVariantTypes() { - return Joi.object({ - templateTag: Joi.string().allow("").required(), - }).required(); - } - /** @returns {GetVariantsOfProductsParam} */ static getVariantsOfProducts() { return Joi.object({ @@ -1065,6 +994,7 @@ class CatalogPlatformValidator { pageNo: Joi.number(), pageSize: Joi.number(), uids: Joi.array().items(Joi.number()), + slug: Joi.string().allow(""), }).required(); } @@ -1077,7 +1007,7 @@ class CatalogPlatformValidator { name: Joi.string().allow(""), search: Joi.string().allow(""), isActive: Joi.boolean(), - uids: Joi.array().items(Joi.number()), + slug: Joi.string().allow(""), }).required(); } @@ -1125,22 +1055,6 @@ class CatalogPlatformValidator { }).required(); } - /** @returns {PatchInventoryExportDetailParam} */ - static patchInventoryExportDetail() { - return Joi.object({ - jobId: Joi.string().allow("").required(), - body: CatalogPlatformModel.ExportPatchRequest().required(), - }).required(); - } - - /** @returns {PatchProductExportDetailParam} */ - static patchProductExportDetail() { - return Joi.object({ - jobId: Joi.string().allow("").required(), - body: CatalogPlatformModel.ExportPatchRequest().required(), - }).required(); - } - /** @returns {UpdateCategoryParam} */ static updateCategory() { return Joi.object({ @@ -1175,7 +1089,7 @@ class CatalogPlatformValidator { /** @returns {UpdateMarketplaceOptinParam} */ static updateMarketplaceOptin() { return Joi.object({ - marketplace: Joi.string().allow("").required(), + marketplaceSlug: Joi.string().allow("").required(), body: CatalogPlatformModel.UpdateMarketplaceOptinRequest().required(), }).required(); } @@ -1210,7 +1124,7 @@ class CatalogPlatformValidator { return Joi.object({ department: Joi.string().allow("").required(), productType: Joi.string().allow("").required(), - body: CatalogPlatformModel.BulkProductJob().required(), + body: CatalogPlatformModel.BulkJob().required(), }).required(); } @@ -1227,7 +1141,6 @@ class CatalogPlatformValidator { static validateProductTemplateSchema() { return Joi.object({ itemType: Joi.string().allow("").required(), - bulk: Joi.boolean().required(), }).required(); } } diff --git a/sdk/platform/Common/CommonPlatformClient.d.ts b/sdk/platform/Common/CommonPlatformClient.d.ts index db11a1411..c7b2aeb5d 100644 --- a/sdk/platform/Common/CommonPlatformClient.d.ts +++ b/sdk/platform/Common/CommonPlatformClient.d.ts @@ -23,5 +23,5 @@ declare class Common { */ searchApplication({ authorization, query, requestHeaders }?: CommonPlatformValidator.SearchApplicationParam, { responseHeaders }?: object): Promise; } -import CommonPlatformValidator = require("sdk/output/javascript/code/sdk/platform/Common/CommonPlatformValidator"); -import CommonPlatformModel = require("sdk/output/javascript/code/sdk/platform/Common/CommonPlatformModel"); +import CommonPlatformValidator = require("./CommonPlatformValidator"); +import CommonPlatformModel = require("./CommonPlatformModel"); diff --git a/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts b/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts index b0125c69d..616dae11c 100644 --- a/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +++ b/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts @@ -870,7 +870,7 @@ declare class Communication { * @summary: Send OTP using email and sms * @description: Send OTP Comms via email and sms - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/communication/sendOtp/). */ - sendOtp({ body, ci, requestHeaders }?: CommunicationPlatformApplicationValidator.SendOtpParam, { responseHeaders }?: object): Promise; + sendOtp({ body, requestHeaders }?: CommunicationPlatformApplicationValidator.SendOtpParam, { responseHeaders }?: object): Promise; /** * @param {CommunicationPlatformApplicationValidator.TriggerCampaignJobParam} arg * - Arg object @@ -993,6 +993,6 @@ declare class Communication { */ verfiyOtp({ body, requestHeaders }?: CommunicationPlatformApplicationValidator.VerfiyOtpParam, { responseHeaders }?: object): Promise; } -import CommunicationPlatformApplicationValidator = require("sdk/output/javascript/code/sdk/platform/Communication/CommunicationPlatformApplicationValidator"); -import CommunicationPlatformModel = require("sdk/output/javascript/code/sdk/platform/Communication/CommunicationPlatformModel"); -import Paginator = require("sdk/output/javascript/code/sdk/common/Paginator"); +import CommunicationPlatformApplicationValidator = require("./CommunicationPlatformApplicationValidator"); +import CommunicationPlatformModel = require("./CommunicationPlatformModel"); +import Paginator = require("../../common/Paginator"); diff --git a/sdk/platform/Communication/CommunicationPlatformApplicationClient.js b/sdk/platform/Communication/CommunicationPlatformApplicationClient.js index b18fb7d5e..11cad1a37 100644 --- a/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +++ b/sdk/platform/Communication/CommunicationPlatformApplicationClient.js @@ -5004,7 +5004,7 @@ class Communication { * @description: Send OTP Comms via email and sms - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/communication/sendOtp/). */ async sendOtp( - { body, ci, requestHeaders } = { requestHeaders: {} }, + { body, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { @@ -5012,7 +5012,6 @@ class Communication { } = CommunicationPlatformApplicationValidator.sendOtp().validate( { body, - ci, }, { abortEarly: false, allowUnknown: true } ); @@ -5026,7 +5025,6 @@ class Communication { } = CommunicationPlatformApplicationValidator.sendOtp().validate( { body, - ci, }, { abortEarly: false, allowUnknown: false } ); @@ -5038,7 +5036,6 @@ class Communication { } const query_params = {}; - query_params["ci"] = ci; const response = await PlatformAPIClient.execute( this.config, diff --git a/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts b/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts index 5b2478dbd..959c8f5a1 100644 --- a/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +++ b/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts @@ -222,7 +222,6 @@ export = CommunicationPlatformApplicationValidator; */ /** * @typedef SendOtpParam - * @property {boolean} [ci] - Common Information * @property {CommunicationPlatformModel.SendOtpCommsReq} body */ /** @@ -762,10 +761,6 @@ type SendCommunicationSynchronouslyParam = { body: CommunicationPlatformModel.EngineRequest; }; type SendOtpParam = { - /** - * - Common Information - */ - ci?: boolean; body: CommunicationPlatformModel.SendOtpCommsReq; }; type TriggerCampaignJobParam = { @@ -833,4 +828,4 @@ type GetSystemAudiencesParam = any; type GetSystemEmailTemplatesParam = any; type GetSystemSmsTemplatesParam = any; type UpdateOtpConfigurationParam = any; -import CommunicationPlatformModel = require("sdk/output/javascript/code/sdk/platform/Communication/CommunicationPlatformModel"); +import CommunicationPlatformModel = require("./CommunicationPlatformModel"); diff --git a/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js b/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js index 20610319b..10b38dd30 100644 --- a/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +++ b/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js @@ -281,7 +281,6 @@ const CommunicationPlatformModel = require("./CommunicationPlatformModel"); /** * @typedef SendOtpParam - * @property {boolean} [ci] - Common Information * @property {CommunicationPlatformModel.SendOtpCommsReq} body */ @@ -744,7 +743,6 @@ class CommunicationPlatformApplicationValidator { /** @returns {SendOtpParam} */ static sendOtp() { return Joi.object({ - ci: Joi.boolean(), body: CommunicationPlatformModel.SendOtpCommsReq().required(), }).required(); } diff --git a/sdk/platform/Communication/CommunicationPlatformClient.d.ts b/sdk/platform/Communication/CommunicationPlatformClient.d.ts index 9bdb94e17..e9062354c 100644 --- a/sdk/platform/Communication/CommunicationPlatformClient.d.ts +++ b/sdk/platform/Communication/CommunicationPlatformClient.d.ts @@ -26,6 +26,6 @@ declare class Communication { pageSize?: number; }): Paginator; } -import CommunicationPlatformValidator = require("sdk/output/javascript/code/sdk/platform/Communication/CommunicationPlatformValidator"); -import CommunicationPlatformModel = require("sdk/output/javascript/code/sdk/platform/Communication/CommunicationPlatformModel"); -import Paginator = require("sdk/output/javascript/code/sdk/common/Paginator"); +import CommunicationPlatformValidator = require("./CommunicationPlatformValidator"); +import CommunicationPlatformModel = require("./CommunicationPlatformModel"); +import Paginator = require("../../common/Paginator"); diff --git a/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts b/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts index 76f365f51..31f1a9f33 100644 --- a/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +++ b/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts @@ -203,6 +203,6 @@ declare class CompanyProfile { */ updateLocation({ locationId, body, requestHeaders }?: CompanyProfilePlatformValidator.UpdateLocationParam, { responseHeaders }?: object): Promise; } -import CompanyProfilePlatformModel = require("sdk/output/javascript/code/sdk/platform/CompanyProfile/CompanyProfilePlatformModel"); -import CompanyProfilePlatformValidator = require("sdk/output/javascript/code/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator"); -import Paginator = require("sdk/output/javascript/code/sdk/common/Paginator"); +import CompanyProfilePlatformModel = require("./CompanyProfilePlatformModel"); +import CompanyProfilePlatformValidator = require("./CompanyProfilePlatformValidator"); +import Paginator = require("../../common/Paginator"); diff --git a/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts b/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts index 4bbfc84ad..601a7b6bd 100644 --- a/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +++ b/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts @@ -198,4 +198,4 @@ type UpdateLocationParam = { type CbsOnboardGetParam = any; type GetCompanyMetricsParam = any; type GetLocationTagsParam = any; -import CompanyProfilePlatformModel = require("sdk/output/javascript/code/sdk/platform/CompanyProfile/CompanyProfilePlatformModel"); +import CompanyProfilePlatformModel = require("./CompanyProfilePlatformModel"); diff --git a/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts b/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts index 0abd48f0d..d5a738323 100644 --- a/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +++ b/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts @@ -476,6 +476,6 @@ declare class Configuration { */ updateOrderingStoreConfig({ body, requestHeaders }?: ConfigurationPlatformApplicationValidator.UpdateOrderingStoreConfigParam, { responseHeaders }?: object): Promise; } -import ConfigurationPlatformApplicationValidator = require("sdk/output/javascript/code/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator"); -import ConfigurationPlatformModel = require("sdk/output/javascript/code/sdk/platform/Configuration/ConfigurationPlatformModel"); -import Paginator = require("sdk/output/javascript/code/sdk/common/Paginator"); +import ConfigurationPlatformApplicationValidator = require("./ConfigurationPlatformApplicationValidator"); +import ConfigurationPlatformModel = require("./ConfigurationPlatformModel"); +import Paginator = require("../../common/Paginator"); diff --git a/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts b/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts index 6a6d7138a..2ee467447 100644 --- a/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +++ b/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts @@ -317,4 +317,4 @@ type GetDomainsParam = any; type GetInventoryConfigParam = any; type GetOrderingStoreConfigParam = any; type RemoveOrderingStoreCookieParam = any; -import ConfigurationPlatformModel = require("sdk/output/javascript/code/sdk/platform/Configuration/ConfigurationPlatformModel"); +import ConfigurationPlatformModel = require("./ConfigurationPlatformModel"); diff --git a/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts b/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts index 4100b9abb..b146845da 100644 --- a/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +++ b/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts @@ -290,6 +290,6 @@ declare class Configuration { */ updateLevelUidIntegration({ id, level, uid, body, requestHeaders }?: ConfigurationPlatformValidator.UpdateLevelUidIntegrationParam, { responseHeaders }?: object): Promise; } -import ConfigurationPlatformValidator = require("sdk/output/javascript/code/sdk/platform/Configuration/ConfigurationPlatformValidator"); -import ConfigurationPlatformModel = require("sdk/output/javascript/code/sdk/platform/Configuration/ConfigurationPlatformModel"); -import Paginator = require("sdk/output/javascript/code/sdk/common/Paginator"); +import ConfigurationPlatformValidator = require("./ConfigurationPlatformValidator"); +import ConfigurationPlatformModel = require("./ConfigurationPlatformModel"); +import Paginator = require("../../common/Paginator"); diff --git a/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts b/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts index b5702556c..fa66e1509 100644 --- a/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +++ b/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts @@ -40,7 +40,6 @@ export = ConfigurationPlatformModel; * @property {InventoryCategory} [category] * @property {InventoryPrice} [price] * @property {InventoryDiscount} [discount] - * @property {PricingStrategy} [pricing_strategy] * @property {boolean} [out_of_stock] - Indicates whether out of stock products * are allowed to show up on the website * @property {boolean} [only_verified_products] - Show only verified products @@ -689,7 +688,6 @@ export = ConfigurationPlatformModel; * are allowed to show up on the website. * @property {boolean} [only_verified_products] - Show only verified products * (the ones whose data have been verified by the admin) - * @property {PricingStrategy} [pricing_strategy] */ /** * @typedef AppInventory @@ -1037,7 +1035,6 @@ export = ConfigurationPlatformModel; * @property {QrFeature} [qr] * @property {PcrFeature} [pcr] * @property {OrderFeature} [order] - * @property {BuyboxFeature} [buybox] * @property {string} [_id] - The unique identifier (24-digit Mongo Object ID) * for the sales channel features * @property {string} [app] - Application ID of the sales channel @@ -1141,16 +1138,6 @@ export = ConfigurationPlatformModel; * @property {boolean} [buy_again] - Allow buy again option for order. Default * value is false. */ -/** - * @typedef BuyboxFeature - * @property {boolean} [show_name] - Allow users to see seller/stores name on - * PDP (product detail page). - * @property {boolean} [enable_selection] - Allow selection of sellers/stores on - * PDP (product detail page). - * @property {boolean} [is_seller_buybox_enabled] - Toggle buybox listing - * between sellers and stores. True indicates seller listing, while False - * indicates store listing. - */ /** * @typedef AppFeatureRequest * @property {AppFeature} [feature] @@ -1268,12 +1255,6 @@ export = ConfigurationPlatformModel; * few brands in the inventory * @property {number[]} [brands] */ -/** - * @typedef PricingStrategy - * @property {boolean} [is_active] - Indicates whether the pricing strategy is - * active or not active - * @property {string} [value] - Indicates the pricing strategy value. - */ /** * @typedef StoreCriteriaRule * @property {number[]} [companies] - List of company UID @@ -1543,7 +1524,7 @@ export = ConfigurationPlatformModel; declare class ConfigurationPlatformModel { } declare namespace ConfigurationPlatformModel { - export { ApplicationInventory, PiiMasking, AppInventoryConfig, InventoryBrand, InventoryStore, AppStoreRules, InventoryCategory, InventoryPrice, InventoryDiscount, AuthenticationConfig, ArticleAssignmentConfig, ArticleAssignmentRules, StorePriority, AppCartConfig, InternationalDeliveryCharges, DeliveryCharges, Charges, AppPaymentConfig, CallbackUrl, Methods, PaymentModeConfig, PaymentSelectionLock, AppOrderConfig, AppLogisticsConfig, LoyaltyPointsConfig, AppInventoryPartialUpdate, BrandCompanyInfo, CompanyByBrandsRequest, CompanyByBrandsResponse, StoreByBrandsRequest, StoreByBrandsResponse, BrandStoreInfo, CompanyBrandInfo, BrandsByCompanyResponse, ValidationFailedResponse, NotFound, CommunicationConfig, CommsConfig, PanCardConfig, CreateApplicationRequest, CreateAppResponse, ApplicationsResponse, MobileAppConfiguration, LandingImage, SplashImage, MobileAppConfigRequest, BuildVersionHistory, BuildVersion, AppSupportedCurrency, DefaultCurrency, DomainAdd, DomainAddRequest, Domain, DomainsResponse, UpdateDomain, UpdateDomainTypeRequest, DomainStatusRequest, DomainStatus, DomainStatusResponse, DomainSuggestionsRequest, DomainSuggestion, DomainSuggestionsResponse, SuccessMessageResponse, GetIntegrationsOptInsResponse, IntegrationOptIn, Validators, CompanyValidator, JsonSchema, StoreValidator, InventoryValidator, OrderValidator, IntegrationMeta, Integration, IntegrationConfigResponse, IntegrationLevel, UpdateIntegrationLevelRequest, OptedStoreIntegration, OtherEntity, LastPatch, OtherEntityData, App, InventoryConfig, AppInventory, AppDomain, CompaniesResponse, AppInventoryCompanies, StoresResponse, AppInventoryStores, FilterOrderingStoreRequest, DeploymentMeta, OrderingStoreConfig, OrderingStoreSelectRequest, OrderingStoreSelect, OtherSellerCompany, OtherSellerApplication, OtherSellerApplications, OptedApplicationResponse, OptedCompany, OptedInventory, OptType, OptedStore, OptOutInventory, TokenResponse, Tokens, Firebase, Credentials, Ios, Android, Moengage, MoengageCredentials, Segment, SegmentCredentials, Gtm, GtmCredentials, Freshchat, FreshchatCredentials, Safetynet, SafetynetCredentials, FyndRewards, FyndRewardsCredentials, GoogleMap, GoogleMapCredentials, RewardPointsConfig, Credit, Debit, ProductDetailFeature, LaunchPage, LandingPageFeature, ListingPageFeature, RegistrationPageFeature, AppFeature, HomePageFeature, CommonFeature, InternationalShipping, CommunicationOptinDialogFeature, DeploymentStoreSelectionFeature, ListingPriceFeature, CurrencyFeature, RevenueEngineFeature, FeedbackFeature, CompareProductsFeature, CartFeature, QrFeature, PcrFeature, OrderFeature, BuyboxFeature, AppFeatureRequest, AppFeatureResponse, Currency, ApplicationWebsite, ApplicationCors, ApplicationAuth, ApplicationRedirections, ApplicationMeta, SecureUrl, Application, TokenSchema, InvalidPayloadRequest, InventoryBrandRule, PricingStrategy, StoreCriteriaRule, InventoryStoreRule, InventoryPaymentConfig, StorePriorityRule, ArticleAssignmentRule, InventoryArticleAssignment, Page, ApplicationInformation, InformationAddress, InformationPhone, InformationLoc, InformationSupport, InformationSupportPhone, InformationSupportEmail, SocialLinks, FacebookLink, InstagramLink, TwitterLink, PinterestLink, GooglePlusLink, YoutubeLink, LinkedInLink, VimeoLink, BlogLink, Links, BusinessHighlights, ApplicationDetail, CurrenciesResponse, AppCurrencyResponse, StoreLatLong, OptedStoreAddress, OrderingStore, OrderingStores, OrderingStoresResponse }; + export { ApplicationInventory, PiiMasking, AppInventoryConfig, InventoryBrand, InventoryStore, AppStoreRules, InventoryCategory, InventoryPrice, InventoryDiscount, AuthenticationConfig, ArticleAssignmentConfig, ArticleAssignmentRules, StorePriority, AppCartConfig, InternationalDeliveryCharges, DeliveryCharges, Charges, AppPaymentConfig, CallbackUrl, Methods, PaymentModeConfig, PaymentSelectionLock, AppOrderConfig, AppLogisticsConfig, LoyaltyPointsConfig, AppInventoryPartialUpdate, BrandCompanyInfo, CompanyByBrandsRequest, CompanyByBrandsResponse, StoreByBrandsRequest, StoreByBrandsResponse, BrandStoreInfo, CompanyBrandInfo, BrandsByCompanyResponse, ValidationFailedResponse, NotFound, CommunicationConfig, CommsConfig, PanCardConfig, CreateApplicationRequest, CreateAppResponse, ApplicationsResponse, MobileAppConfiguration, LandingImage, SplashImage, MobileAppConfigRequest, BuildVersionHistory, BuildVersion, AppSupportedCurrency, DefaultCurrency, DomainAdd, DomainAddRequest, Domain, DomainsResponse, UpdateDomain, UpdateDomainTypeRequest, DomainStatusRequest, DomainStatus, DomainStatusResponse, DomainSuggestionsRequest, DomainSuggestion, DomainSuggestionsResponse, SuccessMessageResponse, GetIntegrationsOptInsResponse, IntegrationOptIn, Validators, CompanyValidator, JsonSchema, StoreValidator, InventoryValidator, OrderValidator, IntegrationMeta, Integration, IntegrationConfigResponse, IntegrationLevel, UpdateIntegrationLevelRequest, OptedStoreIntegration, OtherEntity, LastPatch, OtherEntityData, App, InventoryConfig, AppInventory, AppDomain, CompaniesResponse, AppInventoryCompanies, StoresResponse, AppInventoryStores, FilterOrderingStoreRequest, DeploymentMeta, OrderingStoreConfig, OrderingStoreSelectRequest, OrderingStoreSelect, OtherSellerCompany, OtherSellerApplication, OtherSellerApplications, OptedApplicationResponse, OptedCompany, OptedInventory, OptType, OptedStore, OptOutInventory, TokenResponse, Tokens, Firebase, Credentials, Ios, Android, Moengage, MoengageCredentials, Segment, SegmentCredentials, Gtm, GtmCredentials, Freshchat, FreshchatCredentials, Safetynet, SafetynetCredentials, FyndRewards, FyndRewardsCredentials, GoogleMap, GoogleMapCredentials, RewardPointsConfig, Credit, Debit, ProductDetailFeature, LaunchPage, LandingPageFeature, ListingPageFeature, RegistrationPageFeature, AppFeature, HomePageFeature, CommonFeature, InternationalShipping, CommunicationOptinDialogFeature, DeploymentStoreSelectionFeature, ListingPriceFeature, CurrencyFeature, RevenueEngineFeature, FeedbackFeature, CompareProductsFeature, CartFeature, QrFeature, PcrFeature, OrderFeature, AppFeatureRequest, AppFeatureResponse, Currency, ApplicationWebsite, ApplicationCors, ApplicationAuth, ApplicationRedirections, ApplicationMeta, SecureUrl, Application, TokenSchema, InvalidPayloadRequest, InventoryBrandRule, StoreCriteriaRule, InventoryStoreRule, InventoryPaymentConfig, StorePriorityRule, ArticleAssignmentRule, InventoryArticleAssignment, Page, ApplicationInformation, InformationAddress, InformationPhone, InformationLoc, InformationSupport, InformationSupportPhone, InformationSupportEmail, SocialLinks, FacebookLink, InstagramLink, TwitterLink, PinterestLink, GooglePlusLink, YoutubeLink, LinkedInLink, VimeoLink, BlogLink, Links, BusinessHighlights, ApplicationDetail, CurrenciesResponse, AppCurrencyResponse, StoreLatLong, OptedStoreAddress, OrderingStore, OrderingStores, OrderingStoresResponse }; } /** @returns {ApplicationInventory} */ declare function ApplicationInventory(): ApplicationInventory; @@ -1610,7 +1591,6 @@ type AppInventoryConfig = { category?: InventoryCategory; price?: InventoryPrice; discount?: InventoryDiscount; - pricing_strategy?: PricingStrategy; /** * - Indicates whether out of stock products * are allowed to show up on the website @@ -2938,7 +2918,6 @@ type InventoryConfig = { * (the ones whose data have been verified by the admin) */ only_verified_products?: boolean; - pricing_strategy?: PricingStrategy; }; /** @returns {AppInventory} */ declare function AppInventory(): AppInventory; @@ -3608,7 +3587,6 @@ type AppFeature = { qr?: QrFeature; pcr?: PcrFeature; order?: OrderFeature; - buybox?: BuyboxFeature; /** * - The unique identifier (24-digit Mongo Object ID) * for the sales channel features @@ -3810,26 +3788,6 @@ type OrderFeature = { */ buy_again?: boolean; }; -/** @returns {BuyboxFeature} */ -declare function BuyboxFeature(): BuyboxFeature; -type BuyboxFeature = { - /** - * - Allow users to see seller/stores name on - * PDP (product detail page). - */ - show_name?: boolean; - /** - * - Allow selection of sellers/stores on - * PDP (product detail page). - */ - enable_selection?: boolean; - /** - * - Toggle buybox listing - * between sellers and stores. True indicates seller listing, while False - * indicates store listing. - */ - is_seller_buybox_enabled?: boolean; -}; /** @returns {AppFeatureRequest} */ declare function AppFeatureRequest(): AppFeatureRequest; type AppFeatureRequest = { @@ -4065,19 +4023,6 @@ type InventoryBrandRule = { criteria?: string; brands?: number[]; }; -/** @returns {PricingStrategy} */ -declare function PricingStrategy(): PricingStrategy; -type PricingStrategy = { - /** - * - Indicates whether the pricing strategy is - * active or not active - */ - is_active?: boolean; - /** - * - Indicates the pricing strategy value. - */ - value?: string; -}; /** @returns {StoreCriteriaRule} */ declare function StoreCriteriaRule(): StoreCriteriaRule; type StoreCriteriaRule = { diff --git a/sdk/platform/Configuration/ConfigurationPlatformModel.js b/sdk/platform/Configuration/ConfigurationPlatformModel.js index 09bf5a73f..b95dc6f16 100644 --- a/sdk/platform/Configuration/ConfigurationPlatformModel.js +++ b/sdk/platform/Configuration/ConfigurationPlatformModel.js @@ -43,7 +43,6 @@ const Joi = require("joi"); * @property {InventoryCategory} [category] * @property {InventoryPrice} [price] * @property {InventoryDiscount} [discount] - * @property {PricingStrategy} [pricing_strategy] * @property {boolean} [out_of_stock] - Indicates whether out of stock products * are allowed to show up on the website * @property {boolean} [only_verified_products] - Show only verified products @@ -771,7 +770,6 @@ const Joi = require("joi"); * are allowed to show up on the website. * @property {boolean} [only_verified_products] - Show only verified products * (the ones whose data have been verified by the admin) - * @property {PricingStrategy} [pricing_strategy] */ /** @@ -1168,7 +1166,6 @@ const Joi = require("joi"); * @property {QrFeature} [qr] * @property {PcrFeature} [pcr] * @property {OrderFeature} [order] - * @property {BuyboxFeature} [buybox] * @property {string} [_id] - The unique identifier (24-digit Mongo Object ID) * for the sales channel features * @property {string} [app] - Application ID of the sales channel @@ -1287,17 +1284,6 @@ const Joi = require("joi"); * value is false. */ -/** - * @typedef BuyboxFeature - * @property {boolean} [show_name] - Allow users to see seller/stores name on - * PDP (product detail page). - * @property {boolean} [enable_selection] - Allow selection of sellers/stores on - * PDP (product detail page). - * @property {boolean} [is_seller_buybox_enabled] - Toggle buybox listing - * between sellers and stores. True indicates seller listing, while False - * indicates store listing. - */ - /** * @typedef AppFeatureRequest * @property {AppFeature} [feature] @@ -1428,13 +1414,6 @@ const Joi = require("joi"); * @property {number[]} [brands] */ -/** - * @typedef PricingStrategy - * @property {boolean} [is_active] - Indicates whether the pricing strategy is - * active or not active - * @property {string} [value] - Indicates the pricing strategy value. - */ - /** * @typedef StoreCriteriaRule * @property {number[]} [companies] - List of company UID @@ -1778,7 +1757,6 @@ class ConfigurationPlatformModel { category: ConfigurationPlatformModel.InventoryCategory(), price: ConfigurationPlatformModel.InventoryPrice(), discount: ConfigurationPlatformModel.InventoryDiscount(), - pricing_strategy: ConfigurationPlatformModel.PricingStrategy(), out_of_stock: Joi.boolean(), only_verified_products: Joi.boolean(), franchise_enabled: Joi.boolean(), @@ -2569,7 +2547,6 @@ class ConfigurationPlatformModel { franchise_enabled: Joi.boolean(), out_of_stock: Joi.boolean(), only_verified_products: Joi.boolean(), - pricing_strategy: ConfigurationPlatformModel.PricingStrategy(), }); } @@ -3014,7 +2991,6 @@ class ConfigurationPlatformModel { qr: ConfigurationPlatformModel.QrFeature(), pcr: ConfigurationPlatformModel.PcrFeature(), order: ConfigurationPlatformModel.OrderFeature(), - buybox: ConfigurationPlatformModel.BuyboxFeature(), _id: Joi.string().allow(""), app: Joi.string().allow(""), created_at: Joi.string().allow(""), @@ -3140,15 +3116,6 @@ class ConfigurationPlatformModel { }); } - /** @returns {BuyboxFeature} */ - static BuyboxFeature() { - return Joi.object({ - show_name: Joi.boolean(), - enable_selection: Joi.boolean(), - is_seller_buybox_enabled: Joi.boolean(), - }); - } - /** @returns {AppFeatureRequest} */ static AppFeatureRequest() { return Joi.object({ @@ -3288,14 +3255,6 @@ class ConfigurationPlatformModel { }); } - /** @returns {PricingStrategy} */ - static PricingStrategy() { - return Joi.object({ - is_active: Joi.boolean(), - value: Joi.string().allow(""), - }); - } - /** @returns {StoreCriteriaRule} */ static StoreCriteriaRule() { return Joi.object({ diff --git a/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts b/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts index 74739d8f3..57f676124 100644 --- a/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +++ b/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts @@ -331,4 +331,4 @@ type UpdateLevelUidIntegrationParam = { body: ConfigurationPlatformModel.IntegrationLevel; }; type GetCurrenciesParam = any; -import ConfigurationPlatformModel = require("sdk/output/javascript/code/sdk/platform/Configuration/ConfigurationPlatformModel"); +import ConfigurationPlatformModel = require("./ConfigurationPlatformModel"); diff --git a/sdk/platform/Content/ContentPlatformApplicationClient.d.ts b/sdk/platform/Content/ContentPlatformApplicationClient.d.ts index 5bd085a87..bb347361b 100644 --- a/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +++ b/sdk/platform/Content/ContentPlatformApplicationClient.d.ts @@ -487,7 +487,7 @@ declare class Content { * @summary: Get custom fields definitions * @description: Use this API to retrieve the definitions of custom fields. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getAppCustomFieldDefinitions/). */ - getAppCustomFieldDefinitions({ pageNo, pageSize, resources, types, search, requestHeaders }?: ContentPlatformApplicationValidator.GetAppCustomFieldDefinitionsParam, { responseHeaders }?: object): Promise; + getAppCustomFieldDefinitions({ pageNo, pageSize, resource, type, search, requestHeaders }?: ContentPlatformApplicationValidator.GetAppCustomFieldDefinitionsParam, { responseHeaders }?: object): Promise; /** * @param {ContentPlatformApplicationValidator.GetAppCustomFieldTypesParam} arg * - Arg object @@ -1274,6 +1274,6 @@ declare class Content { */ updateSupportInformation({ body, requestHeaders }?: ContentPlatformApplicationValidator.UpdateSupportInformationParam, { responseHeaders }?: object): Promise; } -import ContentPlatformApplicationValidator = require("sdk/output/javascript/code/sdk/platform/Content/ContentPlatformApplicationValidator"); -import ContentPlatformModel = require("sdk/output/javascript/code/sdk/platform/Content/ContentPlatformModel"); -import Paginator = require("sdk/output/javascript/code/sdk/common/Paginator"); +import ContentPlatformApplicationValidator = require("./ContentPlatformApplicationValidator"); +import ContentPlatformModel = require("./ContentPlatformModel"); +import Paginator = require("../../common/Paginator"); diff --git a/sdk/platform/Content/ContentPlatformApplicationClient.js b/sdk/platform/Content/ContentPlatformApplicationClient.js index 82bf2f102..5b906f880 100644 --- a/sdk/platform/Content/ContentPlatformApplicationClient.js +++ b/sdk/platform/Content/ContentPlatformApplicationClient.js @@ -3214,7 +3214,7 @@ class Content { * @description: Use this API to retrieve the definitions of custom fields. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getAppCustomFieldDefinitions/). */ async getAppCustomFieldDefinitions( - { pageNo, pageSize, resources, types, search, requestHeaders } = { + { pageNo, pageSize, resource, type, search, requestHeaders } = { requestHeaders: {}, }, { responseHeaders } = { responseHeaders: false } @@ -3225,8 +3225,8 @@ class Content { { pageNo, pageSize, - resources, - types, + resource, + type, search, }, { abortEarly: false, allowUnknown: true } @@ -3242,8 +3242,8 @@ class Content { { pageNo, pageSize, - resources, - types, + resource, + type, search, }, { abortEarly: false, allowUnknown: false } @@ -3258,8 +3258,8 @@ class Content { const query_params = {}; query_params["page_no"] = pageNo; query_params["page_size"] = pageSize; - query_params["resources"] = resources; - query_params["types"] = types; + query_params["resource"] = resource; + query_params["type"] = type; query_params["search"] = search; const response = await PlatformAPIClient.execute( diff --git a/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts b/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts index 5271ceb4e..fb4235f79 100644 --- a/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +++ b/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts @@ -174,8 +174,8 @@ export = ContentPlatformApplicationValidator; * @typedef GetAppCustomFieldDefinitionsParam * @property {string} pageNo * @property {string} pageSize - * @property {string} [resources] - * @property {string} [types] + * @property {string} [resource] + * @property {string} [type] * @property {string} [search] */ /** @typedef GetAppCustomFieldTypesParam */ @@ -857,8 +857,8 @@ type GetAppCustomFieldDefinitionParam = { type GetAppCustomFieldDefinitionsParam = { pageNo: string; pageSize: string; - resources?: string; - types?: string; + resource?: string; + type?: string; search?: string; }; type GetAppCustomFieldsParam = { @@ -1234,4 +1234,4 @@ type GetPageMetaParam = any; type GetPageSpecParam = any; type GetSEOConfigurationParam = any; type GetSupportInformationParam = any; -import ContentPlatformModel = require("sdk/output/javascript/code/sdk/platform/Content/ContentPlatformModel"); +import ContentPlatformModel = require("./ContentPlatformModel"); diff --git a/sdk/platform/Content/ContentPlatformApplicationValidator.js b/sdk/platform/Content/ContentPlatformApplicationValidator.js index 2ebcd33b4..336317d3c 100644 --- a/sdk/platform/Content/ContentPlatformApplicationValidator.js +++ b/sdk/platform/Content/ContentPlatformApplicationValidator.js @@ -216,8 +216,8 @@ const ContentPlatformModel = require("./ContentPlatformModel"); * @typedef GetAppCustomFieldDefinitionsParam * @property {string} pageNo * @property {string} pageSize - * @property {string} [resources] - * @property {string} [types] + * @property {string} [resource] + * @property {string} [type] * @property {string} [search] */ @@ -848,8 +848,8 @@ class ContentPlatformApplicationValidator { return Joi.object({ pageNo: Joi.string().allow("").required(), pageSize: Joi.string().allow("").required(), - resources: Joi.string().allow(""), - types: Joi.string().allow(""), + resource: Joi.string().allow(""), + type: Joi.string().allow(""), search: Joi.string().allow(""), }).required(); } diff --git a/sdk/platform/Content/ContentPlatformClient.d.ts b/sdk/platform/Content/ContentPlatformClient.d.ts index f8a7d71a2..a3df45570 100644 --- a/sdk/platform/Content/ContentPlatformClient.d.ts +++ b/sdk/platform/Content/ContentPlatformClient.d.ts @@ -119,7 +119,7 @@ declare class Content { * @summary: Get custom fields definitions * @description: Use this API to retrieve the definitions of custom fields. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getCustomFieldDefinitions/). */ - getCustomFieldDefinitions({ pageNo, pageSize, resources, types, search, requestHeaders }?: ContentPlatformValidator.GetCustomFieldDefinitionsParam, { responseHeaders }?: object): Promise; + getCustomFieldDefinitions({ pageNo, pageSize, resource, type, search, requestHeaders }?: ContentPlatformValidator.GetCustomFieldDefinitionsParam, { responseHeaders }?: object): Promise; /** * @param {ContentPlatformValidator.GetCustomFieldTypesParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -273,5 +273,5 @@ declare class Content { */ updateCustomObjectDefinition({ definitionId, body, requestHeaders }?: ContentPlatformValidator.UpdateCustomObjectDefinitionParam, { responseHeaders }?: object): Promise; } -import ContentPlatformValidator = require("sdk/output/javascript/code/sdk/platform/Content/ContentPlatformValidator"); -import ContentPlatformModel = require("sdk/output/javascript/code/sdk/platform/Content/ContentPlatformModel"); +import ContentPlatformValidator = require("./ContentPlatformValidator"); +import ContentPlatformModel = require("./ContentPlatformModel"); diff --git a/sdk/platform/Content/ContentPlatformClient.js b/sdk/platform/Content/ContentPlatformClient.js index 0a74fc7e7..d73422d77 100644 --- a/sdk/platform/Content/ContentPlatformClient.js +++ b/sdk/platform/Content/ContentPlatformClient.js @@ -771,7 +771,7 @@ class Content { * @description: Use this API to retrieve the definitions of custom fields. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getCustomFieldDefinitions/). */ async getCustomFieldDefinitions( - { pageNo, pageSize, resources, types, search, requestHeaders } = { + { pageNo, pageSize, resource, type, search, requestHeaders } = { requestHeaders: {}, }, { responseHeaders } = { responseHeaders: false } @@ -782,8 +782,8 @@ class Content { { pageNo, pageSize, - resources, - types, + resource, + type, search, }, { abortEarly: false, allowUnknown: true } @@ -799,8 +799,8 @@ class Content { { pageNo, pageSize, - resources, - types, + resource, + type, search, }, { abortEarly: false, allowUnknown: false } @@ -815,8 +815,8 @@ class Content { const query_params = {}; query_params["page_no"] = pageNo; query_params["page_size"] = pageSize; - query_params["resources"] = resources; - query_params["types"] = types; + query_params["resource"] = resource; + query_params["type"] = type; query_params["search"] = search; const xHeaders = {}; diff --git a/sdk/platform/Content/ContentPlatformModel.d.ts b/sdk/platform/Content/ContentPlatformModel.d.ts index 94ad457c3..191e33a1a 100644 --- a/sdk/platform/Content/ContentPlatformModel.d.ts +++ b/sdk/platform/Content/ContentPlatformModel.d.ts @@ -826,6 +826,10 @@ export = ContentPlatformModel; * @property {boolean} [success] * @property {string} [message] */ +/** + * @typedef CustomFieldValue + * @property {Object} [value] + */ /** * @typedef CustomFieldSchema * @property {string} [_id] @@ -833,7 +837,7 @@ export = ContentPlatformModel; * @property {string} [key] * @property {string} [resource] * @property {string} [creator] - * @property {Object[]} [value] + * @property {CustomFieldValue[]} [value] * @property {string} [resource_id] * @property {string} [type] * @property {boolean} [multi_value] @@ -1224,7 +1228,7 @@ export = ContentPlatformModel; declare class ContentPlatformModel { } declare namespace ContentPlatformModel { - export { GenerateSEOContent, GeneratedSEOContent, ApplicationLegal, ApplicationLegalFAQ, PathMappingSchema, PathSourceSchema, SeoComponent, SeoSchema, CustomMetaTag, Detail, SeoSchemaComponent, SEOSchemaMarkupTemplate, SEOSchemaMarkupTemplateRequestBody, AnnouncementPageSchema, EditorMeta, AnnouncementAuthorSchema, AdminAnnouncementSchema, DefaultSchemaComponent, DefaultSEOSchemaMarkupTemplate, ScheduleSchema, NextSchedule, BlogGetResponse, ResourceContent, Asset, Author, BlogSchema, SEO, SEOImage, SEOMetaItem, SEOMetaItems, SEOSitemap, SEObreadcrumb, DateMeta, BlogRequest, GetAnnouncementListSchema, CreateAnnouncementSchema, DataLoaderResponseSchema, DataLoaderResetResponseSchema, LocaleLanguage, Language, Action, ActionPage, NavigationReference, CronBasedScheduleSchema, ConfigurationSchema, SlideshowMedia, UpdateHandpickedSchema, HandpickedTagSchema, RemoveHandpickedSchema, CreateTagSchema, CreateTagRequestSchema, DataLoaderSchema, DataLoaderSourceSchema, DataLoadersSchema, TagDeleteSuccessResponse, ContentAPIError, CommonError, CategorySchema, ChildrenSchema, CategoryRequestSchema, FAQCategorySchema, FaqSchema, FAQ, CreateFaqResponseSchema, CreateFaqSchema, GetFaqSchema, UpdateFaqCategoryRequestSchema, CreateFaqCategoryRequestSchema, CreateFaqCategorySchema, GetFaqCategoriesSchema, GetFaqCategoryBySlugSchema, Page, LandingPageGetResponse, LandingPageSchema, DefaultNavigationResponse, NavigationGetResponse, Orientation, NavigationSchema, NavigationRequest, PageGetResponse, PageSpec, PageSpecParam, PageSpecItem, PageSchema, CreatedBySchema, PageRequest, CronSchedule, PagePublishRequest, PageMetaSchema, SlideshowGetResponse, SlideshowSchema, SlideshowRequest, Support, PhoneProperties, PhoneSchema, EmailProperties, EmailSchema, ContactSchema, TagsSchema, TagSchema, TagSourceSchema, ResourcesSchema, ResourceSchema, FieldValidations, FieldDefinitionSchema, CustomFieldDefinitionsSchema, CustomFieldDefinitionRequestSchema, CustomObjectCustomFieldDefinitions, CustomObjectDefinitionUpdateRequestSchema, CustomFieldDefinitionDetailResSchema, CustomDataDeleteSchema, CustomFieldSchema, CustomFieldsResponseSchema, CustomFieldsResponseByResourceIdSchema, CustomField, CustomFieldRequestSchema, CustomObjectSchema, CustomObjectDefinitionRequestSchema, CustomObjectCustomFieldDefinitionResSchema, CustomObjectDefinitionSchema, CustomObjectDefinitionDeleteResponseSchema, CustomObjectEntryBulkUploadResponse, CustomObjectListItemDefinationSchema, CustomObjectListItemSchema, CustomObjectsSchema, CustomObjectFieldSchema, CustomObjectByIdSchema, CustomObjectBulkEntryInitiateDownload, CustomObjectMetaSchema, CustomObjectJobSchema, CustomObjectBulkEntry, CustomFieldTypeSchema, SupportedValidationsMetaExampleSchema, SupportedValidationsMetaSchema, SupportedValidationsSchema, StringSingleLine, StringMultiLine, Dropdown, Integer, FloatType, BooleanType, Date, Datetime, Json, File, Url, Metaobject, Product, CustomObjectEntry, CustomObjectDefinitionsSchema, CustomObjectEntryFieldSchema, CustomObjectRequestSchema, CustomObjectBulkSchema, GenerationEntityType, PageType }; + export { GenerateSEOContent, GeneratedSEOContent, ApplicationLegal, ApplicationLegalFAQ, PathMappingSchema, PathSourceSchema, SeoComponent, SeoSchema, CustomMetaTag, Detail, SeoSchemaComponent, SEOSchemaMarkupTemplate, SEOSchemaMarkupTemplateRequestBody, AnnouncementPageSchema, EditorMeta, AnnouncementAuthorSchema, AdminAnnouncementSchema, DefaultSchemaComponent, DefaultSEOSchemaMarkupTemplate, ScheduleSchema, NextSchedule, BlogGetResponse, ResourceContent, Asset, Author, BlogSchema, SEO, SEOImage, SEOMetaItem, SEOMetaItems, SEOSitemap, SEObreadcrumb, DateMeta, BlogRequest, GetAnnouncementListSchema, CreateAnnouncementSchema, DataLoaderResponseSchema, DataLoaderResetResponseSchema, LocaleLanguage, Language, Action, ActionPage, NavigationReference, CronBasedScheduleSchema, ConfigurationSchema, SlideshowMedia, UpdateHandpickedSchema, HandpickedTagSchema, RemoveHandpickedSchema, CreateTagSchema, CreateTagRequestSchema, DataLoaderSchema, DataLoaderSourceSchema, DataLoadersSchema, TagDeleteSuccessResponse, ContentAPIError, CommonError, CategorySchema, ChildrenSchema, CategoryRequestSchema, FAQCategorySchema, FaqSchema, FAQ, CreateFaqResponseSchema, CreateFaqSchema, GetFaqSchema, UpdateFaqCategoryRequestSchema, CreateFaqCategoryRequestSchema, CreateFaqCategorySchema, GetFaqCategoriesSchema, GetFaqCategoryBySlugSchema, Page, LandingPageGetResponse, LandingPageSchema, DefaultNavigationResponse, NavigationGetResponse, Orientation, NavigationSchema, NavigationRequest, PageGetResponse, PageSpec, PageSpecParam, PageSpecItem, PageSchema, CreatedBySchema, PageRequest, CronSchedule, PagePublishRequest, PageMetaSchema, SlideshowGetResponse, SlideshowSchema, SlideshowRequest, Support, PhoneProperties, PhoneSchema, EmailProperties, EmailSchema, ContactSchema, TagsSchema, TagSchema, TagSourceSchema, ResourcesSchema, ResourceSchema, FieldValidations, FieldDefinitionSchema, CustomFieldDefinitionsSchema, CustomFieldDefinitionRequestSchema, CustomObjectCustomFieldDefinitions, CustomObjectDefinitionUpdateRequestSchema, CustomFieldDefinitionDetailResSchema, CustomDataDeleteSchema, CustomFieldValue, CustomFieldSchema, CustomFieldsResponseSchema, CustomFieldsResponseByResourceIdSchema, CustomField, CustomFieldRequestSchema, CustomObjectSchema, CustomObjectDefinitionRequestSchema, CustomObjectCustomFieldDefinitionResSchema, CustomObjectDefinitionSchema, CustomObjectDefinitionDeleteResponseSchema, CustomObjectEntryBulkUploadResponse, CustomObjectListItemDefinationSchema, CustomObjectListItemSchema, CustomObjectsSchema, CustomObjectFieldSchema, CustomObjectByIdSchema, CustomObjectBulkEntryInitiateDownload, CustomObjectMetaSchema, CustomObjectJobSchema, CustomObjectBulkEntry, CustomFieldTypeSchema, SupportedValidationsMetaExampleSchema, SupportedValidationsMetaSchema, SupportedValidationsSchema, StringSingleLine, StringMultiLine, Dropdown, Integer, FloatType, BooleanType, Date, Datetime, Json, File, Url, Metaobject, Product, CustomObjectEntry, CustomObjectDefinitionsSchema, CustomObjectEntryFieldSchema, CustomObjectRequestSchema, CustomObjectBulkSchema, GenerationEntityType, PageType }; } /** @returns {GenerateSEOContent} */ declare function GenerateSEOContent(): GenerateSEOContent; @@ -2176,6 +2180,11 @@ type CustomDataDeleteSchema = { success?: boolean; message?: string; }; +/** @returns {CustomFieldValue} */ +declare function CustomFieldValue(): CustomFieldValue; +type CustomFieldValue = { + value?: any; +}; /** @returns {CustomFieldSchema} */ declare function CustomFieldSchema(): CustomFieldSchema; type CustomFieldSchema = { @@ -2184,7 +2193,7 @@ type CustomFieldSchema = { key?: string; resource?: string; creator?: string; - value?: any[]; + value?: CustomFieldValue[]; resource_id?: string; type?: string; multi_value?: boolean; diff --git a/sdk/platform/Content/ContentPlatformModel.js b/sdk/platform/Content/ContentPlatformModel.js index f271fe1b1..02e2cf270 100644 --- a/sdk/platform/Content/ContentPlatformModel.js +++ b/sdk/platform/Content/ContentPlatformModel.js @@ -938,6 +938,11 @@ const Joi = require("joi"); * @property {string} [message] */ +/** + * @typedef CustomFieldValue + * @property {Object} [value] + */ + /** * @typedef CustomFieldSchema * @property {string} [_id] @@ -945,7 +950,7 @@ const Joi = require("joi"); * @property {string} [key] * @property {string} [resource] * @property {string} [creator] - * @property {Object[]} [value] + * @property {CustomFieldValue[]} [value] * @property {string} [resource_id] * @property {string} [type] * @property {boolean} [multi_value] @@ -2547,6 +2552,13 @@ class ContentPlatformModel { }); } + /** @returns {CustomFieldValue} */ + static CustomFieldValue() { + return Joi.object({ + value: Joi.any(), + }); + } + /** @returns {CustomFieldSchema} */ static CustomFieldSchema() { return Joi.object({ @@ -2555,7 +2567,7 @@ class ContentPlatformModel { key: Joi.string().allow(""), resource: Joi.string().allow(""), creator: Joi.string().allow(""), - value: Joi.array().items(Joi.any()), + value: Joi.array().items(ContentPlatformModel.CustomFieldValue()), resource_id: Joi.string().allow(""), type: Joi.string().allow(""), multi_value: Joi.boolean(), diff --git a/sdk/platform/Content/ContentPlatformValidator.d.ts b/sdk/platform/Content/ContentPlatformValidator.d.ts index 0b4282099..a6b6d48b7 100644 --- a/sdk/platform/Content/ContentPlatformValidator.d.ts +++ b/sdk/platform/Content/ContentPlatformValidator.d.ts @@ -41,8 +41,8 @@ export = ContentPlatformValidator; * @typedef GetCustomFieldDefinitionsParam * @property {string} pageNo * @property {string} pageSize - * @property {string} [resources] - * @property {string} [types] + * @property {string} [resource] + * @property {string} [type] * @property {string} [search] */ /** @typedef GetCustomFieldTypesParam */ @@ -191,8 +191,8 @@ type GetCustomFieldDefinitionParam = { type GetCustomFieldDefinitionsParam = { pageNo: string; pageSize: string; - resources?: string; - types?: string; + resource?: string; + type?: string; search?: string; }; type GetCustomFieldsParam = { @@ -244,4 +244,4 @@ type UpdateCustomObjectDefinitionParam = { }; type GetCustomFieldTypesParam = any; type GetResourcesParam = any; -import ContentPlatformModel = require("sdk/output/javascript/code/sdk/platform/Content/ContentPlatformModel"); +import ContentPlatformModel = require("./ContentPlatformModel"); diff --git a/sdk/platform/Content/ContentPlatformValidator.js b/sdk/platform/Content/ContentPlatformValidator.js index d1a030410..0916a63a4 100644 --- a/sdk/platform/Content/ContentPlatformValidator.js +++ b/sdk/platform/Content/ContentPlatformValidator.js @@ -53,8 +53,8 @@ const ContentPlatformModel = require("./ContentPlatformModel"); * @typedef GetCustomFieldDefinitionsParam * @property {string} pageNo * @property {string} pageSize - * @property {string} [resources] - * @property {string} [types] + * @property {string} [resource] + * @property {string} [type] * @property {string} [search] */ @@ -204,8 +204,8 @@ class ContentPlatformValidator { return Joi.object({ pageNo: Joi.string().allow("").required(), pageSize: Joi.string().allow("").required(), - resources: Joi.string().allow(""), - types: Joi.string().allow(""), + resource: Joi.string().allow(""), + type: Joi.string().allow(""), search: Joi.string().allow(""), }).required(); } diff --git a/sdk/platform/Discount/DiscountPlatformClient.d.ts b/sdk/platform/Discount/DiscountPlatformClient.d.ts index 2ec0cc1a5..68b729645 100644 --- a/sdk/platform/Discount/DiscountPlatformClient.d.ts +++ b/sdk/platform/Discount/DiscountPlatformClient.d.ts @@ -138,6 +138,6 @@ declare class Discount { */ validateDiscountFile({ body, discount, requestHeaders }?: DiscountPlatformValidator.ValidateDiscountFileParam, { responseHeaders }?: object): Promise; } -import DiscountPlatformValidator = require("sdk/output/javascript/code/sdk/platform/Discount/DiscountPlatformValidator"); -import DiscountPlatformModel = require("sdk/output/javascript/code/sdk/platform/Discount/DiscountPlatformModel"); -import Paginator = require("sdk/output/javascript/code/sdk/common/Paginator"); +import DiscountPlatformValidator = require("./DiscountPlatformValidator"); +import DiscountPlatformModel = require("./DiscountPlatformModel"); +import Paginator = require("../../common/Paginator"); diff --git a/sdk/platform/Discount/DiscountPlatformModel.d.ts b/sdk/platform/Discount/DiscountPlatformModel.d.ts index a94f023ba..ffa5dd997 100644 --- a/sdk/platform/Discount/DiscountPlatformModel.d.ts +++ b/sdk/platform/Discount/DiscountPlatformModel.d.ts @@ -18,6 +18,7 @@ export = DiscountPlatformModel; * @property {string} [file_path] * @property {number[]} [brand_ids] * @property {number[]} [store_ids] + * @property {string[]} [zone_ids] * @property {ValidityObject} validity * @property {DiscountMeta} [discount_meta] */ @@ -192,6 +193,7 @@ type CreateUpdateDiscount = { file_path?: string; brand_ids?: number[]; store_ids?: number[]; + zone_ids?: string[]; validity: ValidityObject; discount_meta?: DiscountMeta; }; diff --git a/sdk/platform/Discount/DiscountPlatformModel.js b/sdk/platform/Discount/DiscountPlatformModel.js index 3a976fad1..f047b202a 100644 --- a/sdk/platform/Discount/DiscountPlatformModel.js +++ b/sdk/platform/Discount/DiscountPlatformModel.js @@ -20,6 +20,7 @@ const Joi = require("joi"); * @property {string} [file_path] * @property {number[]} [brand_ids] * @property {number[]} [store_ids] + * @property {string[]} [zone_ids] * @property {ValidityObject} validity * @property {DiscountMeta} [discount_meta] */ @@ -208,6 +209,7 @@ class DiscountPlatformModel { file_path: Joi.string().allow(""), brand_ids: Joi.array().items(Joi.number()), store_ids: Joi.array().items(Joi.number()), + zone_ids: Joi.array().items(Joi.string().allow("")), validity: DiscountPlatformModel.ValidityObject().required(), discount_meta: DiscountPlatformModel.DiscountMeta(), }); diff --git a/sdk/platform/Discount/DiscountPlatformValidator.d.ts b/sdk/platform/Discount/DiscountPlatformValidator.d.ts index 4ede4a0c7..7d667e4d6 100644 --- a/sdk/platform/Discount/DiscountPlatformValidator.d.ts +++ b/sdk/platform/Discount/DiscountPlatformValidator.d.ts @@ -183,4 +183,4 @@ type ValidateDiscountFileParam = { discount?: string; body: DiscountPlatformModel.FileJobRequest; }; -import DiscountPlatformModel = require("sdk/output/javascript/code/sdk/platform/Discount/DiscountPlatformModel"); +import DiscountPlatformModel = require("./DiscountPlatformModel"); diff --git a/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts b/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts index 04605c3f6..1407e831a 100644 --- a/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +++ b/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts @@ -93,30 +93,6 @@ declare class FileStorage { * @description: Browse Files - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/browsefiles/). */ browsefiles({ namespace, body, page, limit, search, requestHeaders }?: FileStoragePlatformApplicationValidator.BrowsefilesParam, { responseHeaders }?: object): Promise; - /** - * @param {FileStoragePlatformApplicationValidator.DeletePdfConfigTemplateParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name deletePdfConfigTemplate - * @summary: delete html template for invoice or label - * @description: delete html template for invoice such as Invoice, Label, Deliver challan - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/deletePdfConfigTemplate/). - */ - deletePdfConfigTemplate({ id, requestHeaders }?: FileStoragePlatformApplicationValidator.DeletePdfConfigTemplateParam, { responseHeaders }?: object): Promise; - /** - * @param {FileStoragePlatformApplicationValidator.DeletePdfTypeParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name deletePdfType - * @summary: delete Pdf Type - * @description: delete Pdf Type for invoice such as Invoice, Label, Deliver challan - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/deletePdfType/). - */ - deletePdfType({ id, requestHeaders }?: FileStoragePlatformApplicationValidator.DeletePdfTypeParam, { responseHeaders }?: object): Promise; /** * @param {FileStoragePlatformApplicationValidator.GeneratePaymentReceiptParam} arg * - Arg object @@ -221,5 +197,5 @@ declare class FileStorage { tags: any; }): Promise; } -import FileStoragePlatformApplicationValidator = require("sdk/output/javascript/code/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator"); -import FileStoragePlatformModel = require("sdk/output/javascript/code/sdk/platform/FileStorage/FileStoragePlatformModel"); +import FileStoragePlatformApplicationValidator = require("./FileStoragePlatformApplicationValidator"); +import FileStoragePlatformModel = require("./FileStoragePlatformModel"); diff --git a/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js b/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js index 7902209eb..3bfb1d607 100644 --- a/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +++ b/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js @@ -483,162 +483,6 @@ class FileStorage { return response; } - /** - * @param {FileStoragePlatformApplicationValidator.DeletePdfConfigTemplateParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name deletePdfConfigTemplate - * @summary: delete html template for invoice or label - * @description: delete html template for invoice such as Invoice, Label, Deliver challan - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/deletePdfConfigTemplate/). - */ - async deletePdfConfigTemplate( - { id, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = FileStoragePlatformApplicationValidator.deletePdfConfigTemplate().validate( - { - id, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = FileStoragePlatformApplicationValidator.deletePdfConfigTemplate().validate( - { - id, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > FileStorage > deletePdfConfigTemplate \n ${warrning}`, - }); - } - - const query_params = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "delete", - `/service/platform/assets/v1.0/company/${this.config.companyId}/application/${this.applicationId}/pdf/config/${id}`, - query_params, - undefined, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { error: res_error } = Joi.string() - .allow("") - .validate(responseData, { abortEarly: false, allowUnknown: true }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > FileStorage > deletePdfConfigTemplate \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {FileStoragePlatformApplicationValidator.DeletePdfTypeParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name deletePdfType - * @summary: delete Pdf Type - * @description: delete Pdf Type for invoice such as Invoice, Label, Deliver challan - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/filestorage/deletePdfType/). - */ - async deletePdfType( - { id, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = FileStoragePlatformApplicationValidator.deletePdfType().validate( - { - id, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = FileStoragePlatformApplicationValidator.deletePdfType().validate( - { - id, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > FileStorage > deletePdfType \n ${warrning}`, - }); - } - - const query_params = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "delete", - `/service/platform/assets/v1.0/company/${this.config.companyId}/application/${this.applicationId}/pdf/types/${id}`, - query_params, - undefined, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { error: res_error } = Joi.string() - .allow("") - .validate(responseData, { abortEarly: false, allowUnknown: true }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > FileStorage > deletePdfType \n ${res_error}`, - }); - } - } - - return response; - } - /** * @param {FileStoragePlatformApplicationValidator.GeneratePaymentReceiptParam} arg * - Arg object diff --git a/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts b/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts index 01a8f5d8e..52528623d 100644 --- a/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +++ b/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts @@ -41,14 +41,6 @@ export = FileStoragePlatformApplicationValidator; * @property {string} [search] - Search * @property {FileStoragePlatformModel.ExtensionSlug} body */ -/** - * @typedef DeletePdfConfigTemplateParam - * @property {string} id - */ -/** - * @typedef DeletePdfTypeParam - * @property {string} id - */ /** * @typedef GeneratePaymentReceiptParam * @property {FileStoragePlatformModel.PaymentReceiptRequestBody} body @@ -95,10 +87,6 @@ declare class FileStoragePlatformApplicationValidator { static appbrowse(): AppbrowseParam; /** @returns {BrowsefilesParam} */ static browsefiles(): BrowsefilesParam; - /** @returns {DeletePdfConfigTemplateParam} */ - static deletePdfConfigTemplate(): DeletePdfConfigTemplateParam; - /** @returns {DeletePdfTypeParam} */ - static deletePdfType(): DeletePdfTypeParam; /** @returns {GeneratePaymentReceiptParam} */ static generatePaymentReceipt(): GeneratePaymentReceiptParam; /** @returns {GetDefaultHtmlTemplateParam} */ @@ -115,7 +103,7 @@ declare class FileStoragePlatformApplicationValidator { static updateHtmlTemplate(): UpdateHtmlTemplateParam; } declare namespace FileStoragePlatformApplicationValidator { - export { AppCompleteUploadParam, AppCopyFilesParam, AppStartUploadParam, AppbrowseParam, BrowsefilesParam, DeletePdfConfigTemplateParam, DeletePdfTypeParam, GeneratePaymentReceiptParam, GetDefaultHtmlTemplateParam, GetDefaultPdfDataParam, GetDefaultPdfTemplateParam, GetPdfTypesParam, SaveHtmlTemplateParam, UpdateHtmlTemplateParam }; + export { AppCompleteUploadParam, AppCopyFilesParam, AppStartUploadParam, AppbrowseParam, BrowsefilesParam, GeneratePaymentReceiptParam, GetDefaultHtmlTemplateParam, GetDefaultPdfDataParam, GetDefaultPdfTemplateParam, GetPdfTypesParam, SaveHtmlTemplateParam, UpdateHtmlTemplateParam }; } type AppCompleteUploadParam = { /** @@ -187,12 +175,6 @@ type BrowsefilesParam = { search?: string; body: FileStoragePlatformModel.ExtensionSlug; }; -type DeletePdfConfigTemplateParam = { - id: string; -}; -type DeletePdfTypeParam = { - id: string; -}; type GeneratePaymentReceiptParam = { body: FileStoragePlatformModel.PaymentReceiptRequestBody; }; @@ -221,4 +203,4 @@ type UpdateHtmlTemplateParam = { id: string; body: FileStoragePlatformModel.PdfConfig; }; -import FileStoragePlatformModel = require("sdk/output/javascript/code/sdk/platform/FileStorage/FileStoragePlatformModel"); +import FileStoragePlatformModel = require("./FileStoragePlatformModel"); diff --git a/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js b/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js index c6b1f3d27..b0b10b48e 100644 --- a/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +++ b/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js @@ -49,16 +49,6 @@ const FileStoragePlatformModel = require("./FileStoragePlatformModel"); * @property {FileStoragePlatformModel.ExtensionSlug} body */ -/** - * @typedef DeletePdfConfigTemplateParam - * @property {string} id - */ - -/** - * @typedef DeletePdfTypeParam - * @property {string} id - */ - /** * @typedef GeneratePaymentReceiptParam * @property {FileStoragePlatformModel.PaymentReceiptRequestBody} body @@ -152,20 +142,6 @@ class FileStoragePlatformApplicationValidator { }).required(); } - /** @returns {DeletePdfConfigTemplateParam} */ - static deletePdfConfigTemplate() { - return Joi.object({ - id: Joi.string().allow("").required(), - }).required(); - } - - /** @returns {DeletePdfTypeParam} */ - static deletePdfType() { - return Joi.object({ - id: Joi.string().allow("").required(), - }).required(); - } - /** @returns {GeneratePaymentReceiptParam} */ static generatePaymentReceipt() { return Joi.object({ diff --git a/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts b/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts index 4b8653e4c..e39654d90 100644 --- a/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +++ b/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts @@ -115,5 +115,5 @@ declare class FileStorage { tags: any; }): Promise; } -import FileStoragePlatformValidator = require("sdk/output/javascript/code/sdk/platform/FileStorage/FileStoragePlatformValidator"); -import FileStoragePlatformModel = require("sdk/output/javascript/code/sdk/platform/FileStorage/FileStoragePlatformModel"); +import FileStoragePlatformValidator = require("./FileStoragePlatformValidator"); +import FileStoragePlatformModel = require("./FileStoragePlatformModel"); diff --git a/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts b/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts index 66452586a..09694cdf2 100644 --- a/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +++ b/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts @@ -104,4 +104,4 @@ type StartUploadParam = { namespace: string; body: FileStoragePlatformModel.StartRequest; }; -import FileStoragePlatformModel = require("sdk/output/javascript/code/sdk/platform/FileStorage/FileStoragePlatformModel"); +import FileStoragePlatformModel = require("./FileStoragePlatformModel"); diff --git a/sdk/platform/Finance/FinancePlatformClient.d.ts b/sdk/platform/Finance/FinancePlatformClient.d.ts index dfc45d33f..c671205d7 100644 --- a/sdk/platform/Finance/FinancePlatformClient.d.ts +++ b/sdk/platform/Finance/FinancePlatformClient.d.ts @@ -295,5 +295,5 @@ declare class Finance { */ unlockCreditNote({ body, requestHeaders }?: FinancePlatformValidator.UnlockCreditNoteParam, { responseHeaders }?: object): Promise; } -import FinancePlatformValidator = require("sdk/output/javascript/code/sdk/platform/Finance/FinancePlatformValidator"); -import FinancePlatformModel = require("sdk/output/javascript/code/sdk/platform/Finance/FinancePlatformModel"); +import FinancePlatformValidator = require("./FinancePlatformValidator"); +import FinancePlatformModel = require("./FinancePlatformModel"); diff --git a/sdk/platform/Finance/FinancePlatformModel.d.ts b/sdk/platform/Finance/FinancePlatformModel.d.ts index 0dbc78791..4ecf7e025 100644 --- a/sdk/platform/Finance/FinancePlatformModel.d.ts +++ b/sdk/platform/Finance/FinancePlatformModel.d.ts @@ -272,7 +272,7 @@ export = FinancePlatformModel; */ /** * @typedef InvoiceListingResponseItems - * @property {number} [amount] + * @property {string} [amount] * @property {string} [company] * @property {string} [status] * @property {string} [due_date] @@ -975,7 +975,7 @@ type UnpaidInvoiceDataItems = { /** @returns {InvoiceListingResponseItems} */ declare function InvoiceListingResponseItems(): InvoiceListingResponseItems; type InvoiceListingResponseItems = { - amount?: number; + amount?: string; company?: string; status?: string; due_date?: string; diff --git a/sdk/platform/Finance/FinancePlatformModel.js b/sdk/platform/Finance/FinancePlatformModel.js index 34aa055bb..f077cd398 100644 --- a/sdk/platform/Finance/FinancePlatformModel.js +++ b/sdk/platform/Finance/FinancePlatformModel.js @@ -318,7 +318,7 @@ const Joi = require("joi"); /** * @typedef InvoiceListingResponseItems - * @property {number} [amount] + * @property {string} [amount] * @property {string} [company] * @property {string} [status] * @property {string} [due_date] @@ -1172,7 +1172,7 @@ class FinancePlatformModel { /** @returns {InvoiceListingResponseItems} */ static InvoiceListingResponseItems() { return Joi.object({ - amount: Joi.number(), + amount: Joi.string().allow(""), company: Joi.string().allow(""), status: Joi.string().allow(""), due_date: Joi.string().allow(""), @@ -1461,7 +1461,7 @@ class FinancePlatformModel { /** @returns {GetCnConfigResponseMeta} */ static GetCnConfigResponseMeta() { return Joi.object({ - reason: Joi.string().allow("").allow(null), + reason: Joi.string().allow(""), source_channel: Joi.array().items(Joi.string().allow("")), }); } @@ -1681,12 +1681,12 @@ class FinancePlatformModel { /** @returns {InvoiceActivityLogsResponseData} */ static InvoiceActivityLogsResponseData() { return Joi.object({ - performed_by: Joi.string().allow("").allow(null), + performed_by: Joi.string().allow(""), status: Joi.string().allow(""), - reason: Joi.string().allow("").allow(null), + reason: Joi.string().allow(""), is_resolved: Joi.boolean(), retry_attempts: Joi.number(), - max_retry_attempts: Joi.number().allow(null), + max_retry_attempts: Joi.number(), }); } diff --git a/sdk/platform/Finance/FinancePlatformValidator.d.ts b/sdk/platform/Finance/FinancePlatformValidator.d.ts index 73df822fc..8f1c0d9c9 100644 --- a/sdk/platform/Finance/FinancePlatformValidator.d.ts +++ b/sdk/platform/Finance/FinancePlatformValidator.d.ts @@ -268,4 +268,4 @@ type PaymentProcessParam = { type UnlockCreditNoteParam = { body: FinancePlatformModel.UnlockCreditNoteRequest; }; -import FinancePlatformModel = require("sdk/output/javascript/code/sdk/platform/Finance/FinancePlatformModel"); +import FinancePlatformModel = require("./FinancePlatformModel"); diff --git a/sdk/platform/Inventory/InventoryPlatformClient.d.ts b/sdk/platform/Inventory/InventoryPlatformClient.d.ts index 2bb9532f3..806056ba3 100644 --- a/sdk/platform/Inventory/InventoryPlatformClient.d.ts +++ b/sdk/platform/Inventory/InventoryPlatformClient.d.ts @@ -148,5 +148,5 @@ declare class Inventory { */ updateJob({ body, requestHeaders }?: InventoryPlatformValidator.UpdateJobParam, { responseHeaders }?: object): Promise; } -import InventoryPlatformValidator = require("sdk/output/javascript/code/sdk/platform/Inventory/InventoryPlatformValidator"); -import InventoryPlatformModel = require("sdk/output/javascript/code/sdk/platform/Inventory/InventoryPlatformModel"); +import InventoryPlatformValidator = require("./InventoryPlatformValidator"); +import InventoryPlatformModel = require("./InventoryPlatformModel"); diff --git a/sdk/platform/Inventory/InventoryPlatformValidator.d.ts b/sdk/platform/Inventory/InventoryPlatformValidator.d.ts index 701c74bba..31ca781a2 100644 --- a/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +++ b/sdk/platform/Inventory/InventoryPlatformValidator.d.ts @@ -168,4 +168,4 @@ type UpdateJobParam = { }; type GetConfigByCompanyParam = any; type GetJobConfigDefaultsParam = any; -import InventoryPlatformModel = require("sdk/output/javascript/code/sdk/platform/Inventory/InventoryPlatformModel"); +import InventoryPlatformModel = require("./InventoryPlatformModel"); diff --git a/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts b/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts index 5ff6ec4f0..ca93f9e22 100644 --- a/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +++ b/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts @@ -151,5 +151,5 @@ declare class Lead { */ openVideoRoom({ body, requestHeaders }?: LeadPlatformApplicationValidator.OpenVideoRoomParam, { responseHeaders }?: object): Promise; } -import LeadPlatformApplicationValidator = require("sdk/output/javascript/code/sdk/platform/Lead/LeadPlatformApplicationValidator"); -import LeadPlatformModel = require("sdk/output/javascript/code/sdk/platform/Lead/LeadPlatformModel"); +import LeadPlatformApplicationValidator = require("./LeadPlatformApplicationValidator"); +import LeadPlatformModel = require("./LeadPlatformModel"); diff --git a/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts b/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts index 838aa0980..b2762a111 100644 --- a/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +++ b/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts @@ -191,4 +191,4 @@ type OpenVideoRoomParam = { body: LeadPlatformModel.CreateVideoRoomPayload; }; type GetCustomFormsParam = any; -import LeadPlatformModel = require("sdk/output/javascript/code/sdk/platform/Lead/LeadPlatformModel"); +import LeadPlatformModel = require("./LeadPlatformModel"); diff --git a/sdk/platform/Lead/LeadPlatformClient.d.ts b/sdk/platform/Lead/LeadPlatformClient.d.ts index 201e75cb3..cd97202bb 100644 --- a/sdk/platform/Lead/LeadPlatformClient.d.ts +++ b/sdk/platform/Lead/LeadPlatformClient.d.ts @@ -46,12 +46,12 @@ declare class Lead { * @param {LeadPlatformValidator.GetGeneralConfigParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response + * @returns {Promise} - Success response * @name getGeneralConfig * @summary: Get general support configuration. * @description: Get general support configuration. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/lead/getGeneralConfig/). */ - getGeneralConfig({ requestHeaders }?: any, { responseHeaders }?: object): Promise; + getGeneralConfig({ requestHeaders }?: any, { responseHeaders }?: object): Promise; /** * @param {LeadPlatformValidator.GetPlatformTicketParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -141,6 +141,6 @@ declare class Lead { */ submitFeedback({ id, body, requestHeaders }?: LeadPlatformValidator.SubmitFeedbackParam, { responseHeaders }?: object): Promise; } -import LeadPlatformValidator = require("sdk/output/javascript/code/sdk/platform/Lead/LeadPlatformValidator"); -import LeadPlatformModel = require("sdk/output/javascript/code/sdk/platform/Lead/LeadPlatformModel"); -import Paginator = require("sdk/output/javascript/code/sdk/common/Paginator"); +import LeadPlatformValidator = require("./LeadPlatformValidator"); +import LeadPlatformModel = require("./LeadPlatformModel"); +import Paginator = require("../../common/Paginator"); diff --git a/sdk/platform/Lead/LeadPlatformClient.js b/sdk/platform/Lead/LeadPlatformClient.js index 0be6d4b2f..622efc44d 100644 --- a/sdk/platform/Lead/LeadPlatformClient.js +++ b/sdk/platform/Lead/LeadPlatformClient.js @@ -336,7 +336,7 @@ class Lead { * @param {LeadPlatformValidator.GetGeneralConfigParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response + * @returns {Promise} - Success response * @name getGeneralConfig * @summary: Get general support configuration. * @description: Get general support configuration. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/lead/getGeneralConfig/). @@ -388,7 +388,7 @@ class Lead { const { error: res_error, - } = LeadPlatformModel.GeneralConfigResponse().validate(responseData, { + } = LeadPlatformModel.CloseVideoRoomResponse().validate(responseData, { abortEarly: false, allowUnknown: true, }); diff --git a/sdk/platform/Lead/LeadPlatformModel.d.ts b/sdk/platform/Lead/LeadPlatformModel.d.ts index 0ca4eeb15..be9a652b0 100644 --- a/sdk/platform/Lead/LeadPlatformModel.d.ts +++ b/sdk/platform/Lead/LeadPlatformModel.d.ts @@ -1,22 +1,4 @@ export = LeadPlatformModel; -/** - * @typedef GeneralConfigResponse - * @property {SupportCommunicationSchema[]} [support_communication] - * @property {string} [type] - * @property {GeneralConfigIntegrationSchema} [integration] - * @property {string[]} [available_integration] - */ -/** - * @typedef SupportCommunicationSchema - * @property {string} [type] - * @property {string} [title] - * @property {string} [description] - * @property {boolean} [enabled] - */ -/** - * @typedef GeneralConfigIntegrationSchema - * @property {string} [type] - */ /** * @typedef TicketList * @property {Ticket[]} [items] - List of tickets @@ -109,8 +91,7 @@ export = LeadPlatformModel; * @property {Priority[]} priorities - List of possible priorities for tickets * @property {TicketCategory[]} [categories] - List of possible categories for tickets * @property {Status[]} statuses - List of possible statuses for tickets - * @property {Object[]} [assignees] - List of support staff availble for tickets - * assignment + * @property {Object[]} assignees - List of support staff availble for tickets assignment */ /** * @typedef TicketHistoryPayload @@ -265,7 +246,7 @@ export = LeadPlatformModel; * @typedef TicketCategory * @property {string} display - Category display value identifier * @property {string} key - Category key value identifier - * @property {TicketCategory[]} [sub_categories] + * @property {TicketCategory} [sub_categories] * @property {number} [group_id] - Group id of category releted data * @property {FeedbackForm} [feedback_form] */ @@ -341,29 +322,8 @@ export = LeadPlatformModel; declare class LeadPlatformModel { } declare namespace LeadPlatformModel { - export { GeneralConfigResponse, SupportCommunicationSchema, GeneralConfigIntegrationSchema, TicketList, Page, TicketHistoryList, CustomFormList, CreateCustomFormPayload, EditCustomFormPayload, EditTicketPayload, AgentChangePayload, CreateVideoRoomResponse, CloseVideoRoomResponse, CreateVideoRoomPayload, NotifyUser, Filter, TicketHistoryPayload, GetTokenForVideoRoomResponse, GetParticipantsInsideVideoRoomResponse, Participant, UserSchema, PhoneNumber, Email, Debug, TicketContext, CreatedOn, TicketAsset, TicketContent, AddTicketPayload, Priority, Status, TicketFeedbackList, TicketFeedbackPayload, SubmitButton, PollForAssignment, CustomForm, FeedbackForm, TicketCategory, FeedbackResponseItem, TicketFeedback, TicketHistory, Ticket, ErrorMessage, PriorityEnum, HistoryTypeEnum, TicketAssetTypeEnum, TicketSourceEnum }; + export { TicketList, Page, TicketHistoryList, CustomFormList, CreateCustomFormPayload, EditCustomFormPayload, EditTicketPayload, AgentChangePayload, CreateVideoRoomResponse, CloseVideoRoomResponse, CreateVideoRoomPayload, NotifyUser, Filter, TicketHistoryPayload, GetTokenForVideoRoomResponse, GetParticipantsInsideVideoRoomResponse, Participant, UserSchema, PhoneNumber, Email, Debug, TicketContext, CreatedOn, TicketAsset, TicketContent, AddTicketPayload, Priority, Status, TicketFeedbackList, TicketFeedbackPayload, SubmitButton, PollForAssignment, CustomForm, FeedbackForm, TicketCategory, FeedbackResponseItem, TicketFeedback, TicketHistory, Ticket, ErrorMessage, PriorityEnum, HistoryTypeEnum, TicketAssetTypeEnum, TicketSourceEnum }; } -/** @returns {GeneralConfigResponse} */ -declare function GeneralConfigResponse(): GeneralConfigResponse; -type GeneralConfigResponse = { - support_communication?: SupportCommunicationSchema[]; - type?: string; - integration?: GeneralConfigIntegrationSchema; - available_integration?: string[]; -}; -/** @returns {SupportCommunicationSchema} */ -declare function SupportCommunicationSchema(): SupportCommunicationSchema; -type SupportCommunicationSchema = { - type?: string; - title?: string; - description?: string; - enabled?: boolean; -}; -/** @returns {GeneralConfigIntegrationSchema} */ -declare function GeneralConfigIntegrationSchema(): GeneralConfigIntegrationSchema; -type GeneralConfigIntegrationSchema = { - type?: string; -}; /** @returns {TicketList} */ declare function TicketList(): TicketList; type TicketList = { @@ -566,10 +526,9 @@ type Filter = { */ statuses: Status[]; /** - * - List of support staff availble for tickets - * assignment + * - List of support staff availble for tickets assignment */ - assignees?: any[]; + assignees: any[]; }; /** @returns {TicketHistoryPayload} */ declare function TicketHistoryPayload(): TicketHistoryPayload; @@ -917,7 +876,7 @@ type TicketCategory = { * - Category key value identifier */ key: string; - sub_categories?: TicketCategory[]; + sub_categories?: TicketCategory; /** * - Group id of category releted data */ diff --git a/sdk/platform/Lead/LeadPlatformModel.js b/sdk/platform/Lead/LeadPlatformModel.js index 36c6982d7..8e083ca98 100644 --- a/sdk/platform/Lead/LeadPlatformModel.js +++ b/sdk/platform/Lead/LeadPlatformModel.js @@ -1,26 +1,5 @@ const Joi = require("joi"); -/** - * @typedef GeneralConfigResponse - * @property {SupportCommunicationSchema[]} [support_communication] - * @property {string} [type] - * @property {GeneralConfigIntegrationSchema} [integration] - * @property {string[]} [available_integration] - */ - -/** - * @typedef SupportCommunicationSchema - * @property {string} [type] - * @property {string} [title] - * @property {string} [description] - * @property {boolean} [enabled] - */ - -/** - * @typedef GeneralConfigIntegrationSchema - * @property {string} [type] - */ - /** * @typedef TicketList * @property {Ticket[]} [items] - List of tickets @@ -125,8 +104,7 @@ const Joi = require("joi"); * @property {Priority[]} priorities - List of possible priorities for tickets * @property {TicketCategory[]} [categories] - List of possible categories for tickets * @property {Status[]} statuses - List of possible statuses for tickets - * @property {Object[]} [assignees] - List of support staff availble for tickets - * assignment + * @property {Object[]} assignees - List of support staff availble for tickets assignment */ /** @@ -303,7 +281,7 @@ const Joi = require("joi"); * @typedef TicketCategory * @property {string} display - Category display value identifier * @property {string} key - Category key value identifier - * @property {TicketCategory[]} [sub_categories] + * @property {TicketCategory} [sub_categories] * @property {number} [group_id] - Group id of category releted data * @property {FeedbackForm} [feedback_form] */ @@ -387,35 +365,6 @@ const Joi = require("joi"); /** @typedef {"platform_panel" | "sales_channel"} TicketSourceEnum */ class LeadPlatformModel { - /** @returns {GeneralConfigResponse} */ - static GeneralConfigResponse() { - return Joi.object({ - support_communication: Joi.array().items( - LeadPlatformModel.SupportCommunicationSchema() - ), - type: Joi.string().allow(""), - integration: LeadPlatformModel.GeneralConfigIntegrationSchema(), - available_integration: Joi.array().items(Joi.string().allow("")), - }); - } - - /** @returns {SupportCommunicationSchema} */ - static SupportCommunicationSchema() { - return Joi.object({ - type: Joi.string().allow(""), - title: Joi.string().allow(""), - description: Joi.string().allow(""), - enabled: Joi.boolean(), - }); - } - - /** @returns {GeneralConfigIntegrationSchema} */ - static GeneralConfigIntegrationSchema() { - return Joi.object({ - type: Joi.string().allow(""), - }); - } - /** @returns {TicketList} */ static TicketList() { return Joi.object({ @@ -541,7 +490,7 @@ class LeadPlatformModel { priorities: Joi.array().items(LeadPlatformModel.Priority()).required(), categories: Joi.array().items(LeadPlatformModel.TicketCategory()), statuses: Joi.array().items(LeadPlatformModel.Status()).required(), - assignees: Joi.array().items(Joi.any()), + assignees: Joi.array().items(Joi.any()).required(), }); } @@ -588,7 +537,7 @@ class LeadPlatformModel { last_name: Joi.string().allow(""), phone_numbers: Joi.array().items(LeadPlatformModel.PhoneNumber()), emails: Joi.array().items(LeadPlatformModel.Email()), - gender: Joi.string().allow("").allow(null), + gender: Joi.string().allow(""), dob: Joi.string().allow(""), active: Joi.boolean(), profile_pic_url: Joi.string().allow(""), @@ -760,7 +709,7 @@ class LeadPlatformModel { return Joi.object({ display: Joi.string().allow("").required(), key: Joi.string().allow("").required(), - sub_categories: Joi.array().items(Joi.link("#TicketCategory")), + sub_categories: Joi.link("#TicketCategory"), group_id: Joi.number(), feedback_form: LeadPlatformModel.FeedbackForm(), }); diff --git a/sdk/platform/Lead/LeadPlatformValidator.d.ts b/sdk/platform/Lead/LeadPlatformValidator.d.ts index fcf1c18b7..c25bea63f 100644 --- a/sdk/platform/Lead/LeadPlatformValidator.d.ts +++ b/sdk/platform/Lead/LeadPlatformValidator.d.ts @@ -172,4 +172,4 @@ type SubmitFeedbackParam = { body: LeadPlatformModel.TicketFeedbackPayload; }; type GetGeneralConfigParam = any; -import LeadPlatformModel = require("sdk/output/javascript/code/sdk/platform/Lead/LeadPlatformModel"); +import LeadPlatformModel = require("./LeadPlatformModel"); diff --git a/sdk/platform/Order/OrderPlatformApplicationClient.d.ts b/sdk/platform/Order/OrderPlatformApplicationClient.d.ts index c83dd69f8..eed3ea329 100644 --- a/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +++ b/sdk/platform/Order/OrderPlatformApplicationClient.d.ts @@ -3,26 +3,6 @@ declare class Order { constructor(config: any, applicationId: any); config: any; applicationId: any; - /** - * @param {OrderPlatformApplicationValidator.CreateRuleParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name createRule - * @summary: - * @description: Create a new rule - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/createRule/). - */ - createRule({ body, requestHeaders }?: OrderPlatformApplicationValidator.CreateRuleParam, { responseHeaders }?: object): Promise; - /** - * @param {OrderPlatformApplicationValidator.DeleteRuleParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name deleteRule - * @summary: - * @description: Delete a specific rule by ID - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/deleteRule/). - */ - deleteRule({ ruleId, requestHeaders }?: OrderPlatformApplicationValidator.DeleteRuleParam, { responseHeaders }?: object): Promise; /** * @param {OrderPlatformApplicationValidator.FailedOrderLogsParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -59,56 +39,6 @@ declare class Order { * @description: Using action, get reasons behind full or partial cancellation of a shipment - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getPlatformShipmentReasons/). */ getPlatformShipmentReasons({ action, requestHeaders }?: OrderPlatformApplicationValidator.GetPlatformShipmentReasonsParam, { responseHeaders }?: object): Promise; - /** - * @param {OrderPlatformApplicationValidator.GetQuestionsParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getQuestions - * @summary: - * @description: Get all questions of that cluster - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getQuestions/). - */ - getQuestions({ pageNo, pageSize, q, isActive, requestHeaders }?: OrderPlatformApplicationValidator.GetQuestionsParam, { responseHeaders }?: object): Promise; - /** - * @param {OrderPlatformApplicationValidator.GetRuleByIdParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getRuleById - * @summary: - * @description: Get a specific rule by ID - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getRuleById/). - */ - getRuleById({ ruleId, requestHeaders }?: OrderPlatformApplicationValidator.GetRuleByIdParam, { responseHeaders }?: object): Promise; - /** - * @param {OrderPlatformApplicationValidator.GetRuleLaneConfigParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getRuleLaneConfig - * @summary: - * @description: Retrieve rule lane configurations - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getRuleLaneConfig/). - */ - getRuleLaneConfig({ searchValue, requestHeaders }?: OrderPlatformApplicationValidator.GetRuleLaneConfigParam, { responseHeaders }?: object): Promise; - /** - * @param {OrderPlatformApplicationValidator.GetRuleListParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getRuleList - * @summary: - * @description: Get a list of rules - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getRuleList/). - */ - getRuleList({ body, requestHeaders }?: OrderPlatformApplicationValidator.GetRuleListParam, { responseHeaders }?: object): Promise; - /** - * @param {OrderPlatformApplicationValidator.GetRuleParametersParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getRuleParameters - * @summary: - * @description: Get available rule parameters - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getRuleParameters/). - */ - getRuleParameters({ requestHeaders }?: any, { responseHeaders }?: object): Promise; /** * @param {OrderPlatformApplicationValidator.GetShipmentBagReasonsParam} arg * - Arg object @@ -133,27 +63,6 @@ declare class Order { * @description: Track Shipment by shipment id, for application based on application Id - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/trackShipmentPlatform/). */ trackShipmentPlatform({ shipmentId, requestHeaders }?: OrderPlatformApplicationValidator.TrackShipmentPlatformParam, { responseHeaders }?: object): Promise; - /** - * @param {OrderPlatformApplicationValidator.UpdateRuleParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name updateRule - * @summary: - * @description: Update a specific rule by ID - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/updateRule/). - */ - updateRule({ ruleId, body, requestHeaders }?: OrderPlatformApplicationValidator.UpdateRuleParam, { responseHeaders }?: object): Promise; - /** - * @param {OrderPlatformApplicationValidator.UpdateRulePositionParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name updateRulePosition - * @summary: - * @description: Update the position of a rule - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/updateRulePosition/). - */ - updateRulePosition({ body, requestHeaders }?: OrderPlatformApplicationValidator.UpdateRulePositionParam, { responseHeaders }?: object): Promise; } -import OrderPlatformApplicationValidator = require("sdk/output/javascript/code/sdk/platform/Order/OrderPlatformApplicationValidator"); -import OrderPlatformModel = require("sdk/output/javascript/code/sdk/platform/Order/OrderPlatformModel"); +import OrderPlatformApplicationValidator = require("./OrderPlatformApplicationValidator"); +import OrderPlatformModel = require("./OrderPlatformModel"); diff --git a/sdk/platform/Order/OrderPlatformApplicationClient.js b/sdk/platform/Order/OrderPlatformApplicationClient.js index 1372781b6..3cc2c4ca9 100644 --- a/sdk/platform/Order/OrderPlatformApplicationClient.js +++ b/sdk/platform/Order/OrderPlatformApplicationClient.js @@ -15,160 +15,6 @@ class Order { this.applicationId = applicationId; } - /** - * @param {OrderPlatformApplicationValidator.CreateRuleParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name createRule - * @summary: - * @description: Create a new rule - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/createRule/). - */ - async createRule( - { body, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { error } = OrderPlatformApplicationValidator.createRule().validate( - { - body, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = OrderPlatformApplicationValidator.createRule().validate( - { - body, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Order > createRule \n ${warrning}`, - }); - } - - const query_params = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "post", - `/service/platform/order-manage/v1.0/company/${this.config.companyId}/application/${this.applicationId}/rule`, - query_params, - body, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = OrderPlatformModel.CreateRuleResponse().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Order > createRule \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {OrderPlatformApplicationValidator.DeleteRuleParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name deleteRule - * @summary: - * @description: Delete a specific rule by ID - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/deleteRule/). - */ - async deleteRule( - { ruleId, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { error } = OrderPlatformApplicationValidator.deleteRule().validate( - { - ruleId, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = OrderPlatformApplicationValidator.deleteRule().validate( - { - ruleId, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Order > deleteRule \n ${warrning}`, - }); - } - - const query_params = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "delete", - `/service/platform/order-manage/v1.0/company/${this.config.companyId}/application/${this.applicationId}/rule/${ruleId}`, - query_params, - undefined, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = OrderPlatformModel.DeleteRuleResponse().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Order > deleteRule \n ${res_error}`, - }); - } - } - - return response; - } - /** * @param {OrderPlatformApplicationValidator.FailedOrderLogsParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -486,106 +332,26 @@ class Order { } /** - * @param {OrderPlatformApplicationValidator.GetQuestionsParam} arg - Arg object + * @param {OrderPlatformApplicationValidator.GetShipmentBagReasonsParam} arg + * - Arg object + * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getQuestions - * @summary: - * @description: Get all questions of that cluster - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getQuestions/). + * @returns {Promise} - Success response + * @name getShipmentBagReasons + * @summary: Get reasons behind full or partial cancellation of a shipment + * @description: Use this API to retrieve the issues that led to the cancellation of bags within a shipment. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getShipmentBagReasons/). */ - async getQuestions( - { pageNo, pageSize, q, isActive, requestHeaders } = { requestHeaders: {} }, + async getShipmentBagReasons( + { shipmentId, lineNumber, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { - const { error } = OrderPlatformApplicationValidator.getQuestions().validate( - { - pageNo, - pageSize, - q, - isActive, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found const { - error: warrning, - } = OrderPlatformApplicationValidator.getQuestions().validate( - { - pageNo, - pageSize, - q, - isActive, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Order > getQuestions \n ${warrning}`, - }); - } - - const query_params = {}; - query_params["page_no"] = pageNo; - query_params["page_size"] = pageSize; - query_params["q"] = q; - query_params["is_active"] = isActive; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/order-manage/v1.0/company/${this.config.companyId}/application/${this.applicationId}/question/`, - query_params, - undefined, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { error: res_error } = Joi.any().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Order > getQuestions \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {OrderPlatformApplicationValidator.GetRuleByIdParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getRuleById - * @summary: - * @description: Get a specific rule by ID - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getRuleById/). - */ - async getRuleById( - { ruleId, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { error } = OrderPlatformApplicationValidator.getRuleById().validate( + error, + } = OrderPlatformApplicationValidator.getShipmentBagReasons().validate( { - ruleId, + shipmentId, + lineNumber, }, { abortEarly: false, allowUnknown: true } ); @@ -596,16 +362,17 @@ class Order { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = OrderPlatformApplicationValidator.getRuleById().validate( + } = OrderPlatformApplicationValidator.getShipmentBagReasons().validate( { - ruleId, + shipmentId, + lineNumber, }, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Order > getRuleById \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Order > getShipmentBagReasons \n ${warrning}`, }); } @@ -614,7 +381,7 @@ class Order { const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/order-manage/v1.0/company/${this.config.companyId}/application/${this.applicationId}/rule/${ruleId}`, + `/service/platform/order/v1.0/company/${this.config.companyId}/application/${this.applicationId}/orders/shipments/${shipmentId}/line_number/${lineNumber}/reasons`, query_params, undefined, requestHeaders, @@ -628,7 +395,7 @@ class Order { const { error: res_error, - } = OrderPlatformModel.RuleResponse().validate(responseData, { + } = OrderPlatformModel.ShipmentBagReasons().validate(responseData, { abortEarly: false, allowUnknown: true, }); @@ -639,7 +406,7 @@ class Order { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Order > getRuleById \n ${res_error}`, + message: `Response Validation Warnings for platform > Order > getShipmentBagReasons \n ${res_error}`, }); } } @@ -648,23 +415,25 @@ class Order { } /** - * @param {OrderPlatformApplicationValidator.GetRuleLaneConfigParam} arg - Arg object + * @param {OrderPlatformApplicationValidator.TrackShipmentPlatformParam} arg + * - Arg object + * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getRuleLaneConfig - * @summary: - * @description: Retrieve rule lane configurations - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getRuleLaneConfig/). + * @returns {Promise} - Success response + * @name trackShipmentPlatform + * @summary: Track shipment + * @description: Track Shipment by shipment id, for application based on application Id - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/trackShipmentPlatform/). */ - async getRuleLaneConfig( - { searchValue, requestHeaders } = { requestHeaders: {} }, + async trackShipmentPlatform( + { shipmentId, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = OrderPlatformApplicationValidator.getRuleLaneConfig().validate( + } = OrderPlatformApplicationValidator.trackShipmentPlatform().validate( { - searchValue, + shipmentId, }, { abortEarly: false, allowUnknown: true } ); @@ -675,26 +444,25 @@ class Order { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = OrderPlatformApplicationValidator.getRuleLaneConfig().validate( + } = OrderPlatformApplicationValidator.trackShipmentPlatform().validate( { - searchValue, + shipmentId, }, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Order > getRuleLaneConfig \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Order > trackShipmentPlatform \n ${warrning}`, }); } const query_params = {}; - query_params["search_value"] = searchValue; const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/order-manage/v1.0/company/${this.config.companyId}/application/${this.applicationId}/rule-lane-config`, + `/service/platform/order/v1.0/company/${this.config.companyId}/application/${this.applicationId}/orders/shipments/${shipmentId}/track`, query_params, undefined, requestHeaders, @@ -706,323 +474,9 @@ class Order { responseData = response[0]; } - const { error: res_error } = Joi.any().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Order > getRuleLaneConfig \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {OrderPlatformApplicationValidator.GetRuleListParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getRuleList - * @summary: - * @description: Get a list of rules - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getRuleList/). - */ - async getRuleList( - { body, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { error } = OrderPlatformApplicationValidator.getRuleList().validate( - { - body, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = OrderPlatformApplicationValidator.getRuleList().validate( - { - body, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Order > getRuleList \n ${warrning}`, - }); - } - - const query_params = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "post", - `/service/platform/order-manage/v1.0/company/${this.config.companyId}/application/${this.applicationId}/rule_list`, - query_params, - body, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = OrderPlatformModel.RuleListResponse().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Order > getRuleList \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {OrderPlatformApplicationValidator.GetRuleParametersParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getRuleParameters - * @summary: - * @description: Get available rule parameters - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getRuleParameters/). - */ - async getRuleParameters( - { requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = OrderPlatformApplicationValidator.getRuleParameters().validate( - {}, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = OrderPlatformApplicationValidator.getRuleParameters().validate( - {}, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Order > getRuleParameters \n ${warrning}`, - }); - } - - const query_params = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/order-manage/v1.0/company/${this.config.companyId}/application/${this.applicationId}/rule-parameters/`, - query_params, - undefined, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = OrderPlatformModel.RuleParametersResponse().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Order > getRuleParameters \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {OrderPlatformApplicationValidator.GetShipmentBagReasonsParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getShipmentBagReasons - * @summary: Get reasons behind full or partial cancellation of a shipment - * @description: Use this API to retrieve the issues that led to the cancellation of bags within a shipment. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getShipmentBagReasons/). - */ - async getShipmentBagReasons( - { shipmentId, lineNumber, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = OrderPlatformApplicationValidator.getShipmentBagReasons().validate( - { - shipmentId, - lineNumber, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = OrderPlatformApplicationValidator.getShipmentBagReasons().validate( - { - shipmentId, - lineNumber, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Order > getShipmentBagReasons \n ${warrning}`, - }); - } - - const query_params = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/order/v1.0/company/${this.config.companyId}/application/${this.applicationId}/orders/shipments/${shipmentId}/line_number/${lineNumber}/reasons`, - query_params, - undefined, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = OrderPlatformModel.ShipmentBagReasons().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Order > getShipmentBagReasons \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {OrderPlatformApplicationValidator.TrackShipmentPlatformParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name trackShipmentPlatform - * @summary: Track shipment - * @description: Track Shipment by shipment id, for application based on application Id - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/trackShipmentPlatform/). - */ - async trackShipmentPlatform( - { shipmentId, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = OrderPlatformApplicationValidator.trackShipmentPlatform().validate( - { - shipmentId, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = OrderPlatformApplicationValidator.trackShipmentPlatform().validate( - { - shipmentId, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Order > trackShipmentPlatform \n ${warrning}`, - }); - } - - const query_params = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/order/v1.0/company/${this.config.companyId}/application/${this.applicationId}/orders/shipments/${shipmentId}/track`, - query_params, - undefined, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = OrderPlatformModel.PlatformShipmentTrack().validate(responseData, { + const { + error: res_error, + } = OrderPlatformModel.PlatformShipmentTrack().validate(responseData, { abortEarly: false, allowUnknown: true, }); @@ -1040,165 +494,6 @@ class Order { return response; } - - /** - * @param {OrderPlatformApplicationValidator.UpdateRuleParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name updateRule - * @summary: - * @description: Update a specific rule by ID - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/updateRule/). - */ - async updateRule( - { ruleId, body, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { error } = OrderPlatformApplicationValidator.updateRule().validate( - { - ruleId, - body, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = OrderPlatformApplicationValidator.updateRule().validate( - { - ruleId, - body, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Order > updateRule \n ${warrning}`, - }); - } - - const query_params = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "put", - `/service/platform/order-manage/v1.0/company/${this.config.companyId}/application/${this.applicationId}/rule/${ruleId}`, - query_params, - body, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = OrderPlatformModel.RuleUpdateResponse().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Order > updateRule \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {OrderPlatformApplicationValidator.UpdateRulePositionParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name updateRulePosition - * @summary: - * @description: Update the position of a rule - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/updateRulePosition/). - */ - async updateRulePosition( - { body, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = OrderPlatformApplicationValidator.updateRulePosition().validate( - { - body, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = OrderPlatformApplicationValidator.updateRulePosition().validate( - { - body, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Order > updateRulePosition \n ${warrning}`, - }); - } - - const query_params = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "post", - `/service/platform/order-manage/v1.0/company/${this.config.companyId}/application/${this.applicationId}/rule-position/`, - query_params, - body, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = OrderPlatformModel.UpdateRulePositionResponse().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Order > updateRulePosition \n ${res_error}`, - }); - } - } - - return response; - } } module.exports = Order; diff --git a/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts b/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts index 7737dc3fe..152a7cf23 100644 --- a/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +++ b/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts @@ -1,12 +1,4 @@ export = OrderPlatformApplicationValidator; -/** - * @typedef CreateRuleParam - * @property {OrderPlatformModel.RuleRequest} body - */ -/** - * @typedef DeleteRuleParam - * @property {string} ruleId - */ /** * @typedef FailedOrderLogsParam * @property {number} [pageNo] - Page Number @@ -36,26 +28,6 @@ export = OrderPlatformApplicationValidator; * @typedef GetPlatformShipmentReasonsParam * @property {string} action */ -/** - * @typedef GetQuestionsParam - * @property {number} [pageNo] - * @property {number} [pageSize] - * @property {string} [q] - To search questions using query - * @property {string} [isActive] - To get active questions - */ -/** - * @typedef GetRuleByIdParam - * @property {string} ruleId - */ -/** - * @typedef GetRuleLaneConfigParam - * @property {string} [searchValue] - */ -/** - * @typedef GetRuleListParam - * @property {OrderPlatformModel.RuleListRequest} body - */ -/** @typedef GetRuleParametersParam */ /** * @typedef GetShipmentBagReasonsParam * @property {string} shipmentId - ID of the bag. An order may contain multiple @@ -66,54 +38,21 @@ export = OrderPlatformApplicationValidator; * @typedef TrackShipmentPlatformParam * @property {string} shipmentId - Shipment Id */ -/** - * @typedef UpdateRuleParam - * @property {string} ruleId - * @property {OrderPlatformModel.RuleUpdateRequest} body - */ -/** - * @typedef UpdateRulePositionParam - * @property {OrderPlatformModel.UpdateRulePositionRequest} body - */ declare class OrderPlatformApplicationValidator { - /** @returns {CreateRuleParam} */ - static createRule(): CreateRuleParam; - /** @returns {DeleteRuleParam} */ - static deleteRule(): DeleteRuleParam; /** @returns {FailedOrderLogsParam} */ static failedOrderLogs(): FailedOrderLogsParam; /** @returns {GetApplicationShipmentsParam} */ static getApplicationShipments(): GetApplicationShipmentsParam; /** @returns {GetPlatformShipmentReasonsParam} */ static getPlatformShipmentReasons(): GetPlatformShipmentReasonsParam; - /** @returns {GetQuestionsParam} */ - static getQuestions(): GetQuestionsParam; - /** @returns {GetRuleByIdParam} */ - static getRuleById(): GetRuleByIdParam; - /** @returns {GetRuleLaneConfigParam} */ - static getRuleLaneConfig(): GetRuleLaneConfigParam; - /** @returns {GetRuleListParam} */ - static getRuleList(): GetRuleListParam; - /** @returns {GetRuleParametersParam} */ - static getRuleParameters(): any; /** @returns {GetShipmentBagReasonsParam} */ static getShipmentBagReasons(): GetShipmentBagReasonsParam; /** @returns {TrackShipmentPlatformParam} */ static trackShipmentPlatform(): TrackShipmentPlatformParam; - /** @returns {UpdateRuleParam} */ - static updateRule(): UpdateRuleParam; - /** @returns {UpdateRulePositionParam} */ - static updateRulePosition(): UpdateRulePositionParam; } declare namespace OrderPlatformApplicationValidator { - export { CreateRuleParam, DeleteRuleParam, FailedOrderLogsParam, GetApplicationShipmentsParam, GetPlatformShipmentReasonsParam, GetQuestionsParam, GetRuleByIdParam, GetRuleLaneConfigParam, GetRuleListParam, GetRuleParametersParam, GetShipmentBagReasonsParam, TrackShipmentPlatformParam, UpdateRuleParam, UpdateRulePositionParam }; + export { FailedOrderLogsParam, GetApplicationShipmentsParam, GetPlatformShipmentReasonsParam, GetShipmentBagReasonsParam, TrackShipmentPlatformParam }; } -type CreateRuleParam = { - body: OrderPlatformModel.RuleRequest; -}; -type DeleteRuleParam = { - ruleId: string; -}; type FailedOrderLogsParam = { /** * - Page Number @@ -152,27 +91,6 @@ type GetApplicationShipmentsParam = { type GetPlatformShipmentReasonsParam = { action: string; }; -type GetQuestionsParam = { - pageNo?: number; - pageSize?: number; - /** - * - To search questions using query - */ - q?: string; - /** - * - To get active questions - */ - isActive?: string; -}; -type GetRuleByIdParam = { - ruleId: string; -}; -type GetRuleLaneConfigParam = { - searchValue?: string; -}; -type GetRuleListParam = { - body: OrderPlatformModel.RuleListRequest; -}; type GetShipmentBagReasonsParam = { /** * - ID of the bag. An order may contain multiple @@ -190,12 +108,3 @@ type TrackShipmentPlatformParam = { */ shipmentId: string; }; -type UpdateRuleParam = { - ruleId: string; - body: OrderPlatformModel.RuleUpdateRequest; -}; -type UpdateRulePositionParam = { - body: OrderPlatformModel.UpdateRulePositionRequest; -}; -type GetRuleParametersParam = any; -import OrderPlatformModel = require("sdk/output/javascript/code/sdk/platform/Order/OrderPlatformModel"); diff --git a/sdk/platform/Order/OrderPlatformApplicationValidator.js b/sdk/platform/Order/OrderPlatformApplicationValidator.js index 3621dd5ce..70cb9a2e8 100644 --- a/sdk/platform/Order/OrderPlatformApplicationValidator.js +++ b/sdk/platform/Order/OrderPlatformApplicationValidator.js @@ -2,16 +2,6 @@ const Joi = require("joi"); const OrderPlatformModel = require("./OrderPlatformModel"); -/** - * @typedef CreateRuleParam - * @property {OrderPlatformModel.RuleRequest} body - */ - -/** - * @typedef DeleteRuleParam - * @property {string} ruleId - */ - /** * @typedef FailedOrderLogsParam * @property {number} [pageNo] - Page Number @@ -44,31 +34,6 @@ const OrderPlatformModel = require("./OrderPlatformModel"); * @property {string} action */ -/** - * @typedef GetQuestionsParam - * @property {number} [pageNo] - * @property {number} [pageSize] - * @property {string} [q] - To search questions using query - * @property {string} [isActive] - To get active questions - */ - -/** - * @typedef GetRuleByIdParam - * @property {string} ruleId - */ - -/** - * @typedef GetRuleLaneConfigParam - * @property {string} [searchValue] - */ - -/** - * @typedef GetRuleListParam - * @property {OrderPlatformModel.RuleListRequest} body - */ - -/** @typedef GetRuleParametersParam */ - /** * @typedef GetShipmentBagReasonsParam * @property {string} shipmentId - ID of the bag. An order may contain multiple @@ -81,32 +46,7 @@ const OrderPlatformModel = require("./OrderPlatformModel"); * @property {string} shipmentId - Shipment Id */ -/** - * @typedef UpdateRuleParam - * @property {string} ruleId - * @property {OrderPlatformModel.RuleUpdateRequest} body - */ - -/** - * @typedef UpdateRulePositionParam - * @property {OrderPlatformModel.UpdateRulePositionRequest} body - */ - class OrderPlatformApplicationValidator { - /** @returns {CreateRuleParam} */ - static createRule() { - return Joi.object({ - body: OrderPlatformModel.RuleRequest().required(), - }).required(); - } - - /** @returns {DeleteRuleParam} */ - static deleteRule() { - return Joi.object({ - ruleId: Joi.string().allow("").required(), - }).required(); - } - /** @returns {FailedOrderLogsParam} */ static failedOrderLogs() { return Joi.object({ @@ -145,42 +85,6 @@ class OrderPlatformApplicationValidator { }).required(); } - /** @returns {GetQuestionsParam} */ - static getQuestions() { - return Joi.object({ - pageNo: Joi.number(), - pageSize: Joi.number(), - q: Joi.string().allow(""), - isActive: Joi.string().allow(""), - }).required(); - } - - /** @returns {GetRuleByIdParam} */ - static getRuleById() { - return Joi.object({ - ruleId: Joi.string().allow("").required(), - }).required(); - } - - /** @returns {GetRuleLaneConfigParam} */ - static getRuleLaneConfig() { - return Joi.object({ - searchValue: Joi.string().allow(""), - }).required(); - } - - /** @returns {GetRuleListParam} */ - static getRuleList() { - return Joi.object({ - body: OrderPlatformModel.RuleListRequest().required(), - }).required(); - } - - /** @returns {GetRuleParametersParam} */ - static getRuleParameters() { - return Joi.object({}).required(); - } - /** @returns {GetShipmentBagReasonsParam} */ static getShipmentBagReasons() { return Joi.object({ @@ -195,21 +99,6 @@ class OrderPlatformApplicationValidator { shipmentId: Joi.string().allow("").required(), }).required(); } - - /** @returns {UpdateRuleParam} */ - static updateRule() { - return Joi.object({ - ruleId: Joi.string().allow("").required(), - body: OrderPlatformModel.RuleUpdateRequest().required(), - }).required(); - } - - /** @returns {UpdateRulePositionParam} */ - static updateRulePosition() { - return Joi.object({ - body: OrderPlatformModel.UpdateRulePositionRequest().required(), - }).required(); - } } module.exports = OrderPlatformApplicationValidator; diff --git a/sdk/platform/Order/OrderPlatformClient.d.ts b/sdk/platform/Order/OrderPlatformClient.d.ts index 55ea3ea2a..8c4045285 100644 --- a/sdk/platform/Order/OrderPlatformClient.d.ts +++ b/sdk/platform/Order/OrderPlatformClient.d.ts @@ -75,17 +75,6 @@ declare class Order { * @description: Create Order - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/createOrder/). */ createOrder({ body, requestHeaders }?: OrderPlatformValidator.CreateOrderParam, { responseHeaders }?: object): Promise; - /** - * @param {OrderPlatformValidator.DeleteuserviewsParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name deleteuserviews - * @summary: - * @description: Delete User views(User cross company views) - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/deleteuserviews/). - */ - deleteuserviews({ id, requestHeaders }?: OrderPlatformValidator.DeleteuserviewsParam, { responseHeaders }?: object): Promise; /** * @param {OrderPlatformValidator.DispatchManifestsParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -160,6 +149,16 @@ declare class Order { * @description: Fetch Refund Mode Config - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/fetchRefundModeConfig/). */ fetchRefundModeConfig({ body, requestHeaders }?: OrderPlatformValidator.FetchRefundModeConfigParam, { responseHeaders }?: object): Promise; + /** + * @param {OrderPlatformValidator.GenerateInvoiceIDParam} arg - Arg object + * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` + * @param {import("../PlatformAPIClient").Options} - Options + * @returns {Promise} - Success response + * @name generateInvoiceID + * @summary: + * @description: This API is used to manually generate Invoice ID against shipments. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/generateInvoiceID/). + */ + generateInvoiceID({ invoiceType, body, requestHeaders }?: OrderPlatformValidator.GenerateInvoiceIDParam, { responseHeaders }?: object): Promise; /** * @param {OrderPlatformValidator.GeneratePOSReceiptByOrderIdParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -392,40 +391,6 @@ declare class Order { customerId?: string; orderType?: string; }): Paginator; - /** - * @param {OrderPlatformValidator.GetRefundConfigurationParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name getRefundConfiguration - * @summary: - * @description: refund configuration. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getRefundConfiguration/). - */ - getRefundConfiguration({ appId, requestHeaders }?: OrderPlatformValidator.GetRefundConfigurationParam, { responseHeaders }?: object): Promise; - /** - * @param {OrderPlatformValidator.GetRefundEnableStateListParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getRefundEnableStateList - * @summary: - * @description: Refund State Configuration - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getRefundEnableStateList/). - */ - getRefundEnableStateList({ requestHeaders }?: any, { responseHeaders }?: object): Promise; - /** - * @param {OrderPlatformValidator.GetRefundStateConfigurationParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name getRefundStateConfiguration - * @summary: - * @description: Refund State Configuration - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getRefundStateConfiguration/). - */ - getRefundStateConfiguration({ appId, requestHeaders }?: OrderPlatformValidator.GetRefundStateConfigurationParam, { responseHeaders }?: object): Promise; /** * @param {OrderPlatformValidator.GetRoleBasedActionsParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -579,26 +544,6 @@ declare class Order { * @description: Get Listing Filters - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getfilters/). */ getfilters({ view, groupEntity, requestHeaders }?: OrderPlatformValidator.GetfiltersParam, { responseHeaders }?: object): Promise; - /** - * @param {OrderPlatformValidator.GetuserviewsParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getuserviews - * @summary: - * @description: Get User views(User cross company views) - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getuserviews/). - */ - getuserviews({ requestHeaders }?: any, { responseHeaders }?: object): Promise; - /** - * @param {OrderPlatformValidator.GlobalfiltersParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name globalfilters - * @summary: - * @description: Get Global Filters - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/globalfilters/). - */ - globalfilters({ showIn, requestSource, requestHeaders }?: OrderPlatformValidator.GlobalfiltersParam, { responseHeaders }?: object): Promise; /** * @param {OrderPlatformValidator.InvalidateShipmentCacheParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -630,30 +575,6 @@ declare class Order { * @description: Update Order - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/orderUpdate/). */ orderUpdate({ body, requestHeaders }?: OrderPlatformValidator.OrderUpdateParam, { responseHeaders }?: object): Promise; - /** - * @param {OrderPlatformValidator.PostRefundConfigurationParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name postRefundConfiguration - * @summary: - * @description: refund configuration. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/postRefundConfiguration/). - */ - postRefundConfiguration({ appId, body, requestHeaders }?: OrderPlatformValidator.PostRefundConfigurationParam, { responseHeaders }?: object): Promise; - /** - * @param {OrderPlatformValidator.PostRefundStateConfigurationParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name postRefundStateConfiguration - * @summary: - * @description: Refund State Configuration - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/postRefundStateConfiguration/). - */ - postRefundStateConfiguration({ appId, body, requestHeaders }?: OrderPlatformValidator.PostRefundStateConfigurationParam, { responseHeaders }?: object): Promise; /** * @param {OrderPlatformValidator.PostShipmentHistoryParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -664,17 +585,6 @@ declare class Order { * @description: Post shipment history - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/postShipmentHistory/). */ postShipmentHistory({ body, requestHeaders }?: OrderPlatformValidator.PostShipmentHistoryParam, { responseHeaders }?: object): Promise; - /** - * @param {OrderPlatformValidator.PostuserviewsParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name postuserviews - * @summary: - * @description: Add User views(User cross company views) - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/postuserviews/). - */ - postuserviews({ body, requestHeaders }?: OrderPlatformValidator.PostuserviewsParam, { responseHeaders }?: object): Promise; /** * @param {OrderPlatformValidator.ProcessManifestsParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -783,17 +693,6 @@ declare class Order { * @description: This endpoint allows users to post courier partner tracking details for a given shipment id or awb no. The service will add entry for courier partner statuses and will be saved to oms. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/updateShipmentTracking/). */ updateShipmentTracking({ body, requestHeaders }?: OrderPlatformValidator.UpdateShipmentTrackingParam, { responseHeaders }?: object): Promise; - /** - * @param {OrderPlatformValidator.UpdateuserviewsParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name updateuserviews - * @summary: - * @description: Update User views(User cross company views) - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/updateuserviews/). - */ - updateuserviews({ body, requestHeaders }?: OrderPlatformValidator.UpdateuserviewsParam, { responseHeaders }?: object): Promise; /** * @param {OrderPlatformValidator.UploadConsentsParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -815,6 +714,6 @@ declare class Order { */ verifyMobileOTP({ body, requestHeaders }?: OrderPlatformValidator.VerifyMobileOTPParam, { responseHeaders }?: object): Promise; } -import OrderPlatformValidator = require("sdk/output/javascript/code/sdk/platform/Order/OrderPlatformValidator"); -import OrderPlatformModel = require("sdk/output/javascript/code/sdk/platform/Order/OrderPlatformModel"); -import Paginator = require("sdk/output/javascript/code/sdk/common/Paginator"); +import OrderPlatformValidator = require("./OrderPlatformValidator"); +import OrderPlatformModel = require("./OrderPlatformModel"); +import Paginator = require("../../common/Paginator"); diff --git a/sdk/platform/Order/OrderPlatformClient.js b/sdk/platform/Order/OrderPlatformClient.js index b51ead408..0bc55139d 100644 --- a/sdk/platform/Order/OrderPlatformClient.js +++ b/sdk/platform/Order/OrderPlatformClient.js @@ -609,86 +609,6 @@ class Order { return response; } - /** - * @param {OrderPlatformValidator.DeleteuserviewsParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name deleteuserviews - * @summary: - * @description: Delete User views(User cross company views) - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/deleteuserviews/). - */ - async deleteuserviews( - { id, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { error } = OrderPlatformValidator.deleteuserviews().validate( - { - id, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = OrderPlatformValidator.deleteuserviews().validate( - { - id, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Order > deleteuserviews \n ${warrning}`, - }); - } - - const query_params = {}; - - const xHeaders = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "delete", - `/service/platform/order/v1.0/company/${this.config.companyId}/views/${id}`, - query_params, - undefined, - { ...xHeaders, ...requestHeaders }, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = OrderPlatformModel.CreateUpdateDeleteResponse().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Order > deleteuserviews \n ${res_error}`, - }); - } - } - - return response; - } - /** * @param {OrderPlatformValidator.DispatchManifestsParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -1251,6 +1171,87 @@ class Order { return response; } + /** + * @param {OrderPlatformValidator.GenerateInvoiceIDParam} arg - Arg object + * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` + * @param {import("../PlatformAPIClient").Options} - Options + * @returns {Promise} - Success response + * @name generateInvoiceID + * @summary: + * @description: This API is used to manually generate Invoice ID against shipments. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/generateInvoiceID/). + */ + async generateInvoiceID( + { invoiceType, body, requestHeaders } = { requestHeaders: {} }, + { responseHeaders } = { responseHeaders: false } + ) { + const { error } = OrderPlatformValidator.generateInvoiceID().validate( + { + invoiceType, + body, + }, + { abortEarly: false, allowUnknown: true } + ); + if (error) { + return Promise.reject(new FDKClientValidationError(error)); + } + + // Showing warrnings if extra unknown parameters are found + const { + error: warrning, + } = OrderPlatformValidator.generateInvoiceID().validate( + { + invoiceType, + body, + }, + { abortEarly: false, allowUnknown: false } + ); + if (warrning) { + Logger({ + level: "WARN", + message: `Parameter Validation warrnings for platform > Order > generateInvoiceID \n ${warrning}`, + }); + } + + const query_params = {}; + + const xHeaders = {}; + + const response = await PlatformAPIClient.execute( + this.config, + "post", + `/service/platform/order-manage/v1.0/company/${this.config.companyId}/${invoiceType}/id/generate`, + query_params, + body, + { ...xHeaders, ...requestHeaders }, + { responseHeaders } + ); + + let responseData = response; + if (responseHeaders) { + responseData = response[0]; + } + + const { + error: res_error, + } = OrderPlatformModel.GenerateInvoiceIDResponse().validate(responseData, { + abortEarly: false, + allowUnknown: true, + }); + + if (res_error) { + if (this.config.options.strictResponseCheck === true) { + return Promise.reject(new FDKResponseValidationError(res_error)); + } else { + Logger({ + level: "WARN", + message: `Response Validation Warnings for platform > Order > generateInvoiceID \n ${res_error}`, + }); + } + } + + return response; + } + /** * @param {OrderPlatformValidator.GeneratePOSReceiptByOrderIdParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -3045,24 +3046,20 @@ class Order { } /** - * @param {OrderPlatformValidator.GetRefundConfigurationParam} arg - Arg object + * @param {OrderPlatformValidator.GetRoleBasedActionsParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name getRefundConfiguration + * @returns {Promise} - Success response + * @name getRoleBasedActions * @summary: - * @description: refund configuration. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getRefundConfiguration/). + * @description: Get Role Based Actions - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getRoleBasedActions/). */ - async getRefundConfiguration( - { appId, requestHeaders } = { requestHeaders: {} }, + async getRoleBasedActions( + { requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { - const { error } = OrderPlatformValidator.getRefundConfiguration().validate( - { - appId, - }, + const { error } = OrderPlatformValidator.getRoleBasedActions().validate( + {}, { abortEarly: false, allowUnknown: true } ); if (error) { @@ -3072,28 +3069,25 @@ class Order { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = OrderPlatformValidator.getRefundConfiguration().validate( - { - appId, - }, + } = OrderPlatformValidator.getRoleBasedActions().validate( + {}, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Order > getRefundConfiguration \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Order > getRoleBasedActions \n ${warrning}`, }); } const query_params = {}; - query_params["app_id"] = appId; const xHeaders = {}; const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/order-manage/v1.0/company/${this.config.companyId}/refund/config`, + `/service/platform/order-manage/v1.0/company/${this.config.companyId}/roles`, query_params, undefined, { ...xHeaders, ...requestHeaders }, @@ -3107,10 +3101,10 @@ class Order { const { error: res_error, - } = OrderPlatformModel.RefundStateConfigurationManualSchemaResponse().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); + } = OrderPlatformModel.GetActionsResponse().validate(responseData, { + abortEarly: false, + allowUnknown: true, + }); if (res_error) { if (this.config.options.strictResponseCheck === true) { @@ -3118,7 +3112,7 @@ class Order { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Order > getRefundConfiguration \n ${res_error}`, + message: `Response Validation Warnings for platform > Order > getRoleBasedActions \n ${res_error}`, }); } } @@ -3127,22 +3121,26 @@ class Order { } /** - * @param {OrderPlatformValidator.GetRefundEnableStateListParam} arg - Arg object + * @param {OrderPlatformValidator.GetShipmentByIdParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getRefundEnableStateList + * @returns {Promise} - Success response + * @name getShipmentById * @summary: - * @description: Refund State Configuration - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getRefundEnableStateList/). + * @description: Get shipment details for the given shipment. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getShipmentById/). */ - async getRefundEnableStateList( - { requestHeaders } = { requestHeaders: {} }, + async getShipmentById( + { channelShipmentId, shipmentId, fetchActiveShipment, requestHeaders } = { + requestHeaders: {}, + }, { responseHeaders } = { responseHeaders: false } ) { - const { - error, - } = OrderPlatformValidator.getRefundEnableStateList().validate( - {}, + const { error } = OrderPlatformValidator.getShipmentById().validate( + { + channelShipmentId, + shipmentId, + fetchActiveShipment, + }, { abortEarly: false, allowUnknown: true } ); if (error) { @@ -3152,25 +3150,32 @@ class Order { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = OrderPlatformValidator.getRefundEnableStateList().validate( - {}, + } = OrderPlatformValidator.getShipmentById().validate( + { + channelShipmentId, + shipmentId, + fetchActiveShipment, + }, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Order > getRefundEnableStateList \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Order > getShipmentById \n ${warrning}`, }); } const query_params = {}; + query_params["channel_shipment_id"] = channelShipmentId; + query_params["shipment_id"] = shipmentId; + query_params["fetch_active_shipment"] = fetchActiveShipment; const xHeaders = {}; const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/order-manage/v1.0/company/${this.config.companyId}/refund/states`, + `/service/platform/order/v1.0/company/${this.config.companyId}/shipment-details`, query_params, undefined, { ...xHeaders, ...requestHeaders }, @@ -3184,7 +3189,7 @@ class Order { const { error: res_error, - } = OrderPlatformModel.GetRefundStates().validate(responseData, { + } = OrderPlatformModel.ShipmentInfoResponse().validate(responseData, { abortEarly: false, allowUnknown: true, }); @@ -3195,7 +3200,7 @@ class Order { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Order > getRefundEnableStateList \n ${res_error}`, + message: `Response Validation Warnings for platform > Order > getShipmentById \n ${res_error}`, }); } } @@ -3204,25 +3209,22 @@ class Order { } /** - * @param {OrderPlatformValidator.GetRefundStateConfigurationParam} arg - Arg object + * @param {OrderPlatformValidator.GetShipmentHistoryParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name getRefundStateConfiguration + * @returns {Promise} - Success response + * @name getShipmentHistory * @summary: - * @description: Refund State Configuration - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getRefundStateConfiguration/). + * @description: Get Shipment History - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getShipmentHistory/). */ - async getRefundStateConfiguration( - { appId, requestHeaders } = { requestHeaders: {} }, + async getShipmentHistory( + { shipmentId, bagId, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { - const { - error, - } = OrderPlatformValidator.getRefundStateConfiguration().validate( + const { error } = OrderPlatformValidator.getShipmentHistory().validate( { - appId, + shipmentId, + bagId, }, { abortEarly: false, allowUnknown: true } ); @@ -3233,28 +3235,30 @@ class Order { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = OrderPlatformValidator.getRefundStateConfiguration().validate( + } = OrderPlatformValidator.getShipmentHistory().validate( { - appId, + shipmentId, + bagId, }, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Order > getRefundStateConfiguration \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Order > getShipmentHistory \n ${warrning}`, }); } const query_params = {}; - query_params["app_id"] = appId; + query_params["shipment_id"] = shipmentId; + query_params["bag_id"] = bagId; const xHeaders = {}; const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/order-manage/v1.0/company/${this.config.companyId}/refund/states/config`, + `/service/platform/order-manage/v1.0/company/${this.config.companyId}/shipment/history`, query_params, undefined, { ...xHeaders, ...requestHeaders }, @@ -3268,10 +3272,10 @@ class Order { const { error: res_error, - } = OrderPlatformModel.GetRefundStateConfigurationResponse().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); + } = OrderPlatformModel.ShipmentHistoryResponse().validate(responseData, { + abortEarly: false, + allowUnknown: true, + }); if (res_error) { if (this.config.options.strictResponseCheck === true) { @@ -3279,7 +3283,7 @@ class Order { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Order > getRefundStateConfiguration \n ${res_error}`, + message: `Response Validation Warnings for platform > Order > getShipmentHistory \n ${res_error}`, }); } } @@ -3288,20 +3292,25 @@ class Order { } /** - * @param {OrderPlatformValidator.GetRoleBasedActionsParam} arg - Arg object + * @param {OrderPlatformValidator.GetShipmentReasonsParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getRoleBasedActions - * @summary: - * @description: Get Role Based Actions - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getRoleBasedActions/). + * @returns {Promise} - + * Success response + * @name getShipmentReasons + * @summary: Get reasons behind full or partial cancellation of a shipment + * @description: Use this API to retrieve the issues that led to the cancellation of bags within a shipment. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getShipmentReasons/). */ - async getRoleBasedActions( - { requestHeaders } = { requestHeaders: {} }, + async getShipmentReasons( + { shipmentId, bagId, state, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { - const { error } = OrderPlatformValidator.getRoleBasedActions().validate( - {}, + const { error } = OrderPlatformValidator.getShipmentReasons().validate( + { + shipmentId, + bagId, + state, + }, { abortEarly: false, allowUnknown: true } ); if (error) { @@ -3311,14 +3320,18 @@ class Order { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = OrderPlatformValidator.getRoleBasedActions().validate( - {}, + } = OrderPlatformValidator.getShipmentReasons().validate( + { + shipmentId, + bagId, + state, + }, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Order > getRoleBasedActions \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Order > getShipmentReasons \n ${warrning}`, }); } @@ -3329,262 +3342,7 @@ class Order { const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/order-manage/v1.0/company/${this.config.companyId}/roles`, - query_params, - undefined, - { ...xHeaders, ...requestHeaders }, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = OrderPlatformModel.GetActionsResponse().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Order > getRoleBasedActions \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {OrderPlatformValidator.GetShipmentByIdParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getShipmentById - * @summary: - * @description: Get shipment details for the given shipment. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getShipmentById/). - */ - async getShipmentById( - { channelShipmentId, shipmentId, fetchActiveShipment, requestHeaders } = { - requestHeaders: {}, - }, - { responseHeaders } = { responseHeaders: false } - ) { - const { error } = OrderPlatformValidator.getShipmentById().validate( - { - channelShipmentId, - shipmentId, - fetchActiveShipment, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = OrderPlatformValidator.getShipmentById().validate( - { - channelShipmentId, - shipmentId, - fetchActiveShipment, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Order > getShipmentById \n ${warrning}`, - }); - } - - const query_params = {}; - query_params["channel_shipment_id"] = channelShipmentId; - query_params["shipment_id"] = shipmentId; - query_params["fetch_active_shipment"] = fetchActiveShipment; - - const xHeaders = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/order/v1.0/company/${this.config.companyId}/shipment-details`, - query_params, - undefined, - { ...xHeaders, ...requestHeaders }, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = OrderPlatformModel.ShipmentInfoResponse().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Order > getShipmentById \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {OrderPlatformValidator.GetShipmentHistoryParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getShipmentHistory - * @summary: - * @description: Get Shipment History - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getShipmentHistory/). - */ - async getShipmentHistory( - { shipmentId, bagId, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { error } = OrderPlatformValidator.getShipmentHistory().validate( - { - shipmentId, - bagId, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = OrderPlatformValidator.getShipmentHistory().validate( - { - shipmentId, - bagId, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Order > getShipmentHistory \n ${warrning}`, - }); - } - - const query_params = {}; - query_params["shipment_id"] = shipmentId; - query_params["bag_id"] = bagId; - - const xHeaders = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/order-manage/v1.0/company/${this.config.companyId}/shipment/history`, - query_params, - undefined, - { ...xHeaders, ...requestHeaders }, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = OrderPlatformModel.ShipmentHistoryResponse().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Order > getShipmentHistory \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {OrderPlatformValidator.GetShipmentReasonsParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name getShipmentReasons - * @summary: Get reasons behind full or partial cancellation of a shipment - * @description: Use this API to retrieve the issues that led to the cancellation of bags within a shipment. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getShipmentReasons/). - */ - async getShipmentReasons( - { shipmentId, bagId, state, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { error } = OrderPlatformValidator.getShipmentReasons().validate( - { - shipmentId, - bagId, - state, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = OrderPlatformValidator.getShipmentReasons().validate( - { - shipmentId, - bagId, - state, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Order > getShipmentReasons \n ${warrning}`, - }); - } - - const query_params = {}; - - const xHeaders = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/order/v1.0/company/${this.config.companyId}/shipments/${shipmentId}/bags/${bagId}/state/${state}/reasons`, + `/service/platform/order/v1.0/company/${this.config.companyId}/shipments/${shipmentId}/bags/${bagId}/state/${state}/reasons`, query_params, undefined, { ...xHeaders, ...requestHeaders }, @@ -3947,402 +3705,12 @@ class Order { * @summary: * @description: Get State Transition Map - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getStateTransitionMap/). */ - async getStateTransitionMap( - { requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { error } = OrderPlatformValidator.getStateTransitionMap().validate( - {}, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = OrderPlatformValidator.getStateTransitionMap().validate( - {}, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Order > getStateTransitionMap \n ${warrning}`, - }); - } - - const query_params = {}; - - const xHeaders = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/order-manage/v1.0/company/${this.config.companyId}/bag/state/transition`, - query_params, - undefined, - { ...xHeaders, ...requestHeaders }, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = OrderPlatformModel.BagStateTransitionMap().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Order > getStateTransitionMap \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {OrderPlatformValidator.GetTemplateParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getTemplate - * @summary: - * @description: Get the Excel file URL for the Template. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getTemplate/). - */ - async getTemplate( - { templateName, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { error } = OrderPlatformValidator.getTemplate().validate( - { - templateName, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { error: warrning } = OrderPlatformValidator.getTemplate().validate( - { - templateName, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Order > getTemplate \n ${warrning}`, - }); - } - - const query_params = {}; - - const xHeaders = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/order/v1.0/company/${this.config.companyId}/jobs/templates/${templateName}`, - query_params, - undefined, - { ...xHeaders, ...requestHeaders }, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = OrderPlatformModel.TemplateDownloadResponse().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Order > getTemplate \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {OrderPlatformValidator.GetfiltersParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getfilters - * @summary: - * @description: Get Listing Filters - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getfilters/). - */ - async getfilters( - { view, groupEntity, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { error } = OrderPlatformValidator.getfilters().validate( - { - view, - groupEntity, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { error: warrning } = OrderPlatformValidator.getfilters().validate( - { - view, - groupEntity, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Order > getfilters \n ${warrning}`, - }); - } - - const query_params = {}; - query_params["view"] = view; - query_params["group_entity"] = groupEntity; - - const xHeaders = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/order/v1.0/company/${this.config.companyId}/filter-listing`, - query_params, - undefined, - { ...xHeaders, ...requestHeaders }, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = OrderPlatformModel.FiltersResponse().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Order > getfilters \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {OrderPlatformValidator.GetuserviewsParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getuserviews - * @summary: - * @description: Get User views(User cross company views) - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getuserviews/). - */ - async getuserviews( - { requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { error } = OrderPlatformValidator.getuserviews().validate( - {}, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { error: warrning } = OrderPlatformValidator.getuserviews().validate( - {}, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Order > getuserviews \n ${warrning}`, - }); - } - - const query_params = {}; - - const xHeaders = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/order/v1.0/company/${this.config.companyId}/views`, - query_params, - undefined, - { ...xHeaders, ...requestHeaders }, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = OrderPlatformModel.UserViewsResponse().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Order > getuserviews \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {OrderPlatformValidator.GlobalfiltersParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name globalfilters - * @summary: - * @description: Get Global Filters - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/globalfilters/). - */ - async globalfilters( - { showIn, requestSource, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { error } = OrderPlatformValidator.globalfilters().validate( - { - showIn, - requestSource, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { error: warrning } = OrderPlatformValidator.globalfilters().validate( - { - showIn, - requestSource, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Order > globalfilters \n ${warrning}`, - }); - } - - const query_params = {}; - query_params["show_in"] = showIn; - query_params["request_source"] = requestSource; - - const xHeaders = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/order/v1.0/company/${this.config.companyId}/filters`, - query_params, - undefined, - { ...xHeaders, ...requestHeaders }, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = OrderPlatformModel.GlobalFiltersResponse().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Order > globalfilters \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {OrderPlatformValidator.InvalidateShipmentCacheParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name invalidateShipmentCache - * @summary: - * @description: Invalidate shipment Cache - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/invalidateShipmentCache/). - */ - async invalidateShipmentCache( - { body, requestHeaders } = { requestHeaders: {} }, + async getStateTransitionMap( + { requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { - const { error } = OrderPlatformValidator.invalidateShipmentCache().validate( - { - body, - }, + const { error } = OrderPlatformValidator.getStateTransitionMap().validate( + {}, { abortEarly: false, allowUnknown: true } ); if (error) { @@ -4352,16 +3720,14 @@ class Order { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = OrderPlatformValidator.invalidateShipmentCache().validate( - { - body, - }, + } = OrderPlatformValidator.getStateTransitionMap().validate( + {}, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Order > invalidateShipmentCache \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Order > getStateTransitionMap \n ${warrning}`, }); } @@ -4371,10 +3737,10 @@ class Order { const response = await PlatformAPIClient.execute( this.config, - "put", - `/service/platform/order-manage/v1.0/company/${this.config.companyId}/update-cache`, + "get", + `/service/platform/order-manage/v1.0/company/${this.config.companyId}/bag/state/transition`, query_params, - body, + undefined, { ...xHeaders, ...requestHeaders }, { responseHeaders } ); @@ -4386,10 +3752,10 @@ class Order { const { error: res_error, - } = OrderPlatformModel.InvalidateShipmentCacheResponse().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); + } = OrderPlatformModel.BagStateTransitionMap().validate(responseData, { + abortEarly: false, + allowUnknown: true, + }); if (res_error) { if (this.config.options.strictResponseCheck === true) { @@ -4397,7 +3763,7 @@ class Order { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Order > invalidateShipmentCache \n ${res_error}`, + message: `Response Validation Warnings for platform > Order > getStateTransitionMap \n ${res_error}`, }); } } @@ -4406,21 +3772,21 @@ class Order { } /** - * @param {OrderPlatformValidator.JobDetailsParam} arg - Arg object + * @param {OrderPlatformValidator.GetTemplateParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name jobDetails + * @returns {Promise} - Success response + * @name getTemplate * @summary: - * @description: Fetches details for the job of the provided batch_id - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/jobDetails/). + * @description: Get the Excel file URL for the Template. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getTemplate/). */ - async jobDetails( - { batchId, requestHeaders } = { requestHeaders: {} }, + async getTemplate( + { templateName, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { - const { error } = OrderPlatformValidator.jobDetails().validate( + const { error } = OrderPlatformValidator.getTemplate().validate( { - batchId, + templateName, }, { abortEarly: false, allowUnknown: true } ); @@ -4429,16 +3795,16 @@ class Order { } // Showing warrnings if extra unknown parameters are found - const { error: warrning } = OrderPlatformValidator.jobDetails().validate( + const { error: warrning } = OrderPlatformValidator.getTemplate().validate( { - batchId, + templateName, }, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Order > jobDetails \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Order > getTemplate \n ${warrning}`, }); } @@ -4449,7 +3815,7 @@ class Order { const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/order-manage/v1.0/company/${this.config.companyId}/jobs/${batchId}`, + `/service/platform/order/v1.0/company/${this.config.companyId}/jobs/templates/${templateName}`, query_params, undefined, { ...xHeaders, ...requestHeaders }, @@ -4463,7 +3829,7 @@ class Order { const { error: res_error, - } = OrderPlatformModel.JobDetailsResponse().validate(responseData, { + } = OrderPlatformModel.TemplateDownloadResponse().validate(responseData, { abortEarly: false, allowUnknown: true, }); @@ -4474,7 +3840,7 @@ class Order { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Order > jobDetails \n ${res_error}`, + message: `Response Validation Warnings for platform > Order > getTemplate \n ${res_error}`, }); } } @@ -4483,21 +3849,22 @@ class Order { } /** - * @param {OrderPlatformValidator.OrderUpdateParam} arg - Arg object + * @param {OrderPlatformValidator.GetfiltersParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name orderUpdate + * @returns {Promise} - Success response + * @name getfilters * @summary: - * @description: Update Order - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/orderUpdate/). + * @description: Get Listing Filters - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getfilters/). */ - async orderUpdate( - { body, requestHeaders } = { requestHeaders: {} }, + async getfilters( + { view, groupEntity, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { - const { error } = OrderPlatformValidator.orderUpdate().validate( + const { error } = OrderPlatformValidator.getfilters().validate( { - body, + view, + groupEntity, }, { abortEarly: false, allowUnknown: true } ); @@ -4506,29 +3873,32 @@ class Order { } // Showing warrnings if extra unknown parameters are found - const { error: warrning } = OrderPlatformValidator.orderUpdate().validate( + const { error: warrning } = OrderPlatformValidator.getfilters().validate( { - body, + view, + groupEntity, }, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Order > orderUpdate \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Order > getfilters \n ${warrning}`, }); } const query_params = {}; + query_params["view"] = view; + query_params["group_entity"] = groupEntity; const xHeaders = {}; const response = await PlatformAPIClient.execute( this.config, - "put", - `/service/platform/order-manage/v1.0/company/${this.config.companyId}/order/validation`, + "get", + `/service/platform/order/v1.0/company/${this.config.companyId}/filter-listing`, query_params, - body, + undefined, { ...xHeaders, ...requestHeaders }, { responseHeaders } ); @@ -4540,7 +3910,7 @@ class Order { const { error: res_error, - } = OrderPlatformModel.ResponseDetail().validate(responseData, { + } = OrderPlatformModel.FiltersResponse().validate(responseData, { abortEarly: false, allowUnknown: true, }); @@ -4551,7 +3921,7 @@ class Order { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Order > orderUpdate \n ${res_error}`, + message: `Response Validation Warnings for platform > Order > getfilters \n ${res_error}`, }); } } @@ -4560,23 +3930,21 @@ class Order { } /** - * @param {OrderPlatformValidator.PostRefundConfigurationParam} arg - Arg object + * @param {OrderPlatformValidator.InvalidateShipmentCacheParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name postRefundConfiguration + * @returns {Promise} - + * Success response + * @name invalidateShipmentCache * @summary: - * @description: refund configuration. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/postRefundConfiguration/). + * @description: Invalidate shipment Cache - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/invalidateShipmentCache/). */ - async postRefundConfiguration( - { appId, body, requestHeaders } = { requestHeaders: {} }, + async invalidateShipmentCache( + { body, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { - const { error } = OrderPlatformValidator.postRefundConfiguration().validate( + const { error } = OrderPlatformValidator.invalidateShipmentCache().validate( { - appId, body, }, { abortEarly: false, allowUnknown: true } @@ -4588,9 +3956,8 @@ class Order { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = OrderPlatformValidator.postRefundConfiguration().validate( + } = OrderPlatformValidator.invalidateShipmentCache().validate( { - appId, body, }, { abortEarly: false, allowUnknown: false } @@ -4598,19 +3965,18 @@ class Order { if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Order > postRefundConfiguration \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Order > invalidateShipmentCache \n ${warrning}`, }); } const query_params = {}; - query_params["app_id"] = appId; const xHeaders = {}; const response = await PlatformAPIClient.execute( this.config, - "post", - `/service/platform/order-manage/v1.0/company/${this.config.companyId}/refund/config`, + "put", + `/service/platform/order-manage/v1.0/company/${this.config.companyId}/update-cache`, query_params, body, { ...xHeaders, ...requestHeaders }, @@ -4624,7 +3990,7 @@ class Order { const { error: res_error, - } = OrderPlatformModel.RefundStateConfigurationManualSchemaResponse().validate( + } = OrderPlatformModel.InvalidateShipmentCacheResponse().validate( responseData, { abortEarly: false, allowUnknown: true } ); @@ -4635,7 +4001,7 @@ class Order { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Order > postRefundConfiguration \n ${res_error}`, + message: `Response Validation Warnings for platform > Order > invalidateShipmentCache \n ${res_error}`, }); } } @@ -4644,26 +4010,21 @@ class Order { } /** - * @param {OrderPlatformValidator.PostRefundStateConfigurationParam} arg - Arg object + * @param {OrderPlatformValidator.JobDetailsParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name postRefundStateConfiguration + * @returns {Promise} - Success response + * @name jobDetails * @summary: - * @description: Refund State Configuration - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/postRefundStateConfiguration/). + * @description: Fetches details for the job of the provided batch_id - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/jobDetails/). */ - async postRefundStateConfiguration( - { appId, body, requestHeaders } = { requestHeaders: {} }, + async jobDetails( + { batchId, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { - const { - error, - } = OrderPlatformValidator.postRefundStateConfiguration().validate( + const { error } = OrderPlatformValidator.jobDetails().validate( { - appId, - body, + batchId, }, { abortEarly: false, allowUnknown: true } ); @@ -4672,33 +4033,29 @@ class Order { } // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = OrderPlatformValidator.postRefundStateConfiguration().validate( + const { error: warrning } = OrderPlatformValidator.jobDetails().validate( { - appId, - body, + batchId, }, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Order > postRefundStateConfiguration \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Order > jobDetails \n ${warrning}`, }); } const query_params = {}; - query_params["app_id"] = appId; const xHeaders = {}; const response = await PlatformAPIClient.execute( this.config, - "post", - `/service/platform/order-manage/v1.0/company/${this.config.companyId}/refund/states/config`, + "get", + `/service/platform/order-manage/v1.0/company/${this.config.companyId}/jobs/${batchId}`, query_params, - body, + undefined, { ...xHeaders, ...requestHeaders }, { responseHeaders } ); @@ -4710,10 +4067,10 @@ class Order { const { error: res_error, - } = OrderPlatformModel.PostRefundStateConfigurationResponse().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); + } = OrderPlatformModel.JobDetailsResponse().validate(responseData, { + abortEarly: false, + allowUnknown: true, + }); if (res_error) { if (this.config.options.strictResponseCheck === true) { @@ -4721,7 +4078,7 @@ class Order { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Order > postRefundStateConfiguration \n ${res_error}`, + message: `Response Validation Warnings for platform > Order > jobDetails \n ${res_error}`, }); } } @@ -4730,19 +4087,19 @@ class Order { } /** - * @param {OrderPlatformValidator.PostShipmentHistoryParam} arg - Arg object + * @param {OrderPlatformValidator.OrderUpdateParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name postShipmentHistory + * @returns {Promise} - Success response + * @name orderUpdate * @summary: - * @description: Post shipment history - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/postShipmentHistory/). + * @description: Update Order - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/orderUpdate/). */ - async postShipmentHistory( + async orderUpdate( { body, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { - const { error } = OrderPlatformValidator.postShipmentHistory().validate( + const { error } = OrderPlatformValidator.orderUpdate().validate( { body, }, @@ -4753,9 +4110,7 @@ class Order { } // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = OrderPlatformValidator.postShipmentHistory().validate( + const { error: warrning } = OrderPlatformValidator.orderUpdate().validate( { body, }, @@ -4764,7 +4119,7 @@ class Order { if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Order > postShipmentHistory \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Order > orderUpdate \n ${warrning}`, }); } @@ -4774,8 +4129,8 @@ class Order { const response = await PlatformAPIClient.execute( this.config, - "post", - `/service/platform/order-manage/v1.0/company/${this.config.companyId}/shipment/history`, + "put", + `/service/platform/order-manage/v1.0/company/${this.config.companyId}/order/validation`, query_params, body, { ...xHeaders, ...requestHeaders }, @@ -4789,7 +4144,7 @@ class Order { const { error: res_error, - } = OrderPlatformModel.ShipmentHistoryResponse().validate(responseData, { + } = OrderPlatformModel.ResponseDetail().validate(responseData, { abortEarly: false, allowUnknown: true, }); @@ -4800,7 +4155,7 @@ class Order { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Order > postShipmentHistory \n ${res_error}`, + message: `Response Validation Warnings for platform > Order > orderUpdate \n ${res_error}`, }); } } @@ -4809,20 +4164,19 @@ class Order { } /** - * @param {OrderPlatformValidator.PostuserviewsParam} arg - Arg object + * @param {OrderPlatformValidator.PostShipmentHistoryParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name postuserviews + * @returns {Promise} - Success response + * @name postShipmentHistory * @summary: - * @description: Add User views(User cross company views) - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/postuserviews/). + * @description: Post shipment history - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/postShipmentHistory/). */ - async postuserviews( + async postShipmentHistory( { body, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { - const { error } = OrderPlatformValidator.postuserviews().validate( + const { error } = OrderPlatformValidator.postShipmentHistory().validate( { body, }, @@ -4833,7 +4187,9 @@ class Order { } // Showing warrnings if extra unknown parameters are found - const { error: warrning } = OrderPlatformValidator.postuserviews().validate( + const { + error: warrning, + } = OrderPlatformValidator.postShipmentHistory().validate( { body, }, @@ -4842,7 +4198,7 @@ class Order { if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Order > postuserviews \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Order > postShipmentHistory \n ${warrning}`, }); } @@ -4853,7 +4209,7 @@ class Order { const response = await PlatformAPIClient.execute( this.config, "post", - `/service/platform/order/v1.0/company/${this.config.companyId}/views`, + `/service/platform/order-manage/v1.0/company/${this.config.companyId}/shipment/history`, query_params, body, { ...xHeaders, ...requestHeaders }, @@ -4867,7 +4223,7 @@ class Order { const { error: res_error, - } = OrderPlatformModel.CreateUpdateDeleteResponse().validate(responseData, { + } = OrderPlatformModel.ShipmentHistoryResponse().validate(responseData, { abortEarly: false, allowUnknown: true, }); @@ -4878,7 +4234,7 @@ class Order { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Order > postuserviews \n ${res_error}`, + message: `Response Validation Warnings for platform > Order > postShipmentHistory \n ${res_error}`, }); } } @@ -5742,86 +5098,6 @@ class Order { return response; } - /** - * @param {OrderPlatformValidator.UpdateuserviewsParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name updateuserviews - * @summary: - * @description: Update User views(User cross company views) - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/updateuserviews/). - */ - async updateuserviews( - { body, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { error } = OrderPlatformValidator.updateuserviews().validate( - { - body, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = OrderPlatformValidator.updateuserviews().validate( - { - body, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Order > updateuserviews \n ${warrning}`, - }); - } - - const query_params = {}; - - const xHeaders = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "put", - `/service/platform/order/v1.0/company/${this.config.companyId}/views`, - query_params, - body, - { ...xHeaders, ...requestHeaders }, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = OrderPlatformModel.CreateUpdateDeleteResponse().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Order > updateuserviews \n ${res_error}`, - }); - } - } - - return response; - } - /** * @param {OrderPlatformValidator.UploadConsentsParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` diff --git a/sdk/platform/Order/OrderPlatformModel.d.ts b/sdk/platform/Order/OrderPlatformModel.d.ts index 7fff388a3..4fa51e3fe 100644 --- a/sdk/platform/Order/OrderPlatformModel.d.ts +++ b/sdk/platform/Order/OrderPlatformModel.d.ts @@ -25,62 +25,6 @@ export = OrderPlatformModel; * @property {string} [error_trace] * @property {string} [error] */ -/** - * @typedef QuestionErrorResponse - * @property {string} [type] - * @property {string} [value] - * @property {Object} [message] - */ -/** - * @typedef PostRefundStateConfiguration - * @property {string[]} [prepaid] - * @property {string[]} [non_prepaid] - */ -/** - * @typedef PostRefundStateConfigurationResponse - * @property {string} [message] - * @property {boolean} [success] - */ -/** - * @typedef GetRefundStateConfigurationResponse - * @property {boolean} [success] - * @property {PostRefundStateConfiguration} [config] - */ -/** - * @typedef RefundStates - * @property {string} [state] - * @property {string} [display_name] - */ -/** - * @typedef GetRefundStates - * @property {boolean} [success] - * @property {RefundStates[]} [items] - * @property {number} [status] - */ -/** - * @typedef RefundStateManualWithoutMessage - * @property {boolean} [is_manual] - */ -/** - * @typedef RefundStateManualWithMessage - * @property {boolean} [is_manual] - * @property {string} [message] - */ -/** - * @typedef RefundStateManualWithMessageData - * @property {RefundStateManualWithMessage} [prepaid] - * @property {RefundStateManualWithMessage} [non_prepaid] - */ -/** - * @typedef RefundStateConfigurationManualSchema - * @property {RefundStateManualWithoutMessage} [prepaid] - * @property {RefundStateManualWithoutMessage} [non_prepaid] - */ -/** - * @typedef RefundStateConfigurationManualSchemaResponse - * @property {boolean} [success] - * @property {RefundStateManualWithMessageData} [data] - */ /** * @typedef StoreReassign * @property {number} store_id @@ -120,6 +64,7 @@ export = OrderPlatformModel; * @property {string} action_type - Expected action_type: [complete, * operational, financial] * @property {Entities[]} entities - Shipment/Entity + * @property {boolean} [resume_tasks_after_unlock] */ /** * @typedef OriginalFilter @@ -790,6 +735,7 @@ export = OrderPlatformModel; * @property {string} [primary_email] * @property {string} [address2] * @property {string} [country_code] + * @property {string} [country_iso_code] - Country Code in ISO 2 format (e.g. US, IN) */ /** * @typedef BillingInfo @@ -817,6 +763,7 @@ export = OrderPlatformModel; * @property {string} [address2] * @property {string} [landmark] * @property {string} [country_code] + * @property {string} [country_iso_code] - Country Code in ISO 2 format (e.g. US, IN) */ /** * @typedef UserInfo @@ -1464,270 +1411,30 @@ export = OrderPlatformModel; * @property {string} exception */ /** - * @typedef StateTransitionFlag - * @property {number} [id] - * @property {string} [name] - * @property {string} [display_name] - * @property {string} [description] - * @property {string} [type] - * @property {Object} [options] - * @property {string} [default_value] - */ -/** - * @typedef StateManagerFilter - * @property {number} [id] - * @property {string} [name] - * @property {string} [display_name] - * @property {string} [description] - * @property {string} [type] - * @property {Object} [options] - * @property {string} [default_value] - */ -/** - * @typedef StateManagerTask - * @property {number} [id] - * @property {string} [name] - * @property {string} [display_name] - * @property {string} [description] - * @property {string} [doc_string] - * @property {Object} [kwargs] - */ -/** - * @typedef PaginationInfo - * @property {number} [current] - * @property {boolean} [has_previous] - * @property {boolean} [has_next] - * @property {number} [total] - * @property {number} [item_total] - * @property {string} [type] - * @property {number} [size] - */ -/** - * @typedef StateManagerState - * @property {number} [id] - Unique identifier for the state - * @property {string} [state] - The name of the state - * @property {string} [platform_display_name] - The platform display name - * @property {boolean} [app_facing] - Whether state is for app facing or not - * @property {string} [app_display_name] - The application display name - * @property {boolean} [is_active] - Whether state is active or not - * @property {string} [state_type] - Type of the state - * @property {string} [journey_type] - Type of the journey - */ -/** - * @typedef PaginatedStates - * @property {StateManagerState[]} [items] - * @property {PaginationInfo} [page] - */ -/** - * @typedef RuleLaneConfigErrorResponse - * @property {string} [type] - * @property {string} [value] - * @property {Object} [message] - */ -/** - * @typedef QuestionSetItem - * @property {number} id - * @property {string} display_name - */ -/** - * @typedef Reason - * @property {number} id - * @property {string} display_name - * @property {boolean} remark_required - * @property {string[]} qc_type - * @property {QuestionSet[]} question_set - * @property {Object} meta - * @property {boolean} is_active - * @property {boolean} is_deleted - */ -/** - * @typedef RuleRequest - * @property {string} flow_type - * @property {string} name - * @property {string} [description] - * @property {string} entity_type - * @property {string} value - * @property {string} channel - * @property {string} rule_type - * @property {boolean} is_deleted - * @property {boolean} [restrict_forward_servicability] - * @property {Condition[]} conditions - * @property {RuleMeta} meta - * @property {boolean} qc_enabled - * @property {boolean} is_active - * @property {RuleAction} actions - */ -/** - * @typedef CreateRuleResponse - * @property {number} [id] - * @property {boolean} [success] - * @property {RuleError} [error] - */ -/** - * @typedef RuleResponse - * @property {string} [id] - * @property {RuleItem} [items] - * @property {boolean} [success] - * @property {RuleError} [error] - */ -/** - * @typedef RuleUpdateRequest - * @property {string} flow_type - * @property {string} name - * @property {string} [description] - * @property {string} entity_type - * @property {string} value - * @property {string} channel - * @property {string} rule_type - * @property {boolean} is_deleted - * @property {number} position - * @property {boolean} restrict_forward_servicability - * @property {Condition[]} conditions - * @property {RuleMeta} meta - * @property {boolean} qc_enabled - * @property {boolean} is_active - * @property {RuleAction} actions - */ -/** - * @typedef Condition - * @property {string} value - * @property {string} variable - * @property {string} operation - */ -/** - * @typedef RuleMeta - * @property {Department} [department] - * @property {L3} [l3] - */ -/** - * @typedef RuleAction - * @property {Reason[]} [reasons] - */ -/** - * @typedef Department - * @property {string} [id] - * @property {string} [display_name] - */ -/** - * @typedef L3 - * @property {string} [id] - * @property {string} [display_name] - */ -/** - * @typedef Error - * @property {string} [type] - * @property {string} [value] - * @property {string} [message] - * @property {boolean} [success] - */ -/** - * @typedef RuleUpdateResponse - * @property {string} [id] - * @property {boolean} [success] - * @property {RuleError} [error] - */ -/** - * @typedef DeleteRuleResponse - * @property {string} [id] + * @typedef GenerateInvoiceIDResponseData + * @property {string} [shipment_id] * @property {boolean} [success] - * @property {RuleError} [error] - */ -/** - * @typedef UpdateRulePositionRequest - * @property {number} rule_id - * @property {number} page_no - * @property {number} page_size - * @property {number} position - * @property {string} flow_type + * @property {string} [invoice_id] + * @property {boolean} [error_message] */ /** - * @typedef UpdateRulePositionResponse - * @property {PageInfo} [page] - * @property {RuleItem[]} [items] + * @typedef GenerateInvoiceIDErrorResponseData + * @property {string} [shipment_id] * @property {boolean} [success] - * @property {RuleError} [error] + * @property {boolean} [invoice_id] + * @property {string} [error_message] */ /** - * @typedef RuleItem - * @property {string} id - * @property {string} entity_type - * @property {string} value - * @property {string} channel - * @property {RuleAction} actions - * @property {boolean} qc_enabled - * @property {boolean} is_deleted - * @property {Condition} conditions - * @property {Meta} meta - * @property {string} rule_type - * @property {boolean} is_active - * @property {string} name - * @property {string} description - * @property {string} flow_type - * @property {number} position - */ -/** - * @typedef RuleParametersResponse - * @property {ParameterResponse[]} [response] + * @typedef GenerateInvoiceIDRequest + * @property {string[]} shipment_ids */ /** - * @typedef ParameterResponse - * @property {string} [text] - * @property {string} [value] + * @typedef GenerateInvoiceIDResponse + * @property {GenerateInvoiceIDResponseData[]} [items] */ /** - * @typedef RuleListRequest - * @property {number} [page_size] - * @property {number} [page_no] - * @property {string} [flow_type] - * @property {string} [lane_type] - */ -/** - * @typedef RuleListResponse - * @property {PageInfo} [page] - * @property {RuleListItem[]} [items] - * @property {boolean} [success] - * @property {RuleErrorResponse} [error] - */ -/** - * @typedef RuleListItem - * @property {string} id - * @property {string} entity_type - * @property {string} value - * @property {string} channel - * @property {RuleAction} actions - * @property {boolean} qc_enabled - * @property {boolean} is_deleted - * @property {Condition} conditions - * @property {Meta} meta - * @property {string} rule_type - * @property {boolean} is_active - * @property {string} name - * @property {string} description - * @property {string} flow_type - * @property {number} position - * @property {boolean} success - * @property {RuleError} error - */ -/** - * @typedef RuleError - * @property {string} type - * @property {string} value - * @property {string} message - */ -/** - * @typedef RuleErrorResponse - * @property {boolean} [success] - * @property {RuleError} [error] - */ -/** - * @typedef PageInfo - * @property {string} [type] - * @property {number} [current] - * @property {number} [size] - * @property {number} [item_total] - * @property {boolean} [has_previous] - * @property {boolean} [has_next] - * @property {number} [page_size] + * @typedef GenerateInvoiceIDErrorResponse + * @property {GenerateInvoiceIDErrorResponseData[]} [items] */ /** * @typedef Page @@ -1974,7 +1681,6 @@ export = OrderPlatformModel; * @property {string} [raw_meta] * @property {string} size * @property {boolean} [is_set] - * @property {string[]} [tags] */ /** * @typedef ShipmentListingBrand @@ -2401,7 +2107,6 @@ export = OrderPlatformModel; * @property {ReturnConfig} [return_config] * @property {string} [uid] * @property {string} [size] - * @property {string[]} [tags] */ /** * @typedef OrderBrandName @@ -2612,18 +2317,6 @@ export = OrderPlatformModel; * @property {string} [pan_no] * @property {string} [gstin] */ -/** - * @typedef PaymentInfoData - * @property {Object} [meta] - * @property {string} [mode] - * @property {string} [name] - * @property {number} [amount] - * @property {boolean} [collected] - * @property {string} [refund_by] - * @property {string} [collect_by] - * @property {string} [display_name] - * @property {string} [merchant_transaction_id] - */ /** * @typedef OrderData * @property {string} order_date @@ -2633,7 +2326,7 @@ export = OrderPlatformModel; * @property {string} fynd_order_id * @property {Prices} [prices] * @property {Object} [payment_methods] - * @property {PaymentInfoData[]} [payment_info] + * @property {Object[]} [payment_info] */ /** * @typedef OrderDetailsResponse @@ -2724,50 +2417,6 @@ export = OrderPlatformModel; * @property {Object} [applied_filters] * @property {Object} [page] */ -/** - * @typedef FilterOptions - * @property {string} label - * @property {string} value - * @property {string} [name] - */ -/** - * @typedef FiltersList - * @property {string} label - * @property {string} value - * @property {string} filter_type - * @property {string} type - * @property {string} [placeholder_text] - * @property {boolean} [required] - * @property {FilterOptions[]} options - */ -/** - * @typedef GlobalFiltersResponse - * @property {FiltersList[]} filters - * @property {number} company_id - * @property {string} [request_source] - * @property {string} show_in - */ -/** - * @typedef ViewDetails - * @property {string} [id] - * @property {string} [slug] - * @property {string} [text] - * @property {FiltersList[]} [filters] - */ -/** - * @typedef ParentViews - * @property {ViewDetails[]} [views] - * @property {string} [parent_slug] - * @property {string} [parent_text] - */ -/** - * @typedef UserViewsResponse - * @property {ParentViews[]} [parent_views] - */ -/** - * @typedef CreateUpdateDeleteResponse - * @property {string} [message] - */ /** * @typedef FiltersResponse * @property {AdvanceFilterInfo} [advance_filter] @@ -2791,6 +2440,13 @@ export = OrderPlatformModel; * @typedef BulkActionTemplateResponse * @property {BulkActionTemplate[]} [template_x_slug] - Allowed bulk action template slugs */ +/** + * @typedef Reason + * @property {string[]} [qc_type] + * @property {number} [id] + * @property {QuestionSet[]} [question_set] + * @property {string} [display_name] + */ /** * @typedef PlatformShipmentReasonsResponse * @property {Reason[]} [reasons] @@ -3152,10 +2808,15 @@ export = OrderPlatformModel; * @property {string} [file_name] * @property {string} [url] */ +/** + * @typedef Error + * @property {string} [message] + * @property {boolean} [success] + */ declare class OrderPlatformModel { } declare namespace OrderPlatformModel { - export { InvalidateShipmentCachePayload, InvalidateShipmentCacheNestedResponse, InvalidateShipmentCacheResponse, ErrorResponse, QuestionErrorResponse, PostRefundStateConfiguration, PostRefundStateConfigurationResponse, GetRefundStateConfigurationResponse, RefundStates, GetRefundStates, RefundStateManualWithoutMessage, RefundStateManualWithMessage, RefundStateManualWithMessageData, RefundStateConfigurationManualSchema, RefundStateConfigurationManualSchemaResponse, StoreReassign, StoreReassignResponse, Entities, UpdateShipmentLockPayload, OriginalFilter, Bags, CheckResponse, UpdateShipmentLockResponse, AnnouncementResponse, AnnouncementsResponse, BaseResponse, Click2CallResponse, ErrorDetail, ProductsReasonsFilters, ProductsReasonsData, ProductsReasons, EntityReasonData, EntitiesReasons, ReasonsData, Products, OrderItemDataUpdates, ProductsDataUpdatesFilters, ProductsDataUpdates, EntitiesDataUpdates, DataUpdates, ShipmentsRequest, StatuesRequest, UpdateShipmentStatusRequest, ShipmentsResponse, StatuesResponse, UpdateShipmentStatusResponseBody, OrderUser, OrderPriority, ArticleDetails, LocationDetails, ShipmentDetails, ShipmentConfig, ShipmentData, MarketPlacePdf, AffiliateBag, UserData, OrderInfo, AffiliateAppConfigMeta, AffiliateAppConfig, AffiliateInventoryArticleAssignmentConfig, AffiliateInventoryPaymentConfig, AffiliateInventoryStoreConfig, AffiliateInventoryOrderConfig, AffiliateInventoryLogisticsConfig, AffiliateInventoryConfig, AffiliateConfig, Affiliate, AffiliateStoreIdMapping, OrderConfig, CreateOrderPayload, CreateOrderResponse, DispatchManifest, SuccessResponse, ActionInfo, GetActionsResponse, HistoryReason, HistoryMeta, HistoryDict, ShipmentHistoryResponse, PostHistoryFilters, PostHistoryData, PostHistoryDict, PostShipmentHistory, SmsDataPayload, SendSmsPayload, OrderDetails, Meta, ShipmentDetail, OrderStatusData, OrderStatusResult, Dimension, UpdatePackagingDimensionsPayload, UpdatePackagingDimensionsResponse, Tax, Charge, LineItem, ProcessingDates, Shipment, ShippingInfo, BillingInfo, UserInfo, TaxInfo, PaymentMethod, PaymentInfo, CreateOrderAPI, CreateOrderErrorReponse, DpConfiguration, PaymentMethods, CreateChannelPaymentInfo, CreateChannelConfig, CreateChannelConfigData, CreateChannelConifgErrorResponse, CreateChannelConfigResponse, UploadConsent, PlatformOrderUpdate, ResponseDetail, FyndOrderIdList, OrderStatus, BagStateTransitionMap, RoleBaseStateTransitionMapping, FetchCreditBalanceRequestPayload, CreditBalanceInfo, FetchCreditBalanceResponsePayload, RefundModeConfigRequestPayload, RefundOption, RefundModeInfo, RefundModeConfigResponsePayload, AttachUserOtpData, AttachUserInfo, AttachOrderUser, AttachOrderUserResponse, SendUserMobileOTP, PointBlankOtpData, SendUserMobileOtpResponse, VerifyOtpData, VerifyMobileOTP, VerifyOtpResponseData, VerifyOtpResponse, BulkReportsDownloadRequest, BulkReportsDownloadResponse, BulkFailedResponse, BulkStateTransistionRequest, BulkStateTransistionResponse, ShipmentActionInfo, BulkActionListingData, BulkListinPage, BulkListingResponse, JobDetailsData, JobDetailsResponse, JobFailedResponse, ManifestPageInfo, ManifestItemDetails, ManifestShipmentListing, DateRange, Filters, ManifestFile, ManifestMediaUpdate, PDFMeta, TotalShipmentPricesCount, ManifestMeta, Manifest, ManifestList, ManifestDetails, FiltersRequest, ProcessManifest, ProcessManifestResponse, ProcessManifestItemResponse, FilterInfoOption, FiltersInfo, ManifestFiltersResponse, PageDetails, EInvoiceIrnDetails, EInvoiceErrorDetails, EInvoiceDetails, EInvoiceResponseData, EInvoiceRetry, EInvoiceRetryResponse, EInvoiceErrorInfo, EInvoiceErrorResponseData, EInvoiceErrorResponse, EInvoiceErrorResponseDetails, EInvoiceRetryShipmentData, CourierPartnerTrackingDetails, CourierPartnerTrackingResponse, LogsChannelDetails, LogPaymentDetails, FailedOrdersItem, FailedOrderLogs, FailedOrderLogDetails, StateTransitionFlag, StateManagerFilter, StateManagerTask, PaginationInfo, StateManagerState, PaginatedStates, RuleLaneConfigErrorResponse, QuestionSetItem, Reason, RuleRequest, CreateRuleResponse, RuleResponse, RuleUpdateRequest, Condition, RuleMeta, RuleAction, Department, L3, Error, RuleUpdateResponse, DeleteRuleResponse, UpdateRulePositionRequest, UpdateRulePositionResponse, RuleItem, RuleParametersResponse, ParameterResponse, RuleListRequest, RuleListResponse, RuleListItem, RuleError, RuleErrorResponse, PageInfo, Page, BagReasonMeta, QuestionSet, BagReasons, ShipmentBagReasons, ShipmentStatus, UserDataInfo, PlatformDeliveryAddress, ShipmentListingChannel, Prices, Identifier, FinancialBreakup, GSTDetailsData, BagStateMapper, BagStatusHistory, Dimensions, ReturnConfig, Weight, Article, ShipmentListingBrand, ReplacementDetails, AffiliateMeta, AffiliateBagDetails, PlatformArticleAttributes, PlatformItem, Dates, BagReturnableCancelableStatus, BagUnit, ShipmentItemFulFillingStore, Currency, OrderingCurrency, ConversionRate, CurrencyInfo, ShipmentItem, ShipmentInternalPlatformViewResponse, TrackingList, InvoiceInfo, OrderDetailsData, UserDetailsData, PhoneDetails, ContactDetails, CompanyDetails, OrderingStoreDetails, DPDetailsData, BuyerDetails, DebugInfo, EinvoiceInfo, Formatted, ShipmentTags, LockData, ShipmentTimeStamp, ShipmentMeta, PDFLinks, AffiliateDetails, BagConfigs, OrderBagArticle, OrderBrandName, AffiliateBagsDetails, BagPaymentMethods, DiscountRules, ItemCriterias, BuyRules, AppliedPromos, CurrentStatus, OrderBags, FulfillingStore, ShipmentPayments, ShipmentStatusData, ShipmentLockDetails, PlatformShipment, ShipmentInfoResponse, TaxDetails, PaymentInfoData, OrderData, OrderDetailsResponse, SubLane, SuperLane, LaneConfigResponse, PlatformBreakupValues, PlatformChannel, PlatformOrderItems, OrderListingResponse, PlatformTrack, PlatformShipmentTrack, AdvanceFilterInfo, FilterOptions, FiltersList, GlobalFiltersResponse, ViewDetails, ParentViews, UserViewsResponse, CreateUpdateDeleteResponse, FiltersResponse, URL, FileResponse, BulkActionTemplate, BulkActionTemplateResponse, PlatformShipmentReasonsResponse, ShipmentResponseReasons, ShipmentReasonsResponse, StoreAddress, EInvoicePortalDetails, StoreEinvoice, StoreEwaybill, StoreGstCredentials, Document, StoreDocuments, StoreMeta, Store, Brand, Attributes, Item, ArticleStatusDetails, Company, ShipmentGstDetails, DeliverySlotDetails, InvoiceDetails, UserDetails, WeightData, BagDetails, BagDetailsPlatformResponse, BagsPage, BagData, GetBagsPlatformResponse, GeneratePosOrderReceiptResponse, Templates, AllowedTemplatesResponse, TemplateDownloadResponse }; + export { InvalidateShipmentCachePayload, InvalidateShipmentCacheNestedResponse, InvalidateShipmentCacheResponse, ErrorResponse, StoreReassign, StoreReassignResponse, Entities, UpdateShipmentLockPayload, OriginalFilter, Bags, CheckResponse, UpdateShipmentLockResponse, AnnouncementResponse, AnnouncementsResponse, BaseResponse, Click2CallResponse, ErrorDetail, ProductsReasonsFilters, ProductsReasonsData, ProductsReasons, EntityReasonData, EntitiesReasons, ReasonsData, Products, OrderItemDataUpdates, ProductsDataUpdatesFilters, ProductsDataUpdates, EntitiesDataUpdates, DataUpdates, ShipmentsRequest, StatuesRequest, UpdateShipmentStatusRequest, ShipmentsResponse, StatuesResponse, UpdateShipmentStatusResponseBody, OrderUser, OrderPriority, ArticleDetails, LocationDetails, ShipmentDetails, ShipmentConfig, ShipmentData, MarketPlacePdf, AffiliateBag, UserData, OrderInfo, AffiliateAppConfigMeta, AffiliateAppConfig, AffiliateInventoryArticleAssignmentConfig, AffiliateInventoryPaymentConfig, AffiliateInventoryStoreConfig, AffiliateInventoryOrderConfig, AffiliateInventoryLogisticsConfig, AffiliateInventoryConfig, AffiliateConfig, Affiliate, AffiliateStoreIdMapping, OrderConfig, CreateOrderPayload, CreateOrderResponse, DispatchManifest, SuccessResponse, ActionInfo, GetActionsResponse, HistoryReason, HistoryMeta, HistoryDict, ShipmentHistoryResponse, PostHistoryFilters, PostHistoryData, PostHistoryDict, PostShipmentHistory, SmsDataPayload, SendSmsPayload, OrderDetails, Meta, ShipmentDetail, OrderStatusData, OrderStatusResult, Dimension, UpdatePackagingDimensionsPayload, UpdatePackagingDimensionsResponse, Tax, Charge, LineItem, ProcessingDates, Shipment, ShippingInfo, BillingInfo, UserInfo, TaxInfo, PaymentMethod, PaymentInfo, CreateOrderAPI, CreateOrderErrorReponse, DpConfiguration, PaymentMethods, CreateChannelPaymentInfo, CreateChannelConfig, CreateChannelConfigData, CreateChannelConifgErrorResponse, CreateChannelConfigResponse, UploadConsent, PlatformOrderUpdate, ResponseDetail, FyndOrderIdList, OrderStatus, BagStateTransitionMap, RoleBaseStateTransitionMapping, FetchCreditBalanceRequestPayload, CreditBalanceInfo, FetchCreditBalanceResponsePayload, RefundModeConfigRequestPayload, RefundOption, RefundModeInfo, RefundModeConfigResponsePayload, AttachUserOtpData, AttachUserInfo, AttachOrderUser, AttachOrderUserResponse, SendUserMobileOTP, PointBlankOtpData, SendUserMobileOtpResponse, VerifyOtpData, VerifyMobileOTP, VerifyOtpResponseData, VerifyOtpResponse, BulkReportsDownloadRequest, BulkReportsDownloadResponse, BulkFailedResponse, BulkStateTransistionRequest, BulkStateTransistionResponse, ShipmentActionInfo, BulkActionListingData, BulkListinPage, BulkListingResponse, JobDetailsData, JobDetailsResponse, JobFailedResponse, ManifestPageInfo, ManifestItemDetails, ManifestShipmentListing, DateRange, Filters, ManifestFile, ManifestMediaUpdate, PDFMeta, TotalShipmentPricesCount, ManifestMeta, Manifest, ManifestList, ManifestDetails, FiltersRequest, ProcessManifest, ProcessManifestResponse, ProcessManifestItemResponse, FilterInfoOption, FiltersInfo, ManifestFiltersResponse, PageDetails, EInvoiceIrnDetails, EInvoiceErrorDetails, EInvoiceDetails, EInvoiceResponseData, EInvoiceRetry, EInvoiceRetryResponse, EInvoiceErrorInfo, EInvoiceErrorResponseData, EInvoiceErrorResponse, EInvoiceErrorResponseDetails, EInvoiceRetryShipmentData, CourierPartnerTrackingDetails, CourierPartnerTrackingResponse, LogsChannelDetails, LogPaymentDetails, FailedOrdersItem, FailedOrderLogs, FailedOrderLogDetails, GenerateInvoiceIDResponseData, GenerateInvoiceIDErrorResponseData, GenerateInvoiceIDRequest, GenerateInvoiceIDResponse, GenerateInvoiceIDErrorResponse, Page, BagReasonMeta, QuestionSet, BagReasons, ShipmentBagReasons, ShipmentStatus, UserDataInfo, PlatformDeliveryAddress, ShipmentListingChannel, Prices, Identifier, FinancialBreakup, GSTDetailsData, BagStateMapper, BagStatusHistory, Dimensions, ReturnConfig, Weight, Article, ShipmentListingBrand, ReplacementDetails, AffiliateMeta, AffiliateBagDetails, PlatformArticleAttributes, PlatformItem, Dates, BagReturnableCancelableStatus, BagUnit, ShipmentItemFulFillingStore, Currency, OrderingCurrency, ConversionRate, CurrencyInfo, ShipmentItem, ShipmentInternalPlatformViewResponse, TrackingList, InvoiceInfo, OrderDetailsData, UserDetailsData, PhoneDetails, ContactDetails, CompanyDetails, OrderingStoreDetails, DPDetailsData, BuyerDetails, DebugInfo, EinvoiceInfo, Formatted, ShipmentTags, LockData, ShipmentTimeStamp, ShipmentMeta, PDFLinks, AffiliateDetails, BagConfigs, OrderBagArticle, OrderBrandName, AffiliateBagsDetails, BagPaymentMethods, DiscountRules, ItemCriterias, BuyRules, AppliedPromos, CurrentStatus, OrderBags, FulfillingStore, ShipmentPayments, ShipmentStatusData, ShipmentLockDetails, PlatformShipment, ShipmentInfoResponse, TaxDetails, OrderData, OrderDetailsResponse, SubLane, SuperLane, LaneConfigResponse, PlatformBreakupValues, PlatformChannel, PlatformOrderItems, OrderListingResponse, PlatformTrack, PlatformShipmentTrack, AdvanceFilterInfo, FiltersResponse, URL, FileResponse, BulkActionTemplate, BulkActionTemplateResponse, Reason, PlatformShipmentReasonsResponse, ShipmentResponseReasons, ShipmentReasonsResponse, StoreAddress, EInvoicePortalDetails, StoreEinvoice, StoreEwaybill, StoreGstCredentials, Document, StoreDocuments, StoreMeta, Store, Brand, Attributes, Item, ArticleStatusDetails, Company, ShipmentGstDetails, DeliverySlotDetails, InvoiceDetails, UserDetails, WeightData, BagDetails, BagDetailsPlatformResponse, BagsPage, BagData, GetBagsPlatformResponse, GeneratePosOrderReceiptResponse, Templates, AllowedTemplatesResponse, TemplateDownloadResponse, Error }; } /** @returns {InvalidateShipmentCachePayload} */ declare function InvalidateShipmentCachePayload(): InvalidateShipmentCachePayload; @@ -3196,73 +2857,6 @@ type ErrorResponse = { error_trace?: string; error?: string; }; -/** @returns {QuestionErrorResponse} */ -declare function QuestionErrorResponse(): QuestionErrorResponse; -type QuestionErrorResponse = { - type?: string; - value?: string; - message?: any; -}; -/** @returns {PostRefundStateConfiguration} */ -declare function PostRefundStateConfiguration(): PostRefundStateConfiguration; -type PostRefundStateConfiguration = { - prepaid?: string[]; - non_prepaid?: string[]; -}; -/** @returns {PostRefundStateConfigurationResponse} */ -declare function PostRefundStateConfigurationResponse(): PostRefundStateConfigurationResponse; -type PostRefundStateConfigurationResponse = { - message?: string; - success?: boolean; -}; -/** @returns {GetRefundStateConfigurationResponse} */ -declare function GetRefundStateConfigurationResponse(): GetRefundStateConfigurationResponse; -type GetRefundStateConfigurationResponse = { - success?: boolean; - config?: PostRefundStateConfiguration; -}; -/** @returns {RefundStates} */ -declare function RefundStates(): RefundStates; -type RefundStates = { - state?: string; - display_name?: string; -}; -/** @returns {GetRefundStates} */ -declare function GetRefundStates(): GetRefundStates; -type GetRefundStates = { - success?: boolean; - items?: RefundStates[]; - status?: number; -}; -/** @returns {RefundStateManualWithoutMessage} */ -declare function RefundStateManualWithoutMessage(): RefundStateManualWithoutMessage; -type RefundStateManualWithoutMessage = { - is_manual?: boolean; -}; -/** @returns {RefundStateManualWithMessage} */ -declare function RefundStateManualWithMessage(): RefundStateManualWithMessage; -type RefundStateManualWithMessage = { - is_manual?: boolean; - message?: string; -}; -/** @returns {RefundStateManualWithMessageData} */ -declare function RefundStateManualWithMessageData(): RefundStateManualWithMessageData; -type RefundStateManualWithMessageData = { - prepaid?: RefundStateManualWithMessage; - non_prepaid?: RefundStateManualWithMessage; -}; -/** @returns {RefundStateConfigurationManualSchema} */ -declare function RefundStateConfigurationManualSchema(): RefundStateConfigurationManualSchema; -type RefundStateConfigurationManualSchema = { - prepaid?: RefundStateManualWithoutMessage; - non_prepaid?: RefundStateManualWithoutMessage; -}; -/** @returns {RefundStateConfigurationManualSchemaResponse} */ -declare function RefundStateConfigurationManualSchemaResponse(): RefundStateConfigurationManualSchemaResponse; -type RefundStateConfigurationManualSchemaResponse = { - success?: boolean; - data?: RefundStateManualWithMessageData; -}; /** @returns {StoreReassign} */ declare function StoreReassign(): StoreReassign; type StoreReassign = { @@ -3336,6 +2930,7 @@ type UpdateShipmentLockPayload = { * - Shipment/Entity */ entities: Entities[]; + resume_tasks_after_unlock?: boolean; }; /** @returns {OriginalFilter} */ declare function OriginalFilter(): OriginalFilter; @@ -4257,6 +3852,10 @@ type ShippingInfo = { primary_email?: string; address2?: string; country_code?: string; + /** + * - Country Code in ISO 2 format (e.g. US, IN) + */ + country_iso_code?: string; }; /** @returns {BillingInfo} */ declare function BillingInfo(): BillingInfo; @@ -4285,6 +3884,10 @@ type BillingInfo = { address2?: string; landmark?: string; country_code?: string; + /** + * - Country Code in ISO 2 format (e.g. US, IN) + */ + country_iso_code?: string; }; /** @returns {UserInfo} */ declare function UserInfo(): UserInfo; @@ -5098,327 +4701,36 @@ type FailedOrderLogDetails = { error_trace: string; exception: string; }; -/** @returns {StateTransitionFlag} */ -declare function StateTransitionFlag(): StateTransitionFlag; -type StateTransitionFlag = { - id?: number; - name?: string; - display_name?: string; - description?: string; - type?: string; - options?: any; - default_value?: string; -}; -/** @returns {StateManagerFilter} */ -declare function StateManagerFilter(): StateManagerFilter; -type StateManagerFilter = { - id?: number; - name?: string; - display_name?: string; - description?: string; - type?: string; - options?: any; - default_value?: string; -}; -/** @returns {StateManagerTask} */ -declare function StateManagerTask(): StateManagerTask; -type StateManagerTask = { - id?: number; - name?: string; - display_name?: string; - description?: string; - doc_string?: string; - kwargs?: any; -}; -/** @returns {PaginationInfo} */ -declare function PaginationInfo(): PaginationInfo; -type PaginationInfo = { - current?: number; - has_previous?: boolean; - has_next?: boolean; - total?: number; - item_total?: number; - type?: string; - size?: number; -}; -/** @returns {StateManagerState} */ -declare function StateManagerState(): StateManagerState; -type StateManagerState = { - /** - * - Unique identifier for the state - */ - id?: number; - /** - * - The name of the state - */ - state?: string; - /** - * - The platform display name - */ - platform_display_name?: string; - /** - * - Whether state is for app facing or not - */ - app_facing?: boolean; - /** - * - The application display name - */ - app_display_name?: string; - /** - * - Whether state is active or not - */ - is_active?: boolean; - /** - * - Type of the state - */ - state_type?: string; - /** - * - Type of the journey - */ - journey_type?: string; -}; -/** @returns {PaginatedStates} */ -declare function PaginatedStates(): PaginatedStates; -type PaginatedStates = { - items?: StateManagerState[]; - page?: PaginationInfo; -}; -/** @returns {RuleLaneConfigErrorResponse} */ -declare function RuleLaneConfigErrorResponse(): RuleLaneConfigErrorResponse; -type RuleLaneConfigErrorResponse = { - type?: string; - value?: string; - message?: any; -}; -/** @returns {QuestionSetItem} */ -declare function QuestionSetItem(): QuestionSetItem; -type QuestionSetItem = { - id: number; - display_name: string; -}; -/** @returns {Reason} */ -declare function Reason(): Reason; -type Reason = { - id: number; - display_name: string; - remark_required: boolean; - qc_type: string[]; - question_set: QuestionSet[]; - meta: any; - is_active: boolean; - is_deleted: boolean; -}; -/** @returns {RuleRequest} */ -declare function RuleRequest(): RuleRequest; -type RuleRequest = { - flow_type: string; - name: string; - description?: string; - entity_type: string; - value: string; - channel: string; - rule_type: string; - is_deleted: boolean; - restrict_forward_servicability?: boolean; - conditions: Condition[]; - meta: RuleMeta; - qc_enabled: boolean; - is_active: boolean; - actions: RuleAction; -}; -/** @returns {CreateRuleResponse} */ -declare function CreateRuleResponse(): CreateRuleResponse; -type CreateRuleResponse = { - id?: number; - success?: boolean; - error?: RuleError; -}; -/** @returns {RuleResponse} */ -declare function RuleResponse(): RuleResponse; -type RuleResponse = { - id?: string; - items?: RuleItem; - success?: boolean; - error?: RuleError; -}; -/** @returns {RuleUpdateRequest} */ -declare function RuleUpdateRequest(): RuleUpdateRequest; -type RuleUpdateRequest = { - flow_type: string; - name: string; - description?: string; - entity_type: string; - value: string; - channel: string; - rule_type: string; - is_deleted: boolean; - position: number; - restrict_forward_servicability: boolean; - conditions: Condition[]; - meta: RuleMeta; - qc_enabled: boolean; - is_active: boolean; - actions: RuleAction; -}; -/** @returns {Condition} */ -declare function Condition(): Condition; -type Condition = { - value: string; - variable: string; - operation: string; -}; -/** @returns {RuleMeta} */ -declare function RuleMeta(): RuleMeta; -type RuleMeta = { - department?: Department; - l3?: L3; -}; -/** @returns {RuleAction} */ -declare function RuleAction(): RuleAction; -type RuleAction = { - reasons?: Reason[]; -}; -/** @returns {Department} */ -declare function Department(): Department; -type Department = { - id?: string; - display_name?: string; -}; -/** @returns {L3} */ -declare function L3(): L3; -type L3 = { - id?: string; - display_name?: string; -}; -/** @returns {Error} */ -declare function Error(): Error; -type Error = { - type?: string; - value?: string; - message?: string; - success?: boolean; -}; -/** @returns {RuleUpdateResponse} */ -declare function RuleUpdateResponse(): RuleUpdateResponse; -type RuleUpdateResponse = { - id?: string; +/** @returns {GenerateInvoiceIDResponseData} */ +declare function GenerateInvoiceIDResponseData(): GenerateInvoiceIDResponseData; +type GenerateInvoiceIDResponseData = { + shipment_id?: string; success?: boolean; - error?: RuleError; + invoice_id?: string; + error_message?: boolean; }; -/** @returns {DeleteRuleResponse} */ -declare function DeleteRuleResponse(): DeleteRuleResponse; -type DeleteRuleResponse = { - id?: string; - success?: boolean; - error?: RuleError; -}; -/** @returns {UpdateRulePositionRequest} */ -declare function UpdateRulePositionRequest(): UpdateRulePositionRequest; -type UpdateRulePositionRequest = { - rule_id: number; - page_no: number; - page_size: number; - position: number; - flow_type: string; -}; -/** @returns {UpdateRulePositionResponse} */ -declare function UpdateRulePositionResponse(): UpdateRulePositionResponse; -type UpdateRulePositionResponse = { - page?: PageInfo; - items?: RuleItem[]; +/** @returns {GenerateInvoiceIDErrorResponseData} */ +declare function GenerateInvoiceIDErrorResponseData(): GenerateInvoiceIDErrorResponseData; +type GenerateInvoiceIDErrorResponseData = { + shipment_id?: string; success?: boolean; - error?: RuleError; + invoice_id?: boolean; + error_message?: string; }; -/** @returns {RuleItem} */ -declare function RuleItem(): RuleItem; -type RuleItem = { - id: string; - entity_type: string; - value: string; - channel: string; - actions: RuleAction; - qc_enabled: boolean; - is_deleted: boolean; - conditions: Condition; - meta: Meta; - rule_type: string; - is_active: boolean; - name: string; - description: string; - flow_type: string; - position: number; +/** @returns {GenerateInvoiceIDRequest} */ +declare function GenerateInvoiceIDRequest(): GenerateInvoiceIDRequest; +type GenerateInvoiceIDRequest = { + shipment_ids: string[]; }; -/** @returns {RuleParametersResponse} */ -declare function RuleParametersResponse(): RuleParametersResponse; -type RuleParametersResponse = { - response?: ParameterResponse[]; +/** @returns {GenerateInvoiceIDResponse} */ +declare function GenerateInvoiceIDResponse(): GenerateInvoiceIDResponse; +type GenerateInvoiceIDResponse = { + items?: GenerateInvoiceIDResponseData[]; }; -/** @returns {ParameterResponse} */ -declare function ParameterResponse(): ParameterResponse; -type ParameterResponse = { - text?: string; - value?: string; -}; -/** @returns {RuleListRequest} */ -declare function RuleListRequest(): RuleListRequest; -type RuleListRequest = { - page_size?: number; - page_no?: number; - flow_type?: string; - lane_type?: string; -}; -/** @returns {RuleListResponse} */ -declare function RuleListResponse(): RuleListResponse; -type RuleListResponse = { - page?: PageInfo; - items?: RuleListItem[]; - success?: boolean; - error?: RuleErrorResponse; -}; -/** @returns {RuleListItem} */ -declare function RuleListItem(): RuleListItem; -type RuleListItem = { - id: string; - entity_type: string; - value: string; - channel: string; - actions: RuleAction; - qc_enabled: boolean; - is_deleted: boolean; - conditions: Condition; - meta: Meta; - rule_type: string; - is_active: boolean; - name: string; - description: string; - flow_type: string; - position: number; - success: boolean; - error: RuleError; -}; -/** @returns {RuleError} */ -declare function RuleError(): RuleError; -type RuleError = { - type: string; - value: string; - message: string; -}; -/** @returns {RuleErrorResponse} */ -declare function RuleErrorResponse(): RuleErrorResponse; -type RuleErrorResponse = { - success?: boolean; - error?: RuleError; -}; -/** @returns {PageInfo} */ -declare function PageInfo(): PageInfo; -type PageInfo = { - type?: string; - current?: number; - size?: number; - item_total?: number; - has_previous?: boolean; - has_next?: boolean; - page_size?: number; +/** @returns {GenerateInvoiceIDErrorResponse} */ +declare function GenerateInvoiceIDErrorResponse(): GenerateInvoiceIDErrorResponse; +type GenerateInvoiceIDErrorResponse = { + items?: GenerateInvoiceIDErrorResponseData[]; }; /** @returns {Page} */ declare function Page(): Page; @@ -5684,7 +4996,6 @@ type Article = { raw_meta?: string; size: string; is_set?: boolean; - tags?: string[]; }; /** @returns {ShipmentListingBrand} */ declare function ShipmentListingBrand(): ShipmentListingBrand; @@ -6148,7 +5459,6 @@ type OrderBagArticle = { return_config?: ReturnConfig; uid?: string; size?: string; - tags?: string[]; }; /** @returns {OrderBrandName} */ declare function OrderBrandName(): OrderBrandName; @@ -6375,19 +5685,6 @@ type TaxDetails = { pan_no?: string; gstin?: string; }; -/** @returns {PaymentInfoData} */ -declare function PaymentInfoData(): PaymentInfoData; -type PaymentInfoData = { - meta?: any; - mode?: string; - name?: string; - amount?: number; - collected?: boolean; - refund_by?: string; - collect_by?: string; - display_name?: string; - merchant_transaction_id?: string; -}; /** @returns {OrderData} */ declare function OrderData(): OrderData; type OrderData = { @@ -6398,7 +5695,7 @@ type OrderData = { fynd_order_id: string; prices?: Prices; payment_methods?: any; - payment_info?: PaymentInfoData[]; + payment_info?: any[]; }; /** @returns {OrderDetailsResponse} */ declare function OrderDetailsResponse(): OrderDetailsResponse; @@ -6500,57 +5797,6 @@ type AdvanceFilterInfo = { applied_filters?: any; page?: any; }; -/** @returns {FilterOptions} */ -declare function FilterOptions(): FilterOptions; -type FilterOptions = { - label: string; - value: string; - name?: string; -}; -/** @returns {FiltersList} */ -declare function FiltersList(): FiltersList; -type FiltersList = { - label: string; - value: string; - filter_type: string; - type: string; - placeholder_text?: string; - required?: boolean; - options: FilterOptions[]; -}; -/** @returns {GlobalFiltersResponse} */ -declare function GlobalFiltersResponse(): GlobalFiltersResponse; -type GlobalFiltersResponse = { - filters: FiltersList[]; - company_id: number; - request_source?: string; - show_in: string; -}; -/** @returns {ViewDetails} */ -declare function ViewDetails(): ViewDetails; -type ViewDetails = { - id?: string; - slug?: string; - text?: string; - filters?: FiltersList[]; -}; -/** @returns {ParentViews} */ -declare function ParentViews(): ParentViews; -type ParentViews = { - views?: ViewDetails[]; - parent_slug?: string; - parent_text?: string; -}; -/** @returns {UserViewsResponse} */ -declare function UserViewsResponse(): UserViewsResponse; -type UserViewsResponse = { - parent_views?: ParentViews[]; -}; -/** @returns {CreateUpdateDeleteResponse} */ -declare function CreateUpdateDeleteResponse(): CreateUpdateDeleteResponse; -type CreateUpdateDeleteResponse = { - message?: string; -}; /** @returns {FiltersResponse} */ declare function FiltersResponse(): FiltersResponse; type FiltersResponse = { @@ -6585,6 +5831,14 @@ type BulkActionTemplateResponse = { */ template_x_slug?: BulkActionTemplate[]; }; +/** @returns {Reason} */ +declare function Reason(): Reason; +type Reason = { + qc_type?: string[]; + id?: number; + question_set?: QuestionSet[]; + display_name?: string; +}; /** @returns {PlatformShipmentReasonsResponse} */ declare function PlatformShipmentReasonsResponse(): PlatformShipmentReasonsResponse; type PlatformShipmentReasonsResponse = { @@ -6977,3 +6231,9 @@ type TemplateDownloadResponse = { file_name?: string; url?: string; }; +/** @returns {Error} */ +declare function Error(): Error; +type Error = { + message?: string; + success?: boolean; +}; diff --git a/sdk/platform/Order/OrderPlatformModel.js b/sdk/platform/Order/OrderPlatformModel.js index 14dbb7178..8206f2ac7 100644 --- a/sdk/platform/Order/OrderPlatformModel.js +++ b/sdk/platform/Order/OrderPlatformModel.js @@ -30,73 +30,6 @@ const Joi = require("joi"); * @property {string} [error] */ -/** - * @typedef QuestionErrorResponse - * @property {string} [type] - * @property {string} [value] - * @property {Object} [message] - */ - -/** - * @typedef PostRefundStateConfiguration - * @property {string[]} [prepaid] - * @property {string[]} [non_prepaid] - */ - -/** - * @typedef PostRefundStateConfigurationResponse - * @property {string} [message] - * @property {boolean} [success] - */ - -/** - * @typedef GetRefundStateConfigurationResponse - * @property {boolean} [success] - * @property {PostRefundStateConfiguration} [config] - */ - -/** - * @typedef RefundStates - * @property {string} [state] - * @property {string} [display_name] - */ - -/** - * @typedef GetRefundStates - * @property {boolean} [success] - * @property {RefundStates[]} [items] - * @property {number} [status] - */ - -/** - * @typedef RefundStateManualWithoutMessage - * @property {boolean} [is_manual] - */ - -/** - * @typedef RefundStateManualWithMessage - * @property {boolean} [is_manual] - * @property {string} [message] - */ - -/** - * @typedef RefundStateManualWithMessageData - * @property {RefundStateManualWithMessage} [prepaid] - * @property {RefundStateManualWithMessage} [non_prepaid] - */ - -/** - * @typedef RefundStateConfigurationManualSchema - * @property {RefundStateManualWithoutMessage} [prepaid] - * @property {RefundStateManualWithoutMessage} [non_prepaid] - */ - -/** - * @typedef RefundStateConfigurationManualSchemaResponse - * @property {boolean} [success] - * @property {RefundStateManualWithMessageData} [data] - */ - /** * @typedef StoreReassign * @property {number} store_id @@ -139,6 +72,7 @@ const Joi = require("joi"); * @property {string} action_type - Expected action_type: [complete, * operational, financial] * @property {Entities[]} entities - Shipment/Entity + * @property {boolean} [resume_tasks_after_unlock] */ /** @@ -889,6 +823,7 @@ const Joi = require("joi"); * @property {string} [primary_email] * @property {string} [address2] * @property {string} [country_code] + * @property {string} [country_iso_code] - Country Code in ISO 2 format (e.g. US, IN) */ /** @@ -917,6 +852,7 @@ const Joi = require("joi"); * @property {string} [address2] * @property {string} [landmark] * @property {string} [country_code] + * @property {string} [country_iso_code] - Country Code in ISO 2 format (e.g. US, IN) */ /** @@ -1654,301 +1590,34 @@ const Joi = require("joi"); */ /** - * @typedef StateTransitionFlag - * @property {number} [id] - * @property {string} [name] - * @property {string} [display_name] - * @property {string} [description] - * @property {string} [type] - * @property {Object} [options] - * @property {string} [default_value] - */ - -/** - * @typedef StateManagerFilter - * @property {number} [id] - * @property {string} [name] - * @property {string} [display_name] - * @property {string} [description] - * @property {string} [type] - * @property {Object} [options] - * @property {string} [default_value] - */ - -/** - * @typedef StateManagerTask - * @property {number} [id] - * @property {string} [name] - * @property {string} [display_name] - * @property {string} [description] - * @property {string} [doc_string] - * @property {Object} [kwargs] - */ - -/** - * @typedef PaginationInfo - * @property {number} [current] - * @property {boolean} [has_previous] - * @property {boolean} [has_next] - * @property {number} [total] - * @property {number} [item_total] - * @property {string} [type] - * @property {number} [size] - */ - -/** - * @typedef StateManagerState - * @property {number} [id] - Unique identifier for the state - * @property {string} [state] - The name of the state - * @property {string} [platform_display_name] - The platform display name - * @property {boolean} [app_facing] - Whether state is for app facing or not - * @property {string} [app_display_name] - The application display name - * @property {boolean} [is_active] - Whether state is active or not - * @property {string} [state_type] - Type of the state - * @property {string} [journey_type] - Type of the journey - */ - -/** - * @typedef PaginatedStates - * @property {StateManagerState[]} [items] - * @property {PaginationInfo} [page] - */ - -/** - * @typedef RuleLaneConfigErrorResponse - * @property {string} [type] - * @property {string} [value] - * @property {Object} [message] - */ - -/** - * @typedef QuestionSetItem - * @property {number} id - * @property {string} display_name - */ - -/** - * @typedef Reason - * @property {number} id - * @property {string} display_name - * @property {boolean} remark_required - * @property {string[]} qc_type - * @property {QuestionSet[]} question_set - * @property {Object} meta - * @property {boolean} is_active - * @property {boolean} is_deleted - */ - -/** - * @typedef RuleRequest - * @property {string} flow_type - * @property {string} name - * @property {string} [description] - * @property {string} entity_type - * @property {string} value - * @property {string} channel - * @property {string} rule_type - * @property {boolean} is_deleted - * @property {boolean} [restrict_forward_servicability] - * @property {Condition[]} conditions - * @property {RuleMeta} meta - * @property {boolean} qc_enabled - * @property {boolean} is_active - * @property {RuleAction} actions - */ - -/** - * @typedef CreateRuleResponse - * @property {number} [id] - * @property {boolean} [success] - * @property {RuleError} [error] - */ - -/** - * @typedef RuleResponse - * @property {string} [id] - * @property {RuleItem} [items] - * @property {boolean} [success] - * @property {RuleError} [error] - */ - -/** - * @typedef RuleUpdateRequest - * @property {string} flow_type - * @property {string} name - * @property {string} [description] - * @property {string} entity_type - * @property {string} value - * @property {string} channel - * @property {string} rule_type - * @property {boolean} is_deleted - * @property {number} position - * @property {boolean} restrict_forward_servicability - * @property {Condition[]} conditions - * @property {RuleMeta} meta - * @property {boolean} qc_enabled - * @property {boolean} is_active - * @property {RuleAction} actions - */ - -/** - * @typedef Condition - * @property {string} value - * @property {string} variable - * @property {string} operation - */ - -/** - * @typedef RuleMeta - * @property {Department} [department] - * @property {L3} [l3] - */ - -/** - * @typedef RuleAction - * @property {Reason[]} [reasons] - */ - -/** - * @typedef Department - * @property {string} [id] - * @property {string} [display_name] - */ - -/** - * @typedef L3 - * @property {string} [id] - * @property {string} [display_name] - */ - -/** - * @typedef Error - * @property {string} [type] - * @property {string} [value] - * @property {string} [message] - * @property {boolean} [success] - */ - -/** - * @typedef RuleUpdateResponse - * @property {string} [id] - * @property {boolean} [success] - * @property {RuleError} [error] - */ - -/** - * @typedef DeleteRuleResponse - * @property {string} [id] - * @property {boolean} [success] - * @property {RuleError} [error] - */ - -/** - * @typedef UpdateRulePositionRequest - * @property {number} rule_id - * @property {number} page_no - * @property {number} page_size - * @property {number} position - * @property {string} flow_type - */ - -/** - * @typedef UpdateRulePositionResponse - * @property {PageInfo} [page] - * @property {RuleItem[]} [items] + * @typedef GenerateInvoiceIDResponseData + * @property {string} [shipment_id] * @property {boolean} [success] - * @property {RuleError} [error] - */ - -/** - * @typedef RuleItem - * @property {string} id - * @property {string} entity_type - * @property {string} value - * @property {string} channel - * @property {RuleAction} actions - * @property {boolean} qc_enabled - * @property {boolean} is_deleted - * @property {Condition} conditions - * @property {Meta} meta - * @property {string} rule_type - * @property {boolean} is_active - * @property {string} name - * @property {string} description - * @property {string} flow_type - * @property {number} position - */ - -/** - * @typedef RuleParametersResponse - * @property {ParameterResponse[]} [response] - */ - -/** - * @typedef ParameterResponse - * @property {string} [text] - * @property {string} [value] - */ - -/** - * @typedef RuleListRequest - * @property {number} [page_size] - * @property {number} [page_no] - * @property {string} [flow_type] - * @property {string} [lane_type] + * @property {string} [invoice_id] + * @property {boolean} [error_message] */ /** - * @typedef RuleListResponse - * @property {PageInfo} [page] - * @property {RuleListItem[]} [items] + * @typedef GenerateInvoiceIDErrorResponseData + * @property {string} [shipment_id] * @property {boolean} [success] - * @property {RuleErrorResponse} [error] - */ - -/** - * @typedef RuleListItem - * @property {string} id - * @property {string} entity_type - * @property {string} value - * @property {string} channel - * @property {RuleAction} actions - * @property {boolean} qc_enabled - * @property {boolean} is_deleted - * @property {Condition} conditions - * @property {Meta} meta - * @property {string} rule_type - * @property {boolean} is_active - * @property {string} name - * @property {string} description - * @property {string} flow_type - * @property {number} position - * @property {boolean} success - * @property {RuleError} error + * @property {boolean} [invoice_id] + * @property {string} [error_message] */ /** - * @typedef RuleError - * @property {string} type - * @property {string} value - * @property {string} message + * @typedef GenerateInvoiceIDRequest + * @property {string[]} shipment_ids */ /** - * @typedef RuleErrorResponse - * @property {boolean} [success] - * @property {RuleError} [error] + * @typedef GenerateInvoiceIDResponse + * @property {GenerateInvoiceIDResponseData[]} [items] */ /** - * @typedef PageInfo - * @property {string} [type] - * @property {number} [current] - * @property {number} [size] - * @property {number} [item_total] - * @property {boolean} [has_previous] - * @property {boolean} [has_next] - * @property {number} [page_size] + * @typedef GenerateInvoiceIDErrorResponse + * @property {GenerateInvoiceIDErrorResponseData[]} [items] */ /** @@ -2214,7 +1883,6 @@ const Joi = require("joi"); * @property {string} [raw_meta] * @property {string} size * @property {boolean} [is_set] - * @property {string[]} [tags] */ /** @@ -2678,7 +2346,6 @@ const Joi = require("joi"); * @property {ReturnConfig} [return_config] * @property {string} [uid] * @property {string} [size] - * @property {string[]} [tags] */ /** @@ -2906,19 +2573,6 @@ const Joi = require("joi"); * @property {string} [gstin] */ -/** - * @typedef PaymentInfoData - * @property {Object} [meta] - * @property {string} [mode] - * @property {string} [name] - * @property {number} [amount] - * @property {boolean} [collected] - * @property {string} [refund_by] - * @property {string} [collect_by] - * @property {string} [display_name] - * @property {string} [merchant_transaction_id] - */ - /** * @typedef OrderData * @property {string} order_date @@ -2928,7 +2582,7 @@ const Joi = require("joi"); * @property {string} fynd_order_id * @property {Prices} [prices] * @property {Object} [payment_methods] - * @property {PaymentInfoData[]} [payment_info] + * @property {Object[]} [payment_info] */ /** @@ -3031,57 +2685,6 @@ const Joi = require("joi"); * @property {Object} [page] */ -/** - * @typedef FilterOptions - * @property {string} label - * @property {string} value - * @property {string} [name] - */ - -/** - * @typedef FiltersList - * @property {string} label - * @property {string} value - * @property {string} filter_type - * @property {string} type - * @property {string} [placeholder_text] - * @property {boolean} [required] - * @property {FilterOptions[]} options - */ - -/** - * @typedef GlobalFiltersResponse - * @property {FiltersList[]} filters - * @property {number} company_id - * @property {string} [request_source] - * @property {string} show_in - */ - -/** - * @typedef ViewDetails - * @property {string} [id] - * @property {string} [slug] - * @property {string} [text] - * @property {FiltersList[]} [filters] - */ - -/** - * @typedef ParentViews - * @property {ViewDetails[]} [views] - * @property {string} [parent_slug] - * @property {string} [parent_text] - */ - -/** - * @typedef UserViewsResponse - * @property {ParentViews[]} [parent_views] - */ - -/** - * @typedef CreateUpdateDeleteResponse - * @property {string} [message] - */ - /** * @typedef FiltersResponse * @property {AdvanceFilterInfo} [advance_filter] @@ -3110,6 +2713,14 @@ const Joi = require("joi"); * @property {BulkActionTemplate[]} [template_x_slug] - Allowed bulk action template slugs */ +/** + * @typedef Reason + * @property {string[]} [qc_type] + * @property {number} [id] + * @property {QuestionSet[]} [question_set] + * @property {string} [display_name] + */ + /** * @typedef PlatformShipmentReasonsResponse * @property {Reason[]} [reasons] @@ -3502,6 +3113,12 @@ const Joi = require("joi"); * @property {string} [url] */ +/** + * @typedef Error + * @property {string} [message] + * @property {boolean} [success] + */ + class OrderPlatformModel { /** @returns {InvalidateShipmentCachePayload} */ static InvalidateShipmentCachePayload() { @@ -3542,95 +3159,6 @@ class OrderPlatformModel { }); } - /** @returns {QuestionErrorResponse} */ - static QuestionErrorResponse() { - return Joi.object({ - type: Joi.string().allow("").allow(null), - value: Joi.string().allow("").allow(null), - message: Joi.any(), - }); - } - - /** @returns {PostRefundStateConfiguration} */ - static PostRefundStateConfiguration() { - return Joi.object({ - prepaid: Joi.array().items(Joi.string().allow("")), - non_prepaid: Joi.array().items(Joi.string().allow("")), - }); - } - - /** @returns {PostRefundStateConfigurationResponse} */ - static PostRefundStateConfigurationResponse() { - return Joi.object({ - message: Joi.string().allow(""), - success: Joi.boolean(), - }); - } - - /** @returns {GetRefundStateConfigurationResponse} */ - static GetRefundStateConfigurationResponse() { - return Joi.object({ - success: Joi.boolean(), - config: OrderPlatformModel.PostRefundStateConfiguration(), - }); - } - - /** @returns {RefundStates} */ - static RefundStates() { - return Joi.object({ - state: Joi.string().allow(""), - display_name: Joi.string().allow(""), - }); - } - - /** @returns {GetRefundStates} */ - static GetRefundStates() { - return Joi.object({ - success: Joi.boolean(), - items: Joi.array().items(OrderPlatformModel.RefundStates()), - status: Joi.number(), - }); - } - - /** @returns {RefundStateManualWithoutMessage} */ - static RefundStateManualWithoutMessage() { - return Joi.object({ - is_manual: Joi.boolean(), - }); - } - - /** @returns {RefundStateManualWithMessage} */ - static RefundStateManualWithMessage() { - return Joi.object({ - is_manual: Joi.boolean(), - message: Joi.string().allow(""), - }); - } - - /** @returns {RefundStateManualWithMessageData} */ - static RefundStateManualWithMessageData() { - return Joi.object({ - prepaid: OrderPlatformModel.RefundStateManualWithMessage(), - non_prepaid: OrderPlatformModel.RefundStateManualWithMessage(), - }); - } - - /** @returns {RefundStateConfigurationManualSchema} */ - static RefundStateConfigurationManualSchema() { - return Joi.object({ - prepaid: OrderPlatformModel.RefundStateManualWithoutMessage(), - non_prepaid: OrderPlatformModel.RefundStateManualWithoutMessage(), - }); - } - - /** @returns {RefundStateConfigurationManualSchemaResponse} */ - static RefundStateConfigurationManualSchemaResponse() { - return Joi.object({ - success: Joi.boolean(), - data: OrderPlatformModel.RefundStateManualWithMessageData(), - }); - } - /** @returns {StoreReassign} */ static StoreReassign() { return Joi.object({ @@ -3674,6 +3202,7 @@ class OrderPlatformModel { action: Joi.string().allow("").required(), action_type: Joi.string().allow("").required(), entities: Joi.array().items(OrderPlatformModel.Entities()).required(), + resume_tasks_after_unlock: Joi.boolean().allow(null), }); } @@ -4591,6 +4120,7 @@ class OrderPlatformModel { primary_email: Joi.string().allow(""), address2: Joi.string().allow(""), country_code: Joi.string().allow(""), + country_iso_code: Joi.string().allow(""), }); } @@ -4621,6 +4151,7 @@ class OrderPlatformModel { address2: Joi.string().allow(""), landmark: Joi.string().allow(""), country_code: Joi.string().allow(""), + country_iso_code: Joi.string().allow(""), }); } @@ -5554,367 +5085,48 @@ class OrderPlatformModel { }); } - /** @returns {StateTransitionFlag} */ - static StateTransitionFlag() { - return Joi.object({ - id: Joi.number(), - name: Joi.string().allow(""), - display_name: Joi.string().allow(""), - description: Joi.string().allow(""), - type: Joi.string().allow(""), - options: Joi.object().pattern(/\S/, Joi.any()), - default_value: Joi.string().allow(""), - }); - } - - /** @returns {StateManagerFilter} */ - static StateManagerFilter() { - return Joi.object({ - id: Joi.number(), - name: Joi.string().allow(""), - display_name: Joi.string().allow(""), - description: Joi.string().allow(""), - type: Joi.string().allow(""), - options: Joi.object().pattern(/\S/, Joi.any()), - default_value: Joi.string().allow(""), - }); - } - - /** @returns {StateManagerTask} */ - static StateManagerTask() { - return Joi.object({ - id: Joi.number(), - name: Joi.string().allow(""), - display_name: Joi.string().allow(""), - description: Joi.string().allow(""), - doc_string: Joi.string().allow(""), - kwargs: Joi.any(), - }); - } - - /** @returns {PaginationInfo} */ - static PaginationInfo() { - return Joi.object({ - current: Joi.number(), - has_previous: Joi.boolean(), - has_next: Joi.boolean(), - total: Joi.number(), - item_total: Joi.number(), - type: Joi.string().allow(""), - size: Joi.number(), - }); - } - - /** @returns {StateManagerState} */ - static StateManagerState() { - return Joi.object({ - id: Joi.number(), - state: Joi.string().allow(""), - platform_display_name: Joi.string().allow(""), - app_facing: Joi.boolean(), - app_display_name: Joi.string().allow(""), - is_active: Joi.boolean(), - state_type: Joi.string().allow(""), - journey_type: Joi.string().allow(""), - }); - } - - /** @returns {PaginatedStates} */ - static PaginatedStates() { - return Joi.object({ - items: Joi.array().items(OrderPlatformModel.StateManagerState()), - page: OrderPlatformModel.PaginationInfo(), - }); - } - - /** @returns {RuleLaneConfigErrorResponse} */ - static RuleLaneConfigErrorResponse() { + /** @returns {GenerateInvoiceIDResponseData} */ + static GenerateInvoiceIDResponseData() { return Joi.object({ - type: Joi.string().allow("").allow(null), - value: Joi.string().allow("").allow(null), - message: Joi.any(), - }); - } - - /** @returns {QuestionSetItem} */ - static QuestionSetItem() { - return Joi.object({ - id: Joi.number().required(), - display_name: Joi.string().allow("").required(), - }); - } - - /** @returns {Reason} */ - static Reason() { - return Joi.object({ - id: Joi.number().required(), - display_name: Joi.string().allow("").required(), - remark_required: Joi.boolean().required(), - qc_type: Joi.array().items(Joi.string().allow("")).required(), - question_set: Joi.array() - .items(OrderPlatformModel.QuestionSet()) - .required(), - meta: Joi.any().required(), - is_active: Joi.boolean().required(), - is_deleted: Joi.boolean().required(), - }); - } - - /** @returns {RuleRequest} */ - static RuleRequest() { - return Joi.object({ - flow_type: Joi.string().allow("").required(), - name: Joi.string().allow("").required(), - description: Joi.string().allow(""), - entity_type: Joi.string().allow("").required(), - value: Joi.string().allow("").required(), - channel: Joi.string().allow("").required(), - rule_type: Joi.string().allow("").required(), - is_deleted: Joi.boolean().required(), - restrict_forward_servicability: Joi.boolean(), - conditions: Joi.array().items(OrderPlatformModel.Condition()).required(), - meta: OrderPlatformModel.RuleMeta().required(), - qc_enabled: Joi.boolean().required(), - is_active: Joi.boolean().required(), - actions: OrderPlatformModel.RuleAction().required(), - }); - } - - /** @returns {CreateRuleResponse} */ - static CreateRuleResponse() { - return Joi.object({ - id: Joi.number(), - success: Joi.boolean(), - error: OrderPlatformModel.RuleError(), - }); - } - - /** @returns {RuleResponse} */ - static RuleResponse() { - return Joi.object({ - id: Joi.string().allow(""), - items: OrderPlatformModel.RuleItem(), - success: Joi.boolean(), - error: OrderPlatformModel.RuleError(), - }); - } - - /** @returns {RuleUpdateRequest} */ - static RuleUpdateRequest() { - return Joi.object({ - flow_type: Joi.string().allow("").required(), - name: Joi.string().allow("").required(), - description: Joi.string().allow(""), - entity_type: Joi.string().allow("").required(), - value: Joi.string().allow("").required(), - channel: Joi.string().allow("").required(), - rule_type: Joi.string().allow("").required(), - is_deleted: Joi.boolean().required(), - position: Joi.number().required(), - restrict_forward_servicability: Joi.boolean().required(), - conditions: Joi.array().items(OrderPlatformModel.Condition()).required(), - meta: OrderPlatformModel.RuleMeta().required(), - qc_enabled: Joi.boolean().required(), - is_active: Joi.boolean().required(), - actions: OrderPlatformModel.RuleAction().required(), - }); - } - - /** @returns {Condition} */ - static Condition() { - return Joi.object({ - value: Joi.string().allow("").required(), - variable: Joi.string().allow("").required(), - operation: Joi.string().allow("").required(), - }); - } - - /** @returns {RuleMeta} */ - static RuleMeta() { - return Joi.object({ - department: OrderPlatformModel.Department(), - l3: OrderPlatformModel.L3(), - }); - } - - /** @returns {RuleAction} */ - static RuleAction() { - return Joi.object({ - reasons: Joi.array().items(OrderPlatformModel.Reason()), - }); - } - - /** @returns {Department} */ - static Department() { - return Joi.object({ - id: Joi.string().allow(""), - display_name: Joi.string().allow(""), - }); - } - - /** @returns {L3} */ - static L3() { - return Joi.object({ - id: Joi.string().allow(""), - display_name: Joi.string().allow(""), - }); - } - - /** @returns {Error} */ - static Error() { - return Joi.object({ - type: Joi.string().allow(""), - value: Joi.string().allow(""), - message: Joi.string().allow(""), - success: Joi.boolean(), - }); - } - - /** @returns {RuleUpdateResponse} */ - static RuleUpdateResponse() { - return Joi.object({ - id: Joi.string().allow(""), - success: Joi.boolean(), - error: OrderPlatformModel.RuleError(), - }); - } - - /** @returns {DeleteRuleResponse} */ - static DeleteRuleResponse() { - return Joi.object({ - id: Joi.string().allow(""), + shipment_id: Joi.string().allow(""), success: Joi.boolean(), - error: OrderPlatformModel.RuleError(), - }); - } - - /** @returns {UpdateRulePositionRequest} */ - static UpdateRulePositionRequest() { - return Joi.object({ - rule_id: Joi.number().required(), - page_no: Joi.number().required(), - page_size: Joi.number().required(), - position: Joi.number().required(), - flow_type: Joi.string().allow("").required(), + invoice_id: Joi.string().allow("").allow(null), + error_message: Joi.boolean().allow(null), }); } - /** @returns {UpdateRulePositionResponse} */ - static UpdateRulePositionResponse() { + /** @returns {GenerateInvoiceIDErrorResponseData} */ + static GenerateInvoiceIDErrorResponseData() { return Joi.object({ - page: OrderPlatformModel.PageInfo(), - items: Joi.array().items(OrderPlatformModel.RuleItem()), + shipment_id: Joi.string().allow(""), success: Joi.boolean(), - error: OrderPlatformModel.RuleError(), - }); - } - - /** @returns {RuleItem} */ - static RuleItem() { - return Joi.object({ - id: Joi.string().allow("").required(), - entity_type: Joi.string().allow("").required(), - value: Joi.string().allow("").required(), - channel: Joi.string().allow("").required(), - actions: OrderPlatformModel.RuleAction().required(), - qc_enabled: Joi.boolean().required(), - is_deleted: Joi.boolean().required(), - conditions: OrderPlatformModel.Condition().required(), - meta: OrderPlatformModel.Meta().required(), - rule_type: Joi.string().allow("").required(), - is_active: Joi.boolean().required(), - name: Joi.string().allow("").required(), - description: Joi.string().allow("").required(), - flow_type: Joi.string().allow("").required(), - position: Joi.number().required(), + invoice_id: Joi.boolean().allow(null), + error_message: Joi.string().allow("").allow(null), }); } - /** @returns {RuleParametersResponse} */ - static RuleParametersResponse() { + /** @returns {GenerateInvoiceIDRequest} */ + static GenerateInvoiceIDRequest() { return Joi.object({ - response: Joi.array().items(OrderPlatformModel.ParameterResponse()), - }); - } - - /** @returns {ParameterResponse} */ - static ParameterResponse() { - return Joi.object({ - text: Joi.string().allow(""), - value: Joi.string().allow(""), + shipment_ids: Joi.array().items(Joi.string().allow("")).required(), }); } - /** @returns {RuleListRequest} */ - static RuleListRequest() { + /** @returns {GenerateInvoiceIDResponse} */ + static GenerateInvoiceIDResponse() { return Joi.object({ - page_size: Joi.number(), - page_no: Joi.number(), - flow_type: Joi.string().allow(""), - lane_type: Joi.string().allow(""), - }); - } - - /** @returns {RuleListResponse} */ - static RuleListResponse() { - return Joi.object({ - page: OrderPlatformModel.PageInfo(), - items: Joi.array().items(OrderPlatformModel.RuleListItem()), - success: Joi.boolean().allow(null), - error: OrderPlatformModel.RuleErrorResponse(), - }); - } - - /** @returns {RuleListItem} */ - static RuleListItem() { - return Joi.object({ - id: Joi.string().allow("").required(), - entity_type: Joi.string().allow("").required(), - value: Joi.string().allow("").required(), - channel: Joi.string().allow("").required(), - actions: OrderPlatformModel.RuleAction().required(), - qc_enabled: Joi.boolean().required(), - is_deleted: Joi.boolean().required(), - conditions: OrderPlatformModel.Condition().required(), - meta: OrderPlatformModel.Meta().required(), - rule_type: Joi.string().allow("").required(), - is_active: Joi.boolean().required(), - name: Joi.string().allow("").required(), - description: Joi.string().allow("").required(), - flow_type: Joi.string().allow("").required(), - position: Joi.number().required(), - success: Joi.boolean().required(), - error: OrderPlatformModel.RuleError().required(), - }); - } - - /** @returns {RuleError} */ - static RuleError() { - return Joi.object({ - type: Joi.string().allow("").required(), - value: Joi.string().allow("").required(), - message: Joi.string().allow("").required(), - }); - } - - /** @returns {RuleErrorResponse} */ - static RuleErrorResponse() { - return Joi.object({ - success: Joi.boolean().allow(null), - error: OrderPlatformModel.RuleError(), + items: Joi.array().items( + OrderPlatformModel.GenerateInvoiceIDResponseData() + ), }); } - /** @returns {PageInfo} */ - static PageInfo() { + /** @returns {GenerateInvoiceIDErrorResponse} */ + static GenerateInvoiceIDErrorResponse() { return Joi.object({ - type: Joi.string().allow(""), - current: Joi.number(), - size: Joi.number(), - item_total: Joi.number(), - has_previous: Joi.boolean(), - has_next: Joi.boolean(), - page_size: Joi.number(), + items: Joi.array().items( + OrderPlatformModel.GenerateInvoiceIDErrorResponseData() + ), }); } @@ -6218,7 +5430,6 @@ class OrderPlatformModel { raw_meta: Joi.string().allow("").allow(null), size: Joi.string().allow("").required(), is_set: Joi.boolean().allow(null), - tags: Joi.array().items(Joi.string().allow("")), }); } @@ -6758,7 +5969,6 @@ class OrderPlatformModel { return_config: OrderPlatformModel.ReturnConfig(), uid: Joi.string().allow("").allow(null), size: Joi.string().allow("").allow(null), - tags: Joi.array().items(Joi.string().allow("")), }); } @@ -7023,21 +6233,6 @@ class OrderPlatformModel { }); } - /** @returns {PaymentInfoData} */ - static PaymentInfoData() { - return Joi.object({ - meta: Joi.any(), - mode: Joi.string().allow(""), - name: Joi.string().allow(""), - amount: Joi.number(), - collected: Joi.boolean(), - refund_by: Joi.string().allow(""), - collect_by: Joi.string().allow(""), - display_name: Joi.string().allow(""), - merchant_transaction_id: Joi.string().allow(""), - }); - } - /** @returns {OrderData} */ static OrderData() { return Joi.object({ @@ -7048,7 +6243,7 @@ class OrderPlatformModel { fynd_order_id: Joi.string().allow("").required(), prices: OrderPlatformModel.Prices(), payment_methods: Joi.any().allow(null), - payment_info: Joi.array().items(OrderPlatformModel.PaymentInfoData()), + payment_info: Joi.array().items(Joi.any()), }); } @@ -7176,71 +6371,6 @@ class OrderPlatformModel { }); } - /** @returns {FilterOptions} */ - static FilterOptions() { - return Joi.object({ - label: Joi.string().allow("").required(), - value: Joi.string().allow("").required(), - name: Joi.string().allow(""), - }); - } - - /** @returns {FiltersList} */ - static FiltersList() { - return Joi.object({ - label: Joi.string().allow("").required(), - value: Joi.string().allow("").required(), - filter_type: Joi.string().allow("").required(), - type: Joi.string().allow("").required(), - placeholder_text: Joi.string().allow(""), - required: Joi.boolean(), - options: Joi.array().items(OrderPlatformModel.FilterOptions()).required(), - }); - } - - /** @returns {GlobalFiltersResponse} */ - static GlobalFiltersResponse() { - return Joi.object({ - filters: Joi.array().items(OrderPlatformModel.FiltersList()).required(), - company_id: Joi.number().allow(null).required(), - request_source: Joi.string().allow(""), - show_in: Joi.string().allow("").required(), - }); - } - - /** @returns {ViewDetails} */ - static ViewDetails() { - return Joi.object({ - id: Joi.string().allow(""), - slug: Joi.string().allow(""), - text: Joi.string().allow(""), - filters: Joi.array().items(OrderPlatformModel.FiltersList()), - }); - } - - /** @returns {ParentViews} */ - static ParentViews() { - return Joi.object({ - views: Joi.array().items(OrderPlatformModel.ViewDetails()), - parent_slug: Joi.string().allow(""), - parent_text: Joi.string().allow(""), - }); - } - - /** @returns {UserViewsResponse} */ - static UserViewsResponse() { - return Joi.object({ - parent_views: Joi.array().items(OrderPlatformModel.ParentViews()), - }); - } - - /** @returns {CreateUpdateDeleteResponse} */ - static CreateUpdateDeleteResponse() { - return Joi.object({ - message: Joi.string().allow(""), - }); - } - /** @returns {FiltersResponse} */ static FiltersResponse() { return Joi.object({ @@ -7281,6 +6411,16 @@ class OrderPlatformModel { }); } + /** @returns {Reason} */ + static Reason() { + return Joi.object({ + qc_type: Joi.array().items(Joi.string().allow("")), + id: Joi.number(), + question_set: Joi.array().items(OrderPlatformModel.QuestionSet()), + display_name: Joi.string().allow(""), + }); + } + /** @returns {PlatformShipmentReasonsResponse} */ static PlatformShipmentReasonsResponse() { return Joi.object({ @@ -7740,5 +6880,13 @@ class OrderPlatformModel { url: Joi.string().allow(""), }); } + + /** @returns {Error} */ + static Error() { + return Joi.object({ + message: Joi.string().allow(""), + success: Joi.boolean(), + }); + } } module.exports = OrderPlatformModel; diff --git a/sdk/platform/Order/OrderPlatformValidator.d.ts b/sdk/platform/Order/OrderPlatformValidator.d.ts index 3b7ba0848..cb796d913 100644 --- a/sdk/platform/Order/OrderPlatformValidator.d.ts +++ b/sdk/platform/Order/OrderPlatformValidator.d.ts @@ -37,10 +37,6 @@ export = OrderPlatformValidator; * @typedef CreateOrderParam * @property {OrderPlatformModel.CreateOrderAPI} body */ -/** - * @typedef DeleteuserviewsParam - * @property {string} id - Id of view - */ /** * @typedef DispatchManifestsParam * @property {string} manifestId @@ -70,6 +66,11 @@ export = OrderPlatformValidator; * @typedef FetchRefundModeConfigParam * @property {OrderPlatformModel.RefundModeConfigRequestPayload} body */ +/** + * @typedef GenerateInvoiceIDParam + * @property {string} invoiceType - Mention the type of invoice id to generate + * @property {OrderPlatformModel.GenerateInvoiceIDRequest} body + */ /** * @typedef GeneratePOSReceiptByOrderIdParam * @property {string} orderId @@ -223,15 +224,6 @@ export = OrderPlatformValidator; * @property {string} [customerId] * @property {string} [orderType] */ -/** - * @typedef GetRefundConfigurationParam - * @property {string} appId - */ -/** @typedef GetRefundEnableStateListParam */ -/** - * @typedef GetRefundStateConfigurationParam - * @property {string} appId - */ /** @typedef GetRoleBasedActionsParam */ /** * @typedef GetShipmentByIdParam @@ -300,12 +292,6 @@ export = OrderPlatformValidator; * @property {string} view - Name of view * @property {string} [groupEntity] - Name of group entity */ -/** @typedef GetuserviewsParam */ -/** - * @typedef GlobalfiltersParam - * @property {string} showIn - Name of view to get filters for - * @property {string} requestSource - Name of site (Platform/Admin) - */ /** * @typedef InvalidateShipmentCacheParam * @property {OrderPlatformModel.InvalidateShipmentCachePayload} body @@ -318,24 +304,10 @@ export = OrderPlatformValidator; * @typedef OrderUpdateParam * @property {OrderPlatformModel.PlatformOrderUpdate} body */ -/** - * @typedef PostRefundConfigurationParam - * @property {string} appId - * @property {OrderPlatformModel.RefundStateConfigurationManualSchema} body - */ -/** - * @typedef PostRefundStateConfigurationParam - * @property {string} appId - * @property {OrderPlatformModel.PostRefundStateConfiguration} body - */ /** * @typedef PostShipmentHistoryParam * @property {OrderPlatformModel.PostShipmentHistory} body */ -/** - * @typedef PostuserviewsParam - * @property {OrderPlatformModel.UserViewsResponse} body - */ /** * @typedef ProcessManifestsParam * @property {OrderPlatformModel.ProcessManifest} body @@ -390,10 +362,6 @@ export = OrderPlatformValidator; * @typedef UpdateShipmentTrackingParam * @property {OrderPlatformModel.CourierPartnerTrackingDetails} body */ -/** - * @typedef UpdateuserviewsParam - * @property {OrderPlatformModel.UserViewsResponse} body - */ /** * @typedef UploadConsentsParam * @property {string} manifestId @@ -418,8 +386,6 @@ declare class OrderPlatformValidator { static createChannelConfig(): CreateChannelConfigParam; /** @returns {CreateOrderParam} */ static createOrder(): CreateOrderParam; - /** @returns {DeleteuserviewsParam} */ - static deleteuserviews(): DeleteuserviewsParam; /** @returns {DispatchManifestsParam} */ static dispatchManifests(): DispatchManifestsParam; /** @returns {DownloadBulkActionTemplateParam} */ @@ -434,6 +400,8 @@ declare class OrderPlatformValidator { static fetchCreditBalanceDetail(): FetchCreditBalanceDetailParam; /** @returns {FetchRefundModeConfigParam} */ static fetchRefundModeConfig(): FetchRefundModeConfigParam; + /** @returns {GenerateInvoiceIDParam} */ + static generateInvoiceID(): GenerateInvoiceIDParam; /** @returns {GeneratePOSReceiptByOrderIdParam} */ static generatePOSReceiptByOrderId(): GeneratePOSReceiptByOrderIdParam; /** @returns {GetAllowedStateTransitionParam} */ @@ -468,12 +436,6 @@ declare class OrderPlatformValidator { static getOrderById(): GetOrderByIdParam; /** @returns {GetOrdersParam} */ static getOrders(): GetOrdersParam; - /** @returns {GetRefundConfigurationParam} */ - static getRefundConfiguration(): GetRefundConfigurationParam; - /** @returns {GetRefundEnableStateListParam} */ - static getRefundEnableStateList(): any; - /** @returns {GetRefundStateConfigurationParam} */ - static getRefundStateConfiguration(): GetRefundStateConfigurationParam; /** @returns {GetRoleBasedActionsParam} */ static getRoleBasedActions(): any; /** @returns {GetShipmentByIdParam} */ @@ -490,24 +452,14 @@ declare class OrderPlatformValidator { static getTemplate(): GetTemplateParam; /** @returns {GetfiltersParam} */ static getfilters(): GetfiltersParam; - /** @returns {GetuserviewsParam} */ - static getuserviews(): any; - /** @returns {GlobalfiltersParam} */ - static globalfilters(): GlobalfiltersParam; /** @returns {InvalidateShipmentCacheParam} */ static invalidateShipmentCache(): InvalidateShipmentCacheParam; /** @returns {JobDetailsParam} */ static jobDetails(): JobDetailsParam; /** @returns {OrderUpdateParam} */ static orderUpdate(): OrderUpdateParam; - /** @returns {PostRefundConfigurationParam} */ - static postRefundConfiguration(): PostRefundConfigurationParam; - /** @returns {PostRefundStateConfigurationParam} */ - static postRefundStateConfiguration(): PostRefundStateConfigurationParam; /** @returns {PostShipmentHistoryParam} */ static postShipmentHistory(): PostShipmentHistoryParam; - /** @returns {PostuserviewsParam} */ - static postuserviews(): PostuserviewsParam; /** @returns {ProcessManifestsParam} */ static processManifests(): ProcessManifestsParam; /** @returns {ReassignLocationParam} */ @@ -528,15 +480,13 @@ declare class OrderPlatformValidator { static updateShipmentStatus(): UpdateShipmentStatusParam; /** @returns {UpdateShipmentTrackingParam} */ static updateShipmentTracking(): UpdateShipmentTrackingParam; - /** @returns {UpdateuserviewsParam} */ - static updateuserviews(): UpdateuserviewsParam; /** @returns {UploadConsentsParam} */ static uploadConsents(): UploadConsentsParam; /** @returns {VerifyMobileOTPParam} */ static verifyMobileOTP(): VerifyMobileOTPParam; } declare namespace OrderPlatformValidator { - export { AttachOrderUserParam, BulkListingParam, BulkStateTransistionParam, CheckOrderStatusParam, Click2CallParam, CreateChannelConfigParam, CreateOrderParam, DeleteuserviewsParam, DispatchManifestsParam, DownloadBulkActionTemplateParam, DownloadLanesReportParam, EInvoiceRetryParam, FailedOrderLogDetailsParam, FetchCreditBalanceDetailParam, FetchRefundModeConfigParam, GeneratePOSReceiptByOrderIdParam, GetAllowedStateTransitionParam, GetAllowedTemplatesForBulkParam, GetAnnouncementsParam, GetBagByIdParam, GetBagsParam, GetBulkActionTemplateParam, GetBulkShipmentExcelFileParam, GetChannelConfigParam, GetFileByStatusParam, GetLaneConfigParam, GetManifestDetailsParam, GetManifestShipmentsParam, GetManifestfiltersParam, GetManifestsParam, GetOrderByIdParam, GetOrdersParam, GetRefundConfigurationParam, GetRefundEnableStateListParam, GetRefundStateConfigurationParam, GetRoleBasedActionsParam, GetShipmentByIdParam, GetShipmentHistoryParam, GetShipmentReasonsParam, GetShipmentsParam, GetStateTransitionMapParam, GetTemplateParam, GetfiltersParam, GetuserviewsParam, GlobalfiltersParam, InvalidateShipmentCacheParam, JobDetailsParam, OrderUpdateParam, PostRefundConfigurationParam, PostRefundStateConfigurationParam, PostShipmentHistoryParam, PostuserviewsParam, ProcessManifestsParam, ReassignLocationParam, SendSmsNinjaParam, SendUserMobileOTPParam, TrackShipmentParam, UpdateAddressParam, UpdatePackagingDimensionsParam, UpdateShipmentLockParam, UpdateShipmentStatusParam, UpdateShipmentTrackingParam, UpdateuserviewsParam, UploadConsentsParam, VerifyMobileOTPParam }; + export { AttachOrderUserParam, BulkListingParam, BulkStateTransistionParam, CheckOrderStatusParam, Click2CallParam, CreateChannelConfigParam, CreateOrderParam, DispatchManifestsParam, DownloadBulkActionTemplateParam, DownloadLanesReportParam, EInvoiceRetryParam, FailedOrderLogDetailsParam, FetchCreditBalanceDetailParam, FetchRefundModeConfigParam, GenerateInvoiceIDParam, GeneratePOSReceiptByOrderIdParam, GetAllowedStateTransitionParam, GetAllowedTemplatesForBulkParam, GetAnnouncementsParam, GetBagByIdParam, GetBagsParam, GetBulkActionTemplateParam, GetBulkShipmentExcelFileParam, GetChannelConfigParam, GetFileByStatusParam, GetLaneConfigParam, GetManifestDetailsParam, GetManifestShipmentsParam, GetManifestfiltersParam, GetManifestsParam, GetOrderByIdParam, GetOrdersParam, GetRoleBasedActionsParam, GetShipmentByIdParam, GetShipmentHistoryParam, GetShipmentReasonsParam, GetShipmentsParam, GetStateTransitionMapParam, GetTemplateParam, GetfiltersParam, InvalidateShipmentCacheParam, JobDetailsParam, OrderUpdateParam, PostShipmentHistoryParam, ProcessManifestsParam, ReassignLocationParam, SendSmsNinjaParam, SendUserMobileOTPParam, TrackShipmentParam, UpdateAddressParam, UpdatePackagingDimensionsParam, UpdateShipmentLockParam, UpdateShipmentStatusParam, UpdateShipmentTrackingParam, UploadConsentsParam, VerifyMobileOTPParam }; } type AttachOrderUserParam = { body: OrderPlatformModel.AttachOrderUser; @@ -605,12 +555,6 @@ type CreateChannelConfigParam = { type CreateOrderParam = { body: OrderPlatformModel.CreateOrderAPI; }; -type DeleteuserviewsParam = { - /** - * - Id of view - */ - id: string; -}; type DispatchManifestsParam = { manifestId: string; body: OrderPlatformModel.DispatchManifest; @@ -639,6 +583,13 @@ type FetchCreditBalanceDetailParam = { type FetchRefundModeConfigParam = { body: OrderPlatformModel.RefundModeConfigRequestPayload; }; +type GenerateInvoiceIDParam = { + /** + * - Mention the type of invoice id to generate + */ + invoiceType: string; + body: OrderPlatformModel.GenerateInvoiceIDRequest; +}; type GeneratePOSReceiptByOrderIdParam = { orderId: string; shipmentId?: string; @@ -934,12 +885,6 @@ type GetOrdersParam = { customerId?: string; orderType?: string; }; -type GetRefundConfigurationParam = { - appId: string; -}; -type GetRefundStateConfigurationParam = { - appId: string; -}; type GetShipmentByIdParam = { /** * - App Shipment Id @@ -1099,16 +1044,6 @@ type GetfiltersParam = { */ groupEntity?: string; }; -type GlobalfiltersParam = { - /** - * - Name of view to get filters for - */ - showIn: string; - /** - * - Name of site (Platform/Admin) - */ - requestSource: string; -}; type InvalidateShipmentCacheParam = { body: OrderPlatformModel.InvalidateShipmentCachePayload; }; @@ -1118,20 +1053,9 @@ type JobDetailsParam = { type OrderUpdateParam = { body: OrderPlatformModel.PlatformOrderUpdate; }; -type PostRefundConfigurationParam = { - appId: string; - body: OrderPlatformModel.RefundStateConfigurationManualSchema; -}; -type PostRefundStateConfigurationParam = { - appId: string; - body: OrderPlatformModel.PostRefundStateConfiguration; -}; type PostShipmentHistoryParam = { body: OrderPlatformModel.PostShipmentHistory; }; -type PostuserviewsParam = { - body: OrderPlatformModel.UserViewsResponse; -}; type ProcessManifestsParam = { body: OrderPlatformModel.ProcessManifest; }; @@ -1188,9 +1112,6 @@ type UpdateShipmentStatusParam = { type UpdateShipmentTrackingParam = { body: OrderPlatformModel.CourierPartnerTrackingDetails; }; -type UpdateuserviewsParam = { - body: OrderPlatformModel.UserViewsResponse; -}; type UploadConsentsParam = { manifestId: string; body: OrderPlatformModel.UploadConsent; @@ -1201,8 +1122,6 @@ type VerifyMobileOTPParam = { type GetAllowedTemplatesForBulkParam = any; type GetBulkActionTemplateParam = any; type GetChannelConfigParam = any; -type GetRefundEnableStateListParam = any; type GetRoleBasedActionsParam = any; type GetStateTransitionMapParam = any; -type GetuserviewsParam = any; -import OrderPlatformModel = require("sdk/output/javascript/code/sdk/platform/Order/OrderPlatformModel"); +import OrderPlatformModel = require("./OrderPlatformModel"); diff --git a/sdk/platform/Order/OrderPlatformValidator.js b/sdk/platform/Order/OrderPlatformValidator.js index 2bba8c365..9219d39bb 100644 --- a/sdk/platform/Order/OrderPlatformValidator.js +++ b/sdk/platform/Order/OrderPlatformValidator.js @@ -47,11 +47,6 @@ const OrderPlatformModel = require("./OrderPlatformModel"); * @property {OrderPlatformModel.CreateOrderAPI} body */ -/** - * @typedef DeleteuserviewsParam - * @property {string} id - Id of view - */ - /** * @typedef DispatchManifestsParam * @property {string} manifestId @@ -88,6 +83,12 @@ const OrderPlatformModel = require("./OrderPlatformModel"); * @property {OrderPlatformModel.RefundModeConfigRequestPayload} body */ +/** + * @typedef GenerateInvoiceIDParam + * @property {string} invoiceType - Mention the type of invoice id to generate + * @property {OrderPlatformModel.GenerateInvoiceIDRequest} body + */ + /** * @typedef GeneratePOSReceiptByOrderIdParam * @property {string} orderId @@ -258,18 +259,6 @@ const OrderPlatformModel = require("./OrderPlatformModel"); * @property {string} [orderType] */ -/** - * @typedef GetRefundConfigurationParam - * @property {string} appId - */ - -/** @typedef GetRefundEnableStateListParam */ - -/** - * @typedef GetRefundStateConfigurationParam - * @property {string} appId - */ - /** @typedef GetRoleBasedActionsParam */ /** @@ -346,14 +335,6 @@ const OrderPlatformModel = require("./OrderPlatformModel"); * @property {string} [groupEntity] - Name of group entity */ -/** @typedef GetuserviewsParam */ - -/** - * @typedef GlobalfiltersParam - * @property {string} showIn - Name of view to get filters for - * @property {string} requestSource - Name of site (Platform/Admin) - */ - /** * @typedef InvalidateShipmentCacheParam * @property {OrderPlatformModel.InvalidateShipmentCachePayload} body @@ -369,28 +350,11 @@ const OrderPlatformModel = require("./OrderPlatformModel"); * @property {OrderPlatformModel.PlatformOrderUpdate} body */ -/** - * @typedef PostRefundConfigurationParam - * @property {string} appId - * @property {OrderPlatformModel.RefundStateConfigurationManualSchema} body - */ - -/** - * @typedef PostRefundStateConfigurationParam - * @property {string} appId - * @property {OrderPlatformModel.PostRefundStateConfiguration} body - */ - /** * @typedef PostShipmentHistoryParam * @property {OrderPlatformModel.PostShipmentHistory} body */ -/** - * @typedef PostuserviewsParam - * @property {OrderPlatformModel.UserViewsResponse} body - */ - /** * @typedef ProcessManifestsParam * @property {OrderPlatformModel.ProcessManifest} body @@ -455,11 +419,6 @@ const OrderPlatformModel = require("./OrderPlatformModel"); * @property {OrderPlatformModel.CourierPartnerTrackingDetails} body */ -/** - * @typedef UpdateuserviewsParam - * @property {OrderPlatformModel.UserViewsResponse} body - */ - /** * @typedef UploadConsentsParam * @property {string} manifestId @@ -531,13 +490,6 @@ class OrderPlatformValidator { }).required(); } - /** @returns {DeleteuserviewsParam} */ - static deleteuserviews() { - return Joi.object({ - id: Joi.string().allow("").required(), - }).required(); - } - /** @returns {DispatchManifestsParam} */ static dispatchManifests() { return Joi.object({ @@ -588,6 +540,14 @@ class OrderPlatformValidator { }).required(); } + /** @returns {GenerateInvoiceIDParam} */ + static generateInvoiceID() { + return Joi.object({ + invoiceType: Joi.string().allow("").required(), + body: OrderPlatformModel.GenerateInvoiceIDRequest().required(), + }).required(); + } + /** @returns {GeneratePOSReceiptByOrderIdParam} */ static generatePOSReceiptByOrderId() { return Joi.object({ @@ -786,25 +746,6 @@ class OrderPlatformValidator { }).required(); } - /** @returns {GetRefundConfigurationParam} */ - static getRefundConfiguration() { - return Joi.object({ - appId: Joi.string().allow("").required(), - }).required(); - } - - /** @returns {GetRefundEnableStateListParam} */ - static getRefundEnableStateList() { - return Joi.object({}).required(); - } - - /** @returns {GetRefundStateConfigurationParam} */ - static getRefundStateConfiguration() { - return Joi.object({ - appId: Joi.string().allow("").required(), - }).required(); - } - /** @returns {GetRoleBasedActionsParam} */ static getRoleBasedActions() { return Joi.object({}).required(); @@ -893,19 +834,6 @@ class OrderPlatformValidator { }).required(); } - /** @returns {GetuserviewsParam} */ - static getuserviews() { - return Joi.object({}).required(); - } - - /** @returns {GlobalfiltersParam} */ - static globalfilters() { - return Joi.object({ - showIn: Joi.string().allow("").required(), - requestSource: Joi.string().allow("").required(), - }).required(); - } - /** @returns {InvalidateShipmentCacheParam} */ static invalidateShipmentCache() { return Joi.object({ @@ -927,22 +855,6 @@ class OrderPlatformValidator { }).required(); } - /** @returns {PostRefundConfigurationParam} */ - static postRefundConfiguration() { - return Joi.object({ - appId: Joi.string().allow("").required(), - body: OrderPlatformModel.RefundStateConfigurationManualSchema().required(), - }).required(); - } - - /** @returns {PostRefundStateConfigurationParam} */ - static postRefundStateConfiguration() { - return Joi.object({ - appId: Joi.string().allow("").required(), - body: OrderPlatformModel.PostRefundStateConfiguration().required(), - }).required(); - } - /** @returns {PostShipmentHistoryParam} */ static postShipmentHistory() { return Joi.object({ @@ -950,13 +862,6 @@ class OrderPlatformValidator { }).required(); } - /** @returns {PostuserviewsParam} */ - static postuserviews() { - return Joi.object({ - body: OrderPlatformModel.UserViewsResponse().required(), - }).required(); - } - /** @returns {ProcessManifestsParam} */ static processManifests() { return Joi.object({ @@ -1041,13 +946,6 @@ class OrderPlatformValidator { }).required(); } - /** @returns {UpdateuserviewsParam} */ - static updateuserviews() { - return Joi.object({ - body: OrderPlatformModel.UserViewsResponse().required(), - }).required(); - } - /** @returns {UploadConsentsParam} */ static uploadConsents() { return Joi.object({ diff --git a/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts b/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts index 714f32856..644ee4ace 100644 --- a/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +++ b/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts @@ -24,5 +24,5 @@ declare class Partner { */ removeProxyPath({ extensionId, attachedPath, requestHeaders }?: PartnerPlatformApplicationValidator.RemoveProxyPathParam, { responseHeaders }?: object): Promise; } -import PartnerPlatformApplicationValidator = require("sdk/output/javascript/code/sdk/platform/Partner/PartnerPlatformApplicationValidator"); -import PartnerPlatformModel = require("sdk/output/javascript/code/sdk/platform/Partner/PartnerPlatformModel"); +import PartnerPlatformApplicationValidator = require("./PartnerPlatformApplicationValidator"); +import PartnerPlatformModel = require("./PartnerPlatformModel"); diff --git a/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts b/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts index 6210dbaf4..5510d4e47 100644 --- a/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +++ b/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts @@ -1,13 +1,13 @@ export = PartnerPlatformApplicationValidator; /** * @typedef AddProxyPathParam - * @property {string} extensionId - Extension id for which a proxy URL will be generated + * @property {string} extensionId - Extension id for which proxy URL will be generated * @property {PartnerPlatformModel.AddProxyReq} body */ /** * @typedef RemoveProxyPathParam * @property {string} extensionId - Extension id for which proxy URL needs to be removed - * @property {string} attachedPath - Attached path slug + * @property {string} attachedPath - Attachaed path slug */ declare class PartnerPlatformApplicationValidator { /** @returns {AddProxyPathParam} */ @@ -20,7 +20,7 @@ declare namespace PartnerPlatformApplicationValidator { } type AddProxyPathParam = { /** - * - Extension id for which a proxy URL will be generated + * - Extension id for which proxy URL will be generated */ extensionId: string; body: PartnerPlatformModel.AddProxyReq; @@ -31,8 +31,8 @@ type RemoveProxyPathParam = { */ extensionId: string; /** - * - Attached path slug + * - Attachaed path slug */ attachedPath: string; }; -import PartnerPlatformModel = require("sdk/output/javascript/code/sdk/platform/Partner/PartnerPlatformModel"); +import PartnerPlatformModel = require("./PartnerPlatformModel"); diff --git a/sdk/platform/Partner/PartnerPlatformApplicationValidator.js b/sdk/platform/Partner/PartnerPlatformApplicationValidator.js index 23baaeae6..d5db5c444 100644 --- a/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +++ b/sdk/platform/Partner/PartnerPlatformApplicationValidator.js @@ -4,14 +4,14 @@ const PartnerPlatformModel = require("./PartnerPlatformModel"); /** * @typedef AddProxyPathParam - * @property {string} extensionId - Extension id for which a proxy URL will be generated + * @property {string} extensionId - Extension id for which proxy URL will be generated * @property {PartnerPlatformModel.AddProxyReq} body */ /** * @typedef RemoveProxyPathParam * @property {string} extensionId - Extension id for which proxy URL needs to be removed - * @property {string} attachedPath - Attached path slug + * @property {string} attachedPath - Attachaed path slug */ class PartnerPlatformApplicationValidator { diff --git a/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts b/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts index b12556daf..6aab4b8c4 100644 --- a/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +++ b/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts @@ -101,19 +101,6 @@ declare class Payment { * @description: Use this API to create a order and payment on aggregator side - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/createPaymentOrder/). */ createPaymentOrder({ body, requestHeaders }?: PaymentPlatformApplicationValidator.CreatePaymentOrderParam, { responseHeaders }?: object): Promise; - /** - * @param {PaymentPlatformApplicationValidator.DeleteBeneficiaryDetailsParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name deleteBeneficiaryDetails - * @summary: Delete saved beneficiary details of customers - * @description: Use this API to delete the saved beneficiary details provided beneficiary Id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/deleteBeneficiaryDetails/). - */ - deleteBeneficiaryDetails({ beneficiaryId, requestHeaders }?: PaymentPlatformApplicationValidator.DeleteBeneficiaryDetailsParam, { responseHeaders }?: object): Promise; /** * @param {PaymentPlatformApplicationValidator.EdcAggregatorsAndModelListParam} arg * - Arg object @@ -216,14 +203,13 @@ declare class Payment { * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * + * @returns {Promise} - + * Success response * @name getMerchantPaymentOption * @summary: Get Payment modes and COD details. * @description: This api fetches all the available PGs for merchant and its offline payment mode details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getMerchantPaymentOption/). */ - getMerchantPaymentOption({ paymentOptionType, requestHeaders }?: PaymentPlatformApplicationValidator.GetMerchantPaymentOptionParam, { responseHeaders }?: object): Promise; + getMerchantPaymentOption({ requestHeaders }?: any, { responseHeaders }?: object): Promise; /** * @param {PaymentPlatformApplicationValidator.GetMerchantRefundPriorityParam} arg * - Arg object @@ -325,19 +311,6 @@ declare class Payment { * @description: Use this API to fetch the payment session details for given order ID or Transaction ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getPaymentSession/). */ getPaymentSession({ gid, lineItem, requestHeaders }?: PaymentPlatformApplicationValidator.GetPaymentSessionParam, { responseHeaders }?: object): Promise; - /** - * @param {PaymentPlatformApplicationValidator.GetPennyDropValidationParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name getPennyDropValidation - * @summary: API to get pennydrop validation flag - * @description: API to get pennydrop validation flag - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getPennyDropValidation/). - */ - getPennyDropValidation({ requestHeaders }?: any, { responseHeaders }?: object): Promise; /** * @param {PaymentPlatformApplicationValidator.GetPosPaymentModeRoutesParam} arg * - Arg object @@ -351,29 +324,6 @@ declare class Payment { * @description: Use this API to get Get All Valid Payment Options for making payment - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getPosPaymentModeRoutes/). */ getPosPaymentModeRoutes({ amount, pincode, orderType, cartId, checkoutMode, refresh, orderId, cardReference, userDetails, displaySplit, advancePayment, shipmentId, requestHeaders, }?: PaymentPlatformApplicationValidator.GetPosPaymentModeRoutesParam, { responseHeaders }?: object): Promise; - /** - * @param {PaymentPlatformApplicationValidator.GetRefundOptionsParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getRefundOptions - * @summary: Refund Options Handler to fetch available refund options. - * @description: Refund Options Handler to fetch available refund options - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getRefundOptions/). - */ - getRefundOptions({ configuration, productType, amount, requestHeaders }?: PaymentPlatformApplicationValidator.GetRefundOptionsParam, { responseHeaders }?: object): Promise; - /** - * @param {PaymentPlatformApplicationValidator.GetSelectedRefundOptionParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name getSelectedRefundOption - * @summary: API to get the selected refund options for shipment id - * @description: API to get the selected refund options for shipment id - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getSelectedRefundOption/). - */ - getSelectedRefundOption({ shipmentId, orderId, requestHeaders }?: PaymentPlatformApplicationValidator.GetSelectedRefundOptionParam, { responseHeaders }?: object): Promise; /** * @param {PaymentPlatformApplicationValidator.GetUserBeneficiariesParam} arg * - Arg object @@ -387,20 +337,6 @@ declare class Payment { * @description: Get all active beneficiary details added by the user for refund - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getUserBeneficiaries/). */ getUserBeneficiaries({ orderId, requestHeaders }?: PaymentPlatformApplicationValidator.GetUserBeneficiariesParam, { responseHeaders }?: object): Promise; - /** - * @param {PaymentPlatformApplicationValidator.GetUserBeneficiariesDetailV2Param} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name getUserBeneficiariesDetailV2 - * @summary: Lists the beneficiary of a refund - * @description: Use this API to get the details of all active beneficiary added by a user for refund. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getUserBeneficiariesDetailV2/). - */ - getUserBeneficiariesDetailV2({ orderId, shipmentId, mop, requestHeaders }?: PaymentPlatformApplicationValidator.GetUserBeneficiariesDetailV2Param, { responseHeaders }?: object): Promise; /** * @param {PaymentPlatformApplicationValidator.GetUserCODlimitRoutesParam} arg * - Arg object @@ -614,43 +550,18 @@ declare class Payment { * @description: Use this API to update given details of advance payment custom configurations of merchant - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/setPaymentModeCustomConfig/). */ setPaymentModeCustomConfig({ mode, body, requestHeaders }?: PaymentPlatformApplicationValidator.SetPaymentModeCustomConfigParam, { responseHeaders }?: object): Promise; - /** - * @param {PaymentPlatformApplicationValidator.SetRefundOptionforShipmentParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name setRefundOptionforShipment - * @summary: Save refund source against shipment and order - * @description: Save refund source against shipment and order - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/setRefundOptionforShipment/). - */ - setRefundOptionforShipment({ body, requestHeaders }?: PaymentPlatformApplicationValidator.SetRefundOptionforShipmentParam, { responseHeaders }?: object): Promise; /** * @param {PaymentPlatformApplicationValidator.SetUserCODlimitRoutesParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response + * @returns {Promise} - Success response * @name setUserCODlimitRoutes * @summary: Set COD option for user for payment * @description: Use this API to set cod option as true or false for the payment - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/setUserCODlimitRoutes/). */ - setUserCODlimitRoutes({ body, requestHeaders }?: PaymentPlatformApplicationValidator.SetUserCODlimitRoutesParam, { responseHeaders }?: object): Promise; - /** - * @param {PaymentPlatformApplicationValidator.UpdateDefaultBeneficiaryParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name updateDefaultBeneficiary - * @summary: Set a default beneficiary for a refund - * @description: Use this API to set a default beneficiary for getting a refund. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/updateDefaultBeneficiary/). - */ - updateDefaultBeneficiary({ body, requestHeaders }?: PaymentPlatformApplicationValidator.UpdateDefaultBeneficiaryParam, { responseHeaders }?: object): Promise; + setUserCODlimitRoutes({ body, requestHeaders }?: PaymentPlatformApplicationValidator.SetUserCODlimitRoutesParam, { responseHeaders }?: object): Promise; /** * @param {PaymentPlatformApplicationValidator.UpdateEdcDeviceParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -689,19 +600,6 @@ declare class Payment { * @description: A payment_session is initiated against a global identifier (gid) which is identifies the entity payment is initiated against. e.g. order_id, cart_id. This endpoint is to update the status of the said payment_session. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/updatePaymentSession/). */ updatePaymentSession({ gid, body, requestHeaders }?: PaymentPlatformApplicationValidator.UpdatePaymentSessionParam, { responseHeaders }?: object): Promise; - /** - * @param {PaymentPlatformApplicationValidator.UpdatePennyDropValidationParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name updatePennyDropValidation - * @summary: API to update penny drop validation for application ID - * @description: API to update penny drop validation for application ID - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/updatePennyDropValidation/). - */ - updatePennyDropValidation({ body, requestHeaders }?: PaymentPlatformApplicationValidator.UpdatePennyDropValidationParam, { responseHeaders }?: object): Promise; /** * @param {PaymentPlatformApplicationValidator.UpdateRefundSessionParam} arg * - Arg object @@ -716,20 +614,6 @@ declare class Payment { * @description: A refund_session is initiated against a refund request, and this endpoint is to update the status against the refund request_id. A gid is unique indentifier of the entity against which payment was received e.g. an order. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/updateRefundSession/). */ updateRefundSession({ gid, requestId, body, requestHeaders }?: PaymentPlatformApplicationValidator.UpdateRefundSessionParam, { responseHeaders }?: object): Promise; - /** - * @param {PaymentPlatformApplicationValidator.ValidateBeneficiaryAddressParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name validateBeneficiaryAddress - * @summary: API to Validate UPI ID and IFSC code - * @description: API to Validate UPI ID and IFSC code - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/validateBeneficiaryAddress/). - */ - validateBeneficiaryAddress({ body, requestHeaders }?: PaymentPlatformApplicationValidator.ValidateBeneficiaryAddressParam, { responseHeaders }?: object): Promise; /** * @param {PaymentPlatformApplicationValidator.VerifyCustomerForPaymentParam} arg * - Arg object @@ -744,5 +628,5 @@ declare class Payment { */ verifyCustomerForPayment({ body, requestHeaders }?: PaymentPlatformApplicationValidator.VerifyCustomerForPaymentParam, { responseHeaders }?: object): Promise; } -import PaymentPlatformApplicationValidator = require("sdk/output/javascript/code/sdk/platform/Payment/PaymentPlatformApplicationValidator"); -import PaymentPlatformModel = require("sdk/output/javascript/code/sdk/platform/Payment/PaymentPlatformModel"); +import PaymentPlatformApplicationValidator = require("./PaymentPlatformApplicationValidator"); +import PaymentPlatformModel = require("./PaymentPlatformModel"); diff --git a/sdk/platform/Payment/PaymentPlatformApplicationClient.js b/sdk/platform/Payment/PaymentPlatformApplicationClient.js index e77d1b0c1..b303ab7b3 100644 --- a/sdk/platform/Payment/PaymentPlatformApplicationClient.js +++ b/sdk/platform/Payment/PaymentPlatformApplicationClient.js @@ -669,88 +669,6 @@ class Payment { return response; } - /** - * @param {PaymentPlatformApplicationValidator.DeleteBeneficiaryDetailsParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name deleteBeneficiaryDetails - * @summary: Delete saved beneficiary details of customers - * @description: Use this API to delete the saved beneficiary details provided beneficiary Id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/deleteBeneficiaryDetails/). - */ - async deleteBeneficiaryDetails( - { beneficiaryId, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = PaymentPlatformApplicationValidator.deleteBeneficiaryDetails().validate( - { - beneficiaryId, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = PaymentPlatformApplicationValidator.deleteBeneficiaryDetails().validate( - { - beneficiaryId, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Payment > deleteBeneficiaryDetails \n ${warrning}`, - }); - } - - const query_params = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "delete", - `/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/refund/account/${beneficiaryId}`, - query_params, - undefined, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = PaymentPlatformModel.DeleteRefundAccountResponse().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Payment > deleteBeneficiaryDetails \n ${res_error}`, - }); - } - } - - return response; - } - /** * @param {PaymentPlatformApplicationValidator.EdcAggregatorsAndModelListParam} arg * - Arg object @@ -1449,23 +1367,20 @@ class Payment { * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * + * @returns {Promise} - + * Success response * @name getMerchantPaymentOption * @summary: Get Payment modes and COD details. * @description: This api fetches all the available PGs for merchant and its offline payment mode details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getMerchantPaymentOption/). */ async getMerchantPaymentOption( - { paymentOptionType, requestHeaders } = { requestHeaders: {} }, + { requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, } = PaymentPlatformApplicationValidator.getMerchantPaymentOption().validate( - { - paymentOptionType, - }, + {}, { abortEarly: false, allowUnknown: true } ); if (error) { @@ -1476,9 +1391,7 @@ class Payment { const { error: warrning, } = PaymentPlatformApplicationValidator.getMerchantPaymentOption().validate( - { - paymentOptionType, - }, + {}, { abortEarly: false, allowUnknown: false } ); if (warrning) { @@ -1489,7 +1402,6 @@ class Payment { } const query_params = {}; - query_params["payment_option_type"] = paymentOptionType; const response = await PlatformAPIClient.execute( this.config, @@ -1508,7 +1420,7 @@ class Payment { const { error: res_error, - } = PaymentPlatformModel.PlatformOnlineOfflinePaymentResponse().validate( + } = PaymentPlatformModel.PlatformPaymentModeResponse().validate( responseData, { abortEarly: false, allowUnknown: true } ); @@ -2188,84 +2100,6 @@ class Payment { return response; } - /** - * @param {PaymentPlatformApplicationValidator.GetPennyDropValidationParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name getPennyDropValidation - * @summary: API to get pennydrop validation flag - * @description: API to get pennydrop validation flag - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getPennyDropValidation/). - */ - async getPennyDropValidation( - { requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = PaymentPlatformApplicationValidator.getPennyDropValidation().validate( - {}, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = PaymentPlatformApplicationValidator.getPennyDropValidation().validate( - {}, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Payment > getPennyDropValidation \n ${warrning}`, - }); - } - - const query_params = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/pennydrop/validation`, - query_params, - undefined, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = PaymentPlatformModel.PennyDropValidationResponse().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Payment > getPennyDropValidation \n ${res_error}`, - }); - } - } - - return response; - } - /** * @param {PaymentPlatformApplicationValidator.GetPosPaymentModeRoutesParam} arg * - Arg object @@ -2397,28 +2231,25 @@ class Payment { } /** - * @param {PaymentPlatformApplicationValidator.GetRefundOptionsParam} arg - Arg object + * @param {PaymentPlatformApplicationValidator.GetUserBeneficiariesParam} arg + * - Arg object + * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getRefundOptions - * @summary: Refund Options Handler to fetch available refund options. - * @description: Refund Options Handler to fetch available refund options - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getRefundOptions/). + * @returns {Promise} - + * Success response + * @name getUserBeneficiaries + * @summary: List User Beneficiary + * @description: Get all active beneficiary details added by the user for refund - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getUserBeneficiaries/). */ - async getRefundOptions( - { configuration, productType, amount, requestHeaders } = { - requestHeaders: {}, - }, + async getUserBeneficiaries( + { orderId, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = PaymentPlatformApplicationValidator.getRefundOptions().validate( - { - configuration, - productType, - amount, - }, + } = PaymentPlatformApplicationValidator.getUserBeneficiaries().validate( + { orderId }, { abortEarly: false, allowUnknown: true } ); if (error) { @@ -2428,30 +2259,24 @@ class Payment { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = PaymentPlatformApplicationValidator.getRefundOptions().validate( - { - configuration, - productType, - amount, - }, + } = PaymentPlatformApplicationValidator.getUserBeneficiaries().validate( + { orderId }, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Payment > getRefundOptions \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Payment > getUserBeneficiaries \n ${warrning}`, }); } const query_params = {}; - query_params["configuration"] = configuration; - query_params["product_type"] = productType; - query_params["amount"] = amount; + query_params["order_id"] = orderId; const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/payment/refundoptions/`, + `/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/refund/accounts/user`, query_params, undefined, requestHeaders, @@ -2465,7 +2290,7 @@ class Payment { const { error: res_error, - } = PaymentPlatformModel.RefundOptionResponse().validate(responseData, { + } = PaymentPlatformModel.OrderBeneficiaryResponse().validate(responseData, { abortEarly: false, allowUnknown: true, }); @@ -2476,7 +2301,7 @@ class Payment { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Payment > getRefundOptions \n ${res_error}`, + message: `Response Validation Warnings for platform > Payment > getUserBeneficiaries \n ${res_error}`, }); } } @@ -2485,27 +2310,26 @@ class Payment { } /** - * @param {PaymentPlatformApplicationValidator.GetSelectedRefundOptionParam} arg + * @param {PaymentPlatformApplicationValidator.GetUserCODlimitRoutesParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name getSelectedRefundOption - * @summary: API to get the selected refund options for shipment id - * @description: API to get the selected refund options for shipment id - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getSelectedRefundOption/). + * @returns {Promise} - Success response + * @name getUserCODlimitRoutes + * @summary: Get COD limit for user + * @description: Use this API to get user cod limit and reamining limit for the payment - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getUserCODlimitRoutes/). */ - async getSelectedRefundOption( - { shipmentId, orderId, requestHeaders } = { requestHeaders: {} }, + async getUserCODlimitRoutes( + { merchantUserId, mobileNo, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = PaymentPlatformApplicationValidator.getSelectedRefundOption().validate( + } = PaymentPlatformApplicationValidator.getUserCODlimitRoutes().validate( { - shipmentId, - orderId, + merchantUserId, + mobileNo, }, { abortEarly: false, allowUnknown: true } ); @@ -2516,28 +2340,28 @@ class Payment { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = PaymentPlatformApplicationValidator.getSelectedRefundOption().validate( + } = PaymentPlatformApplicationValidator.getUserCODlimitRoutes().validate( { - shipmentId, - orderId, + merchantUserId, + mobileNo, }, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Payment > getSelectedRefundOption \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Payment > getUserCODlimitRoutes \n ${warrning}`, }); } const query_params = {}; - query_params["shipment_id"] = shipmentId; - query_params["order_id"] = orderId; + query_params["merchant_user_id"] = merchantUserId; + query_params["mobile_no"] = mobileNo; const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/payment/selected_refund_options`, + `/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/payment/user-cod`, query_params, undefined, requestHeaders, @@ -2551,10 +2375,10 @@ class Payment { const { error: res_error, - } = PaymentPlatformModel.SelectedRefundOptionResponse().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); + } = PaymentPlatformModel.GetUserCODLimitResponse().validate(responseData, { + abortEarly: false, + allowUnknown: true, + }); if (res_error) { if (this.config.options.strictResponseCheck === true) { @@ -2562,7 +2386,7 @@ class Payment { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Payment > getSelectedRefundOption \n ${res_error}`, + message: `Response Validation Warnings for platform > Payment > getUserCODlimitRoutes \n ${res_error}`, }); } } @@ -2571,24 +2395,24 @@ class Payment { } /** - * @param {PaymentPlatformApplicationValidator.GetUserBeneficiariesParam} arg + * @param {PaymentPlatformApplicationValidator.GetUserOrderBeneficiariesParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options * @returns {Promise} - * Success response - * @name getUserBeneficiaries - * @summary: List User Beneficiary - * @description: Get all active beneficiary details added by the user for refund - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getUserBeneficiaries/). + * @name getUserOrderBeneficiaries + * @summary: List Order Beneficiary + * @description: Get all active beneficiary details added by the user for refund - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getUserOrderBeneficiaries/). */ - async getUserBeneficiaries( + async getUserOrderBeneficiaries( { orderId, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = PaymentPlatformApplicationValidator.getUserBeneficiaries().validate( + } = PaymentPlatformApplicationValidator.getUserOrderBeneficiaries().validate( { orderId }, { abortEarly: false, allowUnknown: true } ); @@ -2599,14 +2423,14 @@ class Payment { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = PaymentPlatformApplicationValidator.getUserBeneficiaries().validate( + } = PaymentPlatformApplicationValidator.getUserOrderBeneficiaries().validate( { orderId }, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Payment > getUserBeneficiaries \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Payment > getUserOrderBeneficiaries \n ${warrning}`, }); } @@ -2616,7 +2440,7 @@ class Payment { const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/refund/accounts/user`, + `/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/refund/accounts/order`, query_params, undefined, requestHeaders, @@ -2641,7 +2465,7 @@ class Payment { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Payment > getUserBeneficiaries \n ${res_error}`, + message: `Response Validation Warnings for platform > Payment > getUserOrderBeneficiaries \n ${res_error}`, }); } } @@ -2650,29 +2474,26 @@ class Payment { } /** - * @param {PaymentPlatformApplicationValidator.GetUserBeneficiariesDetailV2Param} arg + * @param {PaymentPlatformApplicationValidator.InitialisePaymentParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name getUserBeneficiariesDetailV2 - * @summary: Lists the beneficiary of a refund - * @description: Use this API to get the details of all active beneficiary added by a user for refund. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getUserBeneficiariesDetailV2/). + * @returns {Promise} - + * Success response + * @name initialisePayment + * @summary: Initialize a payment (server-to-server) for UPI and BharatQR + * @description: PUse this API to inititate payment using UPI, BharatQR, wherein the UPI requests are send to the app and QR code is displayed on the screen. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/initialisePayment/). */ - async getUserBeneficiariesDetailV2( - { orderId, shipmentId, mop, requestHeaders } = { requestHeaders: {} }, + async initialisePayment( + { body, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = PaymentPlatformApplicationValidator.getUserBeneficiariesDetailV2().validate( + } = PaymentPlatformApplicationValidator.initialisePayment().validate( { - orderId, - shipmentId, - mop, + body, }, { abortEarly: false, allowUnknown: true } ); @@ -2683,32 +2504,27 @@ class Payment { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = PaymentPlatformApplicationValidator.getUserBeneficiariesDetailV2().validate( + } = PaymentPlatformApplicationValidator.initialisePayment().validate( { - orderId, - shipmentId, - mop, + body, }, { abortEarly: false, allowUnknown: false } ); if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Payment > getUserBeneficiariesDetailV2 \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Payment > initialisePayment \n ${warrning}`, }); } const query_params = {}; - query_params["order_id"] = orderId; - query_params["shipment_id"] = shipmentId; - query_params["mop"] = mop; const response = await PlatformAPIClient.execute( this.config, - "get", - `/service/platform/payment/v2.0/company/${this.config.companyId}/application/${this.applicationId}/refund/user/beneficiary`, + "post", + `/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/payment/request`, query_params, - undefined, + body, requestHeaders, { responseHeaders } ); @@ -2720,7 +2536,7 @@ class Payment { const { error: res_error, - } = PaymentPlatformModel.OrderBeneficiaryResponseSchemaV2().validate( + } = PaymentPlatformModel.PaymentInitializationResponse().validate( responseData, { abortEarly: false, allowUnknown: true } ); @@ -2731,7 +2547,7 @@ class Payment { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Payment > getUserBeneficiariesDetailV2 \n ${res_error}`, + message: `Response Validation Warnings for platform > Payment > initialisePayment \n ${res_error}`, }); } } @@ -2740,253 +2556,7 @@ class Payment { } /** - * @param {PaymentPlatformApplicationValidator.GetUserCODlimitRoutesParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getUserCODlimitRoutes - * @summary: Get COD limit for user - * @description: Use this API to get user cod limit and reamining limit for the payment - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getUserCODlimitRoutes/). - */ - async getUserCODlimitRoutes( - { merchantUserId, mobileNo, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = PaymentPlatformApplicationValidator.getUserCODlimitRoutes().validate( - { - merchantUserId, - mobileNo, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = PaymentPlatformApplicationValidator.getUserCODlimitRoutes().validate( - { - merchantUserId, - mobileNo, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Payment > getUserCODlimitRoutes \n ${warrning}`, - }); - } - - const query_params = {}; - query_params["merchant_user_id"] = merchantUserId; - query_params["mobile_no"] = mobileNo; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/payment/user-cod`, - query_params, - undefined, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = PaymentPlatformModel.GetUserCODLimitResponse().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Payment > getUserCODlimitRoutes \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {PaymentPlatformApplicationValidator.GetUserOrderBeneficiariesParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name getUserOrderBeneficiaries - * @summary: List Order Beneficiary - * @description: Get all active beneficiary details added by the user for refund - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getUserOrderBeneficiaries/). - */ - async getUserOrderBeneficiaries( - { orderId, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = PaymentPlatformApplicationValidator.getUserOrderBeneficiaries().validate( - { orderId }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = PaymentPlatformApplicationValidator.getUserOrderBeneficiaries().validate( - { orderId }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Payment > getUserOrderBeneficiaries \n ${warrning}`, - }); - } - - const query_params = {}; - query_params["order_id"] = orderId; - - const response = await PlatformAPIClient.execute( - this.config, - "get", - `/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/refund/accounts/order`, - query_params, - undefined, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = PaymentPlatformModel.OrderBeneficiaryResponse().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Payment > getUserOrderBeneficiaries \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {PaymentPlatformApplicationValidator.InitialisePaymentParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name initialisePayment - * @summary: Initialize a payment (server-to-server) for UPI and BharatQR - * @description: PUse this API to inititate payment using UPI, BharatQR, wherein the UPI requests are send to the app and QR code is displayed on the screen. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/initialisePayment/). - */ - async initialisePayment( - { body, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = PaymentPlatformApplicationValidator.initialisePayment().validate( - { - body, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = PaymentPlatformApplicationValidator.initialisePayment().validate( - { - body, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Payment > initialisePayment \n ${warrning}`, - }); - } - - const query_params = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "post", - `/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/payment/request`, - query_params, - body, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = PaymentPlatformModel.PaymentInitializationResponse().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Payment > initialisePayment \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {PaymentPlatformApplicationValidator.MerchantOnBoardingParam} arg + * @param {PaymentPlatformApplicationValidator.MerchantOnBoardingParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -4144,23 +3714,23 @@ class Payment { } /** - * @param {PaymentPlatformApplicationValidator.SetRefundOptionforShipmentParam} arg + * @param {PaymentPlatformApplicationValidator.SetUserCODlimitRoutesParam} arg * - Arg object * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name setRefundOptionforShipment - * @summary: Save refund source against shipment and order - * @description: Save refund source against shipment and order - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/setRefundOptionforShipment/). + * @returns {Promise} - Success response + * @name setUserCODlimitRoutes + * @summary: Set COD option for user for payment + * @description: Use this API to set cod option as true or false for the payment - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/setUserCODlimitRoutes/). */ - async setRefundOptionforShipment( + async setUserCODlimitRoutes( { body, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error, - } = PaymentPlatformApplicationValidator.setRefundOptionforShipment().validate( + } = PaymentPlatformApplicationValidator.setUserCODlimitRoutes().validate( { body, }, @@ -4173,7 +3743,7 @@ class Payment { // Showing warrnings if extra unknown parameters are found const { error: warrning, - } = PaymentPlatformApplicationValidator.setRefundOptionforShipment().validate( + } = PaymentPlatformApplicationValidator.setUserCODlimitRoutes().validate( { body, }, @@ -4182,7 +3752,7 @@ class Payment { if (warrning) { Logger({ level: "WARN", - message: `Parameter Validation warrnings for platform > Payment > setRefundOptionforShipment \n ${warrning}`, + message: `Parameter Validation warrnings for platform > Payment > setUserCODlimitRoutes \n ${warrning}`, }); } @@ -4190,8 +3760,8 @@ class Payment { const response = await PlatformAPIClient.execute( this.config, - "post", - `/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/payment/refundoptions/`, + "put", + `/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/payment/user-cod`, query_params, body, requestHeaders, @@ -4205,7 +3775,7 @@ class Payment { const { error: res_error, - } = PaymentPlatformModel.ShipmentRefundResponse().validate(responseData, { + } = PaymentPlatformModel.SetCODOptionResponse().validate(responseData, { abortEarly: false, allowUnknown: true, }); @@ -4216,170 +3786,7 @@ class Payment { } else { Logger({ level: "WARN", - message: `Response Validation Warnings for platform > Payment > setRefundOptionforShipment \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {PaymentPlatformApplicationValidator.SetUserCODlimitRoutesParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name setUserCODlimitRoutes - * @summary: Set COD option for user for payment - * @description: Use this API to set cod option as true or false for the payment - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/setUserCODlimitRoutes/). - */ - async setUserCODlimitRoutes( - { body, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = PaymentPlatformApplicationValidator.setUserCODlimitRoutes().validate( - { - body, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = PaymentPlatformApplicationValidator.setUserCODlimitRoutes().validate( - { - body, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Payment > setUserCODlimitRoutes \n ${warrning}`, - }); - } - - const query_params = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "put", - `/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/payment/user-cod`, - query_params, - body, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = PaymentPlatformModel.GetUserCODLimitResponse().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Payment > setUserCODlimitRoutes \n ${res_error}`, - }); - } - } - - return response; - } - - /** - * @param {PaymentPlatformApplicationValidator.UpdateDefaultBeneficiaryParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name updateDefaultBeneficiary - * @summary: Set a default beneficiary for a refund - * @description: Use this API to set a default beneficiary for getting a refund. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/updateDefaultBeneficiary/). - */ - async updateDefaultBeneficiary( - { body, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = PaymentPlatformApplicationValidator.updateDefaultBeneficiary().validate( - { - body, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = PaymentPlatformApplicationValidator.updateDefaultBeneficiary().validate( - { - body, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Payment > updateDefaultBeneficiary \n ${warrning}`, - }); - } - - const query_params = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "post", - `/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/refund/beneficiary/default`, - query_params, - body, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = PaymentPlatformModel.SetDefaultBeneficiaryResponse().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Payment > updateDefaultBeneficiary \n ${res_error}`, + message: `Response Validation Warnings for platform > Payment > setUserCODlimitRoutes \n ${res_error}`, }); } } @@ -4636,88 +4043,6 @@ class Payment { return response; } - /** - * @param {PaymentPlatformApplicationValidator.UpdatePennyDropValidationParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name updatePennyDropValidation - * @summary: API to update penny drop validation for application ID - * @description: API to update penny drop validation for application ID - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/updatePennyDropValidation/). - */ - async updatePennyDropValidation( - { body, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = PaymentPlatformApplicationValidator.updatePennyDropValidation().validate( - { - body, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = PaymentPlatformApplicationValidator.updatePennyDropValidation().validate( - { - body, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Payment > updatePennyDropValidation \n ${warrning}`, - }); - } - - const query_params = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "post", - `/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/pennydrop/validation`, - query_params, - body, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = PaymentPlatformModel.PennyDropValidationResponse().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Payment > updatePennyDropValidation \n ${res_error}`, - }); - } - } - - return response; - } - /** * @param {PaymentPlatformApplicationValidator.UpdateRefundSessionParam} arg * - Arg object @@ -4805,89 +4130,6 @@ class Payment { return response; } - /** - * @param {PaymentPlatformApplicationValidator.ValidateBeneficiaryAddressParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name validateBeneficiaryAddress - * @summary: API to Validate UPI ID and IFSC code - * @description: API to Validate UPI ID and IFSC code - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/validateBeneficiaryAddress/). - */ - async validateBeneficiaryAddress( - { body, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = PaymentPlatformApplicationValidator.validateBeneficiaryAddress().validate( - { - body, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = PaymentPlatformApplicationValidator.validateBeneficiaryAddress().validate( - { - body, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Payment > validateBeneficiaryAddress \n ${warrning}`, - }); - } - - const query_params = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "post", - `/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/validate/beneficiary-address`, - query_params, - body, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = PaymentPlatformModel.ValidateValidateAddressResponse().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Payment > validateBeneficiaryAddress \n ${res_error}`, - }); - } - } - - return response; - } - /** * @param {PaymentPlatformApplicationValidator.VerifyCustomerForPaymentParam} arg * - Arg object diff --git a/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts b/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts index 24670493f..9cc729fde 100644 --- a/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +++ b/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts @@ -33,11 +33,6 @@ export = PaymentPlatformApplicationValidator; * @typedef CreatePaymentOrderParam * @property {PaymentPlatformModel.PaymentOrderRequest} body */ -/** - * @typedef DeleteBeneficiaryDetailsParam - * @property {string} beneficiaryId - This is a String value that contains - * beneficiary_id as value. - */ /** @typedef EdcAggregatorsAndModelListParam */ /** * @typedef EdcDeviceListParam @@ -76,11 +71,7 @@ export = PaymentPlatformApplicationValidator; * @property {string} businessUnit * @property {string} device */ -/** - * @typedef GetMerchantPaymentOptionParam - * @property {string} [paymentOptionType] - Payment Option Type, Expected value - * - advance (Optional) - */ +/** @typedef GetMerchantPaymentOptionParam */ /** * @typedef GetMerchantRefundPriorityParam * @property {string} configType - Configuration for merchant or customer @@ -114,7 +105,6 @@ export = PaymentPlatformApplicationValidator; * @property {boolean} [lineItem] - Line-item to add extra data into response * (e.g. cart details) */ -/** @typedef GetPennyDropValidationParam */ /** * @typedef GetPosPaymentModeRoutesParam * @property {number} amount - Payable amount. @@ -134,29 +124,10 @@ export = PaymentPlatformApplicationValidator; * @property {boolean} [advancePayment] - Display Advance Payment Options or Normal * @property {string} [shipmentId] */ -/** - * @typedef GetRefundOptionsParam - * @property {string} configuration - Config type - * @property {string} [productType] - Product Type either 1P and 3P - * @property {string} [amount] - Refunded amount - */ -/** - * @typedef GetSelectedRefundOptionParam - * @property {string} shipmentId - Shipment Id - * @property {string} orderId - Order Id - */ /** * @typedef GetUserBeneficiariesParam * @property {string} orderId */ -/** - * @typedef GetUserBeneficiariesDetailV2Param - * @property {string} [orderId] - A unique number used for identifying and - * tracking your orders. - * @property {string} [shipmentId] - A unique number used for identifying and - * tracking your orders. - * @property {string} [mop] - Mode of payment for which beneficiary data required - */ /** * @typedef GetUserCODlimitRoutesParam * @property {string} merchantUserId @@ -232,18 +203,10 @@ export = PaymentPlatformApplicationValidator; * @property {string} mode - Offline / advance payment mode * @property {PaymentPlatformModel.PaymentCustomConfigRequestSchema} body */ -/** - * @typedef SetRefundOptionforShipmentParam - * @property {PaymentPlatformModel.ShipmentRefundRequest} body - */ /** * @typedef SetUserCODlimitRoutesParam * @property {PaymentPlatformModel.SetCODForUserRequest} body */ -/** - * @typedef UpdateDefaultBeneficiaryParam - * @property {PaymentPlatformModel.SetDefaultBeneficiaryRequest} body - */ /** * @typedef UpdateEdcDeviceParam * @property {PaymentPlatformModel.EdcAddRequest} body @@ -260,10 +223,6 @@ export = PaymentPlatformApplicationValidator; * Fynd payments platform and is unique. * @property {PaymentPlatformModel.PaymentSessionRequestSerializer} body */ -/** - * @typedef UpdatePennyDropValidationParam - * @property {PaymentPlatformModel.UpdatePennyDropValidationRequest} body - */ /** * @typedef UpdateRefundSessionParam * @property {string} gid - Global identifier of the entity (e.g. order, cart @@ -273,10 +232,6 @@ export = PaymentPlatformApplicationValidator; * session. This is generated by Fynd platform and is usually shipment_id. * @property {PaymentPlatformModel.RefundSessionRequestSerializer} body */ -/** - * @typedef ValidateBeneficiaryAddressParam - * @property {PaymentPlatformModel.ValidateValidateAddressRequest} body - */ /** * @typedef VerifyCustomerForPaymentParam * @property {PaymentPlatformModel.ValidateCustomerRequest} body @@ -298,8 +253,6 @@ declare class PaymentPlatformApplicationValidator { static createPaymentLink(): CreatePaymentLinkParam; /** @returns {CreatePaymentOrderParam} */ static createPaymentOrder(): CreatePaymentOrderParam; - /** @returns {DeleteBeneficiaryDetailsParam} */ - static deleteBeneficiaryDetails(): DeleteBeneficiaryDetailsParam; /** @returns {EdcAggregatorsAndModelListParam} */ static edcAggregatorsAndModelList(): any; /** @returns {EdcDeviceListParam} */ @@ -317,7 +270,7 @@ declare class PaymentPlatformApplicationValidator { /** @returns {GetMerchantAggregatorPaymentModeDetailsParam} */ static getMerchantAggregatorPaymentModeDetails(): GetMerchantAggregatorPaymentModeDetailsParam; /** @returns {GetMerchantPaymentOptionParam} */ - static getMerchantPaymentOption(): GetMerchantPaymentOptionParam; + static getMerchantPaymentOption(): any; /** @returns {GetMerchantRefundPriorityParam} */ static getMerchantRefundPriority(): GetMerchantRefundPriorityParam; /** @returns {GetPGConfigAggregatorsParam} */ @@ -334,18 +287,10 @@ declare class PaymentPlatformApplicationValidator { static getPaymentModeRoutes(): GetPaymentModeRoutesParam; /** @returns {GetPaymentSessionParam} */ static getPaymentSession(): GetPaymentSessionParam; - /** @returns {GetPennyDropValidationParam} */ - static getPennyDropValidation(): any; /** @returns {GetPosPaymentModeRoutesParam} */ static getPosPaymentModeRoutes(): GetPosPaymentModeRoutesParam; - /** @returns {GetRefundOptionsParam} */ - static getRefundOptions(): GetRefundOptionsParam; - /** @returns {GetSelectedRefundOptionParam} */ - static getSelectedRefundOption(): GetSelectedRefundOptionParam; /** @returns {GetUserBeneficiariesParam} */ static getUserBeneficiaries(): GetUserBeneficiariesParam; - /** @returns {GetUserBeneficiariesDetailV2Param} */ - static getUserBeneficiariesDetailV2(): GetUserBeneficiariesDetailV2Param; /** @returns {GetUserCODlimitRoutesParam} */ static getUserCODlimitRoutes(): GetUserCODlimitRoutesParam; /** @returns {GetUserOrderBeneficiariesParam} */ @@ -380,29 +325,21 @@ declare class PaymentPlatformApplicationValidator { static setMerchantModeControlRoutes(): SetMerchantModeControlRoutesParam; /** @returns {SetPaymentModeCustomConfigParam} */ static setPaymentModeCustomConfig(): SetPaymentModeCustomConfigParam; - /** @returns {SetRefundOptionforShipmentParam} */ - static setRefundOptionforShipment(): SetRefundOptionforShipmentParam; /** @returns {SetUserCODlimitRoutesParam} */ static setUserCODlimitRoutes(): SetUserCODlimitRoutesParam; - /** @returns {UpdateDefaultBeneficiaryParam} */ - static updateDefaultBeneficiary(): UpdateDefaultBeneficiaryParam; /** @returns {UpdateEdcDeviceParam} */ static updateEdcDevice(): UpdateEdcDeviceParam; /** @returns {UpdateMerchantRefundPriorityParam} */ static updateMerchantRefundPriority(): UpdateMerchantRefundPriorityParam; /** @returns {UpdatePaymentSessionParam} */ static updatePaymentSession(): UpdatePaymentSessionParam; - /** @returns {UpdatePennyDropValidationParam} */ - static updatePennyDropValidation(): UpdatePennyDropValidationParam; /** @returns {UpdateRefundSessionParam} */ static updateRefundSession(): UpdateRefundSessionParam; - /** @returns {ValidateBeneficiaryAddressParam} */ - static validateBeneficiaryAddress(): ValidateBeneficiaryAddressParam; /** @returns {VerifyCustomerForPaymentParam} */ static verifyCustomerForPayment(): VerifyCustomerForPaymentParam; } declare namespace PaymentPlatformApplicationValidator { - export { AddEdcDeviceParam, AddRefundBankAccountUsingOTPParam, CancelPaymentLinkParam, CheckAndUpdatePaymentStatusParam, ConfirmPaymentParam, CreateMerchantRefundPriorityParam, CreatePaymentLinkParam, CreatePaymentOrderParam, DeleteBeneficiaryDetailsParam, EdcAggregatorsAndModelListParam, EdcDeviceListParam, EdcDeviceStatsParam, GetBankAccountDetailsOpenAPIParam, GetBrandPaymentGatewayConfigParam, GetEdcDeviceParam, GetMerchantAggregatorAppVersionParam, GetMerchantAggregatorPaymentModeDetailsParam, GetMerchantPaymentOptionParam, GetMerchantRefundPriorityParam, GetPGConfigAggregatorsParam, GetPaymentCodeOptionParam, GetPaymentLinkParam, GetPaymentModeControlRoutesParam, GetPaymentModeCustomConfigParam, GetPaymentModeRoutesParam, GetPaymentSessionParam, GetPennyDropValidationParam, GetPosPaymentModeRoutesParam, GetRefundOptionsParam, GetSelectedRefundOptionParam, GetUserBeneficiariesParam, GetUserBeneficiariesDetailV2Param, GetUserCODlimitRoutesParam, GetUserOrderBeneficiariesParam, InitialisePaymentParam, MerchantOnBoardingParam, OauthGetUrlParam, PatchMerchantAggregatorPaymentModeDetailsParam, PatchMerchantPaymentOptionParam, PatchMerchantPaymentOptionVersionParam, PaymentStatusBulkParam, PollingPaymentLinkParam, RepaymentDetailsParam, ResendOrCancelPaymentParam, ResendPaymentLinkParam, RevokeOauthTokenParam, SaveBrandPaymentGatewayConfigParam, SetMerchantModeControlRoutesParam, SetPaymentModeCustomConfigParam, SetRefundOptionforShipmentParam, SetUserCODlimitRoutesParam, UpdateDefaultBeneficiaryParam, UpdateEdcDeviceParam, UpdateMerchantRefundPriorityParam, UpdatePaymentSessionParam, UpdatePennyDropValidationParam, UpdateRefundSessionParam, ValidateBeneficiaryAddressParam, VerifyCustomerForPaymentParam }; + export { AddEdcDeviceParam, AddRefundBankAccountUsingOTPParam, CancelPaymentLinkParam, CheckAndUpdatePaymentStatusParam, ConfirmPaymentParam, CreateMerchantRefundPriorityParam, CreatePaymentLinkParam, CreatePaymentOrderParam, EdcAggregatorsAndModelListParam, EdcDeviceListParam, EdcDeviceStatsParam, GetBankAccountDetailsOpenAPIParam, GetBrandPaymentGatewayConfigParam, GetEdcDeviceParam, GetMerchantAggregatorAppVersionParam, GetMerchantAggregatorPaymentModeDetailsParam, GetMerchantPaymentOptionParam, GetMerchantRefundPriorityParam, GetPGConfigAggregatorsParam, GetPaymentCodeOptionParam, GetPaymentLinkParam, GetPaymentModeControlRoutesParam, GetPaymentModeCustomConfigParam, GetPaymentModeRoutesParam, GetPaymentSessionParam, GetPosPaymentModeRoutesParam, GetUserBeneficiariesParam, GetUserCODlimitRoutesParam, GetUserOrderBeneficiariesParam, InitialisePaymentParam, MerchantOnBoardingParam, OauthGetUrlParam, PatchMerchantAggregatorPaymentModeDetailsParam, PatchMerchantPaymentOptionParam, PatchMerchantPaymentOptionVersionParam, PaymentStatusBulkParam, PollingPaymentLinkParam, RepaymentDetailsParam, ResendOrCancelPaymentParam, ResendPaymentLinkParam, RevokeOauthTokenParam, SaveBrandPaymentGatewayConfigParam, SetMerchantModeControlRoutesParam, SetPaymentModeCustomConfigParam, SetUserCODlimitRoutesParam, UpdateEdcDeviceParam, UpdateMerchantRefundPriorityParam, UpdatePaymentSessionParam, UpdateRefundSessionParam, VerifyCustomerForPaymentParam }; } type AddEdcDeviceParam = { /** @@ -436,13 +373,6 @@ type CreatePaymentLinkParam = { type CreatePaymentOrderParam = { body: PaymentPlatformModel.PaymentOrderRequest; }; -type DeleteBeneficiaryDetailsParam = { - /** - * - This is a String value that contains - * beneficiary_id as value. - */ - beneficiaryId: string; -}; type EdcDeviceListParam = { pageNo?: number; pageSize?: number; @@ -485,13 +415,6 @@ type GetMerchantAggregatorPaymentModeDetailsParam = { businessUnit: string; device: string; }; -type GetMerchantPaymentOptionParam = { - /** - * - Payment Option Type, Expected value - * - advance (Optional) - */ - paymentOptionType?: string; -}; type GetMerchantRefundPriorityParam = { /** * - Configuration for merchant or customer @@ -580,49 +503,9 @@ type GetPosPaymentModeRoutesParam = { advancePayment?: boolean; shipmentId?: string; }; -type GetRefundOptionsParam = { - /** - * - Config type - */ - configuration: string; - /** - * - Product Type either 1P and 3P - */ - productType?: string; - /** - * - Refunded amount - */ - amount?: string; -}; -type GetSelectedRefundOptionParam = { - /** - * - Shipment Id - */ - shipmentId: string; - /** - * - Order Id - */ - orderId: string; -}; type GetUserBeneficiariesParam = { orderId: string; }; -type GetUserBeneficiariesDetailV2Param = { - /** - * - A unique number used for identifying and - * tracking your orders. - */ - orderId?: string; - /** - * - A unique number used for identifying and - * tracking your orders. - */ - shipmentId?: string; - /** - * - Mode of payment for which beneficiary data required - */ - mop?: string; -}; type GetUserCODlimitRoutesParam = { merchantUserId: string; mobileNo: string; @@ -699,15 +582,9 @@ type SetPaymentModeCustomConfigParam = { mode: string; body: PaymentPlatformModel.PaymentCustomConfigRequestSchema; }; -type SetRefundOptionforShipmentParam = { - body: PaymentPlatformModel.ShipmentRefundRequest; -}; type SetUserCODlimitRoutesParam = { body: PaymentPlatformModel.SetCODForUserRequest; }; -type UpdateDefaultBeneficiaryParam = { - body: PaymentPlatformModel.SetDefaultBeneficiaryRequest; -}; type UpdateEdcDeviceParam = { body: PaymentPlatformModel.EdcAddRequest; }; @@ -727,9 +604,6 @@ type UpdatePaymentSessionParam = { gid: string; body: PaymentPlatformModel.PaymentSessionRequestSerializer; }; -type UpdatePennyDropValidationParam = { - body: PaymentPlatformModel.UpdatePennyDropValidationRequest; -}; type UpdateRefundSessionParam = { /** * - Global identifier of the entity (e.g. order, cart @@ -744,15 +618,12 @@ type UpdateRefundSessionParam = { requestId: string; body: PaymentPlatformModel.RefundSessionRequestSerializer; }; -type ValidateBeneficiaryAddressParam = { - body: PaymentPlatformModel.ValidateValidateAddressRequest; -}; type VerifyCustomerForPaymentParam = { body: PaymentPlatformModel.ValidateCustomerRequest; }; type EdcAggregatorsAndModelListParam = any; type EdcDeviceStatsParam = any; +type GetMerchantPaymentOptionParam = any; type GetPGConfigAggregatorsParam = any; type GetPaymentCodeOptionParam = any; -type GetPennyDropValidationParam = any; -import PaymentPlatformModel = require("sdk/output/javascript/code/sdk/platform/Payment/PaymentPlatformModel"); +import PaymentPlatformModel = require("./PaymentPlatformModel"); diff --git a/sdk/platform/Payment/PaymentPlatformApplicationValidator.js b/sdk/platform/Payment/PaymentPlatformApplicationValidator.js index 1aa146a93..6b61d7c4f 100644 --- a/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +++ b/sdk/platform/Payment/PaymentPlatformApplicationValidator.js @@ -44,12 +44,6 @@ const PaymentPlatformModel = require("./PaymentPlatformModel"); * @property {PaymentPlatformModel.PaymentOrderRequest} body */ -/** - * @typedef DeleteBeneficiaryDetailsParam - * @property {string} beneficiaryId - This is a String value that contains - * beneficiary_id as value. - */ - /** @typedef EdcAggregatorsAndModelListParam */ /** @@ -96,11 +90,7 @@ const PaymentPlatformModel = require("./PaymentPlatformModel"); * @property {string} device */ -/** - * @typedef GetMerchantPaymentOptionParam - * @property {string} [paymentOptionType] - Payment Option Type, Expected value - * - advance (Optional) - */ +/** @typedef GetMerchantPaymentOptionParam */ /** * @typedef GetMerchantRefundPriorityParam @@ -143,8 +133,6 @@ const PaymentPlatformModel = require("./PaymentPlatformModel"); * (e.g. cart details) */ -/** @typedef GetPennyDropValidationParam */ - /** * @typedef GetPosPaymentModeRoutesParam * @property {number} amount - Payable amount. @@ -165,33 +153,11 @@ const PaymentPlatformModel = require("./PaymentPlatformModel"); * @property {string} [shipmentId] */ -/** - * @typedef GetRefundOptionsParam - * @property {string} configuration - Config type - * @property {string} [productType] - Product Type either 1P and 3P - * @property {string} [amount] - Refunded amount - */ - -/** - * @typedef GetSelectedRefundOptionParam - * @property {string} shipmentId - Shipment Id - * @property {string} orderId - Order Id - */ - /** * @typedef GetUserBeneficiariesParam * @property {string} orderId */ -/** - * @typedef GetUserBeneficiariesDetailV2Param - * @property {string} [orderId] - A unique number used for identifying and - * tracking your orders. - * @property {string} [shipmentId] - A unique number used for identifying and - * tracking your orders. - * @property {string} [mop] - Mode of payment for which beneficiary data required - */ - /** * @typedef GetUserCODlimitRoutesParam * @property {string} merchantUserId @@ -284,21 +250,11 @@ const PaymentPlatformModel = require("./PaymentPlatformModel"); * @property {PaymentPlatformModel.PaymentCustomConfigRequestSchema} body */ -/** - * @typedef SetRefundOptionforShipmentParam - * @property {PaymentPlatformModel.ShipmentRefundRequest} body - */ - /** * @typedef SetUserCODlimitRoutesParam * @property {PaymentPlatformModel.SetCODForUserRequest} body */ -/** - * @typedef UpdateDefaultBeneficiaryParam - * @property {PaymentPlatformModel.SetDefaultBeneficiaryRequest} body - */ - /** * @typedef UpdateEdcDeviceParam * @property {PaymentPlatformModel.EdcAddRequest} body @@ -318,11 +274,6 @@ const PaymentPlatformModel = require("./PaymentPlatformModel"); * @property {PaymentPlatformModel.PaymentSessionRequestSerializer} body */ -/** - * @typedef UpdatePennyDropValidationParam - * @property {PaymentPlatformModel.UpdatePennyDropValidationRequest} body - */ - /** * @typedef UpdateRefundSessionParam * @property {string} gid - Global identifier of the entity (e.g. order, cart @@ -333,11 +284,6 @@ const PaymentPlatformModel = require("./PaymentPlatformModel"); * @property {PaymentPlatformModel.RefundSessionRequestSerializer} body */ -/** - * @typedef ValidateBeneficiaryAddressParam - * @property {PaymentPlatformModel.ValidateValidateAddressRequest} body - */ - /** * @typedef VerifyCustomerForPaymentParam * @property {PaymentPlatformModel.ValidateCustomerRequest} body @@ -402,13 +348,6 @@ class PaymentPlatformApplicationValidator { }).required(); } - /** @returns {DeleteBeneficiaryDetailsParam} */ - static deleteBeneficiaryDetails() { - return Joi.object({ - beneficiaryId: Joi.string().allow("").required(), - }).required(); - } - /** @returns {EdcAggregatorsAndModelListParam} */ static edcAggregatorsAndModelList() { return Joi.object({}).required(); @@ -475,9 +414,7 @@ class PaymentPlatformApplicationValidator { /** @returns {GetMerchantPaymentOptionParam} */ static getMerchantPaymentOption() { - return Joi.object({ - paymentOptionType: Joi.string().allow(""), - }).required(); + return Joi.object({}).required(); } /** @returns {GetMerchantRefundPriorityParam} */ @@ -536,11 +473,6 @@ class PaymentPlatformApplicationValidator { }).required(); } - /** @returns {GetPennyDropValidationParam} */ - static getPennyDropValidation() { - return Joi.object({}).required(); - } - /** @returns {GetPosPaymentModeRoutesParam} */ static getPosPaymentModeRoutes() { return Joi.object({ @@ -559,23 +491,6 @@ class PaymentPlatformApplicationValidator { }).required(); } - /** @returns {GetRefundOptionsParam} */ - static getRefundOptions() { - return Joi.object({ - configuration: Joi.string().allow("").required(), - productType: Joi.string().allow(""), - amount: Joi.string().allow(""), - }).required(); - } - - /** @returns {GetSelectedRefundOptionParam} */ - static getSelectedRefundOption() { - return Joi.object({ - shipmentId: Joi.string().allow("").required(), - orderId: Joi.string().allow("").required(), - }).required(); - } - /** @returns {GetUserBeneficiariesParam} */ static getUserBeneficiaries() { return Joi.object({ @@ -583,15 +498,6 @@ class PaymentPlatformApplicationValidator { }).required(); } - /** @returns {GetUserBeneficiariesDetailV2Param} */ - static getUserBeneficiariesDetailV2() { - return Joi.object({ - orderId: Joi.string().allow(""), - shipmentId: Joi.string().allow(""), - mop: Joi.string().allow(""), - }).required(); - } - /** @returns {GetUserCODlimitRoutesParam} */ static getUserCODlimitRoutes() { return Joi.object({ @@ -718,13 +624,6 @@ class PaymentPlatformApplicationValidator { }).required(); } - /** @returns {SetRefundOptionforShipmentParam} */ - static setRefundOptionforShipment() { - return Joi.object({ - body: PaymentPlatformModel.ShipmentRefundRequest().required(), - }).required(); - } - /** @returns {SetUserCODlimitRoutesParam} */ static setUserCODlimitRoutes() { return Joi.object({ @@ -732,13 +631,6 @@ class PaymentPlatformApplicationValidator { }).required(); } - /** @returns {UpdateDefaultBeneficiaryParam} */ - static updateDefaultBeneficiary() { - return Joi.object({ - body: PaymentPlatformModel.SetDefaultBeneficiaryRequest().required(), - }).required(); - } - /** @returns {UpdateEdcDeviceParam} */ static updateEdcDevice() { return Joi.object({ @@ -762,13 +654,6 @@ class PaymentPlatformApplicationValidator { }).required(); } - /** @returns {UpdatePennyDropValidationParam} */ - static updatePennyDropValidation() { - return Joi.object({ - body: PaymentPlatformModel.UpdatePennyDropValidationRequest().required(), - }).required(); - } - /** @returns {UpdateRefundSessionParam} */ static updateRefundSession() { return Joi.object({ @@ -778,13 +663,6 @@ class PaymentPlatformApplicationValidator { }).required(); } - /** @returns {ValidateBeneficiaryAddressParam} */ - static validateBeneficiaryAddress() { - return Joi.object({ - body: PaymentPlatformModel.ValidateValidateAddressRequest().required(), - }).required(); - } - /** @returns {VerifyCustomerForPaymentParam} */ static verifyCustomerForPayment() { return Joi.object({ diff --git a/sdk/platform/Payment/PaymentPlatformClient.d.ts b/sdk/platform/Payment/PaymentPlatformClient.d.ts index cf106fbb9..2f55142b9 100644 --- a/sdk/platform/Payment/PaymentPlatformClient.d.ts +++ b/sdk/platform/Payment/PaymentPlatformClient.d.ts @@ -114,5 +114,5 @@ declare class Payment { */ verifyIfscCode({ ifscCode, requestHeaders }?: PaymentPlatformValidator.VerifyIfscCodeParam, { responseHeaders }?: object): Promise; } -import PaymentPlatformValidator = require("sdk/output/javascript/code/sdk/platform/Payment/PaymentPlatformValidator"); -import PaymentPlatformModel = require("sdk/output/javascript/code/sdk/platform/Payment/PaymentPlatformModel"); +import PaymentPlatformValidator = require("./PaymentPlatformValidator"); +import PaymentPlatformModel = require("./PaymentPlatformModel"); diff --git a/sdk/platform/Payment/PaymentPlatformModel.d.ts b/sdk/platform/Payment/PaymentPlatformModel.d.ts index dc5524f27..c82e1096e 100644 --- a/sdk/platform/Payment/PaymentPlatformModel.d.ts +++ b/sdk/platform/Payment/PaymentPlatformModel.d.ts @@ -21,17 +21,17 @@ export = PaymentPlatformModel; * @property {string} config_type - Config Type of the aggregator * @property {boolean} [is_active] - Enable or Disable Flag * @property {string} key - Api key of the payment aggregator - * @property {string} [merchant_salt] - Merchant key of the payment aggregator + * @property {string} merchant_salt - Merchant key of the payment aggregator */ /** * @typedef PaymentGatewayConfigRequest * @property {string} app_id - Application Id to which Payment config Mapped * @property {boolean} [is_active] - Enable or Disable Flag - * @property {PaymentGatewayConfig} [aggregator] + * @property {PaymentGatewayConfig} [aggregator_name] */ /** * @typedef PaymentGatewayToBeReviewed - * @property {string[]} [aggregators] - List of added payment gateway + * @property {string[]} aggregator - List of added payment gateway * @property {boolean} success - Response is successful or not */ /** @@ -136,6 +136,13 @@ export = PaymentPlatformModel; * @property {string} [payment_flow] - Payment_flow * @property {string} [api_link] - Api_link */ +/** + * @typedef PaymentDefaultSelection + * @property {string} [mode] - Default Selection Payment Mode + * @property {string} [identifier] - Identifier for Payment Mode + * @property {boolean} [skip] - Decide if the default payment mode will skip the + * payment options page altogether or just be preferred on the Frontend + */ /** * @typedef PaymentFlow * @property {AggregatorRoute} [bqr_razorpay] @@ -156,6 +163,7 @@ export = PaymentPlatformModel; * @typedef PaymentOptionAndFlow * @property {RootPaymentMode[]} payment_option - Payment options * @property {PaymentFlow} payment_flows + * @property {PaymentDefaultSelection} [payment_default_selection] */ /** * @typedef AdvanceObject @@ -279,7 +287,7 @@ export = PaymentPlatformModel; */ /** * @typedef UpdatePayoutResponse - * @property {boolean} [is_default] - Enable or Disable Default Payout + * @property {boolean} is_default - Enable or Disable Default Payout * @property {boolean} is_active - Enable or DIsable Flag Payout * @property {boolean} success - Response is successful or not */ @@ -291,8 +299,7 @@ export = PaymentPlatformModel; */ /** * @typedef DeletePayoutResponse - * @property {boolean} [delete] - Delete is successful or not - * @property {string} [unique_transfer_no] - Unique transafer no of payout + * @property {boolean} success - Response is successful or not */ /** * @typedef SubscriptionPaymentMethodResponse @@ -404,69 +411,28 @@ export = PaymentPlatformModel; * @property {boolean} success - Payment confirmation updated or not. */ /** - * @typedef AdvancePaymentLimitConfig - * @property {boolean} [is_active] - * @property {string} [prepayment_type] - * @property {number} [prepayment_value] - * @property {string} [cancellation_type] - * @property {string[]} [all_prepayment_type] - */ -/** - * @typedef CODLimitConfig - * @property {number} [storefront] - * @property {number} [pos] - */ -/** - * @typedef CODPaymentLimitConfig - * @property {boolean} [is_active] - * @property {number} [usages] - * @property {number} [user_id] - * @property {string} [merchant_user_id] - * @property {CODLimitConfig} [limit] - */ -/** - * @typedef UserPaymentLimitConfig - * @property {AdvancePaymentLimitConfig} [advance] - * @property {CODPaymentLimitConfig} [cod] - */ -/** - * @typedef GetUserBULimitResponse - * @property {string} [buisness_unit] - * @property {string} [display_name] - * @property {UserPaymentLimitConfig} [config] + * @typedef CODdata + * @property {number} remaining_limit - Remaining Limit for COD of User + * @property {string} user_id - Payment mode name + * @property {boolean} is_active - COD option is active or not + * @property {number} limit - Total Limit of user + * @property {number} usages - Used COD limit from the user Limit */ /** * @typedef GetUserCODLimitResponse - * @property {boolean} [success] - Response is successful or not - * @property {string} [message] - * @property {GetUserBULimitResponse[]} [items] - */ -/** - * @typedef SetAdvanceLimitConfig - * @property {boolean} is_active - * @property {string} prepayment_type - * @property {number} prepayment_value - * @property {string} cancellation_type - */ -/** - * @typedef SetCODLimitConfig - * @property {boolean} is_active - */ -/** - * @typedef SetUserPaymentLimitConfig - * @property {SetAdvanceLimitConfig} advance - * @property {SetCODLimitConfig} cod - */ -/** - * @typedef SetBUPaymentLimit - * @property {string} buisness_unit - Business Unit - 'storefront'/ 'pos' - * @property {SetUserPaymentLimitConfig} config + * @property {CODdata} user_cod_data + * @property {boolean} success - Response is successful or not */ /** * @typedef SetCODForUserRequest - * @property {string} [mobile_no] - Mobile No. of User + * @property {string} mobileno - Mobile No. of User + * @property {boolean} is_active - Either true or false * @property {string} merchant_user_id - Merchant User id - * @property {SetBUPaymentLimit[]} items + */ +/** + * @typedef SetCODOptionResponse + * @property {string} message - Message + * @property {boolean} success - Response is successful or not */ /** * @typedef EdcModelData @@ -844,12 +810,6 @@ export = PaymentPlatformModel; * @property {GetPaymentCode} data * @property {boolean} success - Response is successful or not. */ -/** - * @typedef PlatformOnlineOfflinePaymentResponse - * @property {string} [message] - Message - * @property {Object} [items] - List of all aggregator and payment mode details. - * @property {boolean} success - Response is successful or not. - */ /** * @typedef PlatformPaymentModeResponse * @property {string} [message] - Message @@ -861,18 +821,6 @@ export = PaymentPlatformModel; * @property {Object} [offline] - Details to be updated for online payment configuration. * @property {Object} [online] - Details to be updated for offline payment configuration. */ -/** - * @typedef OfferSerializer - * @property {number} [offer_amount] - Offer amount. - * @property {string} [offer_code] - Offer code. - * @property {string} [offer_description] - Offer description. - * @property {string} [offer_id] - Offer id. - */ -/** - * @typedef AppliedOfferSerializer - * @property {number} [total_applied_offer_amount] - Total applied offer amount - * @property {OfferSerializer[]} [offer_list] - */ /** * @typedef OrderDetail * @property {string} gid - Global identifier of the entity (e.g. order, cart @@ -950,13 +898,13 @@ export = PaymentPlatformModel; * @property {string} gid - Global identifier of the entity (e.g. order, cart * etc.) against which payment_session was initiated. This is generated by * Fynd payments platform and is unique. - * @property {AppliedOfferSerializer} [applied_payment_offers] * @property {OrderDetail} order_details - The details of the order. * @property {string} status - Status of the payment. * @property {string} currency - Currency of the payment. * @property {PaymentSessionDetail[]} payment_details - The payment details with * the schema `PaymentSessionDetail`. * @property {number} total_amount - Amount paid. + * @property {string} checksum - Checksum to verify the payload */ /** * @typedef PaymentSessionResponseSerializer @@ -995,9 +943,10 @@ export = PaymentPlatformModel; * @property {string} currency - The currency of the payment. * @property {PaymentSessionDetail} payment_details - Details of the payment * @property {number} total_amount - The total amount refunded. - * @property {RefundSessionDetail[]} [refund_details] - Details of the refund + * @property {RefundSessionDetail[]} refund_details - Details of the refund * @property {ErrorDescription} [error] * @property {string} [message] - The status of the refund. + * @property {string} checksum - Checksum to verify payload */ /** * @typedef RefundSessionResponseSerializer @@ -1049,7 +998,6 @@ export = PaymentPlatformModel; * @property {Object[]} articles - List of articles that are added in cart * @property {number} cart_value - Total cart value i.e. amount to be paid * @property {number} [total_quantity] - Total number of items in cart - * @property {number} [seller_company_id] - Seller company id */ /** * @typedef RefundDetailsSerializer @@ -1165,7 +1113,7 @@ export = PaymentPlatformModel; * @typedef AggregatorVersionResponse * @property {string} message - Message * @property {boolean} success - Successful or failure - * @property {AggregatorVersionItemSchema[]} [items] + * @property {AggregatorVersionItemSchema} [items] */ /** * @typedef AggregatorVersionRequestSchema @@ -1226,158 +1174,10 @@ export = PaymentPlatformModel; * @property {string} message * @property {PaymentModeCustomConfigSchema[]} items */ -/** - * @typedef DeleteRefundAccountResponse - * @property {boolean} success - Success/Failure of the deleted beneficiary - * @property {string} message - Message - */ -/** - * @typedef RefundOptionsDetails - * @property {string} display_name - Refund option display name - * @property {number} id - Refund ID. It will be unique identifier - * @property {boolean} [is_active] - Refund option is active or not - * @property {string} name - Refund option name - */ -/** - * @typedef RefundOptions - * @property {RefundOptionsDetails} items - List of all refund options. - */ -/** - * @typedef OfflineRefundOptions - * @property {RefundOptionsDetails} items - List of all refund options. - * @property {string[]} payment_modes - List of all offline payment options. MOP - * Code value - */ -/** - * @typedef RefundOptionResponse - * @property {OfflineRefundOptions} offline_refund_options - Available offline - * refund options data - * @property {boolean} success - Success/Failure Of response - * @property {RefundOptions} refund_options - Available refund options data - */ -/** - * @typedef SelectedRefundOptionResponse - * @property {Object} transfer_mode - Selected transfer mode for given shipment - * @property {string} shipment_id - Shipment ID - * @property {string} message - Message - * @property {boolean} success - Successful or not. - */ -/** - * @typedef WalletBeneficiaryDetails - * @property {string} beneficiary_id - Benenficiary Id - * @property {string} modified_on - MOdification Date of Beneficiary - * @property {string} display_name - Display Name Of Account - * @property {number} id - - * @property {string} subtitle - SHort Title Of Account - * @property {string} transfer_mode - Transfer Mode Of Account - * @property {string} [mobile] - MObile no of User - * @property {boolean} is_active - Boolean Flag whether Beneficiary set or not - * @property {string} created_on - Creation Date of Beneficiary - * @property {string} address - Address of User - * @property {string} title - Title Of Account - * @property {string} wallet_address - Bank Name Of Account - * @property {string} [comment] - Remarks - * @property {string} [wallet] - Branch Name Of Account - * @property {string} email - EMail of User - * @property {string} [delights_user_name] - User Id Who filled the Beneficiary - */ -/** - * @typedef UpiBeneficiaryDetails - * @property {string} beneficiary_id - Benenficiary Id - * @property {string} modified_on - MOdification Date of Beneficiary - * @property {string} display_name - Display Name Of Account - * @property {number} id - - * @property {string} subtitle - SHort Title Of Account - * @property {string} transfer_mode - Transfer Mode Of Account - * @property {string} [vpa] - Branch Name Of Account - * @property {string} [mobile] - Mobile no of User - * @property {string} vpa_address - Bank Name Of Account - * @property {string} created_on - Creation Date of Beneficiary - * @property {string} address - Address of User - * @property {string} title - Title Of Account - * @property {string} [comment] - Remarks - * @property {boolean} is_active - Boolean Flag whether Beneficiary set or not - * @property {string} email - EMail of User - * @property {string} [delights_user_name] - User Id Who filled the Beneficiary - */ -/** - * @typedef BeneficiaryRefundOptions - * @property {OrderBeneficiaryDetails} [bank] - List of all add bank beneficiary details. - * @property {WalletBeneficiaryDetails} [wallet] - List of all add Wallet - * beneficiary details. - * @property {UpiBeneficiaryDetails} [upi] - List of all add UPI beneficiary details. - */ -/** - * @typedef OrderBeneficiaryResponseSchemaV2 - * @property {boolean} show_beneficiary_details - Show Beneficiary details on UI or not. - * @property {BeneficiaryRefundOptions} data - Beneficiary Data for Bank - * account, UPI and Wallets. - * @property {Object} limit - Max Limit for adding bank account, UPI and wallet - */ -/** - * @typedef ValidateValidateAddressRequest - * @property {string} [ifsc_code] - IFSC Code - * @property {string} [upi_vpa] - VPA Address - * @property {string} [aggregator] - Aggregator Name - */ -/** - * @typedef VPADetails - * @property {boolean} is_valid - Is VPA valid or not - * @property {string} upi_vpa - VPA address - * @property {string} status - VPA validation message - * @property {string} customer_name - VPA Customer Name - */ -/** - * @typedef ValidateValidateAddressResponse - * @property {VPADetails} [upi] - UPI validation details. - * @property {boolean} success - Successful or not. - * @property {Object} [ifsc] - IFSC details response data - */ -/** - * @typedef SetDefaultBeneficiaryRequest - * @property {string} order_id - Merchant Order Id - * @property {string} beneficiary_id - Beneficiary Hash Id of the beneficiary added - * @property {string} [shipment_id] - Shipment Id from respective merchant order ID - */ -/** - * @typedef SetDefaultBeneficiaryResponse - * @property {boolean} is_beneficiary_set - Boolean Flag whether Beneficiary set or not - * @property {boolean} [success] - Response is successful or not - */ -/** - * @typedef ShipmentRefundRequest - * @property {string} shipment_id - Shipment Id of the respective Merchant Order Id - * @property {string} order_id - Merchant Order Id - * @property {string} transfer_mode - Transfer Mode of the Beneficiary to be added - * @property {string} [beneficiary_id] - Beneficiary Hash Id of the beneficiary added - */ -/** - * @typedef ShipmentRefundDetail - * @property {string} shipment_id - Shipment ID - * @property {string} order_id - Order ID - * @property {string} transfer_mode - TransferMode - * @property {string} beneficiary_id - Beneficiary ID - */ -/** - * @typedef ShipmentRefundResponse - * @property {ShipmentRefundDetail} data - Selected Shipment refund option details. - * @property {boolean} success - Successful or not. - * @property {string} message - Message - */ -/** - * @typedef PennyDropValidationResponse - * @property {boolean} success - Successful or not. - * @property {string} message - Message - * @property {boolean} allow_pennydrop_validation - PennyDrop validation flag. - */ -/** - * @typedef UpdatePennyDropValidationRequest - * @property {boolean} allow_pennydrop_validation - Allow Penny Drop Validation flag - */ declare class PaymentPlatformModel { } declare namespace PaymentPlatformModel { - export { PaymentGatewayConfigResponse, ErrorCodeDescription, PaymentGatewayConfig, PaymentGatewayConfigRequest, PaymentGatewayToBeReviewed, ErrorCodeAndDescription, HttpErrorCodeAndResponse, IntentAppErrorList, ProductCODData, CODChargesLimitsResponse, PaymentModeLogo, IntentApp, PaymentModeList, RootPaymentMode, PaymentOptions, AggregatorRoute, PaymentFlow, PaymentOptionAndFlow, AdvanceObject, SplitObject, AdvancePaymentObject, PaymentModeRouteResponse, PaymentOptionsResponse, PayoutCustomer, PayoutMoreAttributes, PayoutAggregator, Payout, PayoutsResponse, PayoutBankDetails, PayoutRequest, PayoutResponse, UpdatePayoutResponse, UpdatePayoutRequest, DeletePayoutResponse, SubscriptionPaymentMethodResponse, DeleteSubscriptionPaymentMethodResponse, SubscriptionConfigResponse, SaveSubscriptionSetupIntentRequest, SaveSubscriptionSetupIntentResponse, RefundAccountResponse, NotFoundResourceError, BankDetailsForOTP, AddBeneficiaryDetailsOTPRequest, IfscCodeResponse, OrderBeneficiaryDetails, OrderBeneficiaryResponse, MultiTenderPaymentMeta, MultiTenderPaymentMethod, PaymentConfirmationRequest, PaymentConfirmationResponse, AdvancePaymentLimitConfig, CODLimitConfig, CODPaymentLimitConfig, UserPaymentLimitConfig, GetUserBULimitResponse, GetUserCODLimitResponse, SetAdvanceLimitConfig, SetCODLimitConfig, SetUserPaymentLimitConfig, SetBUPaymentLimit, SetCODForUserRequest, EdcModelData, EdcAggregatorAndModelListResponse, StatisticsData, EdcDeviceStatsResponse, EdcAddRequest, EdcDevice, EdcDeviceAddResponse, EdcDeviceDetailsResponse, EdcUpdateRequest, EdcDeviceUpdateResponse, Page, EdcDeviceListResponse, PaymentInitializationRequest, PaymentInitializationResponse, PaymentStatusUpdateRequest, PaymentStatusUpdateResponse, ResendOrCancelPaymentRequest, LinkStatus, ResendOrCancelPaymentResponse, PaymentStatusBulkHandlerRequest, PaymentObjectListSerializer, PaymentStatusObject, PaymentStatusBulkHandlerResponse, GetOauthUrlResponse, RevokeOAuthToken, RepaymentRequestDetails, RepaymentDetailsSerialiserPayAll, RepaymentResponse, MerchantOnBoardingRequest, MerchantOnBoardingResponse, ValidateCustomerRequest, ValidateCustomerResponse, GetPaymentLinkResponse, ErrorDescription, ErrorResponse, CreatePaymentLinkMeta, CreatePaymentLinkRequest, CreatePaymentLinkResponse, PollingPaymentLinkResponse, CancelOrResendPaymentLinkRequest, ResendPaymentLinkResponse, CancelPaymentLinkResponse, Code, PaymentCode, GetPaymentCode, GetPaymentCodeResponse, PlatformOnlineOfflinePaymentResponse, PlatformPaymentModeResponse, MerchnatPaymentModeRequest, OfferSerializer, AppliedOfferSerializer, OrderDetail, AddressDetail, PaymentSessionDetail, PaymentSessionRequestSerializer, PaymentSessionResponseSerializer, RefundSessionDetail, RefundSessionRequestSerializer, RefundSessionResponseSerializer, PaymentDetailsSerializer, CartDetailsSerializer, RefundDetailsSerializer, PaymentSessionSerializer, RefundSourcesPriority, RefundPriorityResponseSerializer, RefundPriorityRequestSerializer, MerchantPaymentModeRequest, FromConfig, ToConfig, PlatformPaymentModeCopyConfigRequest, PaymentMethodsMetaOrder, PaymentOrderMethods, PaymentOrderRequest, PaymentOrderData, PaymentOrderResponse, AggregatorVersionItemSchema, AggregatorVersionResponse, AggregatorVersionRequestSchema, AggregatorControlRequest, PaymentModeCustomConfigSchema, PaymentCustomConfigDetailsSchema, PaymentCustomConfigCustomerSchema, PaymentCustomConfigModeSchema, PaymentCustomConfigDetailsRequestSchema, PaymentCustomConfigCustomerRequestSchema, PaymentCustomConfigRequestSchema, PaymentCustomConfigResponseSchema, DeleteRefundAccountResponse, RefundOptionsDetails, RefundOptions, OfflineRefundOptions, RefundOptionResponse, SelectedRefundOptionResponse, WalletBeneficiaryDetails, UpiBeneficiaryDetails, BeneficiaryRefundOptions, OrderBeneficiaryResponseSchemaV2, ValidateValidateAddressRequest, VPADetails, ValidateValidateAddressResponse, SetDefaultBeneficiaryRequest, SetDefaultBeneficiaryResponse, ShipmentRefundRequest, ShipmentRefundDetail, ShipmentRefundResponse, PennyDropValidationResponse, UpdatePennyDropValidationRequest }; + export { PaymentGatewayConfigResponse, ErrorCodeDescription, PaymentGatewayConfig, PaymentGatewayConfigRequest, PaymentGatewayToBeReviewed, ErrorCodeAndDescription, HttpErrorCodeAndResponse, IntentAppErrorList, ProductCODData, CODChargesLimitsResponse, PaymentModeLogo, IntentApp, PaymentModeList, RootPaymentMode, PaymentOptions, AggregatorRoute, PaymentDefaultSelection, PaymentFlow, PaymentOptionAndFlow, AdvanceObject, SplitObject, AdvancePaymentObject, PaymentModeRouteResponse, PaymentOptionsResponse, PayoutCustomer, PayoutMoreAttributes, PayoutAggregator, Payout, PayoutsResponse, PayoutBankDetails, PayoutRequest, PayoutResponse, UpdatePayoutResponse, UpdatePayoutRequest, DeletePayoutResponse, SubscriptionPaymentMethodResponse, DeleteSubscriptionPaymentMethodResponse, SubscriptionConfigResponse, SaveSubscriptionSetupIntentRequest, SaveSubscriptionSetupIntentResponse, RefundAccountResponse, NotFoundResourceError, BankDetailsForOTP, AddBeneficiaryDetailsOTPRequest, IfscCodeResponse, OrderBeneficiaryDetails, OrderBeneficiaryResponse, MultiTenderPaymentMeta, MultiTenderPaymentMethod, PaymentConfirmationRequest, PaymentConfirmationResponse, CODdata, GetUserCODLimitResponse, SetCODForUserRequest, SetCODOptionResponse, EdcModelData, EdcAggregatorAndModelListResponse, StatisticsData, EdcDeviceStatsResponse, EdcAddRequest, EdcDevice, EdcDeviceAddResponse, EdcDeviceDetailsResponse, EdcUpdateRequest, EdcDeviceUpdateResponse, Page, EdcDeviceListResponse, PaymentInitializationRequest, PaymentInitializationResponse, PaymentStatusUpdateRequest, PaymentStatusUpdateResponse, ResendOrCancelPaymentRequest, LinkStatus, ResendOrCancelPaymentResponse, PaymentStatusBulkHandlerRequest, PaymentObjectListSerializer, PaymentStatusObject, PaymentStatusBulkHandlerResponse, GetOauthUrlResponse, RevokeOAuthToken, RepaymentRequestDetails, RepaymentDetailsSerialiserPayAll, RepaymentResponse, MerchantOnBoardingRequest, MerchantOnBoardingResponse, ValidateCustomerRequest, ValidateCustomerResponse, GetPaymentLinkResponse, ErrorDescription, ErrorResponse, CreatePaymentLinkMeta, CreatePaymentLinkRequest, CreatePaymentLinkResponse, PollingPaymentLinkResponse, CancelOrResendPaymentLinkRequest, ResendPaymentLinkResponse, CancelPaymentLinkResponse, Code, PaymentCode, GetPaymentCode, GetPaymentCodeResponse, PlatformPaymentModeResponse, MerchnatPaymentModeRequest, OrderDetail, AddressDetail, PaymentSessionDetail, PaymentSessionRequestSerializer, PaymentSessionResponseSerializer, RefundSessionDetail, RefundSessionRequestSerializer, RefundSessionResponseSerializer, PaymentDetailsSerializer, CartDetailsSerializer, RefundDetailsSerializer, PaymentSessionSerializer, RefundSourcesPriority, RefundPriorityResponseSerializer, RefundPriorityRequestSerializer, MerchantPaymentModeRequest, FromConfig, ToConfig, PlatformPaymentModeCopyConfigRequest, PaymentMethodsMetaOrder, PaymentOrderMethods, PaymentOrderRequest, PaymentOrderData, PaymentOrderResponse, AggregatorVersionItemSchema, AggregatorVersionResponse, AggregatorVersionRequestSchema, AggregatorControlRequest, PaymentModeCustomConfigSchema, PaymentCustomConfigDetailsSchema, PaymentCustomConfigCustomerSchema, PaymentCustomConfigModeSchema, PaymentCustomConfigDetailsRequestSchema, PaymentCustomConfigCustomerRequestSchema, PaymentCustomConfigRequestSchema, PaymentCustomConfigResponseSchema }; } /** @returns {PaymentGatewayConfigResponse} */ declare function PaymentGatewayConfigResponse(): PaymentGatewayConfigResponse; @@ -1446,7 +1246,7 @@ type PaymentGatewayConfig = { /** * - Merchant key of the payment aggregator */ - merchant_salt?: string; + merchant_salt: string; }; /** @returns {PaymentGatewayConfigRequest} */ declare function PaymentGatewayConfigRequest(): PaymentGatewayConfigRequest; @@ -1459,7 +1259,7 @@ type PaymentGatewayConfigRequest = { * - Enable or Disable Flag */ is_active?: boolean; - aggregator?: PaymentGatewayConfig; + aggregator_name?: PaymentGatewayConfig; }; /** @returns {PaymentGatewayToBeReviewed} */ declare function PaymentGatewayToBeReviewed(): PaymentGatewayToBeReviewed; @@ -1467,7 +1267,7 @@ type PaymentGatewayToBeReviewed = { /** * - List of added payment gateway */ - aggregators?: string[]; + aggregator: string[]; /** * - Response is successful or not */ @@ -1769,6 +1569,23 @@ type AggregatorRoute = { */ api_link?: string; }; +/** @returns {PaymentDefaultSelection} */ +declare function PaymentDefaultSelection(): PaymentDefaultSelection; +type PaymentDefaultSelection = { + /** + * - Default Selection Payment Mode + */ + mode?: string; + /** + * - Identifier for Payment Mode + */ + identifier?: string; + /** + * - Decide if the default payment mode will skip the + * payment options page altogether or just be preferred on the Frontend + */ + skip?: boolean; +}; /** @returns {PaymentFlow} */ declare function PaymentFlow(): PaymentFlow; type PaymentFlow = { @@ -1794,6 +1611,7 @@ type PaymentOptionAndFlow = { */ payment_option: RootPaymentMode[]; payment_flows: PaymentFlow; + payment_default_selection?: PaymentDefaultSelection; }; /** @returns {AdvanceObject} */ declare function AdvanceObject(): AdvanceObject; @@ -2120,7 +1938,7 @@ type UpdatePayoutResponse = { /** * - Enable or Disable Default Payout */ - is_default?: boolean; + is_default: boolean; /** * - Enable or DIsable Flag Payout */ @@ -2150,13 +1968,9 @@ type UpdatePayoutRequest = { declare function DeletePayoutResponse(): DeletePayoutResponse; type DeletePayoutResponse = { /** - * - Delete is successful or not - */ - delete?: boolean; - /** - * - Unique transafer no of payout + * - Response is successful or not */ - unique_transfer_no?: string; + success: boolean; }; /** @returns {SubscriptionPaymentMethodResponse} */ declare function SubscriptionPaymentMethodResponse(): SubscriptionPaymentMethodResponse; @@ -2418,80 +2232,38 @@ type PaymentConfirmationResponse = { */ success: boolean; }; -/** @returns {AdvancePaymentLimitConfig} */ -declare function AdvancePaymentLimitConfig(): AdvancePaymentLimitConfig; -type AdvancePaymentLimitConfig = { - is_active?: boolean; - prepayment_type?: string; - prepayment_value?: number; - cancellation_type?: string; - all_prepayment_type?: string[]; -}; -/** @returns {CODLimitConfig} */ -declare function CODLimitConfig(): CODLimitConfig; -type CODLimitConfig = { - storefront?: number; - pos?: number; -}; -/** @returns {CODPaymentLimitConfig} */ -declare function CODPaymentLimitConfig(): CODPaymentLimitConfig; -type CODPaymentLimitConfig = { - is_active?: boolean; - usages?: number; - user_id?: number; - merchant_user_id?: string; - limit?: CODLimitConfig; -}; -/** @returns {UserPaymentLimitConfig} */ -declare function UserPaymentLimitConfig(): UserPaymentLimitConfig; -type UserPaymentLimitConfig = { - advance?: AdvancePaymentLimitConfig; - cod?: CODPaymentLimitConfig; -}; -/** @returns {GetUserBULimitResponse} */ -declare function GetUserBULimitResponse(): GetUserBULimitResponse; -type GetUserBULimitResponse = { - buisness_unit?: string; - display_name?: string; - config?: UserPaymentLimitConfig; +/** @returns {CODdata} */ +declare function CODdata(): CODdata; +type CODdata = { + /** + * - Remaining Limit for COD of User + */ + remaining_limit: number; + /** + * - Payment mode name + */ + user_id: string; + /** + * - COD option is active or not + */ + is_active: boolean; + /** + * - Total Limit of user + */ + limit: number; + /** + * - Used COD limit from the user Limit + */ + usages: number; }; /** @returns {GetUserCODLimitResponse} */ declare function GetUserCODLimitResponse(): GetUserCODLimitResponse; type GetUserCODLimitResponse = { + user_cod_data: CODdata; /** * - Response is successful or not */ - success?: boolean; - message?: string; - items?: GetUserBULimitResponse[]; -}; -/** @returns {SetAdvanceLimitConfig} */ -declare function SetAdvanceLimitConfig(): SetAdvanceLimitConfig; -type SetAdvanceLimitConfig = { - is_active: boolean; - prepayment_type: string; - prepayment_value: number; - cancellation_type: string; -}; -/** @returns {SetCODLimitConfig} */ -declare function SetCODLimitConfig(): SetCODLimitConfig; -type SetCODLimitConfig = { - is_active: boolean; -}; -/** @returns {SetUserPaymentLimitConfig} */ -declare function SetUserPaymentLimitConfig(): SetUserPaymentLimitConfig; -type SetUserPaymentLimitConfig = { - advance: SetAdvanceLimitConfig; - cod: SetCODLimitConfig; -}; -/** @returns {SetBUPaymentLimit} */ -declare function SetBUPaymentLimit(): SetBUPaymentLimit; -type SetBUPaymentLimit = { - /** - * - Business Unit - 'storefront'/ 'pos' - */ - buisness_unit: string; - config: SetUserPaymentLimitConfig; + success: boolean; }; /** @returns {SetCODForUserRequest} */ declare function SetCODForUserRequest(): SetCODForUserRequest; @@ -2499,12 +2271,27 @@ type SetCODForUserRequest = { /** * - Mobile No. of User */ - mobile_no?: string; + mobileno: string; + /** + * - Either true or false + */ + is_active: boolean; /** * - Merchant User id */ merchant_user_id: string; - items: SetBUPaymentLimit[]; +}; +/** @returns {SetCODOptionResponse} */ +declare function SetCODOptionResponse(): SetCODOptionResponse; +type SetCODOptionResponse = { + /** + * - Message + */ + message: string; + /** + * - Response is successful or not + */ + success: boolean; }; /** @returns {EdcModelData} */ declare function EdcModelData(): EdcModelData; @@ -3483,22 +3270,6 @@ type GetPaymentCodeResponse = { */ success: boolean; }; -/** @returns {PlatformOnlineOfflinePaymentResponse} */ -declare function PlatformOnlineOfflinePaymentResponse(): PlatformOnlineOfflinePaymentResponse; -type PlatformOnlineOfflinePaymentResponse = { - /** - * - Message - */ - message?: string; - /** - * - List of all aggregator and payment mode details. - */ - items?: any; - /** - * - Response is successful or not. - */ - success: boolean; -}; /** @returns {PlatformPaymentModeResponse} */ declare function PlatformPaymentModeResponse(): PlatformPaymentModeResponse; type PlatformPaymentModeResponse = { @@ -3527,35 +3298,6 @@ type MerchnatPaymentModeRequest = { */ online?: any; }; -/** @returns {OfferSerializer} */ -declare function OfferSerializer(): OfferSerializer; -type OfferSerializer = { - /** - * - Offer amount. - */ - offer_amount?: number; - /** - * - Offer code. - */ - offer_code?: string; - /** - * - Offer description. - */ - offer_description?: string; - /** - * - Offer id. - */ - offer_id?: string; -}; -/** @returns {AppliedOfferSerializer} */ -declare function AppliedOfferSerializer(): AppliedOfferSerializer; -type AppliedOfferSerializer = { - /** - * - Total applied offer amount - */ - total_applied_offer_amount?: number; - offer_list?: OfferSerializer[]; -}; /** @returns {OrderDetail} */ declare function OrderDetail(): OrderDetail; type OrderDetail = { @@ -3781,7 +3523,6 @@ type PaymentSessionRequestSerializer = { * Fynd payments platform and is unique. */ gid: string; - applied_payment_offers?: AppliedOfferSerializer; /** * - The details of the order. */ @@ -3803,6 +3544,10 @@ type PaymentSessionRequestSerializer = { * - Amount paid. */ total_amount: number; + /** + * - Checksum to verify the payload + */ + checksum: string; }; /** @returns {PaymentSessionResponseSerializer} */ declare function PaymentSessionResponseSerializer(): PaymentSessionResponseSerializer; @@ -3916,12 +3661,16 @@ type RefundSessionRequestSerializer = { /** * - Details of the refund */ - refund_details?: RefundSessionDetail[]; + refund_details: RefundSessionDetail[]; error?: ErrorDescription; /** * - The status of the refund. */ message?: string; + /** + * - Checksum to verify payload + */ + checksum: string; }; /** @returns {RefundSessionResponseSerializer} */ declare function RefundSessionResponseSerializer(): RefundSessionResponseSerializer; @@ -4060,10 +3809,6 @@ type CartDetailsSerializer = { * - Total number of items in cart */ total_quantity?: number; - /** - * - Seller company id - */ - seller_company_id?: number; }; /** @returns {RefundDetailsSerializer} */ declare function RefundDetailsSerializer(): RefundDetailsSerializer; @@ -4363,7 +4108,7 @@ type AggregatorVersionResponse = { * - Successful or failure */ success: boolean; - items?: AggregatorVersionItemSchema[]; + items?: AggregatorVersionItemSchema; }; /** @returns {AggregatorVersionRequestSchema} */ declare function AggregatorVersionRequestSchema(): AggregatorVersionRequestSchema; @@ -4482,423 +4227,3 @@ type PaymentCustomConfigResponseSchema = { message: string; items: PaymentModeCustomConfigSchema[]; }; -/** @returns {DeleteRefundAccountResponse} */ -declare function DeleteRefundAccountResponse(): DeleteRefundAccountResponse; -type DeleteRefundAccountResponse = { - /** - * - Success/Failure of the deleted beneficiary - */ - success: boolean; - /** - * - Message - */ - message: string; -}; -/** @returns {RefundOptionsDetails} */ -declare function RefundOptionsDetails(): RefundOptionsDetails; -type RefundOptionsDetails = { - /** - * - Refund option display name - */ - display_name: string; - /** - * - Refund ID. It will be unique identifier - */ - id: number; - /** - * - Refund option is active or not - */ - is_active?: boolean; - /** - * - Refund option name - */ - name: string; -}; -/** @returns {RefundOptions} */ -declare function RefundOptions(): RefundOptions; -type RefundOptions = { - /** - * - List of all refund options. - */ - items: RefundOptionsDetails; -}; -/** @returns {OfflineRefundOptions} */ -declare function OfflineRefundOptions(): OfflineRefundOptions; -type OfflineRefundOptions = { - /** - * - List of all refund options. - */ - items: RefundOptionsDetails; - /** - * - List of all offline payment options. MOP - * Code value - */ - payment_modes: string[]; -}; -/** @returns {RefundOptionResponse} */ -declare function RefundOptionResponse(): RefundOptionResponse; -type RefundOptionResponse = { - /** - * - Available offline - * refund options data - */ - offline_refund_options: OfflineRefundOptions; - /** - * - Success/Failure Of response - */ - success: boolean; - /** - * - Available refund options data - */ - refund_options: RefundOptions; -}; -/** @returns {SelectedRefundOptionResponse} */ -declare function SelectedRefundOptionResponse(): SelectedRefundOptionResponse; -type SelectedRefundOptionResponse = { - /** - * - Selected transfer mode for given shipment - */ - transfer_mode: any; - /** - * - Shipment ID - */ - shipment_id: string; - /** - * - Message - */ - message: string; - /** - * - Successful or not. - */ - success: boolean; -}; -/** @returns {WalletBeneficiaryDetails} */ -declare function WalletBeneficiaryDetails(): WalletBeneficiaryDetails; -type WalletBeneficiaryDetails = { - /** - * - Benenficiary Id - */ - beneficiary_id: string; - /** - * - MOdification Date of Beneficiary - */ - modified_on: string; - /** - * - Display Name Of Account - */ - display_name: string; - /** - * - - */ - id: number; - /** - * - SHort Title Of Account - */ - subtitle: string; - /** - * - Transfer Mode Of Account - */ - transfer_mode: string; - /** - * - MObile no of User - */ - mobile?: string; - /** - * - Boolean Flag whether Beneficiary set or not - */ - is_active: boolean; - /** - * - Creation Date of Beneficiary - */ - created_on: string; - /** - * - Address of User - */ - address: string; - /** - * - Title Of Account - */ - title: string; - /** - * - Bank Name Of Account - */ - wallet_address: string; - /** - * - Remarks - */ - comment?: string; - /** - * - Branch Name Of Account - */ - wallet?: string; - /** - * - EMail of User - */ - email: string; - /** - * - User Id Who filled the Beneficiary - */ - delights_user_name?: string; -}; -/** @returns {UpiBeneficiaryDetails} */ -declare function UpiBeneficiaryDetails(): UpiBeneficiaryDetails; -type UpiBeneficiaryDetails = { - /** - * - Benenficiary Id - */ - beneficiary_id: string; - /** - * - MOdification Date of Beneficiary - */ - modified_on: string; - /** - * - Display Name Of Account - */ - display_name: string; - /** - * - - */ - id: number; - /** - * - SHort Title Of Account - */ - subtitle: string; - /** - * - Transfer Mode Of Account - */ - transfer_mode: string; - /** - * - Branch Name Of Account - */ - vpa?: string; - /** - * - Mobile no of User - */ - mobile?: string; - /** - * - Bank Name Of Account - */ - vpa_address: string; - /** - * - Creation Date of Beneficiary - */ - created_on: string; - /** - * - Address of User - */ - address: string; - /** - * - Title Of Account - */ - title: string; - /** - * - Remarks - */ - comment?: string; - /** - * - Boolean Flag whether Beneficiary set or not - */ - is_active: boolean; - /** - * - EMail of User - */ - email: string; - /** - * - User Id Who filled the Beneficiary - */ - delights_user_name?: string; -}; -/** @returns {BeneficiaryRefundOptions} */ -declare function BeneficiaryRefundOptions(): BeneficiaryRefundOptions; -type BeneficiaryRefundOptions = { - /** - * - List of all add bank beneficiary details. - */ - bank?: OrderBeneficiaryDetails; - /** - * - List of all add Wallet - * beneficiary details. - */ - wallet?: WalletBeneficiaryDetails; - /** - * - List of all add UPI beneficiary details. - */ - upi?: UpiBeneficiaryDetails; -}; -/** @returns {OrderBeneficiaryResponseSchemaV2} */ -declare function OrderBeneficiaryResponseSchemaV2(): OrderBeneficiaryResponseSchemaV2; -type OrderBeneficiaryResponseSchemaV2 = { - /** - * - Show Beneficiary details on UI or not. - */ - show_beneficiary_details: boolean; - /** - * - Beneficiary Data for Bank - * account, UPI and Wallets. - */ - data: BeneficiaryRefundOptions; - /** - * - Max Limit for adding bank account, UPI and wallet - */ - limit: any; -}; -/** @returns {ValidateValidateAddressRequest} */ -declare function ValidateValidateAddressRequest(): ValidateValidateAddressRequest; -type ValidateValidateAddressRequest = { - /** - * - IFSC Code - */ - ifsc_code?: string; - /** - * - VPA Address - */ - upi_vpa?: string; - /** - * - Aggregator Name - */ - aggregator?: string; -}; -/** @returns {VPADetails} */ -declare function VPADetails(): VPADetails; -type VPADetails = { - /** - * - Is VPA valid or not - */ - is_valid: boolean; - /** - * - VPA address - */ - upi_vpa: string; - /** - * - VPA validation message - */ - status: string; - /** - * - VPA Customer Name - */ - customer_name: string; -}; -/** @returns {ValidateValidateAddressResponse} */ -declare function ValidateValidateAddressResponse(): ValidateValidateAddressResponse; -type ValidateValidateAddressResponse = { - /** - * - UPI validation details. - */ - upi?: VPADetails; - /** - * - Successful or not. - */ - success: boolean; - /** - * - IFSC details response data - */ - ifsc?: any; -}; -/** @returns {SetDefaultBeneficiaryRequest} */ -declare function SetDefaultBeneficiaryRequest(): SetDefaultBeneficiaryRequest; -type SetDefaultBeneficiaryRequest = { - /** - * - Merchant Order Id - */ - order_id: string; - /** - * - Beneficiary Hash Id of the beneficiary added - */ - beneficiary_id: string; - /** - * - Shipment Id from respective merchant order ID - */ - shipment_id?: string; -}; -/** @returns {SetDefaultBeneficiaryResponse} */ -declare function SetDefaultBeneficiaryResponse(): SetDefaultBeneficiaryResponse; -type SetDefaultBeneficiaryResponse = { - /** - * - Boolean Flag whether Beneficiary set or not - */ - is_beneficiary_set: boolean; - /** - * - Response is successful or not - */ - success?: boolean; -}; -/** @returns {ShipmentRefundRequest} */ -declare function ShipmentRefundRequest(): ShipmentRefundRequest; -type ShipmentRefundRequest = { - /** - * - Shipment Id of the respective Merchant Order Id - */ - shipment_id: string; - /** - * - Merchant Order Id - */ - order_id: string; - /** - * - Transfer Mode of the Beneficiary to be added - */ - transfer_mode: string; - /** - * - Beneficiary Hash Id of the beneficiary added - */ - beneficiary_id?: string; -}; -/** @returns {ShipmentRefundDetail} */ -declare function ShipmentRefundDetail(): ShipmentRefundDetail; -type ShipmentRefundDetail = { - /** - * - Shipment ID - */ - shipment_id: string; - /** - * - Order ID - */ - order_id: string; - /** - * - TransferMode - */ - transfer_mode: string; - /** - * - Beneficiary ID - */ - beneficiary_id: string; -}; -/** @returns {ShipmentRefundResponse} */ -declare function ShipmentRefundResponse(): ShipmentRefundResponse; -type ShipmentRefundResponse = { - /** - * - Selected Shipment refund option details. - */ - data: ShipmentRefundDetail; - /** - * - Successful or not. - */ - success: boolean; - /** - * - Message - */ - message: string; -}; -/** @returns {PennyDropValidationResponse} */ -declare function PennyDropValidationResponse(): PennyDropValidationResponse; -type PennyDropValidationResponse = { - /** - * - Successful or not. - */ - success: boolean; - /** - * - Message - */ - message: string; - /** - * - PennyDrop validation flag. - */ - allow_pennydrop_validation: boolean; -}; -/** @returns {UpdatePennyDropValidationRequest} */ -declare function UpdatePennyDropValidationRequest(): UpdatePennyDropValidationRequest; -type UpdatePennyDropValidationRequest = { - /** - * - Allow Penny Drop Validation flag - */ - allow_pennydrop_validation: boolean; -}; diff --git a/sdk/platform/Payment/PaymentPlatformModel.js b/sdk/platform/Payment/PaymentPlatformModel.js index 88e2b623f..2b4d305a1 100644 --- a/sdk/platform/Payment/PaymentPlatformModel.js +++ b/sdk/platform/Payment/PaymentPlatformModel.js @@ -24,19 +24,19 @@ const Joi = require("joi"); * @property {string} config_type - Config Type of the aggregator * @property {boolean} [is_active] - Enable or Disable Flag * @property {string} key - Api key of the payment aggregator - * @property {string} [merchant_salt] - Merchant key of the payment aggregator + * @property {string} merchant_salt - Merchant key of the payment aggregator */ /** * @typedef PaymentGatewayConfigRequest * @property {string} app_id - Application Id to which Payment config Mapped * @property {boolean} [is_active] - Enable or Disable Flag - * @property {PaymentGatewayConfig} [aggregator] + * @property {PaymentGatewayConfig} [aggregator_name] */ /** * @typedef PaymentGatewayToBeReviewed - * @property {string[]} [aggregators] - List of added payment gateway + * @property {string[]} aggregator - List of added payment gateway * @property {boolean} success - Response is successful or not */ @@ -153,6 +153,14 @@ const Joi = require("joi"); * @property {string} [api_link] - Api_link */ +/** + * @typedef PaymentDefaultSelection + * @property {string} [mode] - Default Selection Payment Mode + * @property {string} [identifier] - Identifier for Payment Mode + * @property {boolean} [skip] - Decide if the default payment mode will skip the + * payment options page altogether or just be preferred on the Frontend + */ + /** * @typedef PaymentFlow * @property {AggregatorRoute} [bqr_razorpay] @@ -174,6 +182,7 @@ const Joi = require("joi"); * @typedef PaymentOptionAndFlow * @property {RootPaymentMode[]} payment_option - Payment options * @property {PaymentFlow} payment_flows + * @property {PaymentDefaultSelection} [payment_default_selection] */ /** @@ -311,7 +320,7 @@ const Joi = require("joi"); /** * @typedef UpdatePayoutResponse - * @property {boolean} [is_default] - Enable or Disable Default Payout + * @property {boolean} is_default - Enable or Disable Default Payout * @property {boolean} is_active - Enable or DIsable Flag Payout * @property {boolean} success - Response is successful or not */ @@ -325,8 +334,7 @@ const Joi = require("joi"); /** * @typedef DeletePayoutResponse - * @property {boolean} [delete] - Delete is successful or not - * @property {string} [unique_transfer_no] - Unique transafer no of payout + * @property {boolean} success - Response is successful or not */ /** @@ -455,79 +463,31 @@ const Joi = require("joi"); */ /** - * @typedef AdvancePaymentLimitConfig - * @property {boolean} [is_active] - * @property {string} [prepayment_type] - * @property {number} [prepayment_value] - * @property {string} [cancellation_type] - * @property {string[]} [all_prepayment_type] - */ - -/** - * @typedef CODLimitConfig - * @property {number} [storefront] - * @property {number} [pos] - */ - -/** - * @typedef CODPaymentLimitConfig - * @property {boolean} [is_active] - * @property {number} [usages] - * @property {number} [user_id] - * @property {string} [merchant_user_id] - * @property {CODLimitConfig} [limit] - */ - -/** - * @typedef UserPaymentLimitConfig - * @property {AdvancePaymentLimitConfig} [advance] - * @property {CODPaymentLimitConfig} [cod] - */ - -/** - * @typedef GetUserBULimitResponse - * @property {string} [buisness_unit] - * @property {string} [display_name] - * @property {UserPaymentLimitConfig} [config] + * @typedef CODdata + * @property {number} remaining_limit - Remaining Limit for COD of User + * @property {string} user_id - Payment mode name + * @property {boolean} is_active - COD option is active or not + * @property {number} limit - Total Limit of user + * @property {number} usages - Used COD limit from the user Limit */ /** * @typedef GetUserCODLimitResponse - * @property {boolean} [success] - Response is successful or not - * @property {string} [message] - * @property {GetUserBULimitResponse[]} [items] - */ - -/** - * @typedef SetAdvanceLimitConfig - * @property {boolean} is_active - * @property {string} prepayment_type - * @property {number} prepayment_value - * @property {string} cancellation_type - */ - -/** - * @typedef SetCODLimitConfig - * @property {boolean} is_active - */ - -/** - * @typedef SetUserPaymentLimitConfig - * @property {SetAdvanceLimitConfig} advance - * @property {SetCODLimitConfig} cod + * @property {CODdata} user_cod_data + * @property {boolean} success - Response is successful or not */ /** - * @typedef SetBUPaymentLimit - * @property {string} buisness_unit - Business Unit - 'storefront'/ 'pos' - * @property {SetUserPaymentLimitConfig} config + * @typedef SetCODForUserRequest + * @property {string} mobileno - Mobile No. of User + * @property {boolean} is_active - Either true or false + * @property {string} merchant_user_id - Merchant User id */ /** - * @typedef SetCODForUserRequest - * @property {string} [mobile_no] - Mobile No. of User - * @property {string} merchant_user_id - Merchant User id - * @property {SetBUPaymentLimit[]} items + * @typedef SetCODOptionResponse + * @property {string} message - Message + * @property {boolean} success - Response is successful or not */ /** @@ -952,13 +912,6 @@ const Joi = require("joi"); * @property {boolean} success - Response is successful or not. */ -/** - * @typedef PlatformOnlineOfflinePaymentResponse - * @property {string} [message] - Message - * @property {Object} [items] - List of all aggregator and payment mode details. - * @property {boolean} success - Response is successful or not. - */ - /** * @typedef PlatformPaymentModeResponse * @property {string} [message] - Message @@ -972,20 +925,6 @@ const Joi = require("joi"); * @property {Object} [online] - Details to be updated for offline payment configuration. */ -/** - * @typedef OfferSerializer - * @property {number} [offer_amount] - Offer amount. - * @property {string} [offer_code] - Offer code. - * @property {string} [offer_description] - Offer description. - * @property {string} [offer_id] - Offer id. - */ - -/** - * @typedef AppliedOfferSerializer - * @property {number} [total_applied_offer_amount] - Total applied offer amount - * @property {OfferSerializer[]} [offer_list] - */ - /** * @typedef OrderDetail * @property {string} gid - Global identifier of the entity (e.g. order, cart @@ -1066,13 +1005,13 @@ const Joi = require("joi"); * @property {string} gid - Global identifier of the entity (e.g. order, cart * etc.) against which payment_session was initiated. This is generated by * Fynd payments platform and is unique. - * @property {AppliedOfferSerializer} [applied_payment_offers] * @property {OrderDetail} order_details - The details of the order. * @property {string} status - Status of the payment. * @property {string} currency - Currency of the payment. * @property {PaymentSessionDetail[]} payment_details - The payment details with * the schema `PaymentSessionDetail`. * @property {number} total_amount - Amount paid. + * @property {string} checksum - Checksum to verify the payload */ /** @@ -1114,9 +1053,10 @@ const Joi = require("joi"); * @property {string} currency - The currency of the payment. * @property {PaymentSessionDetail} payment_details - Details of the payment * @property {number} total_amount - The total amount refunded. - * @property {RefundSessionDetail[]} [refund_details] - Details of the refund + * @property {RefundSessionDetail[]} refund_details - Details of the refund * @property {ErrorDescription} [error] * @property {string} [message] - The status of the refund. + * @property {string} checksum - Checksum to verify payload */ /** @@ -1171,7 +1111,6 @@ const Joi = require("joi"); * @property {Object[]} articles - List of articles that are added in cart * @property {number} cart_value - Total cart value i.e. amount to be paid * @property {number} [total_quantity] - Total number of items in cart - * @property {number} [seller_company_id] - Seller company id */ /** @@ -1303,7 +1242,7 @@ const Joi = require("joi"); * @typedef AggregatorVersionResponse * @property {string} message - Message * @property {boolean} success - Successful or failure - * @property {AggregatorVersionItemSchema[]} [items] + * @property {AggregatorVersionItemSchema} [items] */ /** @@ -1375,174 +1314,6 @@ const Joi = require("joi"); * @property {PaymentModeCustomConfigSchema[]} items */ -/** - * @typedef DeleteRefundAccountResponse - * @property {boolean} success - Success/Failure of the deleted beneficiary - * @property {string} message - Message - */ - -/** - * @typedef RefundOptionsDetails - * @property {string} display_name - Refund option display name - * @property {number} id - Refund ID. It will be unique identifier - * @property {boolean} [is_active] - Refund option is active or not - * @property {string} name - Refund option name - */ - -/** - * @typedef RefundOptions - * @property {RefundOptionsDetails} items - List of all refund options. - */ - -/** - * @typedef OfflineRefundOptions - * @property {RefundOptionsDetails} items - List of all refund options. - * @property {string[]} payment_modes - List of all offline payment options. MOP - * Code value - */ - -/** - * @typedef RefundOptionResponse - * @property {OfflineRefundOptions} offline_refund_options - Available offline - * refund options data - * @property {boolean} success - Success/Failure Of response - * @property {RefundOptions} refund_options - Available refund options data - */ - -/** - * @typedef SelectedRefundOptionResponse - * @property {Object} transfer_mode - Selected transfer mode for given shipment - * @property {string} shipment_id - Shipment ID - * @property {string} message - Message - * @property {boolean} success - Successful or not. - */ - -/** - * @typedef WalletBeneficiaryDetails - * @property {string} beneficiary_id - Benenficiary Id - * @property {string} modified_on - MOdification Date of Beneficiary - * @property {string} display_name - Display Name Of Account - * @property {number} id - - * @property {string} subtitle - SHort Title Of Account - * @property {string} transfer_mode - Transfer Mode Of Account - * @property {string} [mobile] - MObile no of User - * @property {boolean} is_active - Boolean Flag whether Beneficiary set or not - * @property {string} created_on - Creation Date of Beneficiary - * @property {string} address - Address of User - * @property {string} title - Title Of Account - * @property {string} wallet_address - Bank Name Of Account - * @property {string} [comment] - Remarks - * @property {string} [wallet] - Branch Name Of Account - * @property {string} email - EMail of User - * @property {string} [delights_user_name] - User Id Who filled the Beneficiary - */ - -/** - * @typedef UpiBeneficiaryDetails - * @property {string} beneficiary_id - Benenficiary Id - * @property {string} modified_on - MOdification Date of Beneficiary - * @property {string} display_name - Display Name Of Account - * @property {number} id - - * @property {string} subtitle - SHort Title Of Account - * @property {string} transfer_mode - Transfer Mode Of Account - * @property {string} [vpa] - Branch Name Of Account - * @property {string} [mobile] - Mobile no of User - * @property {string} vpa_address - Bank Name Of Account - * @property {string} created_on - Creation Date of Beneficiary - * @property {string} address - Address of User - * @property {string} title - Title Of Account - * @property {string} [comment] - Remarks - * @property {boolean} is_active - Boolean Flag whether Beneficiary set or not - * @property {string} email - EMail of User - * @property {string} [delights_user_name] - User Id Who filled the Beneficiary - */ - -/** - * @typedef BeneficiaryRefundOptions - * @property {OrderBeneficiaryDetails} [bank] - List of all add bank beneficiary details. - * @property {WalletBeneficiaryDetails} [wallet] - List of all add Wallet - * beneficiary details. - * @property {UpiBeneficiaryDetails} [upi] - List of all add UPI beneficiary details. - */ - -/** - * @typedef OrderBeneficiaryResponseSchemaV2 - * @property {boolean} show_beneficiary_details - Show Beneficiary details on UI or not. - * @property {BeneficiaryRefundOptions} data - Beneficiary Data for Bank - * account, UPI and Wallets. - * @property {Object} limit - Max Limit for adding bank account, UPI and wallet - */ - -/** - * @typedef ValidateValidateAddressRequest - * @property {string} [ifsc_code] - IFSC Code - * @property {string} [upi_vpa] - VPA Address - * @property {string} [aggregator] - Aggregator Name - */ - -/** - * @typedef VPADetails - * @property {boolean} is_valid - Is VPA valid or not - * @property {string} upi_vpa - VPA address - * @property {string} status - VPA validation message - * @property {string} customer_name - VPA Customer Name - */ - -/** - * @typedef ValidateValidateAddressResponse - * @property {VPADetails} [upi] - UPI validation details. - * @property {boolean} success - Successful or not. - * @property {Object} [ifsc] - IFSC details response data - */ - -/** - * @typedef SetDefaultBeneficiaryRequest - * @property {string} order_id - Merchant Order Id - * @property {string} beneficiary_id - Beneficiary Hash Id of the beneficiary added - * @property {string} [shipment_id] - Shipment Id from respective merchant order ID - */ - -/** - * @typedef SetDefaultBeneficiaryResponse - * @property {boolean} is_beneficiary_set - Boolean Flag whether Beneficiary set or not - * @property {boolean} [success] - Response is successful or not - */ - -/** - * @typedef ShipmentRefundRequest - * @property {string} shipment_id - Shipment Id of the respective Merchant Order Id - * @property {string} order_id - Merchant Order Id - * @property {string} transfer_mode - Transfer Mode of the Beneficiary to be added - * @property {string} [beneficiary_id] - Beneficiary Hash Id of the beneficiary added - */ - -/** - * @typedef ShipmentRefundDetail - * @property {string} shipment_id - Shipment ID - * @property {string} order_id - Order ID - * @property {string} transfer_mode - TransferMode - * @property {string} beneficiary_id - Beneficiary ID - */ - -/** - * @typedef ShipmentRefundResponse - * @property {ShipmentRefundDetail} data - Selected Shipment refund option details. - * @property {boolean} success - Successful or not. - * @property {string} message - Message - */ - -/** - * @typedef PennyDropValidationResponse - * @property {boolean} success - Successful or not. - * @property {string} message - Message - * @property {boolean} allow_pennydrop_validation - PennyDrop validation flag. - */ - -/** - * @typedef UpdatePennyDropValidationRequest - * @property {boolean} allow_pennydrop_validation - Allow Penny Drop Validation flag - */ - class PaymentPlatformModel { /** @returns {PaymentGatewayConfigResponse} */ static PaymentGatewayConfigResponse() { @@ -1572,7 +1343,7 @@ class PaymentPlatformModel { config_type: Joi.string().allow("").required(), is_active: Joi.boolean().allow(null), key: Joi.string().allow("").required(), - merchant_salt: Joi.string().allow(""), + merchant_salt: Joi.string().allow("").required(), }); } @@ -1581,14 +1352,14 @@ class PaymentPlatformModel { return Joi.object({ app_id: Joi.string().allow("").required(), is_active: Joi.boolean().allow(null), - aggregator: PaymentPlatformModel.PaymentGatewayConfig(), + aggregator_name: PaymentPlatformModel.PaymentGatewayConfig(), }); } /** @returns {PaymentGatewayToBeReviewed} */ static PaymentGatewayToBeReviewed() { return Joi.object({ - aggregators: Joi.array().items(Joi.string().allow("")), + aggregator: Joi.array().items(Joi.string().allow("")).required(), success: Joi.boolean().required(), }); } @@ -1729,6 +1500,15 @@ class PaymentPlatformModel { }); } + /** @returns {PaymentDefaultSelection} */ + static PaymentDefaultSelection() { + return Joi.object({ + mode: Joi.string().allow("").allow(null), + identifier: Joi.string().allow("").allow(null), + skip: Joi.boolean().allow(null), + }); + } + /** @returns {PaymentFlow} */ static PaymentFlow() { return Joi.object({ @@ -1755,6 +1535,7 @@ class PaymentPlatformModel { .items(PaymentPlatformModel.RootPaymentMode()) .required(), payment_flows: PaymentPlatformModel.PaymentFlow().required(), + payment_default_selection: PaymentPlatformModel.PaymentDefaultSelection(), }); } @@ -1925,7 +1706,7 @@ class PaymentPlatformModel { /** @returns {UpdatePayoutResponse} */ static UpdatePayoutResponse() { return Joi.object({ - is_default: Joi.boolean(), + is_default: Joi.boolean().required(), is_active: Joi.boolean().required(), success: Joi.boolean().required(), }); @@ -1943,8 +1724,7 @@ class PaymentPlatformModel { /** @returns {DeletePayoutResponse} */ static DeletePayoutResponse() { return Joi.object({ - delete: Joi.boolean(), - unique_transfer_no: Joi.string().allow(""), + success: Joi.boolean().required(), }); } @@ -2109,103 +1889,39 @@ class PaymentPlatformModel { }); } - /** @returns {AdvancePaymentLimitConfig} */ - static AdvancePaymentLimitConfig() { - return Joi.object({ - is_active: Joi.boolean(), - prepayment_type: Joi.string().allow(""), - prepayment_value: Joi.number(), - cancellation_type: Joi.string().allow(""), - all_prepayment_type: Joi.array().items(Joi.string().allow("")), - }); - } - - /** @returns {CODLimitConfig} */ - static CODLimitConfig() { + /** @returns {CODdata} */ + static CODdata() { return Joi.object({ - storefront: Joi.number(), - pos: Joi.number(), - }); - } - - /** @returns {CODPaymentLimitConfig} */ - static CODPaymentLimitConfig() { - return Joi.object({ - is_active: Joi.boolean(), - usages: Joi.number(), - user_id: Joi.number(), - merchant_user_id: Joi.string().allow(""), - limit: PaymentPlatformModel.CODLimitConfig(), - }); - } - - /** @returns {UserPaymentLimitConfig} */ - static UserPaymentLimitConfig() { - return Joi.object({ - advance: PaymentPlatformModel.AdvancePaymentLimitConfig(), - cod: PaymentPlatformModel.CODPaymentLimitConfig(), - }); - } - - /** @returns {GetUserBULimitResponse} */ - static GetUserBULimitResponse() { - return Joi.object({ - buisness_unit: Joi.string().allow(""), - display_name: Joi.string().allow(""), - config: PaymentPlatformModel.UserPaymentLimitConfig(), + remaining_limit: Joi.number().required(), + user_id: Joi.string().allow("").required(), + is_active: Joi.boolean().required(), + limit: Joi.number().required(), + usages: Joi.number().required(), }); } /** @returns {GetUserCODLimitResponse} */ static GetUserCODLimitResponse() { return Joi.object({ - success: Joi.boolean(), - message: Joi.string().allow(""), - items: Joi.array().items(PaymentPlatformModel.GetUserBULimitResponse()), - }); - } - - /** @returns {SetAdvanceLimitConfig} */ - static SetAdvanceLimitConfig() { - return Joi.object({ - is_active: Joi.boolean().required(), - prepayment_type: Joi.string().allow("").required(), - prepayment_value: Joi.number().required(), - cancellation_type: Joi.string().allow("").required(), + user_cod_data: PaymentPlatformModel.CODdata().required(), + success: Joi.boolean().required(), }); } - /** @returns {SetCODLimitConfig} */ - static SetCODLimitConfig() { + /** @returns {SetCODForUserRequest} */ + static SetCODForUserRequest() { return Joi.object({ + mobileno: Joi.string().allow("").required(), is_active: Joi.boolean().required(), + merchant_user_id: Joi.string().allow("").required(), }); } - /** @returns {SetUserPaymentLimitConfig} */ - static SetUserPaymentLimitConfig() { - return Joi.object({ - advance: PaymentPlatformModel.SetAdvanceLimitConfig().required(), - cod: PaymentPlatformModel.SetCODLimitConfig().required(), - }); - } - - /** @returns {SetBUPaymentLimit} */ - static SetBUPaymentLimit() { - return Joi.object({ - buisness_unit: Joi.string().allow("").required(), - config: PaymentPlatformModel.SetUserPaymentLimitConfig().required(), - }); - } - - /** @returns {SetCODForUserRequest} */ - static SetCODForUserRequest() { + /** @returns {SetCODOptionResponse} */ + static SetCODOptionResponse() { return Joi.object({ - mobile_no: Joi.string().allow(""), - merchant_user_id: Joi.string().allow("").required(), - items: Joi.array() - .items(PaymentPlatformModel.SetBUPaymentLimit()) - .required(), + message: Joi.string().allow("").required(), + success: Joi.boolean().required(), }); } @@ -2723,15 +2439,6 @@ class PaymentPlatformModel { }); } - /** @returns {PlatformOnlineOfflinePaymentResponse} */ - static PlatformOnlineOfflinePaymentResponse() { - return Joi.object({ - message: Joi.string().allow("").allow(null), - items: Joi.any().allow(null), - success: Joi.boolean().required(), - }); - } - /** @returns {PlatformPaymentModeResponse} */ static PlatformPaymentModeResponse() { return Joi.object({ @@ -2749,24 +2456,6 @@ class PaymentPlatformModel { }); } - /** @returns {OfferSerializer} */ - static OfferSerializer() { - return Joi.object({ - offer_amount: Joi.number(), - offer_code: Joi.string().allow(""), - offer_description: Joi.string().allow(""), - offer_id: Joi.string().allow(""), - }); - } - - /** @returns {AppliedOfferSerializer} */ - static AppliedOfferSerializer() { - return Joi.object({ - total_applied_offer_amount: Joi.number(), - offer_list: Joi.array().items(PaymentPlatformModel.OfferSerializer()), - }); - } - /** @returns {OrderDetail} */ static OrderDetail() { return Joi.object({ @@ -2837,7 +2526,6 @@ class PaymentPlatformModel { return Joi.object({ meta: Joi.any(), gid: Joi.string().allow("").required(), - applied_payment_offers: PaymentPlatformModel.AppliedOfferSerializer(), order_details: PaymentPlatformModel.OrderDetail().required(), status: Joi.string().allow("").required(), currency: Joi.string().allow("").required(), @@ -2845,6 +2533,7 @@ class PaymentPlatformModel { .items(PaymentPlatformModel.PaymentSessionDetail()) .required(), total_amount: Joi.number().required(), + checksum: Joi.string().allow("").required(), }); } @@ -2886,11 +2575,12 @@ class PaymentPlatformModel { currency: Joi.string().allow("").required(), payment_details: PaymentPlatformModel.PaymentSessionDetail().required(), total_amount: Joi.number().required(), - refund_details: Joi.array().items( - PaymentPlatformModel.RefundSessionDetail() - ), + refund_details: Joi.array() + .items(PaymentPlatformModel.RefundSessionDetail()) + .required(), error: PaymentPlatformModel.ErrorDescription(), message: Joi.string().allow(""), + checksum: Joi.string().allow("").required(), }); } @@ -2938,7 +2628,6 @@ class PaymentPlatformModel { articles: Joi.array().items(Joi.any()).required(), cart_value: Joi.number().required(), total_quantity: Joi.number(), - seller_company_id: Joi.number(), }); } @@ -3108,9 +2797,7 @@ class PaymentPlatformModel { return Joi.object({ message: Joi.string().allow("").required(), success: Joi.boolean().required(), - items: Joi.array().items( - PaymentPlatformModel.AggregatorVersionItemSchema() - ), + items: PaymentPlatformModel.AggregatorVersionItemSchema(), }); } @@ -3206,209 +2893,5 @@ class PaymentPlatformModel { .required(), }); } - - /** @returns {DeleteRefundAccountResponse} */ - static DeleteRefundAccountResponse() { - return Joi.object({ - success: Joi.boolean().required(), - message: Joi.string().allow("").allow(null).required(), - }); - } - - /** @returns {RefundOptionsDetails} */ - static RefundOptionsDetails() { - return Joi.object({ - display_name: Joi.string().allow("").required(), - id: Joi.number().required(), - is_active: Joi.boolean().allow(null), - name: Joi.string().allow("").required(), - }); - } - - /** @returns {RefundOptions} */ - static RefundOptions() { - return Joi.object({ - items: PaymentPlatformModel.RefundOptionsDetails().required(), - }); - } - - /** @returns {OfflineRefundOptions} */ - static OfflineRefundOptions() { - return Joi.object({ - items: PaymentPlatformModel.RefundOptionsDetails().required(), - payment_modes: Joi.array().items(Joi.string().allow("")).required(), - }); - } - - /** @returns {RefundOptionResponse} */ - static RefundOptionResponse() { - return Joi.object({ - offline_refund_options: PaymentPlatformModel.OfflineRefundOptions().required(), - success: Joi.boolean().required(), - refund_options: PaymentPlatformModel.RefundOptions().required(), - }); - } - - /** @returns {SelectedRefundOptionResponse} */ - static SelectedRefundOptionResponse() { - return Joi.object({ - transfer_mode: Joi.any().required(), - shipment_id: Joi.string().allow("").allow(null).required(), - message: Joi.string().allow("").allow(null).required(), - success: Joi.boolean().required(), - }); - } - - /** @returns {WalletBeneficiaryDetails} */ - static WalletBeneficiaryDetails() { - return Joi.object({ - beneficiary_id: Joi.string().allow("").required(), - modified_on: Joi.string().allow("").required(), - display_name: Joi.string().allow("").required(), - id: Joi.number().required(), - subtitle: Joi.string().allow("").required(), - transfer_mode: Joi.string().allow("").required(), - mobile: Joi.string().allow(""), - is_active: Joi.boolean().required(), - created_on: Joi.string().allow("").required(), - address: Joi.string().allow("").required(), - title: Joi.string().allow("").required(), - wallet_address: Joi.string().allow("").required(), - comment: Joi.string().allow(""), - wallet: Joi.string().allow(""), - email: Joi.string().allow("").required(), - delights_user_name: Joi.string().allow("").allow(null), - }); - } - - /** @returns {UpiBeneficiaryDetails} */ - static UpiBeneficiaryDetails() { - return Joi.object({ - beneficiary_id: Joi.string().allow("").required(), - modified_on: Joi.string().allow("").required(), - display_name: Joi.string().allow("").required(), - id: Joi.number().required(), - subtitle: Joi.string().allow("").required(), - transfer_mode: Joi.string().allow("").required(), - vpa: Joi.string().allow(""), - mobile: Joi.string().allow(""), - vpa_address: Joi.string().allow("").required(), - created_on: Joi.string().allow("").required(), - address: Joi.string().allow("").required(), - title: Joi.string().allow("").required(), - comment: Joi.string().allow(""), - is_active: Joi.boolean().required(), - email: Joi.string().allow("").required(), - delights_user_name: Joi.string().allow("").allow(null), - }); - } - - /** @returns {BeneficiaryRefundOptions} */ - static BeneficiaryRefundOptions() { - return Joi.object({ - bank: PaymentPlatformModel.OrderBeneficiaryDetails(), - wallet: PaymentPlatformModel.WalletBeneficiaryDetails(), - upi: PaymentPlatformModel.UpiBeneficiaryDetails(), - }); - } - - /** @returns {OrderBeneficiaryResponseSchemaV2} */ - static OrderBeneficiaryResponseSchemaV2() { - return Joi.object({ - show_beneficiary_details: Joi.boolean().required(), - data: PaymentPlatformModel.BeneficiaryRefundOptions().required(), - limit: Joi.any().required(), - }); - } - - /** @returns {ValidateValidateAddressRequest} */ - static ValidateValidateAddressRequest() { - return Joi.object({ - ifsc_code: Joi.string().allow("").allow(null), - upi_vpa: Joi.string().allow("").allow(null), - aggregator: Joi.string().allow("").allow(null), - }); - } - - /** @returns {VPADetails} */ - static VPADetails() { - return Joi.object({ - is_valid: Joi.boolean().required(), - upi_vpa: Joi.string().allow("").required(), - status: Joi.string().allow("").required(), - customer_name: Joi.string().allow("").required(), - }); - } - - /** @returns {ValidateValidateAddressResponse} */ - static ValidateValidateAddressResponse() { - return Joi.object({ - upi: PaymentPlatformModel.VPADetails(), - success: Joi.boolean().required(), - ifsc: Joi.any(), - }); - } - - /** @returns {SetDefaultBeneficiaryRequest} */ - static SetDefaultBeneficiaryRequest() { - return Joi.object({ - order_id: Joi.string().allow("").required(), - beneficiary_id: Joi.string().allow("").required(), - shipment_id: Joi.string().allow(""), - }); - } - - /** @returns {SetDefaultBeneficiaryResponse} */ - static SetDefaultBeneficiaryResponse() { - return Joi.object({ - is_beneficiary_set: Joi.boolean().required(), - success: Joi.boolean(), - }); - } - - /** @returns {ShipmentRefundRequest} */ - static ShipmentRefundRequest() { - return Joi.object({ - shipment_id: Joi.string().allow("").required(), - order_id: Joi.string().allow("").required(), - transfer_mode: Joi.string().allow("").required(), - beneficiary_id: Joi.string().allow("").allow(null), - }); - } - - /** @returns {ShipmentRefundDetail} */ - static ShipmentRefundDetail() { - return Joi.object({ - shipment_id: Joi.string().allow("").required(), - order_id: Joi.string().allow("").required(), - transfer_mode: Joi.string().allow("").required(), - beneficiary_id: Joi.string().allow("").required(), - }); - } - - /** @returns {ShipmentRefundResponse} */ - static ShipmentRefundResponse() { - return Joi.object({ - data: PaymentPlatformModel.ShipmentRefundDetail().required(), - success: Joi.boolean().required(), - message: Joi.string().allow("").allow(null).required(), - }); - } - - /** @returns {PennyDropValidationResponse} */ - static PennyDropValidationResponse() { - return Joi.object({ - success: Joi.boolean().required(), - message: Joi.string().allow("").allow(null).required(), - allow_pennydrop_validation: Joi.boolean().required(), - }); - } - - /** @returns {UpdatePennyDropValidationRequest} */ - static UpdatePennyDropValidationRequest() { - return Joi.object({ - allow_pennydrop_validation: Joi.boolean().required(), - }); - } } module.exports = PaymentPlatformModel; diff --git a/sdk/platform/Payment/PaymentPlatformValidator.d.ts b/sdk/platform/Payment/PaymentPlatformValidator.d.ts index 3c30b9002..e3f345e1b 100644 --- a/sdk/platform/Payment/PaymentPlatformValidator.d.ts +++ b/sdk/platform/Payment/PaymentPlatformValidator.d.ts @@ -110,4 +110,4 @@ type VerifyIfscCodeParam = { ifscCode?: string; }; type GetSubscriptionConfigParam = any; -import PaymentPlatformModel = require("sdk/output/javascript/code/sdk/platform/Payment/PaymentPlatformModel"); +import PaymentPlatformModel = require("./PaymentPlatformModel"); diff --git a/sdk/platform/PlatformApplicationClient.d.ts b/sdk/platform/PlatformApplicationClient.d.ts index ff6979e2e..3b7002ebc 100644 --- a/sdk/platform/PlatformApplicationClient.d.ts +++ b/sdk/platform/PlatformApplicationClient.d.ts @@ -12,7 +12,7 @@ declare class PlatformApplicationClient { * @param {import("./PlatformConfig")} config - The platform configuration. */ constructor(applicationId: string, config: import("./PlatformConfig")); - config: import("sdk/output/javascript/code/sdk/platform/PlatformConfig"); + config: import("./PlatformConfig"); companyId: string; applicationId: string; cart: Cart; @@ -38,18 +38,18 @@ declare class PlatformApplicationClient { */ setExtraHeaders(header: object): void; } -import Cart = require("sdk/output/javascript/code/sdk/platform/Cart/CartPlatformApplicationClient"); -import Catalog = require("sdk/output/javascript/code/sdk/platform/Catalog/CatalogPlatformApplicationClient"); -import Communication = require("sdk/output/javascript/code/sdk/platform/Communication/CommunicationPlatformApplicationClient"); -import Configuration = require("sdk/output/javascript/code/sdk/platform/Configuration/ConfigurationPlatformApplicationClient"); -import Content = require("sdk/output/javascript/code/sdk/platform/Content/ContentPlatformApplicationClient"); -import FileStorage = require("sdk/output/javascript/code/sdk/platform/FileStorage/FileStoragePlatformApplicationClient"); -import Lead = require("sdk/output/javascript/code/sdk/platform/Lead/LeadPlatformApplicationClient"); -import Serviceability = require("sdk/output/javascript/code/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient"); -import Order = require("sdk/output/javascript/code/sdk/platform/Order/OrderPlatformApplicationClient"); -import Partner = require("sdk/output/javascript/code/sdk/platform/Partner/PartnerPlatformApplicationClient"); -import Payment = require("sdk/output/javascript/code/sdk/platform/Payment/PaymentPlatformApplicationClient"); -import Rewards = require("sdk/output/javascript/code/sdk/platform/Rewards/RewardsPlatformApplicationClient"); -import Share = require("sdk/output/javascript/code/sdk/platform/Share/SharePlatformApplicationClient"); -import Theme = require("sdk/output/javascript/code/sdk/platform/Theme/ThemePlatformApplicationClient"); -import User = require("sdk/output/javascript/code/sdk/platform/User/UserPlatformApplicationClient"); +import Cart = require("./Cart/CartPlatformApplicationClient"); +import Catalog = require("./Catalog/CatalogPlatformApplicationClient"); +import Communication = require("./Communication/CommunicationPlatformApplicationClient"); +import Configuration = require("./Configuration/ConfigurationPlatformApplicationClient"); +import Content = require("./Content/ContentPlatformApplicationClient"); +import FileStorage = require("./FileStorage/FileStoragePlatformApplicationClient"); +import Lead = require("./Lead/LeadPlatformApplicationClient"); +import Serviceability = require("./Serviceability/ServiceabilityPlatformApplicationClient"); +import Order = require("./Order/OrderPlatformApplicationClient"); +import Partner = require("./Partner/PartnerPlatformApplicationClient"); +import Payment = require("./Payment/PaymentPlatformApplicationClient"); +import Rewards = require("./Rewards/RewardsPlatformApplicationClient"); +import Share = require("./Share/SharePlatformApplicationClient"); +import Theme = require("./Theme/ThemePlatformApplicationClient"); +import User = require("./User/UserPlatformApplicationClient"); diff --git a/sdk/platform/PlatformClient.d.ts b/sdk/platform/PlatformClient.d.ts index b64deeb21..6f33dfa68 100644 --- a/sdk/platform/PlatformClient.d.ts +++ b/sdk/platform/PlatformClient.d.ts @@ -11,7 +11,7 @@ declare class PlatformClient { * @param {import("./PlatformConfig")} config - The application configuration. */ constructor(config: import("./PlatformConfig")); - config: import("sdk/output/javascript/code/sdk/platform/PlatformConfig"); + config: import("./PlatformConfig"); auditTrail: AuditTrail; billing: Billing; catalog: Catalog; @@ -48,22 +48,22 @@ declare class PlatformClient { */ setExtraHeaders(header: object): void; } -import AuditTrail = require("sdk/output/javascript/code/sdk/platform/AuditTrail/AuditTrailPlatformClient"); -import Billing = require("sdk/output/javascript/code/sdk/platform/Billing/BillingPlatformClient"); -import Catalog = require("sdk/output/javascript/code/sdk/platform/Catalog/CatalogPlatformClient"); -import Common = require("sdk/output/javascript/code/sdk/platform/Common/CommonPlatformClient"); -import Communication = require("sdk/output/javascript/code/sdk/platform/Communication/CommunicationPlatformClient"); -import CompanyProfile = require("sdk/output/javascript/code/sdk/platform/CompanyProfile/CompanyProfilePlatformClient"); -import Configuration = require("sdk/output/javascript/code/sdk/platform/Configuration/ConfigurationPlatformClient"); -import Content = require("sdk/output/javascript/code/sdk/platform/Content/ContentPlatformClient"); -import Discount = require("sdk/output/javascript/code/sdk/platform/Discount/DiscountPlatformClient"); -import FileStorage = require("sdk/output/javascript/code/sdk/platform/FileStorage/FileStoragePlatformClient"); -import Finance = require("sdk/output/javascript/code/sdk/platform/Finance/FinancePlatformClient"); -import Inventory = require("sdk/output/javascript/code/sdk/platform/Inventory/InventoryPlatformClient"); -import Lead = require("sdk/output/javascript/code/sdk/platform/Lead/LeadPlatformClient"); -import Serviceability = require("sdk/output/javascript/code/sdk/platform/Serviceability/ServiceabilityPlatformClient"); -import Order = require("sdk/output/javascript/code/sdk/platform/Order/OrderPlatformClient"); -import Payment = require("sdk/output/javascript/code/sdk/platform/Payment/PaymentPlatformClient"); -import Theme = require("sdk/output/javascript/code/sdk/platform/Theme/ThemePlatformClient"); -import Webhook = require("sdk/output/javascript/code/sdk/platform/Webhook/WebhookPlatformClient"); -import PlatformApplicationClient = require("sdk/output/javascript/code/sdk/platform/PlatformApplicationClient"); +import AuditTrail = require("./AuditTrail/AuditTrailPlatformClient"); +import Billing = require("./Billing/BillingPlatformClient"); +import Catalog = require("./Catalog/CatalogPlatformClient"); +import Common = require("./Common/CommonPlatformClient"); +import Communication = require("./Communication/CommunicationPlatformClient"); +import CompanyProfile = require("./CompanyProfile/CompanyProfilePlatformClient"); +import Configuration = require("./Configuration/ConfigurationPlatformClient"); +import Content = require("./Content/ContentPlatformClient"); +import Discount = require("./Discount/DiscountPlatformClient"); +import FileStorage = require("./FileStorage/FileStoragePlatformClient"); +import Finance = require("./Finance/FinancePlatformClient"); +import Inventory = require("./Inventory/InventoryPlatformClient"); +import Lead = require("./Lead/LeadPlatformClient"); +import Serviceability = require("./Serviceability/ServiceabilityPlatformClient"); +import Order = require("./Order/OrderPlatformClient"); +import Payment = require("./Payment/PaymentPlatformClient"); +import Theme = require("./Theme/ThemePlatformClient"); +import Webhook = require("./Webhook/WebhookPlatformClient"); +import PlatformApplicationClient = require("./PlatformApplicationClient"); diff --git a/sdk/platform/PlatformConfig.d.ts b/sdk/platform/PlatformConfig.d.ts index 24873af4c..3c4244376 100644 --- a/sdk/platform/PlatformConfig.d.ts +++ b/sdk/platform/PlatformConfig.d.ts @@ -62,4 +62,4 @@ declare class PlatformConfig { */ getAccessToken(): Promise; } -import OauthClient = require("sdk/output/javascript/code/sdk/platform/OAuthClient"); +import OauthClient = require("./OAuthClient"); diff --git a/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts b/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts index ce359de92..d6b757c3a 100644 --- a/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +++ b/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts @@ -148,6 +148,6 @@ declare class Rewards { */ updateUserStatus({ userId, body, requestHeaders }?: RewardsPlatformApplicationValidator.UpdateUserStatusParam, { responseHeaders }?: object): Promise; } -import RewardsPlatformApplicationValidator = require("sdk/output/javascript/code/sdk/platform/Rewards/RewardsPlatformApplicationValidator"); -import RewardsPlatformModel = require("sdk/output/javascript/code/sdk/platform/Rewards/RewardsPlatformModel"); -import Paginator = require("sdk/output/javascript/code/sdk/common/Paginator"); +import RewardsPlatformApplicationValidator = require("./RewardsPlatformApplicationValidator"); +import RewardsPlatformModel = require("./RewardsPlatformModel"); +import Paginator = require("../../common/Paginator"); diff --git a/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts b/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts index 2c37fe7d6..5dc69aa6d 100644 --- a/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +++ b/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts @@ -149,4 +149,4 @@ type UpdateUserStatusParam = { }; type GetRewardsConfigurationParam = any; type ShowOffersParam = any; -import RewardsPlatformModel = require("sdk/output/javascript/code/sdk/platform/Rewards/RewardsPlatformModel"); +import RewardsPlatformModel = require("./RewardsPlatformModel"); diff --git a/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts b/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts index 8c1467903..527183007 100644 --- a/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +++ b/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts @@ -52,8 +52,8 @@ declare class Serviceability { * @returns {Promise} - * Success response * @name getApplicationConfiguration - * @summary: Get All application configs - * @description: This API returns all config applied to an application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getApplicationConfiguration/). + * @summary: Get All Courier Rules applied to application + * @description: This API returns all the Courier Rules applied to an application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getApplicationConfiguration/). */ getApplicationConfiguration({ requestHeaders }?: any, { responseHeaders }?: object): Promise; /** @@ -137,20 +137,6 @@ declare class Serviceability { * @description: Insert Application Configuration - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/insertApplicationConfig/). */ insertApplicationConfig({ body, requestHeaders }?: ServiceabilityPlatformApplicationValidator.InsertApplicationConfigParam, { responseHeaders }?: object): Promise; - /** - * @param {ServiceabilityPlatformApplicationValidator.PatchApplicationConfigurationParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name patchApplicationConfiguration - * @summary: To patch any config which can be applied to application. - * @description: Apply configs to application and for reference, refer to examples - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/patchApplicationConfiguration/). - */ - patchApplicationConfiguration({ body, requestHeaders }?: ServiceabilityPlatformApplicationValidator.PatchApplicationConfigurationParam, { responseHeaders }?: object): Promise; /** * @param {ServiceabilityPlatformApplicationValidator.PatchApplicationServiceabilitySelfShipmentParam} arg * - Arg object @@ -287,5 +273,5 @@ declare class Serviceability { */ updateStoreRulesConfig({ body, requestHeaders }?: ServiceabilityPlatformApplicationValidator.UpdateStoreRulesConfigParam, { responseHeaders }?: object): Promise; } -import ServiceabilityPlatformApplicationValidator = require("sdk/output/javascript/code/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator"); -import ServiceabilityPlatformModel = require("sdk/output/javascript/code/sdk/platform/Serviceability/ServiceabilityPlatformModel"); +import ServiceabilityPlatformApplicationValidator = require("./ServiceabilityPlatformApplicationValidator"); +import ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel"); diff --git a/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js b/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js index 5b98f16f7..79bed389d 100644 --- a/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +++ b/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js @@ -267,8 +267,8 @@ class Serviceability { * @returns {Promise} - * Success response * @name getApplicationConfiguration - * @summary: Get All application configs - * @description: This API returns all config applied to an application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getApplicationConfiguration/). + * @summary: Get All Courier Rules applied to application + * @description: This API returns all the Courier Rules applied to an application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getApplicationConfiguration/). */ async getApplicationConfiguration( { requestHeaders } = { requestHeaders: {} }, @@ -841,89 +841,6 @@ class Serviceability { return response; } - /** - * @param {ServiceabilityPlatformApplicationValidator.PatchApplicationConfigurationParam} arg - * - Arg object - * - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name patchApplicationConfiguration - * @summary: To patch any config which can be applied to application. - * @description: Apply configs to application and for reference, refer to examples - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/patchApplicationConfiguration/). - */ - async patchApplicationConfiguration( - { body, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = ServiceabilityPlatformApplicationValidator.patchApplicationConfiguration().validate( - { - body, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = ServiceabilityPlatformApplicationValidator.patchApplicationConfiguration().validate( - { - body, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Serviceability > patchApplicationConfiguration \n ${warrning}`, - }); - } - - const query_params = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "patch", - `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/configuration`, - query_params, - body, - requestHeaders, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = ServiceabilityPlatformModel.ApplicationConfigPatchResponse().validate( - responseData, - { abortEarly: false, allowUnknown: true } - ); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Serviceability > patchApplicationConfiguration \n ${res_error}`, - }); - } - } - - return response; - } - /** * @param {ServiceabilityPlatformApplicationValidator.PatchApplicationServiceabilitySelfShipmentParam} arg * - Arg object diff --git a/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts b/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts index 2429923d2..927653ef2 100644 --- a/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +++ b/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts @@ -35,10 +35,6 @@ export = ServiceabilityPlatformApplicationValidator; * @typedef InsertApplicationConfigParam * @property {ServiceabilityPlatformModel.StoreRuleConfigData} body */ -/** - * @typedef PatchApplicationConfigurationParam - * @property {ServiceabilityPlatformModel.ApplicationConfigPatchRequest} body - */ /** * @typedef PatchApplicationServiceabilitySelfShipmentParam * @property {ServiceabilityPlatformModel.SelfShipResponse} body @@ -103,8 +99,6 @@ declare class ServiceabilityPlatformApplicationValidator { static getStoreRules(): GetStoreRulesParam; /** @returns {InsertApplicationConfigParam} */ static insertApplicationConfig(): InsertApplicationConfigParam; - /** @returns {PatchApplicationConfigurationParam} */ - static patchApplicationConfiguration(): PatchApplicationConfigurationParam; /** @returns {PatchApplicationServiceabilitySelfShipmentParam} */ static patchApplicationServiceabilitySelfShipment(): PatchApplicationServiceabilitySelfShipmentParam; /** @returns {UpdateApplicationConfigurationParam} */ @@ -127,7 +121,7 @@ declare class ServiceabilityPlatformApplicationValidator { static updateStoreRulesConfig(): UpdateStoreRulesConfigParam; } declare namespace ServiceabilityPlatformApplicationValidator { - export { CreateCourierPartnerRuleParam, CreateStoreRulesParam, GetApplicationConfigParam, GetApplicationConfigurationParam, GetApplicationServiceabilitySelfShipmentParam, GetCourierPartnerRuleParam, GetCourierPartnerRulesParam, GetStoreRuleParam, GetStoreRulesParam, InsertApplicationConfigParam, PatchApplicationConfigurationParam, PatchApplicationServiceabilitySelfShipmentParam, UpdateApplicationConfigurationParam, UpdateCourierPartnerRulePriorityParam, UpdateCourierRuleParam, UpdatePincodeAuditHistoryParam, UpdatePincodeBulkViewParam, UpdatePincodeCoDListingParam, UpdatePincodeMopViewParam, UpdateStoreRulesParam, UpdateStoreRulesConfigParam }; + export { CreateCourierPartnerRuleParam, CreateStoreRulesParam, GetApplicationConfigParam, GetApplicationConfigurationParam, GetApplicationServiceabilitySelfShipmentParam, GetCourierPartnerRuleParam, GetCourierPartnerRulesParam, GetStoreRuleParam, GetStoreRulesParam, InsertApplicationConfigParam, PatchApplicationServiceabilitySelfShipmentParam, UpdateApplicationConfigurationParam, UpdateCourierPartnerRulePriorityParam, UpdateCourierRuleParam, UpdatePincodeAuditHistoryParam, UpdatePincodeBulkViewParam, UpdatePincodeCoDListingParam, UpdatePincodeMopViewParam, UpdateStoreRulesParam, UpdateStoreRulesConfigParam }; } type CreateCourierPartnerRuleParam = { body: ServiceabilityPlatformModel.CourierPartnerRule; @@ -170,9 +164,6 @@ type GetStoreRulesParam = { type InsertApplicationConfigParam = { body: ServiceabilityPlatformModel.StoreRuleConfigData; }; -type PatchApplicationConfigurationParam = { - body: ServiceabilityPlatformModel.ApplicationConfigPatchRequest; -}; type PatchApplicationServiceabilitySelfShipmentParam = { body: ServiceabilityPlatformModel.SelfShipResponse; }; @@ -215,4 +206,4 @@ type UpdateStoreRulesConfigParam = { type GetApplicationConfigParam = any; type GetApplicationConfigurationParam = any; type GetApplicationServiceabilitySelfShipmentParam = any; -import ServiceabilityPlatformModel = require("sdk/output/javascript/code/sdk/platform/Serviceability/ServiceabilityPlatformModel"); +import ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel"); diff --git a/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js b/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js index 656716c34..9c9e6440d 100644 --- a/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +++ b/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js @@ -48,11 +48,6 @@ const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel"); * @property {ServiceabilityPlatformModel.StoreRuleConfigData} body */ -/** - * @typedef PatchApplicationConfigurationParam - * @property {ServiceabilityPlatformModel.ApplicationConfigPatchRequest} body - */ - /** * @typedef PatchApplicationServiceabilitySelfShipmentParam * @property {ServiceabilityPlatformModel.SelfShipResponse} body @@ -175,13 +170,6 @@ class ServiceabilityPlatformApplicationValidator { }).required(); } - /** @returns {PatchApplicationConfigurationParam} */ - static patchApplicationConfiguration() { - return Joi.object({ - body: ServiceabilityPlatformModel.ApplicationConfigPatchRequest().required(), - }).required(); - } - /** @returns {PatchApplicationServiceabilitySelfShipmentParam} */ static patchApplicationServiceabilitySelfShipment() { return Joi.object({ diff --git a/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts b/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts index 2939b714f..1631f0223 100644 --- a/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +++ b/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts @@ -148,18 +148,19 @@ declare class Serviceability { * @summary: Getting Courier Account list of a company. * @description: This API returns Courier Account of a company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getCourierPartnerAccounts/). */ - getCourierPartnerAccounts({ pageNo, pageSize, stage, paymentMode, transportType, accountIds, requestHeaders, }?: ServiceabilityPlatformValidator.GetCourierPartnerAccountsParam, { responseHeaders }?: object): Promise; + getCourierPartnerAccounts({ pageNo, pageSize, stage, paymentMode, transportType, requestHeaders }?: ServiceabilityPlatformValidator.GetCourierPartnerAccountsParam, { responseHeaders }?: object): Promise; /** * @param {ServiceabilityPlatformValidator.GetOptimalLocationsParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response + * @returns {Promise} + * - Success response + * * @name getOptimalLocations - * @summary: Get serviceable store of the item - * @description: This API returns serviceable store of the item. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getOptimalLocations/). + * @summary: Retrieve optimal locations + * @description: Retrieve optimal locations based on the specific criteria - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getOptimalLocations/). */ - getOptimalLocations({ body, requestHeaders }?: ServiceabilityPlatformValidator.GetOptimalLocationsParam, { responseHeaders }?: object): Promise; + getOptimalLocations({ body, requestHeaders }?: ServiceabilityPlatformValidator.GetOptimalLocationsParam, { responseHeaders }?: object): Promise; /** * @param {ServiceabilityPlatformValidator.GetPackageMaterialListParam} arg * - Arg object @@ -243,7 +244,7 @@ declare class Serviceability { * @summary: Shows zones defined at the company level * @description: Return the list of zones that are defined at the company level. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getZones/). */ - getZones({ pageNo, pageSize, isActive, channelId, q, country, state, city, pincode, sector, requestHeaders, }?: ServiceabilityPlatformValidator.GetZonesParam, { responseHeaders }?: object): Promise; + getZones({ pageNo, pageSize, isActive, channelId, q, countryIsoCode, state, city, pincode, sector, requestHeaders, }?: ServiceabilityPlatformValidator.GetZonesParam, { responseHeaders }?: object): Promise; /** * @param {ServiceabilityPlatformValidator.UpdateCompanyConfigurationParam} arg * - Arg object @@ -319,5 +320,5 @@ declare class Serviceability { */ updateZoneById({ zoneId, body, requestHeaders }?: ServiceabilityPlatformValidator.UpdateZoneByIdParam, { responseHeaders }?: object): Promise; } -import ServiceabilityPlatformValidator = require("sdk/output/javascript/code/sdk/platform/Serviceability/ServiceabilityPlatformValidator"); -import ServiceabilityPlatformModel = require("sdk/output/javascript/code/sdk/platform/Serviceability/ServiceabilityPlatformModel"); +import ServiceabilityPlatformValidator = require("./ServiceabilityPlatformValidator"); +import ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel"); diff --git a/sdk/platform/Serviceability/ServiceabilityPlatformClient.js b/sdk/platform/Serviceability/ServiceabilityPlatformClient.js index 21f13d34d..270462b5f 100644 --- a/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +++ b/sdk/platform/Serviceability/ServiceabilityPlatformClient.js @@ -1018,15 +1018,9 @@ class Serviceability { * @description: This API returns Courier Account of a company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getCourierPartnerAccounts/). */ async getCourierPartnerAccounts( - { - pageNo, - pageSize, - stage, - paymentMode, - transportType, - accountIds, - requestHeaders, - } = { requestHeaders: {} }, + { pageNo, pageSize, stage, paymentMode, transportType, requestHeaders } = { + requestHeaders: {}, + }, { responseHeaders } = { responseHeaders: false } ) { const { @@ -1038,7 +1032,6 @@ class Serviceability { stage, paymentMode, transportType, - accountIds, }, { abortEarly: false, allowUnknown: true } ); @@ -1056,7 +1049,6 @@ class Serviceability { stage, paymentMode, transportType, - accountIds, }, { abortEarly: false, allowUnknown: false } ); @@ -1073,7 +1065,6 @@ class Serviceability { query_params["stage"] = stage; query_params["payment_mode"] = paymentMode; query_params["transport_type"] = transportType; - query_params["account_ids"] = accountIds; const xHeaders = {}; @@ -1117,11 +1108,12 @@ class Serviceability { * @param {ServiceabilityPlatformValidator.GetOptimalLocationsParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response + * @returns {Promise} + * - Success response + * * @name getOptimalLocations - * @summary: Get serviceable store of the item - * @description: This API returns serviceable store of the item. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getOptimalLocations/). + * @summary: Retrieve optimal locations + * @description: Retrieve optimal locations based on the specific criteria - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getOptimalLocations/). */ async getOptimalLocations( { body, requestHeaders } = { requestHeaders: {} }, @@ -1162,7 +1154,7 @@ class Serviceability { const response = await PlatformAPIClient.execute( this.config, "post", - `/service/platform/logistics/v1.0/company/${this.config.companyId}/reassign`, + `/service/platform/logistics/v1.0/company/${this.config.companyId}/optimal-locations`, query_params, body, { ...xHeaders, ...requestHeaders }, @@ -1176,7 +1168,7 @@ class Serviceability { const { error: res_error, - } = ServiceabilityPlatformModel.ReAssignStoreResponse().validate( + } = ServiceabilityPlatformModel.OptimalLocationsResponse().validate( responseData, { abortEarly: false, allowUnknown: true } ); @@ -1737,7 +1729,7 @@ class Serviceability { isActive, channelId, q, - country, + countryIsoCode, state, city, pincode, @@ -1753,7 +1745,7 @@ class Serviceability { isActive, channelId, q, - country, + countryIsoCode, state, city, pincode, @@ -1775,7 +1767,7 @@ class Serviceability { isActive, channelId, q, - country, + countryIsoCode, state, city, pincode, @@ -1796,7 +1788,7 @@ class Serviceability { query_params["is_active"] = isActive; query_params["channel_id"] = channelId; query_params["q"] = q; - query_params["country"] = country; + query_params["country_iso_code"] = countryIsoCode; query_params["state"] = state; query_params["city"] = city; query_params["pincode"] = pincode; diff --git a/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts b/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts index 75ed043d0..9f9b52f69 100644 --- a/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +++ b/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts @@ -382,21 +382,6 @@ export = ServiceabilityPlatformModel; * @property {ServiceabilityPageResponse} page * @property {ItemResponse[]} [items] */ -/** - * @typedef ReAssignStoreRequest - * @property {string} to_pincode - * @property {string} identifier - * @property {Object} configuration - * @property {string[]} ignored_locations - * @property {Object[]} articles - */ -/** - * @typedef ReAssignStoreResponse - * @property {string} to_pincode - * @property {boolean} success - * @property {Object} error - * @property {Object[]} [articles] - */ /** * @typedef PincodeMopData * @property {number[]} pincodes @@ -611,7 +596,6 @@ export = ServiceabilityPlatformModel; * @property {CourierPartnerList[]} [cp_list] * @property {string} name * @property {CourierPartnerRuleConditions} conditions - * @property {string[]} [manual_priority] * @property {string[]} sort */ /** @@ -634,74 +618,11 @@ export = ServiceabilityPlatformModel; * @typedef ZoneConfig * @property {string} [serviceability_type] */ -/** - * @typedef BuyboxConfig - * @property {boolean} show_seller - * @property {boolean} enable_selection - * @property {boolean} is_seller_buybox_enabled - */ -/** - * @typedef BuyboxRuleConfig - * @property {string[]} [store_type_priority] - * @property {string[]} [store_tag_priority] - * @property {string[]} [sort] - */ -/** - * @typedef PromiseType - * @property {string} display_name - * @property {string} slug - * @property {string} description - * @property {boolean} is_active - * @property {boolean} is_default - */ -/** - * @typedef StorePromiseAttributeConfig - * @property {boolean} [is_operational_timing_enabled] - * @property {boolean} [is_order_acceptance_timing_enabled] - * @property {boolean} [is_average_processing_time] - * @property {boolean} [is_holiday_enabled] - */ -/** - * @typedef DeliveryServiceAttributeConfig - * @property {boolean} [is_pickup_cutoff_time_enabled] - * @property {boolean} [is_service_tat_enabled] - * @property {boolean} [is_holiday_enabled] - */ -/** - * @typedef BufferField - * @property {string} [unit] - * @property {number} [value] - * @property {boolean} [enabled] - */ -/** - * @typedef PromiseConfig - * @property {StorePromiseAttributeConfig} [store_attributes] - * @property {DeliveryServiceAttributeConfig} [delivery_service_attributes] - * @property {BufferField} [buffer_field] - */ /** * @typedef ApplicationConfig * @property {string[]} [rule_ids] * @property {string[]} [sort] - * @property {string} [application_id] - * @property {number} [company_id] - * @property {string[]} [manual_priority] * @property {ZoneConfig} [zones] - * @property {BuyboxConfig} [buybox_config] - * @property {BuyboxRuleConfig} [buybox_rule_config] - * @property {PromiseType[]} [promise_types] - * @property {PromiseConfig} [promise_config] - */ -/** - * @typedef ApplicationConfigPatchRequest - * @property {BuyboxConfig} [buybox_config] - * @property {BuyboxRuleConfig} [buybox_rule_config] - * @property {PromiseType[]} [promise_types] - * @property {PromiseConfig} [promise_config] - */ -/** - * @typedef ApplicationConfigPatchResponse - * @property {boolean} [success] */ /** * @typedef BulkRegionJobSerializer @@ -751,7 +672,6 @@ export = ServiceabilityPlatformModel; * @property {string[]} [tag_based_priority] * @property {StorePrioritySchema[]} [store_priority] * @property {string[]} [sort] - * @property {string[]} [manual_priority] */ /** * @typedef CustomerRadiusSchema @@ -785,7 +705,6 @@ export = ServiceabilityPlatformModel; * @property {string[]} [tag_based_priority] * @property {StorePrioritySchema[]} [store_priority] * @property {string[]} [sort] - * @property {string[]} [manual_priority] * @property {StoreRuleConditionSchema} [conditions] * @property {boolean} [is_active] */ @@ -807,7 +726,6 @@ export = ServiceabilityPlatformModel; * @property {string[]} [type_based_priority] * @property {string[]} [tag_based_priority] * @property {StorePrioritySchema[]} [store_priority] - * @property {string[]} [manual_priority] * @property {string[]} [sort] */ /** @@ -819,7 +737,6 @@ export = ServiceabilityPlatformModel; * @property {string[]} [tag_based_priority] * @property {StorePrioritySchema[]} [store_priority] * @property {string[]} [sort] - * @property {string[]} [manual_priority] * @property {StoreRuleConditionSchema} [conditions] * @property {boolean} [is_active] */ @@ -832,7 +749,6 @@ export = ServiceabilityPlatformModel; * @property {string[]} [tag_based_priority] * @property {StorePrioritySchema[]} [store_priority] * @property {string[]} [sort] - * @property {string[]} [manual_priority] * @property {StoreRuleConditionSchema} [conditions] * @property {boolean} [is_active] * @property {number} [company_id] @@ -1006,10 +922,77 @@ export = ServiceabilityPlatformModel; * @typedef RulePriorityResponse * @property {boolean} [success] */ +/** + * @typedef ArticleAssignment + * @property {string} [level] + * @property {string} [strategy] - The strategy parameter allows users to + * specify the desired approach or criteria for selecting optimal locations. + */ +/** + * @typedef ServiceabilityLocation + * @property {string} longitude - The longitude of the serviceability location. + * @property {string} latitude - The latitude of the serviceability location. + */ +/** + * @typedef LocationDetailsServiceability + * @property {string} [pincode] - The pincode of the serviceability location. + * @property {string} [sector] - The sector of the serviceability location. + * @property {string} [state] - The state of the serviceability location. + * @property {string} country - The country of the serviceability location. + * @property {string} [city] - The city of the serviceability location. + * @property {string} country_iso_code - The ISO code of the country. + * @property {ServiceabilityLocation} [location] + */ +/** + * @typedef OptimalLocationsArticles + * @property {number} item_id + * @property {string} size + * @property {string} quantity + * @property {string} [group_id] + * @property {boolean} [is_primary_item] + * @property {Object} [meta] + * @property {ArticleAssignment} article_assignment + * @property {number[]} ignore_locations + * @property {number[]} assign_locations + * @property {number} [seller_id] + */ +/** + * @typedef OptimlLocationsRequestSchema + * @property {string} channel_id + * @property {string} channel_type + * @property {LocationDetailsServiceability} to_serviceability + * @property {OptimalLocationsArticles} [article] + */ +/** + * @typedef OptimalLocationArticlesResponse + * @property {number} item_id + * @property {string} size + * @property {number} quantity + * @property {string} [group_id] + * @property {boolean} [is_primary_item] + * @property {Object} [meta] + * @property {ArticleAssignment} article_assignment + * @property {number} [seller_id] + * @property {number[]} ignore_locations + * @property {number[]} assign_locations + * @property {number} price_effective + * @property {number} mto_quantity + * @property {string} _id + * @property {string} uid + */ +/** + * @typedef OptimalLocationAssignedStoresResponse + * @property {number} store_id + * @property {OptimalLocationArticlesResponse[]} articles + */ +/** + * @typedef OptimalLocationsResponse + * @property {OptimalLocationAssignedStoresResponse[]} assigned_stores + */ declare class ServiceabilityPlatformModel { } declare namespace ServiceabilityPlatformModel { - export { UpdateZoneConfigRequest, ServiceabilityErrorResponse, ApplicationServiceabilityConfig, ApplicationServiceabilityConfigResponse, EntityRegionView_Request, EntityRegionView_Error, EntityRegionView_page, getAppRegionZonesResponse, PageSchema, EntityRegionView_Items, EntityRegionView_Response, ListViewSummary, ZoneDataItem, ListViewProduct, ListViewChannels, ListViewItems, ListViewResponse, CompanyStoreView_PageItems, CompanyStoreView_Response, GetZoneDataViewChannels, ZoneProductTypes, ZoneMappingType, UpdateZoneData, ZoneUpdateRequest, ZoneSuccessResponse, GetZoneDataViewItems, GetSingleZoneDataViewResponse, GetZoneByIdSchema, CreateZoneData, ZoneResponse, GetZoneFromPincodeViewRequest, Zone, GetZoneFromPincodeViewResponse, GetZoneFromApplicationIdViewResponse, ServiceabilityPageResponse, MobileNo, ManagerResponse, ModifiedByResponse, IntegrationTypeResponse, ProductReturnConfigResponse, ContactNumberResponse, AddressResponse, CreatedByResponse, EwayBillResponse, EinvoiceResponse, GstCredentialsResponse, WarningsResponse, OpeningClosing, TimmingResponse, DocumentsResponse, Dp, LogisticsResponse, ItemResponse, GetStoresViewResponse, ReAssignStoreRequest, ReAssignStoreResponse, PincodeMopData, PincodeMopUpdateResponse, PincodeMOPresponse, CommonError, PincodeMopBulkData, PincodeBulkViewResponse, PincodeCodStatusListingRequest, PincodeCodStatusListingResponse, Error, PincodeCodStatusListingPage, PincodeCodStatusListingSummary, PincodeMopUpdateAuditHistoryRequest, PincodeMopUpdateAuditHistoryPaging, PincodeMopUpdateAuditHistoryResponse, PincodeMopUpdateAuditHistoryResponseData, ArithmeticOperations, SchemeRulesFeatures, SchemeRules, CourierAccount, ErrorResponse, CourierPartnerAccountFailureResponse, Page, CourierPartnerList, LocationRuleValues, LocationRule, StringComparisonOperations, IntComparisonOperations, CourierPartnerRuleConditions, CourierPartnerRule, FailureResponse, CourierPartnerRulesListResponse, CompanyConfig, ZoneConfig, BuyboxConfig, BuyboxRuleConfig, PromiseType, StorePromiseAttributeConfig, DeliveryServiceAttributeConfig, BufferField, PromiseConfig, ApplicationConfig, ApplicationConfigPatchRequest, ApplicationConfigPatchResponse, BulkRegionJobSerializer, BulkRegionResponseItemData, BulkRegionResponse, SelfShipResponse, ApplicationSelfShipConfig, ApplicationSelfShipConfigResponse, StoreRuleConfigData, CustomerRadiusSchema, StoreRuleConditionSchema, StoreRuleDataSchema, StorePrioritySchema, GetStoreRulesApiResponse, CreateStoreRuleRequestSchema, StoreRuleResponseSchema, StoreRuleUpdateResponseSchema, ServiceabilityModel, CourierPartnerSchemeFeatures, CourierPartnerSchemeModel, CourierAccountResponse, CompanyCourierPartnerAccountListResponse, PackageMaterial, PackageMaterialResponse, PackageMaterialRule, PackageRule, PackageRuleResponse, Channel, PackageMaterialRuleList, PackageMaterialList, PackageRuleProduct, PackageRuleProductTag, PackageRuleCategory, PackageMaterialRuleQuantity, RulePriorityRequest, RulePriorityResponse }; + export { UpdateZoneConfigRequest, ServiceabilityErrorResponse, ApplicationServiceabilityConfig, ApplicationServiceabilityConfigResponse, EntityRegionView_Request, EntityRegionView_Error, EntityRegionView_page, getAppRegionZonesResponse, PageSchema, EntityRegionView_Items, EntityRegionView_Response, ListViewSummary, ZoneDataItem, ListViewProduct, ListViewChannels, ListViewItems, ListViewResponse, CompanyStoreView_PageItems, CompanyStoreView_Response, GetZoneDataViewChannels, ZoneProductTypes, ZoneMappingType, UpdateZoneData, ZoneUpdateRequest, ZoneSuccessResponse, GetZoneDataViewItems, GetSingleZoneDataViewResponse, GetZoneByIdSchema, CreateZoneData, ZoneResponse, GetZoneFromPincodeViewRequest, Zone, GetZoneFromPincodeViewResponse, GetZoneFromApplicationIdViewResponse, ServiceabilityPageResponse, MobileNo, ManagerResponse, ModifiedByResponse, IntegrationTypeResponse, ProductReturnConfigResponse, ContactNumberResponse, AddressResponse, CreatedByResponse, EwayBillResponse, EinvoiceResponse, GstCredentialsResponse, WarningsResponse, OpeningClosing, TimmingResponse, DocumentsResponse, Dp, LogisticsResponse, ItemResponse, GetStoresViewResponse, PincodeMopData, PincodeMopUpdateResponse, PincodeMOPresponse, CommonError, PincodeMopBulkData, PincodeBulkViewResponse, PincodeCodStatusListingRequest, PincodeCodStatusListingResponse, Error, PincodeCodStatusListingPage, PincodeCodStatusListingSummary, PincodeMopUpdateAuditHistoryRequest, PincodeMopUpdateAuditHistoryPaging, PincodeMopUpdateAuditHistoryResponse, PincodeMopUpdateAuditHistoryResponseData, ArithmeticOperations, SchemeRulesFeatures, SchemeRules, CourierAccount, ErrorResponse, CourierPartnerAccountFailureResponse, Page, CourierPartnerList, LocationRuleValues, LocationRule, StringComparisonOperations, IntComparisonOperations, CourierPartnerRuleConditions, CourierPartnerRule, FailureResponse, CourierPartnerRulesListResponse, CompanyConfig, ZoneConfig, ApplicationConfig, BulkRegionJobSerializer, BulkRegionResponseItemData, BulkRegionResponse, SelfShipResponse, ApplicationSelfShipConfig, ApplicationSelfShipConfigResponse, StoreRuleConfigData, CustomerRadiusSchema, StoreRuleConditionSchema, StoreRuleDataSchema, StorePrioritySchema, GetStoreRulesApiResponse, CreateStoreRuleRequestSchema, StoreRuleResponseSchema, StoreRuleUpdateResponseSchema, ServiceabilityModel, CourierPartnerSchemeFeatures, CourierPartnerSchemeModel, CourierAccountResponse, CompanyCourierPartnerAccountListResponse, PackageMaterial, PackageMaterialResponse, PackageMaterialRule, PackageRule, PackageRuleResponse, Channel, PackageMaterialRuleList, PackageMaterialList, PackageRuleProduct, PackageRuleProductTag, PackageRuleCategory, PackageMaterialRuleQuantity, RulePriorityRequest, RulePriorityResponse, ArticleAssignment, ServiceabilityLocation, LocationDetailsServiceability, OptimalLocationsArticles, OptimlLocationsRequestSchema, OptimalLocationArticlesResponse, OptimalLocationAssignedStoresResponse, OptimalLocationsResponse }; } /** @returns {UpdateZoneConfigRequest} */ declare function UpdateZoneConfigRequest(): UpdateZoneConfigRequest; @@ -1448,23 +1431,6 @@ type GetStoresViewResponse = { page: ServiceabilityPageResponse; items?: ItemResponse[]; }; -/** @returns {ReAssignStoreRequest} */ -declare function ReAssignStoreRequest(): ReAssignStoreRequest; -type ReAssignStoreRequest = { - to_pincode: string; - identifier: string; - configuration: any; - ignored_locations: string[]; - articles: any[]; -}; -/** @returns {ReAssignStoreResponse} */ -declare function ReAssignStoreResponse(): ReAssignStoreResponse; -type ReAssignStoreResponse = { - to_pincode: string; - success: boolean; - error: any; - articles?: any[]; -}; /** @returns {PincodeMopData} */ declare function PincodeMopData(): PincodeMopData; type PincodeMopData = { @@ -1708,7 +1674,6 @@ type CourierPartnerRule = { cp_list?: CourierPartnerList[]; name: string; conditions: CourierPartnerRuleConditions; - manual_priority?: string[]; sort: string[]; }; /** @returns {FailureResponse} */ @@ -1735,84 +1700,12 @@ declare function ZoneConfig(): ZoneConfig; type ZoneConfig = { serviceability_type?: string; }; -/** @returns {BuyboxConfig} */ -declare function BuyboxConfig(): BuyboxConfig; -type BuyboxConfig = { - show_seller: boolean; - enable_selection: boolean; - is_seller_buybox_enabled: boolean; -}; -/** @returns {BuyboxRuleConfig} */ -declare function BuyboxRuleConfig(): BuyboxRuleConfig; -type BuyboxRuleConfig = { - store_type_priority?: string[]; - store_tag_priority?: string[]; - sort?: string[]; -}; -/** @returns {PromiseType} */ -declare function PromiseType(): PromiseType; -type PromiseType = { - display_name: string; - slug: string; - description: string; - is_active: boolean; - is_default: boolean; -}; -/** @returns {StorePromiseAttributeConfig} */ -declare function StorePromiseAttributeConfig(): StorePromiseAttributeConfig; -type StorePromiseAttributeConfig = { - is_operational_timing_enabled?: boolean; - is_order_acceptance_timing_enabled?: boolean; - is_average_processing_time?: boolean; - is_holiday_enabled?: boolean; -}; -/** @returns {DeliveryServiceAttributeConfig} */ -declare function DeliveryServiceAttributeConfig(): DeliveryServiceAttributeConfig; -type DeliveryServiceAttributeConfig = { - is_pickup_cutoff_time_enabled?: boolean; - is_service_tat_enabled?: boolean; - is_holiday_enabled?: boolean; -}; -/** @returns {BufferField} */ -declare function BufferField(): BufferField; -type BufferField = { - unit?: string; - value?: number; - enabled?: boolean; -}; -/** @returns {PromiseConfig} */ -declare function PromiseConfig(): PromiseConfig; -type PromiseConfig = { - store_attributes?: StorePromiseAttributeConfig; - delivery_service_attributes?: DeliveryServiceAttributeConfig; - buffer_field?: BufferField; -}; /** @returns {ApplicationConfig} */ declare function ApplicationConfig(): ApplicationConfig; type ApplicationConfig = { rule_ids?: string[]; sort?: string[]; - application_id?: string; - company_id?: number; - manual_priority?: string[]; zones?: ZoneConfig; - buybox_config?: BuyboxConfig; - buybox_rule_config?: BuyboxRuleConfig; - promise_types?: PromiseType[]; - promise_config?: PromiseConfig; -}; -/** @returns {ApplicationConfigPatchRequest} */ -declare function ApplicationConfigPatchRequest(): ApplicationConfigPatchRequest; -type ApplicationConfigPatchRequest = { - buybox_config?: BuyboxConfig; - buybox_rule_config?: BuyboxRuleConfig; - promise_types?: PromiseType[]; - promise_config?: PromiseConfig; -}; -/** @returns {ApplicationConfigPatchResponse} */ -declare function ApplicationConfigPatchResponse(): ApplicationConfigPatchResponse; -type ApplicationConfigPatchResponse = { - success?: boolean; }; /** @returns {BulkRegionJobSerializer} */ declare function BulkRegionJobSerializer(): BulkRegionJobSerializer; @@ -1869,7 +1762,6 @@ type StoreRuleConfigData = { tag_based_priority?: string[]; store_priority?: StorePrioritySchema[]; sort?: string[]; - manual_priority?: string[]; }; /** @returns {CustomerRadiusSchema} */ declare function CustomerRadiusSchema(): CustomerRadiusSchema; @@ -1906,7 +1798,6 @@ type StoreRuleDataSchema = { tag_based_priority?: string[]; store_priority?: StorePrioritySchema[]; sort?: string[]; - manual_priority?: string[]; conditions?: StoreRuleConditionSchema; is_active?: boolean; }; @@ -1931,7 +1822,6 @@ type CreateStoreRuleRequestSchema = { type_based_priority?: string[]; tag_based_priority?: string[]; store_priority?: StorePrioritySchema[]; - manual_priority?: string[]; sort?: string[]; }; /** @returns {StoreRuleResponseSchema} */ @@ -1944,7 +1834,6 @@ type StoreRuleResponseSchema = { tag_based_priority?: string[]; store_priority?: StorePrioritySchema[]; sort?: string[]; - manual_priority?: string[]; conditions?: StoreRuleConditionSchema; is_active?: boolean; }; @@ -1958,7 +1847,6 @@ type StoreRuleUpdateResponseSchema = { tag_based_priority?: string[]; store_priority?: StorePrioritySchema[]; sort?: string[]; - manual_priority?: string[]; conditions?: StoreRuleConditionSchema; is_active?: boolean; company_id?: number; @@ -2151,3 +2039,105 @@ declare function RulePriorityResponse(): RulePriorityResponse; type RulePriorityResponse = { success?: boolean; }; +/** @returns {ArticleAssignment} */ +declare function ArticleAssignment(): ArticleAssignment; +type ArticleAssignment = { + level?: string; + /** + * - The strategy parameter allows users to + * specify the desired approach or criteria for selecting optimal locations. + */ + strategy?: string; +}; +/** @returns {ServiceabilityLocation} */ +declare function ServiceabilityLocation(): ServiceabilityLocation; +type ServiceabilityLocation = { + /** + * - The longitude of the serviceability location. + */ + longitude: string; + /** + * - The latitude of the serviceability location. + */ + latitude: string; +}; +/** @returns {LocationDetailsServiceability} */ +declare function LocationDetailsServiceability(): LocationDetailsServiceability; +type LocationDetailsServiceability = { + /** + * - The pincode of the serviceability location. + */ + pincode?: string; + /** + * - The sector of the serviceability location. + */ + sector?: string; + /** + * - The state of the serviceability location. + */ + state?: string; + /** + * - The country of the serviceability location. + */ + country: string; + /** + * - The city of the serviceability location. + */ + city?: string; + /** + * - The ISO code of the country. + */ + country_iso_code: string; + location?: ServiceabilityLocation; +}; +/** @returns {OptimalLocationsArticles} */ +declare function OptimalLocationsArticles(): OptimalLocationsArticles; +type OptimalLocationsArticles = { + item_id: number; + size: string; + quantity: string; + group_id?: string; + is_primary_item?: boolean; + meta?: any; + article_assignment: ArticleAssignment; + ignore_locations: number[]; + assign_locations: number[]; + seller_id?: number; +}; +/** @returns {OptimlLocationsRequestSchema} */ +declare function OptimlLocationsRequestSchema(): OptimlLocationsRequestSchema; +type OptimlLocationsRequestSchema = { + channel_id: string; + channel_type: string; + to_serviceability: LocationDetailsServiceability; + article?: OptimalLocationsArticles; +}; +/** @returns {OptimalLocationArticlesResponse} */ +declare function OptimalLocationArticlesResponse(): OptimalLocationArticlesResponse; +type OptimalLocationArticlesResponse = { + item_id: number; + size: string; + quantity: number; + group_id?: string; + is_primary_item?: boolean; + meta?: any; + article_assignment: ArticleAssignment; + seller_id?: number; + ignore_locations: number[]; + assign_locations: number[]; + price_effective: number; + mto_quantity: number; + _id: string; + uid: string; +}; +/** @returns {OptimalLocationAssignedStoresResponse} */ +declare function OptimalLocationAssignedStoresResponse(): OptimalLocationAssignedStoresResponse; +type OptimalLocationAssignedStoresResponse = { + store_id: number; + articles: OptimalLocationArticlesResponse[]; +}; +/** @returns {OptimalLocationsResponse} */ +declare function OptimalLocationsResponse(): OptimalLocationsResponse; +type OptimalLocationsResponse = { + assigned_stores: OptimalLocationAssignedStoresResponse[]; +}; diff --git a/sdk/platform/Serviceability/ServiceabilityPlatformModel.js b/sdk/platform/Serviceability/ServiceabilityPlatformModel.js index e55b40ead..5334fd232 100644 --- a/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +++ b/sdk/platform/Serviceability/ServiceabilityPlatformModel.js @@ -437,23 +437,6 @@ const Joi = require("joi"); * @property {ItemResponse[]} [items] */ -/** - * @typedef ReAssignStoreRequest - * @property {string} to_pincode - * @property {string} identifier - * @property {Object} configuration - * @property {string[]} ignored_locations - * @property {Object[]} articles - */ - -/** - * @typedef ReAssignStoreResponse - * @property {string} to_pincode - * @property {boolean} success - * @property {Object} error - * @property {Object[]} [articles] - */ - /** * @typedef PincodeMopData * @property {number[]} pincodes @@ -696,7 +679,6 @@ const Joi = require("joi"); * @property {CourierPartnerList[]} [cp_list] * @property {string} name * @property {CourierPartnerRuleConditions} conditions - * @property {string[]} [manual_priority] * @property {string[]} sort */ @@ -724,83 +706,11 @@ const Joi = require("joi"); * @property {string} [serviceability_type] */ -/** - * @typedef BuyboxConfig - * @property {boolean} show_seller - * @property {boolean} enable_selection - * @property {boolean} is_seller_buybox_enabled - */ - -/** - * @typedef BuyboxRuleConfig - * @property {string[]} [store_type_priority] - * @property {string[]} [store_tag_priority] - * @property {string[]} [sort] - */ - -/** - * @typedef PromiseType - * @property {string} display_name - * @property {string} slug - * @property {string} description - * @property {boolean} is_active - * @property {boolean} is_default - */ - -/** - * @typedef StorePromiseAttributeConfig - * @property {boolean} [is_operational_timing_enabled] - * @property {boolean} [is_order_acceptance_timing_enabled] - * @property {boolean} [is_average_processing_time] - * @property {boolean} [is_holiday_enabled] - */ - -/** - * @typedef DeliveryServiceAttributeConfig - * @property {boolean} [is_pickup_cutoff_time_enabled] - * @property {boolean} [is_service_tat_enabled] - * @property {boolean} [is_holiday_enabled] - */ - -/** - * @typedef BufferField - * @property {string} [unit] - * @property {number} [value] - * @property {boolean} [enabled] - */ - -/** - * @typedef PromiseConfig - * @property {StorePromiseAttributeConfig} [store_attributes] - * @property {DeliveryServiceAttributeConfig} [delivery_service_attributes] - * @property {BufferField} [buffer_field] - */ - /** * @typedef ApplicationConfig * @property {string[]} [rule_ids] * @property {string[]} [sort] - * @property {string} [application_id] - * @property {number} [company_id] - * @property {string[]} [manual_priority] * @property {ZoneConfig} [zones] - * @property {BuyboxConfig} [buybox_config] - * @property {BuyboxRuleConfig} [buybox_rule_config] - * @property {PromiseType[]} [promise_types] - * @property {PromiseConfig} [promise_config] - */ - -/** - * @typedef ApplicationConfigPatchRequest - * @property {BuyboxConfig} [buybox_config] - * @property {BuyboxRuleConfig} [buybox_rule_config] - * @property {PromiseType[]} [promise_types] - * @property {PromiseConfig} [promise_config] - */ - -/** - * @typedef ApplicationConfigPatchResponse - * @property {boolean} [success] */ /** @@ -857,7 +767,6 @@ const Joi = require("joi"); * @property {string[]} [tag_based_priority] * @property {StorePrioritySchema[]} [store_priority] * @property {string[]} [sort] - * @property {string[]} [manual_priority] */ /** @@ -894,7 +803,6 @@ const Joi = require("joi"); * @property {string[]} [tag_based_priority] * @property {StorePrioritySchema[]} [store_priority] * @property {string[]} [sort] - * @property {string[]} [manual_priority] * @property {StoreRuleConditionSchema} [conditions] * @property {boolean} [is_active] */ @@ -919,7 +827,6 @@ const Joi = require("joi"); * @property {string[]} [type_based_priority] * @property {string[]} [tag_based_priority] * @property {StorePrioritySchema[]} [store_priority] - * @property {string[]} [manual_priority] * @property {string[]} [sort] */ @@ -932,7 +839,6 @@ const Joi = require("joi"); * @property {string[]} [tag_based_priority] * @property {StorePrioritySchema[]} [store_priority] * @property {string[]} [sort] - * @property {string[]} [manual_priority] * @property {StoreRuleConditionSchema} [conditions] * @property {boolean} [is_active] */ @@ -946,7 +852,6 @@ const Joi = require("joi"); * @property {string[]} [tag_based_priority] * @property {StorePrioritySchema[]} [store_priority] * @property {string[]} [sort] - * @property {string[]} [manual_priority] * @property {StoreRuleConditionSchema} [conditions] * @property {boolean} [is_active] * @property {number} [company_id] @@ -1140,6 +1045,81 @@ const Joi = require("joi"); * @property {boolean} [success] */ +/** + * @typedef ArticleAssignment + * @property {string} [level] + * @property {string} [strategy] - The strategy parameter allows users to + * specify the desired approach or criteria for selecting optimal locations. + */ + +/** + * @typedef ServiceabilityLocation + * @property {string} longitude - The longitude of the serviceability location. + * @property {string} latitude - The latitude of the serviceability location. + */ + +/** + * @typedef LocationDetailsServiceability + * @property {string} [pincode] - The pincode of the serviceability location. + * @property {string} [sector] - The sector of the serviceability location. + * @property {string} [state] - The state of the serviceability location. + * @property {string} country - The country of the serviceability location. + * @property {string} [city] - The city of the serviceability location. + * @property {string} country_iso_code - The ISO code of the country. + * @property {ServiceabilityLocation} [location] + */ + +/** + * @typedef OptimalLocationsArticles + * @property {number} item_id + * @property {string} size + * @property {string} quantity + * @property {string} [group_id] + * @property {boolean} [is_primary_item] + * @property {Object} [meta] + * @property {ArticleAssignment} article_assignment + * @property {number[]} ignore_locations + * @property {number[]} assign_locations + * @property {number} [seller_id] + */ + +/** + * @typedef OptimlLocationsRequestSchema + * @property {string} channel_id + * @property {string} channel_type + * @property {LocationDetailsServiceability} to_serviceability + * @property {OptimalLocationsArticles} [article] + */ + +/** + * @typedef OptimalLocationArticlesResponse + * @property {number} item_id + * @property {string} size + * @property {number} quantity + * @property {string} [group_id] + * @property {boolean} [is_primary_item] + * @property {Object} [meta] + * @property {ArticleAssignment} article_assignment + * @property {number} [seller_id] + * @property {number[]} ignore_locations + * @property {number[]} assign_locations + * @property {number} price_effective + * @property {number} mto_quantity + * @property {string} _id + * @property {string} uid + */ + +/** + * @typedef OptimalLocationAssignedStoresResponse + * @property {number} store_id + * @property {OptimalLocationArticlesResponse[]} articles + */ + +/** + * @typedef OptimalLocationsResponse + * @property {OptimalLocationAssignedStoresResponse[]} assigned_stores + */ + class ServiceabilityPlatformModel { /** @returns {UpdateZoneConfigRequest} */ static UpdateZoneConfigRequest() { @@ -1722,27 +1702,6 @@ class ServiceabilityPlatformModel { }); } - /** @returns {ReAssignStoreRequest} */ - static ReAssignStoreRequest() { - return Joi.object({ - to_pincode: Joi.string().allow("").required(), - identifier: Joi.string().allow("").required(), - configuration: Joi.any().required(), - ignored_locations: Joi.array().items(Joi.string().allow("")).required(), - articles: Joi.array().items(Joi.any()).required(), - }); - } - - /** @returns {ReAssignStoreResponse} */ - static ReAssignStoreResponse() { - return Joi.object({ - to_pincode: Joi.string().allow("").required(), - success: Joi.boolean().required(), - error: Joi.any().required(), - articles: Joi.array().items(Joi.any()), - }); - } - /** @returns {PincodeMopData} */ static PincodeMopData() { return Joi.object({ @@ -2056,7 +2015,6 @@ class ServiceabilityPlatformModel { ), name: Joi.string().allow("").required(), conditions: ServiceabilityPlatformModel.CourierPartnerRuleConditions().required(), - manual_priority: Joi.array().items(Joi.string().allow("")), sort: Joi.array().items(Joi.string().allow("")).required(), }); } @@ -2097,106 +2055,12 @@ class ServiceabilityPlatformModel { }); } - /** @returns {BuyboxConfig} */ - static BuyboxConfig() { - return Joi.object({ - show_seller: Joi.boolean().required(), - enable_selection: Joi.boolean().required(), - is_seller_buybox_enabled: Joi.boolean().required(), - }); - } - - /** @returns {BuyboxRuleConfig} */ - static BuyboxRuleConfig() { - return Joi.object({ - store_type_priority: Joi.array().items(Joi.string().allow("")), - store_tag_priority: Joi.array().items(Joi.string().allow("")), - sort: Joi.array().items(Joi.string().allow("")), - }); - } - - /** @returns {PromiseType} */ - static PromiseType() { - return Joi.object({ - display_name: Joi.string().allow("").required(), - slug: Joi.string().allow("").required(), - description: Joi.string().allow("").required(), - is_active: Joi.boolean().required(), - is_default: Joi.boolean().required(), - }); - } - - /** @returns {StorePromiseAttributeConfig} */ - static StorePromiseAttributeConfig() { - return Joi.object({ - is_operational_timing_enabled: Joi.boolean(), - is_order_acceptance_timing_enabled: Joi.boolean(), - is_average_processing_time: Joi.boolean(), - is_holiday_enabled: Joi.boolean(), - }); - } - - /** @returns {DeliveryServiceAttributeConfig} */ - static DeliveryServiceAttributeConfig() { - return Joi.object({ - is_pickup_cutoff_time_enabled: Joi.boolean(), - is_service_tat_enabled: Joi.boolean(), - is_holiday_enabled: Joi.boolean(), - }); - } - - /** @returns {BufferField} */ - static BufferField() { - return Joi.object({ - unit: Joi.string().allow(""), - value: Joi.number(), - enabled: Joi.boolean(), - }); - } - - /** @returns {PromiseConfig} */ - static PromiseConfig() { - return Joi.object({ - store_attributes: ServiceabilityPlatformModel.StorePromiseAttributeConfig(), - delivery_service_attributes: ServiceabilityPlatformModel.DeliveryServiceAttributeConfig(), - buffer_field: ServiceabilityPlatformModel.BufferField(), - }); - } - /** @returns {ApplicationConfig} */ static ApplicationConfig() { return Joi.object({ rule_ids: Joi.array().items(Joi.string().allow("")), sort: Joi.array().items(Joi.string().allow("")), - application_id: Joi.string().allow(""), - company_id: Joi.number(), - manual_priority: Joi.array().items(Joi.string().allow("")), zones: ServiceabilityPlatformModel.ZoneConfig(), - buybox_config: ServiceabilityPlatformModel.BuyboxConfig(), - buybox_rule_config: ServiceabilityPlatformModel.BuyboxRuleConfig(), - promise_types: Joi.array().items( - ServiceabilityPlatformModel.PromiseType() - ), - promise_config: ServiceabilityPlatformModel.PromiseConfig(), - }); - } - - /** @returns {ApplicationConfigPatchRequest} */ - static ApplicationConfigPatchRequest() { - return Joi.object({ - buybox_config: ServiceabilityPlatformModel.BuyboxConfig(), - buybox_rule_config: ServiceabilityPlatformModel.BuyboxRuleConfig(), - promise_types: Joi.array().items( - ServiceabilityPlatformModel.PromiseType() - ), - promise_config: ServiceabilityPlatformModel.PromiseConfig(), - }); - } - - /** @returns {ApplicationConfigPatchResponse} */ - static ApplicationConfigPatchResponse() { - return Joi.object({ - success: Joi.boolean(), }); } @@ -2271,7 +2135,6 @@ class ServiceabilityPlatformModel { ServiceabilityPlatformModel.StorePrioritySchema() ), sort: Joi.array().items(Joi.string().allow("")), - manual_priority: Joi.array().items(Joi.string().allow("")), }); } @@ -2316,7 +2179,6 @@ class ServiceabilityPlatformModel { ServiceabilityPlatformModel.StorePrioritySchema() ), sort: Joi.array().items(Joi.string().allow("")), - manual_priority: Joi.array().items(Joi.string().allow("")), conditions: ServiceabilityPlatformModel.StoreRuleConditionSchema(), is_active: Joi.boolean(), }); @@ -2351,7 +2213,6 @@ class ServiceabilityPlatformModel { store_priority: Joi.array().items( ServiceabilityPlatformModel.StorePrioritySchema() ), - manual_priority: Joi.array().items(Joi.string().allow("")), sort: Joi.array().items(Joi.string().allow("")), }); } @@ -2368,7 +2229,6 @@ class ServiceabilityPlatformModel { ServiceabilityPlatformModel.StorePrioritySchema() ), sort: Joi.array().items(Joi.string().allow("")), - manual_priority: Joi.array().items(Joi.string().allow("")), conditions: ServiceabilityPlatformModel.StoreRuleConditionSchema(), is_active: Joi.boolean(), }); @@ -2386,7 +2246,6 @@ class ServiceabilityPlatformModel { ServiceabilityPlatformModel.StorePrioritySchema() ), sort: Joi.array().items(Joi.string().allow("")), - manual_priority: Joi.array().items(Joi.string().allow("")), conditions: ServiceabilityPlatformModel.StoreRuleConditionSchema(), is_active: Joi.boolean(), company_id: Joi.number(), @@ -2628,5 +2487,101 @@ class ServiceabilityPlatformModel { success: Joi.boolean(), }); } + + /** @returns {ArticleAssignment} */ + static ArticleAssignment() { + return Joi.object({ + level: Joi.string().allow(""), + strategy: Joi.string().allow(""), + }); + } + + /** @returns {ServiceabilityLocation} */ + static ServiceabilityLocation() { + return Joi.object({ + longitude: Joi.string().allow("").required(), + latitude: Joi.string().allow("").required(), + }); + } + + /** @returns {LocationDetailsServiceability} */ + static LocationDetailsServiceability() { + return Joi.object({ + pincode: Joi.string().allow(""), + sector: Joi.string().allow(""), + state: Joi.string().allow(""), + country: Joi.string().allow("").required(), + city: Joi.string().allow(""), + country_iso_code: Joi.string().allow("").required(), + location: ServiceabilityPlatformModel.ServiceabilityLocation(), + }); + } + + /** @returns {OptimalLocationsArticles} */ + static OptimalLocationsArticles() { + return Joi.object({ + item_id: Joi.number().required(), + size: Joi.string().allow("").required(), + quantity: Joi.string().allow("").required(), + group_id: Joi.string().allow(""), + is_primary_item: Joi.boolean(), + meta: Joi.any(), + article_assignment: ServiceabilityPlatformModel.ArticleAssignment().required(), + ignore_locations: Joi.array().items(Joi.number()).required(), + assign_locations: Joi.array().items(Joi.number()).required(), + seller_id: Joi.number(), + }); + } + + /** @returns {OptimlLocationsRequestSchema} */ + static OptimlLocationsRequestSchema() { + return Joi.object({ + channel_id: Joi.string().allow("").required(), + channel_type: Joi.string().allow("").required(), + to_serviceability: ServiceabilityPlatformModel.LocationDetailsServiceability().required(), + article: ServiceabilityPlatformModel.OptimalLocationsArticles(), + }); + } + + /** @returns {OptimalLocationArticlesResponse} */ + static OptimalLocationArticlesResponse() { + return Joi.object({ + item_id: Joi.number().required(), + size: Joi.string().allow("").required(), + quantity: Joi.number().required(), + group_id: Joi.string().allow(""), + is_primary_item: Joi.boolean(), + meta: Joi.any(), + article_assignment: ServiceabilityPlatformModel.ArticleAssignment().required(), + seller_id: Joi.number(), + ignore_locations: Joi.array().items(Joi.number()).required(), + assign_locations: Joi.array().items(Joi.number()).required(), + price_effective: Joi.number().required(), + mto_quantity: Joi.number().required(), + _id: Joi.string().allow("").required(), + uid: Joi.string().allow("").required(), + }); + } + + /** @returns {OptimalLocationAssignedStoresResponse} */ + static OptimalLocationAssignedStoresResponse() { + return Joi.object({ + store_id: Joi.number().required(), + articles: Joi.array() + .items(ServiceabilityPlatformModel.OptimalLocationArticlesResponse()) + .required(), + }); + } + + /** @returns {OptimalLocationsResponse} */ + static OptimalLocationsResponse() { + return Joi.object({ + assigned_stores: Joi.array() + .items( + ServiceabilityPlatformModel.OptimalLocationAssignedStoresResponse() + ) + .required(), + }); + } } module.exports = ServiceabilityPlatformModel; diff --git a/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts b/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts index cb979ad22..0a1a57acb 100644 --- a/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +++ b/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts @@ -68,11 +68,10 @@ export = ServiceabilityPlatformValidator; * @property {string} [stage] - Stage of the account. enabled/disabled * @property {string} [paymentMode] - Filters dp accounts based on payment mode * @property {string} [transportType] - Filters dp accounts based on transport_type - * @property {string[]} [accountIds] - Filters dp accounts based on their ids */ /** * @typedef GetOptimalLocationsParam - * @property {ServiceabilityPlatformModel.ReAssignStoreRequest} body + * @property {ServiceabilityPlatformModel.OptimlLocationsRequestSchema} body */ /** * @typedef GetPackageMaterialListParam @@ -115,7 +114,7 @@ export = ServiceabilityPlatformValidator; * @property {boolean} [isActive] - Status of Zone (either active or inactive) * @property {string} [channelId] - Zones filtered by an application * @property {string} [q] - Search with name as a free text - * @property {string} [country] - ISO2 code of the country + * @property {string} [countryIsoCode] - ISO2 code of the country * @property {string} [state] - State name * @property {string} [city] - City name * @property {string} [pincode] - Pincode value to search zones @@ -364,13 +363,9 @@ type GetCourierPartnerAccountsParam = { * - Filters dp accounts based on transport_type */ transportType?: string; - /** - * - Filters dp accounts based on their ids - */ - accountIds?: string[]; }; type GetOptimalLocationsParam = { - body: ServiceabilityPlatformModel.ReAssignStoreRequest; + body: ServiceabilityPlatformModel.OptimlLocationsRequestSchema; }; type GetPackageMaterialListParam = { /** @@ -466,7 +461,7 @@ type GetZonesParam = { /** * - ISO2 code of the country */ - country?: string; + countryIsoCode?: string; /** * - State name */ @@ -534,4 +529,4 @@ type UpdateZoneByIdParam = { }; type GetAllStoresParam = any; type GetCompanyConfigurationParam = any; -import ServiceabilityPlatformModel = require("sdk/output/javascript/code/sdk/platform/Serviceability/ServiceabilityPlatformModel"); +import ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel"); diff --git a/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js b/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js index 17556a0d7..863f8ada9 100644 --- a/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +++ b/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js @@ -82,12 +82,11 @@ const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel"); * @property {string} [stage] - Stage of the account. enabled/disabled * @property {string} [paymentMode] - Filters dp accounts based on payment mode * @property {string} [transportType] - Filters dp accounts based on transport_type - * @property {string[]} [accountIds] - Filters dp accounts based on their ids */ /** * @typedef GetOptimalLocationsParam - * @property {ServiceabilityPlatformModel.ReAssignStoreRequest} body + * @property {ServiceabilityPlatformModel.OptimlLocationsRequestSchema} body */ /** @@ -137,7 +136,7 @@ const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel"); * @property {boolean} [isActive] - Status of Zone (either active or inactive) * @property {string} [channelId] - Zones filtered by an application * @property {string} [q] - Search with name as a free text - * @property {string} [country] - ISO2 code of the country + * @property {string} [countryIsoCode] - ISO2 code of the country * @property {string} [state] - State name * @property {string} [city] - City name * @property {string} [pincode] - Pincode value to search zones @@ -289,14 +288,13 @@ class ServiceabilityPlatformValidator { stage: Joi.string().allow(""), paymentMode: Joi.string().allow(""), transportType: Joi.string().allow(""), - accountIds: Joi.array().items(Joi.string().allow("")), }).required(); } /** @returns {GetOptimalLocationsParam} */ static getOptimalLocations() { return Joi.object({ - body: ServiceabilityPlatformModel.ReAssignStoreRequest().required(), + body: ServiceabilityPlatformModel.OptimlLocationsRequestSchema().required(), }).required(); } @@ -358,7 +356,7 @@ class ServiceabilityPlatformValidator { isActive: Joi.boolean(), channelId: Joi.string().allow(""), q: Joi.string().allow(""), - country: Joi.string().allow(""), + countryIsoCode: Joi.string().allow(""), state: Joi.string().allow(""), city: Joi.string().allow(""), pincode: Joi.string().allow(""), diff --git a/sdk/platform/Share/SharePlatformApplicationClient.d.ts b/sdk/platform/Share/SharePlatformApplicationClient.d.ts index c0366a776..d6329a086 100644 --- a/sdk/platform/Share/SharePlatformApplicationClient.d.ts +++ b/sdk/platform/Share/SharePlatformApplicationClient.d.ts @@ -58,5 +58,5 @@ declare class Share { */ updateShortLinkById({ id, body, requestHeaders }?: SharePlatformApplicationValidator.UpdateShortLinkByIdParam, { responseHeaders }?: object): Promise; } -import SharePlatformApplicationValidator = require("sdk/output/javascript/code/sdk/platform/Share/SharePlatformApplicationValidator"); -import SharePlatformModel = require("sdk/output/javascript/code/sdk/platform/Share/SharePlatformModel"); +import SharePlatformApplicationValidator = require("./SharePlatformApplicationValidator"); +import SharePlatformModel = require("./SharePlatformModel"); diff --git a/sdk/platform/Share/SharePlatformApplicationValidator.d.ts b/sdk/platform/Share/SharePlatformApplicationValidator.d.ts index 60c4a6bcc..707dafadc 100644 --- a/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +++ b/sdk/platform/Share/SharePlatformApplicationValidator.d.ts @@ -95,4 +95,4 @@ type UpdateShortLinkByIdParam = { id: string; body: SharePlatformModel.ShortLinkReq; }; -import SharePlatformModel = require("sdk/output/javascript/code/sdk/platform/Share/SharePlatformModel"); +import SharePlatformModel = require("./SharePlatformModel"); diff --git a/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts b/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts index 1b81dc18e..8fd9daf7d 100644 --- a/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +++ b/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts @@ -294,5 +294,5 @@ declare class Theme { */ upgradeTheme({ themeId, requestHeaders }?: ThemePlatformApplicationValidator.UpgradeThemeParam, { responseHeaders }?: object): Promise; } -import ThemePlatformApplicationValidator = require("sdk/output/javascript/code/sdk/platform/Theme/ThemePlatformApplicationValidator"); -import ThemePlatformModel = require("sdk/output/javascript/code/sdk/platform/Theme/ThemePlatformModel"); +import ThemePlatformApplicationValidator = require("./ThemePlatformApplicationValidator"); +import ThemePlatformModel = require("./ThemePlatformModel"); diff --git a/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts b/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts index 2e73f6fb8..32c866212 100644 --- a/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +++ b/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts @@ -345,4 +345,4 @@ type GetApplicationThemesParam = any; type GetApplicationThemesCountParam = any; type GetAppliedThemeParam = any; type GetFontsParam = any; -import ThemePlatformModel = require("sdk/output/javascript/code/sdk/platform/Theme/ThemePlatformModel"); +import ThemePlatformModel = require("./ThemePlatformModel"); diff --git a/sdk/platform/Theme/ThemePlatformClient.d.ts b/sdk/platform/Theme/ThemePlatformClient.d.ts index 75d0d7452..c0416e50f 100644 --- a/sdk/platform/Theme/ThemePlatformClient.d.ts +++ b/sdk/platform/Theme/ThemePlatformClient.d.ts @@ -43,5 +43,5 @@ declare class Theme { */ getCompanyLevelThemes({ searchText, requestHeaders }?: ThemePlatformValidator.GetCompanyLevelThemesParam, { responseHeaders }?: object): Promise; } -import ThemePlatformValidator = require("sdk/output/javascript/code/sdk/platform/Theme/ThemePlatformValidator"); -import ThemePlatformModel = require("sdk/output/javascript/code/sdk/platform/Theme/ThemePlatformModel"); +import ThemePlatformValidator = require("./ThemePlatformValidator"); +import ThemePlatformModel = require("./ThemePlatformModel"); diff --git a/sdk/platform/Theme/ThemePlatformValidator.d.ts b/sdk/platform/Theme/ThemePlatformValidator.d.ts index 987e1f365..20b6c4cff 100644 --- a/sdk/platform/Theme/ThemePlatformValidator.d.ts +++ b/sdk/platform/Theme/ThemePlatformValidator.d.ts @@ -53,4 +53,4 @@ type GetCompanyLevelThemesParam = { */ searchText?: string; }; -import ThemePlatformModel = require("sdk/output/javascript/code/sdk/platform/Theme/ThemePlatformModel"); +import ThemePlatformModel = require("./ThemePlatformModel"); diff --git a/sdk/platform/User/UserPlatformApplicationClient.d.ts b/sdk/platform/User/UserPlatformApplicationClient.d.ts index 4c188a0c6..a057fe24c 100644 --- a/sdk/platform/User/UserPlatformApplicationClient.d.ts +++ b/sdk/platform/User/UserPlatformApplicationClient.d.ts @@ -309,5 +309,5 @@ declare class User { */ updateUserGroupPartially({ groupId, body, requestHeaders }?: UserPlatformApplicationValidator.UpdateUserGroupPartiallyParam, { responseHeaders }?: object): Promise; } -import UserPlatformApplicationValidator = require("sdk/output/javascript/code/sdk/platform/User/UserPlatformApplicationValidator"); -import UserPlatformModel = require("sdk/output/javascript/code/sdk/platform/User/UserPlatformModel"); +import UserPlatformApplicationValidator = require("./UserPlatformApplicationValidator"); +import UserPlatformModel = require("./UserPlatformModel"); diff --git a/sdk/platform/User/UserPlatformApplicationValidator.d.ts b/sdk/platform/User/UserPlatformApplicationValidator.d.ts index 0a90fb712..6ec436d2e 100644 --- a/sdk/platform/User/UserPlatformApplicationValidator.d.ts +++ b/sdk/platform/User/UserPlatformApplicationValidator.d.ts @@ -472,4 +472,4 @@ type UpdateUserGroupPartiallyParam = { body: UserPlatformModel.PartialUserGroupUpdateSchema; }; type GetPlatformConfigParam = any; -import UserPlatformModel = require("sdk/output/javascript/code/sdk/platform/User/UserPlatformModel"); +import UserPlatformModel = require("./UserPlatformModel"); diff --git a/sdk/platform/User/UserPlatformModel.js b/sdk/platform/User/UserPlatformModel.js index 079e06006..824eabca9 100644 --- a/sdk/platform/User/UserPlatformModel.js +++ b/sdk/platform/User/UserPlatformModel.js @@ -879,8 +879,8 @@ class UserPlatformModel { social_tokens: UserPlatformModel.SocialTokens(), created_at: Joi.string().allow(""), register: Joi.boolean(), - mobile_image: Joi.string().allow("").allow(null), - desktop_image: Joi.string().allow("").allow(null), + mobile_image: Joi.string().allow(""), + desktop_image: Joi.string().allow(""), delete_account_day: Joi.number(), delete_account_reasons: Joi.array().items( UserPlatformModel.DeleteAccountReasons() @@ -1115,7 +1115,7 @@ class UserPlatformModel { last_name: Joi.string().allow(""), phone_numbers: Joi.array().items(UserPlatformModel.PhoneNumber()), emails: Joi.array().items(UserPlatformModel.Email()), - gender: Joi.string().allow("").allow(null), + gender: Joi.string().allow(""), dob: Joi.string().allow(""), active: Joi.boolean(), profile_pic_url: Joi.string().allow(""), @@ -1138,7 +1138,7 @@ class UserPlatformModel { last_name: Joi.string().allow(""), phone_numbers: Joi.array().items(UserPlatformModel.PhoneNumber()), emails: Joi.array().items(UserPlatformModel.Email()), - gender: Joi.string().allow("").allow(null), + gender: Joi.string().allow(""), dob: Joi.string().allow(""), active: Joi.boolean(), profile_pic_url: Joi.string().allow(""), diff --git a/sdk/platform/Webhook/WebhookPlatformClient.d.ts b/sdk/platform/Webhook/WebhookPlatformClient.d.ts index 73532d059..dbec5978d 100644 --- a/sdk/platform/Webhook/WebhookPlatformClient.d.ts +++ b/sdk/platform/Webhook/WebhookPlatformClient.d.ts @@ -166,18 +166,6 @@ declare class Webhook { * - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/webhook/registerSubscriberToEvent/). */ registerSubscriberToEvent({ body, requestHeaders }?: WebhookPlatformValidator.RegisterSubscriberToEventParam, { responseHeaders }?: object): Promise; - /** - * @param {WebhookPlatformValidator.RegisterSubscriberToEventV2Param} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name registerSubscriberToEventV2 - * @summary: Register Subscriber. - * @description: Register Subscriber. - * - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/webhook/registerSubscriberToEventV2/). - */ - registerSubscriberToEventV2({ body, requestHeaders }?: WebhookPlatformValidator.RegisterSubscriberToEventV2Param, { responseHeaders }?: object): Promise; /** * @param {WebhookPlatformValidator.UpdateSubscriberConfigParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -190,5 +178,5 @@ declare class Webhook { */ updateSubscriberConfig({ body, requestHeaders }?: WebhookPlatformValidator.UpdateSubscriberConfigParam, { responseHeaders }?: object): Promise; } -import WebhookPlatformValidator = require("sdk/output/javascript/code/sdk/platform/Webhook/WebhookPlatformValidator"); -import WebhookPlatformModel = require("sdk/output/javascript/code/sdk/platform/Webhook/WebhookPlatformModel"); +import WebhookPlatformValidator = require("./WebhookPlatformValidator"); +import WebhookPlatformModel = require("./WebhookPlatformModel"); diff --git a/sdk/platform/Webhook/WebhookPlatformClient.js b/sdk/platform/Webhook/WebhookPlatformClient.js index 6e2ffa0b5..8c4359ca5 100644 --- a/sdk/platform/Webhook/WebhookPlatformClient.js +++ b/sdk/platform/Webhook/WebhookPlatformClient.js @@ -1218,89 +1218,6 @@ class Webhook { return response; } - /** - * @param {WebhookPlatformValidator.RegisterSubscriberToEventV2Param} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name registerSubscriberToEventV2 - * @summary: Register Subscriber. - * @description: Register Subscriber. - * - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/webhook/registerSubscriberToEventV2/). - */ - async registerSubscriberToEventV2( - { body, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = WebhookPlatformValidator.registerSubscriberToEventV2().validate( - { - body, - }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = WebhookPlatformValidator.registerSubscriberToEventV2().validate( - { - body, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Webhook > registerSubscriberToEventV2 \n ${warrning}`, - }); - } - - const query_params = {}; - - const xHeaders = {}; - - const response = await PlatformAPIClient.execute( - this.config, - "post", - `/service/platform/webhook/v2.0/company/${this.config.companyId}/subscriber/`, - query_params, - body, - { ...xHeaders, ...requestHeaders }, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = WebhookPlatformModel.SubscriberConfigResponse().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this.config.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for platform > Webhook > registerSubscriberToEventV2 \n ${res_error}`, - }); - } - } - - return response; - } - /** * @param {WebhookPlatformValidator.UpdateSubscriberConfigParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` diff --git a/sdk/platform/Webhook/WebhookPlatformModel.d.ts b/sdk/platform/Webhook/WebhookPlatformModel.d.ts index 45afb386e..155e79ce8 100644 --- a/sdk/platform/Webhook/WebhookPlatformModel.d.ts +++ b/sdk/platform/Webhook/WebhookPlatformModel.d.ts @@ -208,7 +208,6 @@ export = WebhookPlatformModel; * @property {number} [id] * @property {string} [modified_by] * @property {string} [name] - * @property {string} [provider] * @property {string} [webhook_url] * @property {Association} [association] * @property {Object} [custom_headers] @@ -220,24 +219,6 @@ export = WebhookPlatformModel; * @property {AuthMeta} [auth_meta] * @property {EventConfig[]} [event_configs] */ -/** - * @typedef Events - * @property {string} [slug] - * @property {string} [topic] - */ -/** - * @typedef SubscriberConfigRequestV2 - * @property {number} [id] - * @property {string} [name] - * @property {string} [webhook_url] - * @property {string} [provider] - * @property {Association} [association] - * @property {Object} [custom_headers] - * @property {string} [status] - * @property {string} [email_id] - * @property {AuthMeta} [auth_meta] - * @property {Events[]} [events] - */ /** * @typedef SubscriberConfig * @property {number} [id] @@ -256,7 +237,6 @@ export = WebhookPlatformModel; * @property {string} [modified_by] * @property {string} [name] * @property {string} [webhook_url] - * @property {string} [provider] * @property {Association} [association] * @property {Object} [custom_headers] * @property {SubscriberStatus} [status] @@ -276,7 +256,7 @@ export = WebhookPlatformModel; declare class WebhookPlatformModel { } declare namespace WebhookPlatformModel { - export { Error, Event, RetryEventRequest, Item, RetryCountResponse, RetrySuccessResponse, Err, RetryFailureResponse, RetryStatusResponse, EventProcessRequest, DownloadReportResponse, EventProcessReports, EventProcessReportObject, Page, PingWebhook, PingWebhookResponse, EventConfig, EventConfigResponse, ReportFiltersPayload, ReportFilterResponse, HistoryPayload, HistoryFilters, Url, CdnObject, UploadServiceObject, HistoryAssociation, HistoryItems, HistoryResponse, CancelResponse, Association, AuthMeta, SubscriberResponse, Events, SubscriberConfigRequestV2, SubscriberConfig, SubscriberConfigResponse, SubscriberConfigList, SubscriberStatus }; + export { Error, Event, RetryEventRequest, Item, RetryCountResponse, RetrySuccessResponse, Err, RetryFailureResponse, RetryStatusResponse, EventProcessRequest, DownloadReportResponse, EventProcessReports, EventProcessReportObject, Page, PingWebhook, PingWebhookResponse, EventConfig, EventConfigResponse, ReportFiltersPayload, ReportFilterResponse, HistoryPayload, HistoryFilters, Url, CdnObject, UploadServiceObject, HistoryAssociation, HistoryItems, HistoryResponse, CancelResponse, Association, AuthMeta, SubscriberResponse, SubscriberConfig, SubscriberConfigResponse, SubscriberConfigList, SubscriberStatus }; } /** @returns {Error} */ declare function Error(): Error; @@ -636,7 +616,6 @@ type SubscriberResponse = { id?: number; modified_by?: string; name?: string; - provider?: string; webhook_url?: string; association?: Association; custom_headers?: any; @@ -648,26 +627,6 @@ type SubscriberResponse = { auth_meta?: AuthMeta; event_configs?: EventConfig[]; }; -/** @returns {Events} */ -declare function Events(): Events; -type Events = { - slug?: string; - topic?: string; -}; -/** @returns {SubscriberConfigRequestV2} */ -declare function SubscriberConfigRequestV2(): SubscriberConfigRequestV2; -type SubscriberConfigRequestV2 = { - id?: number; - name?: string; - webhook_url?: string; - provider?: string; - association?: Association; - custom_headers?: any; - status?: string; - email_id?: string; - auth_meta?: AuthMeta; - events?: Events[]; -}; /** @returns {SubscriberConfig} */ declare function SubscriberConfig(): SubscriberConfig; type SubscriberConfig = { @@ -688,7 +647,6 @@ type SubscriberConfigResponse = { modified_by?: string; name?: string; webhook_url?: string; - provider?: string; association?: Association; custom_headers?: any; status?: SubscriberStatus; diff --git a/sdk/platform/Webhook/WebhookPlatformModel.js b/sdk/platform/Webhook/WebhookPlatformModel.js index 926a3f73d..7c4739b7f 100644 --- a/sdk/platform/Webhook/WebhookPlatformModel.js +++ b/sdk/platform/Webhook/WebhookPlatformModel.js @@ -240,7 +240,6 @@ const Joi = require("joi"); * @property {number} [id] * @property {string} [modified_by] * @property {string} [name] - * @property {string} [provider] * @property {string} [webhook_url] * @property {Association} [association] * @property {Object} [custom_headers] @@ -253,26 +252,6 @@ const Joi = require("joi"); * @property {EventConfig[]} [event_configs] */ -/** - * @typedef Events - * @property {string} [slug] - * @property {string} [topic] - */ - -/** - * @typedef SubscriberConfigRequestV2 - * @property {number} [id] - * @property {string} [name] - * @property {string} [webhook_url] - * @property {string} [provider] - * @property {Association} [association] - * @property {Object} [custom_headers] - * @property {string} [status] - * @property {string} [email_id] - * @property {AuthMeta} [auth_meta] - * @property {Events[]} [events] - */ - /** * @typedef SubscriberConfig * @property {number} [id] @@ -292,7 +271,6 @@ const Joi = require("joi"); * @property {string} [modified_by] * @property {string} [name] * @property {string} [webhook_url] - * @property {string} [provider] * @property {Association} [association] * @property {Object} [custom_headers] * @property {SubscriberStatus} [status] @@ -610,7 +588,6 @@ class WebhookPlatformModel { id: Joi.number(), modified_by: Joi.string().allow(""), name: Joi.string().allow(""), - provider: Joi.string().allow(""), webhook_url: Joi.string().allow(""), association: WebhookPlatformModel.Association(), custom_headers: Joi.any(), @@ -624,30 +601,6 @@ class WebhookPlatformModel { }); } - /** @returns {Events} */ - static Events() { - return Joi.object({ - slug: Joi.string().allow(""), - topic: Joi.string().allow(""), - }); - } - - /** @returns {SubscriberConfigRequestV2} */ - static SubscriberConfigRequestV2() { - return Joi.object({ - id: Joi.number(), - name: Joi.string().allow(""), - webhook_url: Joi.string().allow(""), - provider: Joi.string().allow(""), - association: WebhookPlatformModel.Association(), - custom_headers: Joi.any(), - status: Joi.string().allow(""), - email_id: Joi.string().allow(""), - auth_meta: WebhookPlatformModel.AuthMeta(), - events: Joi.array().items(WebhookPlatformModel.Events()), - }); - } - /** @returns {SubscriberConfig} */ static SubscriberConfig() { return Joi.object({ @@ -670,7 +623,6 @@ class WebhookPlatformModel { modified_by: Joi.string().allow(""), name: Joi.string().allow(""), webhook_url: Joi.string().allow(""), - provider: Joi.string().allow(""), association: WebhookPlatformModel.Association(), custom_headers: Joi.any(), status: WebhookPlatformModel.SubscriberStatus(), diff --git a/sdk/platform/Webhook/WebhookPlatformValidator.d.ts b/sdk/platform/Webhook/WebhookPlatformValidator.d.ts index 046634f8d..987b5a12f 100644 --- a/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +++ b/sdk/platform/Webhook/WebhookPlatformValidator.d.ts @@ -54,10 +54,6 @@ export = WebhookPlatformValidator; * @typedef RegisterSubscriberToEventParam * @property {WebhookPlatformModel.SubscriberConfig} body */ -/** - * @typedef RegisterSubscriberToEventV2Param - * @property {WebhookPlatformModel.SubscriberConfigRequestV2} body - */ /** * @typedef UpdateSubscriberConfigParam * @property {WebhookPlatformModel.SubscriberConfig} body @@ -93,13 +89,11 @@ declare class WebhookPlatformValidator { static pingWebhook(): PingWebhookParam; /** @returns {RegisterSubscriberToEventParam} */ static registerSubscriberToEvent(): RegisterSubscriberToEventParam; - /** @returns {RegisterSubscriberToEventV2Param} */ - static registerSubscriberToEventV2(): RegisterSubscriberToEventV2Param; /** @returns {UpdateSubscriberConfigParam} */ static updateSubscriberConfig(): UpdateSubscriberConfigParam; } declare namespace WebhookPlatformValidator { - export { CancelJobByNameParam, DownloadDeliveryReportParam, FetchAllEventConfigurationsParam, GetDeliveryReportsParam, GetEventCountsParam, GetHistoricalReportsParam, GetManualRetryStatusParam, GetReportFiltersParam, GetSubscriberByIdParam, GetSubscribersByCompanyParam, GetSubscribersByExtensionIdParam, ManualRetryCancelParam, ManualRetryOfFailedEventParam, PingWebhookParam, RegisterSubscriberToEventParam, RegisterSubscriberToEventV2Param, UpdateSubscriberConfigParam }; + export { CancelJobByNameParam, DownloadDeliveryReportParam, FetchAllEventConfigurationsParam, GetDeliveryReportsParam, GetEventCountsParam, GetHistoricalReportsParam, GetManualRetryStatusParam, GetReportFiltersParam, GetSubscriberByIdParam, GetSubscribersByCompanyParam, GetSubscribersByExtensionIdParam, ManualRetryCancelParam, ManualRetryOfFailedEventParam, PingWebhookParam, RegisterSubscriberToEventParam, UpdateSubscriberConfigParam }; } type CancelJobByNameParam = { filename: string; @@ -162,13 +156,10 @@ type PingWebhookParam = { type RegisterSubscriberToEventParam = { body: WebhookPlatformModel.SubscriberConfig; }; -type RegisterSubscriberToEventV2Param = { - body: WebhookPlatformModel.SubscriberConfigRequestV2; -}; type UpdateSubscriberConfigParam = { body: WebhookPlatformModel.SubscriberConfig; }; type FetchAllEventConfigurationsParam = any; type GetManualRetryStatusParam = any; type ManualRetryCancelParam = any; -import WebhookPlatformModel = require("sdk/output/javascript/code/sdk/platform/Webhook/WebhookPlatformModel"); +import WebhookPlatformModel = require("./WebhookPlatformModel"); diff --git a/sdk/platform/Webhook/WebhookPlatformValidator.js b/sdk/platform/Webhook/WebhookPlatformValidator.js index 1a7ded4c9..a5fb041b4 100644 --- a/sdk/platform/Webhook/WebhookPlatformValidator.js +++ b/sdk/platform/Webhook/WebhookPlatformValidator.js @@ -72,11 +72,6 @@ const WebhookPlatformModel = require("./WebhookPlatformModel"); * @property {WebhookPlatformModel.SubscriberConfig} body */ -/** - * @typedef RegisterSubscriberToEventV2Param - * @property {WebhookPlatformModel.SubscriberConfigRequestV2} body - */ - /** * @typedef UpdateSubscriberConfigParam * @property {WebhookPlatformModel.SubscriberConfig} body @@ -186,13 +181,6 @@ class WebhookPlatformValidator { }).required(); } - /** @returns {RegisterSubscriberToEventV2Param} */ - static registerSubscriberToEventV2() { - return Joi.object({ - body: WebhookPlatformModel.SubscriberConfigRequestV2().required(), - }).required(); - } - /** @returns {UpdateSubscriberConfigParam} */ static updateSubscriberConfig() { return Joi.object({ diff --git a/sdk/platform/index.d.ts b/sdk/platform/index.d.ts index 978ca9b81..808ce8427 100644 --- a/sdk/platform/index.d.ts +++ b/sdk/platform/index.d.ts @@ -1,27 +1,27 @@ -export const PlatformConfig: typeof import("sdk/output/javascript/code/sdk/platform/PlatformConfig"); -export const PlatformClient: typeof import("sdk/output/javascript/code/sdk/platform/PlatformClient"); +export const PlatformConfig: typeof import("./PlatformConfig"); +export const PlatformClient: typeof import("./PlatformClient"); export namespace PlatformModel { - const AuditTrailPlatformModel: typeof import("sdk/output/javascript/code/sdk/platform/AuditTrail/AuditTrailPlatformModel"); - const BillingPlatformModel: typeof import("sdk/output/javascript/code/sdk/platform/Billing/BillingPlatformModel"); - const CartPlatformModel: typeof import("sdk/output/javascript/code/sdk/platform/Cart/CartPlatformModel"); - const CatalogPlatformModel: typeof import("sdk/output/javascript/code/sdk/platform/Catalog/CatalogPlatformModel"); - const CommonPlatformModel: typeof import("sdk/output/javascript/code/sdk/platform/Common/CommonPlatformModel"); - const CommunicationPlatformModel: typeof import("sdk/output/javascript/code/sdk/platform/Communication/CommunicationPlatformModel"); - const CompanyProfilePlatformModel: typeof import("sdk/output/javascript/code/sdk/platform/CompanyProfile/CompanyProfilePlatformModel"); - const ConfigurationPlatformModel: typeof import("sdk/output/javascript/code/sdk/platform/Configuration/ConfigurationPlatformModel"); - const ContentPlatformModel: typeof import("sdk/output/javascript/code/sdk/platform/Content/ContentPlatformModel"); - const DiscountPlatformModel: typeof import("sdk/output/javascript/code/sdk/platform/Discount/DiscountPlatformModel"); - const FileStoragePlatformModel: typeof import("sdk/output/javascript/code/sdk/platform/FileStorage/FileStoragePlatformModel"); - const FinancePlatformModel: typeof import("sdk/output/javascript/code/sdk/platform/Finance/FinancePlatformModel"); - const InventoryPlatformModel: typeof import("sdk/output/javascript/code/sdk/platform/Inventory/InventoryPlatformModel"); - const LeadPlatformModel: typeof import("sdk/output/javascript/code/sdk/platform/Lead/LeadPlatformModel"); - const ServiceabilityPlatformModel: typeof import("sdk/output/javascript/code/sdk/platform/Serviceability/ServiceabilityPlatformModel"); - const OrderPlatformModel: typeof import("sdk/output/javascript/code/sdk/platform/Order/OrderPlatformModel"); - const PartnerPlatformModel: typeof import("sdk/output/javascript/code/sdk/platform/Partner/PartnerPlatformModel"); - const PaymentPlatformModel: typeof import("sdk/output/javascript/code/sdk/platform/Payment/PaymentPlatformModel"); - const RewardsPlatformModel: typeof import("sdk/output/javascript/code/sdk/platform/Rewards/RewardsPlatformModel"); - const SharePlatformModel: typeof import("sdk/output/javascript/code/sdk/platform/Share/SharePlatformModel"); - const ThemePlatformModel: typeof import("sdk/output/javascript/code/sdk/platform/Theme/ThemePlatformModel"); - const UserPlatformModel: typeof import("sdk/output/javascript/code/sdk/platform/User/UserPlatformModel"); - const WebhookPlatformModel: typeof import("sdk/output/javascript/code/sdk/platform/Webhook/WebhookPlatformModel"); + const AuditTrailPlatformModel: typeof import("./AuditTrail/AuditTrailPlatformModel"); + const BillingPlatformModel: typeof import("./Billing/BillingPlatformModel"); + const CartPlatformModel: typeof import("./Cart/CartPlatformModel"); + const CatalogPlatformModel: typeof import("./Catalog/CatalogPlatformModel"); + const CommonPlatformModel: typeof import("./Common/CommonPlatformModel"); + const CommunicationPlatformModel: typeof import("./Communication/CommunicationPlatformModel"); + const CompanyProfilePlatformModel: typeof import("./CompanyProfile/CompanyProfilePlatformModel"); + const ConfigurationPlatformModel: typeof import("./Configuration/ConfigurationPlatformModel"); + const ContentPlatformModel: typeof import("./Content/ContentPlatformModel"); + const DiscountPlatformModel: typeof import("./Discount/DiscountPlatformModel"); + const FileStoragePlatformModel: typeof import("./FileStorage/FileStoragePlatformModel"); + const FinancePlatformModel: typeof import("./Finance/FinancePlatformModel"); + const InventoryPlatformModel: typeof import("./Inventory/InventoryPlatformModel"); + const LeadPlatformModel: typeof import("./Lead/LeadPlatformModel"); + const ServiceabilityPlatformModel: typeof import("./Serviceability/ServiceabilityPlatformModel"); + const OrderPlatformModel: typeof import("./Order/OrderPlatformModel"); + const PartnerPlatformModel: typeof import("./Partner/PartnerPlatformModel"); + const PaymentPlatformModel: typeof import("./Payment/PaymentPlatformModel"); + const RewardsPlatformModel: typeof import("./Rewards/RewardsPlatformModel"); + const SharePlatformModel: typeof import("./Share/SharePlatformModel"); + const ThemePlatformModel: typeof import("./Theme/ThemePlatformModel"); + const UserPlatformModel: typeof import("./User/UserPlatformModel"); + const WebhookPlatformModel: typeof import("./Webhook/WebhookPlatformModel"); } diff --git a/sdk/public/Billing/BillingPublicClient.d.ts b/sdk/public/Billing/BillingPublicClient.d.ts index a1952535a..402017720 100644 --- a/sdk/public/Billing/BillingPublicClient.d.ts +++ b/sdk/public/Billing/BillingPublicClient.d.ts @@ -3,22 +3,10 @@ declare class Billing { constructor(_conf: any); _conf: any; _relativeUrls: { - getPlanDetails: string; getStandardPlans: string; }; _urls: {}; updateUrls(urls: any): void; - /** - * @param {BillingPublicValidator.GetPlanDetailsParam} arg - Arg object. - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PublicAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getPlanDetails - * @summary: Get plan details - * @description: Get plan details. - * - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/billing/getPlanDetails/). - */ - getPlanDetails({ planId, requestHeaders }?: BillingPublicValidator.GetPlanDetailsParam, { responseHeaders }?: object): Promise; /** * @param {BillingPublicValidator.GetStandardPlansParam} arg - Arg object. * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -31,5 +19,5 @@ declare class Billing { */ getStandardPlans({ platformType, requestHeaders }?: BillingPublicValidator.GetStandardPlansParam, { responseHeaders }?: object): Promise; } -import BillingPublicValidator = require("sdk/output/javascript/code/sdk/public/Billing/BillingPublicValidator"); -import BillingPublicModel = require("sdk/output/javascript/code/sdk/public/Billing/BillingPublicModel"); +import BillingPublicValidator = require("./BillingPublicValidator"); +import BillingPublicModel = require("./BillingPublicModel"); diff --git a/sdk/public/Billing/BillingPublicClient.js b/sdk/public/Billing/BillingPublicClient.js index a9fe11dfe..08ad550bd 100644 --- a/sdk/public/Billing/BillingPublicClient.js +++ b/sdk/public/Billing/BillingPublicClient.js @@ -14,7 +14,6 @@ class Billing { constructor(_conf) { this._conf = _conf; this._relativeUrls = { - getPlanDetails: "/service/public/billing/v1.0/plan/details/{planId}", getStandardPlans: "/service/public/billing/v1.0/plan/detailed-list", }; this._urls = Object.entries(this._relativeUrls).reduce( @@ -33,85 +32,6 @@ class Billing { }; } - /** - * @param {BillingPublicValidator.GetPlanDetailsParam} arg - Arg object. - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PublicAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getPlanDetails - * @summary: Get plan details - * @description: Get plan details. - * - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/billing/getPlanDetails/). - */ - async getPlanDetails( - { planId, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { error } = BillingPublicValidator.getPlanDetails().validate( - { planId }, - { abortEarly: false, allowUnknown: true } - ); - if (error) { - return Promise.reject(new FDKClientValidationError(error)); - } - - // Showing warrnings if extra unknown parameters are found - const { - error: warrning, - } = BillingPublicValidator.getPlanDetails().validate( - { planId }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for public > Billing > getPlanDetails \n ${warrning}`, - }); - } - - const query_params = {}; - - const xHeaders = {}; - - const response = await PublicAPIClient.execute( - this._conf, - "get", - constructUrl({ - url: this._urls["getPlanDetails"], - params: { planId }, - }), - query_params, - undefined, - { ...xHeaders, ...requestHeaders }, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = BillingPublicModel.PlanDetails().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); - - if (res_error) { - if (this._conf.options.strictResponseCheck === true) { - return Promise.reject(new FDKResponseValidationError(res_error)); - } else { - Logger({ - level: "WARN", - message: `Response Validation Warnings for public > Billing > getPlanDetails \n ${res_error}`, - }); - } - } - - return response; - } - /** * @param {BillingPublicValidator.GetStandardPlansParam} arg - Arg object. * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` diff --git a/sdk/public/Billing/BillingPublicModel.d.ts b/sdk/public/Billing/BillingPublicModel.d.ts index 19d14e8c0..23f14fc30 100644 --- a/sdk/public/Billing/BillingPublicModel.d.ts +++ b/sdk/public/Billing/BillingPublicModel.d.ts @@ -37,84 +37,10 @@ export = BillingPublicModel; * @property {Plan} [trial_plan] * @property {string[]} [component_groups] */ -/** - * @typedef PlanTaxation - * @property {number} [gst] - */ -/** - * @typedef OneTimeFees - * @property {number} [developement] - * @property {number} [marketing] - */ -/** - * @typedef CreditLine - * @property {boolean} [is_active] - */ -/** - * @typedef PlanMeta - * @property {string} [plan_platform_display_name] - */ -/** - * @typedef FeatureConfig - * @property {boolean} [enabled] - */ -/** - * @typedef PlanConfig - * @property {boolean} [is_active] - * @property {string} [display_text] - * @property {boolean} [is_default] - * @property {string} [processing_type] - * @property {string[]} [tags] - * @property {FeatureConfig} [feature_config] - * @property {string} [_id] - * @property {string} [component_id] - * @property {string} [created_at] - * @property {string} [modified_at] - */ -/** - * @typedef ComponentsSchema - * @property {string} [name] - * @property {string} [slug] - * @property {string} [description] - * @property {string} [group] - * @property {string} [icon] - * @property {Object} [links] - * @property {PlanConfig} [config] - * @property {boolean} [is_active] - * @property {string} [display_text] - */ -/** - * @typedef PlanDetails - * @property {PlanRecurring} [recurring] - * @property {boolean} [is_trial_plan] - * @property {string} [plan_group] - * @property {string[]} [tag_lines] - * @property {string} [currency] - * @property {boolean} [is_active] - * @property {boolean} [is_visible] - * @property {number} [trial_period] - * @property {string[]} [addons] - * @property {string[]} [tags] - * @property {string} [type] - * @property {string} [country] - * @property {string} [_id] - * @property {string} [name] - * @property {string} [description] - * @property {number} [amount] - * @property {string} [product_suite_id] - * @property {string} [created_at] - * @property {string} [modified_at] - * @property {PlanTaxation} [taxation] - * @property {OneTimeFees} [one_time_fees] - * @property {CreditLine} [credit_line] - * @property {string} [current_status] - * @property {PlanMeta} [meta] - * @property {ComponentsSchema[]} [components] - */ declare class BillingPublicModel { } declare namespace BillingPublicModel { - export { InternalServerError, PlanRecurring, Plan, DetailList, PlanTaxation, OneTimeFees, CreditLine, PlanMeta, FeatureConfig, PlanConfig, ComponentsSchema, PlanDetails }; + export { InternalServerError, PlanRecurring, Plan, DetailList }; } /** @returns {InternalServerError} */ declare function InternalServerError(): InternalServerError; @@ -164,85 +90,3 @@ type DetailList = { trial_plan?: Plan; component_groups?: string[]; }; -/** @returns {PlanTaxation} */ -declare function PlanTaxation(): PlanTaxation; -type PlanTaxation = { - gst?: number; -}; -/** @returns {OneTimeFees} */ -declare function OneTimeFees(): OneTimeFees; -type OneTimeFees = { - developement?: number; - marketing?: number; -}; -/** @returns {CreditLine} */ -declare function CreditLine(): CreditLine; -type CreditLine = { - is_active?: boolean; -}; -/** @returns {PlanMeta} */ -declare function PlanMeta(): PlanMeta; -type PlanMeta = { - plan_platform_display_name?: string; -}; -/** @returns {FeatureConfig} */ -declare function FeatureConfig(): FeatureConfig; -type FeatureConfig = { - enabled?: boolean; -}; -/** @returns {PlanConfig} */ -declare function PlanConfig(): PlanConfig; -type PlanConfig = { - is_active?: boolean; - display_text?: string; - is_default?: boolean; - processing_type?: string; - tags?: string[]; - feature_config?: FeatureConfig; - _id?: string; - component_id?: string; - created_at?: string; - modified_at?: string; -}; -/** @returns {ComponentsSchema} */ -declare function ComponentsSchema(): ComponentsSchema; -type ComponentsSchema = { - name?: string; - slug?: string; - description?: string; - group?: string; - icon?: string; - links?: any; - config?: PlanConfig; - is_active?: boolean; - display_text?: string; -}; -/** @returns {PlanDetails} */ -declare function PlanDetails(): PlanDetails; -type PlanDetails = { - recurring?: PlanRecurring; - is_trial_plan?: boolean; - plan_group?: string; - tag_lines?: string[]; - currency?: string; - is_active?: boolean; - is_visible?: boolean; - trial_period?: number; - addons?: string[]; - tags?: string[]; - type?: string; - country?: string; - _id?: string; - name?: string; - description?: string; - amount?: number; - product_suite_id?: string; - created_at?: string; - modified_at?: string; - taxation?: PlanTaxation; - one_time_fees?: OneTimeFees; - credit_line?: CreditLine; - current_status?: string; - meta?: PlanMeta; - components?: ComponentsSchema[]; -}; diff --git a/sdk/public/Billing/BillingPublicModel.js b/sdk/public/Billing/BillingPublicModel.js index 54481b0e6..59f9cafd5 100644 --- a/sdk/public/Billing/BillingPublicModel.js +++ b/sdk/public/Billing/BillingPublicModel.js @@ -42,88 +42,6 @@ const Joi = require("joi"); * @property {string[]} [component_groups] */ -/** - * @typedef PlanTaxation - * @property {number} [gst] - */ - -/** - * @typedef OneTimeFees - * @property {number} [developement] - * @property {number} [marketing] - */ - -/** - * @typedef CreditLine - * @property {boolean} [is_active] - */ - -/** - * @typedef PlanMeta - * @property {string} [plan_platform_display_name] - */ - -/** - * @typedef FeatureConfig - * @property {boolean} [enabled] - */ - -/** - * @typedef PlanConfig - * @property {boolean} [is_active] - * @property {string} [display_text] - * @property {boolean} [is_default] - * @property {string} [processing_type] - * @property {string[]} [tags] - * @property {FeatureConfig} [feature_config] - * @property {string} [_id] - * @property {string} [component_id] - * @property {string} [created_at] - * @property {string} [modified_at] - */ - -/** - * @typedef ComponentsSchema - * @property {string} [name] - * @property {string} [slug] - * @property {string} [description] - * @property {string} [group] - * @property {string} [icon] - * @property {Object} [links] - * @property {PlanConfig} [config] - * @property {boolean} [is_active] - * @property {string} [display_text] - */ - -/** - * @typedef PlanDetails - * @property {PlanRecurring} [recurring] - * @property {boolean} [is_trial_plan] - * @property {string} [plan_group] - * @property {string[]} [tag_lines] - * @property {string} [currency] - * @property {boolean} [is_active] - * @property {boolean} [is_visible] - * @property {number} [trial_period] - * @property {string[]} [addons] - * @property {string[]} [tags] - * @property {string} [type] - * @property {string} [country] - * @property {string} [_id] - * @property {string} [name] - * @property {string} [description] - * @property {number} [amount] - * @property {string} [product_suite_id] - * @property {string} [created_at] - * @property {string} [modified_at] - * @property {PlanTaxation} [taxation] - * @property {OneTimeFees} [one_time_fees] - * @property {CreditLine} [credit_line] - * @property {string} [current_status] - * @property {PlanMeta} [meta] - * @property {ComponentsSchema[]} [components] - */ - class BillingPublicModel { /** @returns {InternalServerError} */ static InternalServerError() { @@ -174,103 +92,5 @@ class BillingPublicModel { component_groups: Joi.array().items(Joi.string().allow("")), }); } - - /** @returns {PlanTaxation} */ - static PlanTaxation() { - return Joi.object({ - gst: Joi.number(), - }); - } - - /** @returns {OneTimeFees} */ - static OneTimeFees() { - return Joi.object({ - developement: Joi.number().allow(null), - marketing: Joi.number().allow(null), - }); - } - - /** @returns {CreditLine} */ - static CreditLine() { - return Joi.object({ - is_active: Joi.boolean(), - }); - } - - /** @returns {PlanMeta} */ - static PlanMeta() { - return Joi.object({ - plan_platform_display_name: Joi.string().allow(""), - }); - } - - /** @returns {FeatureConfig} */ - static FeatureConfig() { - return Joi.object({ - enabled: Joi.boolean(), - }); - } - - /** @returns {PlanConfig} */ - static PlanConfig() { - return Joi.object({ - is_active: Joi.boolean(), - display_text: Joi.string().allow(""), - is_default: Joi.boolean(), - processing_type: Joi.string().allow(""), - tags: Joi.array().items(Joi.string().allow("")), - feature_config: BillingPublicModel.FeatureConfig(), - _id: Joi.string().allow(""), - component_id: Joi.string().allow(""), - created_at: Joi.string().allow(""), - modified_at: Joi.string().allow(""), - }); - } - - /** @returns {ComponentsSchema} */ - static ComponentsSchema() { - return Joi.object({ - name: Joi.string().allow(""), - slug: Joi.string().allow(""), - description: Joi.string().allow(""), - group: Joi.string().allow(""), - icon: Joi.string().allow(""), - links: Joi.any(), - config: BillingPublicModel.PlanConfig(), - is_active: Joi.boolean(), - display_text: Joi.string().allow(""), - }); - } - - /** @returns {PlanDetails} */ - static PlanDetails() { - return Joi.object({ - recurring: BillingPublicModel.PlanRecurring(), - is_trial_plan: Joi.boolean(), - plan_group: Joi.string().allow(""), - tag_lines: Joi.array().items(Joi.string().allow("")), - currency: Joi.string().allow(""), - is_active: Joi.boolean(), - is_visible: Joi.boolean(), - trial_period: Joi.number(), - addons: Joi.array().items(Joi.string().allow("")), - tags: Joi.array().items(Joi.string().allow("")), - type: Joi.string().allow(""), - country: Joi.string().allow(""), - _id: Joi.string().allow(""), - name: Joi.string().allow(""), - description: Joi.string().allow(""), - amount: Joi.number(), - product_suite_id: Joi.string().allow(""), - created_at: Joi.string().allow(""), - modified_at: Joi.string().allow(""), - taxation: BillingPublicModel.PlanTaxation(), - one_time_fees: BillingPublicModel.OneTimeFees(), - credit_line: BillingPublicModel.CreditLine(), - current_status: Joi.string().allow(""), - meta: BillingPublicModel.PlanMeta(), - components: Joi.array().items(BillingPublicModel.ComponentsSchema()), - }); - } } module.exports = BillingPublicModel; diff --git a/sdk/public/Billing/BillingPublicValidator.d.ts b/sdk/public/Billing/BillingPublicValidator.d.ts index e733a1564..87a76ab76 100644 --- a/sdk/public/Billing/BillingPublicValidator.d.ts +++ b/sdk/public/Billing/BillingPublicValidator.d.ts @@ -1,27 +1,15 @@ export = BillingPublicValidator; -/** - * @typedef GetPlanDetailsParam - * @property {string} planId - Plan unique id. - */ /** * @typedef GetStandardPlansParam * @property {string} platformType - The type of platform for which plans are requested. */ declare class BillingPublicValidator { - /** @returns {GetPlanDetailsParam} */ - static getPlanDetails(): GetPlanDetailsParam; /** @returns {GetStandardPlansParam} */ static getStandardPlans(): GetStandardPlansParam; } declare namespace BillingPublicValidator { - export { GetPlanDetailsParam, GetStandardPlansParam }; + export { GetStandardPlansParam }; } -type GetPlanDetailsParam = { - /** - * - Plan unique id. - */ - planId: string; -}; type GetStandardPlansParam = { /** * - The type of platform for which plans are requested. diff --git a/sdk/public/Billing/BillingPublicValidator.js b/sdk/public/Billing/BillingPublicValidator.js index 4bf0325b8..ea9fd0030 100644 --- a/sdk/public/Billing/BillingPublicValidator.js +++ b/sdk/public/Billing/BillingPublicValidator.js @@ -2,24 +2,12 @@ const Joi = require("joi"); const BillingPublicModel = require("./BillingPublicModel"); -/** - * @typedef GetPlanDetailsParam - * @property {string} planId - Plan unique id. - */ - /** * @typedef GetStandardPlansParam * @property {string} platformType - The type of platform for which plans are requested. */ class BillingPublicValidator { - /** @returns {GetPlanDetailsParam} */ - static getPlanDetails() { - return Joi.object({ - planId: Joi.string().allow("").required(), - }).required(); - } - /** @returns {GetStandardPlansParam} */ static getStandardPlans() { return Joi.object({ diff --git a/sdk/public/Configuration/ConfigurationPublicClient.d.ts b/sdk/public/Configuration/ConfigurationPublicClient.d.ts index 7ad26ff6a..e199c2188 100644 --- a/sdk/public/Configuration/ConfigurationPublicClient.d.ts +++ b/sdk/public/Configuration/ConfigurationPublicClient.d.ts @@ -29,5 +29,5 @@ declare class Configuration { */ searchApplication({ authorization, query, requestHeaders }?: ConfigurationPublicValidator.SearchApplicationParam, { responseHeaders }?: object): Promise; } -import ConfigurationPublicValidator = require("sdk/output/javascript/code/sdk/public/Configuration/ConfigurationPublicValidator"); -import ConfigurationPublicModel = require("sdk/output/javascript/code/sdk/public/Configuration/ConfigurationPublicModel"); +import ConfigurationPublicValidator = require("./ConfigurationPublicValidator"); +import ConfigurationPublicModel = require("./ConfigurationPublicModel"); diff --git a/sdk/public/Content/ContentPublicClient.d.ts b/sdk/public/Content/ContentPublicClient.d.ts index ac3e06b48..098197704 100644 --- a/sdk/public/Content/ContentPublicClient.d.ts +++ b/sdk/public/Content/ContentPublicClient.d.ts @@ -18,5 +18,5 @@ declare class Content { */ getCredentialsByEntity({ entity, requestHeaders }?: ContentPublicValidator.GetCredentialsByEntityParam, { responseHeaders }?: object): Promise; } -import ContentPublicValidator = require("sdk/output/javascript/code/sdk/public/Content/ContentPublicValidator"); -import ContentPublicModel = require("sdk/output/javascript/code/sdk/public/Content/ContentPublicModel"); +import ContentPublicValidator = require("./ContentPublicValidator"); +import ContentPublicModel = require("./ContentPublicModel"); diff --git a/sdk/public/Inventory/InventoryPublicClient.d.ts b/sdk/public/Inventory/InventoryPublicClient.d.ts index 7627fc851..6b650b7fd 100644 --- a/sdk/public/Inventory/InventoryPublicClient.d.ts +++ b/sdk/public/Inventory/InventoryPublicClient.d.ts @@ -83,5 +83,5 @@ declare class Inventory { */ saveJobCodesMetrics({ body, requestHeaders }?: InventoryPublicValidator.SaveJobCodesMetricsParam, { responseHeaders }?: object): Promise; } -import InventoryPublicValidator = require("sdk/output/javascript/code/sdk/public/Inventory/InventoryPublicValidator"); -import InventoryPublicModel = require("sdk/output/javascript/code/sdk/public/Inventory/InventoryPublicModel"); +import InventoryPublicValidator = require("./InventoryPublicValidator"); +import InventoryPublicModel = require("./InventoryPublicModel"); diff --git a/sdk/public/Inventory/InventoryPublicValidator.d.ts b/sdk/public/Inventory/InventoryPublicValidator.d.ts index f45033836..43aeef9c6 100644 --- a/sdk/public/Inventory/InventoryPublicValidator.d.ts +++ b/sdk/public/Inventory/InventoryPublicValidator.d.ts @@ -88,4 +88,4 @@ type GetJobConfigByIntegrationTypeParam = { type SaveJobCodesMetricsParam = { body: InventoryPublicModel.EmailJobMetrics; }; -import InventoryPublicModel = require("sdk/output/javascript/code/sdk/public/Inventory/InventoryPublicModel"); +import InventoryPublicModel = require("./InventoryPublicModel"); diff --git a/sdk/public/Partner/PartnerPublicClient.d.ts b/sdk/public/Partner/PartnerPublicClient.d.ts index 663913b4c..789f940b4 100644 --- a/sdk/public/Partner/PartnerPublicClient.d.ts +++ b/sdk/public/Partner/PartnerPublicClient.d.ts @@ -18,5 +18,5 @@ declare class Partner { */ getPanelExtensionDetails({ slug, requestHeaders }?: PartnerPublicValidator.GetPanelExtensionDetailsParam, { responseHeaders }?: object): Promise; } -import PartnerPublicValidator = require("sdk/output/javascript/code/sdk/public/Partner/PartnerPublicValidator"); -import PartnerPublicModel = require("sdk/output/javascript/code/sdk/public/Partner/PartnerPublicModel"); +import PartnerPublicValidator = require("./PartnerPublicValidator"); +import PartnerPublicModel = require("./PartnerPublicModel"); diff --git a/sdk/public/PublicClient.d.ts b/sdk/public/PublicClient.d.ts index b5f4001d8..9a1126095 100644 --- a/sdk/public/PublicClient.d.ts +++ b/sdk/public/PublicClient.d.ts @@ -11,7 +11,7 @@ declare class PublicClient { * @param {import("./PublicConfig")} config - The configuration for the public client. */ constructor(config: import("./PublicConfig")); - config: import("sdk/output/javascript/code/sdk/public/PublicConfig"); + config: import("./PublicConfig"); billing: Billing; configuration: Configuration; content: Content; @@ -26,9 +26,9 @@ declare class PublicClient { */ setExtraHeaders(header: object): void; } -import Billing = require("sdk/output/javascript/code/sdk/public/Billing/BillingPublicClient"); -import Configuration = require("sdk/output/javascript/code/sdk/public/Configuration/ConfigurationPublicClient"); -import Content = require("sdk/output/javascript/code/sdk/public/Content/ContentPublicClient"); -import Inventory = require("sdk/output/javascript/code/sdk/public/Inventory/InventoryPublicClient"); -import Partner = require("sdk/output/javascript/code/sdk/public/Partner/PartnerPublicClient"); -import Webhook = require("sdk/output/javascript/code/sdk/public/Webhook/WebhookPublicClient"); +import Billing = require("./Billing/BillingPublicClient"); +import Configuration = require("./Configuration/ConfigurationPublicClient"); +import Content = require("./Content/ContentPublicClient"); +import Inventory = require("./Inventory/InventoryPublicClient"); +import Partner = require("./Partner/PartnerPublicClient"); +import Webhook = require("./Webhook/WebhookPublicClient"); diff --git a/sdk/public/Webhook/WebhookPublicClient.d.ts b/sdk/public/Webhook/WebhookPublicClient.d.ts index 5de53dfa7..bf18dee32 100644 --- a/sdk/public/Webhook/WebhookPublicClient.d.ts +++ b/sdk/public/Webhook/WebhookPublicClient.d.ts @@ -62,5 +62,5 @@ declare class Webhook { */ validateSchema({ body, requestHeaders }?: WebhookPublicValidator.ValidateSchemaParam, { responseHeaders }?: object): Promise; } -import WebhookPublicModel = require("sdk/output/javascript/code/sdk/public/Webhook/WebhookPublicModel"); -import WebhookPublicValidator = require("sdk/output/javascript/code/sdk/public/Webhook/WebhookPublicValidator"); +import WebhookPublicModel = require("./WebhookPublicModel"); +import WebhookPublicValidator = require("./WebhookPublicValidator"); diff --git a/sdk/public/Webhook/WebhookPublicValidator.d.ts b/sdk/public/Webhook/WebhookPublicValidator.d.ts index ce449cdea..b3b0055e2 100644 --- a/sdk/public/Webhook/WebhookPublicValidator.d.ts +++ b/sdk/public/Webhook/WebhookPublicValidator.d.ts @@ -39,4 +39,4 @@ type ValidateSchemaParam = { }; type FetchAllWebhookEventsParam = any; type NotifyDepricatedEventParam = any; -import WebhookPublicModel = require("sdk/output/javascript/code/sdk/public/Webhook/WebhookPublicModel"); +import WebhookPublicModel = require("./WebhookPublicModel"); diff --git a/sdk/public/index.d.ts b/sdk/public/index.d.ts index 30817f205..429c6d6cd 100644 --- a/sdk/public/index.d.ts +++ b/sdk/public/index.d.ts @@ -1,10 +1,10 @@ -export const PublicConfig: typeof import("sdk/output/javascript/code/sdk/public/PublicConfig"); -export const PublicClient: typeof import("sdk/output/javascript/code/sdk/public/PublicClient"); +export const PublicConfig: typeof import("./PublicConfig"); +export const PublicClient: typeof import("./PublicClient"); export namespace PublicModel { - const BillingPublicModel: typeof import("sdk/output/javascript/code/sdk/public/Billing/BillingPublicModel"); - const ConfigurationPublicModel: typeof import("sdk/output/javascript/code/sdk/public/Configuration/ConfigurationPublicModel"); - const ContentPublicModel: typeof import("sdk/output/javascript/code/sdk/public/Content/ContentPublicModel"); - const InventoryPublicModel: typeof import("sdk/output/javascript/code/sdk/public/Inventory/InventoryPublicModel"); - const PartnerPublicModel: typeof import("sdk/output/javascript/code/sdk/public/Partner/PartnerPublicModel"); - const WebhookPublicModel: typeof import("sdk/output/javascript/code/sdk/public/Webhook/WebhookPublicModel"); + const BillingPublicModel: typeof import("./Billing/BillingPublicModel"); + const ConfigurationPublicModel: typeof import("./Configuration/ConfigurationPublicModel"); + const ContentPublicModel: typeof import("./Content/ContentPublicModel"); + const InventoryPublicModel: typeof import("./Inventory/InventoryPublicModel"); + const PartnerPublicModel: typeof import("./Partner/PartnerPublicModel"); + const WebhookPublicModel: typeof import("./Webhook/WebhookPublicModel"); }