diff --git a/CHANGELOG.md b/CHANGELOG.md index 31d1fa01a..6cff9d5e6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,403 +1,19528 @@ -# CHANGE LOG (1.4.12-beta.1) - 1.9.4 +# CHANGE LOG (v1.4.15-beta.1) - 1.9.4 ## Application Client +- [Breaking] [Removed] Finance class from application client -### Content +### Cart -#### getBlog +#### getCart -- ##### What's New - - [Added] Possible values locate-us to property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 +- ##### What's Deprecated + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property applied_promo_details[].promotion_type of schema AppliedPromotion in response with status code 200 + - [Breaking] [Deleted] property items[].product.action.page of schema ProductAction in response with status code 200 + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 -#### getBlogs +#### addItems -- ##### What's New - - [Added] Possible values locate-us to property items[].seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property items[].seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 +- ##### What's Deprecated + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property cart.applied_promo_details[].promotion_type of schema AppliedPromotion in response with status code 200 + - [Breaking] [Deleted] property cart.items[].product.action.page of schema ProductAction in response with status code 200 + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property cart.items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 -#### getLandingPage +#### updateCart -- ##### What's New - - [Added] Possible values locate-us to property action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property action.popup.type of schema PageType in response with status code 200 +- ##### What's Deprecated + - [Breaking] [Deleted] property free_gift_items of schema UpdateCartCreation in request body + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property cart.applied_promo_details[].promotion_type of schema AppliedPromotion in response with status code 200 + - [Breaking] [Deleted] property cart.items[].product.action.page of schema ProductAction in response with status code 200 + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property cart.items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 -#### getNavigations +#### getCoupons -- ##### What's New - - [Added] Possible values locate-us to property items[].navigation[].action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property items[].navigation[].action.popup.type of schema PageType in response with status code 200 +- ##### What's Deprecated + - [Deleted] Value format from date-time from property available_coupon_list[].start_date of schema Coupon in response with status code 200 + - [Deleted] Value format from date-time from property available_coupon_list[].end_date of schema Coupon in response with status code 200 -#### getSlideshows +#### applyCoupon -- ##### What's New - - [Added] Possible values locate-us to property items[].media[].action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property items[].media[].action.popup.type of schema PageType in response with status code 200 +- ##### What's Deprecated + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property applied_promo_details[].promotion_type of schema AppliedPromotion in response with status code 201 + - [Breaking] [Deleted] property items[].product.action.page of schema ProductAction in response with status code 201 + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 201 -#### getSlideshow +#### removeCoupon -- ##### What's New - - [Added] Possible values locate-us to property media[].action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property media[].action.popup.type of schema PageType in response with status code 200 +- ##### What's Deprecated + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property applied_promo_details[].promotion_type of schema AppliedPromotion in response with status code 200 + - [Breaking] [Deleted] property items[].product.action.page of schema ProductAction in response with status code 200 + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 -#### getPage +#### getBulkDiscountOffers - ##### What's New - - [Added] Possible values locate-us to property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + - [Added] Response with status 500 -#### getPages +#### applyRewardPoints -- ##### What's New - - [Added] Possible values locate-us to property items[].seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property items[].seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 +- ##### What's Deprecated + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property applied_promo_details[].promotion_type of schema AppliedPromotion in response with status code 200 + - [Breaking] [Deleted] property items[].product.action.page of schema ProductAction in response with status code 200 + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 -### Theme +#### getAddresses +- ##### What's Deprecated + - [Breaking] [Deleted] property validation_config of schema GetAddressesResult in response with status code 200 -#### getAllPages +#### addAddress -- ##### What's New - - [Added] Possible values locate-us to property pages[].seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property pages[].seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 422 -#### getPage +#### selectAddress -- ##### What's New - - [Added] Possible values locate-us to property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 +- ##### What's Deprecated + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property applied_promo_details[].promotion_type of schema AppliedPromotion in response with status code 201 + - [Breaking] [Deleted] property items[].product.action.page of schema ProductAction in response with status code 201 + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 201 -## Partner Client +#### selectPaymentMode +- ##### What's Deprecated + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property applied_promo_details[].promotion_type of schema AppliedPromotion in response with status code 200 + - [Breaking] [Deleted] property items[].product.action.page of schema ProductAction in response with status code 200 + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 -### Theme +#### validateCouponForPayment +- ##### What's Deprecated + - [Breaking] [Deleted] property coupon_validity.error_en of schema CouponValidity in response with status code 200 -#### getAllPages +#### getShipments - ##### What's New - - [Added] Possible values locate-us to property pages[].seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property pages[].seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 - + - [Added] Response with status 500 -#### createPage +- ##### What's Deprecated + - [Deleted] Possible values from HomeDelivery,PickAtStore from property shipments[].order_type of schema ShipmentResult in response with status code 200 + - [Breaking] [Deleted] property shipments[].items[].product.action.page of schema ProductAction in response with status code 200 + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property shipments[].items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 -- ##### What's New - - [Added] Possible values locate-us to property seo.breadcrumb[].action.page.type of schema PageType in request body - - [Added] Possible values locate-us to property seo.breadcrumb[].action.popup.type of schema PageType in request body - - [Added] Possible values locate-us to property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 +#### checkoutCart -#### updateMultiplePages +- ##### What's Deprecated + - [Breaking] [Deleted] method checkoutCart -- ##### What's New - - [Added] Possible values locate-us to property pages[].seo.breadcrumb[].action.page.type of schema PageType in request body - - [Added] Possible values locate-us to property pages[].seo.breadcrumb[].action.popup.type of schema PageType in request body - - [Added] Possible values locate-us to property pages[].seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property pages[].seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 -#### getPage +#### getCartSharedItems -- ##### What's New - - [Added] Possible values locate-us to property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 +- ##### What's Deprecated + - [Breaking] [Deleted] property cart.items[].product.action.page of schema ProductAction in response with status code 200 + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property cart.items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 + - [Breaking] [Deleted] property cart.items[].product.action.page of schema ProductAction in response with status code 404 + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property cart.items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 404 -#### updatePage +#### updateCartWithSharedItems -- ##### What's New - - [Added] Possible values locate-us to property seo.breadcrumb[].action.page.type of schema PageType in request body - - [Added] Possible values locate-us to property seo.breadcrumb[].action.popup.type of schema PageType in request body - - [Added] Possible values locate-us to property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 +- ##### What's Deprecated + - [Breaking] [Deleted] property cart.items[].product.action.page of schema ProductAction in response with status code 200 + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property cart.items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 -#### deletePage +#### getPromotionOffers -- ##### What's New - - [Added] Possible values locate-us to property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 +- ##### What's Deprecated + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property available_promotions[].promotion_type of schema PromotionOffer in response with status code 200 + - [Breaking] [Deleted] property available_promotions[].free_gift_items[].article_price of schema FreeGiftItems in response with status code 200 + - [Breaking] [Deleted] property available_promotions[].free_gift_items[].available_sizes of schema FreeGiftItems in response with status code 200 + - [Breaking] [Deleted] property available_promotions[].free_gift_items[].size of schema FreeGiftItems in response with status code 200 -## Platform Client +#### getLadderOffers +- ##### What's Deprecated + - [Breaking] [Deleted] property available_offers[].free_gift_items[].article_price of schema FreeGiftItems in response with status code 200 + - [Breaking] [Deleted] property available_offers[].free_gift_items[].available_sizes of schema FreeGiftItems in response with status code 200 + - [Breaking] [Deleted] property available_offers[].free_gift_items[].size of schema FreeGiftItems in response with status code 200 -### Catalog +#### getPromotionPaymentOffers +- ##### What's Deprecated + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property promotions[].promotion_type of schema PromotionPaymentOffer in response with status code 200 -#### getApplicationBrandListing +#### checkoutCartV2 - ##### What's New - - [Added] Possible values locate-us to property items[].action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property items[].action.popup.type of schema PageType in response with status code 200 + - [Added] Possible nullable value true to property customer_details of schema CartCheckoutDetailV2Request in request body +- ##### What's Deprecated + - [Breaking] [Deleted] property custom_meta[] of schema CartCheckoutDetailV2Creation in request body + - [Breaking] [Deleted] properties customer_details.email, customer_details.mobile, customer_details.name in request body + - [Deleted] Possible values from HomeDelivery,PickAtStore from property order_type of schema CartCheckoutDetailV2Creation in request body + - [Breaking] [Deleted] property cart.items[].product.action.page of schema ProductAction in response with status code 200 + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property cart.items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 -#### getApplicationBrands +- ##### What's Changed + - [Breaking] [Changed] Type from array to object of property custom_meta of schema CartCheckoutDetailV2Creation in request body + - [Changed] customer_details.mobile made optional in request body -- ##### What's New - - [Added] Possible values locate-us to property items[].action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property items[].action.popup.type of schema PageType in response with status code 200 +### Catalog -#### getCategories -- ##### What's New - - [Added] Possible values locate-us to property data[].items[].action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property data[].items[].action.popup.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property data[].items[].childs[].action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property data[].items[].childs[].action.popup.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property data[].items[].childs[].childs[].action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property data[].items[].childs[].childs[].action.popup.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property data[].items[].childs[].childs[].childs[].action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property data[].items[].childs[].childs[].childs[].action.popup.type of schema PageType in response with status code 200 +#### getProductDetailBySlug -#### getApplicationCategoryListing +- ##### What's Deprecated + - [Deleted] Possible values from set,standard,composite,digital from property item_type of schema ProductDetail in response with status code 200 -- ##### What's New - - [Added] Possible values locate-us to property items[].action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property items[].action.popup.type of schema PageType in response with status code 200 +#### getProductComparisonBySlugs -#### getAllCollections +- ##### What's Deprecated + - [Deleted] Possible values from set,standard,composite,digital from property items[].item_type of schema ProductDetail in response with status code 200 -- ##### What's New - - [Added] Possible values locate-us to property items[].action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property items[].action.popup.type of schema PageType in response with status code 200 +#### getSimilarComparisonProductBySlug -#### getCollectionItems +- ##### What's Deprecated + - [Deleted] Possible values from set,standard,composite,digital from property items[].item_type of schema ProductDetail in response with status code 200 -- ##### What's New - - [Added] Possible values locate-us to property items[].brand.action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property items[].brand.action.popup.type of schema PageType in response with status code 200 +#### getComparedFrequentlyProductBySlug -#### getAppicationProducts +- ##### What's Deprecated + - [Deleted] Possible values from set,standard,composite,digital from property similars.items[].item_type of schema ProductDetail in response with status code 200 + + +#### getProductStockByIds - ##### What's New - - [Added] Possible values locate-us to property items[].brand.action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property items[].brand.action.popup.type of schema PageType in response with status code 200 + - [Breaking] [Added] Type object to property items[].identifier of schema ProductStockStatusItem in response with status code 200 +- ##### What's Deprecated + - [Breaking] [Deleted] properties items[].identifier.ean, items[].identifier.sku_code, items[].identifier.alu, items[].identifier.upc, items[].identifier.isbn in response with status code 200 -#### getProductDetailBySlug + +#### getProductStockForTimeByIds - ##### What's New - - [Added] Possible values locate-us to property brand.action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property brand.action.popup.type of schema PageType in response with status code 200 + - [Breaking] [Added] Type object to property items[].identifier of schema ProductStockStatusItem in response with status code 200 +- ##### What's Deprecated + - [Breaking] [Deleted] properties items[].identifier.ean, items[].identifier.sku_code, items[].identifier.alu, items[].identifier.upc, items[].identifier.isbn in response with status code 200 -### Content +#### getProducts +- ##### What's Deprecated + - [Deleted] Possible values from set,standard,composite,digital from property items[].item_type of schema ProductListingDetail in response with status code 200 -#### createBlog -- ##### What's New - - [Added] Possible values locate-us to property seo.breadcrumb[].action.page.type of schema PageType in request body - - [Added] Possible values locate-us to property seo.breadcrumb[].action.popup.type of schema PageType in request body - - [Added] Possible values locate-us to property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 +#### getHomeProducts +- ##### What's Deprecated + - [Deleted] Possible values from set,standard,composite,digital from property items[].item_type of schema ProductListingDetail in response with status code 200 -#### getBlogs -- ##### What's New - - [Added] Possible values locate-us to property items[].seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property items[].seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 +#### getCollectionItemsBySlug +- ##### What's Deprecated + - [Deleted] Possible values from set,standard,composite,digital from property items[].item_type of schema ProductListingDetail in response with status code 200 -#### updateBlog -- ##### What's New - - [Added] Possible values locate-us to property seo.breadcrumb[].action.page.type of schema PageType in request body - - [Added] Possible values locate-us to property seo.breadcrumb[].action.popup.type of schema PageType in request body - - [Added] Possible values locate-us to property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 +#### getFollowedListing +- ##### What's Deprecated + - [Deleted] Possible values from set,standard,composite,digital from property items[].item_type of schema ProductListingDetail in response with status code 200 -#### deleteBlog -- ##### What's New - - [Added] Possible values locate-us to property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 +#### getStores +- ##### What's Deprecated + - [Breaking] [Deleted] property items[].contacts of schema Store in response with status code 200 -#### getLandingPages -- ##### What's New - - [Added] Possible values locate-us to property items[].action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property items[].action.popup.type of schema PageType in response with status code 200 +#### getProductPriceBySlug +- ##### What's Deprecated + - [Deleted] Possible values from set,standard,composite,digital from property item_type of schema ProductSizePriceResponseV3 in response with status code 200 -#### createLandingPage -- ##### What's New - - [Added] Possible values locate-us to property action.page.type of schema PageType in request body - - [Added] Possible values locate-us to property action.popup.type of schema PageType in request body - - [Added] Possible values locate-us to property action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property action.popup.type of schema PageType in response with status code 200 +#### getProductSellersBySlug +- ##### What's Deprecated + - [Deleted] Possible values from set,standard,composite,digital from property items[].item_type of schema ProductSizePriceResponseV3 in response with status code 200 -#### updateLandingPage -- ##### What's New - - [Added] Possible values locate-us to property action.page.type of schema PageType in request body - - [Added] Possible values locate-us to property action.popup.type of schema PageType in request body - - [Added] Possible values locate-us to property action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property action.popup.type of schema PageType in response with status code 200 +### Common -#### deleteLandingPage -- ##### What's New - - [Added] Possible values locate-us to property action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property action.popup.type of schema PageType in response with status code 200 +#### searchApplication +- ##### What's Deprecated + - [Deleted] Possible values from website-and-mobile-apps,store from property application.channel_type of schema Application in response with status code 200 + - [Deleted] Value format from date-time from property application.created_at of schema Application in response with status code 200 + - [Deleted] Value format from date-time from property application.updated_at of schema Application in response with status code 200 -#### getNavigations -- ##### What's New - - [Added] Possible values locate-us to property items[].navigation[].action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property items[].navigation[].action.popup.type of schema PageType in response with status code 200 +### Communication -#### createNavigation -- ##### What's New - - [Added] Possible values locate-us to property navigation[].action.page.type of schema PageType in request body - - [Added] Possible values locate-us to property navigation[].action.popup.type of schema PageType in request body - - [Added] Possible values locate-us to property navigation[].action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property navigation[].action.popup.type of schema PageType in response with status code 200 +#### upsertAppPushtoken +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema PushtokenRes in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema PushtokenRes in response with status code 200 + - [Deleted] Value format from date-time from property expired_at of schema PushtokenRes in response with status code 200 -#### getDefaultNavigations -- ##### What's New - - [Added] Possible values locate-us to property items[].navigation[].action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property items[].navigation[].action.popup.type of schema PageType in response with status code 200 +### Configuration -#### getNavigationBySlug -- ##### What's New - - [Added] Possible values locate-us to property navigation[].action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property navigation[].action.popup.type of schema PageType in response with status code 200 +#### getApplication +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema Application in response with status code 200 + - [Deleted] Value format from date-time from property modified_at of schema Application in response with status code 200 + - [Deleted] Value format from date-time from property tokens[].created_at of schema TokenSchema in response with status code 200 -#### updateNavigation -- ##### What's New - - [Added] Possible values locate-us to property navigation[].action.page.type of schema PageType in request body - - [Added] Possible values locate-us to property navigation[].action.popup.type of schema PageType in request body - - [Added] Possible values locate-us to property navigation[].action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property navigation[].action.popup.type of schema PageType in response with status code 200 +#### getOwnerInfo +- ##### What's Deprecated + - [Deleted] Value format from date-time from property application_info.company_info.created_on of schema CompanyInfo in response with status code 200 + - [Deleted] Possible values from home,registered,office from property application_info.company_info.addresses[].address_type of schema CompanyAboutAddress in response with status code 200 + - [Deleted] Value format from date-time from property application_info.created_at of schema ApplicationInfo in response with status code 200 + - [Deleted] Value format from date-time from property application_info.tokens[].created_at of schema TokenSchema in response with status code 200 -#### deleteNavigation -- ##### What's New - - [Added] Possible values locate-us to property navigation[].action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property navigation[].action.popup.type of schema PageType in response with status code 200 +#### getIntegrationTokens + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema AppTokenResponseSchema in response with status code 200 + - [Deleted] Value format from date-time from property modified_at of schema AppTokenResponseSchema in response with status code 200 + + +#### getFeatures + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property feature.created_at of schema AppFeature in response with status code 200 + - [Deleted] Value format from date-time from property feature.modified_at of schema AppFeature in response with status code 200 + + +#### getContactInfo + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema ApplicationInformation in response with status code 200 + - [Deleted] Value format from date-time from property modified_at of schema ApplicationInformation in response with status code 200 + + +#### getCurrencies + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property items[].created_at of schema Currency in response with status code 200 + - [Deleted] Value format from date-time from property items[].modified_at of schema Currency in response with status code 200 + + +#### getCurrencyById + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema Currency in response with status code 200 + - [Deleted] Value format from date-time from property modified_at of schema Currency in response with status code 200 + + +#### getAppCurrencies + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property supported_currency[].created_at of schema Currency in response with status code 200 + - [Deleted] Value format from date-time from property supported_currency[].modified_at of schema Currency in response with status code 200 + - [Deleted] Value format from date-time from property created_at of schema AppCurrencyResponseSchema in response with status code 200 + - [Deleted] Value format from date-time from property modified_at of schema AppCurrencyResponseSchema in response with status code 200 + + +#### getAppStaffList + +- ##### What's New + - [Added] Response with status 500 + + +#### getAppStaffs + +- ##### What's New + - [Added] Response with status 500 + + +### Content + + + +#### getAnnouncements + +- ##### What's New + - [Added] Response with status 5XX + + +#### getBlog + +- ##### What's New + - [Added] Response with status 5XX + +- ##### What's Deprecated + - [Breaking] [Deleted] query parameter preview (type: boolean) + + - [Deleted] Value format from date-time from property publish_date of schema BlogSchema in response with status code 200 + - [Deleted] Value format from date-time from property date_meta.created_on of schema DateMeta in response with status code 200 + - [Deleted] Value format from date-time from property date_meta.modified_on of schema DateMeta in response with status code 200 + + +#### getBlogs + +- ##### What's New + - [Added] Response with status 5XX + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property items[].publish_date of schema BlogSchema 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.modified_on of schema DateMeta in response with status code 200 + +- ##### What's Changed + - [Changed] Path From /service/application/content/v1.0/blogs To /service/application/content/v1.0/blogs/ + + +#### getDataLoaders + +- ##### What's New + - [Added] Response with status 5XX + + +#### getFaqs + +- ##### What's New + - [Added] Response with status 5XX + + +#### getFaqCategories + +- ##### What's New + - [Added] Response with status 5XX + + +#### getFaqBySlug + +- ##### What's New + - [Added] Response with status 5XX + + +#### getFaqCategoryBySlug + +- ##### What's New + - [Added] Response with status 5XX + + +#### getFaqsByCategorySlug + +- ##### What's New + - [Added] Response with status 5XX + + +#### getLandingPage + +- ##### What's New + - [Added] Response with status 5XX + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property date_meta.created_on of schema DateMeta in response with status code 200 + - [Deleted] Value format from date-time from property date_meta.modified_on of schema DateMeta in response with status code 200 + + +#### getLegalInformation + +- ##### What's New + - [Added] Response with status 5XX + + +#### getNavigations + +- ##### What's New + - [Added] Response with status 5XX + +- ##### What's Deprecated + - [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.modified_on of schema DateMeta in response with status code 200 + +- ##### What's Changed + - [Changed] Path From /service/application/content/v1.0/navigations To /service/application/content/v1.0/navigations/ + + +#### getSEOConfiguration + +- ##### What's New + - [Added] Response with status 5XX + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property seo.created_at of schema SeoSchema in response with status code 200 + - [Deleted] Value format from date-time from property seo.updated_at of schema SeoSchema in response with status code 200 + + +#### getSEOMarkupSchemas + +- ##### What's New + - [Added] Response with status 5XX + +- ##### What's Deprecated + - [Deleted] Possible values from 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 from property items[].page_type of schema SEOSchemaMarkupTemplate in response with status code 200 + + +#### getSlideshows + +- ##### What's New + - [Added] Response with status 5XX + +- ##### What's Deprecated + - [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.modified_on of schema DateMeta in response with status code 200 + +- ##### What's Changed + - [Changed] Path From /service/application/content/v1.0/slideshow To /service/application/content/v1.0/slideshow/ + + +#### getSlideshow + +- ##### What's New + - [Added] Response with status 5XX + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property date_meta.created_on of schema DateMeta in response with status code 200 + - [Deleted] Value format from date-time from property date_meta.modified_on of schema DateMeta in response with status code 200 + + +#### getSupportInformation + +- ##### What's New + - [Added] Response with status 5XX + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema Support in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema Support in response with status code 200 + + +#### getTags + +- ##### What's New + - [Added] Response with status 5XX + + +#### getPage + +- ##### What's New + - [Added] Response with status 5XX + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property date_meta.created_on of schema DateMeta in response with status code 200 + - [Deleted] Value format from date-time from property date_meta.modified_on of schema DateMeta in response with status code 200 + + +#### getPages + +- ##### What's New + - [Added] Response with status 5XX + +- ##### What's Deprecated + - [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.modified_on of schema DateMeta in response with status code 200 + +- ##### What's Changed + - [Changed] Path From /service/application/content/v2.0/pages To /service/application/content/v2.0/pages/ + + +#### getCustomObjectBySlug + +- ##### What's Deprecated + - [Breaking] [Deleted] method getCustomObjectBySlug + + + +#### getCustomFieldsByResourceId + +- ##### What's Deprecated + - [Breaking] [Deleted] method getCustomFieldsByResourceId + + + +#### getCustomObject + +- ##### What's New + - [Added] method getCustomObject + + + +#### getCustomFields + +- ##### What's New + - [Added] method getCustomFields + + + +### FileStorage + + + +#### startUpload + +- ##### What's New + - [Added] cdn made required in response with status code 200 + - [Added] property cdn of schema StartResponse in response with status code 200 + +- ##### What's Changed + - [Changed] Path From /service/application/assets/v2.0/namespaces/{namespace}/upload/start To /service/application/assets/v1.0/namespaces/{namespace}/upload/start + + +#### completeUpload + +- ##### What's New + - [Added] cdn made required in request body + - [Added] property cdn of schema StartResponse in request body + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_on of schema FileUploadComplete in response with status code 200 + - [Deleted] Value format from date-time from property modified_on of schema FileUploadComplete in response with status code 200 + +- ##### What's Changed + - [Changed] Path From /service/application/assets/v2.0/namespaces/{namespace}/upload/complete To /service/application/assets/v1.0/namespaces/{namespace}/upload/complete + + +### Logistic + + + +#### getAllCountries + +- ##### What's Deprecated + - [Breaking] [Deleted] properties results[].logistics.dp.fm_priority, results[].logistics.dp.lm_priority, results[].logistics.dp.rvp_priority, results[].logistics.dp.payment_mode, results[].logistics.dp.operations, results[].logistics.dp.area_code, results[].logistics.dp.assign_dp_from_sb, results[].logistics.dp.internal_account_id, results[].logistics.dp.external_account_id, results[].logistics.dp.transport_mode in response with status code 200 + +- ##### What's Changed + - [Breaking] [Changed] results[].logistics.dp.fm_priority, results[].logistics.dp.lm_priority, results[].logistics.dp.operations, results[].logistics.dp.payment_mode, results[].logistics.dp.rvp_priority made optional in response with status code 200 + + +#### getCourierPartners + +- ##### What's Deprecated + - [Breaking] [Deleted] method getCourierPartners + + + +#### getCountries + +- ##### What's Deprecated + - [Breaking] [Deleted] query parameter hierarchy (type: string) + + + +#### getDeliveryPromise + +- ##### What's Deprecated + - [Breaking] [Deleted] method getDeliveryPromise + + + +#### getLocalities + +- ##### What's Deprecated + - [Breaking] [Deleted] property items[].custom_meta of schema Localities in response with status code 200 + - [Breaking] [Deleted] property items[].localities[].code of schema LocalityParent in response with status code 200 + - [Breaking] [Deleted] property items[].localities[].custom_meta of schema LocalityParent in response with status code 200 + + +#### getLocality + +- ##### What's Deprecated + - [Breaking] [Deleted] property code of schema GetLocality in response with status code 200 + - [Breaking] [Deleted] property custom_meta of schema GetLocality in response with status code 200 + - [Breaking] [Deleted] property localities[].code of schema LocalityParent in response with status code 200 + - [Breaking] [Deleted] property localities[].custom_meta of schema LocalityParent in response with status code 200 + + +### Order + + + +#### getOrders + +- ##### What's New + - [Added] property items[].shipments[].bags[].item.l2_category of schema Item in response with status code 200 + - [Added] property items[].shipments[].bags[].item.l2_category_id of schema Item in response with status code 200 + +- ##### What's Deprecated + - [Deleted] Possible values from HomeDelivery,PickAtStore,Digital from property items[].shipments[].order_type of schema Shipments in response with status code 200 + - [Deleted] Value format from date-time from property items[].shipments[].invoice.updated_date of schema Invoice in response with status code 200 + - [Deleted] Value format from date-time from property items[].shipments[].returnable_date of schema Shipments in response with status code 200 + - [Deleted] Value format from date-time from property items[].shipments[].shipment_created_at of schema Shipments in response with status code 200 + - [Deleted] Value format from date-time from property items[].shipments[].bags[].delivery_date of schema Bags in response with status code 200 + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items from property items[].shipments[].bags[].applied_promos[].promotion_type of schema AppliedPromos in response with status code 200 + - [Deleted] Value format from date-time from property items[].shipments[].bags[].returnable_date of schema Bags in response with status code 200 + - [Deleted] Value format from date-time from property items[].shipments[].bags[].current_status.updated_at of schema CurrentStatus in response with status code 200 + - [Deleted] Possible values from return,forward from property items[].shipments[].bags[].current_status.journey_type of schema CurrentStatus in response with status code 200 + - [Breaking] [Deleted] property items[].shipments[].bags[].charges of schema Bags in response with status code 200 + - [Deleted] Possible values from home,office,store from property items[].shipments[].delivery_address.address_type of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property items[].shipments[].delivery_address.created_at of schema Address in response with status code 200 + - [Deleted] Possible values from store,delivery,billing from property items[].shipments[].delivery_address.address_category of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property items[].shipments[].delivery_address.updated_at of schema Address in response with status code 200 + - [Deleted] Possible values from home,office,store from property items[].shipments[].billing_address.address_type of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property items[].shipments[].billing_address.created_at of schema Address in response with status code 200 + - [Deleted] Possible values from store,delivery,billing from property items[].shipments[].billing_address.address_category of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property items[].shipments[].billing_address.updated_at of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property items[].shipments[].delivery_date of schema Shipments in response with status code 200 + - [Breaking] [Deleted] property items[].shipments[].charges of schema Shipments in response with status code 200 + - [Breaking] [Deleted] property items[].charges of schema OrderSchema in response with status code 200 + + +#### getOrderById + +- ##### What's New + - [Added] property order.shipments[].bags[].item.l2_category of schema Item in response with status code 200 + - [Added] property order.shipments[].bags[].item.l2_category_id of schema Item in response with status code 200 + +- ##### What's Deprecated + - [Deleted] Possible values from HomeDelivery,PickAtStore,Digital from property order.shipments[].order_type of schema Shipments in response with status code 200 + - [Deleted] Value format from date-time from property order.shipments[].invoice.updated_date of schema Invoice in response with status code 200 + - [Deleted] Value format from date-time from property order.shipments[].returnable_date of schema Shipments in response with status code 200 + - [Deleted] Value format from date-time from property order.shipments[].shipment_created_at of schema Shipments in response with status code 200 + - [Deleted] Value format from date-time from property order.shipments[].bags[].delivery_date of schema Bags in response with status code 200 + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items from property order.shipments[].bags[].applied_promos[].promotion_type of schema AppliedPromos in response with status code 200 + - [Deleted] Value format from date-time from property order.shipments[].bags[].returnable_date of schema Bags in response with status code 200 + - [Deleted] Value format from date-time from property order.shipments[].bags[].current_status.updated_at of schema CurrentStatus in response with status code 200 + - [Deleted] Possible values from return,forward from property order.shipments[].bags[].current_status.journey_type of schema CurrentStatus in response with status code 200 + - [Breaking] [Deleted] property order.shipments[].bags[].charges of schema Bags in response with status code 200 + - [Deleted] Possible values from home,office,store from property order.shipments[].delivery_address.address_type of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property order.shipments[].delivery_address.created_at of schema Address in response with status code 200 + - [Deleted] Possible values from store,delivery,billing from property order.shipments[].delivery_address.address_category of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property order.shipments[].delivery_address.updated_at of schema Address in response with status code 200 + - [Deleted] Possible values from home,office,store from property order.shipments[].billing_address.address_type of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property order.shipments[].billing_address.created_at of schema Address in response with status code 200 + - [Deleted] Possible values from store,delivery,billing from property order.shipments[].billing_address.address_category of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property order.shipments[].billing_address.updated_at of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property order.shipments[].delivery_date of schema Shipments in response with status code 200 + - [Breaking] [Deleted] property order.shipments[].charges of schema Shipments in response with status code 200 + - [Breaking] [Deleted] property order.charges of schema OrderSchema in response with status code 200 + + +#### getPosOrderById + +- ##### What's Deprecated + - [Breaking] [Deleted] method getPosOrderById + + + +#### getShipmentById + +- ##### What's New + - [Added] property shipment.bags[].item.l2_category of schema Item in response with status code 200 + - [Added] property shipment.bags[].item.l2_category_id of schema Item in response with status code 200 + +- ##### What's Deprecated + - [Deleted] Possible values from HomeDelivery,PickAtStore,Digital from property shipment.order_type of schema Shipments in response with status code 200 + - [Deleted] Value format from date-time from property shipment.invoice.updated_date of schema Invoice in response with status code 200 + - [Deleted] Value format from date-time from property shipment.returnable_date of schema Shipments in response with status code 200 + - [Deleted] Value format from date-time from property shipment.shipment_created_at of schema Shipments in response with status code 200 + - [Deleted] Value format from date-time from property shipment.bags[].delivery_date of schema Bags in response with status code 200 + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items from property shipment.bags[].applied_promos[].promotion_type of schema AppliedPromos in response with status code 200 + - [Deleted] Value format from date-time from property shipment.bags[].returnable_date of schema Bags in response with status code 200 + - [Deleted] Value format from date-time from property shipment.bags[].current_status.updated_at of schema CurrentStatus in response with status code 200 + - [Deleted] Possible values from return,forward from property shipment.bags[].current_status.journey_type of schema CurrentStatus in response with status code 200 + - [Breaking] [Deleted] property shipment.bags[].charges of schema Bags in response with status code 200 + - [Deleted] Possible values from home,office,store from property shipment.delivery_address.address_type of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property shipment.delivery_address.created_at of schema Address in response with status code 200 + - [Deleted] Possible values from store,delivery,billing from property shipment.delivery_address.address_category of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property shipment.delivery_address.updated_at of schema Address in response with status code 200 + - [Deleted] Possible values from home,office,store from property shipment.billing_address.address_type of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property shipment.billing_address.created_at of schema Address in response with status code 200 + - [Deleted] Possible values from store,delivery,billing from property shipment.billing_address.address_category of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property shipment.billing_address.updated_at of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property shipment.delivery_date of schema Shipments in response with status code 200 + - [Breaking] [Deleted] property shipment.charges of schema Shipments in response with status code 200 + + +#### getInvoiceByShipmentId + +- ##### What's Deprecated + - [Deleted] Possible values from GET,PUT from property presigned_type of schema ResponseGetInvoiceShipment in response with status code 200 + + +#### trackShipment + +- ##### What's Deprecated + - [Deleted] Possible values from forward,reverse,rto from property results[].shipment_type of schema Track in response with status code 200 + - [Deleted] Value format from date-time from property results[].last_location_recieved_at of schema Track in response with status code 200 + - [Deleted] Value format from date-time from property results[].updated_at of schema Track in response with status code 200 + + +#### getShipmentBagReasons + +- ##### What's Deprecated + - [Breaking] [Deleted] property rule_id of schema ShipmentBagReasons in response with status code 200 + + +#### getShipmentReasons + +- ##### What's Deprecated + - [Deleted] Possible values from bag,order from property reasons[].feedback_type of schema ShipmentReason in response with status code 200 + + +#### updateShipmentStatus + +- ##### What's Deprecated + - [Deleted] Value format from int32 from property statuses[].shipments[].data_updates.products[].filters[].line_number of schema ProductsDataUpdatesFilters in request body + - [Breaking] [Deleted] property statuses[].shipments[].data_updates.products[].filters[].quantity of schema ProductsDataUpdatesFilters in request body + + +### Payment + + + +#### getAggregatorsConfig + +- ##### What's New + - [Added] Response with status 500 + + +#### attachCardToCustomer + +- ##### What's New + - [Added] Possible nullable value true to property card_id of schema AttachCardRequest in request body + - [Added] Response with status 500 + + +#### getActiveCardAggregator + +- ##### What's New + - [Added] Response with status 500 + + +#### getActiveUserCards + +- ##### What's New + - [Added] Response with status 500 + + +#### deleteUserCard + +- ##### What's New + - [Added] Possible nullable value true to property card_id of schema DeletehCardRequest in request body + - [Added] Response with status 500 + + +#### verifyCustomerForPayment + +- ##### What's New + - [Added] Response with status 500 + + +#### verifyAndChargePayment + +- ##### What's New + - [Added] Possible nullable value true to property amount of schema ChargeCustomerRequest in request body + - [Added] Response with status 500 + + +#### initialisePayment + +- ##### What's New + - [Added] Possible nullable value true to property amount of schema PaymentInitializationRequest in request body + - [Added] Response with status 500 + + +#### checkAndUpdatePaymentStatus + +- ##### What's New + - [Added] Response with status 500 + +- ##### What's Changed + - [Changed] order_id made optional in request body + - [Changed] status made optional in request body + + +#### getPaymentModeRoutes + +- ##### What's New + - [Added] Response with status 500 + + +#### getPosPaymentModeRoutes + +- ##### What's New + - [Added] Response with status 500 + + +#### getRupifiBannerDetails + +- ##### What's New + - [Added] Response with status 500 + + +#### getEpaylaterBannerDetails + +- ##### What's New + - [Added] Response with status 500 + + +#### resendOrCancelPayment + +- ##### What's New + - [Added] Response with status 500 + + +#### renderHTML + +- ##### What's New + - [Added] Response with status 500 + + +#### validateVPA + +- ##### What's New + - [Added] Response with status 500 + + +#### cardDetails + +- ##### What's New + - [Added] Possible nullable value true to property data.bank_code of schema CardDetails in response with status code 200 + - [Added] Possible nullable value true to property data.card_sub_type of schema CardDetails in response with status code 200 + - [Added] Response with status 500 + + +#### getActiveRefundTransferModes + +- ##### What's New + - [Added] Response with status 500 + + +#### enableOrDisableRefundTransferMode + +- ##### What's New + - [Added] Response with status 500 + + +#### getUserBeneficiariesDetail + +- ##### What's New + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property beneficiaries[].modified_on of schema OrderBeneficiaryDetails in response with status code 200 + - [Deleted] Value format from date-time from property beneficiaries[].created_on of schema OrderBeneficiaryDetails in response with status code 200 + + +#### verifyIfscCode + +- ##### What's New + - [Added] Response with status 500 + + +#### getOrderBeneficiariesDetail + +- ##### What's New + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property beneficiaries[].modified_on of schema OrderBeneficiaryDetails in response with status code 200 + - [Deleted] Value format from date-time from property beneficiaries[].created_on of schema OrderBeneficiaryDetails in response with status code 200 + + +#### verifyOtpAndAddBeneficiaryForBank + +- ##### What's New + - [Added] Response with status 500 + + +#### addBeneficiaryDetails + +- ##### What's New + - [Added] Response with status 500 + + +#### addRefundBankAccountUsingOTP + +- ##### What's New + - [Added] Response with status 500 + + +#### verifyOtpAndAddBeneficiaryForWallet + +- ##### What's New + - [Added] Response with status 500 + + +#### updateDefaultBeneficiary + +- ##### What's New + - [Added] Response with status 500 + + +#### getPaymentLink + +- ##### What's New + - [Added] Response with status 500 + + +#### createPaymentLink + +- ##### What's New + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Breaking] [Deleted] property success_redirection_url of schema CreatePaymentLink in request body + - [Breaking] [Deleted] property failure_redirection_url of schema CreatePaymentLink in request body + + +#### resendPaymentLink + +- ##### What's New + - [Added] Response with status 500 + + +#### cancelPaymentLink + +- ##### What's New + - [Added] Response with status 500 + + +#### getPaymentModeRoutesPaymentLink + +- ##### What's New + - [Added] Response with status 500 + + +#### pollingPaymentLink + +- ##### What's New + - [Added] Response with status 500 + + +#### createOrderHandlerPaymentLink + +- ##### What's New + - [Added] property failure_callback_url of schema CreateOrderUserRequest in request body + - [Added] property success_callback_url of schema CreateOrderUserRequest in request body + - [Breaking] [Added] payment_methods made required in request body + - [Breaking] [Added] success_callback_url made required in request body + - [Added] Response with status 500 + + +#### initialisePaymentPaymentLink + +- ##### What's New + - [Added] Possible nullable value true to property amount of schema PaymentInitializationRequest in request body + - [Added] Response with status 500 + + +#### checkAndUpdatePaymentStatusPaymentLink + +- ##### What's New + - [Added] Response with status 500 + +- ##### What's Changed + - [Changed] order_id made optional in request body + - [Changed] status made optional in request body + + +#### customerCreditSummary + +- ##### What's New + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property data.due_date of schema CreditSummary in response with status code 200 + + +#### redirectToAggregator + +- ##### What's New + - [Added] Response with status 500 + + +#### checkCredit + +- ##### What's New + - [Added] Response with status 500 + + +#### customerOnboard + +- ##### What's New + - [Added] Possible nullable value true to property personal_info.dob of schema UserPersonalInfoInDetails in request body + - [Added] Response with status 500 + + +#### outstandingOrderDetails + +- ##### What's New + - [Added] Response with status 500 + + +#### paidOrderDetails + +- ##### What's New + - [Added] Response with status 500 + + +#### createPaymentOrder + +- ##### What's New + - [Added] Response with status 500 + + +### Rewards + + + +#### getOfferByName + +- ##### What's New + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema Offer in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema Offer in response with status code 200 + + +#### catalogueOrder + +- ##### What's New + - [Added] Response with status 500 + + +#### getUserPointsHistory + +- ##### What's New + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property items[].created_at of schema PointsHistory in response with status code 200 + - [Deleted] Value format from date-time from property items[].updated_at of schema PointsHistory in response with status code 200 + + +#### getUserPoints + +- ##### What's New + - [Added] Response with status 500 + + +#### getUserReferralDetails + +- ##### What's New + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property referral.created_at of schema Offer in response with status code 200 + - [Deleted] Value format from date-time from property referral.updated_at of schema Offer in response with status code 200 + + +#### getOrderDiscount + +- ##### What's New + - [Added] Response with status 500 + + +#### redeemReferralCode + +- ##### What's New + - [Added] Response with status 500 + + +### Share + + + +#### createShortLink + +- ##### What's New + - [Breaking] [Added] redirects.expiry, redirects.url made required in request body + - [Breaking] [Added] redirects.expiry, redirects.url made required in response with status code 200 + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property expire_at of schema ShortLinkReq in request body + - [Deleted] Value format from date-time from property expire_at of schema ShortLinkRes in response with status code 200 + - [Deleted] Value format from date-time from property created_at of schema ShortLinkRes in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema ShortLinkRes in response with status code 200 + + +#### getShortLinkByHash + +- ##### What's New + - [Breaking] [Added] redirects.expiry, redirects.url made required in response with status code 200 + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property expire_at of schema ShortLinkRes in response with status code 200 + - [Deleted] Value format from date-time from property created_at of schema ShortLinkRes in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema ShortLinkRes in response with status code 200 + + +#### getOriginalShortLinkByHash + +- ##### What's New + - [Breaking] [Added] redirects.expiry, redirects.url made required in response with status code 200 + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property expire_at of schema ShortLinkRes in response with status code 200 + - [Deleted] Value format from date-time from property created_at of schema ShortLinkRes in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema ShortLinkRes in response with status code 200 + + +### Theme + + + +#### getAllPages + +- ##### What's New + - [Added] property pages[].sections[].source of schema AvailablePageSchemaSections in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property pages[].sections[].__source of schema AvailablePageSchemaSections in response with status code 200 + - [Breaking] [Deleted] property pages[].sections[].assets of schema AvailablePageSchemaSections in response with status code 200 + + +#### getPage + +- ##### What's New + - [Added] property sections[].source of schema AvailablePageSchemaSections in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property sections[].__source of schema AvailablePageSchemaSections in response with status code 200 + - [Breaking] [Deleted] property sections[].assets of schema AvailablePageSchemaSections in response with status code 200 + + +#### getAppliedTheme + +- ##### What's Deprecated + - [Breaking] [Deleted] query parameter filters (type: boolean) + + - [Deleted] Value format from date-time from property created_at of schema ThemesSchema in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema ThemesSchema in response with status code 200 + + +#### getThemeForPreview + +- ##### What's Deprecated + - [Breaking] [Deleted] query parameter filters (type: boolean) + + - [Deleted] Value format from date-time from property created_at of schema ThemesSchema in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema ThemesSchema in response with status code 200 + + +### User + + + +#### loginWithFacebook + +- ##### What's Deprecated + - [Deleted] Possible values from user,programmatic from property user.account_type of schema UserSchema in response with status code 200 + - [Deleted] Value format from date-time from property user.created_at of schema UserSchema in response with status code 200 + - [Deleted] Value format from date-time from property user.updated_at of schema UserSchema in response with status code 200 + + +#### loginWithGoogle + +- ##### What's Deprecated + - [Deleted] Possible values from user,programmatic from property user.account_type of schema UserSchema in response with status code 200 + - [Deleted] Value format from date-time from property user.created_at of schema UserSchema in response with status code 200 + - [Deleted] Value format from date-time from property user.updated_at of schema UserSchema in response with status code 200 + + +#### loginWithGoogleAndroid + +- ##### What's Deprecated + - [Deleted] Possible values from user,programmatic from property user.account_type of schema UserSchema in response with status code 200 + - [Deleted] Value format from date-time from property user.created_at of schema UserSchema in response with status code 200 + - [Deleted] Value format from date-time from property user.updated_at of schema UserSchema in response with status code 200 + + +#### loginWithGoogleIOS + +- ##### What's Deprecated + - [Deleted] Possible values from user,programmatic from property user.account_type of schema UserSchema in response with status code 200 + - [Deleted] Value format from date-time from property user.created_at of schema UserSchema in response with status code 200 + - [Deleted] Value format from date-time from property user.updated_at of schema UserSchema in response with status code 200 + + +#### loginWithAppleIOS + +- ##### What's Deprecated + - [Deleted] Possible values from user,programmatic from property user.account_type of schema UserSchema in response with status code 200 + - [Deleted] Value format from date-time from property user.created_at of schema UserSchema in response with status code 200 + - [Deleted] Value format from date-time from property user.updated_at of schema UserSchema in response with status code 200 + + +#### loginWithOTP + +- ##### What's Deprecated + - [Deleted] Value format from ind64 from property resend_timer of schema SendOtp in response with status code 200 + + +#### loginWithEmailAndPassword + +- ##### What's Deprecated + - [Deleted] Possible values from user,programmatic from property user.account_type of schema UserSchema in response with status code 200 + - [Deleted] Value format from date-time from property user.created_at of schema UserSchema in response with status code 200 + - [Deleted] Value format from date-time from property user.updated_at of schema UserSchema in response with status code 200 + + +#### forgotPassword + +- ##### What's Deprecated + - [Deleted] Possible values from user,programmatic from property user.account_type of schema UserSchema in response with status code 200 + - [Deleted] Value format from date-time from property user.created_at of schema UserSchema in response with status code 200 + - [Deleted] Value format from date-time from property user.updated_at of schema UserSchema in response with status code 200 + + +#### loginWithToken + +- ##### What's Deprecated + - [Deleted] Possible values from user,programmatic from property user.account_type of schema UserSchema in response with status code 200 + - [Deleted] Value format from date-time from property user.created_at of schema UserSchema in response with status code 200 + - [Deleted] Value format from date-time from property user.updated_at of schema UserSchema in response with status code 200 + + +#### registerWithForm + +- ##### What's Deprecated + - [Deleted] Value format from int64 from property resend_timer of schema RegisterFormSuccess in response with status code 200 + + +#### sendOTPOnMobile + +- ##### What's Deprecated + - [Deleted] Value format from int64 from property resend_timer of schema SendOtpSuccess in response with status code 200 + + +#### sendForgotOTPOnMobile + +- ##### What's Deprecated + - [Deleted] Value format from int64 from property resend_timer of schema SendOtpSuccess in response with status code 200 + + +#### verifyMobileOTP + +- ##### What's Deprecated + - [Deleted] Possible values from user,programmatic from property user.account_type of schema UserSchema in response with status code 200 + - [Deleted] Value format from date-time from property user.created_at of schema UserSchema in response with status code 200 + - [Deleted] Value format from date-time from property user.updated_at of schema UserSchema in response with status code 200 + + +#### verifyEmailOTP + +- ##### What's Deprecated + - [Deleted] Possible values from user,programmatic from property user.account_type of schema UserSchema in response with status code 200 + - [Deleted] Value format from date-time from property user.created_at of schema UserSchema in response with status code 200 + - [Deleted] Value format from date-time from property user.updated_at of schema UserSchema in response with status code 200 + + +#### getLoggedInUser + +- ##### What's Deprecated + - [Deleted] Possible values from user,programmatic from property user.account_type of schema UserSchema in response with status code 200 + - [Deleted] Value format from date-time from property user.created_at of schema UserSchema in response with status code 200 + - [Deleted] Value format from date-time from property user.updated_at of schema UserSchema in response with status code 200 + + +#### getPlatformConfig + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property updated_at of schema PlatformSchema in response with status code 200 + - [Deleted] Value format from date-time from property created_at of schema PlatformSchema in response with status code 200 + + +#### updateProfile + +- ##### What's Deprecated + - [Deleted] Possible values from user,programmatic from property user.account_type of schema UserSchema in response with status code 200 + - [Deleted] Value format from date-time from property user.created_at of schema UserSchema in response with status code 200 + - [Deleted] Value format from date-time from property user.updated_at of schema UserSchema in response with status code 200 + - [Deleted] Value format from int64 from property resend_timer of schema ProfileEditSuccess in response with status code 200 + + +#### addMobileNumber + +- ##### What's Deprecated + - [Deleted] Possible values from user,programmatic from property user.account_type of schema UserSchema in response with status code 200 + - [Deleted] Value format from date-time from property user.created_at of schema UserSchema in response with status code 200 + - [Deleted] Value format from date-time from property user.updated_at of schema UserSchema in response with status code 200 + + +#### deleteMobileNumber + +- ##### What's Deprecated + - [Deleted] Possible values from user,programmatic from property user.account_type of schema UserSchema in response with status code 200 + - [Deleted] Value format from date-time from property user.created_at of schema UserSchema in response with status code 200 + - [Deleted] Value format from date-time from property user.updated_at of schema UserSchema in response with status code 200 + + +#### setMobileNumberAsPrimary + +- ##### What's Deprecated + - [Deleted] Possible values from user,programmatic from property user.account_type of schema UserSchema in response with status code 200 + - [Deleted] Value format from date-time from property user.created_at of schema UserSchema in response with status code 200 + - [Deleted] Value format from date-time from property user.updated_at of schema UserSchema in response with status code 200 + + +#### addEmail + +- ##### What's Deprecated + - [Deleted] Possible values from user,programmatic from property user.account_type of schema UserSchema in response with status code 200 + - [Deleted] Value format from date-time from property user.created_at of schema UserSchema in response with status code 200 + - [Deleted] Value format from date-time from property user.updated_at of schema UserSchema in response with status code 200 + + +#### deleteEmail + +- ##### What's Deprecated + - [Deleted] Possible values from user,programmatic from property user.account_type of schema UserSchema in response with status code 200 + - [Deleted] Value format from date-time from property user.created_at of schema UserSchema in response with status code 200 + - [Deleted] Value format from date-time from property user.updated_at of schema UserSchema in response with status code 200 + + +#### setEmailAsPrimary + +- ##### What's Deprecated + - [Deleted] Possible values from user,programmatic from property user.account_type of schema UserSchema in response with status code 200 + - [Deleted] Value format from date-time from property user.created_at of schema UserSchema in response with status code 200 + - [Deleted] Value format from date-time from property user.updated_at of schema UserSchema in response with status code 200 + + +### Webhook + + + +#### saveClickEvent + +- ##### What's Deprecated + - [Breaking] [Deleted] property sent_at of schema ClickEventPayload in request body + + +## Partner Client + + + +### FileStorage + + + +#### getAllNamespaceDetails + +- ##### What's Deprecated + - [Breaking] [Deleted] method getAllNamespaceDetails + + + +#### getNamespaceDetail + +- ##### What's Deprecated + - [Breaking] [Deleted] method getNamespaceDetail + + + +#### completeUpload + +- ##### What's New + - [Breaking] [Added] cdn made required in request body + - [Added] property cdn of schema StartResponse in request body + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_on of schema FileUploadComplete in response with status code 200 + - [Deleted] Value format from date-time from property modified_on of schema FileUploadComplete in response with status code 200 + +- ##### What's Changed + - [Changed] Path From /service/partner/assets/v2.0/organization/{organization_id}/namespaces/{namespace}/upload/complete To /service/partner/assets/v1.0/organization/{organization_id}/namespaces/{namespace}/upload/complete + + +#### startUpload + +- ##### What's New + - [Breaking] [Added] cdn made required in response with status code 200 + - [Added] property cdn of schema StartResponse in response with status code 200 + +- ##### What's Changed + - [Changed] Path From /service/partner/assets/v2.0/organization/{organization_id}/namespaces/{namespace}/upload/start To /service/partner/assets/v1.0/organization/{organization_id}/namespaces/{namespace}/upload/start + + +#### browse + +- ##### What's New + - [Added] property items[].createdAt of schema in response with status code 200 + - [Added] property items[].updatedAt of schema in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property items[].created_at of schema in response with status code 200 + - [Breaking] [Deleted] property items[].updated_at of schema in response with status code 200 + + +#### browseFiles + +- ##### What's Deprecated + - [Breaking] [Deleted] method browseFiles + + + +#### organizationLevelFetchProxy + +- ##### What's Deprecated + - [Breaking] [Deleted] method organizationLevelFetchProxy + + + +#### saveOrganizationLevelProxy + +- ##### What's Deprecated + - [Breaking] [Deleted] method saveOrganizationLevelProxy + + + +#### fetchProxy + +- ##### What's Deprecated + - [Breaking] [Deleted] method fetchProxy + + + +#### saveProxyDetails + +- ##### What's Deprecated + - [Breaking] [Deleted] method saveProxyDetails + + + +### Logistics + + + +#### createDeliveryTime + +- ##### What's Deprecated + - [Breaking] [Deleted] method createDeliveryTime + + + +#### getDeliveryTimes + +- ##### What's Deprecated + - [Breaking] [Deleted] method getDeliveryTimes + + + +#### getDeliveryTime + +- ##### What's Deprecated + - [Breaking] [Deleted] method getDeliveryTime + + + +#### updateDeliveryTime + +- ##### What's Deprecated + - [Breaking] [Deleted] method updateDeliveryTime + + + +#### deleteDeliveryTime + +- ##### What's Deprecated + - [Breaking] [Deleted] method deleteDeliveryTime + + + +#### createServiceability + +- ##### What's Deprecated + - [Breaking] [Deleted] method createServiceability + + + +#### getServiceabilities + +- ##### What's Deprecated + - [Breaking] [Deleted] method getServiceabilities + + + +#### getServiceability + +- ##### What's Deprecated + - [Breaking] [Deleted] method getServiceability + + + +#### updateServiceability + +- ##### What's Deprecated + - [Breaking] [Deleted] method updateServiceability + + + +#### deleteServiceability + +- ##### What's Deprecated + - [Breaking] [Deleted] method deleteServiceability + + + +#### createCourierPartnerAccount + +- ##### What's New + - [Breaking] [Added] is_own_account made required in request body + - [Added] is_own_account made required in response with status code 200 + + +#### getCourierPartnerAccounts + +- ##### What's Deprecated + - [Breaking] [Deleted] property items[].scheme_rules.feature.qc_shipment_item_quantity of schema CourierPartnerSchemeFeatures in response with status code 200 + - [Breaking] [Deleted] property items[].scheme_rules.feature.non_qc_shipment_item_quantity of schema CourierPartnerSchemeFeatures in response with status code 200 + + +#### updateCourierPartnerAccount + +- ##### What's New + - [Added] is_own_account made required in request body + +- ##### What's Deprecated + - [Breaking] [Deleted] property scheme_rules.feature.qc_shipment_item_quantity of schema CourierPartnerSchemeFeatures in response with status code 200 + - [Breaking] [Deleted] property scheme_rules.feature.non_qc_shipment_item_quantity of schema CourierPartnerSchemeFeatures in response with status code 200 + + +#### getCourierPartnerAccount + +- ##### What's Deprecated + - [Breaking] [Deleted] property scheme_rules.feature.qc_shipment_item_quantity of schema CourierPartnerSchemeFeatures in response with status code 200 + - [Breaking] [Deleted] property scheme_rules.feature.non_qc_shipment_item_quantity of schema CourierPartnerSchemeFeatures in response with status code 200 + + +#### createCourierPartnerScheme + +- ##### What's Deprecated + - [Breaking] [Deleted] property feature.qc_shipment_item_quantity of schema CourierPartnerSchemeFeatures in request body + - [Breaking] [Deleted] property feature.non_qc_shipment_item_quantity of schema CourierPartnerSchemeFeatures in request body + - [Breaking] [Deleted] property feature.qc_shipment_item_quantity of schema CourierPartnerSchemeFeatures in response with status code 200 + - [Breaking] [Deleted] property feature.non_qc_shipment_item_quantity of schema CourierPartnerSchemeFeatures in response with status code 200 + + +#### updateCourierPartnerScheme + +- ##### What's Deprecated + - [Breaking] [Deleted] property feature.qc_shipment_item_quantity of schema CourierPartnerSchemeFeatures in request body + - [Breaking] [Deleted] property feature.non_qc_shipment_item_quantity of schema CourierPartnerSchemeFeatures in request body + - [Breaking] [Deleted] property feature.qc_shipment_item_quantity of schema CourierPartnerSchemeFeatures in response with status code 200 + - [Breaking] [Deleted] property feature.non_qc_shipment_item_quantity of schema CourierPartnerSchemeFeatures in response with status code 200 + + +#### getCountries + +- ##### What's Deprecated + - [Breaking] [Deleted] property items[].has_next_hierarchy of schema GetCountriesItems in response with status code 200 + + +### Theme + + + +#### getAllPages + +- ##### What's New + - [Added] property pages[].sections[].source of schema AvailablePageSchemaSections in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property pages[].sections[].__source of schema AvailablePageSchemaSections in response with status code 200 + - [Deleted] Value format from date-time from property pages[].created_at of schema AvailablePageSchema in response with status code 200 + - [Deleted] Value format from date-time from property pages[].updated_at of schema AvailablePageSchema in response with status code 200 + + +#### createPage + +- ##### What's New + - [Added] property sections[].source of schema AvailablePageSchemaSections in request body + - [Added] property sections[].source of schema AvailablePageSchemaSections in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property sections[].__source of schema AvailablePageSchemaSections in request body + - [Deleted] Value format from date-time from property created_at of schema AvailablePageSchema in request body + - [Deleted] Value format from date-time from property updated_at of schema AvailablePageSchema in request body + - [Breaking] [Deleted] property sections[].__source of schema AvailablePageSchemaSections in response with status code 200 + - [Deleted] Value format from date-time from property created_at of schema AvailablePageSchema in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema AvailablePageSchema in response with status code 200 + + +#### updateMultiplePages + +- ##### What's New + - [Added] property pages[].sections[].source of schema AvailablePageSchemaSections in request body + - [Added] property pages[].sections[].source of schema AvailablePageSchemaSections in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property pages[].sections[].__source of schema AvailablePageSchemaSections in request body + - [Deleted] Value format from date-time from property pages[].created_at of schema AvailablePageSchema in request body + - [Deleted] Value format from date-time from property pages[].updated_at of schema AvailablePageSchema in request body + - [Breaking] [Deleted] property pages[].sections[].__source of schema AvailablePageSchemaSections in response with status code 200 + - [Deleted] Value format from date-time from property pages[].created_at of schema AvailablePageSchema in response with status code 200 + - [Deleted] Value format from date-time from property pages[].updated_at of schema AvailablePageSchema in response with status code 200 + + +#### getPage + +- ##### What's New + - [Added] property sections[].source of schema AvailablePageSchemaSections in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property sections[].__source of schema AvailablePageSchemaSections in response with status code 200 + - [Deleted] Value format from date-time from property created_at of schema AvailablePageSchema in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema AvailablePageSchema in response with status code 200 + + +#### updatePage + +- ##### What's New + - [Added] property sections[].source of schema AvailablePageSchemaSections in request body + - [Added] property sections[].source of schema AvailablePageSchemaSections in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property sections[].__source of schema AvailablePageSchemaSections in request body + - [Deleted] Value format from date-time from property created_at of schema AvailablePageSchema in request body + - [Deleted] Value format from date-time from property updated_at of schema AvailablePageSchema in request body + - [Breaking] [Deleted] property sections[].__source of schema AvailablePageSchemaSections in response with status code 200 + - [Deleted] Value format from date-time from property created_at of schema AvailablePageSchema in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema AvailablePageSchema in response with status code 200 + + +#### deletePage + +- ##### What's New + - [Added] property sections[].source of schema AvailablePageSchemaSections in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property sections[].__source of schema AvailablePageSchemaSections in response with status code 200 + - [Deleted] Value format from date-time from property created_at of schema AvailablePageSchema in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema AvailablePageSchema in response with status code 200 + + +#### getApplicationThemes + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property [].created_at of schema ThemesSchema in response with status code 200 + - [Deleted] Value format from date-time from property [].updated_at of schema ThemesSchema in response with status code 200 + + +#### getThemeById + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema ThemesSchema in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema ThemesSchema in response with status code 200 + + +#### updateTheme + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema ThemesSchema in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema ThemesSchema in response with status code 200 + + +#### deleteTheme + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema ThemesSchema in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema ThemesSchema in response with status code 200 + + +#### getThemeRejectionReasons + +- ##### What's Deprecated + - [Breaking] [Deleted] properties rejection_reasons.theme_file, rejection_reasons.theme_details, rejection_reasons.theme_value_proposition, rejection_reasons.theme_attributes, rejection_reasons.theme_variations, rejection_reasons.theme_docs, rejection_reasons.theme_review in response with status code 200 + + +#### createTheme + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema ThemesSchema in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema ThemesSchema in response with status code 200 + + +### Webhook + + + +#### responseTimeSummary + +- ##### What's Deprecated + - [Breaking] [Deleted] method responseTimeSummary + + + +#### getDeliveryDetailInsights + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property start_date of schema DeliveryDetailsPayload in request body + - [Deleted] Value format from date-time from property end_date of schema DeliveryDetailsPayload in request body + + +#### getHistoricalReports + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property items[].filters.end_date of schema HistoryFilters in response with status code 200 + - [Deleted] Value format from date-time from property items[].filters.start_date of schema HistoryFilters in response with status code 200 + - [Deleted] Possible values from kafka,rest,sqs,event_bridge,temporal,pub_sub from property items[].filters.webhook_type[] of schema HistoryFilters in response with status code 200 + - [Deleted] Value format from date-time from property items[].created_on of schema HistoryItems in response with status code 200 + - [Deleted] Value format from date-time from property items[].updated_on of schema HistoryItems in response with status code 200 + + +#### getInvalidEventList + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property start_date of schema InvalidEventsPayload in request body + - [Deleted] Value format from date-time from property end_date of schema InvalidEventsPayload in request body + + +#### fetchSubscribers + +- ##### What's New + - [Added] property items[].event_configs[].subscriber_event_mapping.topic of schema SubscriberEventMapping in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property items[].custom_headers of schema ItemSchema in response with status code 200 + - [Deleted] Value format from date-time from property items[].updated_on of schema ItemSchema in response with status code 200 + - [Deleted] Value format from date-time from property items[].created_on of schema ItemSchema in response with status code 200 + - [Deleted] Possible values from hmac from property items[].auth_meta.type of schema AuthMeta in response with status code 200 + - [Deleted] Value format from date-time from property items[].event_configs[].created_on of schema EventConfigDetails in response with status code 200 + - [Deleted] Value format from date-time from property items[].event_configs[].updated_on of schema EventConfigDetails in response with status code 200 + - [Breaking] [Deleted] property items[].event_configs[].subscriber_event_mapping.broadcaster_config of schema SubscriberEventMapping in response with status code 200 + - [Deleted] Value format from date-time from property items[].event_configs[].subscriber_event_mapping.created_on of schema SubscriberEventMapping in response with status code 200 + + +## Platform Client + +- [Added] Finance class in platform client + + +### Analytics + + + +#### executeJobForProvidedParametersV2 + +- ##### What's Deprecated + - [Breaking] [Deleted] properties rows, page in response with status code 200 + - [Breaking] [Deleted] Security in Request + + +#### startDownloadForQueryV2 + +- ##### What's Deprecated + - [Breaking] [Deleted] Security in Request + + +#### checkJobStatusByNameV2 + +- ##### What's Deprecated + - [Breaking] [Deleted] properties start_date, end_date, status, message, file_metadata in response with status code 200 + - [Breaking] [Deleted] Security in Request + + +### AuditTrail + + + +#### createAuditLog + +- ##### What's New + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Breaking] [Deleted] property log_meta.sessions of schema LogMetaObj in request body + +- ##### What's Changed + - [Changed] Path From /service/platform/webhook/v1.0/company/{company_id}/audit/logs/create To /service/platform/audit-trail/v1.0/company/{company_id}/logs + + +#### getAuditLogs + +- ##### What's New + - [Added] method getAuditLogs + + + +#### getAuditLog + +- ##### What's New + - [Added] method getAuditLog + + + +#### getEntityTypes + +- ##### What's New + - [Added] method getEntityTypes + + + +### Billing + + + +#### getChargeDetails + +- ##### What's New + - [Added] Possible values day to property recurring.interval of schema ChargeRecurring in response with status code 200 + - [Added] Possible values week to property recurring.interval of schema ChargeRecurring in response with status code 200 + +- ##### What's Deprecated + - [Deleted] Type from integer from property code of schema ResourceNotFound in response with status code 404 + - [Deleted] Type from boolean from property success of schema ResourceNotFound in response with status code 404 + - [Breaking] [Deleted] Security in Request + + +#### getSubscriptionCharge + +- ##### What's Deprecated + - [Deleted] Possible values from extension,theme,subscription from property entity_type of schema SubscriptionChargeRes in response with status code 200 + - [Deleted] Possible values from pending,expired,declined,active,frozen,cancelled,no_renew,success,failed from property status of schema SubscriptionChargeRes in response with status code 200 + - [Deleted] Type from integer from property code of schema ResourceNotFound in response with status code 404 + - [Deleted] Type from boolean from property success of schema ResourceNotFound in response with status code 404 + - [Breaking] [Deleted] Security in Request + + +#### cancelSubscriptionCharge + +- ##### What's Deprecated + - [Deleted] Possible values from extension,theme,subscription from property entity_type of schema SubscriptionChargeRes in response with status code 200 + - [Deleted] Possible values from pending,expired,declined,active,frozen,cancelled,no_renew,success,failed from property status of schema SubscriptionChargeRes in response with status code 200 + - [Deleted] Type from integer from property code of schema ResourceNotFound in response with status code 404 + - [Deleted] Type from boolean from property success of schema ResourceNotFound in response with status code 404 + - [Breaking] [Deleted] Security in Request + + +#### createOneTimeCharge + +- ##### What's Deprecated + - [Deleted] Possible values from subscription,extension,standalone from property charge.final_charge.charge_type of schema OneTimeChargeEntity in response with status code 200 + - [Deleted] Possible values from pending,expired,declined,active,frozen,cancelled,no_renew,success,failed from property charge.final_charge.status of schema OneTimeChargeEntity in response with status code 200 + - [Deleted] Possible values from extension,theme from property charge.final_charge.entity_type of schema OneTimeChargeEntity in response with status code 200 + - [Breaking] [Deleted] Security in Request + + +#### createSubscriptionCharge + +- ##### What's New + - [Breaking] [Added] Value format int32 to property trial_days of schema CreateSubscriptionCharge in request body + - [Breaking] [Added] Value format int32 to property line_items[].trial_days of schema ChargeLineItem in request body + - [Added] Possible values day to property subscription.line_items[].recurring.interval of schema ChargeRecurring in response with status code 200 + - [Added] Possible values week to property subscription.line_items[].recurring.interval of schema ChargeRecurring in response with status code 200 + +- ##### What's Deprecated + - [Deleted] Possible values from extension,theme from property subscription.entity_type of schema EntitySubscription in response with status code 200 + - [Deleted] Possible values from pending,expired,declined,active,frozen,cancelled,no_renew,success,failed from property subscription.status of schema EntitySubscription in response with status code 200 + +- ##### What's Changed + - [Breaking] [Changed] Type from number to integer of property trial_days of schema CreateSubscriptionCharge in request body + - [Breaking] [Changed] Type from number to integer of property line_items[].trial_days of schema ChargeLineItem in request body + + +### Cart + + + +#### getCoupons + +- ##### What's New + - [Added] items[].ownership.payable_category made required in response with status code 200 + - [Added] items[].rule_definition.applicable_on, items[].rule_definition.calculate_on, items[].rule_definition.type, items[].rule_definition.value_type made required in response with status code 200 + - [Added] items[].identifiers made required in response with status code 200 + - [Added] items[].ownership made required in response with status code 200 + - [Added] items[].rule made required in response with status code 200 + - [Added] items[].rule_definition made required in response with status code 200 + - [Added] items[].type_slug made required in response with status code 200 + - [Added] items[].validity made required in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] query parameter createdBy (type: string) + + - [Breaking] [Deleted] query parameter reviewedBy (type: string) + + - [Breaking] [Deleted] query parameter approvedStartTime (type: string) + + - [Breaking] [Deleted] query parameter approvedEndTime (type: string) + + - [Breaking] [Deleted] query parameter reviewStartTime (type: string) + + - [Breaking] [Deleted] query parameter reviewEndTime (type: string) + + - [Breaking] [Deleted] query parameter status (type: string) + + - [Breaking] [Deleted] property items[].date_meta.approved_on of schema CouponDateMeta in response with status code 200 + - [Breaking] [Deleted] property items[].date_meta.rejected_on of schema CouponDateMeta in response with status code 200 + - [Breaking] [Deleted] property items[].date_meta.reviewed_on of schema CouponDateMeta in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property items[].ownership.payable_by of schema Ownership in response with status code 200 + - [Breaking] [Deleted] property items[].author.approved_by of schema CouponAuthor in response with status code 200 + - [Breaking] [Deleted] property items[].author.rejected_by of schema CouponAuthor in response with status code 200 + - [Breaking] [Deleted] property items[].author.reviewed_by of schema CouponAuthor in response with status code 200 + - [Breaking] [Deleted] properties items[].restrictions.payments.codes, items[].restrictions.payments.iins, items[].restrictions.payments.types, items[].restrictions.payments.networks, items[].restrictions.payments.uses in response with status code 200 + - [Breaking] [Deleted] property items[].coupon_type of schema CouponAdd in response with status code 200 + - [Breaking] [Deleted] property items[].coupon_prefix of schema CouponAdd in response with status code 200 + - [Breaking] [Deleted] property items[].coupon_counts of schema CouponAdd in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property items[]._schedule.start of schema CouponSchedule in response with status code 200 + - [Breaking] [Deleted] property items[]._schedule.status of schema CouponSchedule in response with status code 200 + + +#### createCoupon + +- ##### What's New + - [Added] ownership.payable_category made required in request body + - [Added] rule_definition.applicable_on, rule_definition.calculate_on, rule_definition.type, rule_definition.value_type made required in request body + - [Added] identifiers made required in request body + - [Added] ownership made required in request body + - [Added] rule made required in request body + - [Added] rule_definition made required in request body + - [Added] type_slug made required in request body + - [Added] validity made required in request body + +- ##### What's Deprecated + - [Breaking] [Deleted] property date_meta.approved_on of schema CouponDateMeta in request body + - [Breaking] [Deleted] property date_meta.rejected_on of schema CouponDateMeta in request body + - [Breaking] [Deleted] property date_meta.reviewed_on of schema CouponDateMeta in request body + - [Breaking] [Deleted] Possible nullable value from true from property ownership.payable_by of schema Ownership in request body + - [Breaking] [Deleted] property author.approved_by of schema CouponAuthor in request body + - [Breaking] [Deleted] property author.rejected_by of schema CouponAuthor in request body + - [Breaking] [Deleted] property author.reviewed_by of schema CouponAuthor in request body + - [Breaking] [Deleted] properties restrictions.payments.codes, restrictions.payments.iins, restrictions.payments.types, restrictions.payments.networks, restrictions.payments.uses in request body + - [Breaking] [Deleted] property coupon_type of schema CouponAdd in request body + - [Breaking] [Deleted] property coupon_prefix of schema CouponAdd in request body + - [Breaking] [Deleted] property coupon_counts of schema CouponAdd in request body + - [Breaking] [Deleted] Possible nullable value from true from property _schedule.start of schema CouponSchedule in request body + - [Breaking] [Deleted] property _schedule.status of schema CouponSchedule in request body + - [Breaking] [Deleted] property _id of schema CouponCreateResult in response with status code 201 + + +#### getCouponById + +- ##### What's New + - [Added] ownership.payable_category made required in response with status code 200 + - [Added] rule_definition.applicable_on, rule_definition.calculate_on, rule_definition.type, rule_definition.value_type made required in response with status code 200 + - [Added] identifiers made required in response with status code 200 + - [Added] ownership made required in response with status code 200 + - [Added] rule made required in response with status code 200 + - [Added] rule_definition made required in response with status code 200 + - [Added] type_slug made required in response with status code 200 + - [Added] validity made required in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property date_meta.approved_on of schema CouponDateMeta in response with status code 200 + - [Breaking] [Deleted] property date_meta.rejected_on of schema CouponDateMeta in response with status code 200 + - [Breaking] [Deleted] property date_meta.reviewed_on of schema CouponDateMeta in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property ownership.payable_by of schema Ownership in response with status code 200 + - [Breaking] [Deleted] property author.approved_by of schema CouponAuthor in response with status code 200 + - [Breaking] [Deleted] property author.rejected_by of schema CouponAuthor in response with status code 200 + - [Breaking] [Deleted] property author.reviewed_by of schema CouponAuthor in response with status code 200 + - [Breaking] [Deleted] properties restrictions.payments.codes, restrictions.payments.iins, restrictions.payments.types, restrictions.payments.networks, restrictions.payments.uses in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property _schedule.start of schema CouponSchedule in response with status code 200 + - [Breaking] [Deleted] property _schedule.status of schema CouponSchedule in response with status code 200 + - [Breaking] [Deleted] property coupon_type of schema CouponUpdate in response with status code 200 + - [Breaking] [Deleted] property coupon_prefix of schema CouponUpdate in response with status code 200 + - [Breaking] [Deleted] property coupon_counts of schema CouponUpdate in response with status code 200 + - [Breaking] [Deleted] property reason of schema CouponUpdate in response with status code 200 + + +#### updateCoupon + +- ##### What's New + - [Added] ownership.payable_category made required in request body + - [Added] rule_definition.applicable_on, rule_definition.calculate_on, rule_definition.type, rule_definition.value_type made required in request body + - [Added] identifiers made required in request body + - [Added] ownership made required in request body + - [Added] rule made required in request body + - [Added] rule_definition made required in request body + - [Added] type_slug made required in request body + - [Added] validity made required in request body + +- ##### What's Deprecated + - [Breaking] [Deleted] property date_meta.approved_on of schema CouponDateMeta in request body + - [Breaking] [Deleted] property date_meta.rejected_on of schema CouponDateMeta in request body + - [Breaking] [Deleted] property date_meta.reviewed_on of schema CouponDateMeta in request body + - [Breaking] [Deleted] Possible nullable value from true from property ownership.payable_by of schema Ownership in request body + - [Breaking] [Deleted] property author.approved_by of schema CouponAuthor in request body + - [Breaking] [Deleted] property author.rejected_by of schema CouponAuthor in request body + - [Breaking] [Deleted] property author.reviewed_by of schema CouponAuthor in request body + - [Breaking] [Deleted] properties restrictions.payments.codes, restrictions.payments.iins, restrictions.payments.types, restrictions.payments.networks, restrictions.payments.uses in request body + - [Breaking] [Deleted] Possible nullable value from true from property _schedule.start of schema CouponSchedule in request body + - [Breaking] [Deleted] property _schedule.status of schema CouponSchedule in request body + - [Breaking] [Deleted] property coupon_type of schema CouponUpdate in request body + - [Breaking] [Deleted] property coupon_prefix of schema CouponUpdate in request body + - [Breaking] [Deleted] property coupon_counts of schema CouponUpdate in request body + - [Breaking] [Deleted] property reason of schema CouponUpdate in request body + - [Breaking] [Deleted] property _id of schema CouponCreateResult in response with status code 200 + + +#### updateCouponPartially + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property schedule.start of schema CouponSchedule in request body + - [Breaking] [Deleted] property schedule.status of schema CouponSchedule in request body + + +#### deleteCoupon + +- ##### What's Deprecated + - [Breaking] [Deleted] method deleteCoupon + + + +#### getPromotions + +- ##### What's New + - [Added] items[].ownership.payable_by, items[].ownership.payable_category made required in response with status code 200 + - [Added] items[].restrictions.uses made required in response with status code 200 + - [Added] items[]._schedule.end, items[]._schedule.published, items[]._schedule.start made required in response with status code 200 + - [Added] items[].post_order_action.action_date, items[].post_order_action.action_type made required in response with status code 200 + - [Added] items[].visiblility.coupon_list, items[].visiblility.pdp made required in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] query parameter createdBy (type: string) + + - [Breaking] [Deleted] query parameter reviewedBy (type: string) + + - [Breaking] [Deleted] query parameter approvedStartTime (type: string) + + - [Breaking] [Deleted] query parameter approvedEndTime (type: string) + + - [Breaking] [Deleted] query parameter reviewStartTime (type: string) + + - [Breaking] [Deleted] query parameter reviewEndTime (type: string) + + - [Breaking] [Deleted] query parameter status (type: string) + + - [Breaking] [Deleted] Possible nullable value from true from property items[].display_meta.description of schema DisplayMeta1 in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property items[].display_meta.name of schema DisplayMeta1 in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property items[].display_meta.offer_text of schema DisplayMeta1 in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property items[].discount_rules[].item_criteria.cart_quantity.equals of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property items[].discount_rules[].item_criteria.cart_quantity.greater_than of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property items[].discount_rules[].item_criteria.cart_quantity.less_than_equals of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property items[].discount_rules[].item_criteria.cart_quantity.less_than of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property items[].discount_rules[].item_criteria.cart_quantity.greater_than_equals of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property items[].discount_rules[].item_criteria.cart_total.equals of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property items[].discount_rules[].item_criteria.cart_total.greater_than of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property items[].discount_rules[].item_criteria.cart_total.less_than_equals of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property items[].discount_rules[].item_criteria.cart_total.less_than of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property items[].discount_rules[].item_criteria.cart_total.greater_than_equals of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property items[].discount_rules[].item_criteria.cart_unique_item_quantity.equals of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property items[].discount_rules[].item_criteria.cart_unique_item_quantity.greater_than of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property items[].discount_rules[].item_criteria.cart_unique_item_quantity.less_than_equals of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property items[].discount_rules[].item_criteria.cart_unique_item_quantity.less_than of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property items[].discount_rules[].item_criteria.cart_unique_item_quantity.greater_than_equals of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property items[].discount_rules[].item_criteria.cart_unique_item_amount.equals of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property items[].discount_rules[].item_criteria.cart_unique_item_amount.greater_than of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property items[].discount_rules[].item_criteria.cart_unique_item_amount.less_than_equals of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property items[].discount_rules[].item_criteria.cart_unique_item_amount.less_than of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property items[].discount_rules[].item_criteria.cart_unique_item_amount.greater_than_equals of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] property items[].discount_rules[].meta of schema DiscountRule in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property items[].discount_rules[].offer.max_usage_per_transaction of schema DiscountOffer in response with status code 200 + - [Breaking] [Deleted] properties items[].restrictions.payments.codes, items[].restrictions.payments.iins, items[].restrictions.payments.types, items[].restrictions.payments.networks, items[].restrictions.payments.uses in response with status code 200 + - [Breaking] [Deleted] property items[].is_processed of schema PromotionListItem in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property items[]._schedule.end of schema PromotionSchedule in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property items[]._schedule.start of schema PromotionSchedule in response with status code 200 + - [Breaking] [Deleted] property items[]._schedule.status of schema PromotionSchedule in response with status code 200 + - [Breaking] [Deleted] property items[].author.approved_by of schema PromotionAuthor in response with status code 200 + - [Breaking] [Deleted] property items[].author.rejected_by of schema PromotionAuthor in response with status code 200 + - [Breaking] [Deleted] property items[].author.reviewed_by of schema PromotionAuthor in response with status code 200 + - [Breaking] [Deleted] properties items[].buy_rules.cart_quantity, items[].buy_rules.available_zones, items[].buy_rules.item_exclude_company, items[].buy_rules.item_id, items[].buy_rules.item_l1_category, items[].buy_rules.cart_total, items[].buy_rules.cart_unique_item_quantity, items[].buy_rules.cart_unique_item_amount, items[].buy_rules.item_exclude_id, items[].buy_rules.all_items, items[].buy_rules.item_exclude_l1_category, items[].buy_rules.item_size, items[].buy_rules.item_store, items[].buy_rules.item_exclude_sku, items[].buy_rules.item_department, items[].buy_rules.item_exclude_store, items[].buy_rules.item_brand, items[].buy_rules.item_exclude_department, items[].buy_rules.item_exclude_category, items[].buy_rules.item_category, items[].buy_rules.buy_rules, items[].buy_rules.item_exclude_brand, items[].buy_rules.item_l2_category, items[].buy_rules.item_company, items[].buy_rules.item_tags, items[].buy_rules.item_exclude_l2_category, items[].buy_rules.item_sku in response with status code 200 + - [Breaking] [Deleted] property items[].date_meta.approved_on of schema PromotionDateMeta in response with status code 200 + - [Breaking] [Deleted] property items[].date_meta.rejected_on of schema PromotionDateMeta in response with status code 200 + - [Breaking] [Deleted] property items[].date_meta.reviewed_on of schema PromotionDateMeta in response with status code 200 + + +#### createPromotion + +- ##### What's New + - [Added] ownership.payable_by, ownership.payable_category made required in request body + - [Added] restrictions.uses made required in request body + - [Added] _schedule.end, _schedule.published, _schedule.start made required in request body + - [Added] post_order_action.action_date, post_order_action.action_type made required in request body + - [Added] visiblility.coupon_list, visiblility.pdp made required in request body + - [Breaking] [Added] mode made required in request body + - [Breaking] [Added] ownership made required in request body + - [Breaking] [Added] promo_group made required in request body + - [Breaking] [Added] promotion_type made required in request body + - [Added] ownership.payable_by, ownership.payable_category made required in response with status code 201 + - [Added] restrictions.uses made required in response with status code 201 + - [Added] _schedule.end, _schedule.published, _schedule.start made required in response with status code 201 + - [Added] post_order_action.action_date, post_order_action.action_type made required in response with status code 201 + - [Added] visiblility.coupon_list, visiblility.pdp made required in response with status code 201 + - [Added] mode made required in response with status code 201 + - [Added] ownership made required in response with status code 201 + - [Added] promo_group made required in response with status code 201 + - [Added] promotion_type made required in response with status code 201 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property display_meta.description of schema DisplayMeta1 in request body + - [Breaking] [Deleted] Possible nullable value from true from property display_meta.name of schema DisplayMeta1 in request body + - [Breaking] [Deleted] Possible nullable value from true from property display_meta.offer_text of schema DisplayMeta1 in request body + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_quantity.equals of schema CompareObject in request body + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_quantity.greater_than of schema CompareObject in request body + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_quantity.less_than_equals of schema CompareObject in request body + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_quantity.less_than of schema CompareObject in request body + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_quantity.greater_than_equals of schema CompareObject in request body + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_total.equals of schema CompareObject in request body + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_total.greater_than of schema CompareObject in request body + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_total.less_than_equals of schema CompareObject in request body + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_total.less_than of schema CompareObject in request body + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_total.greater_than_equals of schema CompareObject in request body + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_unique_item_quantity.equals of schema CompareObject in request body + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_unique_item_quantity.greater_than of schema CompareObject in request body + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_unique_item_quantity.less_than_equals of schema CompareObject in request body + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_unique_item_quantity.less_than of schema CompareObject in request body + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_unique_item_quantity.greater_than_equals of schema CompareObject in request body + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_unique_item_amount.equals of schema CompareObject in request body + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_unique_item_amount.greater_than of schema CompareObject in request body + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_unique_item_amount.less_than_equals of schema CompareObject in request body + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_unique_item_amount.less_than of schema CompareObject in request body + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_unique_item_amount.greater_than_equals of schema CompareObject in request body + - [Breaking] [Deleted] property discount_rules[].meta of schema DiscountRule in request body + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].offer.max_usage_per_transaction of schema DiscountOffer in request body + - [Breaking] [Deleted] properties restrictions.payments.codes, restrictions.payments.iins, restrictions.payments.types, restrictions.payments.networks, restrictions.payments.uses in request body + - [Breaking] [Deleted] Possible nullable value from true from property _schedule.end of schema PromotionSchedule in request body + - [Breaking] [Deleted] Possible nullable value from true from property _schedule.start of schema PromotionSchedule in request body + - [Breaking] [Deleted] property _schedule.status of schema PromotionSchedule in request body + - [Breaking] [Deleted] property author.approved_by of schema PromotionAuthor in request body + - [Breaking] [Deleted] property author.rejected_by of schema PromotionAuthor in request body + - [Breaking] [Deleted] property author.reviewed_by of schema PromotionAuthor in request body + - [Breaking] [Deleted] properties buy_rules.cart_quantity, buy_rules.available_zones, buy_rules.item_exclude_company, buy_rules.item_id, buy_rules.item_l1_category, buy_rules.cart_total, buy_rules.cart_unique_item_quantity, buy_rules.cart_unique_item_amount, buy_rules.item_exclude_id, buy_rules.all_items, buy_rules.item_exclude_l1_category, buy_rules.item_size, buy_rules.item_store, buy_rules.item_exclude_sku, buy_rules.item_department, buy_rules.item_exclude_store, buy_rules.item_brand, buy_rules.item_exclude_department, buy_rules.item_exclude_category, buy_rules.item_category, buy_rules.buy_rules, buy_rules.item_exclude_brand, buy_rules.item_l2_category, buy_rules.item_company, buy_rules.item_tags, buy_rules.item_exclude_l2_category, buy_rules.item_sku in request body + - [Breaking] [Deleted] property date_meta.approved_on of schema PromotionDateMeta in request body + - [Breaking] [Deleted] property date_meta.rejected_on of schema PromotionDateMeta in request body + - [Breaking] [Deleted] property date_meta.reviewed_on of schema PromotionDateMeta in request body + - [Breaking] [Deleted] property is_processed of schema PromotionAddResult in response with status code 201 + - [Breaking] [Deleted] Possible nullable value from true from property display_meta.description of schema DisplayMeta1 in response with status code 201 + - [Breaking] [Deleted] Possible nullable value from true from property display_meta.name of schema DisplayMeta1 in response with status code 201 + - [Breaking] [Deleted] Possible nullable value from true from property display_meta.offer_text of schema DisplayMeta1 in response with status code 201 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_quantity.equals of schema CompareObject in response with status code 201 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_quantity.greater_than of schema CompareObject in response with status code 201 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_quantity.less_than_equals of schema CompareObject in response with status code 201 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_quantity.less_than of schema CompareObject in response with status code 201 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_quantity.greater_than_equals of schema CompareObject in response with status code 201 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_total.equals of schema CompareObject in response with status code 201 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_total.greater_than of schema CompareObject in response with status code 201 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_total.less_than_equals of schema CompareObject in response with status code 201 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_total.less_than of schema CompareObject in response with status code 201 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_total.greater_than_equals of schema CompareObject in response with status code 201 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_unique_item_quantity.equals of schema CompareObject in response with status code 201 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_unique_item_quantity.greater_than of schema CompareObject in response with status code 201 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_unique_item_quantity.less_than_equals of schema CompareObject in response with status code 201 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_unique_item_quantity.less_than of schema CompareObject in response with status code 201 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_unique_item_quantity.greater_than_equals of schema CompareObject in response with status code 201 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_unique_item_amount.equals of schema CompareObject in response with status code 201 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_unique_item_amount.greater_than of schema CompareObject in response with status code 201 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_unique_item_amount.less_than_equals of schema CompareObject in response with status code 201 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_unique_item_amount.less_than of schema CompareObject in response with status code 201 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_unique_item_amount.greater_than_equals of schema CompareObject in response with status code 201 + - [Breaking] [Deleted] property discount_rules[].meta of schema DiscountRule in response with status code 201 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].offer.max_usage_per_transaction of schema DiscountOffer in response with status code 201 + - [Breaking] [Deleted] properties restrictions.payments.codes, restrictions.payments.iins, restrictions.payments.types, restrictions.payments.networks, restrictions.payments.uses in response with status code 201 + - [Breaking] [Deleted] Possible nullable value from true from property _schedule.end of schema PromotionSchedule in response with status code 201 + - [Breaking] [Deleted] Possible nullable value from true from property _schedule.start of schema PromotionSchedule in response with status code 201 + - [Breaking] [Deleted] property _schedule.status of schema PromotionSchedule in response with status code 201 + - [Breaking] [Deleted] property author.approved_by of schema PromotionAuthor in response with status code 201 + - [Breaking] [Deleted] property author.rejected_by of schema PromotionAuthor in response with status code 201 + - [Breaking] [Deleted] property author.reviewed_by of schema PromotionAuthor in response with status code 201 + - [Breaking] [Deleted] properties buy_rules.cart_quantity, buy_rules.available_zones, buy_rules.item_exclude_company, buy_rules.item_id, buy_rules.item_l1_category, buy_rules.cart_total, buy_rules.cart_unique_item_quantity, buy_rules.cart_unique_item_amount, buy_rules.item_exclude_id, buy_rules.all_items, buy_rules.item_exclude_l1_category, buy_rules.item_size, buy_rules.item_store, buy_rules.item_exclude_sku, buy_rules.item_department, buy_rules.item_exclude_store, buy_rules.item_brand, buy_rules.item_exclude_department, buy_rules.item_exclude_category, buy_rules.item_category, buy_rules.buy_rules, buy_rules.item_exclude_brand, buy_rules.item_l2_category, buy_rules.item_company, buy_rules.item_tags, buy_rules.item_exclude_l2_category, buy_rules.item_sku in response with status code 201 + - [Breaking] [Deleted] property date_meta.approved_on of schema PromotionDateMeta in response with status code 201 + - [Breaking] [Deleted] property date_meta.rejected_on of schema PromotionDateMeta in response with status code 201 + - [Breaking] [Deleted] property date_meta.reviewed_on of schema PromotionDateMeta in response with status code 201 + + +#### getPromotionById + +- ##### What's New + - [Added] ownership.payable_by, ownership.payable_category made required in response with status code 200 + - [Added] restrictions.uses made required in response with status code 200 + - [Added] _schedule.end, _schedule.published, _schedule.start made required in response with status code 200 + - [Added] post_order_action.action_date, post_order_action.action_type made required in response with status code 200 + - [Added] visiblility.coupon_list, visiblility.pdp made required in response with status code 200 + - [Added] mode made required in response with status code 200 + - [Added] ownership made required in response with status code 200 + - [Added] promo_group made required in response with status code 200 + - [Added] promotion_type made required in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property reason of schema PromotionUpdateResult in response with status code 200 + - [Breaking] [Deleted] property is_processed of schema PromotionUpdateResult in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property display_meta.description of schema DisplayMeta1 in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property display_meta.name of schema DisplayMeta1 in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property display_meta.offer_text of schema DisplayMeta1 in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_quantity.equals of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_quantity.greater_than of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_quantity.less_than_equals of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_quantity.less_than of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_quantity.greater_than_equals of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_total.equals of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_total.greater_than of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_total.less_than_equals of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_total.less_than of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_total.greater_than_equals of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_unique_item_quantity.equals of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_unique_item_quantity.greater_than of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_unique_item_quantity.less_than_equals of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_unique_item_quantity.less_than of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_unique_item_quantity.greater_than_equals of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_unique_item_amount.equals of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_unique_item_amount.greater_than of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_unique_item_amount.less_than_equals of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_unique_item_amount.less_than of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_unique_item_amount.greater_than_equals of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] property discount_rules[].meta of schema DiscountRule in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].offer.max_usage_per_transaction of schema DiscountOffer in response with status code 200 + - [Breaking] [Deleted] properties restrictions.payments.codes, restrictions.payments.iins, restrictions.payments.types, restrictions.payments.networks, restrictions.payments.uses in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property _schedule.end of schema PromotionSchedule in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property _schedule.start of schema PromotionSchedule in response with status code 200 + - [Breaking] [Deleted] property _schedule.status of schema PromotionSchedule in response with status code 200 + - [Breaking] [Deleted] property author.approved_by of schema PromotionAuthor in response with status code 200 + - [Breaking] [Deleted] property author.rejected_by of schema PromotionAuthor in response with status code 200 + - [Breaking] [Deleted] property author.reviewed_by of schema PromotionAuthor in response with status code 200 + - [Breaking] [Deleted] properties buy_rules.cart_quantity, buy_rules.available_zones, buy_rules.item_exclude_company, buy_rules.item_id, buy_rules.item_l1_category, buy_rules.cart_total, buy_rules.cart_unique_item_quantity, buy_rules.cart_unique_item_amount, buy_rules.item_exclude_id, buy_rules.all_items, buy_rules.item_exclude_l1_category, buy_rules.item_size, buy_rules.item_store, buy_rules.item_exclude_sku, buy_rules.item_department, buy_rules.item_exclude_store, buy_rules.item_brand, buy_rules.item_exclude_department, buy_rules.item_exclude_category, buy_rules.item_category, buy_rules.buy_rules, buy_rules.item_exclude_brand, buy_rules.item_l2_category, buy_rules.item_company, buy_rules.item_tags, buy_rules.item_exclude_l2_category, buy_rules.item_sku in response with status code 200 + - [Breaking] [Deleted] property date_meta.approved_on of schema PromotionDateMeta in response with status code 200 + - [Breaking] [Deleted] property date_meta.rejected_on of schema PromotionDateMeta in response with status code 200 + - [Breaking] [Deleted] property date_meta.reviewed_on of schema PromotionDateMeta in response with status code 200 + + +#### updatePromotion + +- ##### What's New + - [Added] ownership.payable_by, ownership.payable_category made required in request body + - [Added] restrictions.uses made required in request body + - [Added] _schedule.end, _schedule.published, _schedule.start made required in request body + - [Added] post_order_action.action_date, post_order_action.action_type made required in request body + - [Added] visiblility.coupon_list, visiblility.pdp made required in request body + - [Breaking] [Added] mode made required in request body + - [Breaking] [Added] ownership made required in request body + - [Breaking] [Added] promo_group made required in request body + - [Breaking] [Added] promotion_type made required in request body + - [Added] ownership.payable_by, ownership.payable_category made required in response with status code 200 + - [Added] restrictions.uses made required in response with status code 200 + - [Added] _schedule.end, _schedule.published, _schedule.start made required in response with status code 200 + - [Added] post_order_action.action_date, post_order_action.action_type made required in response with status code 200 + - [Added] visiblility.coupon_list, visiblility.pdp made required in response with status code 200 + - [Added] mode made required in response with status code 200 + - [Added] ownership made required in response with status code 200 + - [Added] promo_group made required in response with status code 200 + - [Added] promotion_type made required in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property reason of schema PromotionUpdate in request body + - [Breaking] [Deleted] Possible nullable value from true from property display_meta.description of schema DisplayMeta1 in request body + - [Breaking] [Deleted] Possible nullable value from true from property display_meta.name of schema DisplayMeta1 in request body + - [Breaking] [Deleted] Possible nullable value from true from property display_meta.offer_text of schema DisplayMeta1 in request body + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_quantity.equals of schema CompareObject in request body + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_quantity.greater_than of schema CompareObject in request body + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_quantity.less_than_equals of schema CompareObject in request body + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_quantity.less_than of schema CompareObject in request body + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_quantity.greater_than_equals of schema CompareObject in request body + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_total.equals of schema CompareObject in request body + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_total.greater_than of schema CompareObject in request body + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_total.less_than_equals of schema CompareObject in request body + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_total.less_than of schema CompareObject in request body + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_total.greater_than_equals of schema CompareObject in request body + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_unique_item_quantity.equals of schema CompareObject in request body + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_unique_item_quantity.greater_than of schema CompareObject in request body + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_unique_item_quantity.less_than_equals of schema CompareObject in request body + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_unique_item_quantity.less_than of schema CompareObject in request body + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_unique_item_quantity.greater_than_equals of schema CompareObject in request body + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_unique_item_amount.equals of schema CompareObject in request body + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_unique_item_amount.greater_than of schema CompareObject in request body + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_unique_item_amount.less_than_equals of schema CompareObject in request body + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_unique_item_amount.less_than of schema CompareObject in request body + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_unique_item_amount.greater_than_equals of schema CompareObject in request body + - [Breaking] [Deleted] property discount_rules[].meta of schema DiscountRule in request body + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].offer.max_usage_per_transaction of schema DiscountOffer in request body + - [Breaking] [Deleted] properties restrictions.payments.codes, restrictions.payments.iins, restrictions.payments.types, restrictions.payments.networks, restrictions.payments.uses in request body + - [Breaking] [Deleted] Possible nullable value from true from property _schedule.end of schema PromotionSchedule in request body + - [Breaking] [Deleted] Possible nullable value from true from property _schedule.start of schema PromotionSchedule in request body + - [Breaking] [Deleted] property _schedule.status of schema PromotionSchedule in request body + - [Breaking] [Deleted] property author.approved_by of schema PromotionAuthor in request body + - [Breaking] [Deleted] property author.rejected_by of schema PromotionAuthor in request body + - [Breaking] [Deleted] property author.reviewed_by of schema PromotionAuthor in request body + - [Breaking] [Deleted] properties buy_rules.cart_quantity, buy_rules.available_zones, buy_rules.item_exclude_company, buy_rules.item_id, buy_rules.item_l1_category, buy_rules.cart_total, buy_rules.cart_unique_item_quantity, buy_rules.cart_unique_item_amount, buy_rules.item_exclude_id, buy_rules.all_items, buy_rules.item_exclude_l1_category, buy_rules.item_size, buy_rules.item_store, buy_rules.item_exclude_sku, buy_rules.item_department, buy_rules.item_exclude_store, buy_rules.item_brand, buy_rules.item_exclude_department, buy_rules.item_exclude_category, buy_rules.item_category, buy_rules.buy_rules, buy_rules.item_exclude_brand, buy_rules.item_l2_category, buy_rules.item_company, buy_rules.item_tags, buy_rules.item_exclude_l2_category, buy_rules.item_sku in request body + - [Breaking] [Deleted] property date_meta.approved_on of schema PromotionDateMeta in request body + - [Breaking] [Deleted] property date_meta.rejected_on of schema PromotionDateMeta in request body + - [Breaking] [Deleted] property date_meta.reviewed_on of schema PromotionDateMeta in request body + - [Breaking] [Deleted] property reason of schema PromotionUpdateResult in response with status code 200 + - [Breaking] [Deleted] property is_processed of schema PromotionUpdateResult in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property display_meta.description of schema DisplayMeta1 in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property display_meta.name of schema DisplayMeta1 in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property display_meta.offer_text of schema DisplayMeta1 in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_quantity.equals of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_quantity.greater_than of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_quantity.less_than_equals of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_quantity.less_than of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_quantity.greater_than_equals of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_total.equals of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_total.greater_than of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_total.less_than_equals of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_total.less_than of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_total.greater_than_equals of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_unique_item_quantity.equals of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_unique_item_quantity.greater_than of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_unique_item_quantity.less_than_equals of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_unique_item_quantity.less_than of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_unique_item_quantity.greater_than_equals of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_unique_item_amount.equals of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_unique_item_amount.greater_than of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_unique_item_amount.less_than_equals of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_unique_item_amount.less_than of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].item_criteria.cart_unique_item_amount.greater_than_equals of schema CompareObject in response with status code 200 + - [Breaking] [Deleted] property discount_rules[].meta of schema DiscountRule in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property discount_rules[].offer.max_usage_per_transaction of schema DiscountOffer in response with status code 200 + - [Breaking] [Deleted] properties restrictions.payments.codes, restrictions.payments.iins, restrictions.payments.types, restrictions.payments.networks, restrictions.payments.uses in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property _schedule.end of schema PromotionSchedule in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property _schedule.start of schema PromotionSchedule in response with status code 200 + - [Breaking] [Deleted] property _schedule.status of schema PromotionSchedule in response with status code 200 + - [Breaking] [Deleted] property author.approved_by of schema PromotionAuthor in response with status code 200 + - [Breaking] [Deleted] property author.rejected_by of schema PromotionAuthor in response with status code 200 + - [Breaking] [Deleted] property author.reviewed_by of schema PromotionAuthor in response with status code 200 + - [Breaking] [Deleted] properties buy_rules.cart_quantity, buy_rules.available_zones, buy_rules.item_exclude_company, buy_rules.item_id, buy_rules.item_l1_category, buy_rules.cart_total, buy_rules.cart_unique_item_quantity, buy_rules.cart_unique_item_amount, buy_rules.item_exclude_id, buy_rules.all_items, buy_rules.item_exclude_l1_category, buy_rules.item_size, buy_rules.item_store, buy_rules.item_exclude_sku, buy_rules.item_department, buy_rules.item_exclude_store, buy_rules.item_brand, buy_rules.item_exclude_department, buy_rules.item_exclude_category, buy_rules.item_category, buy_rules.buy_rules, buy_rules.item_exclude_brand, buy_rules.item_l2_category, buy_rules.item_company, buy_rules.item_tags, buy_rules.item_exclude_l2_category, buy_rules.item_sku in response with status code 200 + - [Breaking] [Deleted] property date_meta.approved_on of schema PromotionDateMeta in response with status code 200 + - [Breaking] [Deleted] property date_meta.rejected_on of schema PromotionDateMeta in response with status code 200 + - [Breaking] [Deleted] property date_meta.reviewed_on of schema PromotionDateMeta in response with status code 200 + + +#### updatePromotionPartially + +- ##### What's New + - [Added] schedule.end, schedule.published, schedule.start made required in request body + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property schedule.end of schema PromotionSchedule in request body + - [Breaking] [Deleted] Possible nullable value from true from property schedule.start of schema PromotionSchedule in request body + - [Breaking] [Deleted] property schedule.status of schema PromotionSchedule in request body + + +#### deletePromotion + +- ##### What's Deprecated + - [Breaking] [Deleted] method deletePromotion + + + +#### getPromosCouponConfig + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property modified_on of schema ActivePromosResult in response with status code 200 + - [Deleted] Value format from date-time from property created_on of schema ActivePromosResult in response with status code 200 + + +#### getPromotionOffers + +- ##### What's Deprecated + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property available_promotions[].promotion_type of schema PromotionOffer in response with status code 200 + - [Breaking] [Deleted] property available_promotions[].free_gift_items[].article_price of schema FreeGiftItems in response with status code 200 + - [Breaking] [Deleted] property available_promotions[].free_gift_items[].available_sizes of schema FreeGiftItems in response with status code 200 + - [Breaking] [Deleted] property available_promotions[].free_gift_items[].size of schema FreeGiftItems in response with status code 200 + + +#### getPromotionPaymentOffers + +- ##### What's Deprecated + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property promotions[].promotion_type of schema PromotionPaymentOffer in response with status code 200 + + +#### updatePriceAdjustment + +- ##### What's New + - [Added] properties data.value, data.message, data.apply_expiry, data.restrictions, data.article_level_distribution, data.id, data.collection, data.type, data.allowed_refund, data.is_authenticated, data.article_ids, data.meta, data.cart_id in response with status code 200 + - [Added] data.article_ids, data.article_level_distribution, data.cart_id, data.collection, data.is_authenticated, data.message, data.type, data.value made required in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property data[] of schema GetPriceAdjustmentResult in response with status code 200 + +- ##### What's Changed + - [Breaking] [Changed] Type from array to object of property data of schema GetPriceAdjustmentResult in response with status code 200 + + +#### addPriceAdjustment + +- ##### What's New + - [Added] properties data.value, data.message, data.apply_expiry, data.restrictions, data.article_level_distribution, data.id, data.collection, data.type, data.allowed_refund, data.is_authenticated, data.article_ids, data.meta, data.cart_id in response with status code 201 + - [Added] data.article_ids, data.article_level_distribution, data.cart_id, data.collection, data.is_authenticated, data.message, data.type, data.value made required in response with status code 201 + +- ##### What's Deprecated + - [Breaking] [Deleted] property data[] of schema GetPriceAdjustmentResult in response with status code 201 + +- ##### What's Changed + - [Breaking] [Changed] Type from array to object of property data of schema GetPriceAdjustmentResult in response with status code 201 + + +#### fetchAndvalidateCartItems + +- ##### What's Deprecated + - [Breaking] [Deleted] property items[].product.action.page of schema ProductAction in response with status code 200 + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 + + +#### checkCartServiceability + +- ##### What's Deprecated + - [Breaking] [Deleted] property items[].product.action.page of schema ProductAction in response with status code 200 + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 + + +#### getAbandonedCartDetails + +- ##### What's Deprecated + - [Breaking] [Deleted] property items[].product.action.page of schema ProductAction in response with status code 200 + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property applied_promo_details[].promotion_type of schema AppliedPromotion in response with status code 200 + + +#### addItems + +- ##### What's Deprecated + - [Breaking] [Deleted] property cart.items[].product.action.page of schema ProductAction in response with status code 200 + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property cart.items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property cart.applied_promo_details[].promotion_type of schema AppliedPromotion in response with status code 200 + + +#### updateCart + +- ##### What's Deprecated + - [Breaking] [Deleted] property free_gift_items of schema UpdateCartCreation in request body + - [Breaking] [Deleted] property cart.items[].product.action.page of schema ProductAction in response with status code 200 + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property cart.items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property cart.applied_promo_details[].promotion_type of schema AppliedPromotion in response with status code 200 + + +#### overrideCart + +- ##### What's New + - [Added] Possible nullable value true to property payment_identifier of schema OverrideCheckoutReq in request body + +- ##### What's Deprecated + - [Deleted] Possible values from HomeDelivery,PickAtStore,Digital from property order_type of schema OverrideCheckoutReq in request body + + +#### getCartSharedItems + +- ##### What's Deprecated + - [Breaking] [Deleted] property cart.items[].product.action.page of schema ProductAction in response with status code 200 + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property cart.items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 + - [Breaking] [Deleted] property cart.items[].product.action.page of schema ProductAction in response with status code 404 + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property cart.items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 404 + + +#### updateCartWithSharedItems + +- ##### What's Deprecated + - [Breaking] [Deleted] property cart.items[].product.action.page of schema ProductAction in response with status code 200 + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property cart.items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 + + +#### getCartList + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property data[].created_on of schema CartList in response with status code 200 + + +#### updateCartUser + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property user.modified_on of schema UserInfo in response with status code 200 + - [Deleted] Value format from date-time from property user.last_name of schema UserInfo in response with status code 200 + - [Deleted] Value format from date-time from property user.created_at of schema UserInfo in response with status code 200 + - [Breaking] [Deleted] property items[].product.action.page of schema ProductAction in response with status code 200 + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property applied_promo_details[].promotion_type of schema AppliedPromotion in response with status code 200 + + +#### getCart + +- ##### What's Deprecated + - [Breaking] [Deleted] property items[].product.action.page of schema ProductAction in response with status code 200 + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property applied_promo_details[].promotion_type of schema AppliedPromotion in response with status code 200 + + +#### platformAddItems + +- ##### What's Deprecated + - [Breaking] [Deleted] property cart.items[].product.action.page of schema ProductAction in response with status code 200 + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property cart.items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property cart.applied_promo_details[].promotion_type of schema AppliedPromotion in response with status code 200 + + +#### platformUpdateCart + +- ##### What's Deprecated + - [Breaking] [Deleted] property free_gift_items of schema PlatformUpdateCartDetails in request body + - [Breaking] [Deleted] property cart.items[].product.action.page of schema ProductAction in response with status code 200 + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property cart.items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property cart.applied_promo_details[].promotion_type of schema AppliedPromotion in response with status code 200 + + +#### getAppCoupons + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property available_coupon_list[].start_date of schema Coupon in response with status code 200 + - [Deleted] Value format from date-time from property available_coupon_list[].end_date of schema Coupon in response with status code 200 + + +#### applyCoupon + +- ##### What's Deprecated + - [Breaking] [Deleted] property items[].product.action.page of schema ProductAction in response with status code 201 + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 201 + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property applied_promo_details[].promotion_type of schema AppliedPromotion in response with status code 201 + + +#### removeCoupon + +- ##### What's Deprecated + - [Breaking] [Deleted] property items[].product.action.page of schema ProductAction in response with status code 200 + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property applied_promo_details[].promotion_type of schema AppliedPromotion in response with status code 200 + + +#### getAddresses + +- ##### What's Deprecated + - [Breaking] [Deleted] property validation_config of schema PlatformGetAddressesDetails in response with status code 200 + + +#### addAddress + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 422 + + +#### selectAddress + +- ##### What's Deprecated + - [Breaking] [Deleted] property items[].product.action.page of schema ProductAction in response with status code 201 + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 201 + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property applied_promo_details[].promotion_type of schema AppliedPromotion in response with status code 201 + + +#### getShipments + +- ##### What's New + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Breaking] [Deleted] property items[].product.action.page of schema ProductAction in response with status code 200 + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 + - [Breaking] [Deleted] property shipments[].items[].product.action.page of schema ProductAction in response with status code 200 + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property shipments[].items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 + - [Deleted] Possible values from HomeDelivery,PickAtStore,Digital from property shipments[].order_type of schema PlatformShipmentDetails in response with status code 200 + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property applied_promo_details[].promotion_type of schema AppliedPromotion in response with status code 200 + + +#### updateShipments + +- ##### What's New + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Breaking] [Deleted] property items[].product.action.page of schema ProductAction in response with status code 200 + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 + - [Breaking] [Deleted] property shipments[].items[].product.action.page of schema ProductAction in response with status code 200 + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property shipments[].items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 + - [Deleted] Possible values from HomeDelivery,PickAtStore,Digital from property shipments[].order_type of schema PlatformShipmentDetails in response with status code 200 + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property applied_promo_details[].promotion_type of schema AppliedPromotion in response with status code 200 + + +#### platformCheckoutCart + +- ##### What's Deprecated + - [Breaking] [Deleted] method platformCheckoutCart + + + +#### selectPaymentMode + +- ##### What's Deprecated + - [Breaking] [Deleted] property items[].product.action.page of schema ProductAction in response with status code 200 + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property applied_promo_details[].promotion_type of schema AppliedPromotion in response with status code 200 + + +#### validateCouponForPayment + +- ##### What's Deprecated + - [Breaking] [Deleted] property coupon_validity.error_en of schema CouponValidity in response with status code 200 + + +#### platformCheckoutCartV2 + +- ##### What's New + - [Added] Possible nullable value true to property customer_details of schema PlatformCartCheckoutDetailV2Request in request body + - [Added] Possible nullable value true to property user_id of schema PlatformCartCheckoutDetailV2Request in request body + +- ##### What's Deprecated + - [Breaking] [Deleted] property custom_meta[] of schema PlatformCartCheckoutDetailV2Creation in request body + - [Breaking] [Deleted] properties customer_details.name, customer_details.email, customer_details.mobile in request body + - [Deleted] Possible values from HomeDelivery,PickAtStore,Digital from property order_type of schema PlatformCartCheckoutDetailV2Creation in request body + - [Breaking] [Deleted] property cart.items[].product.action.page of schema ProductAction in response with status code 200 + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property cart.items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 + +- ##### What's Changed + - [Breaking] [Changed] Type from array to object of property custom_meta of schema PlatformCartCheckoutDetailV2Creation in request body + - [Changed] customer_details.mobile made optional in request body + + +#### selectPaymentModeV2 + +- ##### What's Deprecated + - [Breaking] [Deleted] property items[].product.action.page of schema ProductAction in response with status code 200 + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount from property applied_promo_details[].promotion_type of schema AppliedPromotion in response with status code 200 + + +### Catalog + + + +#### getApplicationBrandListing + +- ##### What's New + - [Added] property items[].modified_on of schema ApplicationBrandListingItemSchema in response with status code 200 + - [Added] property items[].active of schema ApplicationBrandListingItemSchema in response with status code 200 + + +#### getApplicationBrands + +- ##### What's Deprecated + - [Deleted] Type from object from property items[].logo of schema Media2 in response with status code 200 + + +#### getCategories + +- ##### What's New + - [Added] property data[].items[]._custom_json of schema CategoryItems in response with status code 200 + - [Added] property departments[].name of schema DepartmentIdentifier in response with status code 200 + + +#### getAllCollections + +- ##### What's New + - [Added] properties items[]._schedule.cron, items[]._schedule.duration, items[]._schedule.end, items[]._schedule.next_schedule, items[]._schedule.start in response with status code 200 + - [Added] properties items[].badge.color, items[].badge.text in response with status code 200 + - [Added] property items[]._id of schema GetCollectionDetailNest in response with status code 200 + - [Added] property items[].published of schema GetCollectionDetailNest in response with status code 200 + - [Added] property items[].tags of schema GetCollectionDetailNest in response with status code 200 + - [Added] property items[].sort_on of schema GetCollectionDetailNest in response with status code 200 + - [Added] property items[]._custom_json of schema GetCollectionDetailNest in response with status code 200 + - [Added] property items[]._locale_language of schema GetCollectionDetailNest in response with status code 200 + - [Added] property items[].seo of schema GetCollectionDetailNest in response with status code 200 + - [Added] property items[].is_visible of schema GetCollectionDetailNest in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property items[].cron of schema GetCollectionDetailNest in response with status code 200 + - [Deleted] Possible values from image,video,3d_model from property items[].logo.type of schema Media in response with status code 200 + - [Breaking] [Deleted] property items[].logo.alt of schema Media in response with status code 200 + - [Breaking] [Deleted] property items[].logo.thumbnail of schema Media in response with status code 200 + + +#### createCollection + +- ##### What's New + - [Added] properties _schedule.cron, _schedule.duration, _schedule.end, _schedule.next_schedule, _schedule.start in response with status code 200 + - [Added] property published of schema CollectionCreateResponse in response with status code 200 + - [Added] property tags of schema CollectionCreateResponse in response with status code 200 + - [Added] property action 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 seo of schema CollectionCreateResponse in response with status code 200 + - [Added] property is_visible of schema CollectionCreateResponse in response with status code 200 + - [Added] property id of schema CollectionCreateResponse in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property created_by of schema CreateCollection in request body + - [Breaking] [Deleted] Possible nullable value from true from property modified_by of schema CreateCollection in request body + - [Breaking] [Deleted] property cron of schema CollectionCreateResponseSchema in response with status code 200 + + +#### updateCollection + +- ##### What's New + - [Added] properties modified_by.email, modified_by.uid, modified_by.user_id, modified_by.username in request body + - [Added] properties modified_by.email, modified_by.uid, modified_by.user_id, modified_by.username in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property modified_by of schema UpdateCollection in request body + - [Breaking] [Deleted] Possible nullable value from true from property modified_by of schema UpdateCollection in response with status code 200 + +- ##### What's Changed + - [Breaking] [Changed] Type from string to object of property modified_by of schema UpdateCollection in request body + - [Breaking] [Changed] Type from string to object of property modified_by of schema UpdateCollection in response with status code 200 + + +#### getCollectionItems + +- ##### What's New + - [Breaking] [Added] Type object to property items[].price of schema ProductListingPrice in response with status code 200 + - [Added] property items[].grouped_attributes of schema ProductListingDetail in response with status code 200 + +- ##### What's Deprecated + - [Deleted] Possible values from image,video,3d_model from property items[].brand.logo.type of schema Media in response with status code 200 + - [Breaking] [Deleted] property items[].brand.logo.alt of schema Media in response with status code 200 + - [Breaking] [Deleted] property items[].brand.logo.thumbnail of schema Media in response with status code 200 + - [Deleted] Possible values from default,standard from property items[].image_nature of schema ApplicationProductsSchema in response with status code 200 + - [Deleted] Possible values from composite,digital,packaging,set,standard from property items[].item_type of schema ApplicationProductsSchema in response with status code 200 + - [Deleted] Possible values from image,video,3d_model from property items[].medias[].type of schema Media in response with status code 200 + - [Breaking] [Deleted] property items[].medias[].alt of schema Media in response with status code 200 + - [Breaking] [Deleted] property items[].medias[].thumbnail of schema Media in response with status code 200 + - [Deleted] Possible values from INR,USD,EUR from property items[].price.effective.currency_code of schema CurrencyCodeEnum in response with status code 200 + - [Deleted] Possible values from INR,USD,EUR from property items[].price.marked.currency_code of schema CurrencyCodeEnum in response with status code 200 + - [Breaking] [Deleted] property items[].price.selling of schema ProductListingPrice in response with status code 200 + - [Breaking] [Deleted] property items[].popularity of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].brand_uid of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].category_uid of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].verification_status of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].channel_identifier of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].category_slug of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].size_guide of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].l3_categories of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].store_ids of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].company_ids of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].departments of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].tags of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].l3_category_names of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].sizes of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].product_group_tag of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].multi_size of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].is_gift of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].is_cod of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].is_dependent of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].is_available of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].moq of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].seo of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].variants of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].variant_media of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].variant_group of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].multi_categories of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].template_tag of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].net_quantity of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].custom_order of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].country_of_origin of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[]._custom_json of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].identifiers of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].item_id of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[]._custom_meta of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].discount_percentage of schema ApplicationProductsSchema in response with status code 200 + +- ##### What's Changed + - [Breaking] [Changed] items[].name made optional in response with status code 200 + - [Breaking] [Changed] items[].is_dependent made optional in response with status code 200 + - [Breaking] [Changed] items[].uid made optional in response with status code 200 + - [Breaking] [Changed] items[].category_uid made optional in response with status code 200 + - [Breaking] [Changed] items[].item_code made optional in response with status code 200 + - [Breaking] [Changed] items[].multi_size made optional in response with status code 200 + - [Breaking] [Changed] items[].brand_uid made optional in response with status code 200 + - [Breaking] [Changed] items[].country_of_origin made optional in response with status code 200 + - [Breaking] [Changed] items[].item_type made optional in response with status code 200 + - [Breaking] [Changed] items[].departments made optional in response with status code 200 + - [Breaking] [Changed] items[].image_nature made optional in response with status code 200 + - [Breaking] [Changed] items[].moq made optional in response with status code 200 + - [Breaking] [Changed] items[].seo made optional in response with status code 200 + - [Breaking] [Changed] items[].is_cod made optional in response with status code 200 + - [Breaking] [Changed] items[].is_gift made optional in response with status code 200 + - [Breaking] [Changed] items[].is_available made optional in response with status code 200 + - [Breaking] [Changed] items[].l3_categories made optional in response with status code 200 + + +#### getCollectionDetail + +- ##### What's Deprecated + - [Deleted] Possible values from image,video,3d_model from property logo.type of schema Media in response with status code 200 + - [Breaking] [Deleted] property logo.alt of schema Media in response with status code 200 + - [Breaking] [Deleted] property logo.thumbnail of schema Media in response with status code 200 + + +#### getAppLocations + +- ##### What's New + - [Added] property items[].integration_type.order of schema LocationIntegrationType in response with status code 200 + +- ##### What's Deprecated + - [Deleted] Possible values from distributor,franchise,mbo,manufacturer-owner from property items[].company.company_type of schema GetCompanySchema in response with status code 200 + - [Deleted] Value format from date-time from property items[].company.created_on of schema GetCompanySchema in response with status code 200 + - [Deleted] Value format from date-time from property items[].company.modified_on of schema GetCompanySchema in response with status code 200 + - [Deleted] Value format from date-time from property items[].company.verified_on of schema GetCompanySchema in response with status code 200 + - [Deleted] Possible values from high_street,warehouse,mall from property items[].store_type of schema GetLocationSchema in response with status code 200 + + +#### getApplicationProducts + +- ##### What's Deprecated + - [Deleted] Possible values from image,video,3d_model from property items[].brand.logo.type of schema Media in response with status code 200 + - [Breaking] [Deleted] property items[].brand.logo.alt of schema Media in response with status code 200 + - [Breaking] [Deleted] property items[].brand.logo.thumbnail of schema Media in response with status code 200 + - [Deleted] Possible values from default,standard from property items[].image_nature of schema ApplicationProductsSchema in response with status code 200 + - [Deleted] Possible values from composite,digital,packaging,set,standard from property items[].item_type of schema ApplicationProductsSchema in response with status code 200 + - [Deleted] Possible values from image,video,3d_model from property items[].medias[].type of schema Media in response with status code 200 + - [Breaking] [Deleted] property items[].medias[].alt of schema Media in response with status code 200 + - [Breaking] [Deleted] property items[].medias[].thumbnail of schema Media in response with status code 200 + - [Deleted] Possible values from INR,USD,EUR from property items[].price.effective.currency_code of schema CurrencyCodeEnum in response with status code 200 + - [Deleted] Possible values from INR,USD,EUR from property items[].price.marked.currency_code of schema CurrencyCodeEnum in response with status code 200 + - [Breaking] [Deleted] property items[].price.selling of schema ProductListingPrice in response with status code 200 + - [Breaking] [Deleted] property items[].popularity of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].brand_uid of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].category_uid of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].verification_status of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].channel_identifier of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].category_slug of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].size_guide of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].l3_categories of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].store_ids of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].company_ids of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].departments of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].tags of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].l3_category_names of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].sizes of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].product_group_tag of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].multi_size of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].is_gift of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].is_cod of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].is_dependent of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].is_available of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].moq of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].seo of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].variants of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].variant_media of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].variant_group of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].multi_categories of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].template_tag of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].net_quantity of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].custom_order of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].country_of_origin of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[]._custom_json of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].identifiers of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].item_id of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[]._custom_meta of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Deleted] property items[].discount_percentage of schema ApplicationProductsSchema in response with status code 200 + +- ##### What's Changed + - [Breaking] [Changed] operationId from getApplicationProducts to getAppicationProducts + - [Breaking] [Changed] items[].name made optional in response with status code 200 + - [Breaking] [Changed] items[].is_dependent made optional in response with status code 200 + - [Breaking] [Changed] items[].uid made optional in response with status code 200 + - [Breaking] [Changed] items[].category_uid made optional in response with status code 200 + - [Breaking] [Changed] items[].item_code made optional in response with status code 200 + - [Breaking] [Changed] items[].multi_size made optional in response with status code 200 + - [Breaking] [Changed] items[].brand_uid made optional in response with status code 200 + - [Breaking] [Changed] items[].country_of_origin made optional in response with status code 200 + - [Breaking] [Changed] items[].item_type made optional in response with status code 200 + - [Breaking] [Changed] items[].departments made optional in response with status code 200 + - [Breaking] [Changed] items[].image_nature made optional in response with status code 200 + - [Breaking] [Changed] items[].moq made optional in response with status code 200 + - [Breaking] [Changed] items[].seo made optional in response with status code 200 + - [Breaking] [Changed] items[].is_cod made optional in response with status code 200 + - [Breaking] [Changed] items[].is_gift made optional in response with status code 200 + - [Breaking] [Changed] items[].is_available made optional in response with status code 200 + - [Breaking] [Changed] items[].l3_categories made optional in response with status code 200 + + +#### getDiscountedInventoryBySizeIdentifier + +- ##### What's Deprecated + - [Breaking] [Deleted] properties items[].tax_identifier.hsn_code, items[].tax_identifier.hsn_code_id, items[].tax_identifier.reporting_hsn in response with status code 200 + + +#### getProductDetailBySlug + +- ##### What's Deprecated + - [Deleted] Possible values from image,video,3d_model from property brand.logo.type of schema Media in response with status code 200 + - [Breaking] [Deleted] property brand.logo.alt of schema Media in response with status code 200 + - [Breaking] [Deleted] property brand.logo.thumbnail of schema Media in response with status code 200 + - [Deleted] Possible values from set,standard,composite,digital from property item_type of schema ProductDetail in response with status code 200 + - [Deleted] Possible values from image,video,3d_model from property medias[].type of schema Media in response with status code 200 + - [Breaking] [Deleted] property medias[].alt of schema Media in response with status code 200 + - [Breaking] [Deleted] property medias[].thumbnail of schema Media in response with status code 200 + + +#### getAppProducts + +- ##### What's Deprecated + - [Deleted] Possible values from set,standard,composite,digital from property items[].item_type of schema RawProduct in response with status code 200 + - [Deleted] Possible values from image,video,3d_model from property items[].media[].type of schema Media in response with status code 200 + - [Breaking] [Deleted] property items[].media[].alt of schema Media in response with status code 200 + - [Breaking] [Deleted] property items[].media[].thumbnail of schema Media in response with status code 200 + - [Breaking] [Deleted] properties items[].tax_identifier.hsn_code, items[].tax_identifier.hsn_code_id, items[].tax_identifier.reporting_hsn in response with status code 200 + - [Deleted] Value format from date-time from property items[].verified_on of schema RawProduct in response with status code 200 + + +#### createAppReturnConfiguration + +- ##### What's New + - [Added] property app_id of schema CreateUpdateAppReturnConfig in request body + - [Added] property company_id of schema CreateUpdateAppReturnConfig in request body + - [Breaking] [Added] company_id made required in request body + - [Breaking] [Added] return_config_level made required in request body + + +#### updateAppReturnConfiguration + +- ##### What's New + - [Added] property app_id of schema CreateUpdateAppReturnConfig in request body + - [Added] property company_id of schema CreateUpdateAppReturnConfig in request body + - [Breaking] [Added] company_id made required in request body + - [Breaking] [Added] return_config_level made required in request body + + +#### deleteAppCategoryReturnConfiguration + +- ##### What's New + - [Added] property app_id of schema DeleteAppCategoryReturnConfig in request body + - [Added] property company_id of schema DeleteAppCategoryReturnConfig in request body + - [Breaking] [Added] category_ids made required in request body + - [Breaking] [Added] company_id made required in request body + + +#### createAppCategoryReturnConfiguration + +- ##### What's New + - [Added] property app_id of schema BaseAppCategoryReturnConfig in request body + - [Added] property company_id of schema BaseAppCategoryReturnConfig in request body + - [Breaking] [Added] company_id made required in request body + - [Breaking] [Added] data made required in request body + + +#### updateAppCategoryReturnConfiguration + +- ##### What's New + - [Added] property app_id of schema BaseAppCategoryReturnConfig in request body + - [Added] property company_id of schema BaseAppCategoryReturnConfig in request body + - [Breaking] [Added] company_id made required in request body + - [Breaking] [Added] data made required in request body + + +#### listDepartmentsData + +- ##### What's Deprecated + - [Deleted] Possible values from set,standard,composite,digital from property items[].item_type of schema GetDepartment in response with status code 200 + + +#### getDepartmentData + +- ##### What's Deprecated + - [Deleted] Possible values from set,standard,composite,digital from property items[].item_type of schema GetDepartment in response with status code 200 + + +#### bulkHsnCode + +- ##### What's New + - [Breaking] [Added] data[].threshold1 made required in request body + + +#### updateHsnCode + +- ##### What's New + - [Breaking] [Added] threshold1 made required in request body + + +#### getInventories + +- ##### What's New + - [Breaking] [Added] Type object to property items[].identifier of schema GetInventories in response with status code 200 + - [Added] items[].return_config.returnable, items[].return_config.time, items[].return_config.unit made required in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] properties items[].identifier.ean, items[].identifier.sku_code, items[].identifier.alu, items[].identifier.upc, items[].identifier.isbn in response with status code 200 + - [Deleted] Possible values from high_street,warehouse,mall from property items[].store.store_type of schema ArticleStoreResponseSchema in response with status code 200 + - [Breaking] [Deleted] properties items[].tax_identifier.hsn_code, items[].tax_identifier.hsn_code_id, items[].tax_identifier.reporting_hsn in response with status code 200 + + +#### getInventoryBulkUploadHistory + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property items[].created_on of schema BulkInventoryGetItems in response with status code 200 + - [Deleted] Value format from date-time from property items[].modified_on of schema BulkInventoryGetItems in response with status code 200 + + +#### createInventoryExportJob + +- ##### What's Deprecated + - [Breaking] [Deleted] properties filters.brands, filters.from_date, filters.quantity, filters.stores, filters.to_date in response with status code 200 + + +#### getMarketplaceOptinDetail + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property items[].created_on of schema CompanyOptIn in response with status code 200 + - [Deleted] Value format from date-time from property items[].modified_on of schema CompanyOptIn in response with status code 200 + + +#### getCompanyDetail + +- ##### What's Deprecated + - [Deleted] Possible values from distributor,franchise,mbo,manufacturer-owner from property company_type of schema OptinCompanyDetail in response with status code 200 + + +#### getStoreDetail + +- ##### What's Deprecated + - [Deleted] Possible values from high_street,warehouse,mall from property items[].store_type of schema StoreDetail in response with status code 200 + + +#### getProductAssetsInBulk + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property items[].created_on of schema Items in response with status code 200 + - [Deleted] Value format from date-time from property items[].modified_on of schema Items in response with status code 200 + + +#### getProductBulkUploadHistory + +- ##### What's New + - [Breaking] [Added] Type array to property items of schema ProductBulkRequestList in response with status code 200 + + +#### getInventoryBySizeIdentifier + +- ##### What's Deprecated + - [Breaking] [Deleted] properties items[].tax_identifier.hsn_code, items[].tax_identifier.hsn_code_id, items[].tax_identifier.reporting_hsn in response with status code 200 + + +#### getProductSize + +- ##### What's Deprecated + - [Deleted] Possible values from set,standard,composite,digital from property items[].item_type of schema Product in response with status code 200 + - [Deleted] Possible values from image,video,3d_model from property items[].media[].type of schema Media in response with status code 200 + - [Breaking] [Deleted] property items[].media[].alt of schema Media in response with status code 200 + - [Breaking] [Deleted] property items[].media[].thumbnail of schema Media in response with status code 200 + - [Breaking] [Deleted] properties items[].tax_identifier.hsn_code, items[].tax_identifier.hsn_code_id, items[].tax_identifier.reporting_hsn in response with status code 200 + - [Deleted] Value format from date-time from property items[].verified_on of schema Product in response with status code 200 + + +#### getInventoryBySize + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property items[].inventory_updated_on of schema InventoryResponseSchema in response with status code 200 + + +#### getVariantsOfProducts + +- ##### What's Deprecated + - [Deleted] Possible values from image,video,3d_model from property variants[].media[].type of schema Media in response with status code 200 + - [Breaking] [Deleted] property variants[].media[].alt of schema Media in response with status code 200 + - [Breaking] [Deleted] property variants[].media[].thumbnail of schema Media in response with status code 200 + + +#### getSizeGuide + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_on of schema SizeGuideResponseSchema in response with status code 200 + - [Deleted] Value format from date-time from property modified_on of schema SizeGuideResponseSchema in response with status code 200 + + +#### createInventoryExport + +- ##### What's Deprecated + - [Breaking] [Deleted] properties filters.brands, filters.from_date, filters.quantity, filters.stores, filters.to_date in response with status code 200 + + +#### getProducts + +- ##### What's Deprecated + - [Deleted] Possible values from set,standard,composite,digital from property items[].item_type of schema ProductSchemaV2 in response with status code 200 + - [Deleted] Possible values from image,video,3d_model from property items[].media[].type of schema Media in response with status code 200 + - [Breaking] [Deleted] property items[].media[].alt of schema Media in response with status code 200 + - [Breaking] [Deleted] property items[].media[].thumbnail of schema Media in response with status code 200 + - [Breaking] [Deleted] properties items[].tax_identifier.hsn_code, items[].tax_identifier.hsn_code_id, items[].tax_identifier.reporting_hsn in response with status code 200 + - [Deleted] Value format from date-time from property items[].verified_on of schema ProductSchemaV2 in response with status code 200 + + +#### createProduct + +- ##### What's New + - [Breaking] [Added] Possible values days,hours to property custom_order.manufacturing_time_unit of schema CustomOrder in request body + - [Added] Default value to property custom_order.is_custom_order of schema CustomOrder in request body + - [Added] Default value to property custom_order.manufacturing_time of schema CustomOrder in request body + - [Breaking] [Added] minimum validator for custom_order.manufacturing_time in request body + +- ##### What's Deprecated + - [Deleted] Possible values from image,video,3d_model from property media[].type of schema Media in request body + - [Breaking] [Deleted] property media[].alt of schema Media in request body + - [Breaking] [Deleted] property media[].thumbnail of schema Media in request body + +- ##### What's Changed + - [Changed] custom_order.is_custom_order made optional in request body + + +#### uploadBulkProducts + +- ##### What's Deprecated + - [Deleted] Possible values from set,standard,composite,digital from property product_type of schema BulkProductJob in request body + + +#### getProduct + +- ##### What's Deprecated + - [Deleted] Possible values from set,standard,composite,digital from property data.item_type of schema ProductSchemaV2 in response with status code 200 + - [Deleted] Possible values from image,video,3d_model from property data.media[].type of schema Media in response with status code 200 + - [Breaking] [Deleted] property data.media[].alt of schema Media in response with status code 200 + - [Breaking] [Deleted] property data.media[].thumbnail of schema Media in response with status code 200 + - [Breaking] [Deleted] properties data.tax_identifier.hsn_code, data.tax_identifier.hsn_code_id, data.tax_identifier.reporting_hsn in response with status code 200 + - [Deleted] Value format from date-time from property data.verified_on of schema ProductSchemaV2 in response with status code 200 + + +#### editProduct + +- ##### What's New + - [Breaking] [Added] Possible values days,hours to property custom_order.manufacturing_time_unit of schema CustomOrder in request body + - [Added] Default value to property custom_order.is_custom_order of schema CustomOrder in request body + - [Added] Default value to property custom_order.manufacturing_time of schema CustomOrder in request body + - [Breaking] [Added] minimum validator for custom_order.manufacturing_time in request body + +- ##### What's Deprecated + - [Deleted] Possible values from image,video,3d_model from property media[].type of schema Media in request body + - [Breaking] [Deleted] property media[].alt of schema Media in request body + - [Breaking] [Deleted] property media[].thumbnail of schema Media in request body + +- ##### What's Changed + - [Changed] custom_order.is_custom_order made optional in request body + + +### Common + + + +#### searchApplication + +- ##### What's Deprecated + - [Deleted] Possible values from store,website-and-mobile-apps from property application.channel_type of schema Application in response with status code 200 + - [Deleted] Value format from date-time from property application.created_at of schema Application in response with status code 200 + - [Deleted] Value format from date-time from property application.updated_at of schema Application in response with status code 200 + - [Deleted] Value format from date-time from property created_at of schema ApplicationResponseSchema in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema ApplicationResponseSchema in response with status code 200 + + +### Communication + + + +#### getAppProviders + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema AppProvider in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema AppProvider in response with status code 200 + + +#### updateAppProviders + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema AppProvider in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema AppProvider in response with status code 200 + + +#### getEmailProviders + +- ##### What's New + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property items[].created_at of schema EmailProvider in response with status code 200 + - [Deleted] Value format from date-time from property items[].updated_at of schema EmailProvider in response with status code 200 + + +#### createEmailProvider + +- ##### What's New + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema EmailProvider in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema EmailProvider in response with status code 200 + + +#### getEmailProviderById + +- ##### What's New + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema EmailProvider in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema EmailProvider in response with status code 200 + + +#### updateEmailProviderById + +- ##### What's New + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema EmailProvider in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema EmailProvider in response with status code 200 + + +#### deleteEmailProviderById + +- ##### What's New + - [Added] Response with status 500 + + +#### getSmsProviders + +- ##### What's New + - [Added] Response with status 500 + + +#### createSmsProvider + +- ##### What's New + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Breaking] [Deleted] property tenant_name_1 of schema SmsProviderReq in request body + - [Breaking] [Deleted] property tenant_name_2 of schema SmsProviderReq in request body + + +#### getDefaultSmsProviders + +- ##### What's New + - [Added] Response with status 500 + + +#### getSmsProviderById + +- ##### What's New + - [Added] Response with status 500 + + +#### updateSmsProviderById + +- ##### What's New + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Breaking] [Deleted] property tenant_name_1 of schema SmsProviderReq in request body + - [Breaking] [Deleted] property tenant_name_2 of schema SmsProviderReq in request body + + +#### deleteSmsProviderById + +- ##### What's New + - [Added] Response with status 500 + + +#### getCampaigns + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property items[].created_at of schema Campaign in response with status code 200 + - [Deleted] Value format from date-time from property items[].updated_at of schema Campaign in response with status code 200 + + +#### createCampaign + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema Campaign in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema Campaign in response with status code 200 + + +#### getCampaignById + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema Campaign in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema Campaign in response with status code 200 + + +#### updateCampaignById + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema Campaign in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema Campaign in response with status code 200 + + +#### getAudiences + +- ##### What's New + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property items[].created_at of schema Audience in response with status code 200 + - [Deleted] Value format from date-time from property items[].updated_at of schema Audience in response with status code 200 + + +#### createAudience + +- ##### What's New + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema Audience in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema Audience in response with status code 200 + + +#### getAudienceById + +- ##### What's New + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema Audience in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema Audience in response with status code 200 + + +#### updateAudienceById + +- ##### What's New + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema Audience in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema Audience in response with status code 200 + + +#### deleteAudienceById + +- ##### What's New + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema Audience in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema Audience in response with status code 200 + + +#### getDummyDatasources + +- ##### What's New + - [Added] Response with status 500 + + +#### getDummyDatasourcesMeta + +- ##### What's New + - [Added] Response with status 500 + + +#### getNSampleRecordsFromCsvByGet + +- ##### What's New + - [Added] Response with status 500 + + +#### getNSampleRecordsFromCsv + +- ##### What's New + - [Added] Response with status 500 + + +#### getEmailTemplates + +- ##### What's New + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property items[].created_at of schema EmailTemplate in response with status code 200 + - [Deleted] Value format from date-time from property items[].updated_at of schema EmailTemplate in response with status code 200 + + +#### createEmailTemplate + +- ##### What's New + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema EmailTemplate in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema EmailTemplate in response with status code 200 + + +#### getSystemEmailTemplates + +- ##### What's New + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property items[].created_at of schema SystemEmailTemplate in response with status code 200 + - [Deleted] Value format from date-time from property items[].updated_at of schema SystemEmailTemplate in response with status code 200 + + +#### getEmailTemplateById + +- ##### What's New + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema EmailTemplate in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema EmailTemplate in response with status code 200 + + +#### updateEmailTemplateById + +- ##### What's New + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema EmailTemplate in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema EmailTemplate in response with status code 200 + + +#### deleteEmailTemplateById + +- ##### What's New + - [Added] Response with status 500 + + +#### getSubscribedEmailTemplates + +- ##### What's New + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property items[].created_at of schema EmailTemplate in response with status code 200 + - [Deleted] Value format from date-time from property items[].updated_at of schema EmailTemplate in response with status code 200 + + +#### getSmsTemplates + +- ##### What's New + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Deleted] Possible values from static,nunjucks,lodash from property items[].message.template_type of schema SmsTemplateMessage in response with status code 200 + - [Deleted] Value format from date-time from property items[].created_at of schema SmsTemplate in response with status code 200 + - [Deleted] Value format from date-time from property items[].updated_at of schema SmsTemplate in response with status code 200 + + +#### createSmsTemplate + +- ##### What's New + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Deleted] Possible values from static,nunjucks,lodash from property message.template_type of schema SmsTemplateMessage in request body + - [Deleted] Possible values from static,nunjucks,lodash from property message.template_type of schema SmsTemplateMessage in response with status code 200 + - [Deleted] Value format from date-time from property created_at of schema SmsTemplate in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema SmsTemplate in response with status code 200 + + +#### getSystemSmsTemplates + +- ##### What's New + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Deleted] Possible values from static,nunjucks,lodash from property [].message.template_type of schema SmsTemplateMessage in response with status code 200 + - [Deleted] Value format from date-time from property [].created_at of schema SystemSmsTemplates in response with status code 200 + - [Deleted] Value format from date-time from property [].updated_at of schema SystemSmsTemplates in response with status code 200 + + +#### getSmsTemplateById + +- ##### What's New + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Deleted] Possible values from static,nunjucks,lodash from property message.template_type of schema SmsTemplateMessage in response with status code 200 + - [Deleted] Value format from date-time from property created_at of schema SmsTemplate in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema SmsTemplate in response with status code 200 + + +#### updateSmsTemplateById + +- ##### What's New + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Deleted] Possible values from static,nunjucks,lodash from property message.template_type of schema SmsTemplateMessage in request body + - [Deleted] Possible values from static,nunjucks,lodash from property message.template_type of schema SmsTemplateMessage in response with status code 200 + - [Deleted] Value format from date-time from property created_at of schema SmsTemplate in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema SmsTemplate in response with status code 200 + + +#### deleteSmsTemplateById + +- ##### What's New + - [Added] Response with status 500 + + +#### getSubscribedSmsTemplates + +- ##### What's New + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Deleted] Possible values from static,nunjucks,lodash from property items[].message.template_type of schema SmsTemplateMessage in response with status code 200 + - [Deleted] Value format from date-time from property items[].created_at of schema SmsTemplate in response with status code 200 + - [Deleted] Value format from date-time from property items[].updated_at of schema SmsTemplate in response with status code 200 + + +#### getEventSubscriptions + +- ##### What's New + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property items[].created_at of schema EventSubscription in response with status code 200 + - [Deleted] Value format from date-time from property items[].updated_at of schema EventSubscription in response with status code 200 + + +#### createEventSubscriptions + +- ##### What's New + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema EventSubscriptionsBulkUpdateResult in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema EventSubscriptionsBulkUpdateResult in response with status code 200 + + +#### getEventSubscriptionsById + +- ##### What's New + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema EventSubscription in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema EventSubscription in response with status code 200 + + +#### editEventSubscriptions + +- ##### What's New + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema EventSubscriptionsBulkUpdateResult in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema EventSubscriptionsBulkUpdateResult in response with status code 200 + + +#### deleteEventSubscriptionsById + +- ##### What's New + - [Added] Response with status 500 + + +#### createEventSubscriptionsByBulk + +- ##### What's New + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property [].created_at of schema EventSubscriptionsBulkUpdateResult in response with status code 200 + - [Deleted] Value format from date-time from property [].updated_at of schema EventSubscriptionsBulkUpdateResult in response with status code 200 + + +#### getGlobalVariables + +- ##### What's New + - [Added] Response with status 500 + + +#### postGlobalVariables + +- ##### What's New + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema CreateGlobalVariablesResult in response with status code 200 + + +#### getJobs + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property items[].created_at of schema Job in response with status code 200 + - [Deleted] Value format from date-time from property items[].updated_at of schema Job in response with status code 200 + + +#### createJobs + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema CreateJobsRes in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema CreateJobsRes in response with status code 200 + + +#### getJobLogs + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property items[].created_at of schema JobLog in response with status code 200 + - [Deleted] Value format from date-time from property items[].updated_at of schema JobLog in response with status code 200 + + +#### getCommunicationLogs + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property items[].expire_at of schema Log in response with status code 200 + - [Deleted] Value format from date-time from property items[].created_at of schema Log in response with status code 200 + + +#### getSystemNotifications + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property items[].created_at of schema SystemNotification in response with status code 200 + + +### CompanyProfile + + + +#### cbsOnboardGet + +- ##### What's Deprecated + - [Deleted] Possible values from distributor,franchise,mbo,manufacturer-owner from property company_type of schema GetCompanyProfileSerializerResponseSchema in response with status code 200 + - [Deleted] Possible values from home,registered,office from property addresses[].address_type of schema GetAddressSchema in response with status code 200 + + +#### updateCompany + +- ##### What's Deprecated + - [Deleted] Possible values from distributor,franchise,mbo,manufacturer-owner from property company_type of schema UpdateCompany in request body + + +#### getBrands + +- ##### What's Deprecated + - [Deleted] Possible values from distributor,franchise,mbo,manufacturer-owner from property items[].company.company_type of schema CompanySchema in response with status code 200 + - [Deleted] Possible values from home,registered,office from property items[].company.addresses[].address_type of schema GetAddressSchema in response with status code 200 + + +#### getLocations + +- ##### What's Deprecated + - [Deleted] Possible values from distributor,franchise,mbo,manufacturer-owner from property items[].company.company_type of schema GetCompanySchema in response with status code 200 + - [Deleted] Possible values from home,registered,office from property items[].company.addresses[].address_type of schema GetAddressSchema in response with status code 200 + - [Deleted] Possible values from home,registered,office from property items[].address.address_type of schema GetAddressSchema in response with status code 200 + - [Deleted] Possible values from high_street,warehouse,mall from property items[].store_type of schema GetLocationSchema in response with status code 200 + + +#### createLocation + +- ##### What's Deprecated + - [Deleted] Possible values from high_street,warehouse,mall from property store_type of schema LocationSchema in request body + + +#### getLocationDetail + +- ##### What's Deprecated + - [Deleted] Possible values from distributor,franchise,mbo,manufacturer-owner from property company.company_type of schema GetCompanySchema in response with status code 200 + - [Deleted] Possible values from home,registered,office from property company.addresses[].address_type of schema GetAddressSchema in response with status code 200 + - [Deleted] Possible values from home,registered,office from property address.address_type of schema GetAddressSchema in response with status code 200 + - [Deleted] Possible values from high_street,warehouse,mall from property store_type of schema GetLocationSchema in response with status code 200 + + +#### updateLocation + +- ##### What's Deprecated + - [Deleted] Possible values from high_street,warehouse,mall from property store_type of schema LocationSchema in request body + + +#### createLocationBulk + +- ##### What's Deprecated + - [Deleted] Possible values from high_street,warehouse,mall from property data[].store_type of schema LocationSchema in request body + + +### Configuration + + + +#### getBuildConfig + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema MobileAppConfiguration in response with status code 200 + - [Deleted] Value format from date-time from property modified_at of schema MobileAppConfiguration in response with status code 200 + + +#### updateBuildConfig + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema MobileAppConfiguration in response with status code 200 + - [Deleted] Value format from date-time from property modified_at of schema MobileAppConfiguration in response with status code 200 + + +#### getPreviousVersions + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property versions[].created_at of schema BuildVersion in response with status code 200 + - [Deleted] Value format from date-time from property versions[].modified_at of schema BuildVersion in response with status code 200 + + +#### getAppFeatures + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property feature.created_at of schema AppFeature in response with status code 200 + - [Deleted] Value format from date-time from property feature.modified_at of schema AppFeature in response with status code 200 + + +#### updateAppFeatures + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property feature.created_at of schema AppFeature in request body + - [Deleted] Value format from date-time from property feature.modified_at of schema AppFeature in request body + - [Deleted] Value format from date-time from property created_at of schema AppFeature in response with status code 200 + - [Deleted] Value format from date-time from property modified_at of schema AppFeature in response with status code 200 + + +#### modifyAppFeatures + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property feature.created_at of schema AppFeature in request body + - [Deleted] Value format from date-time from property feature.modified_at of schema AppFeature in request body + - [Deleted] Value format from date-time from property created_at of schema AppFeature in response with status code 200 + - [Deleted] Value format from date-time from property modified_at of schema AppFeature in response with status code 200 + + +#### getAppContactInfo + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema ApplicationInformation in response with status code 200 + - [Deleted] Value format from date-time from property modified_at of schema ApplicationInformation in response with status code 200 + + +#### updateAppContactInfo + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema ApplicationInformation in request body + - [Deleted] Value format from date-time from property modified_at of schema ApplicationInformation in request body + - [Deleted] Value format from date-time from property created_at of schema ApplicationInformation in response with status code 200 + - [Deleted] Value format from date-time from property modified_at of schema ApplicationInformation in response with status code 200 + + +#### getAppApiTokens + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema TokenResponseSchema in response with status code 200 + - [Deleted] Value format from date-time from property modified_at of schema TokenResponseSchema in response with status code 200 + + +#### updateAppApiTokens + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema TokenResponseSchema in request body + - [Deleted] Value format from date-time from property modified_at of schema TokenResponseSchema in request body + - [Deleted] Value format from date-time from property created_at of schema TokenResponseSchema in response with status code 200 + - [Deleted] Value format from date-time from property modified_at of schema TokenResponseSchema in response with status code 200 + + +#### getAppStores + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property items[].modified_on of schema AppInventoryStores in response with status code 200 + - [Deleted] Possible values from high_street,warehouse,mall from property items[].store_type of schema AppInventoryStores in response with status code 200 + + +#### getInventoryConfig + +- ##### What's Deprecated + - [Breaking] [Deleted] property search of schema ApplicationInventory in response with status code 200 + - [Deleted] Type from object from property inventory.exclude_category[] of schema AppInventoryConfig in response with status code 200 + - [Deleted] Value format from date-time from property created_at of schema ApplicationInventory in response with status code 200 + - [Deleted] Value format from date-time from property modified_at of schema ApplicationInventory in response with status code 200 + + +#### updateInventoryConfig + +- ##### What's Deprecated + - [Breaking] [Deleted] property search of schema ApplicationInventory in request body + - [Deleted] Type from object from property inventory.exclude_category[] of schema AppInventoryConfig in request body + - [Deleted] Value format from date-time from property created_at of schema ApplicationInventory in request body + - [Deleted] Value format from date-time from property modified_at of schema ApplicationInventory in request body + - [Breaking] [Deleted] property search of schema ApplicationInventory in response with status code 200 + - [Deleted] Type from object from property inventory.exclude_category[] of schema AppInventoryConfig in response with status code 200 + - [Deleted] Value format from date-time from property created_at of schema ApplicationInventory in response with status code 200 + - [Deleted] Value format from date-time from property modified_at of schema ApplicationInventory in response with status code 200 + + +#### partiallyUpdateInventoryConfig + +- ##### What's Deprecated + - [Breaking] [Deleted] property search of schema AppInventoryPartialUpdate in request body + - [Breaking] [Deleted] property search of schema ApplicationInventory in response with status code 200 + - [Deleted] Type from object from property inventory.exclude_category[] of schema AppInventoryConfig in response with status code 200 + - [Deleted] Value format from date-time from property created_at of schema ApplicationInventory in response with status code 200 + - [Deleted] Value format from date-time from property modified_at of schema ApplicationInventory in response with status code 200 + + +#### getAppCurrencyConfig + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema AppSupportedCurrency in response with status code 200 + - [Deleted] Value format from date-time from property modified_at of schema AppSupportedCurrency in response with status code 200 + + +#### updateAppCurrencyConfig + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema AppSupportedCurrency in request body + - [Deleted] Value format from date-time from property modified_at of schema AppSupportedCurrency in request body + - [Deleted] Value format from date-time from property created_at of schema AppSupportedCurrency in response with status code 200 + - [Deleted] Value format from date-time from property modified_at of schema AppSupportedCurrency in response with status code 200 + + +#### getAppSupportedCurrency + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property supported_currency[].created_at of schema Currency in response with status code 200 + - [Deleted] Value format from date-time from property supported_currency[].modified_at of schema Currency in response with status code 200 + - [Deleted] Value format from date-time from property created_at of schema AppCurrencyResponseSchema in response with status code 200 + - [Deleted] Value format from date-time from property modified_at of schema AppCurrencyResponseSchema in response with status code 200 + + +#### createApplication + +- ##### What's Deprecated + - [Breaking] [Deleted] property configuration.search of schema ApplicationInventory in request body + - [Deleted] Type from object from property configuration.inventory.exclude_category[] of schema AppInventoryConfig in request body + - [Deleted] Value format from date-time from property configuration.created_at of schema ApplicationInventory in request body + - [Deleted] Value format from date-time from property configuration.modified_at of schema ApplicationInventory in request body + - [Deleted] Possible values from website-and-mobile-apps,store from property app.channel_type of schema Application in response with status code 200 + - [Deleted] Value format from date-time from property app.created_at of schema Application in response with status code 200 + - [Deleted] Value format from date-time from property app.modified_at of schema Application in response with status code 200 + - [Deleted] Value format from date-time from property app.tokens[].created_at of schema TokenSchema in response with status code 200 + - [Breaking] [Deleted] property configuration.search of schema ApplicationInventory in response with status code 200 + - [Deleted] Type from object from property configuration.inventory.exclude_category[] of schema AppInventoryConfig in response with status code 200 + - [Deleted] Value format from date-time from property configuration.created_at of schema ApplicationInventory in response with status code 200 + - [Deleted] Value format from date-time from property configuration.modified_at of schema ApplicationInventory in response with status code 200 + + +#### getApplications + +- ##### What's Deprecated + - [Deleted] Possible values from website-and-mobile-apps,store from property items[].channel_type of schema Application in response with status code 200 + - [Deleted] Value format from date-time from property items[].created_at of schema Application in response with status code 200 + - [Deleted] Value format from date-time from property items[].modified_at of schema Application in response with status code 200 + - [Deleted] Value format from date-time from property items[].tokens[].created_at of schema TokenSchema in response with status code 200 + + +#### getApplicationById + +- ##### What's Deprecated + - [Deleted] Possible values from website-and-mobile-apps,store from property channel_type of schema ApplicationById in response with status code 200 + - [Deleted] Value format from date-time from property created_at of schema ApplicationById in response with status code 200 + - [Deleted] Value format from date-time from property modified_at of schema ApplicationById in response with status code 200 + - [Deleted] Value format from date-time from property tokens[].created_at of schema TokenSchemaID in response with status code 200 + + +#### getCurrencies + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property items[].created_at of schema Currency in response with status code 200 + - [Deleted] Value format from date-time from property items[].modified_at of schema Currency in response with status code 200 + + +#### getDomainAvailibility + +- ##### What's New + - [Added] property custom of schema DomainSuggestionsRequest in request body + +- ##### What's Deprecated + - [Breaking] [Deleted] property custom_domain of schema DomainSuggestionsRequestSchema in request body + + +#### getStoreByBrands + +- ##### What's Deprecated + - [Deleted] Possible values from high_street,warehouse,mall from property items[].store_type of schema BrandStoreInfo in response with status code 200 + + +#### getCurrencyExchangeRates + +- ##### What's Deprecated + - [Breaking] [Deleted] method getCurrencyExchangeRates + + + +### Content + + + +#### getAnnouncementsList + +- ##### What's New + - [Added] Response with status 5XX + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property items[].created_at of schema AdminAnnouncementSchema in response with status code 200 + - [Deleted] Value format from date-time from property items[].modified_at of schema AdminAnnouncementSchema in response with status code 200 + + +#### createAnnouncement + +- ##### What's New + - [Added] Response with status 5XX + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema AdminAnnouncementSchema in request body + - [Deleted] Value format from date-time from property modified_at of schema AdminAnnouncementSchema in request body + - [Deleted] Value format from date-time from property data.created_at of schema AdminAnnouncementSchema in response with status code 200 + - [Deleted] Value format from date-time from property data.modified_at of schema AdminAnnouncementSchema in response with status code 200 + + +#### getAnnouncementById + +- ##### What's New + - [Added] Response with status 5XX + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema AdminAnnouncementSchema in response with status code 200 + - [Deleted] Value format from date-time from property modified_at of schema AdminAnnouncementSchema in response with status code 200 + + +#### updateAnnouncement + +- ##### What's New + - [Added] Response with status 5XX + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema AdminAnnouncementSchema in request body + - [Deleted] Value format from date-time from property modified_at of schema AdminAnnouncementSchema in request body + - [Deleted] Value format from date-time from property data.created_at of schema AdminAnnouncementSchema in response with status code 200 + - [Deleted] Value format from date-time from property data.modified_at of schema AdminAnnouncementSchema in response with status code 200 + + +#### updateAnnouncementSchedule + +- ##### What's New + - [Added] Response with status 5XX + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property data.created_at of schema AdminAnnouncementSchema in response with status code 200 + - [Deleted] Value format from date-time from property data.modified_at of schema AdminAnnouncementSchema in response with status code 200 + + +#### deleteAnnouncement + +- ##### What's New + - [Added] Response with status 5XX + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property data.created_at of schema AdminAnnouncementSchema in response with status code 200 + - [Deleted] Value format from date-time from property data.modified_at of schema AdminAnnouncementSchema in response with status code 200 + + +#### createBlog + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property publish_date of schema BlogSchema in response with status code 200 + - [Deleted] Value format from date-time from property date_meta.created_on of schema DateMeta in response with status code 200 + - [Deleted] Value format from date-time from property date_meta.modified_on of schema DateMeta in response with status code 200 + + +#### getBlogs + +- ##### What's New + - [Added] Response with status 5XX + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property items[].publish_date of schema BlogSchema 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.modified_on of schema DateMeta in response with status code 200 + + +#### updateBlog + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property publish_date of schema BlogSchema in response with status code 200 + - [Deleted] Value format from date-time from property date_meta.created_on of schema DateMeta in response with status code 200 + - [Deleted] Value format from date-time from property date_meta.modified_on of schema DateMeta in response with status code 200 + + +#### deleteBlog + +- ##### What's New + - [Added] Response with status 5XX + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property publish_date of schema BlogSchema in response with status code 200 + - [Deleted] Value format from date-time from property date_meta.created_on of schema DateMeta in response with status code 200 + - [Deleted] Value format from date-time from property date_meta.modified_on of schema DateMeta in response with status code 200 + + +#### addDataLoader + +- ##### What's New + - [Added] Response with status 5XX + + +#### getDataLoaders + +- ##### What's New + - [Added] Response with status 5XX + + +#### deleteDataLoader + +- ##### What's New + - [Added] Response with status 5XX + + +#### editDataLoader + +- ##### What's New + - [Added] Response with status 5XX + + +#### getDataLoadersByService + +- ##### What's New + - [Added] Response with status 5XX + + +#### selectDataLoader + +- ##### What's New + - [Added] Response with status 5XX + + +#### resetDataLoader + +- ##### What's New + - [Added] Response with status 5XX + + +#### getFaqCategories + +- ##### What's New + - [Added] Response with status 5XX + + +#### getFaqCategoryBySlugOrId + +- ##### What's New + - [Added] Response with status 5XX + + +#### createFaqCategory + +- ##### What's New + - [Added] Response with status 5XX + + +#### updateFaqCategory + +- ##### What's New + - [Added] Response with status 5XX + + +#### deleteFaqCategory + +- ##### What's New + - [Added] Response with status 5XX + + +#### getFaqsByCategoryIdOrSlug + +- ##### What's New + - [Added] Response with status 5XX + + +#### addFaq + +- ##### What's New + - [Added] Response with status 5XX + + +#### updateFaq + +- ##### What's New + - [Added] Response with status 5XX + + +#### deleteFaq + +- ##### What's New + - [Added] Response with status 5XX + + +#### getFaqByIdOrSlug + +- ##### What's New + - [Added] Response with status 5XX + + +#### generateSEOTitle + +- ##### What's New + - [Added] Response with status 5XX + + +#### getLandingPages + +- ##### What's New + - [Added] Response with status 5XX + +- ##### What's Deprecated + - [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.modified_on of schema DateMeta in response with status code 200 + + +#### createLandingPage + +- ##### What's New + - [Added] Response with status 5XX + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property date_meta.created_on of schema DateMeta in request body + - [Deleted] Value format from date-time from property date_meta.modified_on of schema DateMeta in request body + - [Deleted] Value format from date-time from property date_meta.created_on of schema DateMeta in response with status code 200 + - [Deleted] Value format from date-time from property date_meta.modified_on of schema DateMeta in response with status code 200 + + +#### updateLandingPage + +- ##### What's New + - [Added] Response with status 5XX + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property date_meta.created_on of schema DateMeta in request body + - [Deleted] Value format from date-time from property date_meta.modified_on of schema DateMeta in request body + - [Deleted] Value format from date-time from property date_meta.created_on of schema DateMeta in response with status code 200 + - [Deleted] Value format from date-time from property date_meta.modified_on of schema DateMeta in response with status code 200 + + +#### deleteLandingPage + +- ##### What's New + - [Added] Response with status 5XX + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property date_meta.created_on of schema DateMeta in response with status code 200 + - [Deleted] Value format from date-time from property date_meta.modified_on of schema DateMeta in response with status code 200 + + +#### getLegalInformation + +- ##### What's New + - [Added] Response with status 5XX + + +#### updateLegalInformation + +- ##### What's New + - [Added] Response with status 5XX + + +#### getNavigations + +- ##### What's New + - [Added] Response with status 5XX + +- ##### What's Deprecated + - [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.modified_on of schema DateMeta in response with status code 200 + + +#### createNavigation + +- ##### What's New + - [Added] Response with status 5XX + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property date_meta.created_on of schema DateMeta in response with status code 200 + - [Deleted] Value format from date-time from property date_meta.modified_on of schema DateMeta in response with status code 200 + + +#### getDefaultNavigations + +- ##### What's New + - [Added] Response with status 5XX + +- ##### What's Deprecated + - [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.modified_on of schema DateMeta in response with status code 200 + + +#### getNavigationBySlug + +- ##### What's New + - [Added] Response with status 5XX + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property date_meta.created_on of schema DateMeta in response with status code 200 + - [Deleted] Value format from date-time from property date_meta.modified_on of schema DateMeta in response with status code 200 + +- ##### What's Changed + - [Breaking] [Changed] Required status of query parameter devicePlatform + + +#### updateNavigation + +- ##### What's New + - [Added] Response with status 5XX + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property date_meta.created_on of schema DateMeta in response with status code 200 + - [Deleted] Value format from date-time from property date_meta.modified_on of schema DateMeta in response with status code 200 + + +#### deleteNavigation + +- ##### What's New + - [Added] Response with status 5XX + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property date_meta.created_on of schema DateMeta in response with status code 200 + - [Deleted] Value format from date-time from property date_meta.modified_on of schema DateMeta in response with status code 200 + + +#### getPageMeta + +- ##### What's New + - [Added] Response with status 5XX + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property system_pages[].date_meta.created_on of schema DateMeta in response with status code 200 + - [Deleted] Value format from date-time from property system_pages[].date_meta.modified_on of schema DateMeta in response with status code 200 + - [Deleted] Value format from date-time from property custom_pages[].date_meta.created_on of schema DateMeta in response with status code 200 + - [Deleted] Value format from date-time from property custom_pages[].date_meta.modified_on of schema DateMeta in response with status code 200 + + +#### getPageSpec + +- ##### What's New + - [Added] Response with status 5XX + + +#### createPagePreview + +- ##### What's New + - [Added] Response with status 5XX + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property date_meta.created_on of schema DateMeta in response with status code 200 + - [Deleted] Value format from date-time from property date_meta.modified_on of schema DateMeta in response with status code 200 + + +#### updatePagePreview + +- ##### What's New + - [Added] Response with status 5XX + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property date_meta.created_on of schema DateMeta in response with status code 200 + - [Deleted] Value format from date-time from property date_meta.modified_on of schema DateMeta in response with status code 200 + + +#### deletePage + +- ##### What's New + - [Added] Response with status 5XX + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property date_meta.created_on of schema DateMeta in response with status code 200 + - [Deleted] Value format from date-time from property date_meta.modified_on of schema DateMeta in response with status code 200 + + +#### addPathRedirectionRules + +- ##### What's New + - [Added] Response with status 5XX + + +#### getPathRedirectionRules + +- ##### What's New + - [Added] Response with status 5XX + + +#### getPathRedirectionRule + +- ##### What's New + - [Added] Response with status 5XX + + +#### updatePathRedirectionRules + +- ##### What's New + - [Added] Response with status 5XX + + +#### deletePathRedirectionRules + +- ##### What's New + - [Added] Response with status 5XX + + +#### getSEOConfiguration + +- ##### What's New + - [Added] Response with status 5XX + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property seo.created_at of schema SeoSchema in response with status code 200 + - [Deleted] Value format from date-time from property seo.updated_at of schema SeoSchema in response with status code 200 + + +#### updateSEOConfiguration + +- ##### What's New + - [Added] Response with status 5XX + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property seo.created_at of schema SeoSchema in request body + - [Deleted] Value format from date-time from property seo.updated_at of schema SeoSchema in request body + - [Deleted] Value format from date-time from property created_at of schema SeoSchema in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema SeoSchema in response with status code 200 + + +#### getDefaultSEOMarkupSchema + +- ##### What's New + - [Added] Response with status 5XX + +- ##### What's Deprecated + - [Deleted] Possible values from 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 from property items[].page_type of schema DefaultSEOSchemaMarkupTemplate in response with status code 200 + + +#### getSEOMarkupSchemas + +- ##### What's New + - [Added] Response with status 5XX + +- ##### What's Deprecated + - [Deleted] Possible values from 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 from property items[].page_type of schema SEOSchemaMarkupTemplate in response with status code 200 + + +#### createSEOMarkupSchema + +- ##### What's New + - [Added] Response with status 5XX + +- ##### What's Deprecated + - [Deleted] Possible values from 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 from property page_type of schema SEOSchemaMarkupTemplateRequestBody in request body + - [Deleted] Possible values from 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 from property page_type of schema SEOSchemaMarkupTemplate in response with status code 200 + + +#### getSEOMarkupSchema + +- ##### What's New + - [Added] Response with status 5XX + +- ##### What's Deprecated + - [Deleted] Possible values from 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 from property page_type of schema SEOSchemaMarkupTemplate in response with status code 200 + + +#### editSEOMarkupSchema + +- ##### What's New + - [Added] Response with status 5XX + +- ##### What's Deprecated + - [Deleted] Possible values from 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 from property page_type of schema SEOSchemaMarkupTemplateRequestBody in request body + - [Deleted] Possible values from 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 from property page_type of schema SEOSchemaMarkupTemplate in response with status code 200 + + +#### deleteSEOMarkupSchema + +- ##### What's New + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Deleted] Possible values from 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 from property page_type of schema SEOSchemaMarkupTemplate in response with status code 200 + + +#### getSlideshows + +- ##### What's New + - [Added] Response with status 5XX + +- ##### What's Deprecated + - [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.modified_on of schema DateMeta in response with status code 200 + + +#### createSlideshow + +- ##### What's New + - [Added] Response with status 5XX + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property date_meta.created_on of schema DateMeta in response with status code 200 + - [Deleted] Value format from date-time from property date_meta.modified_on of schema DateMeta in response with status code 200 + + +#### getSlideshowBySlug + +- ##### What's New + - [Added] Response with status 5XX + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property date_meta.created_on of schema DateMeta in response with status code 200 + - [Deleted] Value format from date-time from property date_meta.modified_on of schema DateMeta in response with status code 200 + + +#### updateSlideshow + +- ##### What's New + - [Added] Response with status 5XX + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property date_meta.created_on of schema DateMeta in response with status code 200 + - [Deleted] Value format from date-time from property date_meta.modified_on of schema DateMeta in response with status code 200 + + +#### deleteSlideshow + +- ##### What's New + - [Added] Response with status 5XX + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property date_meta.created_on of schema DateMeta in response with status code 200 + - [Deleted] Value format from date-time from property date_meta.modified_on of schema DateMeta in response with status code 200 + + +#### getSupportInformation + +- ##### What's New + - [Added] Response with status 5XX + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema Support in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema Support in response with status code 200 + + +#### updateSupportInformation + +- ##### What's New + - [Added] Response with status 5XX + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema Support in request body + - [Deleted] Value format from date-time from property updated_at of schema Support in request body + - [Deleted] Value format from date-time from property created_at of schema Support in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema Support in response with status code 200 + + +#### updateInjectableTag + +- ##### What's New + - [Added] Response with status 5XX + + +#### getInjectableTags + +- ##### What's New + - [Added] Response with status 5XX + + +#### addInjectableTag + +- ##### What's New + - [Added] Response with status 5XX + + +#### removeInjectableTag + +- ##### What's New + - [Added] Response with status 5XX + + +#### editInjectableTag + +- ##### What's New + - [Added] Response with status 5XX + +- ##### What's Deprecated + - [Deleted] Possible values from inline,external from property tag.sub_type of schema HandpickedTagSchema in request body + + +#### getBlogBySlug + +- ##### What's New + - [Added] Response with status 5XX + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property publish_date of schema BlogSchema in response with status code 200 + - [Deleted] Value format from date-time from property date_meta.created_on of schema DateMeta in response with status code 200 + - [Deleted] Value format from date-time from property date_meta.modified_on of schema DateMeta in response with status code 200 + + +#### createPage + +- ##### What's New + - [Added] Response with status 5XX + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property date_meta.created_on of schema DateMeta in response with status code 200 + - [Deleted] Value format from date-time from property date_meta.modified_on of schema DateMeta in response with status code 200 + + +#### getPages + +- ##### What's New + - [Added] Response with status 5XX + +- ##### What's Deprecated + - [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.modified_on of schema DateMeta in response with status code 200 + + +#### updatePage + +- ##### What's New + - [Added] Response with status 5XX + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property date_meta.created_on of schema DateMeta in request body + - [Deleted] Value format from date-time from property date_meta.modified_on of schema DateMeta in request body + - [Deleted] Value format from date-time from property date_meta.created_on of schema DateMeta in response with status code 200 + - [Deleted] Value format from date-time from property date_meta.modified_on of schema DateMeta in response with status code 200 + + +#### getPageBySlug + +- ##### What's New + - [Added] Response with status 5XX + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property date_meta.created_on of schema DateMeta in response with status code 200 + - [Deleted] Value format from date-time from property date_meta.modified_on of schema DateMeta in response with status code 200 + + +#### getCustomFieldTypes + +- ##### What's New + - [Added] property _id of schema CustomObjectByIdSchema in response with status code 200 + - [Added] property status of schema CustomObjectByIdSchema in response with status code 200 + - [Added] property display_name of schema CustomObjectByIdSchema in response with status code 200 + - [Added] property definition of schema CustomObjectByIdSchema in response with status code 200 + - [Added] property references of schema CustomObjectByIdSchema in response with status code 200 + - [Added] property fields of schema CustomObjectByIdSchema in response with status code 200 + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Breaking] [Deleted] property metafield_types of schema MetafieldTypesSchema in response with status code 200 + + +#### getResources + +- ##### What's New + - [Added] Response with status 5XX + + +#### getCustomFieldDefinitions + +- ##### What's New + - [Added] property items[]._id of schema FieldDefinitionSchema in response with status code 200 + - [Added] property items[].creator of schema FieldDefinitionSchema in response with status code 200 + - [Added] property items[].key of schema FieldDefinitionSchema in response with status code 200 + - [Added] property items[].created_by of schema FieldDefinitionSchema in response with status code 200 + - [Added] property items[].updated_by of schema FieldDefinitionSchema in response with status code 200 + - [Added] property items[].created_at of schema FieldDefinitionSchema in response with status code 200 + - [Added] property items[].updated_at of schema FieldDefinitionSchema in response with status code 200 + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Breaking] [Deleted] property items[].id of schema FieldDefinitionSchema in response with status code 200 + - [Breaking] [Deleted] property items[].slug of schema FieldDefinitionSchema in response with status code 200 + +- ##### What's Changed + - [Changed] Path From /service/platform/content/v2.0/company/{company_id}/customfields/definition To /service/platform/content/v1.0/company/{company_id}/metafields/definitions + + +#### getCustomFieldDefinitionByResource + +- ##### What's Deprecated + - [Breaking] [Deleted] method getCustomFieldDefinitionByResource + + + +#### createCustomFieldDefinition + +- ##### What's New + - [Added] property resource of schema CustomFieldDefinitionRequestSchema in request body + - [Added] property key of schema CustomFieldDefinitionRequestSchema in request body + - [Added] property creator of schema CustomFieldDefinitionDetailResSchema in response with status code 200 + - [Added] property key of schema CustomFieldDefinitionDetailResSchema in response with status code 200 + - [Added] property created_by of schema CustomFieldDefinitionDetailResSchema in response with status code 200 + - [Added] property updated_by of schema CustomFieldDefinitionDetailResSchema in response with status code 200 + - [Added] property _id of schema CustomFieldDefinitionDetailResSchema in response with status code 200 + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Breaking] [Deleted] property slug of schema CustomFieldDefinitionRequestSchema in request body + - [Breaking] [Deleted] property slug of schema CustomFieldDefinitionDetailResSchema in response with status code 200 + - [Breaking] [Deleted] property id of schema CustomFieldDefinitionDetailResSchema in response with status code 200 + +- ##### What's Changed + - [Changed] Path From /service/platform/content/v2.0/company/{company_id}/customfields/resource/{resource}/definition To /service/platform/content/v1.0/company/{company_id}/metafields/definitions + + +#### getCustomFieldDefinitionBySlug + +- ##### What's Deprecated + - [Breaking] [Deleted] method getCustomFieldDefinitionBySlug + + + +#### updateCustomFieldDefinitionBySlug + +- ##### What's Deprecated + - [Breaking] [Deleted] method updateCustomFieldDefinitionBySlug + + + +#### deleteCustomFieldDefinitionBySlug + +- ##### What's Deprecated + - [Breaking] [Deleted] method deleteCustomFieldDefinitionBySlug + + + +#### getCustomFieldsByResourceSlug + +- ##### What's Deprecated + - [Breaking] [Deleted] method getCustomFieldsByResourceSlug + + + +#### updateCustomFieldByResourceSlug + +- ##### What's Deprecated + - [Breaking] [Deleted] method updateCustomFieldByResourceSlug + + + +#### deleteCustomFieldsByResourceSlug + +- ##### What's Deprecated + - [Breaking] [Deleted] method deleteCustomFieldsByResourceSlug + + + +#### createCustomObjectDefinition + +- ##### What's New + - [Added] property field_definitions[].key of schema CustomObjectCustomFieldDefinitions in request body + - [Breaking] [Added] Type object to property field_definitions[].validations[] of schema FieldValidations in response with status code 200 + - [Added] properties field_definitions[].validations[].name, field_definitions[].validations[].type, field_definitions[].validations[].value in response with status code 200 + - [Added] property field_definitions[].creator of schema CustomObjectCustomFieldDefinitionResSchema in response with status code 200 + - [Added] property field_definitions[].key of schema CustomObjectCustomFieldDefinitionResSchema in response with status code 200 + - [Added] property field_definitions[].created_by of schema CustomObjectCustomFieldDefinitionResSchema in response with status code 200 + - [Added] property field_definitions[].metaobject_definition_id of schema CustomObjectCustomFieldDefinitionResSchema in response with status code 200 + - [Added] property field_definitions[]._id of schema CustomObjectCustomFieldDefinitionResSchema in response with status code 200 + - [Added] property _id of schema CustomObjectDefinitionSchema in response with status code 200 + - [Added] property creator of schema CustomObjectDefinitionSchema in response with status code 200 + - [Added] property created_by of schema CustomObjectDefinitionSchema in response with status code 200 + - [Added] property updated_by of schema CustomObjectDefinitionSchema in response with status code 200 + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Breaking] [Deleted] property definition_slug of schema CustomObjectDefinitionRequestSchema in request body + - [Breaking] [Deleted] property field_definitions[].slug of schema CustomObjectCustomFieldDefinitions in request body + - [Breaking] [Deleted] property id of schema CustomObjectDefinitionSlugSchema in response with status code 200 + - [Breaking] [Deleted] property definition_slug of schema CustomObjectDefinitionSlugSchema in response with status code 200 + - [Breaking] [Deleted] property field_definitions[].slug of schema CustomFieldDefinitionDetailResSchema in response with status code 200 + - [Deleted] Value format from integer from property field_definitions[].company_id of schema CustomFieldDefinitionDetailResSchema in response with status code 200 + - [Breaking] [Deleted] property field_definitions[].application_id of schema CustomFieldDefinitionDetailResSchema in response with status code 200 + - [Breaking] [Deleted] property field_definitions[].id of schema CustomFieldDefinitionDetailResSchema in response with status code 200 + +- ##### What's Changed + - [Changed] Path From /service/platform/content/v2.0/company/{company_id}/customobjects/definition To /service/platform/content/v1.0/company/{company_id}/metaobjects/definitions + + +#### getCustomObjectDefinitions + +- ##### What's New + - [Added] property items[]._id of schema CustomObjectEntry in response with status code 200 + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Breaking] [Deleted] property items[].id of schema CustomObjectEntry in response with status code 200 + +- ##### What's Changed + - [Changed] Path From /service/platform/content/v2.0/company/{company_id}/customobjects/definition To /service/platform/content/v1.0/company/{company_id}/metaobjects/definitions + + +#### getCustomObjectDefinitionBySlug + +- ##### What's Deprecated + - [Breaking] [Deleted] method getCustomObjectDefinitionBySlug + + + +#### updateCustomObjectDefinitionBySlug + +- ##### What's Deprecated + - [Breaking] [Deleted] method updateCustomObjectDefinitionBySlug + + + +#### deleteCustomObjectDefinitionBySlug + +- ##### What's Deprecated + - [Breaking] [Deleted] method deleteCustomObjectDefinitionBySlug + + + +#### getCustomObjectsBySlug + +- ##### What's Deprecated + - [Breaking] [Deleted] method getCustomObjectsBySlug + + + +#### createCustomObjectBySlug + +- ##### What's Deprecated + - [Breaking] [Deleted] method createCustomObjectBySlug + + + +#### getCustomObjectBySlug + +- ##### What's Deprecated + - [Breaking] [Deleted] method getCustomObjectBySlug + + + +#### deleteCustomObjectBySlug + +- ##### What's Deprecated + - [Breaking] [Deleted] method deleteCustomObjectBySlug + + + +#### updateCustomObjectBySlug + +- ##### What's Deprecated + - [Breaking] [Deleted] method updateCustomObjectBySlug + + + +#### getJobs + +- ##### What's New + - [Added] property items[]._id of schema CustomObjectJobSchema in response with status code 200 + - [Added] property items[].creator of schema CustomObjectJobSchema in response with status code 200 + - [Added] property items[].url of schema CustomObjectJobSchema in response with status code 200 + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Breaking] [Deleted] property items[].id of schema JobSchema in response with status code 200 + - [Deleted] Possible values from download,upload from property items[].action_type of schema JobSchema in response with status code 200 + - [Deleted] Value format from date-time from property items[].created_at of schema JobSchema in response with status code 200 + - [Deleted] Value format from date-time from property items[].updated_at of schema JobSchema in response with status code 200 + - [Breaking] [Deleted] property items[].application_id of schema JobSchema in response with status code 200 + + +#### importCustomObjectEntriesBySlug + +- ##### What's Deprecated + - [Breaking] [Deleted] method importCustomObjectEntriesBySlug + + + +#### exportCustomObjectEntriesBySlug + +- ##### What's Deprecated + - [Breaking] [Deleted] method exportCustomObjectEntriesBySlug + + + +#### sampleCustomObjectBulkEntryBySlug + +- ##### What's Deprecated + - [Breaking] [Deleted] method sampleCustomObjectBulkEntryBySlug + + + +#### getAppCustomFieldTypes + +- ##### What's New + - [Added] property _id of schema CustomObjectByIdSchema in response with status code 200 + - [Added] property status of schema CustomObjectByIdSchema in response with status code 200 + - [Added] property display_name of schema CustomObjectByIdSchema in response with status code 200 + - [Added] property definition of schema CustomObjectByIdSchema in response with status code 200 + - [Added] property references of schema CustomObjectByIdSchema in response with status code 200 + - [Added] property fields of schema CustomObjectByIdSchema in response with status code 200 + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Breaking] [Deleted] property metafield_types of schema MetafieldTypesSchema in response with status code 200 + + +#### getAppResources + +- ##### What's New + - [Added] Response with status 4XX + - [Added] Response with status 5XX + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 400 + + +#### getAppCustomFieldDefinitions + +- ##### What's New + - [Added] property items[]._id of schema FieldDefinitionSchema in response with status code 200 + - [Added] property items[].creator of schema FieldDefinitionSchema in response with status code 200 + - [Added] property items[].key of schema FieldDefinitionSchema in response with status code 200 + - [Added] property items[].created_by of schema FieldDefinitionSchema in response with status code 200 + - [Added] property items[].updated_by of schema FieldDefinitionSchema in response with status code 200 + - [Added] property items[].created_at of schema FieldDefinitionSchema in response with status code 200 + - [Added] property items[].updated_at of schema FieldDefinitionSchema in response with status code 200 + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Breaking] [Deleted] property items[].id of schema FieldDefinitionSchema in response with status code 200 + - [Breaking] [Deleted] property items[].slug of schema FieldDefinitionSchema in response with status code 200 + +- ##### What's Changed + - [Changed] Path From /service/platform/content/v2.0/company/{company_id}/application/{application_id}/customfields/definition To /service/platform/content/v1.0/company/{company_id}/application/{application_id}/metafields/definitions + + +#### getAppCustomFieldDefinitionByResource + +- ##### What's Deprecated + - [Breaking] [Deleted] method getAppCustomFieldDefinitionByResource + + + +#### createAppCustomFieldDefinition + +- ##### What's New + - [Added] property resource of schema CustomFieldDefinitionRequestSchema in request body + - [Added] property key of schema CustomFieldDefinitionRequestSchema in request body + - [Added] property creator of schema CustomFieldDefinitionDetailResSchema in response with status code 200 + - [Added] property key of schema CustomFieldDefinitionDetailResSchema in response with status code 200 + - [Added] property created_by of schema CustomFieldDefinitionDetailResSchema in response with status code 200 + - [Added] property updated_by of schema CustomFieldDefinitionDetailResSchema in response with status code 200 + - [Added] property _id of schema CustomFieldDefinitionDetailResSchema in response with status code 200 + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Breaking] [Deleted] property slug of schema CustomFieldDefinitionRequestSchema in request body + - [Breaking] [Deleted] property slug of schema CustomFieldDefinitionDetailResSchema in response with status code 200 + - [Breaking] [Deleted] property id of schema CustomFieldDefinitionDetailResSchema in response with status code 200 + +- ##### What's Changed + - [Changed] Path From /service/platform/content/v2.0/company/{company_id}/application/{application_id}/customfields/resource/{resource}/definition To /service/platform/content/v1.0/company/{company_id}/application/{application_id}/metafields/definitions + + +#### getAppCustomFieldDefinitionBySlug + +- ##### What's Deprecated + - [Breaking] [Deleted] method getAppCustomFieldDefinitionBySlug + + + +#### updateAppCustomFieldDefinitionBySlug + +- ##### What's Deprecated + - [Breaking] [Deleted] method updateAppCustomFieldDefinitionBySlug + + + +#### deleteAppCustomFieldDefinitionBySlug + +- ##### What's Deprecated + - [Breaking] [Deleted] method deleteAppCustomFieldDefinitionBySlug + + + +#### getAppCustomFieldsByResourceSlug + +- ##### What's Deprecated + - [Breaking] [Deleted] method getAppCustomFieldsByResourceSlug + + + +#### updateAppCustomFieldByResourceSlug + +- ##### What's Deprecated + - [Breaking] [Deleted] method updateAppCustomFieldByResourceSlug + + + +#### createAppCustomObjectDefinition + +- ##### What's New + - [Added] property field_definitions[].key of schema CustomObjectCustomFieldDefinitions in request body + - [Breaking] [Added] Type object to property field_definitions[].validations[] of schema FieldValidations in response with status code 200 + - [Added] properties field_definitions[].validations[].name, field_definitions[].validations[].type, field_definitions[].validations[].value in response with status code 200 + - [Added] property field_definitions[].creator of schema CustomObjectCustomFieldDefinitionResSchema in response with status code 200 + - [Added] property field_definitions[].key of schema CustomObjectCustomFieldDefinitionResSchema in response with status code 200 + - [Added] property field_definitions[].created_by of schema CustomObjectCustomFieldDefinitionResSchema in response with status code 200 + - [Added] property field_definitions[].metaobject_definition_id of schema CustomObjectCustomFieldDefinitionResSchema in response with status code 200 + - [Added] property field_definitions[]._id of schema CustomObjectCustomFieldDefinitionResSchema in response with status code 200 + - [Added] property _id of schema CustomObjectDefinitionSchema in response with status code 200 + - [Added] property creator of schema CustomObjectDefinitionSchema in response with status code 200 + - [Added] property created_by of schema CustomObjectDefinitionSchema in response with status code 200 + - [Added] property updated_by of schema CustomObjectDefinitionSchema in response with status code 200 + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Breaking] [Deleted] property definition_slug of schema CustomObjectDefinitionRequestSchema in request body + - [Breaking] [Deleted] property field_definitions[].slug of schema CustomObjectCustomFieldDefinitions in request body + - [Breaking] [Deleted] property id of schema CustomObjectDefinitionSlugSchema in response with status code 200 + - [Breaking] [Deleted] property definition_slug of schema CustomObjectDefinitionSlugSchema in response with status code 200 + - [Breaking] [Deleted] property field_definitions[].slug of schema CustomFieldDefinitionDetailResSchema in response with status code 200 + - [Deleted] Value format from integer from property field_definitions[].company_id of schema CustomFieldDefinitionDetailResSchema in response with status code 200 + - [Breaking] [Deleted] property field_definitions[].application_id of schema CustomFieldDefinitionDetailResSchema in response with status code 200 + - [Breaking] [Deleted] property field_definitions[].id of schema CustomFieldDefinitionDetailResSchema in response with status code 200 + +- ##### What's Changed + - [Changed] Path From /service/platform/content/v2.0/company/{company_id}/application/{application_id}/customobjects/definition To /service/platform/content/v1.0/company/{company_id}/application/{application_id}/metaobjects/definitions + + +#### getAppCustomObjectDefinitions + +- ##### What's New + - [Added] property items[]._id of schema CustomObjectEntry in response with status code 200 + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Breaking] [Deleted] property items[].id of schema CustomObjectEntry in response with status code 200 + +- ##### What's Changed + - [Changed] Path From /service/platform/content/v2.0/company/{company_id}/application/{application_id}/customobjects/definition To /service/platform/content/v1.0/company/{company_id}/application/{application_id}/metaobjects/definitions + + +#### getAppCustomObjectDefinitionBySlug + +- ##### What's Deprecated + - [Breaking] [Deleted] method getAppCustomObjectDefinitionBySlug + + + +#### updateAppCustomObjectDefinitionBySlug + +- ##### What's Deprecated + - [Breaking] [Deleted] method updateAppCustomObjectDefinitionBySlug + + + +#### deleteAppCustomObjectDefinitionBySlug + +- ##### What's Deprecated + - [Breaking] [Deleted] method deleteAppCustomObjectDefinitionBySlug + + + +#### getAppCustomObjectsBySlug + +- ##### What's Deprecated + - [Breaking] [Deleted] method getAppCustomObjectsBySlug + + + +#### createAppCustomObjectBySlug + +- ##### What's Deprecated + - [Breaking] [Deleted] method createAppCustomObjectBySlug + + + +#### getAppCustomObjectBySlug + +- ##### What's Deprecated + - [Breaking] [Deleted] method getAppCustomObjectBySlug + + + +#### deleteAppCustomObjectBySlug + +- ##### What's Deprecated + - [Breaking] [Deleted] method deleteAppCustomObjectBySlug + + + +#### updateAppCustomObjectBySlug + +- ##### What's Deprecated + - [Breaking] [Deleted] method updateAppCustomObjectBySlug + + + +#### getAppJobs + +- ##### What's New + - [Added] property items[]._id of schema CustomObjectJobSchema in response with status code 200 + - [Added] property items[].creator of schema CustomObjectJobSchema in response with status code 200 + - [Added] property items[].url of schema CustomObjectJobSchema in response with status code 200 + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Breaking] [Deleted] property items[].id of schema JobSchema in response with status code 200 + - [Deleted] Possible values from download,upload from property items[].action_type of schema JobSchema in response with status code 200 + - [Deleted] Value format from date-time from property items[].created_at of schema JobSchema in response with status code 200 + - [Deleted] Value format from date-time from property items[].updated_at of schema JobSchema in response with status code 200 + - [Breaking] [Deleted] property items[].application_id of schema JobSchema in response with status code 200 + + +#### importAppCustomObjectEntriesBySlug + +- ##### What's Deprecated + - [Breaking] [Deleted] method importAppCustomObjectEntriesBySlug + + + +#### exportAppCustomObjectEntriesBySlug + +- ##### What's Deprecated + - [Breaking] [Deleted] method exportAppCustomObjectEntriesBySlug + + + +#### sampleAppCustomObjectBulkEntryBySlug + +- ##### What's Deprecated + - [Breaking] [Deleted] method sampleAppCustomObjectBulkEntryBySlug + + + +#### getCustomFieldDefinition + +- ##### What's New + - [Added] method getCustomFieldDefinition + + + +#### updateCustomFieldDefinition + +- ##### What's New + - [Added] method updateCustomFieldDefinition + + + +#### deleteCustomFieldDefinition + +- ##### What's New + - [Added] method deleteCustomFieldDefinition + + + +#### getCustomFields + +- ##### What's New + - [Added] method getCustomFields + + + +#### getCustomFieldsByResourceId + +- ##### What's New + - [Added] method getCustomFieldsByResourceId + + + +#### createCustomFieldByResourceId + +- ##### What's New + - [Added] method createCustomFieldByResourceId + + + +#### getCustomObjectDefinition + +- ##### What's New + - [Added] method getCustomObjectDefinition + + + +#### updateCustomObjectDefinition + +- ##### What's New + - [Added] method updateCustomObjectDefinition + + + +#### deleteCustomObjectDefinition + +- ##### What's New + - [Added] method deleteCustomObjectDefinition + + + +#### getCustomObjects + +- ##### What's New + - [Added] method getCustomObjects + + + +#### createCustomObject + +- ##### What's New + - [Added] method createCustomObject + + + +#### getCustomObject + +- ##### What's New + - [Added] method getCustomObject + + + +#### deleteCustomObject + +- ##### What's New + - [Added] method deleteCustomObject + + + +#### updateCustomObject + +- ##### What's New + - [Added] method updateCustomObject + + + +#### importCustomObjectEntries + +- ##### What's New + - [Added] method importCustomObjectEntries + + + +#### exportCustomObjectEntries + +- ##### What's New + - [Added] method exportCustomObjectEntries + + + +#### sampleCustomObjectBulkEntry + +- ##### What's New + - [Added] method sampleCustomObjectBulkEntry + + + +#### getAppCustomFieldDefinition + +- ##### What's New + - [Added] method getAppCustomFieldDefinition + + + +#### updateAppCustomFieldDefinition + +- ##### What's New + - [Added] method updateAppCustomFieldDefinition + + + +#### deleteAppCustomFieldDefinition + +- ##### What's New + - [Added] method deleteAppCustomFieldDefinition + + + +#### getAppCustomFields + +- ##### What's New + - [Added] method getAppCustomFields + + + +#### getAppCustomFieldsByResourceId + +- ##### What's New + - [Added] method getAppCustomFieldsByResourceId + + + +#### createAppCustomFieldByResourceId + +- ##### What's New + - [Added] method createAppCustomFieldByResourceId + + + +#### getAppCustomObjectDefinition + +- ##### What's New + - [Added] method getAppCustomObjectDefinition + + + +#### updateAppCustomObjectDefinition + +- ##### What's New + - [Added] method updateAppCustomObjectDefinition + + + +#### deleteAppCustomObjectDefinition + +- ##### What's New + - [Added] method deleteAppCustomObjectDefinition + + + +#### getAppCustomObjects + +- ##### What's New + - [Added] method getAppCustomObjects + + + +#### createAppCustomObject + +- ##### What's New + - [Added] method createAppCustomObject + + + +#### getAppCustomObject + +- ##### What's New + - [Added] method getAppCustomObject + + + +#### deleteAppCustomObject + +- ##### What's New + - [Added] method deleteAppCustomObject + + + +#### updateAppCustomObject + +- ##### What's New + - [Added] method updateAppCustomObject + + + +#### importAppCustomObjectEntries + +- ##### What's New + - [Added] method importAppCustomObjectEntries + + + +#### exportAppCustomObjectEntries + +- ##### What's New + - [Added] method exportAppCustomObjectEntries + + + +#### sampleAppCustomObjectBulkEntry + +- ##### What's New + - [Added] method sampleAppCustomObjectBulkEntry + + + +### Discount + + + +#### getDiscounts + +- ##### What's Deprecated + - [Deleted] Possible values from app,app|brand,app|store,app|brand|store,app|brand|product,app|brand|store|product,app|brand|inventory,app|brand|store|inventory from property items[].job_type of schema DiscountJob in response with status code 200 + - [Deleted] Possible values from flat,percentage from property items[].discount_type of schema DiscountJob in response with status code 200 + - [Deleted] Value format from date-time from property items[].created_on of schema DiscountJob in response with status code 200 + - [Deleted] Value format from date-time from property items[].modified_on of schema DiscountJob in response with status code 200 + + +#### createDiscount + +- ##### What's Deprecated + - [Deleted] Possible values from app,app|brand,app|store,app|brand|store,app|brand|product,app|brand|store|product,app|brand|inventory,app|brand|store|inventory from property job_type of schema DiscountJob in response with status code 200 + - [Deleted] Possible values from flat,percentage from property discount_type of schema DiscountJob in response with status code 200 + - [Deleted] Value format from date-time from property created_on of schema DiscountJob in response with status code 200 + - [Deleted] Value format from date-time from property modified_on of schema DiscountJob in response with status code 200 + + +#### getDiscount + +- ##### What's Deprecated + - [Deleted] Possible values from app,app|brand,app|store,app|brand|store,app|brand|product,app|brand|store|product,app|brand|inventory,app|brand|store|inventory from property job_type of schema DiscountJob in response with status code 200 + - [Deleted] Possible values from flat,percentage from property discount_type of schema DiscountJob in response with status code 200 + - [Deleted] Value format from date-time from property created_on of schema DiscountJob in response with status code 200 + - [Deleted] Value format from date-time from property modified_on of schema DiscountJob in response with status code 200 + + +#### updateDiscount + +- ##### What's Deprecated + - [Deleted] Possible values from app,app|brand,app|store,app|brand|store,app|brand|product,app|brand|store|product,app|brand|inventory,app|brand|store|inventory from property job_type of schema DiscountJob in response with status code 200 + - [Deleted] Possible values from flat,percentage from property discount_type of schema DiscountJob in response with status code 200 + - [Deleted] Value format from date-time from property created_on of schema DiscountJob in response with status code 200 + - [Deleted] Value format from date-time from property modified_on of schema DiscountJob in response with status code 200 + + +#### validateDiscountFile + +- ##### What's Deprecated + - [Deleted] Possible values from app,app|brand,app|store,app|brand|store,app|brand|product,app|brand|store|product,app|brand|inventory,app|brand|store|inventory from property job_type of schema FileJobRequestSchema in request body + - [Deleted] Possible values from flat,percentage from property discount_type of schema FileJobRequestSchema in request body + - [Deleted] Possible values from app,app|brand,app|store,app|brand|store,app|brand|product,app|brand|store|product,app|brand|inventory,app|brand|store|inventory from property body.job_type of schema FileJobBody in response with status code 200 + - [Deleted] Possible values from flat,percentage from property body.discount_type of schema FileJobBody in response with status code 200 + - [Deleted] Value format from date-time from property body.created_on of schema FileJobBody in response with status code 200 + - [Deleted] Value format from date-time from property body.modified_on of schema FileJobBody in response with status code 200 + - [Deleted] Value format from date-time from property created_on of schema FileJobResponseSchema in response with status code 200 + - [Deleted] Value format from date-time from property modified_on of schema FileJobResponseSchema in response with status code 200 + + +#### downloadDiscountFile + +- ##### What's Deprecated + - [Deleted] Possible values from app,app|brand,app|store,app|brand|store,app|brand|product,app|brand|store|product,app|brand|inventory,app|brand|store|inventory from property body.job_type of schema FileJobBody in response with status code 200 + - [Deleted] Possible values from flat,percentage from property body.discount_type of schema FileJobBody in response with status code 200 + - [Deleted] Value format from date-time from property body.created_on of schema FileJobBody in response with status code 200 + - [Deleted] Value format from date-time from property body.modified_on of schema FileJobBody in response with status code 200 + - [Deleted] Value format from date-time from property created_on of schema FileJobResponseSchema in response with status code 200 + - [Deleted] Value format from date-time from property modified_on of schema FileJobResponseSchema in response with status code 200 + + +#### getValidationJob + +- ##### What's Deprecated + - [Deleted] Possible values from app,app|brand,app|store,app|brand|store,app|brand|product,app|brand|store|product,app|brand|inventory,app|brand|store|inventory from property body.job_type of schema FileJobBody in response with status code 200 + - [Deleted] Possible values from flat,percentage from property body.discount_type of schema FileJobBody in response with status code 200 + - [Deleted] Value format from date-time from property body.created_on of schema FileJobBody in response with status code 200 + - [Deleted] Value format from date-time from property body.modified_on of schema FileJobBody in response with status code 200 + - [Deleted] Value format from date-time from property created_on of schema FileJobResponseSchema in response with status code 200 + - [Deleted] Value format from date-time from property modified_on of schema FileJobResponseSchema in response with status code 200 + + +#### getDownloadJob + +- ##### What's Deprecated + - [Deleted] Possible values from app,app|brand,app|store,app|brand|store,app|brand|product,app|brand|store|product,app|brand|inventory,app|brand|store|inventory from property body.job_type of schema FileJobBody in response with status code 200 + - [Deleted] Possible values from flat,percentage from property body.discount_type of schema FileJobBody in response with status code 200 + - [Deleted] Value format from date-time from property body.created_on of schema FileJobBody in response with status code 200 + - [Deleted] Value format from date-time from property body.modified_on of schema FileJobBody in response with status code 200 + - [Deleted] Value format from date-time from property created_on of schema FileJobResponseSchema in response with status code 200 + - [Deleted] Value format from date-time from property modified_on of schema FileJobResponseSchema in response with status code 200 + + +### FileStorage + + + +#### startUpload + +- ##### What's New + - [Added] cdn made required in response with status code 200 + - [Added] property cdn of schema StartResponse in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Security in Request + +- ##### What's Changed + - [Changed] Path From /service/platform/assets/v2.0/company/{company_id}/namespaces/{namespace}/upload/start To /service/platform/assets/v1.0/company/{company_id}/namespaces/{namespace}/upload/start + + +#### completeUpload + +- ##### What's New + - [Added] cdn made required in request body + - [Added] property cdn of schema StartResponse in request body + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_on of schema FileUploadComplete in response with status code 200 + - [Deleted] Value format from date-time from property modified_on of schema FileUploadComplete in response with status code 200 + - [Breaking] [Deleted] Security in Request + +- ##### What's Changed + - [Changed] Path From /service/platform/assets/v2.0/company/{company_id}/namespaces/{namespace}/upload/complete To /service/platform/assets/v1.0/company/{company_id}/namespaces/{namespace}/upload/complete + + +#### appStartUpload + +- ##### What's New + - [Added] cdn made required in response with status code 200 + - [Added] property cdn of schema StartResponse in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Security in Request + +- ##### What's Changed + - [Changed] Path From /service/platform/assets/v2.0/company/{company_id}/application/{application_id}/namespaces/{namespace}/upload/start To /service/platform/assets/v1.0/company/{company_id}/application/{application_id}/namespaces/{namespace}/upload/start + + +#### appCompleteUpload + +- ##### What's New + - [Added] cdn made required in request body + - [Added] property cdn of schema StartResponse in request body + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_on of schema FileUploadComplete in response with status code 200 + - [Deleted] Value format from date-time from property modified_on of schema FileUploadComplete in response with status code 200 + - [Breaking] [Deleted] Security in Request + +- ##### What's Changed + - [Changed] Path From /service/platform/assets/v2.0/company/{company_id}/application/{application_id}/namespaces/{namespace}/upload/complete To /service/platform/assets/v1.0/company/{company_id}/application/{application_id}/namespaces/{namespace}/upload/complete + + +#### getSignUrls + +- ##### What's Deprecated + - [Breaking] [Deleted] Security in Request + + +#### copyFiles + +- ##### What's Deprecated + - [Breaking] [Deleted] Security in Request + + +#### appCopyFiles + +- ##### What's Deprecated + - [Breaking] [Deleted] Security in Request + + +#### browse + +- ##### What's New + - [Added] property items[].createdAt of schema in response with status code 200 + - [Added] property items[].updatedAt of schema in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property items[].created_at of schema in response with status code 200 + - [Breaking] [Deleted] property items[].updated_at of schema in response with status code 200 + - [Breaking] [Deleted] Security in Request + + +#### appbrowse + +- ##### What's New + - [Added] property items[].createdAt of schema in response with status code 200 + - [Added] property items[].updatedAt of schema in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property items[].created_at of schema in response with status code 200 + - [Breaking] [Deleted] property items[].updated_at of schema in response with status code 200 + - [Breaking] [Deleted] Security in Request + + +#### browsefiles + +- ##### What's New + - [Added] property items[].createdAt of schema in response with status code 200 + - [Added] property items[].updatedAt of schema in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property items[].created_at of schema in response with status code 200 + - [Breaking] [Deleted] property items[].updated_at of schema in response with status code 200 + - [Breaking] [Deleted] Security in Request + + +#### getPdfTypes + +- ##### What's Deprecated + - [Breaking] [Deleted] property data[].store_os of schema InvoiceTypesData in response with status code 200 + - [Breaking] [Deleted] Security in Request + +- ##### What's Changed + - [Breaking] [Changed] data[].store_os made optional in response with status code 200 + + +#### fetchPdfTypeById + +- ##### What's Deprecated + - [Breaking] [Deleted] method fetchPdfTypeById + + + +#### getDefaultPdfData + +- ##### What's New + - [Added] property data[].payload.shipment_meta of schema DummyTemplateDataPayload in response with status code 200 + - [Added] property data[].payload.order_meta of schema DummyTemplateDataPayload in response with status code 200 + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property data[].payload.current_date of schema PdfPayloadDetails in response with status code 200 + - [Deleted] Value format from date-time from property data[].payload.invoice_detail.invoice_date of schema InvoiceDetail in response with status code 200 + - [Breaking] [Deleted] Security in Request + + +#### getPdfPayloadById + +- ##### What's Deprecated + - [Breaking] [Deleted] method getPdfPayloadById + + + +#### getConfigHtmlTemplateById + +- ##### What's Deprecated + - [Breaking] [Deleted] method getConfigHtmlTemplateById + + + +#### updateHtmlTemplate + +- ##### What's New + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Breaking] [Deleted] property country_code of schema PdfConfig in request body + - [Breaking] [Deleted] property default_template of schema PdfConfig in request body + - [Breaking] [Deleted] Security in Request + + +#### deletePdfGeneratorConfig + +- ##### What's Deprecated + - [Breaking] [Deleted] method deletePdfGeneratorConfig + + + +#### getHtmlTemplateConfig + +- ##### What's Deprecated + - [Breaking] [Deleted] Security in Request + +- ##### What's Changed + - [Breaking] [Changed] operationId from getHtmlTemplateConfig to getDefaultHtmlTemplate + + +#### saveHtmlTemplate + +- ##### What's New + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Breaking] [Deleted] property country_code of schema PdfConfig in request body + - [Breaking] [Deleted] property default_template of schema PdfConfig in request body + - [Breaking] [Deleted] Security in Request + + +#### getDefaultPdfTemplate + +- ##### What's Deprecated + - [Breaking] [Deleted] Security in Request + + +#### generatePaymentReceipt + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property payload.payments[].txn_date of schema PaymentReceiptPayments in request body + - [Breaking] [Deleted] Security in Request + + +#### fetchPdfDefaultTemplateById + +- ##### What's Deprecated + - [Breaking] [Deleted] method fetchPdfDefaultTemplateById + + + +#### proxy + +- ##### What's Deprecated + - [Breaking] [Deleted] Security in Request + + +### Serviceability + + + +#### createZone + +- ##### What's New + - [Breaking] [Added] store_ids made required in request body + + +#### getAllStores + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property items[].created_on of schema ItemResult in response with status code 200 + - [Deleted] Value format from date-time from property items[].verified_on of schema ItemResult in response with status code 200 + - [Deleted] Value format from date-time from property items[].modified_on of schema ItemResult in response with status code 200 + + +#### updatePincodeAuditHistory + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property data[].updated_at of schema PincodeMopUpdateAuditHistoryResult in response with status code 200 + + +#### createCourierPartnerAccount + +- ##### What's New + - [Breaking] [Added] is_own_account made required in request body + - [Added] is_own_account made required in response with status code 200 + + +#### updateCourierPartnerAccount + +- ##### What's New + - [Added] is_own_account made required in request body + + +#### updateCourierRule + +- ##### What's New + - [Breaking] [Added] type made required in request body + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property modified_on of schema CourierPartnerRuleResult in response with status code 200 + + +#### getCourierPartnerRule + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property modified_on of schema CourierPartnerRuleResult in response with status code 200 + + +#### createCourierPartnerRule + +- ##### What's New + - [Breaking] [Added] type made required in request body + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property modified_on of schema CourierPartnerRuleResult in response with status code 200 + + +#### getCourierPartnerRules + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property items[].modified_on of schema CourierPartnerRuleResult in response with status code 200 + + +#### getCourierPartners + +- ##### What's Deprecated + - [Breaking] [Deleted] method getCourierPartners + + + +#### patchApplicationServiceabilitySelfShipment + +- ##### What's New + - [Added] Possible nullable value true to property data.self_ship of schema ApplicationSelfShipConfig in response with status code 200 + - [Added] Possible nullable value true to property data.self_ship of schema ApplicationSelfShipConfig in response with status code 400 + +- ##### What's Deprecated + - [Breaking] [Deleted] properties data.self_ship.is_active, data.self_ship.tat in response with status code 200 + - [Breaking] [Deleted] properties data.self_ship.is_active, data.self_ship.tat in response with status code 400 + +- ##### What's Changed + - [Breaking] [Changed] data.self_ship.is_active, data.self_ship.tat made optional in response with status code 200 + - [Breaking] [Changed] data.self_ship.is_active, data.self_ship.tat made optional in response with status code 400 + + +#### getApplicationServiceabilitySelfShipment + +- ##### What's New + - [Added] Possible nullable value true to property data.self_ship of schema ApplicationSelfShipConfig in response with status code 200 + - [Added] Possible nullable value true to property data.self_ship of schema ApplicationSelfShipConfig in response with status code 400 + +- ##### What's Deprecated + - [Breaking] [Deleted] properties data.self_ship.is_active, data.self_ship.tat in response with status code 200 + - [Breaking] [Deleted] properties data.self_ship.is_active, data.self_ship.tat in response with status code 400 + +- ##### What's Changed + - [Breaking] [Changed] data.self_ship.is_active, data.self_ship.tat made optional in response with status code 200 + - [Breaking] [Changed] data.self_ship.is_active, data.self_ship.tat made optional in response with status code 400 + + +#### getServiceability + +- ##### What's New + - [Added] pickup_cutoff made required in response with status code 200 + - [Added] route_code made required in response with status code 200 + + +#### updateServiceability + +- ##### What's New + - [Added] pickup_cutoff made required in request body + - [Added] route_code made required in request body + - [Added] pickup_cutoff made required in response with status code 200 + - [Added] route_code made required in response with status code 200 + + +#### createPackageMaterial + +- ##### What's Deprecated + - [Deleted] Possible values from Box,Paper Bag,Corrugated Box,Wooden Box from property package_type of schema PackageMaterial in request body + - [Deleted] Possible values from Box,Paper Bag,Corrugated Box,Wooden Box from property package_type of schema PackageMaterialResult in response with status code 201 + + +#### getPackageMaterialList + +- ##### What's Deprecated + - [Deleted] Possible values from Box,Paper Bag,Corrugated Box,Wooden Box from property items.package_type of schema PackageMaterialResult in response with status code 200 + + +#### updatePackageMaterials + +- ##### What's Deprecated + - [Deleted] Possible values from Box,Paper Bag,Corrugated Box,Wooden Box from property package_type of schema PackageMaterial in request body + - [Deleted] Possible values from Box,Paper Bag,Corrugated Box,Wooden Box from property package_type of schema PackageMaterialResult in response with status code 200 + + +#### getPackageMaterials + +- ##### What's Deprecated + - [Deleted] Possible values from Box,Paper Bag,Corrugated Box,Wooden Box from property package_type of schema PackageMaterialResult in response with status code 200 + + +#### getOptimalLocations + +- ##### What's New + - [Added] property article of schema OptimlLocationsRequestSchema in request body + - [Breaking] [Added] articles made required in request body + +- ##### What's Deprecated + - [Breaking] [Deleted] property articles of schema OptimlLocationsDetailsSchema in request body + + +### Order + + + +#### getAnnouncements + +- ##### What's New + - [Added] property status of schema AnnouncementsResponse in response with status code 200 + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property announcements[].created_at of schema AnnouncementResponseSchema in response with status code 200 + - [Breaking] [Deleted] property message of schema AnnouncementsResponseSchema in response with status code 200 + + +#### updateAddress + +- ##### What's New + - [Added] query parameter name (type: string) + + - [Added] query parameter address (type: string) + + - [Added] query parameter addressType (type: string) + + - [Added] query parameter pincode (type: string) + + - [Added] query parameter phone (type: string) + + - [Added] query parameter email (type: string) + + - [Added] query parameter landmark (type: string) + + - [Breaking] [Added] Required query parameter addressCategory (type: string) + + - [Added] query parameter city (type: string) + + - [Added] query parameter state (type: string) + + - [Added] query parameter country (type: string) + + - [Added] Response with status 4XX + +- ##### What's Deprecated + - [Breaking] [Deleted] Body content in Request + - [Breaking] [Deleted] Response with status 400 + +- ##### What's Changed + - [Breaking] [Changed] location from path to query of parameter shipmentId + - [Changed] Security in Request + - [Breaking] [Changed] Security in Request + - [Breaking] [Changed] Security in Request + - [Changed] Path From /service/platform/order-manage/v1.0/company/{company_id}/shipment/{shipment_id}/address To /service/platform/order-manage/v1.0/company/{company_id}/delight/update-address + - [Changed] http method type from put To post + + +#### updateShipmentStatus + +- ##### What's Deprecated + - [Breaking] [Deleted] property statuses[].shipments[].data_updates.products[].filters[].quantity of schema ProductsDataUpdatesFilters in request body + - [Breaking] [Deleted] property statuses[].shipments[].data_updates.order of schema DataUpdates in request body + + +#### getRoleBasedActions + +- ##### What's Deprecated + - [Deleted] Value format from int32 from property status of schema ErrorResponseSchema in response with status code 4XX + - [Breaking] [Deleted] Possible nullable value from true from property status of schema ErrorResponseSchema in response with status code 4XX + - [Breaking] [Deleted] property success of schema ErrorResponseSchema in response with status code 4XX + - [Breaking] [Deleted] Possible nullable value from true from property message of schema ErrorResponseSchema in response with status code 4XX + - [Breaking] [Deleted] property error_trace of schema ErrorResponseSchema in response with status code 4XX + - [Breaking] [Deleted] property error of schema ErrorResponseSchema in response with status code 4XX + +- ##### What's Changed + - [Breaking] [Changed] message made optional in response with status code 4XX + + +#### getShipmentHistory + +- ##### What's New + - [Added] property activity_history[].created_ts of schema HistoryDict in response with status code 200 + - [Added] property activity_history[].type of schema HistoryDict in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property activity_history[].activity_type of schema HistoryDict in response with status code 200 + - [Deleted] Type from object from property activity_history[].meta of schema HistoryMeta in response with status code 200 + - [Breaking] [Deleted] properties activity_history[].meta.store_id, activity_history[].meta.status, activity_history[].meta.status1, activity_history[].meta.call_id, activity_history[].meta.starttime, activity_history[].meta.reason, activity_history[].meta.short_link, activity_history[].meta.endtime, activity_history[].meta.store_name, activity_history[].meta.caller, activity_history[].meta.store_code, activity_history[].meta.billsec, activity_history[].meta.recordpath, activity_history[].meta.status2, activity_history[].meta.callerid, activity_history[].meta.duration, activity_history[].meta.channel_type, activity_history[].meta.activity_comment, activity_history[].meta.activity_type, activity_history[].meta.receiver, activity_history[].meta.recipient, activity_history[].meta.slug, activity_history[].meta.message, activity_history[].meta.prev_store_name, activity_history[].meta.prev_store_code, activity_history[].meta.prev_store_id, activity_history[].meta.refund_to, activity_history[].meta.refund_information in response with status code 200 + + +#### postShipmentHistory + +- ##### What's New + - [Added] property activity_history[].created_ts of schema HistoryDict in response with status code 200 + - [Added] property activity_history[].type of schema HistoryDict in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property activity_history[].activity_type of schema HistoryDict in response with status code 200 + - [Deleted] Type from object from property activity_history[].meta of schema HistoryMeta in response with status code 200 + - [Breaking] [Deleted] properties activity_history[].meta.store_id, activity_history[].meta.status, activity_history[].meta.status1, activity_history[].meta.call_id, activity_history[].meta.starttime, activity_history[].meta.reason, activity_history[].meta.short_link, activity_history[].meta.endtime, activity_history[].meta.store_name, activity_history[].meta.caller, activity_history[].meta.store_code, activity_history[].meta.billsec, activity_history[].meta.recordpath, activity_history[].meta.status2, activity_history[].meta.callerid, activity_history[].meta.duration, activity_history[].meta.channel_type, activity_history[].meta.activity_comment, activity_history[].meta.activity_type, activity_history[].meta.receiver, activity_history[].meta.recipient, activity_history[].meta.slug, activity_history[].meta.message, activity_history[].meta.prev_store_name, activity_history[].meta.prev_store_code, activity_history[].meta.prev_store_id, activity_history[].meta.refund_to, activity_history[].meta.refund_information in response with status code 200 + + +#### sendSmsNinja + +- ##### What's New + - [Breaking] [Added] Value format int32 to property bag_id of schema SendSmsPayload in request body + +- ##### What's Changed + - [Breaking] [Changed] Type from string to integer of property bag_id of schema SendSmsPayload in request body + - [Breaking] [Changed] success, message made optional in response with status code 200 + + +#### updatePackagingDimensions + +- ##### What's New + - [Added] Possible nullable value true to property error of schema UpdatePackingErrorResponse in response with status code 4XX + +- ##### What's Deprecated + - [Breaking] [Deleted] property success of schema ErrorResponseSchema in response with status code 4XX + - [Breaking] [Deleted] property message of schema ErrorResponseSchema in response with status code 4XX + - [Breaking] [Deleted] property error_trace of schema ErrorResponseSchema in response with status code 4XX + +- ##### What's Changed + - [Breaking] [Changed] Type from string to number of property dimension[].weight of schema Dimension in request body + - [Breaking] [Changed] Type from string to number of property dimension[].height of schema Dimension in request body + - [Breaking] [Changed] message made optional in response with status code 4XX + + +#### createOrder + +- ##### What's New + - [Added] properties shipments[].line_items[].charges[].amount.currency, shipments[].line_items[].charges[].amount.value in request body + - [Breaking] [Added] Possible values delivery,pickup to property shipping_info.shipping_type of schema ShippingInfo in request body + - [Added] properties shipping_info.geo_location.latitude, shipping_info.geo_location.longitude in request body + - [Added] property billing_info.shipping_type of schema ShippingInfo in request body + - [Added] property billing_info.geo_location of schema ShippingInfo in request body + - [Added] property billing_info.address_type of schema ShippingInfo in request body + - [Added] property billing_info.slot of schema ShippingInfo in request body + - [Added] properties charges[].amount.currency, charges[].amount.value in request body + - [Added] property config.integration_type of schema CreateOrderConfig in request body + - [Added] config.dp_configuration made required in request body + - [Added] property payment_info.payment_mode of schema PaymentInfo in request body + - [Breaking] [Added] Possible values platform-pos,platform-site,openapi,marketplace to property order_platform of schema CreateOrderAPI in request body + - [Added] property order_type of schema CreateOrderAPI in request body + - [Added] property fynd_order_id of schema CreateOrderAPI in request body + - [Added] property application_id of schema CreateOrderAPI in request body + - [Added] property external_shipment_id of schema CreateOrderAPI in request body + - [Breaking] [Added] shipping_info made required in request body + - [Added] property success of schema CreateOrderErrorReponse in response with status code 4XX + - [Added] property errors of schema CreateOrderErrorReponse in response with status code 4XX + - [Added] property status_code of schema CreateOrderErrorReponse in response with status code 4XX + - [Added] property fynd_order_id of schema CreateOrderErrorReponse in response with status code 4XX + - [Added] property success of schema CreateOrderErrorReponse in response with status code 5XX + - [Added] property errors of schema CreateOrderErrorReponse in response with status code 5XX + - [Added] property status_code of schema CreateOrderErrorReponse in response with status code 5XX + - [Added] property fynd_order_id of schema CreateOrderErrorReponse in response with status code 5XX + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property shipments[].processing_dates.dispatch_after_date of schema ProcessingDates in request body + - [Deleted] Value format from date-time from property shipments[].processing_dates.dispatch_by_date of schema ProcessingDates in request body + - [Deleted] Value format from date-time from property shipments[].processing_dates.confirm_by_date of schema ProcessingDates in request body + - [Deleted] Value format from date-time from property shipments[].processing_dates.pack_by_date of schema ProcessingDates in request body + - [Breaking] [Deleted] Possible values from Digital from property shipments[].order_type of schema Shipment in request body + - [Breaking] [Deleted] properties shipments[].tags[].slug, shipments[].tags[].display_text in request body + - [Breaking] [Deleted] property shipments[].system_messages of schema Shipment in request body + - [Breaking] [Deleted] property shipments[].process_after_config of schema Shipment in request body + - [Deleted] Possible values from store,delivery,billing from property shipments[].billing_address_json.address_category of schema Address in request body + - [Deleted] Value format from date-time from property shipments[].billing_address_json.created_at of schema Address in request body + - [Deleted] Value format from date-time from property shipments[].billing_address_json.updated_at of schema Address in request body + - [Deleted] Possible values from store,delivery,billing from property shipments[].delivery_address_json.address_category of schema Address in request body + - [Deleted] Value format from date-time from property shipments[].delivery_address_json.created_at of schema Address in request body + - [Deleted] Value format from date-time from property shipments[].delivery_address_json.updated_at of schema Address in request body + - [Deleted] Value format from date-time from property shipments[].created_at of schema Shipment in request body + - [Deleted] Possible values from store,delivery,billing from property shipments[].hand_over_contact_json.address_category of schema Address in request body + - [Deleted] Value format from date-time from property shipments[].hand_over_contact_json.created_at of schema Address in request body + - [Deleted] Value format from date-time from property shipments[].hand_over_contact_json.updated_at of schema Address in request body + - [Deleted] Value format from date-time from property shipments[].status.created_at of schema ShipmentStatusData in request body + - [Deleted] Value format from date-time from property shipments[].status.status_created_at of schema ShipmentStatusData in request body + - [Deleted] Value format from date-time from property external_creation_date of schema CreateOrderAPI in request body + - [Breaking] [Deleted] property config.lock_state_messages of schema CreateOrderConfig in request body + - [Breaking] [Deleted] property status of schema CreateOrderAPI in request body + - [Breaking] [Deleted] property system_messages of schema CreateOrderAPI in request body + - [Breaking] [Deleted] property request_id of schema CreateOrderErrorReponse in response with status code 4XX + - [Breaking] [Deleted] property status of schema CreateOrderErrorReponse in response with status code 4XX + - [Breaking] [Deleted] property info of schema CreateOrderErrorReponse in response with status code 4XX + - [Breaking] [Deleted] property stack_trace of schema CreateOrderErrorReponse in response with status code 4XX + - [Breaking] [Deleted] property code of schema CreateOrderErrorReponse in response with status code 4XX + - [Breaking] [Deleted] property meta of schema CreateOrderErrorReponse in response with status code 4XX + - [Breaking] [Deleted] property message of schema CreateOrderErrorReponse in response with status code 4XX + - [Breaking] [Deleted] property exception of schema CreateOrderErrorReponse in response with status code 4XX + - [Breaking] [Deleted] property request_id of schema CreateOrderErrorReponse in response with status code 5XX + - [Breaking] [Deleted] property status of schema CreateOrderErrorReponse in response with status code 5XX + - [Breaking] [Deleted] property info of schema CreateOrderErrorReponse in response with status code 5XX + - [Breaking] [Deleted] property stack_trace of schema CreateOrderErrorReponse in response with status code 5XX + - [Breaking] [Deleted] property code of schema CreateOrderErrorReponse in response with status code 5XX + - [Breaking] [Deleted] property meta of schema CreateOrderErrorReponse in response with status code 5XX + - [Breaking] [Deleted] property message of schema CreateOrderErrorReponse in response with status code 5XX + - [Breaking] [Deleted] property exception of schema CreateOrderErrorReponse in response with status code 5XX + +- ##### What's Changed + - [Breaking] [Changed] Possible values from registered to other of property shipping_info.address_type of schema ShippingInfo in request body + - [Breaking] [Changed] message, status made optional in response with status code 4XX + - [Breaking] [Changed] message, status made optional in response with status code 5XX + + +#### getChannelConfig + +- ##### What's Deprecated + - [Breaking] [Deleted] method getChannelConfig + + + +#### createChannelConfig + +- ##### What's Deprecated + - [Breaking] [Deleted] method createChannelConfig + + + +#### orderUpdate + +- ##### What's New + - [Added] property status of schema ResponseDetail in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property message[] of schema ResponseDetail in response with status code 200 + +- ##### What's Changed + - [Breaking] [Changed] Type from array to string of property message of schema ResponseDetail in response with status code 200 + + +#### checkOrderStatus + +- ##### What's New + - [Added] property order_details[].start_date of schema FyndOrderIdList in request body + - [Added] property order_details[].end_date of schema FyndOrderIdList in request body + - [Added] property order_details[].mobile of schema FyndOrderIdList in request body + - [Added] Response with status 4XX + - [Added] Response with status 5XX + +- ##### What's Deprecated + - [Breaking] [Deleted] property start_date of schema OrderStatus in request body + - [Breaking] [Deleted] property end_date of schema OrderStatus in request body + - [Breaking] [Deleted] property mobile of schema OrderStatus in request body + - [Deleted] Value format from date-time from property result[].order_details.created_at of schema OrderDetails in response with status code 200 + - [Deleted] Value format from date-time from property result[].order_details.affiliate_order_date of schema OrderDetails in response with status code 200 + - [Breaking] [Deleted] property result[].order_details.charges of schema OrderDetails in response with status code 200 + +- ##### What's Changed + - [Changed] end_date, mobile, start_date made optional in request body + + +#### fetchCreditBalanceDetail + +- ##### What's Deprecated + - [Breaking] [Deleted] method fetchCreditBalanceDetail + + + +#### fetchRefundModeConfig + +- ##### What's New + - [Added] property data[].format of schema RefundModeInfo in response with status code 200 + - [Added] property status of schema RefundModeConfigResponsePayload in response with status code 200 + - [Added] property message of schema RefundModeConfigResponsePayload in response with status code 200 + +- ##### What's Changed + - [Breaking] [Changed] Type from string to number of property customer_mobile_number of schema RefundModeConfigRequestPayload in request body + + +#### sendUserMobileOTP + +- ##### What's New + - [Added] property status of schema SendUserMobileOtpResponse in response with status code 200 + +- ##### What's Deprecated + - [Deleted] Value format from int32 from property data.mobile of schema PointBlankOtpData in response with status code 200 + +- ##### What's Changed + - [Breaking] [Changed] Type from string to number of property mobile of schema SendUserMobileOTP in request body + + +#### downloadLanesReport + +- ##### What's New + - [Added] property custom_headers[] of schema BulkReportsDownloadRequest in request body + - [Added] Possible values fetch_by_filter_type to property report_type of schema BulkReportsDownloadRequest in request body + +- ##### What's Changed + - [Breaking] [Changed] Type from string to array of property custom_headers of schema BulkReportsDownloadRequestSchema in request body + - [Breaking] [Changed] Possible values from generation_report to shipment_statuses of property report_type of schema BulkReportsDownloadRequestSchema in request body + - [Breaking] [Changed] Possible values from invoice_report to shipment_statuses_with_store_ids of property report_type of schema BulkReportsDownloadRequestSchema in request body + + +#### bulkListing + +- ##### What's New + - [Breaking] [Added] Possible values COMPLETED,FAILED,PARTIALLY COMPLETED,PROCESSING to property data[].status of schema BulkActionListingData in response with status code 200 + - [Breaking] [Added] Possible values yet_to_initiate,initiated,initiated_but_failed,success,failed to property data[].invoice_status of schema BulkActionListingData in response with status code 200 + - [Added] property data[].invoicelabel_document_type of schema BulkActionListingData in response with status code 200 + - [Added] property data[].failed_sh_count of schema BulkActionListingData in response with status code 200 + - [Added] property data[].successful_sh_count of schema BulkActionListingData in response with status code 200 + - [Added] property data[].total_count of schema BulkActionListingData in response with status code 200 + - [Added] property data[].failed_shipments of schema BulkActionListingData in response with status code 200 + - [Added] property data[].successful_invoiced_count of schema BulkActionListingData in response with status code 200 + - [Added] property data[].failed_invoiced_count of schema BulkActionListingData in response with status code 200 + - [Added] property data[].total_invoiced_count of schema BulkActionListingData in response with status code 200 + +- ##### What's Deprecated + - [Deleted] Possible values from a4,a6,pos from property data[].last_selected_invoice_label_type of schema BulkActionListingData in response with status code 200 + + +#### getManifestShipments + +- ##### What's New + - [Added] total_count made required in response with status code 200 + +- ##### What's Deprecated + - [Deleted] Value format from int32 from property status of schema ErrorResponseSchema in response with status code 4XX + - [Breaking] [Deleted] Possible nullable value from true from property status of schema ErrorResponseSchema in response with status code 4XX + - [Breaking] [Deleted] property success of schema ErrorResponseSchema in response with status code 4XX + - [Breaking] [Deleted] property message of schema ErrorResponseSchema in response with status code 4XX + - [Breaking] [Deleted] property error_trace of schema ErrorResponseSchema in response with status code 4XX + +- ##### What's Changed + - [Breaking] [Changed] Type from integer to boolean of property status of schema ErrorResponseSchema in response with status code 4XX + - [Breaking] [Changed] message made optional in response with status code 4XX + + +#### getManifests + +- ##### What's New + - [Breaking] [Added] Possible values save,process,pdf_generated,invalidate,pdf_failed,complete to property items[].status of schema Manifest in response with status code 200 + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property items[].filters.date_range.from_date of schema DateRange in response with status code 200 + - [Deleted] Value format from date-time from property items[].filters.date_range.to_date of schema DateRange in response with status code 200 + - [Deleted] Value format from date-time from property items[].filters.from_date of schema Filters in response with status code 200 + - [Deleted] Value format from date-time from property items[].filters.to_date of schema Filters in response with status code 200 + - [Deleted] Value format from date-time from property items[].meta.filters.date_range.from_date of schema DateRange in response with status code 200 + - [Deleted] Value format from date-time from property items[].meta.filters.date_range.to_date of schema DateRange in response with status code 200 + - [Deleted] Value format from date-time from property items[].meta.filters.from_date of schema Filters in response with status code 200 + - [Deleted] Value format from date-time from property items[].meta.filters.to_date of schema Filters in response with status code 200 + - [Deleted] Value format from int32 from property status of schema ErrorResponseSchema in response with status code 4XX + - [Breaking] [Deleted] Possible nullable value from true from property status of schema ErrorResponseSchema in response with status code 4XX + - [Breaking] [Deleted] property success of schema ErrorResponseSchema in response with status code 4XX + - [Breaking] [Deleted] property message of schema ErrorResponseSchema in response with status code 4XX + - [Breaking] [Deleted] property error_trace of schema ErrorResponseSchema in response with status code 4XX + - [Deleted] Value format from int32 from property status of schema ErrorResponseSchema in response with status code 5XX + - [Breaking] [Deleted] Possible nullable value from true from property status of schema ErrorResponseSchema in response with status code 5XX + - [Breaking] [Deleted] property success of schema ErrorResponseSchema in response with status code 5XX + - [Breaking] [Deleted] property message of schema ErrorResponseSchema in response with status code 5XX + - [Breaking] [Deleted] property error_trace of schema ErrorResponseSchema in response with status code 5XX + +- ##### What's Changed + - [Breaking] [Changed] Type from integer to boolean of property status of schema ErrorResponseSchema in response with status code 4XX + - [Breaking] [Changed] message made optional in response with status code 4XX + - [Breaking] [Changed] Type from integer to boolean of property status of schema ErrorResponseSchema in response with status code 5XX + - [Breaking] [Changed] message made optional in response with status code 5XX + - [Changed] Path From /service/platform/order-manage/v1.0/company/{company_id}/manifests To /service/platform/order-manage/v1.0/company/{company_id}/manifest/listing + + +#### processManifests + +- ##### What's Deprecated + - [Breaking] [Deleted] method processManifests + + + +#### getManifestDetails + +- ##### What's New + - [Added] query parameter dpIds (type: string) + + - [Added] query parameter endDate (type: string) + + - [Added] query parameter startDate (type: string) + + - [Added] query parameter pageNo (type: integer) + + - [Added] query parameter pageSize (type: integer) + + - [Breaking] [Added] Possible values save,process,pdf_generated,invalidate,pdf_failed,complete to property manifest_details[].status of schema Manifest in response with status code 200 + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property manifest_details[].filters.date_range.from_date of schema DateRange in response with status code 200 + - [Deleted] Value format from date-time from property manifest_details[].filters.date_range.to_date of schema DateRange in response with status code 200 + - [Deleted] Value format from date-time from property manifest_details[].filters.from_date of schema Filters in response with status code 200 + - [Deleted] Value format from date-time from property manifest_details[].filters.to_date of schema Filters in response with status code 200 + - [Deleted] Value format from date-time from property manifest_details[].meta.filters.date_range.from_date of schema DateRange in response with status code 200 + - [Deleted] Value format from date-time from property manifest_details[].meta.filters.date_range.to_date of schema DateRange in response with status code 200 + - [Deleted] Value format from date-time from property manifest_details[].meta.filters.from_date of schema Filters in response with status code 200 + - [Deleted] Value format from date-time from property manifest_details[].meta.filters.to_date of schema Filters in response with status code 200 + - [Deleted] Value format from int32 from property status of schema ErrorResponseSchema in response with status code 4XX + - [Breaking] [Deleted] Possible nullable value from true from property status of schema ErrorResponseSchema in response with status code 4XX + - [Breaking] [Deleted] property success of schema ErrorResponseSchema in response with status code 4XX + - [Breaking] [Deleted] property message of schema ErrorResponseSchema in response with status code 4XX + - [Breaking] [Deleted] property error_trace of schema ErrorResponseSchema in response with status code 4XX + - [Deleted] Value format from int32 from property status of schema ErrorResponseSchema in response with status code 5XX + - [Breaking] [Deleted] Possible nullable value from true from property status of schema ErrorResponseSchema in response with status code 5XX + - [Breaking] [Deleted] property success of schema ErrorResponseSchema in response with status code 5XX + - [Breaking] [Deleted] property message of schema ErrorResponseSchema in response with status code 5XX + - [Breaking] [Deleted] property error_trace of schema ErrorResponseSchema in response with status code 5XX + +- ##### What's Changed + - [Breaking] [Changed] location from path to query of parameter manifestId + - [Breaking] [Changed] Type from integer to boolean of property status of schema ErrorResponseSchema in response with status code 4XX + - [Breaking] [Changed] message made optional in response with status code 4XX + - [Breaking] [Changed] Type from integer to boolean of property status of schema ErrorResponseSchema in response with status code 5XX + - [Breaking] [Changed] message made optional in response with status code 5XX + - [Changed] Path From /service/platform/order-manage/v1.0/company/{company_id}/manifests/{manifest_id} To /service/platform/order-manage/v1.0/company/{company_id}/manifest/details + + +#### dispatchManifests + +- ##### What's Deprecated + - [Deleted] Value format from int32 from property status of schema ErrorResponseSchema in response with status code 4XX + - [Breaking] [Deleted] Possible nullable value from true from property status of schema ErrorResponseSchema in response with status code 4XX + - [Breaking] [Deleted] property success of schema ErrorResponseSchema in response with status code 4XX + - [Breaking] [Deleted] property message of schema ErrorResponseSchema in response with status code 4XX + - [Breaking] [Deleted] property error_trace of schema ErrorResponseSchema in response with status code 4XX + +- ##### What's Changed + - [Breaking] [Changed] Type from integer to boolean of property status of schema ErrorResponseSchema in response with status code 4XX + - [Breaking] [Changed] message made optional in response with status code 4XX + + +#### uploadConsents + +- ##### What's Deprecated + - [Breaking] [Deleted] Required path parameter manifestId (type: string) + + - [Deleted] Value format from int32 from property status of schema ErrorResponseSchema in response with status code 4XX + - [Breaking] [Deleted] Possible nullable value from true from property status of schema ErrorResponseSchema in response with status code 4XX + - [Breaking] [Deleted] property success of schema ErrorResponseSchema in response with status code 4XX + - [Breaking] [Deleted] property message of schema ErrorResponseSchema in response with status code 4XX + - [Breaking] [Deleted] property error_trace of schema ErrorResponseSchema in response with status code 4XX + +- ##### What's Changed + - [Breaking] [Changed] Type from integer to boolean of property status of schema ErrorResponseSchema in response with status code 4XX + - [Breaking] [Changed] message made optional in response with status code 4XX + - [Changed] Path From /service/platform/order-manage/v1.0/company/{company_id}/manifest/{manifest_id}/upload-consent To /service/platform/order-manage/v1.0/company/{company_id}/manifest/uploadConsent + + +#### getManifestfilters + +- ##### What's New + - [Breaking] [Added] Possible values multi_select,single_select to property advance_filter[].type of schema FiltersInfo in response with status code 200 + - [Breaking] [Added] Possible values multi_select,single_select to property global_filter[].type of schema FiltersInfo in response with status code 200 + + +#### eInvoiceRetry + +- ##### What's New + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Deleted] Possible values from invoice,credit_note from property shipments_data[].einvoice_type of schema EInvoiceRetryShipmentData in request body + - [Deleted] Possible values from invoice,credit_note from property response_data[].einvoice_type of schema EInvoiceResponseData in response with status code 200 + - [Deleted] Possible values from invoice,credit_note from property response_data[].einvoice_type of schema EInvoiceErrorResponseData in response with status code 400 + + +#### trackShipment + +- ##### What's New + - [Added] Possible nullable value true to property page.item_total of schema PageDetails in response with status code 200 + - [Added] property exception of schema ExceptionErrorResponse in response with status code 4XX + - [Added] property stack_trace of schema ExceptionErrorResponse in response with status code 4XX + +- ##### What's Deprecated + - [Breaking] [Deleted] property status of schema ErrorResponseSchema in response with status code 4XX + - [Breaking] [Deleted] property success of schema ErrorResponseSchema in response with status code 4XX + - [Breaking] [Deleted] Possible nullable value from true from property message of schema ErrorResponseSchema in response with status code 4XX + - [Breaking] [Deleted] property error_trace of schema ErrorResponseSchema in response with status code 4XX + - [Breaking] [Deleted] property error of schema ErrorResponseSchema in response with status code 4XX + +- ##### What's Changed + - [Breaking] [Changed] message made optional in response with status code 4XX + + +#### updateShipmentTracking + +- ##### What's New + - [Added] property exception of schema ExceptionErrorResponse in response with status code 4XX + - [Added] property stack_trace of schema ExceptionErrorResponse in response with status code 4XX + +- ##### What's Deprecated + - [Breaking] [Deleted] property status of schema ErrorResponseSchema in response with status code 4XX + - [Breaking] [Deleted] property success of schema ErrorResponseSchema in response with status code 4XX + - [Breaking] [Deleted] Possible nullable value from true from property message of schema ErrorResponseSchema in response with status code 4XX + - [Breaking] [Deleted] property error_trace of schema ErrorResponseSchema in response with status code 4XX + - [Breaking] [Deleted] property error of schema ErrorResponseSchema in response with status code 4XX + +- ##### What's Changed + - [Breaking] [Changed] message made optional in response with status code 4XX + + +#### failedOrderLogs + +- ##### What's New + - [Added] Possible nullable value true to property items.error_message of schema FailedOrdersItem in response with status code 200 + - [Added] Possible nullable value true to property items.display_message of schema FailedOrdersItem in response with status code 200 + - [Added] Possible nullable value true to property items.meta of schema FailedOrdersItem in response with status code 200 + - [Added] Possible nullable value true to property page.item_total of schema PageDetails in response with status code 200 + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property items.created_at of schema FailedOrdersItem in response with status code 200 + + +#### failedOrderLogDetails + +- ##### What's New + - [Added] Possible nullable value true to property error_trace of schema FailedOrderLogDetails in response with status code 200 + - [Added] Possible nullable value true to property exception of schema FailedOrderLogDetails in response with status code 200 + + +#### generateProcessManifest + +- ##### What's New + - [Breaking] [Added] Possible values save,process to property action of schema ProcessManifestRequest in request body + - [Breaking] [Added] action, unique_id, filters made required in request body + - [Breaking] [Added] Possible values save,process to property items.action of schema ManifestItems in response with status code 200 + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property filters.date_range.from_date of schema DateRange in request body + - [Deleted] Value format from date-time from property filters.date_range.to_date of schema DateRange in request body + - [Deleted] Value format from date-time from property filters.from_date of schema Filters in request body + - [Deleted] Value format from date-time from property filters.to_date of schema Filters in request body + - [Deleted] Value format from date-time from property items.filters.date_range.from_date of schema DateRange in response with status code 200 + - [Deleted] Value format from date-time from property items.filters.date_range.to_date of schema DateRange in response with status code 200 + - [Deleted] Value format from date-time from property items.filters.from_date of schema Filters in response with status code 200 + - [Deleted] Value format from date-time from property items.filters.to_date of schema Filters in response with status code 200 + + +#### getRules + +- ##### What's Deprecated + - [Breaking] [Deleted] method getRules + + + +#### updatePaymentInfo + +- ##### What's Deprecated + - [Breaking] [Deleted] method updatePaymentInfo + + + +#### getShipmentBagReasons + +- ##### What's Deprecated + - [Breaking] [Deleted] property rule_id of schema ShipmentBagReasons in response with status code 200 + + +#### getShipments + +- ##### What's New + - [Breaking] [Deleted] query parameter groupEntity (type: string), + [Added] query parameter enforceDateFilter (type: boolean) + - [Added] Possible nullable value true to property items[].shipment_status.status of schema ShipmentStatus in response with status code 200 + - [Added] property items[].bags[].article.a_set of schema Article in response with status code 200 + - [Added] Possible nullable value true to property items[].total_bags of schema ShipmentItem in response with status code 200 + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property items[].order_date of schema ShipmentItem in response with status code 200 + - [Deleted] Value format from date-time from property items[].shipment_status.created_at of schema ShipmentStatus in response with status code 200 + - [Deleted] Value format from date-time from property items[].shipment_status.status_created_at of schema ShipmentStatus in response with status code 200 + - [Deleted] Possible values from store,delivery,billing from property items[].delivery_address.address_category of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property items[].delivery_address.created_at of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property items[].delivery_address.updated_at of schema Address in response with status code 200 + - [Breaking] [Deleted] property items[].billing_address of schema ShipmentItem in response with status code 200 + - [Breaking] [Deleted] property items[].affiliate_details of schema ShipmentItem in response with status code 200 + - [Breaking] [Deleted] property items[].is_active of schema ShipmentItem in response with status code 200 + - [Breaking] [Deleted] property items[].forward_end_shipment_id of schema ShipmentItem in response with status code 200 + - [Deleted] Value format from date-time from property items[].status_created_at of schema ShipmentItem in response with status code 200 + - [Deleted] Possible values from forward_standard from property items[].bags[].bag_type of schema BagUnit in response with status code 200 + - [Deleted] Value format from date-time from property items[].bags[].bag_expiry_date of schema BagUnit in response with status code 200 + - [Deleted] Possible values from operational,financial,logistics from property items[].bags[].bag_status[].state_type of schema BagStatusHistory in response with status code 200 + - [Deleted] Value format from date-time from property items[].bags[].bag_status[].created_at of schema BagStatusHistory in response with status code 200 + - [Deleted] Value format from date-time from property items[].bags[].bag_status[].updated_at of schema BagStatusHistory in response with status code 200 + - [Deleted] Possible values from operational,financial,logistics from property items[].bags[].bag_status[].bag_state_mapper.state_type of schema BagStateMapper in response with status code 200 + - [Deleted] Possible values from return,forward from property items[].bags[].bag_status[].bag_state_mapper.journey_type of schema BagStateMapper in response with status code 200 + - [Deleted] Possible values from operational,financial,logistics from property items[].bags[].current_operational_status.state_type of schema BagStatusHistory in response with status code 200 + - [Deleted] Value format from date-time from property items[].bags[].current_operational_status.created_at of schema BagStatusHistory in response with status code 200 + - [Deleted] Value format from date-time from property items[].bags[].current_operational_status.updated_at of schema BagStatusHistory in response with status code 200 + - [Deleted] Possible values from operational,financial,logistics from property items[].bags[].current_operational_status.bag_state_mapper.state_type of schema BagStateMapper in response with status code 200 + - [Deleted] Possible values from return,forward from property items[].bags[].current_operational_status.bag_state_mapper.journey_type of schema BagStateMapper in response with status code 200 + - [Breaking] [Deleted] property items[].bags[].article.set of schema Article in response with status code 200 + - [Deleted] Value format from date-time from property items[].bags[].brand.created_on of schema ShipmentListingBrand in response with status code 200 + - [Deleted] Value format from date-time from property items[].bags[].affiliate_bag_details.affiliate_meta.due_date of schema AffiliateMeta in response with status code 200 + - [Deleted] Value format from date-time from property items[].bags[].item.last_updated_at of schema PlatformItem in response with status code 200 + - [Breaking] [Deleted] property items[].bags[].ordering_currency_prices of schema BagUnit in response with status code 200 + - [Deleted] Value format from date-time from property items[].bags[].dates.delivery_date of schema Dates in response with status code 200 + - [Deleted] Possible values from operational,financial,logistics from property items[].bags[].current_status.state_type of schema BagStatusHistory in response with status code 200 + - [Deleted] Value format from date-time from property items[].bags[].current_status.created_at of schema BagStatusHistory in response with status code 200 + - [Deleted] Value format from date-time from property items[].bags[].current_status.updated_at of schema BagStatusHistory in response with status code 200 + - [Deleted] Possible values from operational,financial,logistics from property items[].bags[].current_status.bag_state_mapper.state_type of schema BagStateMapper in response with status code 200 + - [Deleted] Possible values from return,forward from property items[].bags[].current_status.bag_state_mapper.journey_type of schema BagStateMapper in response with status code 200 + - [Deleted] Possible values from bag from property items[].bags[].entity_type of schema BagUnit in response with status code 200 + - [Deleted] Possible values from high_street,mall,store,warehouse from property items[].fulfilling_store.location_type of schema ShipmentItemFulFillingStore in response with status code 200 + - [Breaking] [Deleted] property items[].ordering_currency_prices of schema ShipmentItem in response with status code 200 + - [Deleted] Value format from date-time from property items[].shipment_created_at of schema ShipmentItem in response with status code 200 + - [Breaking] [Deleted] property items[].logistics_meta of schema ShipmentItem in response with status code 200 + + +#### getShipmentById + +- ##### What's New + - [Added] properties shipments[].delivery_details.phone, shipments[].delivery_details.pincode, shipments[].delivery_details.address, shipments[].delivery_details.area, shipments[].delivery_details.address_type, shipments[].delivery_details.country, shipments[].delivery_details.email, shipments[].delivery_details.address1, shipments[].delivery_details.landmark, shipments[].delivery_details.state, shipments[].delivery_details.name, shipments[].delivery_details.city, shipments[].delivery_details.state_code, shipments[].delivery_details.country_iso_code, shipments[].delivery_details.country_phone_code, shipments[].delivery_details.display_address in response with status code 200 + - [Added] shipments[].delivery_details.address, shipments[].delivery_details.city, shipments[].delivery_details.country, shipments[].delivery_details.name, shipments[].delivery_details.phone, shipments[].delivery_details.pincode, shipments[].delivery_details.state made required in response with status code 200 + - [Added] properties shipments[].billing_details.phone, shipments[].billing_details.pincode, shipments[].billing_details.address, shipments[].billing_details.area, shipments[].billing_details.address_type, shipments[].billing_details.country, shipments[].billing_details.email, shipments[].billing_details.address1, shipments[].billing_details.landmark, shipments[].billing_details.state, shipments[].billing_details.name, shipments[].billing_details.city, shipments[].billing_details.state_code, shipments[].billing_details.country_iso_code, shipments[].billing_details.country_phone_code, shipments[].billing_details.display_address in response with status code 200 + - [Added] shipments[].billing_details.address, shipments[].billing_details.city, shipments[].billing_details.country, shipments[].billing_details.name, shipments[].billing_details.phone, shipments[].billing_details.pincode, shipments[].billing_details.state made required in response with status code 200 + - [Added] Possible nullable value true to property shipments[].affiliate_details.shipment_meta.b2b_buyer_details.address of schema BuyerDetails in response with status code 200 + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property shipments[].picked_date of schema PlatformShipment in response with status code 200 + - [Deleted] Value format from date-time from property shipments[].invoice.updated_date of schema InvoiceInfo in response with status code 200 + - [Deleted] Value format from date-time from property shipments[].order_status.order_details.created_at of schema OrderDetails in response with status code 200 + - [Deleted] Value format from date-time from property shipments[].order_status.order_details.affiliate_order_date of schema OrderDetails in response with status code 200 + - [Breaking] [Deleted] property shipments[].order_status.order_details.charges of schema OrderDetails in response with status code 200 + - [Deleted] Value format from date-time from property shipments[].order.order_date of schema OrderDetailsData in response with status code 200 + - [Deleted] Value format from date-time from property shipments[].affiliate_details.shipment_meta.estimated_delivery_date of schema ShipmentMeta in response with status code 200 + - [Deleted] Value format from date-time from property shipments[].affiliate_details.shipment_meta.due_date of schema ShipmentMeta in response with status code 200 + - [Deleted] Value format from date-time from property shipments[].affiliate_details.shipment_meta.store_invoice_updated_date of schema ShipmentMeta in response with status code 200 + - [Deleted] Possible values from bag,shipments from property shipments[].affiliate_details.shipment_meta.shipment_tags[].entity_type of schema ShipmentTags in response with status code 200 + - [Deleted] Possible values from HomeDelivery,PickAtStore,Digital from property shipments[].affiliate_details.shipment_meta.order_type of schema ShipmentMeta in response with status code 200 + - [Deleted] Value format from date-time from property shipments[].affiliate_details.affiliate_meta.due_date of schema AffiliateMeta in response with status code 200 + - [Deleted] Possible values from fynd,external from property shipments[].affiliate_details.pdf_links.invoice_type of schema PDFLinks in response with status code 200 + - [Deleted] Possible values from fynd,external,parent_child from property shipments[].affiliate_details.pdf_links.label_type of schema PDFLinks in response with status code 200 + - [Breaking] [Deleted] property shipments[].affiliate_details.config.app of schema AffiliateConfig in response with status code 200 + - [Breaking] [Deleted] property shipments[].affiliate_details.config.inventory of schema AffiliateConfig in response with status code 200 + - [Deleted] Possible values from operational,financial,logistics from property shipments[].bag_status_history[].state_type of schema BagStatusHistory in response with status code 200 + - [Deleted] Value format from date-time from property shipments[].bag_status_history[].created_at of schema BagStatusHistory in response with status code 200 + - [Deleted] Value format from date-time from property shipments[].bag_status_history[].updated_at of schema BagStatusHistory in response with status code 200 + - [Deleted] Possible values from operational,financial,logistics from property shipments[].bag_status_history[].bag_state_mapper.state_type of schema BagStateMapper in response with status code 200 + - [Deleted] Possible values from return,forward from property shipments[].bag_status_history[].bag_state_mapper.journey_type of schema BagStateMapper in response with status code 200 + - [Deleted] Possible values from operational,financial,logistics from property shipments[].bags[].bag_status[].state_type of schema BagStatusHistory in response with status code 200 + - [Deleted] Value format from date-time from property shipments[].bags[].bag_status[].created_at of schema BagStatusHistory in response with status code 200 + - [Deleted] Value format from date-time from property shipments[].bags[].bag_status[].updated_at of schema BagStatusHistory in response with status code 200 + - [Deleted] Possible values from operational,financial,logistics from property shipments[].bags[].bag_status[].bag_state_mapper.state_type of schema BagStateMapper in response with status code 200 + - [Deleted] Possible values from return,forward from property shipments[].bags[].bag_status[].bag_state_mapper.journey_type of schema BagStateMapper in response with status code 200 + - [Deleted] Possible values from store,delivery,billing from property shipments[].bags[].delivery_address.address_category of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property shipments[].bags[].delivery_address.created_at of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property shipments[].bags[].delivery_address.updated_at of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property shipments[].bags[].brand.created_on of schema OrderBrandName in response with status code 200 + - [Deleted] Value format from date-time from property shipments[].bags[].brand.modified_on of schema OrderBrandName in response with status code 200 + - [Deleted] Value format from date-time from property shipments[].bags[].affiliate_bag_details.affiliate_meta.due_date of schema AffiliateMeta in response with status code 200 + - [Deleted] Value format from date-time from property shipments[].bags[].item.last_updated_at of schema PlatformItem in response with status code 200 + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items from property shipments[].bags[].applied_promos[].promotion_type of schema AppliedPromos in response with status code 200 + - [Breaking] [Deleted] property shipments[].bags[].applied_promos[].applied_free_articles of schema AppliedPromos in response with status code 200 + - [Breaking] [Deleted] property shipments[].bags[].charges of schema OrderBags in response with status code 200 + - [Breaking] [Deleted] property shipments[].bags[].ordering_currency_prices of schema OrderBags in response with status code 200 + - [Deleted] Possible values from operational,financial,logistics from property shipments[].bags[].current_status.state_type of schema CurrentStatus in response with status code 200 + - [Deleted] Possible values from operational,financial,logistics from property shipments[].bags[].current_status.bag_state_mapper.state_type of schema BagStateMapper in response with status code 200 + - [Deleted] Possible values from return,forward from property shipments[].bags[].current_status.bag_state_mapper.journey_type of schema BagStateMapper in response with status code 200 + - [Deleted] Possible values from bag,shipments from property shipments[].bags[].entity_type of schema OrderBags in response with status code 200 + - [Deleted] Possible values from return,forward from property shipments[].journey_type of schema PlatformShipment in response with status code 200 + - [Breaking] [Deleted] property shipments[].charges of schema PlatformShipment in response with status code 200 + - [Breaking] [Deleted] property shipments[].ordering_currency_prices of schema PlatformShipment in response with status code 200 + - [Deleted] Value format from date-time from property shipments[].status.created_at of schema ShipmentStatusData in response with status code 200 + - [Deleted] Value format from date-time from property shipments[].status.status_created_at of schema ShipmentStatusData in response with status code 200 + - [Deleted] Value format from date-time from property shipments[].shipment_created_at of schema PlatformShipment in response with status code 200 + - [Deleted] Possible values from store,delivery,billing from property shipments[].rto_address.address_category of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property shipments[].rto_address.created_at of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property shipments[].rto_address.updated_at of schema Address in response with status code 200 + - [Breaking] [Deleted] property shipments[].forward_end_shipment_id of schema PlatformShipment in response with status code 200 + - [Breaking] [Deleted] property shipments[].logistics_meta of schema PlatformShipment in response with status code 200 + + +#### getOrderById + +- ##### What's New + - [Added] properties shipments[].delivery_details.phone, shipments[].delivery_details.pincode, shipments[].delivery_details.address, shipments[].delivery_details.area, shipments[].delivery_details.address_type, shipments[].delivery_details.country, shipments[].delivery_details.email, shipments[].delivery_details.address1, shipments[].delivery_details.landmark, shipments[].delivery_details.state, shipments[].delivery_details.name, shipments[].delivery_details.city, shipments[].delivery_details.state_code, shipments[].delivery_details.country_iso_code, shipments[].delivery_details.country_phone_code, shipments[].delivery_details.display_address in response with status code 200 + - [Added] shipments[].delivery_details.address, shipments[].delivery_details.city, shipments[].delivery_details.country, shipments[].delivery_details.name, shipments[].delivery_details.phone, shipments[].delivery_details.pincode, shipments[].delivery_details.state made required in response with status code 200 + - [Added] properties shipments[].billing_details.phone, shipments[].billing_details.pincode, shipments[].billing_details.address, shipments[].billing_details.area, shipments[].billing_details.address_type, shipments[].billing_details.country, shipments[].billing_details.email, shipments[].billing_details.address1, shipments[].billing_details.landmark, shipments[].billing_details.state, shipments[].billing_details.name, shipments[].billing_details.city, shipments[].billing_details.state_code, shipments[].billing_details.country_iso_code, shipments[].billing_details.country_phone_code, shipments[].billing_details.display_address in response with status code 200 + - [Added] shipments[].billing_details.address, shipments[].billing_details.city, shipments[].billing_details.country, shipments[].billing_details.name, shipments[].billing_details.phone, shipments[].billing_details.pincode, shipments[].billing_details.state made required in response with status code 200 + - [Added] Possible nullable value true to property shipments[].affiliate_details.shipment_meta.b2b_buyer_details.address of schema BuyerDetails in response with status code 200 + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property order.order_date of schema OrderData in response with status code 200 + - [Breaking] [Deleted] property order.charges of schema OrderData in response with status code 200 + - [Breaking] [Deleted] property order.ordering_currency_prices of schema OrderData in response with status code 200 + - [Deleted] Value format from date-time from property shipments[].picked_date of schema PlatformShipment in response with status code 200 + - [Deleted] Value format from date-time from property shipments[].invoice.updated_date of schema InvoiceInfo in response with status code 200 + - [Deleted] Value format from date-time from property shipments[].order_status.order_details.created_at of schema OrderDetails in response with status code 200 + - [Deleted] Value format from date-time from property shipments[].order_status.order_details.affiliate_order_date of schema OrderDetails in response with status code 200 + - [Breaking] [Deleted] property shipments[].order_status.order_details.charges of schema OrderDetails in response with status code 200 + - [Deleted] Value format from date-time from property shipments[].order.order_date of schema OrderDetailsData in response with status code 200 + - [Deleted] Value format from date-time from property shipments[].affiliate_details.shipment_meta.estimated_delivery_date of schema ShipmentMeta in response with status code 200 + - [Deleted] Value format from date-time from property shipments[].affiliate_details.shipment_meta.due_date of schema ShipmentMeta in response with status code 200 + - [Deleted] Value format from date-time from property shipments[].affiliate_details.shipment_meta.store_invoice_updated_date of schema ShipmentMeta in response with status code 200 + - [Deleted] Possible values from bag,shipments from property shipments[].affiliate_details.shipment_meta.shipment_tags[].entity_type of schema ShipmentTags in response with status code 200 + - [Deleted] Possible values from HomeDelivery,PickAtStore,Digital from property shipments[].affiliate_details.shipment_meta.order_type of schema ShipmentMeta in response with status code 200 + - [Deleted] Value format from date-time from property shipments[].affiliate_details.affiliate_meta.due_date of schema AffiliateMeta in response with status code 200 + - [Deleted] Possible values from fynd,external from property shipments[].affiliate_details.pdf_links.invoice_type of schema PDFLinks in response with status code 200 + - [Deleted] Possible values from fynd,external,parent_child from property shipments[].affiliate_details.pdf_links.label_type of schema PDFLinks in response with status code 200 + - [Breaking] [Deleted] property shipments[].affiliate_details.config.app of schema AffiliateConfig in response with status code 200 + - [Breaking] [Deleted] property shipments[].affiliate_details.config.inventory of schema AffiliateConfig in response with status code 200 + - [Deleted] Possible values from operational,financial,logistics from property shipments[].bag_status_history[].state_type of schema BagStatusHistory in response with status code 200 + - [Deleted] Value format from date-time from property shipments[].bag_status_history[].created_at of schema BagStatusHistory in response with status code 200 + - [Deleted] Value format from date-time from property shipments[].bag_status_history[].updated_at of schema BagStatusHistory in response with status code 200 + - [Deleted] Possible values from operational,financial,logistics from property shipments[].bag_status_history[].bag_state_mapper.state_type of schema BagStateMapper in response with status code 200 + - [Deleted] Possible values from return,forward from property shipments[].bag_status_history[].bag_state_mapper.journey_type of schema BagStateMapper in response with status code 200 + - [Deleted] Possible values from operational,financial,logistics from property shipments[].bags[].bag_status[].state_type of schema BagStatusHistory in response with status code 200 + - [Deleted] Value format from date-time from property shipments[].bags[].bag_status[].created_at of schema BagStatusHistory in response with status code 200 + - [Deleted] Value format from date-time from property shipments[].bags[].bag_status[].updated_at of schema BagStatusHistory in response with status code 200 + - [Deleted] Possible values from operational,financial,logistics from property shipments[].bags[].bag_status[].bag_state_mapper.state_type of schema BagStateMapper in response with status code 200 + - [Deleted] Possible values from return,forward from property shipments[].bags[].bag_status[].bag_state_mapper.journey_type of schema BagStateMapper in response with status code 200 + - [Deleted] Possible values from store,delivery,billing from property shipments[].bags[].delivery_address.address_category of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property shipments[].bags[].delivery_address.created_at of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property shipments[].bags[].delivery_address.updated_at of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property shipments[].bags[].brand.created_on of schema OrderBrandName in response with status code 200 + - [Deleted] Value format from date-time from property shipments[].bags[].brand.modified_on of schema OrderBrandName in response with status code 200 + - [Deleted] Value format from date-time from property shipments[].bags[].affiliate_bag_details.affiliate_meta.due_date of schema AffiliateMeta in response with status code 200 + - [Deleted] Value format from date-time from property shipments[].bags[].item.last_updated_at of schema PlatformItem in response with status code 200 + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items from property shipments[].bags[].applied_promos[].promotion_type of schema AppliedPromos in response with status code 200 + - [Breaking] [Deleted] property shipments[].bags[].applied_promos[].applied_free_articles of schema AppliedPromos in response with status code 200 + - [Breaking] [Deleted] property shipments[].bags[].charges of schema OrderBags in response with status code 200 + - [Breaking] [Deleted] property shipments[].bags[].ordering_currency_prices of schema OrderBags in response with status code 200 + - [Deleted] Possible values from operational,financial,logistics from property shipments[].bags[].current_status.state_type of schema CurrentStatus in response with status code 200 + - [Deleted] Possible values from operational,financial,logistics from property shipments[].bags[].current_status.bag_state_mapper.state_type of schema BagStateMapper in response with status code 200 + - [Deleted] Possible values from return,forward from property shipments[].bags[].current_status.bag_state_mapper.journey_type of schema BagStateMapper in response with status code 200 + - [Deleted] Possible values from bag,shipments from property shipments[].bags[].entity_type of schema OrderBags in response with status code 200 + - [Deleted] Possible values from return,forward from property shipments[].journey_type of schema PlatformShipment in response with status code 200 + - [Breaking] [Deleted] property shipments[].charges of schema PlatformShipment in response with status code 200 + - [Breaking] [Deleted] property shipments[].ordering_currency_prices of schema PlatformShipment in response with status code 200 + - [Deleted] Value format from date-time from property shipments[].status.created_at of schema ShipmentStatusData in response with status code 200 + - [Deleted] Value format from date-time from property shipments[].status.status_created_at of schema ShipmentStatusData in response with status code 200 + - [Deleted] Value format from date-time from property shipments[].shipment_created_at of schema PlatformShipment in response with status code 200 + - [Deleted] Possible values from store,delivery,billing from property shipments[].rto_address.address_category of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property shipments[].rto_address.created_at of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property shipments[].rto_address.updated_at of schema Address in response with status code 200 + - [Breaking] [Deleted] property shipments[].forward_end_shipment_id of schema PlatformShipment in response with status code 200 + - [Breaking] [Deleted] property shipments[].logistics_meta of schema PlatformShipment in response with status code 200 + + +#### getOrders + +- ##### What's New + - [Breaking] [Deleted] query parameter groupEntity (type: string), + [Added] query parameter enforceDateFilter (type: boolean) + - [Added] properties items[].shipments[].delivery_details.phone, items[].shipments[].delivery_details.pincode, items[].shipments[].delivery_details.address, items[].shipments[].delivery_details.area, items[].shipments[].delivery_details.address_type, items[].shipments[].delivery_details.country, items[].shipments[].delivery_details.email, items[].shipments[].delivery_details.address1, items[].shipments[].delivery_details.landmark, items[].shipments[].delivery_details.state, items[].shipments[].delivery_details.name, items[].shipments[].delivery_details.city, items[].shipments[].delivery_details.state_code, items[].shipments[].delivery_details.country_iso_code, items[].shipments[].delivery_details.country_phone_code, items[].shipments[].delivery_details.display_address in response with status code 200 + - [Added] items[].shipments[].delivery_details.address, items[].shipments[].delivery_details.city, items[].shipments[].delivery_details.country, items[].shipments[].delivery_details.name, items[].shipments[].delivery_details.phone, items[].shipments[].delivery_details.pincode, items[].shipments[].delivery_details.state made required in response with status code 200 + - [Added] properties items[].shipments[].billing_details.phone, items[].shipments[].billing_details.pincode, items[].shipments[].billing_details.address, items[].shipments[].billing_details.area, items[].shipments[].billing_details.address_type, items[].shipments[].billing_details.country, items[].shipments[].billing_details.email, items[].shipments[].billing_details.address1, items[].shipments[].billing_details.landmark, items[].shipments[].billing_details.state, items[].shipments[].billing_details.name, items[].shipments[].billing_details.city, items[].shipments[].billing_details.state_code, items[].shipments[].billing_details.country_iso_code, items[].shipments[].billing_details.country_phone_code, items[].shipments[].billing_details.display_address in response with status code 200 + - [Added] items[].shipments[].billing_details.address, items[].shipments[].billing_details.city, items[].shipments[].billing_details.country, items[].shipments[].billing_details.name, items[].shipments[].billing_details.phone, items[].shipments[].billing_details.pincode, items[].shipments[].billing_details.state made required in response with status code 200 + - [Added] Possible nullable value true to property items[].shipments[].affiliate_details.shipment_meta.b2b_buyer_details.address of schema BuyerDetails in response with status code 200 + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property items[].shipments[].picked_date of schema PlatformShipment in response with status code 200 + - [Deleted] Value format from date-time from property items[].shipments[].invoice.updated_date of schema InvoiceInfo in response with status code 200 + - [Deleted] Value format from date-time from property items[].shipments[].order_status.order_details.created_at of schema OrderDetails in response with status code 200 + - [Deleted] Value format from date-time from property items[].shipments[].order_status.order_details.affiliate_order_date of schema OrderDetails in response with status code 200 + - [Breaking] [Deleted] property items[].shipments[].order_status.order_details.charges of schema OrderDetails in response with status code 200 + - [Deleted] Value format from date-time from property items[].shipments[].order.order_date of schema OrderDetailsData in response with status code 200 + - [Deleted] Value format from date-time from property items[].shipments[].affiliate_details.shipment_meta.estimated_delivery_date of schema ShipmentMeta in response with status code 200 + - [Deleted] Value format from date-time from property items[].shipments[].affiliate_details.shipment_meta.due_date of schema ShipmentMeta in response with status code 200 + - [Deleted] Value format from date-time from property items[].shipments[].affiliate_details.shipment_meta.store_invoice_updated_date of schema ShipmentMeta in response with status code 200 + - [Deleted] Possible values from bag,shipments from property items[].shipments[].affiliate_details.shipment_meta.shipment_tags[].entity_type of schema ShipmentTags in response with status code 200 + - [Deleted] Possible values from HomeDelivery,PickAtStore,Digital from property items[].shipments[].affiliate_details.shipment_meta.order_type of schema ShipmentMeta in response with status code 200 + - [Deleted] Value format from date-time from property items[].shipments[].affiliate_details.affiliate_meta.due_date of schema AffiliateMeta in response with status code 200 + - [Deleted] Possible values from fynd,external from property items[].shipments[].affiliate_details.pdf_links.invoice_type of schema PDFLinks in response with status code 200 + - [Deleted] Possible values from fynd,external,parent_child from property items[].shipments[].affiliate_details.pdf_links.label_type of schema PDFLinks in response with status code 200 + - [Breaking] [Deleted] property items[].shipments[].affiliate_details.config.app of schema AffiliateConfig in response with status code 200 + - [Breaking] [Deleted] property items[].shipments[].affiliate_details.config.inventory of schema AffiliateConfig in response with status code 200 + - [Deleted] Possible values from operational,financial,logistics from property items[].shipments[].bag_status_history[].state_type of schema BagStatusHistory in response with status code 200 + - [Deleted] Value format from date-time from property items[].shipments[].bag_status_history[].created_at of schema BagStatusHistory in response with status code 200 + - [Deleted] Value format from date-time from property items[].shipments[].bag_status_history[].updated_at of schema BagStatusHistory in response with status code 200 + - [Deleted] Possible values from operational,financial,logistics from property items[].shipments[].bag_status_history[].bag_state_mapper.state_type of schema BagStateMapper in response with status code 200 + - [Deleted] Possible values from return,forward from property items[].shipments[].bag_status_history[].bag_state_mapper.journey_type of schema BagStateMapper in response with status code 200 + - [Deleted] Possible values from operational,financial,logistics from property items[].shipments[].bags[].bag_status[].state_type of schema BagStatusHistory in response with status code 200 + - [Deleted] Value format from date-time from property items[].shipments[].bags[].bag_status[].created_at of schema BagStatusHistory in response with status code 200 + - [Deleted] Value format from date-time from property items[].shipments[].bags[].bag_status[].updated_at of schema BagStatusHistory in response with status code 200 + - [Deleted] Possible values from operational,financial,logistics from property items[].shipments[].bags[].bag_status[].bag_state_mapper.state_type of schema BagStateMapper in response with status code 200 + - [Deleted] Possible values from return,forward from property items[].shipments[].bags[].bag_status[].bag_state_mapper.journey_type of schema BagStateMapper in response with status code 200 + - [Deleted] Possible values from store,delivery,billing from property items[].shipments[].bags[].delivery_address.address_category of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property items[].shipments[].bags[].delivery_address.created_at of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property items[].shipments[].bags[].delivery_address.updated_at of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property items[].shipments[].bags[].brand.created_on of schema OrderBrandName in response with status code 200 + - [Deleted] Value format from date-time from property items[].shipments[].bags[].brand.modified_on of schema OrderBrandName in response with status code 200 + - [Deleted] Value format from date-time from property items[].shipments[].bags[].affiliate_bag_details.affiliate_meta.due_date of schema AffiliateMeta in response with status code 200 + - [Deleted] Value format from date-time from property items[].shipments[].bags[].item.last_updated_at of schema PlatformItem in response with status code 200 + - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items from property items[].shipments[].bags[].applied_promos[].promotion_type of schema AppliedPromos in response with status code 200 + - [Breaking] [Deleted] property items[].shipments[].bags[].applied_promos[].applied_free_articles of schema AppliedPromos in response with status code 200 + - [Breaking] [Deleted] property items[].shipments[].bags[].charges of schema OrderBags in response with status code 200 + - [Breaking] [Deleted] property items[].shipments[].bags[].ordering_currency_prices of schema OrderBags in response with status code 200 + - [Deleted] Possible values from operational,financial,logistics from property items[].shipments[].bags[].current_status.state_type of schema CurrentStatus in response with status code 200 + - [Deleted] Possible values from operational,financial,logistics from property items[].shipments[].bags[].current_status.bag_state_mapper.state_type of schema BagStateMapper in response with status code 200 + - [Deleted] Possible values from return,forward from property items[].shipments[].bags[].current_status.bag_state_mapper.journey_type of schema BagStateMapper in response with status code 200 + - [Deleted] Possible values from bag,shipments from property items[].shipments[].bags[].entity_type of schema OrderBags in response with status code 200 + - [Deleted] Possible values from return,forward from property items[].shipments[].journey_type of schema PlatformShipment in response with status code 200 + - [Breaking] [Deleted] property items[].shipments[].charges of schema PlatformShipment in response with status code 200 + - [Breaking] [Deleted] property items[].shipments[].ordering_currency_prices of schema PlatformShipment in response with status code 200 + - [Deleted] Value format from date-time from property items[].shipments[].status.created_at of schema ShipmentStatusData in response with status code 200 + - [Deleted] Value format from date-time from property items[].shipments[].status.status_created_at of schema ShipmentStatusData in response with status code 200 + - [Deleted] Value format from date-time from property items[].shipments[].shipment_created_at of schema PlatformShipment in response with status code 200 + - [Deleted] Possible values from store,delivery,billing from property items[].shipments[].rto_address.address_category of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property items[].shipments[].rto_address.created_at of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property items[].shipments[].rto_address.updated_at of schema Address in response with status code 200 + - [Breaking] [Deleted] property items[].shipments[].forward_end_shipment_id of schema PlatformShipment in response with status code 200 + - [Breaking] [Deleted] property items[].shipments[].logistics_meta of schema PlatformShipment in response with status code 200 + - [Breaking] [Deleted] property items[].prices of schema PlatformOrderItems in response with status code 200 + - [Breaking] [Deleted] property items[].ordering_currency_prices of schema PlatformOrderItems in response with status code 200 + + +#### getApplicationShipments + +- ##### What's New + - [Added] Possible nullable value true to property items[].shipment_status.status of schema ShipmentStatus in response with status code 200 + - [Added] property items[].bags[].article.a_set of schema Article in response with status code 200 + - [Added] Possible nullable value true to property items[].total_bags of schema ShipmentItem in response with status code 200 + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property items[].order_date of schema ShipmentItem in response with status code 200 + - [Deleted] Value format from date-time from property items[].shipment_status.created_at of schema ShipmentStatus in response with status code 200 + - [Deleted] Value format from date-time from property items[].shipment_status.status_created_at of schema ShipmentStatus in response with status code 200 + - [Deleted] Possible values from store,delivery,billing from property items[].delivery_address.address_category of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property items[].delivery_address.created_at of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property items[].delivery_address.updated_at of schema Address in response with status code 200 + - [Breaking] [Deleted] property items[].billing_address of schema ShipmentItem in response with status code 200 + - [Breaking] [Deleted] property items[].affiliate_details of schema ShipmentItem in response with status code 200 + - [Breaking] [Deleted] property items[].is_active of schema ShipmentItem in response with status code 200 + - [Breaking] [Deleted] property items[].forward_end_shipment_id of schema ShipmentItem in response with status code 200 + - [Deleted] Value format from date-time from property items[].status_created_at of schema ShipmentItem in response with status code 200 + - [Deleted] Possible values from forward_standard from property items[].bags[].bag_type of schema BagUnit in response with status code 200 + - [Deleted] Value format from date-time from property items[].bags[].bag_expiry_date of schema BagUnit in response with status code 200 + - [Deleted] Possible values from operational,financial,logistics from property items[].bags[].bag_status[].state_type of schema BagStatusHistory in response with status code 200 + - [Deleted] Value format from date-time from property items[].bags[].bag_status[].created_at of schema BagStatusHistory in response with status code 200 + - [Deleted] Value format from date-time from property items[].bags[].bag_status[].updated_at of schema BagStatusHistory in response with status code 200 + - [Deleted] Possible values from operational,financial,logistics from property items[].bags[].bag_status[].bag_state_mapper.state_type of schema BagStateMapper in response with status code 200 + - [Deleted] Possible values from return,forward from property items[].bags[].bag_status[].bag_state_mapper.journey_type of schema BagStateMapper in response with status code 200 + - [Deleted] Possible values from operational,financial,logistics from property items[].bags[].current_operational_status.state_type of schema BagStatusHistory in response with status code 200 + - [Deleted] Value format from date-time from property items[].bags[].current_operational_status.created_at of schema BagStatusHistory in response with status code 200 + - [Deleted] Value format from date-time from property items[].bags[].current_operational_status.updated_at of schema BagStatusHistory in response with status code 200 + - [Deleted] Possible values from operational,financial,logistics from property items[].bags[].current_operational_status.bag_state_mapper.state_type of schema BagStateMapper in response with status code 200 + - [Deleted] Possible values from return,forward from property items[].bags[].current_operational_status.bag_state_mapper.journey_type of schema BagStateMapper in response with status code 200 + - [Breaking] [Deleted] property items[].bags[].article.set of schema Article in response with status code 200 + - [Deleted] Value format from date-time from property items[].bags[].brand.created_on of schema ShipmentListingBrand in response with status code 200 + - [Deleted] Value format from date-time from property items[].bags[].affiliate_bag_details.affiliate_meta.due_date of schema AffiliateMeta in response with status code 200 + - [Deleted] Value format from date-time from property items[].bags[].item.last_updated_at of schema PlatformItem in response with status code 200 + - [Breaking] [Deleted] property items[].bags[].ordering_currency_prices of schema BagUnit in response with status code 200 + - [Deleted] Value format from date-time from property items[].bags[].dates.delivery_date of schema Dates in response with status code 200 + - [Deleted] Possible values from operational,financial,logistics from property items[].bags[].current_status.state_type of schema BagStatusHistory in response with status code 200 + - [Deleted] Value format from date-time from property items[].bags[].current_status.created_at of schema BagStatusHistory in response with status code 200 + - [Deleted] Value format from date-time from property items[].bags[].current_status.updated_at of schema BagStatusHistory in response with status code 200 + - [Deleted] Possible values from operational,financial,logistics from property items[].bags[].current_status.bag_state_mapper.state_type of schema BagStateMapper in response with status code 200 + - [Deleted] Possible values from return,forward from property items[].bags[].current_status.bag_state_mapper.journey_type of schema BagStateMapper in response with status code 200 + - [Deleted] Possible values from bag from property items[].bags[].entity_type of schema BagUnit in response with status code 200 + - [Deleted] Possible values from high_street,mall,store,warehouse from property items[].fulfilling_store.location_type of schema ShipmentItemFulFillingStore in response with status code 200 + - [Breaking] [Deleted] property items[].ordering_currency_prices of schema ShipmentItem in response with status code 200 + - [Deleted] Value format from date-time from property items[].shipment_created_at of schema ShipmentItem in response with status code 200 + - [Breaking] [Deleted] property items[].logistics_meta of schema ShipmentItem in response with status code 200 + + +#### trackShipmentPlatform + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property results[].last_location_recieved_at of schema PlatformTrack in response with status code 200 + - [Deleted] Value format from date-time from property results[].updated_at of schema PlatformTrack in response with status code 200 + - [Deleted] Possible values from forward,reverse,RTO from property results[].shipment_type of schema PlatformTrack in response with status code 200 + + +#### getfilters + +- ##### What's New + - [Breaking] [Added] Possible values multi_select,single_select to property advance_filter.returned[].type of schema FiltersInfo in response with status code 200 + - [Breaking] [Added] Possible values multi_select,single_select to property advance_filter.action_centre[].type of schema FiltersInfo in response with status code 200 + - [Breaking] [Added] Possible values multi_select,single_select to property advance_filter.unfulfilled[].type of schema FiltersInfo in response with status code 200 + - [Breaking] [Added] Possible values multi_select,single_select to property advance_filter.filters[].type of schema FiltersInfo in response with status code 200 + - [Breaking] [Added] Possible values multi_select,single_select to property advance_filter.processed[].type of schema FiltersInfo in response with status code 200 + - [Breaking] [Added] Possible values multi_select,single_select to property global_filter[].type of schema FiltersInfo in response with status code 200 + + +#### getShipmentReasons + +- ##### What's Deprecated + - [Breaking] [Deleted] property reasons[].reasons of schema Reason in response with status code 200 + - [Deleted] Possible values from doorstep_qc,pre_qc from property reasons[].qc_type[] of schema Reason in response with status code 200 + - [Breaking] [Deleted] property reasons[].meta of schema Reason in response with status code 200 + - [Breaking] [Deleted] property reasons[].is_active of schema Reason in response with status code 200 + +- ##### What's Changed + - [Breaking] [Changed] reasons[].display_name, reasons[].qc_type, reasons[].question_set, reasons[].meta, reasons[].is_active made optional in response with status code 200 + + +#### getBagById + +- ##### What's New + - [Added] Possible nullable value true to property data.affiliate_details.shipment_meta.b2b_buyer_details.address of schema BuyerDetails in response with status code 200 + - [Added] property data.article.a_set of schema Article in response with status code 200 + - [Added] Possible nullable value true to property data.fulfilling_store.address1 of schema Store in response with status code 200 + - [Added] Possible nullable value true to property data.fulfilling_store.store_address_json.phone of schema StoreAddress in response with status code 200 + - [Added] property data.fulfilling_store.meta.documents.gst.ds_type of schema Document in response with status code 200 + - [Added] Possible nullable value true to property data.ordering_store.address1 of schema Store in response with status code 200 + - [Added] Possible nullable value true to property data.ordering_store.store_address_json.phone of schema StoreAddress in response with status code 200 + - [Added] property data.ordering_store.meta.documents.gst.ds_type of schema Document in response with status code 200 + - [Added] properties data.shipment.line_items[].charges[].amount.currency, data.shipment.line_items[].charges[].amount.value in response with status code 200 + +- ##### What's Deprecated + - [Deleted] Possible values from 200,400,500 from property status_code of schema BagDetailsPlatformResponseSchema in response with status code 200 + - [Deleted] Value format from date-time from property data.affiliate_bag_details.affiliate_meta.due_date of schema AffiliateMeta in response with status code 200 + - [Deleted] Value format from date-time from property data.affiliate_details.shipment_meta.estimated_delivery_date of schema ShipmentMeta in response with status code 200 + - [Deleted] Value format from date-time from property data.affiliate_details.shipment_meta.due_date of schema ShipmentMeta in response with status code 200 + - [Deleted] Value format from date-time from property data.affiliate_details.shipment_meta.store_invoice_updated_date of schema ShipmentMeta in response with status code 200 + - [Deleted] Possible values from bag,shipments from property data.affiliate_details.shipment_meta.shipment_tags[].entity_type of schema ShipmentTags in response with status code 200 + - [Deleted] Possible values from HomeDelivery,PickAtStore,Digital from property data.affiliate_details.shipment_meta.order_type of schema ShipmentMeta in response with status code 200 + - [Deleted] Value format from date-time from property data.affiliate_details.affiliate_meta.due_date of schema AffiliateMeta in response with status code 200 + - [Deleted] Possible values from fynd,external from property data.affiliate_details.pdf_links.invoice_type of schema PDFLinks in response with status code 200 + - [Deleted] Possible values from fynd,external,parent_child from property data.affiliate_details.pdf_links.label_type of schema PDFLinks in response with status code 200 + - [Breaking] [Deleted] property data.affiliate_details.config.app of schema AffiliateConfig in response with status code 200 + - [Breaking] [Deleted] property data.affiliate_details.config.inventory of schema AffiliateConfig in response with status code 200 + - [Breaking] [Deleted] property data.article.set of schema Article in response with status code 200 + - [Deleted] Possible values from operational,financial,logistics from property data.bag_status[].state_type of schema BagStatusHistory in response with status code 200 + - [Deleted] Value format from date-time from property data.bag_status[].created_at of schema BagStatusHistory in response with status code 200 + - [Deleted] Value format from date-time from property data.bag_status[].updated_at of schema BagStatusHistory in response with status code 200 + - [Deleted] Possible values from operational,financial,logistics from property data.bag_status[].bag_state_mapper.state_type of schema BagStateMapper in response with status code 200 + - [Deleted] Possible values from return,forward from property data.bag_status[].bag_state_mapper.journey_type of schema BagStateMapper in response with status code 200 + - [Deleted] Possible values from operational,financial,logistics from property data.bag_status_history[].state_type of schema BagStatusHistory in response with status code 200 + - [Deleted] Value format from date-time from property data.bag_status_history[].created_at of schema BagStatusHistory in response with status code 200 + - [Deleted] Value format from date-time from property data.bag_status_history[].updated_at of schema BagStatusHistory in response with status code 200 + - [Deleted] Possible values from operational,financial,logistics from property data.bag_status_history[].bag_state_mapper.state_type of schema BagStateMapper in response with status code 200 + - [Deleted] Possible values from return,forward from property data.bag_status_history[].bag_state_mapper.journey_type of schema BagStateMapper in response with status code 200 + - [Deleted] Value format from date-time from property data.brand.start_date of schema Brand in response with status code 200 + - [Deleted] Value format from date-time from property data.brand.created_on of schema Brand in response with status code 200 + - [Deleted] Value format from date-time from property data.brand.modified_on of schema Brand in response with status code 200 + - [Deleted] Value format from date-time from property data.company.created_on of schema Company in response with status code 200 + - [Deleted] Possible values from mbo,distributor,manufacturer-owner,franchise from property data.company.company_type of schema Company in response with status code 200 + - [Deleted] Value format from date-time from property data.company.modified_on of schema Company in response with status code 200 + - [Deleted] Value format from date-time from property data.company.agreement_start_date of schema Company in response with status code 200 + - [Deleted] Possible values from operational,financial,logistics from property data.current_operational_status.state_type of schema BagStatusHistory in response with status code 200 + - [Deleted] Value format from date-time from property data.current_operational_status.created_at of schema BagStatusHistory in response with status code 200 + - [Deleted] Value format from date-time from property data.current_operational_status.updated_at of schema BagStatusHistory in response with status code 200 + - [Deleted] Possible values from operational,financial,logistics from property data.current_operational_status.bag_state_mapper.state_type of schema BagStateMapper in response with status code 200 + - [Deleted] Possible values from return,forward from property data.current_operational_status.bag_state_mapper.journey_type of schema BagStateMapper in response with status code 200 + - [Deleted] Possible values from operational,financial,logistics from property data.current_status.state_type of schema BagStatusHistory in response with status code 200 + - [Deleted] Value format from date-time from property data.current_status.created_at of schema BagStatusHistory in response with status code 200 + - [Deleted] Value format from date-time from property data.current_status.updated_at of schema BagStatusHistory in response with status code 200 + - [Deleted] Possible values from operational,financial,logistics from property data.current_status.bag_state_mapper.state_type of schema BagStateMapper in response with status code 200 + - [Deleted] Possible values from return,forward from property data.current_status.bag_state_mapper.journey_type of schema BagStateMapper in response with status code 200 + - [Deleted] Value format from date-time from property data.dates.delivery_date of schema Dates in response with status code 200 + - [Deleted] Possible values from store,delivery,billing from property data.delivery_address.address_category of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property data.delivery_address.created_at of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property data.delivery_address.updated_at of schema Address in response with status code 200 + - [Deleted] Possible values from bag from property data.entity_type of schema BagDetails in response with status code 200 + - [Deleted] Value format from date-time from property data.fulfilling_store.created_at of schema Store in response with status code 200 + - [Deleted] Possible values from high_street,mall,store,warehouse from property data.fulfilling_store.location_type of schema Store in response with status code 200 + - [Deleted] Value format from date-time from property data.fulfilling_store.updated_at of schema Store in response with status code 200 + - [Deleted] Value format from date-time from property data.fulfilling_store.store_address_json.created_at of schema StoreAddress in response with status code 200 + - [Deleted] Possible values from store,delivery,billing from property data.fulfilling_store.store_address_json.address_category of schema StoreAddress in response with status code 200 + - [Deleted] Value format from date-time from property data.fulfilling_store.store_address_json.updated_at of schema StoreAddress in response with status code 200 + - [Breaking] [Deleted] property data.fulfilling_store.meta.documents.gst.type of schema Document in response with status code 200 + - [Deleted] Value format from date-time from property data.invoice.updated_date of schema InvoiceDetails in response with status code 200 + - [Deleted] Possible values from return,forward from property data.journey_type of schema BagDetails in response with status code 200 + - [Deleted] Value format from date-time from property data.order.created_at of schema OrderDetails in response with status code 200 + - [Deleted] Value format from date-time from property data.order.affiliate_order_date of schema OrderDetails in response with status code 200 + - [Breaking] [Deleted] property data.order.charges of schema OrderDetails in response with status code 200 + - [Deleted] Possible values from HomeDelivery,PickAtStore,Digital from property data.order_type of schema BagDetails in response with status code 200 + - [Deleted] Value format from date-time from property data.ordering_store.created_at of schema Store in response with status code 200 + - [Deleted] Possible values from high_street,mall,store,warehouse from property data.ordering_store.location_type of schema Store in response with status code 200 + - [Deleted] Value format from date-time from property data.ordering_store.updated_at of schema Store in response with status code 200 + - [Deleted] Value format from date-time from property data.ordering_store.store_address_json.created_at of schema StoreAddress in response with status code 200 + - [Deleted] Possible values from store,delivery,billing from property data.ordering_store.store_address_json.address_category of schema StoreAddress in response with status code 200 + - [Deleted] Value format from date-time from property data.ordering_store.store_address_json.updated_at of schema StoreAddress in response with status code 200 + - [Breaking] [Deleted] property data.ordering_store.meta.documents.gst.type of schema Document in response with status code 200 + - [Deleted] Possible values from partner,self,fynd from property data.payment_type of schema BagDetails in response with status code 200 + - [Breaking] [Deleted] property data.charges of schema BagDetails in response with status code 200 + - [Deleted] Possible values from store,delivery,billing from property data.rto_address.address_category of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property data.rto_address.created_at of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property data.rto_address.updated_at of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property data.shipment.processing_dates.dispatch_after_date of schema ProcessingDates in response with status code 200 + - [Deleted] Value format from date-time from property data.shipment.processing_dates.dispatch_by_date of schema ProcessingDates in response with status code 200 + - [Deleted] Value format from date-time from property data.shipment.processing_dates.confirm_by_date of schema ProcessingDates in response with status code 200 + - [Deleted] Value format from date-time from property data.shipment.processing_dates.pack_by_date of schema ProcessingDates in response with status code 200 + - [Breaking] [Deleted] Possible values from Digital from property data.shipment.order_type of schema Shipment in response with status code 200 + - [Breaking] [Deleted] properties data.shipment.tags[].slug, data.shipment.tags[].display_text in response with status code 200 + - [Breaking] [Deleted] property data.shipment.system_messages of schema Shipment in response with status code 200 + - [Breaking] [Deleted] property data.shipment.process_after_config of schema Shipment in response with status code 200 + - [Deleted] Possible values from store,delivery,billing from property data.shipment.billing_address_json.address_category of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property data.shipment.billing_address_json.created_at of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property data.shipment.billing_address_json.updated_at of schema Address in response with status code 200 + - [Deleted] Possible values from store,delivery,billing from property data.shipment.delivery_address_json.address_category of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property data.shipment.delivery_address_json.created_at of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property data.shipment.delivery_address_json.updated_at of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property data.shipment.created_at of schema Shipment in response with status code 200 + - [Deleted] Possible values from store,delivery,billing from property data.shipment.hand_over_contact_json.address_category of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property data.shipment.hand_over_contact_json.created_at of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property data.shipment.hand_over_contact_json.updated_at of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property data.shipment.status.created_at of schema ShipmentStatusData in response with status code 200 + - [Deleted] Value format from date-time from property data.shipment.status.status_created_at of schema ShipmentStatusData in response with status code 200 + - [Breaking] [Deleted] property data.shipment_details.box_type of schema ShipmentDetails in response with status code 200 + - [Breaking] [Deleted] property data.shipment_details.shipments of schema ShipmentDetails in response with status code 200 + - [Breaking] [Deleted] property data.shipment_details.fulfillment_id of schema ShipmentDetails in response with status code 200 + - [Breaking] [Deleted] property data.shipment_details.articles of schema ShipmentDetails in response with status code 200 + - [Deleted] Value format from int32 from property data.shipment_details.dp_id of schema ShipmentDetails in response with status code 200 + - [Breaking] [Deleted] property data.shipment_details.meta of schema ShipmentDetails in response with status code 200 + - [Breaking] [Deleted] property data.shipment_details.affiliate_shipment_id of schema ShipmentDetails in response with status code 200 + - [Deleted] Value format from date-time from property data.shipment_status.created_at of schema ShipmentStatusData in response with status code 200 + - [Deleted] Value format from date-time from property data.shipment_status.status_created_at of schema ShipmentStatusData in response with status code 200 + - [Deleted] Value format from date-time from property data.shipment_status_history[].created_at of schema ShipmentStatusData in response with status code 200 + - [Deleted] Value format from date-time from property data.shipment_status_history[].status_created_at of schema ShipmentStatusData in response with status code 200 + - [Deleted] Possible values from shipment from property data.transaction_type of schema BagDetails in response with status code 200 + - [Deleted] Value format from date-time from property data.updated_at of schema BagDetails in response with status code 200 + +- ##### What's Changed + - [Breaking] [Changed] data.shipment_details.affiliate_shipment_id, data.shipment_details.articles, data.shipment_details.fulfillment_id, data.shipment_details.shipments made optional in response with status code 200 + + +#### getBags + +- ##### What's New + - [Added] Possible nullable value true to property data.items[].affiliate_details.shipment_meta.b2b_buyer_details.address of schema BuyerDetails in response with status code 200 + - [Added] property data.items[].article.a_set of schema Article in response with status code 200 + - [Added] Possible nullable value true to property data.items[].fulfilling_store.address1 of schema Store in response with status code 200 + - [Added] Possible nullable value true to property data.items[].fulfilling_store.store_address_json.phone of schema StoreAddress in response with status code 200 + - [Added] property data.items[].fulfilling_store.meta.documents.gst.ds_type of schema Document in response with status code 200 + - [Added] Possible nullable value true to property data.items[].ordering_store.address1 of schema Store in response with status code 200 + - [Added] Possible nullable value true to property data.items[].ordering_store.store_address_json.phone of schema StoreAddress in response with status code 200 + - [Added] property data.items[].ordering_store.meta.documents.gst.ds_type of schema Document in response with status code 200 + - [Added] properties data.items[].shipment.line_items[].charges[].amount.currency, data.items[].shipment.line_items[].charges[].amount.value in response with status code 200 + +- ##### What's Deprecated + - [Deleted] Possible values from 200,400,500 from property status_code of schema GetBagsPlatformResponseSchema in response with status code 200 + - [Deleted] Value format from date-time from property data.items[].affiliate_bag_details.affiliate_meta.due_date of schema AffiliateMeta in response with status code 200 + - [Deleted] Value format from date-time from property data.items[].affiliate_details.shipment_meta.estimated_delivery_date of schema ShipmentMeta in response with status code 200 + - [Deleted] Value format from date-time from property data.items[].affiliate_details.shipment_meta.due_date of schema ShipmentMeta in response with status code 200 + - [Deleted] Value format from date-time from property data.items[].affiliate_details.shipment_meta.store_invoice_updated_date of schema ShipmentMeta in response with status code 200 + - [Deleted] Possible values from bag,shipments from property data.items[].affiliate_details.shipment_meta.shipment_tags[].entity_type of schema ShipmentTags in response with status code 200 + - [Deleted] Possible values from HomeDelivery,PickAtStore,Digital from property data.items[].affiliate_details.shipment_meta.order_type of schema ShipmentMeta in response with status code 200 + - [Deleted] Value format from date-time from property data.items[].affiliate_details.affiliate_meta.due_date of schema AffiliateMeta in response with status code 200 + - [Deleted] Possible values from fynd,external from property data.items[].affiliate_details.pdf_links.invoice_type of schema PDFLinks in response with status code 200 + - [Deleted] Possible values from fynd,external,parent_child from property data.items[].affiliate_details.pdf_links.label_type of schema PDFLinks in response with status code 200 + - [Breaking] [Deleted] property data.items[].affiliate_details.config.app of schema AffiliateConfig in response with status code 200 + - [Breaking] [Deleted] property data.items[].affiliate_details.config.inventory of schema AffiliateConfig in response with status code 200 + - [Breaking] [Deleted] property data.items[].article.set of schema Article in response with status code 200 + - [Deleted] Possible values from operational,financial,logistics from property data.items[].bag_status[].state_type of schema BagStatusHistory in response with status code 200 + - [Deleted] Value format from date-time from property data.items[].bag_status[].created_at of schema BagStatusHistory in response with status code 200 + - [Deleted] Value format from date-time from property data.items[].bag_status[].updated_at of schema BagStatusHistory in response with status code 200 + - [Deleted] Possible values from operational,financial,logistics from property data.items[].bag_status[].bag_state_mapper.state_type of schema BagStateMapper in response with status code 200 + - [Deleted] Possible values from return,forward from property data.items[].bag_status[].bag_state_mapper.journey_type of schema BagStateMapper in response with status code 200 + - [Deleted] Possible values from operational,financial,logistics from property data.items[].bag_status_history[].state_type of schema BagStatusHistory in response with status code 200 + - [Deleted] Value format from date-time from property data.items[].bag_status_history[].created_at of schema BagStatusHistory in response with status code 200 + - [Deleted] Value format from date-time from property data.items[].bag_status_history[].updated_at of schema BagStatusHistory in response with status code 200 + - [Deleted] Possible values from operational,financial,logistics from property data.items[].bag_status_history[].bag_state_mapper.state_type of schema BagStateMapper in response with status code 200 + - [Deleted] Possible values from return,forward from property data.items[].bag_status_history[].bag_state_mapper.journey_type of schema BagStateMapper in response with status code 200 + - [Deleted] Value format from date-time from property data.items[].brand.start_date of schema Brand in response with status code 200 + - [Deleted] Value format from date-time from property data.items[].brand.created_on of schema Brand in response with status code 200 + - [Deleted] Value format from date-time from property data.items[].brand.modified_on of schema Brand in response with status code 200 + - [Deleted] Value format from date-time from property data.items[].company.created_on of schema Company in response with status code 200 + - [Deleted] Possible values from mbo,distributor,manufacturer-owner,franchise from property data.items[].company.company_type of schema Company in response with status code 200 + - [Deleted] Value format from date-time from property data.items[].company.modified_on of schema Company in response with status code 200 + - [Deleted] Value format from date-time from property data.items[].company.agreement_start_date of schema Company in response with status code 200 + - [Deleted] Possible values from operational,financial,logistics from property data.items[].current_operational_status.state_type of schema BagStatusHistory in response with status code 200 + - [Deleted] Value format from date-time from property data.items[].current_operational_status.created_at of schema BagStatusHistory in response with status code 200 + - [Deleted] Value format from date-time from property data.items[].current_operational_status.updated_at of schema BagStatusHistory in response with status code 200 + - [Deleted] Possible values from operational,financial,logistics from property data.items[].current_operational_status.bag_state_mapper.state_type of schema BagStateMapper in response with status code 200 + - [Deleted] Possible values from return,forward from property data.items[].current_operational_status.bag_state_mapper.journey_type of schema BagStateMapper in response with status code 200 + - [Deleted] Possible values from operational,financial,logistics from property data.items[].current_status.state_type of schema BagStatusHistory in response with status code 200 + - [Deleted] Value format from date-time from property data.items[].current_status.created_at of schema BagStatusHistory in response with status code 200 + - [Deleted] Value format from date-time from property data.items[].current_status.updated_at of schema BagStatusHistory in response with status code 200 + - [Deleted] Possible values from operational,financial,logistics from property data.items[].current_status.bag_state_mapper.state_type of schema BagStateMapper in response with status code 200 + - [Deleted] Possible values from return,forward from property data.items[].current_status.bag_state_mapper.journey_type of schema BagStateMapper in response with status code 200 + - [Deleted] Value format from date-time from property data.items[].dates.delivery_date of schema Dates in response with status code 200 + - [Deleted] Possible values from store,delivery,billing from property data.items[].delivery_address.address_category of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property data.items[].delivery_address.created_at of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property data.items[].delivery_address.updated_at of schema Address in response with status code 200 + - [Deleted] Possible values from bag from property data.items[].entity_type of schema BagDetails in response with status code 200 + - [Deleted] Value format from date-time from property data.items[].fulfilling_store.created_at of schema Store in response with status code 200 + - [Deleted] Possible values from high_street,mall,store,warehouse from property data.items[].fulfilling_store.location_type of schema Store in response with status code 200 + - [Deleted] Value format from date-time from property data.items[].fulfilling_store.updated_at of schema Store in response with status code 200 + - [Deleted] Value format from date-time from property data.items[].fulfilling_store.store_address_json.created_at of schema StoreAddress in response with status code 200 + - [Deleted] Possible values from store,delivery,billing from property data.items[].fulfilling_store.store_address_json.address_category of schema StoreAddress in response with status code 200 + - [Deleted] Value format from date-time from property data.items[].fulfilling_store.store_address_json.updated_at of schema StoreAddress in response with status code 200 + - [Breaking] [Deleted] property data.items[].fulfilling_store.meta.documents.gst.type of schema Document in response with status code 200 + - [Deleted] Value format from date-time from property data.items[].invoice.updated_date of schema InvoiceDetails in response with status code 200 + - [Deleted] Possible values from return,forward from property data.items[].journey_type of schema BagDetails in response with status code 200 + - [Deleted] Value format from date-time from property data.items[].order.created_at of schema OrderDetails in response with status code 200 + - [Deleted] Value format from date-time from property data.items[].order.affiliate_order_date of schema OrderDetails in response with status code 200 + - [Breaking] [Deleted] property data.items[].order.charges of schema OrderDetails in response with status code 200 + - [Deleted] Possible values from HomeDelivery,PickAtStore,Digital from property data.items[].order_type of schema BagDetails in response with status code 200 + - [Deleted] Value format from date-time from property data.items[].ordering_store.created_at of schema Store in response with status code 200 + - [Deleted] Possible values from high_street,mall,store,warehouse from property data.items[].ordering_store.location_type of schema Store in response with status code 200 + - [Deleted] Value format from date-time from property data.items[].ordering_store.updated_at of schema Store in response with status code 200 + - [Deleted] Value format from date-time from property data.items[].ordering_store.store_address_json.created_at of schema StoreAddress in response with status code 200 + - [Deleted] Possible values from store,delivery,billing from property data.items[].ordering_store.store_address_json.address_category of schema StoreAddress in response with status code 200 + - [Deleted] Value format from date-time from property data.items[].ordering_store.store_address_json.updated_at of schema StoreAddress in response with status code 200 + - [Breaking] [Deleted] property data.items[].ordering_store.meta.documents.gst.type of schema Document in response with status code 200 + - [Deleted] Possible values from partner,self,fynd from property data.items[].payment_type of schema BagDetails in response with status code 200 + - [Breaking] [Deleted] property data.items[].charges of schema BagDetails in response with status code 200 + - [Deleted] Possible values from store,delivery,billing from property data.items[].rto_address.address_category of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property data.items[].rto_address.created_at of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property data.items[].rto_address.updated_at of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property data.items[].shipment.processing_dates.dispatch_after_date of schema ProcessingDates in response with status code 200 + - [Deleted] Value format from date-time from property data.items[].shipment.processing_dates.dispatch_by_date of schema ProcessingDates in response with status code 200 + - [Deleted] Value format from date-time from property data.items[].shipment.processing_dates.confirm_by_date of schema ProcessingDates in response with status code 200 + - [Deleted] Value format from date-time from property data.items[].shipment.processing_dates.pack_by_date of schema ProcessingDates in response with status code 200 + - [Breaking] [Deleted] Possible values from Digital from property data.items[].shipment.order_type of schema Shipment in response with status code 200 + - [Breaking] [Deleted] properties data.items[].shipment.tags[].slug, data.items[].shipment.tags[].display_text in response with status code 200 + - [Breaking] [Deleted] property data.items[].shipment.system_messages of schema Shipment in response with status code 200 + - [Breaking] [Deleted] property data.items[].shipment.process_after_config of schema Shipment in response with status code 200 + - [Deleted] Possible values from store,delivery,billing from property data.items[].shipment.billing_address_json.address_category of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property data.items[].shipment.billing_address_json.created_at of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property data.items[].shipment.billing_address_json.updated_at of schema Address in response with status code 200 + - [Deleted] Possible values from store,delivery,billing from property data.items[].shipment.delivery_address_json.address_category of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property data.items[].shipment.delivery_address_json.created_at of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property data.items[].shipment.delivery_address_json.updated_at of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property data.items[].shipment.created_at of schema Shipment in response with status code 200 + - [Deleted] Possible values from store,delivery,billing from property data.items[].shipment.hand_over_contact_json.address_category of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property data.items[].shipment.hand_over_contact_json.created_at of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property data.items[].shipment.hand_over_contact_json.updated_at of schema Address in response with status code 200 + - [Deleted] Value format from date-time from property data.items[].shipment.status.created_at of schema ShipmentStatusData in response with status code 200 + - [Deleted] Value format from date-time from property data.items[].shipment.status.status_created_at of schema ShipmentStatusData in response with status code 200 + - [Breaking] [Deleted] property data.items[].shipment_details.box_type of schema ShipmentDetails in response with status code 200 + - [Breaking] [Deleted] property data.items[].shipment_details.shipments of schema ShipmentDetails in response with status code 200 + - [Breaking] [Deleted] property data.items[].shipment_details.fulfillment_id of schema ShipmentDetails in response with status code 200 + - [Breaking] [Deleted] property data.items[].shipment_details.articles of schema ShipmentDetails in response with status code 200 + - [Deleted] Value format from int32 from property data.items[].shipment_details.dp_id of schema ShipmentDetails in response with status code 200 + - [Breaking] [Deleted] property data.items[].shipment_details.meta of schema ShipmentDetails in response with status code 200 + - [Breaking] [Deleted] property data.items[].shipment_details.affiliate_shipment_id of schema ShipmentDetails in response with status code 200 + - [Deleted] Value format from date-time from property data.items[].shipment_status.created_at of schema ShipmentStatusData in response with status code 200 + - [Deleted] Value format from date-time from property data.items[].shipment_status.status_created_at of schema ShipmentStatusData in response with status code 200 + - [Deleted] Value format from date-time from property data.items[].shipment_status_history[].created_at of schema ShipmentStatusData in response with status code 200 + - [Deleted] Value format from date-time from property data.items[].shipment_status_history[].status_created_at of schema ShipmentStatusData in response with status code 200 + - [Deleted] Possible values from shipment from property data.items[].transaction_type of schema BagDetails in response with status code 200 + - [Deleted] Value format from date-time from property data.items[].updated_at of schema BagDetails in response with status code 200 + +- ##### What's Changed + - [Breaking] [Changed] data.items[].shipment_details.affiliate_shipment_id, data.items[].shipment_details.articles, data.items[].shipment_details.fulfillment_id, data.items[].shipment_details.shipments made optional in response with status code 200 + + +### Partner + + + +#### addProxyPath + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema ExtensionProxyPathCreation in response with status code 200 + - [Deleted] Value format from date-time from property modified_at of schema ExtensionProxyPathCreation in response with status code 200 + + +### Payment + + + +#### getBrandPaymentGatewayConfig + +- ##### What's New + - [Added] Response with status 500 + +- ##### What's Changed + - [Breaking] [Changed] Required status of query parameter aggregator + + +#### saveBrandPaymentGatewayConfig + +- ##### What's New + - [Added] Response with status 500 + + +#### getPaymentModeRoutes + +- ##### What's New + - [Added] query parameter amount (type: integer) + + - [Added] Response with status 500 + +- ##### What's Changed + - [Changed] Required status of query parameter refresh + - [Changed] Required status of query parameter requestType + + +#### getAllPayouts + +- ##### What's New + - [Added] Response with status 500 + + +#### savePayout + +- ##### What's New + - [Added] Response with status 500 + + +#### updatePayout + +- ##### What's New + - [Added] Response with status 500 + + +#### activateAndDectivatePayout + +- ##### What's New + - [Added] Response with status 500 + + +#### deletePayout + +- ##### What's New + - [Added] Response with status 500 + + +#### getSubscriptionPaymentMethod + +- ##### What's New + - [Added] Response with status 500 + + +#### deleteSubscriptionPaymentMethod + +- ##### What's New + - [Added] Response with status 500 + + +#### getSubscriptionConfig + +- ##### What's New + - [Added] Response with status 500 + + +#### saveSubscriptionSetupIntent + +- ##### What's New + - [Added] Response with status 500 + + +#### getBankAccountDetailsOpenAPI + +- ##### What's New + - [Added] Response with status 500 + + +#### addRefundBankAccountUsingOTP + +- ##### What's New + - [Added] Response with status 500 + + +#### verifyIfscCode + +- ##### What's New + - [Breaking] [Added] Required status to query parameter ifscCode + - [Added] Response with status 500 + + +#### getUserOrderBeneficiaries + +- ##### What's New + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property beneficiaries[].created_on of schema OrderBeneficiaryDetails in response with status code 200 + - [Deleted] Value format from date-time from property beneficiaries[].modified_on of schema OrderBeneficiaryDetails in response with status code 200 + + +#### getUserBeneficiaries + +- ##### What's New + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property beneficiaries[].created_on of schema OrderBeneficiaryDetails in response with status code 200 + - [Deleted] Value format from date-time from property beneficiaries[].modified_on of schema OrderBeneficiaryDetails in response with status code 200 + + +#### confirmPayment + +- ##### What's New + - [Added] Response with status 500 + + +#### getUserCODlimitRoutes + +- ##### What's New + - [Added] property items of schema GetUserCODLimitResponse in response with status code 200 + - [Added] property message of schema GetUserCODLimitResponse in response with status code 200 + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Breaking] [Deleted] property user_cod_data of schema GetUserCODLimitDetails in response with status code 200 + + +#### setUserCODlimitRoutes + +- ##### What's New + - [Added] Response with status 500 + + +#### edcAggregatorsAndModelList + +- ##### What's New + - [Added] Response with status 500 + + +#### edcDeviceStats + +- ##### What's New + - [Added] Response with status 500 + + +#### updateEdcDevice + +- ##### What's New + - [Added] Response with status 500 + + +#### getEdcDevice + +- ##### What's New + - [Added] Response with status 500 + + +#### addEdcDevice + +- ##### What's New + - [Added] Response with status 500 + + +#### edcDeviceList + +- ##### What's New + - [Added] Response with status 500 + + +#### getPosPaymentModeRoutes + +- ##### What's New + - [Added] Response with status 500 + +- ##### What's Changed + - [Breaking] [Changed] payment_options.payment_flows made optional in response with status code 200 + + +#### initialisePayment + +- ##### What's New + - [Added] Possible nullable value true to property amount of schema PaymentInitializationRequest in request body + - [Added] Response with status 500 + + +#### checkAndUpdatePaymentStatus + +- ##### What's New + - [Added] Possible nullable value true to property amount of schema PaymentStatusUpdateRequest in request body + - [Added] Response with status 500 + + +#### resendOrCancelPayment + +- ##### What's New + - [Added] Response with status 500 + + +#### paymentStatusBulk + +- ##### What's New + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property data[].payment_object_list[].modified_on of schema PaymentObjectList in response with status code 200 + - [Deleted] Value format from date-time from property data[].payment_object_list[].created_on of schema PaymentObjectList in response with status code 200 + + +#### oauthGetUrl + +- ##### What's New + - [Added] Response with status 500 + + +#### revokeOauthToken + +- ##### What's New + - [Added] Response with status 500 + + +#### repaymentDetails + +- ##### What's New + - [Added] Possible nullable value true to property extension_order_id of schema RepaymentDetailsSerialiserPayAll in request body + - [Added] Response with status 500 + + +#### merchantOnBoarding + +- ##### What's New + - [Added] Response with status 500 + + +#### verifyCustomerForPayment + +- ##### What's New + - [Added] Response with status 500 + + +#### getPaymentLink + +- ##### What's New + - [Breaking] [Added] Required status to query parameter paymentLinkId + - [Added] Response with status 500 + + +#### createPaymentLink + +- ##### What's New + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Breaking] [Deleted] property success_redirection_url of schema CreatePaymentLinkCreation in request body + - [Breaking] [Deleted] property failure_redirection_url of schema CreatePaymentLinkCreation in request body + + +#### pollingPaymentLink + +- ##### What's New + - [Breaking] [Added] Required status to query parameter paymentLinkId + - [Added] Response with status 500 + + +#### resendPaymentLink + +- ##### What's New + - [Added] Response with status 500 + + +#### cancelPaymentLink + +- ##### What's New + - [Added] Response with status 500 + + +#### getPaymentModeControlRoutes + +- ##### What's New + - [Added] Response with status 500 + + +#### setMerchantModeControlRoutes + +- ##### What's New + - [Added] Response with status 500 + + +#### getPaymentModeCustomConfig + +- ##### What's New + - [Added] Response with status 500 + + +#### setPaymentModeCustomConfig + +- ##### What's New + - [Added] Response with status 500 + + +#### getPaymentCodeOption + +- ##### What's New + - [Added] Response with status 500 + + +#### getPaymentSession + +- ##### What's New + - [Added] Possible nullable value true to property gid of schema PaymentSessionSerializer in response with status code 200 + - [Added] Response with status 500 + + +#### updatePaymentSession + +- ##### What's New + - [Added] property source of schema PaymentSessionRequestSerializer in request body + - [Added] Response with status 500 + + +#### updateRefundSession + +- ##### What's New + - [Added] Response with status 500 + + +#### getMerchantPaymentOption + +- ##### What's New + - [Added] Response with status 500 + + +#### patchMerchantPaymentOption + +- ##### What's New + - [Added] Response with status 500 + + +#### getMerchantAggregatorPaymentModeDetails + +- ##### What's New + - [Added] Response with status 500 + + +#### patchMerchantAggregatorPaymentModeDetails + +- ##### What's New + - [Added] Response with status 500 + + +#### getPGConfigAggregators + +- ##### What's New + - [Added] Response with status 500 + + +#### getMerchantRefundPriority + +- ##### What's New + - [Added] Response with status 500 + + +#### createMerchantRefundPriority + +- ##### What's New + - [Added] Response with status 500 + + +#### updateMerchantRefundPriority + +- ##### What's New + - [Added] Response with status 500 + + +#### createPaymentOrder + +- ##### What's New + - [Added] Response with status 500 + + +#### getMerchantAggregatorAppVersion + +- ##### What's New + - [Added] Response with status 500 + + +#### patchMerchantPaymentOptionVersion + +- ##### What's New + - [Added] Response with status 500 + + +### Rewards + + + +#### showGiveaways + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property items[].created_at of schema Giveaway in response with status code 200 + - [Deleted] Value format from date-time from property items[].updated_at of schema Giveaway in response with status code 200 + + +#### saveGiveAway + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema Giveaway in request body + - [Deleted] Value format from date-time from property updated_at of schema Giveaway in request body + - [Deleted] Value format from date-time from property created_at of schema Giveaway in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema Giveaway in response with status code 200 + + +#### getGiveawayById + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema Giveaway in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema Giveaway in response with status code 200 + + +#### updateGiveAway + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema Giveaway in request body + - [Deleted] Value format from date-time from property updated_at of schema Giveaway in request body + - [Deleted] Value format from date-time from property created_at of schema Giveaway in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema Giveaway in response with status code 200 + + +#### showOffers + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property [].created_at of schema Offer in response with status code 200 + - [Deleted] Value format from date-time from property [].updated_at of schema Offer in response with status code 200 + + +#### getOfferByName + +- ##### What's New + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema Offer in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema Offer in response with status code 200 + + +#### updateOfferByName + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema Offer in request body + - [Deleted] Value format from date-time from property updated_at of schema Offer in request body + - [Deleted] Value format from date-time from property created_at of schema Offer in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema Offer in response with status code 200 + + +#### updateUserStatus + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property updated_at of schema AppUser in request body + - [Deleted] Value format from date-time from property updated_at of schema AppUser in response with status code 200 + + +#### getUserDetails + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property user.created_at of schema RewardUser in response with status code 200 + - [Deleted] Value format from date-time from property user.updated_at of schema RewardUser in response with status code 200 + + +#### getUserPointsHistory + +- ##### What's New + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property items[].created_at of schema PointsHistory in response with status code 200 + - [Deleted] Value format from date-time from property items[].updated_at of schema PointsHistory in response with status code 200 + + +#### getRewardsConfiguration + +- ##### What's New + - [Added] Response with status 500 + + +### Share + + + +#### createShortLink + +- ##### What's New + - [Breaking] [Added] redirects.expiry, redirects.url made required in request body + - [Breaking] [Added] redirects.expiry, redirects.url made required in response with status code 200 + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property expire_at of schema ShortLinkReq in request body + - [Breaking] [Deleted] property meta of schema ShortLinkReq in request body + - [Breaking] [Deleted] property url.alias of schema UrlInfo in response with status code 200 + - [Deleted] Value format from date-time from property expire_at of schema ShortLinkRes in response with status code 200 + - [Deleted] Value format from date-time from property created_at of schema ShortLinkRes in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema ShortLinkRes in response with status code 200 + + +#### getShortLinks + +- ##### What's New + - [Breaking] [Added] items[].redirects.expiry, items[].redirects.url made required in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property items[].url.alias of schema UrlInfo in response with status code 200 + - [Deleted] Value format from date-time from property items[].expire_at of schema ShortLinkRes in response with status code 200 + - [Deleted] Value format from date-time from property items[].created_at of schema ShortLinkRes in response with status code 200 + - [Deleted] Value format from date-time from property items[].updated_at of schema ShortLinkRes in response with status code 200 + + +#### getShortLinkByHash + +- ##### What's New + - [Breaking] [Added] redirects.expiry, redirects.url made required in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property url.alias of schema UrlInfo in response with status code 200 + - [Deleted] Value format from date-time from property expire_at of schema ShortLinkRes in response with status code 200 + - [Deleted] Value format from date-time from property created_at of schema ShortLinkRes in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema ShortLinkRes in response with status code 200 + + +#### updateShortLinkById + +- ##### What's New + - [Breaking] [Added] redirects.expiry, redirects.url made required in request body + - [Breaking] [Added] redirects.expiry, redirects.url made required in response with status code 200 + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property expire_at of schema ShortLinkReq in request body + - [Breaking] [Deleted] property meta of schema ShortLinkReq in request body + - [Breaking] [Deleted] property url.alias of schema UrlInfo in response with status code 200 + - [Deleted] Value format from date-time from property expire_at of schema ShortLinkRes in response with status code 200 + - [Deleted] Value format from date-time from property created_at of schema ShortLinkRes in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema ShortLinkRes in response with status code 200 + + +### Theme + + + +#### getAllPages + +- ##### What's New + - [Added] property pages[].sections[].source of schema AvailablePageSchemaSections in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property pages[].sections[].__source of schema AvailablePageSchemaSections in response with status code 200 + - [Deleted] Value format from date-time from property pages[].created_at of schema AvailablePageSchema in response with status code 200 + - [Deleted] Value format from date-time from property pages[].updated_at of schema AvailablePageSchema in response with status code 200 + + +#### createPage + +- ##### What's New + - [Added] property sections[].source of schema AvailablePageSchemaSections in request body + - [Added] property sections[].source of schema AvailablePageSchemaSections in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property sections[].__source of schema AvailablePageSchemaSections in request body + - [Deleted] Value format from date-time from property created_at of schema AvailablePageSchema in request body + - [Deleted] Value format from date-time from property updated_at of schema AvailablePageSchema in request body + - [Breaking] [Deleted] property sections[].__source of schema AvailablePageSchemaSections in response with status code 200 + - [Deleted] Value format from date-time from property created_at of schema AvailablePageSchema in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema AvailablePageSchema in response with status code 200 + + +#### updateMultiplePages + +- ##### What's New + - [Added] property pages[].sections[].source of schema AvailablePageSchemaSections in request body + - [Added] property pages[].sections[].source of schema AvailablePageSchemaSections in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property pages[].sections[].__source of schema AvailablePageSchemaSections in request body + - [Deleted] Value format from date-time from property pages[].created_at of schema AvailablePageSchema in request body + - [Deleted] Value format from date-time from property pages[].updated_at of schema AvailablePageSchema in request body + - [Breaking] [Deleted] property pages[].sections[].__source of schema AvailablePageSchemaSections in response with status code 200 + - [Deleted] Value format from date-time from property pages[].created_at of schema AvailablePageSchema in response with status code 200 + - [Deleted] Value format from date-time from property pages[].updated_at of schema AvailablePageSchema in response with status code 200 + + +#### getPage + +- ##### What's New + - [Added] property sections[].source of schema AvailablePageSchemaSections in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property sections[].__source of schema AvailablePageSchemaSections in response with status code 200 + - [Deleted] Value format from date-time from property created_at of schema AvailablePageSchema in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema AvailablePageSchema in response with status code 200 + + +#### deletePage + +- ##### What's New + - [Added] property sections[].source of schema AvailablePageSchemaSections in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property sections[].__source of schema AvailablePageSchemaSections in response with status code 200 + - [Deleted] Value format from date-time from property created_at of schema AvailablePageSchema in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema AvailablePageSchema in response with status code 200 + + +#### updatePage + +- ##### What's New + - [Added] property sections[].source of schema AvailablePageSchemaSections in request body + - [Added] property sections[].source of schema AvailablePageSchemaSections in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Required path parameter socketId (type: string) + + - [Breaking] [Deleted] property sections[].__source of schema AvailablePageSchemaSections in request body + - [Deleted] Value format from date-time from property created_at of schema AvailablePageSchema in request body + - [Deleted] Value format from date-time from property updated_at of schema AvailablePageSchema in request body + - [Breaking] [Deleted] property sections[].__source of schema AvailablePageSchemaSections in response with status code 200 + - [Deleted] Value format from date-time from property created_at of schema AvailablePageSchema in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema AvailablePageSchema in response with status code 200 + +- ##### What's Changed + - [Changed] Path From /service/platform/theme/v1.0/company/{company_id}/application/{application_id}/{theme_id}/{page_value}/{socket_id} To /service/platform/theme/v1.0/company/{company_id}/application/{application_id}/{theme_id}/{page_value} + + +#### getCompanyLevelThemes + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property [].marketplace_theme_id.created_at of schema MarketplaceThemeId in response with status code 200 + - [Deleted] Value format from date-time from property [].marketplace_theme_id.updated_at of schema MarketplaceThemeId in response with status code 200 + + +#### getCompanyLevelPrivateThemes + +- ##### What's Deprecated + - [Deleted] Possible values from vue2,react from property [].theme_type of schema CompanyPrivateTheme in response with status code 200 + + +#### addMarketplaceThemeToCompany + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property marketplace_theme_id.created_at of schema MarketplaceThemeId in response with status code 200 + - [Deleted] Value format from date-time from property marketplace_theme_id.updated_at of schema MarketplaceThemeId in response with status code 200 + + +#### deleteCompanyTheme + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property marketplace_theme_id.created_at of schema MarketplaceThemeId in response with status code 200 + - [Deleted] Value format from date-time from property marketplace_theme_id.updated_at of schema MarketplaceThemeId in response with status code 200 + + +#### getApplicationThemes + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property [].created_at of schema ThemesSchema in response with status code 200 + - [Deleted] Value format from date-time from property [].updated_at of schema ThemesSchema in response with status code 200 + + +#### getThemeById + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema ThemesSchema in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema ThemesSchema in response with status code 200 + + +#### updateTheme + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema ThemesSchema in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema ThemesSchema in response with status code 200 + + +#### deleteTheme + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema ThemesSchema in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema ThemesSchema in response with status code 200 + + +#### addThemeToApplication + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema ThemesSchema in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema ThemesSchema in response with status code 200 + + +#### updateThemeName + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema ThemesSchema in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema ThemesSchema in response with status code 200 + + +#### applyTheme + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema ThemesSchema in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema ThemesSchema in response with status code 200 + + +#### duplicateTheme + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema ThemesSchema in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema ThemesSchema in response with status code 200 + + +#### getAppliedTheme + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema ThemesSchema in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema ThemesSchema in response with status code 200 + + +#### getThemeForPreview + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema ThemesSchema in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema ThemesSchema in response with status code 200 + + +#### upgradeTheme + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema ThemesSchema in response with status code 200 + - [Deleted] Value format from date-time from property updated_at of schema ThemesSchema in response with status code 200 + + +### User + + + +#### getCustomers + +- ##### What's Deprecated + - [Deleted] Possible values from user,programmatic from property items[].account_type of schema UserSearchSchema in response with status code 200 + - [Deleted] Value format from date-time from property items[].created_at of schema UserSearchSchema in response with status code 200 + - [Deleted] Value format from date-time from property items[].updated_at of schema UserSearchSchema in response with status code 200 + + +#### searchUsers + +- ##### What's Deprecated + - [Deleted] Possible values from user,programmatic from property users[].account_type of schema UserSearchSchema in response with status code 200 + - [Deleted] Value format from date-time from property users[].created_at of schema UserSearchSchema in response with status code 200 + - [Deleted] Value format from date-time from property users[].updated_at of schema UserSearchSchema in response with status code 200 + + +#### createUser + +- ##### What's Deprecated + - [Deleted] Possible values from user,programmatic from property user.account_type of schema UserSchema in response with status code 200 + - [Deleted] Value format from date-time from property user.created_at of schema UserSchema in response with status code 200 + - [Deleted] Value format from date-time from property user.updated_at of schema UserSchema in response with status code 200 + + +#### updateUser + +- ##### What's Deprecated + - [Deleted] Possible values from user,programmatic from property user.account_type of schema UserSchema in response with status code 200 + - [Deleted] Value format from date-time from property user.created_at of schema UserSchema in response with status code 200 + - [Deleted] Value format from date-time from property user.updated_at of schema UserSchema in response with status code 200 + + +#### getPlatformConfig + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property updated_at of schema PlatformSchema in response with status code 200 + - [Deleted] Value format from date-time from property created_at of schema PlatformSchema in response with status code 200 + + +#### updatePlatformConfig + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property updated_at of schema PlatformSchema in request body + - [Deleted] Value format from date-time from property created_at of schema PlatformSchema in request body + - [Deleted] Value format from date-time from property updated_at of schema PlatformSchema in response with status code 200 + - [Deleted] Value format from date-time from property created_at of schema PlatformSchema in response with status code 200 + + +#### createUserGroup + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema UserGroupResponseSchema in response with status code 201 + - [Deleted] Value format from date-time from property modified_at of schema UserGroupResponseSchema in response with status code 201 + + +#### getUserGroups + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property items[].created_at of schema UserGroupResponseSchema in response with status code 200 + - [Deleted] Value format from date-time from property items[].modified_at of schema UserGroupResponseSchema in response with status code 200 + + +#### updateUserGroup + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema UserGroupResponseSchema in response with status code 200 + - [Deleted] Value format from date-time from property modified_at of schema UserGroupResponseSchema in response with status code 200 + + +#### getUserGroupById + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema UserGroupResponseSchema in response with status code 200 + - [Deleted] Value format from date-time from property modified_at of schema UserGroupResponseSchema in response with status code 200 + + +#### updateUserGroupPartially + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema UserGroupResponseSchema in response with status code 200 + - [Deleted] Value format from date-time from property modified_at of schema UserGroupResponseSchema in response with status code 200 + + +#### getUserAttributeDefinitions + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property items[].created_at of schema UserAttributeDefinition in response with status code 200 + - [Deleted] Value format from date-time from property items[].modified_at of schema UserAttributeDefinition in response with status code 200 + + +#### updateUserAttributeDefinition + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema UserAttributeDefinition in response with status code 200 + - [Deleted] Value format from date-time from property modified_at of schema UserAttributeDefinition in response with status code 200 + + +#### getUserAttributeDefinitionById + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema UserAttributeDefinition in response with status code 200 + - [Deleted] Value format from date-time from property modified_at of schema UserAttributeDefinition in response with status code 200 + + +#### updateUserAttribute + +- ##### What's New + - [Added] property customer_overriden of schema CreateUserAttributeRequest in request body + - [Added] property customer_overriden of schema UserAttributeResponse in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property customer_overridden of schema CreateUserAttribute in request body + - [Breaking] [Deleted] property customer_overridden of schema UserAttribute in response with status code 200 + + +#### getUserAttribute + +- ##### What's New + - [Added] property customer_overriden of schema UserAttributeResponse in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property customer_overridden of schema UserAttribute in response with status code 200 + + +#### getUserAttributesForUser + +- ##### What's New + - [Added] property items[].customer_overriden of schema UserAttributeResponse in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property items[].customer_overridden of schema UserAttribute in response with status code 200 + + +#### getUserAttributeById + +- ##### What's New + - [Added] property customer_overriden of schema UserAttributeResponse in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property customer_overridden of schema UserAttribute in response with status code 200 + + +### Webhook + + + +#### fetchAllEventConfigurations + +- ##### What's New + - [Added] property event_configs[].subscriber_event_mapping.topic of schema SubscriberEventMapping in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property event_configs[].type of schema EventConfig in response with status code 200 + - [Breaking] [Deleted] property event_configs[].modified_by of schema EventConfig in response with status code 200 + - [Breaking] [Deleted] property event_configs[].subscriber_event_mapping.broadcaster_config of schema SubscriberEventMapping in response with status code 200 + - [Deleted] Value format from date-time from property event_configs[].subscriber_event_mapping.created_on of schema SubscriberEventMapping in response with status code 200 + - [Deleted] Value format from date-time from property event_configs[].created_on of schema EventConfig in response with status code 200 + - [Deleted] Value format from date-time from property event_configs[].updated_on of schema EventConfig in response with status code 200 + - [Breaking] [Deleted] Security in Request + + +#### registerSubscriberToEventV2 + +- ##### What's Deprecated + - [Breaking] [Deleted] property type of schema SubscriberConfigPostRequestV2 in request body + - [Deleted] Possible values from kafka,sqs,rest,event_bridge,pub_sub,temporal from property provider of schema SubscriberConfigPostRequestV2 in request body + - [Deleted] Type from object from property association of schema Association in request body + - [Deleted] Type from object from property auth_meta of schema AuthMeta in request body + - [Deleted] Possible values from hmac from property auth_meta.type of schema AuthMeta in request body + - [Breaking] [Deleted] property events[].queue of schema Events in request body + - [Breaking] [Deleted] property events[].event_bridge_name of schema Events in request body + - [Breaking] [Deleted] property events[].workflow_name of schema Events in request body + - [Breaking] [Deleted] property events[].detail_type of schema Events in request body + - [Deleted] Type from object from property of schema SubscriberConfigResult in response with status code 200 + - [Deleted] Possible values from kafka,sqs,rest,event_bridge,pub_sub,temporal from property provider of schema SubscriberConfigResult in response with status code 200 + - [Deleted] Type from object from property association of schema AssociationResp in response with status code 200 + - [Deleted] Value format from date-time from property updated_on of schema SubscriberConfigResult in response with status code 200 + - [Deleted] Value format from date-time from property created_on of schema SubscriberConfigResult in response with status code 200 + - [Deleted] Type from object from property auth_meta of schema AuthMeta in response with status code 200 + - [Deleted] Possible values from hmac from property auth_meta.type of schema AuthMeta in response with status code 200 + - [Breaking] [Deleted] Security in Request + + +#### updateSubscriberV2 + +- ##### What's Deprecated + - [Breaking] [Deleted] property type of schema SubscriberConfigUpdateRequestV2 in request body + - [Deleted] Possible values from kafka,sqs,rest,event_bridge,pub_sub,temporal from property provider of schema SubscriberConfigUpdateRequestV2 in request body + - [Deleted] Type from object from property association of schema Association in request body + - [Deleted] Type from object from property auth_meta of schema AuthMeta in request body + - [Deleted] Possible values from hmac from property auth_meta.type of schema AuthMeta in request body + - [Breaking] [Deleted] property events[].queue of schema Events in request body + - [Breaking] [Deleted] property events[].event_bridge_name of schema Events in request body + - [Breaking] [Deleted] property events[].workflow_name of schema Events in request body + - [Breaking] [Deleted] property events[].detail_type of schema Events in request body + - [Deleted] Type from object from property of schema SubscriberConfigResult in response with status code 200 + - [Deleted] Possible values from kafka,sqs,rest,event_bridge,pub_sub,temporal from property provider of schema SubscriberConfigResult in response with status code 200 + - [Deleted] Type from object from property association of schema AssociationResp in response with status code 200 + - [Deleted] Value format from date-time from property updated_on of schema SubscriberConfigResult in response with status code 200 + - [Deleted] Value format from date-time from property created_on of schema SubscriberConfigResult in response with status code 200 + - [Deleted] Type from object from property auth_meta of schema AuthMeta in response with status code 200 + - [Deleted] Possible values from hmac from property auth_meta.type of schema AuthMeta in response with status code 200 + + +#### registerSubscriberToEvent + +- ##### What's Deprecated + - [Breaking] [Deleted] property type of schema SubscriberConfigPost in request body + - [Deleted] Type from object from property association of schema Association in request body + - [Deleted] Type from object from property auth_meta of schema AuthMeta in request body + - [Deleted] Possible values from hmac from property auth_meta.type of schema AuthMeta in request body + - [Deleted] Type from object from property of schema SubscriberConfigResult in response with status code 200 + - [Deleted] Possible values from kafka,sqs,rest,event_bridge,pub_sub,temporal from property provider of schema SubscriberConfigResult in response with status code 200 + - [Deleted] Type from object from property association of schema AssociationResp in response with status code 200 + - [Deleted] Value format from date-time from property updated_on of schema SubscriberConfigResult in response with status code 200 + - [Deleted] Value format from date-time from property created_on of schema SubscriberConfigResult in response with status code 200 + - [Deleted] Type from object from property auth_meta of schema AuthMeta in response with status code 200 + - [Deleted] Possible values from hmac from property auth_meta.type of schema AuthMeta in response with status code 200 + + +#### getSubscribersByCompany + +- ##### What's New + - [Added] property items[].event_configs[].subscriber_event_mapping.topic of schema SubscriberEventMapping in response with status code 200 + +- ##### What's Deprecated + - [Deleted] Type from object from property of schema SubscriberConfigList in response with status code 200 + - [Deleted] Type from object from property items[] of schema SubscriberDetails in response with status code 200 + - [Deleted] Possible values from kafka,sqs,rest,event_bridge,pub_sub,temporal from property items[].provider of schema SubscriberDetails in response with status code 200 + - [Deleted] Type from object from property items[].association of schema AssociationResp in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property items[].custom_headers of schema SubscriberDetails in response with status code 200 + - [Deleted] Value format from date-time from property items[].updated_on of schema SubscriberDetails in response with status code 200 + - [Deleted] Value format from date-time from property items[].created_on of schema SubscriberDetails in response with status code 200 + - [Deleted] Type from object from property items[].auth_meta of schema AuthMeta in response with status code 200 + - [Deleted] Possible values from hmac from property items[].auth_meta.type of schema AuthMeta in response with status code 200 + - [Breaking] [Deleted] property items[].event_configs[].type of schema EventConfig in response with status code 200 + - [Breaking] [Deleted] property items[].event_configs[].modified_by of schema EventConfig in response with status code 200 + - [Breaking] [Deleted] property items[].event_configs[].subscriber_event_mapping.broadcaster_config of schema SubscriberEventMapping in response with status code 200 + - [Deleted] Value format from date-time from property items[].event_configs[].subscriber_event_mapping.created_on of schema SubscriberEventMapping in response with status code 200 + - [Deleted] Value format from date-time from property items[].event_configs[].created_on of schema EventConfig in response with status code 200 + - [Deleted] Value format from date-time from property items[].event_configs[].updated_on of schema EventConfig in response with status code 200 + - [Breaking] [Deleted] Security in Request + + +#### updateSubscriberConfig + +- ##### What's Deprecated + - [Breaking] [Deleted] property type of schema SubscriberConfigUpdate in request body + - [Deleted] Type from object from property association of schema Association in request body + - [Deleted] Type from object from property auth_meta of schema AuthMeta in request body + - [Deleted] Possible values from hmac from property auth_meta.type of schema AuthMeta in request body + - [Deleted] Type from object from property of schema SubscriberConfigResult in response with status code 200 + - [Deleted] Possible values from kafka,sqs,rest,event_bridge,pub_sub,temporal from property provider of schema SubscriberConfigResult in response with status code 200 + - [Deleted] Type from object from property association of schema AssociationResp in response with status code 200 + - [Deleted] Value format from date-time from property updated_on of schema SubscriberConfigResult in response with status code 200 + - [Deleted] Value format from date-time from property created_on of schema SubscriberConfigResult in response with status code 200 + - [Deleted] Type from object from property auth_meta of schema AuthMeta in response with status code 200 + - [Deleted] Possible values from hmac from property auth_meta.type of schema AuthMeta in response with status code 200 + + +#### upsertSubscriberEvent + +- ##### What's Deprecated + - [Breaking] [Deleted] method upsertSubscriberEvent + + + +#### getSubscriberById + +- ##### What's New + - [Added] property event_configs[].subscriber_event_mapping.topic of schema SubscriberEventMapping in response with status code 200 + +- ##### What's Deprecated + - [Deleted] Type from object from property of schema SubscriberDetails in response with status code 200 + - [Deleted] Possible values from kafka,sqs,rest,event_bridge,pub_sub,temporal from property provider of schema SubscriberDetails in response with status code 200 + - [Deleted] Type from object from property association of schema AssociationResp in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property custom_headers of schema SubscriberDetails in response with status code 200 + - [Deleted] Value format from date-time from property updated_on of schema SubscriberDetails in response with status code 200 + - [Deleted] Value format from date-time from property created_on of schema SubscriberDetails in response with status code 200 + - [Deleted] Type from object from property auth_meta of schema AuthMeta in response with status code 200 + - [Deleted] Possible values from hmac from property auth_meta.type of schema AuthMeta in response with status code 200 + - [Breaking] [Deleted] property event_configs[].type of schema EventConfig in response with status code 200 + - [Breaking] [Deleted] property event_configs[].modified_by of schema EventConfig in response with status code 200 + - [Breaking] [Deleted] property event_configs[].subscriber_event_mapping.broadcaster_config of schema SubscriberEventMapping in response with status code 200 + - [Deleted] Value format from date-time from property event_configs[].subscriber_event_mapping.created_on of schema SubscriberEventMapping in response with status code 200 + - [Deleted] Value format from date-time from property event_configs[].created_on of schema EventConfig in response with status code 200 + - [Deleted] Value format from date-time from property event_configs[].updated_on of schema EventConfig in response with status code 200 + - [Breaking] [Deleted] Security in Request + + +#### getSubscribersByExtensionId + +- ##### What's New + - [Added] property items[].event_configs[].subscriber_event_mapping.topic of schema SubscriberEventMapping in response with status code 200 + +- ##### What's Deprecated + - [Deleted] Type from object from property of schema SubscriberConfigList in response with status code 200 + - [Deleted] Type from object from property items[] of schema SubscriberDetails in response with status code 200 + - [Deleted] Possible values from kafka,sqs,rest,event_bridge,pub_sub,temporal from property items[].provider of schema SubscriberDetails in response with status code 200 + - [Deleted] Type from object from property items[].association of schema AssociationResp in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property items[].custom_headers of schema SubscriberDetails in response with status code 200 + - [Deleted] Value format from date-time from property items[].updated_on of schema SubscriberDetails in response with status code 200 + - [Deleted] Value format from date-time from property items[].created_on of schema SubscriberDetails in response with status code 200 + - [Deleted] Type from object from property items[].auth_meta of schema AuthMeta in response with status code 200 + - [Deleted] Possible values from hmac from property items[].auth_meta.type of schema AuthMeta in response with status code 200 + - [Breaking] [Deleted] property items[].event_configs[].type of schema EventConfig in response with status code 200 + - [Breaking] [Deleted] property items[].event_configs[].modified_by of schema EventConfig in response with status code 200 + - [Breaking] [Deleted] property items[].event_configs[].subscriber_event_mapping.broadcaster_config of schema SubscriberEventMapping in response with status code 200 + - [Deleted] Value format from date-time from property items[].event_configs[].subscriber_event_mapping.created_on of schema SubscriberEventMapping in response with status code 200 + - [Deleted] Value format from date-time from property items[].event_configs[].created_on of schema EventConfig in response with status code 200 + - [Deleted] Value format from date-time from property items[].event_configs[].updated_on of schema EventConfig in response with status code 200 + - [Breaking] [Deleted] Security in Request + + +#### downloadDeliveryReport + +- ##### What's New + - [Added] method downloadDeliveryReport + + + +#### pingWebhook + +- ##### What's New + - [Added] method pingWebhook + + + +#### getReportFilters + +- ##### What's New + - [Added] method getReportFilters + + + +#### getHistoricalReports + +- ##### What's New + - [Added] method getHistoricalReports + + + +#### cancelJobByName + +- ##### What's New + - [Added] method cancelJobByName + + + +#### getDeliveryReports + +- ##### What's New + - [Added] method getDeliveryReports + + + +## Public Client + + + +### Configuration + + + +#### searchApplication + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property application.created_at of schema Application in response with status code 200 + - [Deleted] Value format from date-time from property application.updated_at of schema Application in response with status code 200 + + +### Content + + + +#### getBasicDetails + +- ##### What's Deprecated + - [Breaking] [Deleted] method getBasicDetails + + + +#### getMenuContent + +- ##### What's Deprecated + - [Breaking] [Deleted] method getMenuContent + + + +#### getMenuContentByType + +- ##### What's Deprecated + - [Breaking] [Deleted] method getMenuContentByType + + + +#### getAnalyticsTags + +- ##### What's Deprecated + - [Breaking] [Deleted] method getAnalyticsTags + + + +#### getCustomPage + +- ##### What's Deprecated + - [Breaking] [Deleted] method getCustomPage + + + +#### getFooterContent + +- ##### What's Deprecated + - [Breaking] [Deleted] method getFooterContent + + + +#### getHomePageContent + +- ##### What's Deprecated + - [Breaking] [Deleted] method getHomePageContent + + + +#### getNavbar + +- ##### What's Deprecated + - [Breaking] [Deleted] method getNavbar + + + +#### getPricingBanner + +- ##### What's Deprecated + - [Breaking] [Deleted] method getPricingBanner + + + +#### getAllTags + +- ##### What's Deprecated + - [Breaking] [Deleted] method getAllTags + + + +#### getCredentialsByEntity + +- ##### What's New + - [Added] Response with status 4XX + +- ##### What's Deprecated + - [Breaking] [Deleted] property items[]._id of schema CredentialSchema in response with status code 200 + - [Breaking] [Deleted] properties items[].configuration.token, items[].configuration.host in response with status code 200 + - [Deleted] Possible values from partner,platform from property items[].entity_type of schema CredentialSchema in response with status code 200 + - [Breaking] [Deleted] property items[].updated_at of schema CredentialSchema in response with status code 200 + - [Breaking] [Deleted] property items[].created_at of schema CredentialSchema in response with status code 200 + - [Breaking] [Deleted] property items[].__v of schema CredentialSchema in response with status code 200 + + +### Partner + + + +#### getPanelExtensionDetails + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property created_at of schema ExtensionUsingSlug in response with status code 200 + - [Deleted] Value format from date-time from property modified_at of schema ExtensionUsingSlug in response with status code 200 + - [Deleted] Possible values from free,one_time,recurring from property plan_type of schema ExtensionUsingSlug in response with status code 200 + - [Deleted] Value format from int64 from property plans[].recurring.recurring_time of schema Recurring in response with status code 200 + + +### Webhook + + + +#### fetchAllWebhookEvents + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property event_configs[].created_on of schema EventConfig in response with status code 200 + - [Deleted] Value format from date-time from property event_configs[].updated_on of schema EventConfig in response with status code 200 + + +#### queryWebhookEventDetails + +- ##### What's Deprecated + - [Deleted] Value format from date-time from property event_configs[].created_on of schema EventConfig in response with status code 200 + - [Deleted] Value format from date-time from property event_configs[].updated_on of schema EventConfig in response with status code 200 + + +# CHANGE LOG (1.4.14) - 1.9.5 + +## Application Client + +- [Added] Finance class in application client + + +### Cart + + + +#### getCart + +- ##### What's New + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property applied_promo_details[].promotion_type of schema AppliedPromotion in response with status code 200 + - [Added] property items[].product.action.page of schema ProductAction in response with status code 200 + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 + + +#### addItems + +- ##### What's New + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property cart.applied_promo_details[].promotion_type of schema AppliedPromotion in response with status code 200 + - [Added] property cart.items[].product.action.page of schema ProductAction in response with status code 200 + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property cart.items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 + + +#### updateCart + +- ##### What's New + - [Added] property free_gift_items of schema UpdateCartCreation in request body + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property cart.applied_promo_details[].promotion_type of schema AppliedPromotion in response with status code 200 + - [Added] property cart.items[].product.action.page of schema ProductAction in response with status code 200 + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property cart.items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 + + +#### getCoupons + +- ##### What's New + - [Breaking] [Added] Value format date-time to property available_coupon_list[].start_date of schema Coupon in response with status code 200 + - [Breaking] [Added] Value format date-time to property available_coupon_list[].end_date of schema Coupon in response with status code 200 + + +#### applyCoupon + +- ##### What's New + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property applied_promo_details[].promotion_type of schema AppliedPromotion in response with status code 201 + - [Added] property items[].product.action.page of schema ProductAction in response with status code 201 + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 201 + + +#### removeCoupon + +- ##### What's New + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property applied_promo_details[].promotion_type of schema AppliedPromotion in response with status code 200 + - [Added] property items[].product.action.page of schema ProductAction in response with status code 200 + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 + + +#### getBulkDiscountOffers + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### applyRewardPoints + +- ##### What's New + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property applied_promo_details[].promotion_type of schema AppliedPromotion in response with status code 200 + - [Added] property items[].product.action.page of schema ProductAction in response with status code 200 + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 + + +#### getAddresses + +- ##### What's New + - [Added] property validation_config of schema GetAddressesResult in response with status code 200 + + +#### addAddress + +- ##### What's New + - [Added] Response with status 422 + + +#### selectAddress + +- ##### What's New + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property applied_promo_details[].promotion_type of schema AppliedPromotion in response with status code 201 + - [Added] property items[].product.action.page of schema ProductAction in response with status code 201 + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 201 + + +#### selectPaymentMode + +- ##### What's New + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property applied_promo_details[].promotion_type of schema AppliedPromotion in response with status code 200 + - [Added] property items[].product.action.page of schema ProductAction in response with status code 200 + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 + + +#### validateCouponForPayment + +- ##### What's New + - [Added] property coupon_validity.error_en of schema CouponValidity in response with status code 200 + + +#### getShipments + +- ##### What's New + - [Breaking] [Added] Possible values HomeDelivery,PickAtStore to property shipments[].order_type of schema ShipmentResult in response with status code 200 + - [Added] property shipments[].items[].product.action.page of schema ProductAction in response with status code 200 + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property shipments[].items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getCartSharedItems + +- ##### What's New + - [Added] property cart.items[].product.action.page of schema ProductAction in response with status code 200 + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property cart.items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 + - [Added] property cart.items[].product.action.page of schema ProductAction in response with status code 404 + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property cart.items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 404 + + +#### updateCartWithSharedItems + +- ##### What's New + - [Added] property cart.items[].product.action.page of schema ProductAction in response with status code 200 + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property cart.items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 + + +#### getPromotionOffers + +- ##### What's New + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property available_promotions[].promotion_type of schema PromotionOffer in response with status code 200 + - [Added] property available_promotions[].free_gift_items[].article_price of schema FreeGiftItems in response with status code 200 + - [Added] property available_promotions[].free_gift_items[].available_sizes of schema FreeGiftItems in response with status code 200 + - [Added] property available_promotions[].free_gift_items[].size of schema FreeGiftItems in response with status code 200 + + +#### getLadderOffers + +- ##### What's New + - [Added] property available_offers[].free_gift_items[].article_price of schema FreeGiftItems in response with status code 200 + - [Added] property available_offers[].free_gift_items[].available_sizes of schema FreeGiftItems in response with status code 200 + - [Added] property available_offers[].free_gift_items[].size of schema FreeGiftItems in response with status code 200 + + +#### getPromotionPaymentOffers + +- ##### What's New + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property promotions[].promotion_type of schema PromotionPaymentOffer in response with status code 200 + + +#### checkoutCartV2 + +- ##### What's New + - [Added] property custom_meta[] of schema CartCheckoutDetailV2Creation in request body + - [Added] properties customer_details.email, customer_details.mobile, customer_details.name in request body + - [Breaking] [Added] customer_details.mobile made required in request body + - [Breaking] [Added] Possible values HomeDelivery,PickAtStore to property order_type of schema CartCheckoutDetailV2Creation in request body + - [Added] property cart.items[].product.action.page of schema ProductAction in response with status code 200 + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property cart.items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property customer_details of schema CartCheckoutDetailV2Request in request body + +- ##### What's Changed + - [Breaking] [Changed] Type from object to array of property custom_meta of schema CartCheckoutDetailV2Request in request body + + +#### checkoutCart + +- ##### What's New + - [Added] method checkoutCart + + + +### Catalog + + + +#### getProductDetailBySlug + +- ##### What's New + - [Breaking] [Added] Possible values set,standard,composite,digital to property item_type of schema ProductDetail in response with status code 200 + + +#### getProductComparisonBySlugs + +- ##### What's New + - [Breaking] [Added] Possible values set,standard,composite,digital to property items[].item_type of schema ProductDetail in response with status code 200 + + +#### getSimilarComparisonProductBySlug + +- ##### What's New + - [Breaking] [Added] Possible values set,standard,composite,digital to property items[].item_type of schema ProductDetail in response with status code 200 + + +#### getComparedFrequentlyProductBySlug + +- ##### What's New + - [Breaking] [Added] Possible values set,standard,composite,digital to property similars.items[].item_type of schema ProductDetail in response with status code 200 + + +#### getProductStockByIds + +- ##### What's New + - [Added] properties items[].identifier.ean, items[].identifier.sku_code, items[].identifier.alu, items[].identifier.upc, items[].identifier.isbn in response with status code 200 + +- ##### What's Deprecated + - [Deleted] Type from object from property items[].identifier of schema ProductStockStatusItem in response with status code 200 + + +#### getProductStockForTimeByIds + +- ##### What's New + - [Added] properties items[].identifier.ean, items[].identifier.sku_code, items[].identifier.alu, items[].identifier.upc, items[].identifier.isbn in response with status code 200 + +- ##### What's Deprecated + - [Deleted] Type from object from property items[].identifier of schema ProductStockStatusItem in response with status code 200 + + +#### getProducts + +- ##### What's New + - [Breaking] [Added] Possible values set,standard,composite,digital to property items[].item_type of schema ProductListingDetail in response with status code 200 + + +#### getHomeProducts + +- ##### What's New + - [Breaking] [Added] Possible values set,standard,composite,digital to property items[].item_type of schema ProductListingDetail in response with status code 200 + + +#### getCollectionItemsBySlug + +- ##### What's New + - [Breaking] [Added] Possible values set,standard,composite,digital to property items[].item_type of schema ProductListingDetail in response with status code 200 + + +#### getFollowedListing + +- ##### What's New + - [Breaking] [Added] Possible values set,standard,composite,digital to property items[].item_type of schema ProductListingDetail in response with status code 200 + + +#### getStores + +- ##### What's New + - [Added] property items[].contacts of schema Store in response with status code 200 + + +#### getProductPriceBySlug + +- ##### What's New + - [Breaking] [Added] Possible values set,standard,composite,digital to property item_type of schema ProductSizePriceResponseV3 in response with status code 200 + + +#### getProductSellersBySlug + +- ##### What's New + - [Breaking] [Added] Possible values set,standard,composite,digital to property items[].item_type of schema ProductSizePriceResponseV3 in response with status code 200 + + +### Common + + + +#### searchApplication + +- ##### What's New + - [Breaking] [Added] Possible values website-and-mobile-apps,store to property application.channel_type of schema Application in response with status code 200 + - [Breaking] [Added] Value format date-time to property application.created_at of schema Application in response with status code 200 + - [Breaking] [Added] Value format date-time to property application.updated_at of schema Application in response with status code 200 + + +### Communication + + + +#### upsertAppPushtoken + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema PushtokenRes in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema PushtokenRes in response with status code 200 + - [Breaking] [Added] Value format date-time to property expired_at of schema PushtokenRes in response with status code 200 + + +### Configuration + + + +#### getApplication + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema Application in response with status code 200 + - [Breaking] [Added] Value format date-time to property modified_at of schema Application in response with status code 200 + - [Breaking] [Added] Value format date-time to property tokens[].created_at of schema TokenSchema in response with status code 200 + + +#### getOwnerInfo + +- ##### What's New + - [Breaking] [Added] Value format date-time to property application_info.company_info.created_on of schema CompanyInfo in response with status code 200 + - [Breaking] [Added] Possible values home,registered,office to property application_info.company_info.addresses[].address_type of schema CompanyAboutAddress in response with status code 200 + - [Breaking] [Added] Value format date-time to property application_info.created_at of schema ApplicationInfo in response with status code 200 + - [Breaking] [Added] Value format date-time to property application_info.tokens[].created_at of schema TokenSchema in response with status code 200 + + +#### getIntegrationTokens + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema AppTokenResponseSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property modified_at of schema AppTokenResponseSchema in response with status code 200 + + +#### getFeatures + +- ##### What's New + - [Breaking] [Added] Value format date-time to property feature.created_at of schema AppFeature in response with status code 200 + - [Breaking] [Added] Value format date-time to property feature.modified_at of schema AppFeature in response with status code 200 + + +#### getContactInfo + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema ApplicationInformation in response with status code 200 + - [Breaking] [Added] Value format date-time to property modified_at of schema ApplicationInformation in response with status code 200 + + +#### getCurrencies + +- ##### What's New + - [Breaking] [Added] Value format date-time to property items[].created_at of schema Currency in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].modified_at of schema Currency in response with status code 200 + + +#### getCurrencyById + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema Currency in response with status code 200 + - [Breaking] [Added] Value format date-time to property modified_at of schema Currency in response with status code 200 + + +#### getAppCurrencies + +- ##### What's New + - [Breaking] [Added] Value format date-time to property supported_currency[].created_at of schema Currency in response with status code 200 + - [Breaking] [Added] Value format date-time to property supported_currency[].modified_at of schema Currency in response with status code 200 + - [Breaking] [Added] Value format date-time to property created_at of schema AppCurrencyResponseSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property modified_at of schema AppCurrencyResponseSchema in response with status code 200 + + +#### getAppStaffList + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getAppStaffs + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +### Content + + + +#### getAnnouncements + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### getBlog + +- ##### What's New + - [Added] query parameter preview (type: boolean) + + - [Breaking] [Added] Value format date-time to property publish_date of schema BlogSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property date_meta.created_on of schema DateMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property date_meta.modified_on of schema DateMeta in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### getBlogs + +- ##### What's New + - [Breaking] [Added] Value format date-time to property items[].publish_date of schema BlogSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].date_meta.created_on of schema DateMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].date_meta.modified_on of schema DateMeta in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + +- ##### What's Changed + - [Changed] Path From /service/application/content/v1.0/blogs/ To /service/application/content/v1.0/blogs + + +#### getDataLoaders + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### getFaqs + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### getFaqCategories + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### getFaqBySlug + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### getFaqCategoryBySlug + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### getFaqsByCategorySlug + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### getLandingPage + +- ##### What's New + - [Breaking] [Added] Value format date-time to property date_meta.created_on of schema DateMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property date_meta.modified_on of schema DateMeta in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### getLegalInformation + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### getNavigations + +- ##### What's New + - [Breaking] [Added] Value format date-time to property items[].date_meta.created_on of schema DateMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].date_meta.modified_on of schema DateMeta in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + +- ##### What's Changed + - [Changed] Path From /service/application/content/v1.0/navigations/ To /service/application/content/v1.0/navigations + + +#### getSEOConfiguration + +- ##### What's New + - [Breaking] [Added] Value format date-time to property seo.created_at of schema SeoSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property seo.updated_at of schema SeoSchema in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### getSEOMarkupSchemas + +- ##### What's New + - [Breaking] [Added] Possible values 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 to property items[].page_type of schema SEOSchemaMarkupTemplate in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### getSlideshows + +- ##### What's New + - [Breaking] [Added] Value format date-time to property items[].date_meta.created_on of schema DateMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].date_meta.modified_on of schema DateMeta in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + +- ##### What's Changed + - [Changed] Path From /service/application/content/v1.0/slideshow/ To /service/application/content/v1.0/slideshow + + +#### getSlideshow + +- ##### What's New + - [Breaking] [Added] Value format date-time to property date_meta.created_on of schema DateMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property date_meta.modified_on of schema DateMeta in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### getSupportInformation + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema Support in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema Support in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### getTags + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### getPage + +- ##### What's New + - [Breaking] [Added] Value format date-time to property date_meta.created_on of schema DateMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property date_meta.modified_on of schema DateMeta in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### getPages + +- ##### What's New + - [Breaking] [Added] Value format date-time to property items[].date_meta.created_on of schema DateMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].date_meta.modified_on of schema DateMeta in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + +- ##### What's Changed + - [Changed] Path From /service/application/content/v2.0/pages/ To /service/application/content/v2.0/pages + + +#### getCustomObject + +- ##### What's Deprecated + - [Breaking] [Deleted] method getCustomObject + + + +#### getCustomFields + +- ##### What's Deprecated + - [Breaking] [Deleted] method getCustomFields + + + +#### getCustomObjectBySlug + +- ##### What's New + - [Added] method getCustomObjectBySlug + + + +#### getCustomFieldsByResourceId + +- ##### What's New + - [Added] method getCustomFieldsByResourceId + + + +### FileStorage + + + +#### startUpload + +- ##### What's Deprecated + - [Breaking] [Deleted] property cdn of schema StartResponse in response with status code 200 + +- ##### What's Changed + - [Breaking] [Changed] cdn made optional in response with status code 200 + - [Changed] Path From /service/application/assets/v1.0/namespaces/{namespace}/upload/start To /service/application/assets/v2.0/namespaces/{namespace}/upload/start + + +#### completeUpload + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_on of schema FileUploadComplete in response with status code 200 + - [Breaking] [Added] Value format date-time to property modified_on of schema FileUploadComplete in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property cdn of schema StartResponse in request body + +- ##### What's Changed + - [Breaking] [Changed] cdn made optional in request body + - [Changed] Path From /service/application/assets/v1.0/namespaces/{namespace}/upload/complete To /service/application/assets/v2.0/namespaces/{namespace}/upload/complete + + +### Logistic + + + +#### getAllCountries + +- ##### What's New + - [Added] properties results[].logistics.dp.fm_priority, results[].logistics.dp.lm_priority, results[].logistics.dp.rvp_priority, results[].logistics.dp.payment_mode, results[].logistics.dp.operations, results[].logistics.dp.area_code, results[].logistics.dp.assign_dp_from_sb, results[].logistics.dp.internal_account_id, results[].logistics.dp.external_account_id, results[].logistics.dp.transport_mode in response with status code 200 + - [Added] results[].logistics.dp.fm_priority, results[].logistics.dp.lm_priority, results[].logistics.dp.operations, results[].logistics.dp.payment_mode, results[].logistics.dp.rvp_priority made required in response with status code 200 + + +#### getCountries + +- ##### What's New + - [Added] query parameter hierarchy (type: string) + + + +#### getLocalities + +- ##### What's New + - [Added] property items[].localities[].code of schema LocalityParent in response with status code 200 + - [Added] property items[].localities[].custom_meta of schema LocalityParent in response with status code 200 + - [Added] property items[].custom_meta of schema Localities in response with status code 200 + + +#### getLocality + +- ##### What's New + - [Added] property localities[].code of schema LocalityParent in response with status code 200 + - [Added] property localities[].custom_meta of schema LocalityParent in response with status code 200 + - [Added] property code of schema GetLocality in response with status code 200 + - [Added] property custom_meta of schema GetLocality in response with status code 200 + + +#### getCourierPartners + +- ##### What's New + - [Added] method getCourierPartners + + + +#### getDeliveryPromise + +- ##### What's New + - [Added] method getDeliveryPromise + + + +### Order + + + +#### getOrders + +- ##### What's New + - [Breaking] [Added] Possible values HomeDelivery,PickAtStore,Digital to property items[].shipments[].order_type of schema Shipments in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].shipments[].invoice.updated_date of schema Invoice in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].shipments[].returnable_date of schema Shipments in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].shipments[].shipment_created_at of schema Shipments in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].shipments[].bags[].delivery_date of schema Bags in response with status code 200 + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items to property items[].shipments[].bags[].applied_promos[].promotion_type of schema AppliedPromos in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].shipments[].bags[].returnable_date of schema Bags in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].shipments[].bags[].current_status.updated_at of schema CurrentStatus in response with status code 200 + - [Breaking] [Added] Possible values return,forward to property items[].shipments[].bags[].current_status.journey_type of schema CurrentStatus in response with status code 200 + - [Added] property items[].shipments[].bags[].charges of schema Bags in response with status code 200 + - [Breaking] [Added] Possible values home,office,store to property items[].shipments[].delivery_address.address_type of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].shipments[].delivery_address.created_at of schema Address in response with status code 200 + - [Breaking] [Added] Possible values store,delivery,billing to property items[].shipments[].delivery_address.address_category of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].shipments[].delivery_address.updated_at of schema Address in response with status code 200 + - [Breaking] [Added] Possible values home,office,store to property items[].shipments[].billing_address.address_type of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].shipments[].billing_address.created_at of schema Address in response with status code 200 + - [Breaking] [Added] Possible values store,delivery,billing to property items[].shipments[].billing_address.address_category of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].shipments[].billing_address.updated_at of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].shipments[].delivery_date of schema Shipments in response with status code 200 + - [Added] property items[].shipments[].charges of schema Shipments in response with status code 200 + - [Added] property items[].charges of schema OrderSchema in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property items[].shipments[].bags[].item.l2_category of schema Item in response with status code 200 + - [Breaking] [Deleted] property items[].shipments[].bags[].item.l2_category_id of schema Item in response with status code 200 + + +#### getOrderById + +- ##### What's New + - [Breaking] [Added] Possible values HomeDelivery,PickAtStore,Digital to property order.shipments[].order_type of schema Shipments in response with status code 200 + - [Breaking] [Added] Value format date-time to property order.shipments[].invoice.updated_date of schema Invoice in response with status code 200 + - [Breaking] [Added] Value format date-time to property order.shipments[].returnable_date of schema Shipments in response with status code 200 + - [Breaking] [Added] Value format date-time to property order.shipments[].shipment_created_at of schema Shipments in response with status code 200 + - [Breaking] [Added] Value format date-time to property order.shipments[].bags[].delivery_date of schema Bags in response with status code 200 + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items to property order.shipments[].bags[].applied_promos[].promotion_type of schema AppliedPromos in response with status code 200 + - [Breaking] [Added] Value format date-time to property order.shipments[].bags[].returnable_date of schema Bags in response with status code 200 + - [Breaking] [Added] Value format date-time to property order.shipments[].bags[].current_status.updated_at of schema CurrentStatus in response with status code 200 + - [Breaking] [Added] Possible values return,forward to property order.shipments[].bags[].current_status.journey_type of schema CurrentStatus in response with status code 200 + - [Added] property order.shipments[].bags[].charges of schema Bags in response with status code 200 + - [Breaking] [Added] Possible values home,office,store to property order.shipments[].delivery_address.address_type of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property order.shipments[].delivery_address.created_at of schema Address in response with status code 200 + - [Breaking] [Added] Possible values store,delivery,billing to property order.shipments[].delivery_address.address_category of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property order.shipments[].delivery_address.updated_at of schema Address in response with status code 200 + - [Breaking] [Added] Possible values home,office,store to property order.shipments[].billing_address.address_type of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property order.shipments[].billing_address.created_at of schema Address in response with status code 200 + - [Breaking] [Added] Possible values store,delivery,billing to property order.shipments[].billing_address.address_category of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property order.shipments[].billing_address.updated_at of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property order.shipments[].delivery_date of schema Shipments in response with status code 200 + - [Added] property order.shipments[].charges of schema Shipments in response with status code 200 + - [Added] property order.charges of schema OrderSchema in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property order.shipments[].bags[].item.l2_category of schema Item in response with status code 200 + - [Breaking] [Deleted] property order.shipments[].bags[].item.l2_category_id of schema Item in response with status code 200 + + +#### getShipmentById + +- ##### What's New + - [Breaking] [Added] Possible values HomeDelivery,PickAtStore,Digital to property shipment.order_type of schema Shipments in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipment.invoice.updated_date of schema Invoice in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipment.returnable_date of schema Shipments in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipment.shipment_created_at of schema Shipments in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipment.bags[].delivery_date of schema Bags in response with status code 200 + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items to property shipment.bags[].applied_promos[].promotion_type of schema AppliedPromos in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipment.bags[].returnable_date of schema Bags in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipment.bags[].current_status.updated_at of schema CurrentStatus in response with status code 200 + - [Breaking] [Added] Possible values return,forward to property shipment.bags[].current_status.journey_type of schema CurrentStatus in response with status code 200 + - [Added] property shipment.bags[].charges of schema Bags in response with status code 200 + - [Breaking] [Added] Possible values home,office,store to property shipment.delivery_address.address_type of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipment.delivery_address.created_at of schema Address in response with status code 200 + - [Breaking] [Added] Possible values store,delivery,billing to property shipment.delivery_address.address_category of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipment.delivery_address.updated_at of schema Address in response with status code 200 + - [Breaking] [Added] Possible values home,office,store to property shipment.billing_address.address_type of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipment.billing_address.created_at of schema Address in response with status code 200 + - [Breaking] [Added] Possible values store,delivery,billing to property shipment.billing_address.address_category of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipment.billing_address.updated_at of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipment.delivery_date of schema Shipments in response with status code 200 + - [Added] property shipment.charges of schema Shipments in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property shipment.bags[].item.l2_category of schema Item in response with status code 200 + - [Breaking] [Deleted] property shipment.bags[].item.l2_category_id of schema Item in response with status code 200 + + +#### getInvoiceByShipmentId + +- ##### What's New + - [Breaking] [Added] Possible values GET,PUT to property presigned_type of schema ResponseGetInvoiceShipment in response with status code 200 + + +#### trackShipment + +- ##### What's New + - [Breaking] [Added] Possible values forward,reverse,rto to property results[].shipment_type of schema Track in response with status code 200 + - [Breaking] [Added] Value format date-time to property results[].last_location_recieved_at of schema Track in response with status code 200 + - [Breaking] [Added] Value format date-time to property results[].updated_at of schema Track in response with status code 200 + + +#### getShipmentBagReasons + +- ##### What's New + - [Added] property rule_id of schema ShipmentBagReasons in response with status code 200 + + +#### getShipmentReasons + +- ##### What's New + - [Breaking] [Added] Possible values bag,order to property reasons[].feedback_type of schema ShipmentReason in response with status code 200 + + +#### updateShipmentStatus + +- ##### What's New + - [Breaking] [Added] Value format int32 to property statuses[].shipments[].data_updates.products[].filters[].line_number of schema ProductsDataUpdatesFilters in request body + - [Added] property statuses[].shipments[].data_updates.products[].filters[].quantity of schema ProductsDataUpdatesFilters in request body + + +#### getPosOrderById + +- ##### What's New + - [Added] method getPosOrderById + + + +### Payment + + + +#### getAggregatorsConfig + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### attachCardToCustomer + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property card_id of schema AttachCardRequest in request body + - [Breaking] [Deleted] Response with status 500 + + +#### getActiveCardAggregator + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getActiveUserCards + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### deleteUserCard + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property card_id of schema DeletehCardRequest in request body + - [Breaking] [Deleted] Response with status 500 + + +#### verifyCustomerForPayment + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### verifyAndChargePayment + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property amount of schema ChargeCustomerRequest in request body + - [Breaking] [Deleted] Response with status 500 + + +#### initialisePayment + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property amount of schema PaymentInitializationRequest in request body + - [Breaking] [Deleted] Response with status 500 + + +#### checkAndUpdatePaymentStatus + +- ##### What's New + - [Breaking] [Added] order_id made required in request body + - [Breaking] [Added] status made required in request body + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getPaymentModeRoutes + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getPosPaymentModeRoutes + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getRupifiBannerDetails + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getEpaylaterBannerDetails + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### resendOrCancelPayment + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### renderHTML + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### validateVPA + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### cardDetails + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property data.bank_code of schema CardDetails in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property data.card_sub_type of schema CardDetails in response with status code 200 + - [Breaking] [Deleted] Response with status 500 + + +#### getActiveRefundTransferModes + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### enableOrDisableRefundTransferMode + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getUserBeneficiariesDetail + +- ##### What's New + - [Breaking] [Added] Value format date-time to property beneficiaries[].modified_on of schema OrderBeneficiaryDetails in response with status code 200 + - [Breaking] [Added] Value format date-time to property beneficiaries[].created_on of schema OrderBeneficiaryDetails in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### verifyIfscCode + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getOrderBeneficiariesDetail + +- ##### What's New + - [Breaking] [Added] Value format date-time to property beneficiaries[].modified_on of schema OrderBeneficiaryDetails in response with status code 200 + - [Breaking] [Added] Value format date-time to property beneficiaries[].created_on of schema OrderBeneficiaryDetails in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### verifyOtpAndAddBeneficiaryForBank + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### addBeneficiaryDetails + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### addRefundBankAccountUsingOTP + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### verifyOtpAndAddBeneficiaryForWallet + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### updateDefaultBeneficiary + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getPaymentLink + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### createPaymentLink + +- ##### What's New + - [Added] property success_redirection_url of schema CreatePaymentLink in request body + - [Added] property failure_redirection_url of schema CreatePaymentLink in request body + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### resendPaymentLink + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### cancelPaymentLink + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getPaymentModeRoutesPaymentLink + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### pollingPaymentLink + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### createOrderHandlerPaymentLink + +- ##### What's Deprecated + - [Breaking] [Deleted] property failure_callback_url of schema CreateOrderUserRequest in request body + - [Breaking] [Deleted] property success_callback_url of schema CreateOrderUserRequest in request body + - [Breaking] [Deleted] Response with status 500 + +- ##### What's Changed + - [Changed] failure_callback_url made optional in request body + - [Changed] success_callback_url made optional in request body + + +#### initialisePaymentPaymentLink + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property amount of schema PaymentInitializationRequest in request body + - [Breaking] [Deleted] Response with status 500 + + +#### checkAndUpdatePaymentStatusPaymentLink + +- ##### What's New + - [Breaking] [Added] order_id made required in request body + - [Breaking] [Added] status made required in request body + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### customerCreditSummary + +- ##### What's New + - [Breaking] [Added] Value format date-time to property data.due_date of schema CreditSummary in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### redirectToAggregator + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### checkCredit + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### customerOnboard + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property personal_info.dob of schema UserPersonalInfoInDetails in request body + - [Breaking] [Deleted] Response with status 500 + + +#### outstandingOrderDetails + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### paidOrderDetails + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### createPaymentOrder + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +### Rewards + + + +#### getOfferByName + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema Offer in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema Offer in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### catalogueOrder + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getUserPointsHistory + +- ##### What's New + - [Breaking] [Added] Value format date-time to property items[].created_at of schema PointsHistory in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].updated_at of schema PointsHistory in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getUserPoints + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getUserReferralDetails + +- ##### What's New + - [Breaking] [Added] Value format date-time to property referral.created_at of schema Offer in response with status code 200 + - [Breaking] [Added] Value format date-time to property referral.updated_at of schema Offer in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getOrderDiscount + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### redeemReferralCode + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +### Share + + + +#### createShortLink + +- ##### What's New + - [Breaking] [Added] Value format date-time to property expire_at of schema ShortLinkReq in request body + - [Breaking] [Added] Value format date-time to property expire_at of schema ShortLinkRes in response with status code 200 + - [Breaking] [Added] Value format date-time to property created_at of schema ShortLinkRes in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema ShortLinkRes in response with status code 200 + +- ##### What's Changed + - [Changed] redirects.expiry, redirects.url made optional in request body + - [Changed] redirects.expiry, redirects.url made optional in response with status code 200 + + +#### getShortLinkByHash + +- ##### What's New + - [Breaking] [Added] Value format date-time to property expire_at of schema ShortLinkRes in response with status code 200 + - [Breaking] [Added] Value format date-time to property created_at of schema ShortLinkRes in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema ShortLinkRes in response with status code 200 + +- ##### What's Changed + - [Changed] redirects.expiry, redirects.url made optional in response with status code 200 + + +#### getOriginalShortLinkByHash + +- ##### What's New + - [Breaking] [Added] Value format date-time to property expire_at of schema ShortLinkRes in response with status code 200 + - [Breaking] [Added] Value format date-time to property created_at of schema ShortLinkRes in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema ShortLinkRes in response with status code 200 + +- ##### What's Changed + - [Changed] redirects.expiry, redirects.url made optional in response with status code 200 + + +### Theme + + + +#### getAllPages + +- ##### What's New + - [Added] property pages[].sections[].__source of schema AvailablePageSchemaSections in response with status code 200 + - [Added] property pages[].sections[].assets of schema AvailablePageSchemaSections in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property pages[].sections[].source of schema AvailablePageSchemaSections in response with status code 200 + + +#### getPage + +- ##### What's New + - [Added] property sections[].__source of schema AvailablePageSchemaSections in response with status code 200 + - [Added] property sections[].assets of schema AvailablePageSchemaSections in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property sections[].source of schema AvailablePageSchemaSections in response with status code 200 + + +#### getAppliedTheme + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema ThemesSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema ThemesSchema in response with status code 200 + - [Added] query parameter filters (type: boolean) + + + +#### getThemeForPreview + +- ##### What's New + - [Added] query parameter filters (type: boolean) + + - [Breaking] [Added] Value format date-time to property created_at of schema ThemesSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema ThemesSchema in response with status code 200 + + +### User + + + +#### loginWithFacebook + +- ##### What's New + - [Breaking] [Added] Possible values user,programmatic to property user.account_type of schema UserSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property user.created_at of schema UserSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property user.updated_at of schema UserSchema in response with status code 200 + + +#### loginWithGoogle + +- ##### What's New + - [Breaking] [Added] Possible values user,programmatic to property user.account_type of schema UserSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property user.created_at of schema UserSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property user.updated_at of schema UserSchema in response with status code 200 + + +#### loginWithGoogleAndroid + +- ##### What's New + - [Breaking] [Added] Possible values user,programmatic to property user.account_type of schema UserSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property user.created_at of schema UserSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property user.updated_at of schema UserSchema in response with status code 200 + + +#### loginWithGoogleIOS + +- ##### What's New + - [Breaking] [Added] Possible values user,programmatic to property user.account_type of schema UserSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property user.created_at of schema UserSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property user.updated_at of schema UserSchema in response with status code 200 + + +#### loginWithAppleIOS + +- ##### What's New + - [Breaking] [Added] Possible values user,programmatic to property user.account_type of schema UserSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property user.created_at of schema UserSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property user.updated_at of schema UserSchema in response with status code 200 + + +#### loginWithOTP + +- ##### What's New + - [Breaking] [Added] Value format ind64 to property resend_timer of schema SendOtp in response with status code 200 + + +#### loginWithEmailAndPassword + +- ##### What's New + - [Breaking] [Added] Possible values user,programmatic to property user.account_type of schema UserSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property user.created_at of schema UserSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property user.updated_at of schema UserSchema in response with status code 200 + + +#### forgotPassword + +- ##### What's New + - [Breaking] [Added] Possible values user,programmatic to property user.account_type of schema UserSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property user.created_at of schema UserSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property user.updated_at of schema UserSchema in response with status code 200 + + +#### loginWithToken + +- ##### What's New + - [Breaking] [Added] Possible values user,programmatic to property user.account_type of schema UserSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property user.created_at of schema UserSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property user.updated_at of schema UserSchema in response with status code 200 + + +#### registerWithForm + +- ##### What's New + - [Breaking] [Added] Value format int64 to property resend_timer of schema RegisterFormSuccess in response with status code 200 + + +#### sendOTPOnMobile + +- ##### What's New + - [Breaking] [Added] Value format int64 to property resend_timer of schema SendOtpSuccess in response with status code 200 + + +#### sendForgotOTPOnMobile + +- ##### What's New + - [Breaking] [Added] Value format int64 to property resend_timer of schema SendOtpSuccess in response with status code 200 + + +#### verifyMobileOTP + +- ##### What's New + - [Breaking] [Added] Possible values user,programmatic to property user.account_type of schema UserSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property user.created_at of schema UserSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property user.updated_at of schema UserSchema in response with status code 200 + + +#### verifyEmailOTP + +- ##### What's New + - [Breaking] [Added] Possible values user,programmatic to property user.account_type of schema UserSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property user.created_at of schema UserSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property user.updated_at of schema UserSchema in response with status code 200 + + +#### getLoggedInUser + +- ##### What's New + - [Breaking] [Added] Possible values user,programmatic to property user.account_type of schema UserSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property user.created_at of schema UserSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property user.updated_at of schema UserSchema in response with status code 200 + + +#### getPlatformConfig + +- ##### What's New + - [Breaking] [Added] Value format date-time to property updated_at of schema PlatformSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property created_at of schema PlatformSchema in response with status code 200 + + +#### updateProfile + +- ##### What's New + - [Breaking] [Added] Possible values user,programmatic to property user.account_type of schema UserSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property user.created_at of schema UserSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property user.updated_at of schema UserSchema in response with status code 200 + - [Breaking] [Added] Value format int64 to property resend_timer of schema ProfileEditSuccess in response with status code 200 + + +#### addMobileNumber + +- ##### What's New + - [Breaking] [Added] Possible values user,programmatic to property user.account_type of schema UserSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property user.created_at of schema UserSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property user.updated_at of schema UserSchema in response with status code 200 + + +#### deleteMobileNumber + +- ##### What's New + - [Breaking] [Added] Possible values user,programmatic to property user.account_type of schema UserSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property user.created_at of schema UserSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property user.updated_at of schema UserSchema in response with status code 200 + + +#### setMobileNumberAsPrimary + +- ##### What's New + - [Breaking] [Added] Possible values user,programmatic to property user.account_type of schema UserSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property user.created_at of schema UserSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property user.updated_at of schema UserSchema in response with status code 200 + + +#### addEmail + +- ##### What's New + - [Breaking] [Added] Possible values user,programmatic to property user.account_type of schema UserSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property user.created_at of schema UserSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property user.updated_at of schema UserSchema in response with status code 200 + + +#### deleteEmail + +- ##### What's New + - [Breaking] [Added] Possible values user,programmatic to property user.account_type of schema UserSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property user.created_at of schema UserSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property user.updated_at of schema UserSchema in response with status code 200 + + +#### setEmailAsPrimary + +- ##### What's New + - [Breaking] [Added] Possible values user,programmatic to property user.account_type of schema UserSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property user.created_at of schema UserSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property user.updated_at of schema UserSchema in response with status code 200 + + +### Webhook + + + +#### saveClickEvent + +- ##### What's New + - [Added] property sent_at of schema ClickEventPayload in request body + + +## Partner Client + + + +### FileStorage + + + +#### startUpload + +- ##### What's Deprecated + - [Breaking] [Deleted] property cdn of schema StartResponse in response with status code 200 + +- ##### What's Changed + - [Breaking] [Changed] cdn made optional in response with status code 200 + - [Changed] Path From /service/partner/assets/v1.0/organization/{organization_id}/namespaces/{namespace}/upload/start To /service/partner/assets/v2.0/organization/{organization_id}/namespaces/{namespace}/upload/start + + +#### completeUpload + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_on of schema FileUploadComplete in response with status code 200 + - [Breaking] [Added] Value format date-time to property modified_on of schema FileUploadComplete in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property cdn of schema StartResponse in request body + +- ##### What's Changed + - [Breaking] [Changed] cdn made optional in request body + - [Changed] Path From /service/partner/assets/v1.0/organization/{organization_id}/namespaces/{namespace}/upload/complete To /service/partner/assets/v2.0/organization/{organization_id}/namespaces/{namespace}/upload/complete + + +#### browse + +- ##### What's New + - [Added] property items[].created_at of schema in response with status code 200 + - [Added] property items[].updated_at of schema in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property items[].createdAt of schema in response with status code 200 + - [Breaking] [Deleted] property items[].updatedAt of schema in response with status code 200 + + +#### getAllNamespaceDetails + +- ##### What's New + - [Added] method getAllNamespaceDetails + + + +#### getNamespaceDetail + +- ##### What's New + - [Added] method getNamespaceDetail + + + +#### browseFiles + +- ##### What's New + - [Added] method browseFiles + + + +#### organizationLevelFetchProxy + +- ##### What's New + - [Added] method organizationLevelFetchProxy + + + +#### saveOrganizationLevelProxy + +- ##### What's New + - [Added] method saveOrganizationLevelProxy + + + +#### fetchProxy + +- ##### What's New + - [Added] method fetchProxy + + + +#### saveProxyDetails + +- ##### What's New + - [Added] method saveProxyDetails + + + +### Logistics + + + +#### createCourierPartnerAccount + +- ##### What's Changed + - [Changed] company_id made optional in request body + - [Breaking] [Changed] company_id made optional in response with status code 200 + + +#### getCourierPartnerAccounts + +- ##### What's New + - [Added] property items[].scheme_rules.feature.qc_shipment_item_quantity of schema CourierPartnerSchemeFeatures in response with status code 200 + - [Added] property items[].scheme_rules.feature.non_qc_shipment_item_quantity of schema CourierPartnerSchemeFeatures in response with status code 200 + + +#### updateCourierPartnerAccount + +- ##### What's New + - [Added] property scheme_rules.feature.qc_shipment_item_quantity of schema CourierPartnerSchemeFeatures in response with status code 200 + - [Added] property scheme_rules.feature.non_qc_shipment_item_quantity of schema CourierPartnerSchemeFeatures in response with status code 200 + +- ##### What's Changed + - [Breaking] [Changed] company_id made optional in request body + + +#### getCourierPartnerAccount + +- ##### What's New + - [Added] property scheme_rules.feature.qc_shipment_item_quantity of schema CourierPartnerSchemeFeatures in response with status code 200 + - [Added] property scheme_rules.feature.non_qc_shipment_item_quantity of schema CourierPartnerSchemeFeatures in response with status code 200 + + +#### createCourierPartnerScheme + +- ##### What's New + - [Added] property feature.qc_shipment_item_quantity of schema CourierPartnerSchemeFeatures in request body + - [Added] property feature.non_qc_shipment_item_quantity of schema CourierPartnerSchemeFeatures in request body + - [Added] property feature.qc_shipment_item_quantity of schema CourierPartnerSchemeFeatures in response with status code 200 + - [Added] property feature.non_qc_shipment_item_quantity of schema CourierPartnerSchemeFeatures in response with status code 200 + + +#### updateCourierPartnerScheme + +- ##### What's New + - [Added] property feature.qc_shipment_item_quantity of schema CourierPartnerSchemeFeatures in request body + - [Added] property feature.non_qc_shipment_item_quantity of schema CourierPartnerSchemeFeatures in request body + - [Added] property feature.qc_shipment_item_quantity of schema CourierPartnerSchemeFeatures in response with status code 200 + - [Added] property feature.non_qc_shipment_item_quantity of schema CourierPartnerSchemeFeatures in response with status code 200 + + +#### getCountries + +- ##### What's New + - [Added] property items[].has_next_hierarchy of schema GetCountriesItems in response with status code 200 + + +#### createDeliveryTime + +- ##### What's New + - [Added] method createDeliveryTime + + + +#### getDeliveryTimes + +- ##### What's New + - [Added] method getDeliveryTimes + + + +#### getDeliveryTime + +- ##### What's New + - [Added] method getDeliveryTime + + + +#### updateDeliveryTime + +- ##### What's New + - [Added] method updateDeliveryTime + + + +#### deleteDeliveryTime + +- ##### What's New + - [Added] method deleteDeliveryTime + + + +#### createServiceability + +- ##### What's New + - [Added] method createServiceability + + + +#### getServiceabilities + +- ##### What's New + - [Added] method getServiceabilities + + + +#### getServiceability + +- ##### What's New + - [Added] method getServiceability + + + +#### updateServiceability + +- ##### What's New + - [Added] method updateServiceability + + + +#### deleteServiceability + +- ##### What's New + - [Added] method deleteServiceability + + + +### Theme + + + +#### getAllPages + +- ##### What's New + - [Added] property pages[].sections[].__source of schema AvailablePageSchemaSections in response with status code 200 + - [Breaking] [Added] Value format date-time to property pages[].created_at of schema AvailablePageSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property pages[].updated_at of schema AvailablePageSchema in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property pages[].sections[].source of schema AvailablePageSchemaSections in response with status code 200 + + +#### createPage + +- ##### What's New + - [Added] property sections[].__source of schema AvailablePageSchemaSections in request body + - [Breaking] [Added] Value format date-time to property created_at of schema AvailablePageSchema in request body + - [Breaking] [Added] Value format date-time to property updated_at of schema AvailablePageSchema in request body + - [Added] property sections[].__source of schema AvailablePageSchemaSections in response with status code 200 + - [Breaking] [Added] Value format date-time to property created_at of schema AvailablePageSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema AvailablePageSchema in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property sections[].source of schema AvailablePageSchemaSections in request body + - [Breaking] [Deleted] property sections[].source of schema AvailablePageSchemaSections in response with status code 200 + + +#### updateMultiplePages + +- ##### What's New + - [Added] property pages[].sections[].__source of schema AvailablePageSchemaSections in request body + - [Breaking] [Added] Value format date-time to property pages[].created_at of schema AvailablePageSchema in request body + - [Breaking] [Added] Value format date-time to property pages[].updated_at of schema AvailablePageSchema in request body + - [Added] property pages[].sections[].__source of schema AvailablePageSchemaSections in response with status code 200 + - [Breaking] [Added] Value format date-time to property pages[].created_at of schema AvailablePageSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property pages[].updated_at of schema AvailablePageSchema in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property pages[].sections[].source of schema AvailablePageSchemaSections in request body + - [Breaking] [Deleted] property pages[].sections[].source of schema AvailablePageSchemaSections in response with status code 200 + + +#### getPage + +- ##### What's New + - [Added] property sections[].__source of schema AvailablePageSchemaSections in response with status code 200 + - [Breaking] [Added] Value format date-time to property created_at of schema AvailablePageSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema AvailablePageSchema in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property sections[].source of schema AvailablePageSchemaSections in response with status code 200 + + +#### updatePage + +- ##### What's New + - [Added] property sections[].__source of schema AvailablePageSchemaSections in request body + - [Breaking] [Added] Value format date-time to property created_at of schema AvailablePageSchema in request body + - [Breaking] [Added] Value format date-time to property updated_at of schema AvailablePageSchema in request body + - [Added] property sections[].__source of schema AvailablePageSchemaSections in response with status code 200 + - [Breaking] [Added] Value format date-time to property created_at of schema AvailablePageSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema AvailablePageSchema in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property sections[].source of schema AvailablePageSchemaSections in request body + - [Breaking] [Deleted] property sections[].source of schema AvailablePageSchemaSections in response with status code 200 + + +#### deletePage + +- ##### What's New + - [Added] property sections[].__source of schema AvailablePageSchemaSections in response with status code 200 + - [Breaking] [Added] Value format date-time to property created_at of schema AvailablePageSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema AvailablePageSchema in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property sections[].source of schema AvailablePageSchemaSections in response with status code 200 + + +#### getApplicationThemes + +- ##### What's New + - [Breaking] [Added] Value format date-time to property [].created_at of schema ThemesSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property [].updated_at of schema ThemesSchema in response with status code 200 + + +#### getThemeById + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema ThemesSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema ThemesSchema in response with status code 200 + + +#### updateTheme + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema ThemesSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema ThemesSchema in response with status code 200 + + +#### deleteTheme + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema ThemesSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema ThemesSchema in response with status code 200 + + +#### getThemeRejectionReasons + +- ##### What's New + - [Added] properties rejection_reasons.theme_file, rejection_reasons.theme_details, rejection_reasons.theme_value_proposition, rejection_reasons.theme_attributes, rejection_reasons.theme_variations, rejection_reasons.theme_docs, rejection_reasons.theme_review in response with status code 200 + + +#### createTheme + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema ThemesSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema ThemesSchema in response with status code 200 + + +### Webhook + + + +#### getDeliveryDetailInsights + +- ##### What's New + - [Breaking] [Added] Value format date-time to property start_date of schema DeliveryDetailsPayload in request body + - [Breaking] [Added] Value format date-time to property end_date of schema DeliveryDetailsPayload in request body + + +#### getHistoricalReports + +- ##### What's New + - [Breaking] [Added] Value format date-time to property items[].filters.end_date of schema HistoryFilters in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].filters.start_date of schema HistoryFilters in response with status code 200 + - [Breaking] [Added] Possible values kafka,rest,sqs,event_bridge,temporal,pub_sub to property items[].filters.webhook_type[] of schema HistoryFilters in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].created_on of schema HistoryItems in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].updated_on of schema HistoryItems in response with status code 200 + + +#### getInvalidEventList + +- ##### What's New + - [Breaking] [Added] Value format date-time to property start_date of schema InvalidEventsPayload in request body + - [Breaking] [Added] Value format date-time to property end_date of schema InvalidEventsPayload in request body + + +#### fetchSubscribers + +- ##### What's New + - [Added] Possible nullable value true to property items[].custom_headers of schema ItemSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].updated_on of schema ItemSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].created_on of schema ItemSchema in response with status code 200 + - [Breaking] [Added] Possible values hmac to property items[].auth_meta.type of schema AuthMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].event_configs[].created_on of schema EventConfigDetails in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].event_configs[].updated_on of schema EventConfigDetails in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].event_configs[].subscriber_event_mapping.created_on of schema SubscriberEventMapping in response with status code 200 + - [Added] property items[].event_configs[].subscriber_event_mapping.broadcaster_config of schema SubscriberEventMapping in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property items[].event_configs[].subscriber_event_mapping.topic of schema SubscriberEventMapping in response with status code 200 + + +#### responseTimeSummary + +- ##### What's New + - [Added] method responseTimeSummary + + + +## Platform Client + +- [Breaking] [Removed] Finance class from platform client + + +### Analytics + + + +#### executeJobForProvidedParametersV2 + +- ##### What's New + - [Added] properties rows, page in response with status code 200 + - [Added] Security in Request + + +#### startDownloadForQueryV2 + +- ##### What's New + - [Added] Security in Request + + +#### checkJobStatusByNameV2 + +- ##### What's New + - [Added] properties start_date, end_date, status, message, file_metadata in response with status code 200 + - [Added] Security in Request + + +### AuditTrail + + + +#### getAuditLogs + +- ##### What's Deprecated + - [Breaking] [Deleted] method getAuditLogs + + + +#### createAuditLog + +- ##### What's New + - [Added] property log_meta.sessions of schema LogMetaObj in request body + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + +- ##### What's Changed + - [Changed] Path From /service/platform/audit-trail/v1.0/company/{company_id}/logs To /service/platform/webhook/v1.0/company/{company_id}/audit/logs/create + + +#### getAuditLog + +- ##### What's Deprecated + - [Breaking] [Deleted] method getAuditLog + + + +#### getEntityTypes + +- ##### What's Deprecated + - [Breaking] [Deleted] method getEntityTypes + + + +### Billing + + + +#### getChargeDetails + +- ##### What's New + - [Breaking] [Added] Type integer to property code of schema ResourceNotFound in response with status code 404 + - [Breaking] [Added] Type boolean to property success of schema ResourceNotFound in response with status code 404 + - [Added] Security in Request + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible values from day from property recurring.interval of schema ChargeRecurring in response with status code 200 + - [Breaking] [Deleted] Possible values from week from property recurring.interval of schema ChargeRecurring in response with status code 200 + + +#### getSubscriptionCharge + +- ##### What's New + - [Breaking] [Added] Possible values extension,theme,subscription to property entity_type of schema SubscriptionChargeRes in response with status code 200 + - [Breaking] [Added] Possible values pending,expired,declined,active,frozen,cancelled,no_renew,success,failed to property status of schema SubscriptionChargeRes in response with status code 200 + - [Breaking] [Added] Type integer to property code of schema ResourceNotFound in response with status code 404 + - [Breaking] [Added] Type boolean to property success of schema ResourceNotFound in response with status code 404 + - [Added] Security in Request + + +#### cancelSubscriptionCharge + +- ##### What's New + - [Breaking] [Added] Possible values extension,theme,subscription to property entity_type of schema SubscriptionChargeRes in response with status code 200 + - [Breaking] [Added] Possible values pending,expired,declined,active,frozen,cancelled,no_renew,success,failed to property status of schema SubscriptionChargeRes in response with status code 200 + - [Breaking] [Added] Type integer to property code of schema ResourceNotFound in response with status code 404 + - [Breaking] [Added] Type boolean to property success of schema ResourceNotFound in response with status code 404 + - [Added] Security in Request + + +#### createOneTimeCharge + +- ##### What's New + - [Breaking] [Added] Possible values subscription,extension,standalone to property charge.final_charge.charge_type of schema OneTimeChargeEntity in response with status code 200 + - [Breaking] [Added] Possible values pending,expired,declined,active,frozen,cancelled,no_renew,success,failed to property charge.final_charge.status of schema OneTimeChargeEntity in response with status code 200 + - [Breaking] [Added] Possible values extension,theme to property charge.final_charge.entity_type of schema OneTimeChargeEntity in response with status code 200 + - [Added] Security in Request + + +#### createSubscriptionCharge + +- ##### What's New + - [Breaking] [Added] Possible values extension,theme to property subscription.entity_type of schema EntitySubscription in response with status code 200 + - [Breaking] [Added] Possible values pending,expired,declined,active,frozen,cancelled,no_renew,success,failed to property subscription.status of schema EntitySubscription in response with status code 200 + +- ##### What's Deprecated + - [Deleted] Value format from int32 from property trial_days of schema CreateSubscriptionCharge in request body + - [Deleted] Value format from int32 from property line_items[].trial_days of schema ChargeLineItem in request body + - [Breaking] [Deleted] Possible values from day from property subscription.line_items[].recurring.interval of schema ChargeRecurring in response with status code 200 + - [Breaking] [Deleted] Possible values from week from property subscription.line_items[].recurring.interval of schema ChargeRecurring in response with status code 200 + +- ##### What's Changed + - [Breaking] [Changed] Type from integer to number of property trial_days of schema CreateSubscriptionCharge in request body + - [Breaking] [Changed] Type from integer to number of property line_items[].trial_days of schema ChargeLineItem in request body + + +### Cart + + + +#### getCoupons + +- ##### What's New + - [Added] query parameter createdBy (type: string) + + - [Added] query parameter reviewedBy (type: string) + + - [Added] query parameter approvedStartTime (type: string) + + - [Added] query parameter approvedEndTime (type: string) + + - [Added] query parameter reviewStartTime (type: string) + + - [Added] query parameter reviewEndTime (type: string) + + - [Added] query parameter status (type: string) + + - [Added] property items[].date_meta.approved_on of schema CouponDateMeta in response with status code 200 + - [Added] property items[].date_meta.rejected_on of schema CouponDateMeta in response with status code 200 + - [Added] property items[].date_meta.reviewed_on of schema CouponDateMeta in response with status code 200 + - [Added] Possible nullable value true to property items[].ownership.payable_by of schema Ownership in response with status code 200 + - [Added] property items[].author.approved_by of schema CouponAuthor in response with status code 200 + - [Added] property items[].author.rejected_by of schema CouponAuthor in response with status code 200 + - [Added] property items[].author.reviewed_by of schema CouponAuthor in response with status code 200 + - [Added] properties items[].restrictions.payments.codes, items[].restrictions.payments.iins, items[].restrictions.payments.types, items[].restrictions.payments.networks, items[].restrictions.payments.uses in response with status code 200 + - [Added] Possible nullable value true to property items[]._schedule.start of schema CouponSchedule in response with status code 200 + - [Added] property items[]._schedule.status of schema CouponSchedule in response with status code 200 + - [Added] property items[].coupon_type of schema CouponAdd in response with status code 200 + - [Added] property items[].coupon_prefix of schema CouponAdd in response with status code 200 + - [Added] property items[].coupon_counts of schema CouponAdd in response with status code 200 + +- ##### What's Changed + - [Breaking] [Changed] items[].ownership.payable_by made optional in response with status code 200 + - [Breaking] [Changed] items[].rule_definition.applicable_on, items[].rule_definition.calculate_on, items[].rule_definition.type, items[].rule_definition.value_type made optional in response with status code 200 + - [Breaking] [Changed] items[].display_meta made optional in response with status code 200 + - [Breaking] [Changed] items[].identifiers made optional in response with status code 200 + - [Breaking] [Changed] items[].ownership made optional in response with status code 200 + - [Breaking] [Changed] items[].rule made optional in response with status code 200 + - [Breaking] [Changed] items[].rule_definition made optional in response with status code 200 + - [Breaking] [Changed] items[].validity made optional in response with status code 200 + + +#### createCoupon + +- ##### What's New + - [Added] property date_meta.approved_on of schema CouponDateMeta in request body + - [Added] property date_meta.rejected_on of schema CouponDateMeta in request body + - [Added] property date_meta.reviewed_on of schema CouponDateMeta in request body + - [Added] Possible nullable value true to property ownership.payable_by of schema Ownership in request body + - [Added] property author.approved_by of schema CouponAuthor in request body + - [Added] property author.rejected_by of schema CouponAuthor in request body + - [Added] property author.reviewed_by of schema CouponAuthor in request body + - [Added] properties restrictions.payments.codes, restrictions.payments.iins, restrictions.payments.types, restrictions.payments.networks, restrictions.payments.uses in request body + - [Added] Possible nullable value true to property _schedule.start of schema CouponSchedule in request body + - [Added] property _schedule.status of schema CouponSchedule in request body + - [Added] property coupon_type of schema CouponAdd in request body + - [Added] property coupon_prefix of schema CouponAdd in request body + - [Added] property coupon_counts of schema CouponAdd in request body + - [Added] property _id of schema CouponCreateResult in response with status code 201 + +- ##### What's Changed + - [Breaking] [Changed] ownership.payable_by made optional in request body + - [Breaking] [Changed] rule_definition.applicable_on, rule_definition.calculate_on, rule_definition.type, rule_definition.value_type made optional in request body + - [Breaking] [Changed] display_meta made optional in request body + - [Breaking] [Changed] identifiers made optional in request body + - [Breaking] [Changed] ownership made optional in request body + - [Breaking] [Changed] rule made optional in request body + - [Breaking] [Changed] rule_definition made optional in request body + - [Breaking] [Changed] validity made optional in request body + + +#### getCouponById + +- ##### What's New + - [Added] property date_meta.approved_on of schema CouponDateMeta in response with status code 200 + - [Added] property date_meta.rejected_on of schema CouponDateMeta in response with status code 200 + - [Added] property date_meta.reviewed_on of schema CouponDateMeta in response with status code 200 + - [Added] Possible nullable value true to property ownership.payable_by of schema Ownership in response with status code 200 + - [Added] property author.approved_by of schema CouponAuthor in response with status code 200 + - [Added] property author.rejected_by of schema CouponAuthor in response with status code 200 + - [Added] property author.reviewed_by of schema CouponAuthor in response with status code 200 + - [Added] properties restrictions.payments.codes, restrictions.payments.iins, restrictions.payments.types, restrictions.payments.networks, restrictions.payments.uses in response with status code 200 + - [Added] Possible nullable value true to property _schedule.start of schema CouponSchedule in response with status code 200 + - [Added] property _schedule.status of schema CouponSchedule in response with status code 200 + - [Added] property coupon_type of schema CouponUpdate in response with status code 200 + - [Added] property coupon_prefix of schema CouponUpdate in response with status code 200 + - [Added] property coupon_counts of schema CouponUpdate in response with status code 200 + - [Added] property reason of schema CouponUpdate in response with status code 200 + +- ##### What's Changed + - [Breaking] [Changed] ownership.payable_by made optional in response with status code 200 + - [Breaking] [Changed] rule_definition.applicable_on, rule_definition.calculate_on, rule_definition.type, rule_definition.value_type made optional in response with status code 200 + - [Breaking] [Changed] display_meta made optional in response with status code 200 + - [Breaking] [Changed] identifiers made optional in response with status code 200 + - [Breaking] [Changed] ownership made optional in response with status code 200 + - [Breaking] [Changed] rule made optional in response with status code 200 + - [Breaking] [Changed] rule_definition made optional in response with status code 200 + - [Breaking] [Changed] validity made optional in response with status code 200 + + +#### updateCoupon + +- ##### What's New + - [Added] property date_meta.approved_on of schema CouponDateMeta in request body + - [Added] property date_meta.rejected_on of schema CouponDateMeta in request body + - [Added] property date_meta.reviewed_on of schema CouponDateMeta in request body + - [Added] Possible nullable value true to property ownership.payable_by of schema Ownership in request body + - [Added] property author.approved_by of schema CouponAuthor in request body + - [Added] property author.rejected_by of schema CouponAuthor in request body + - [Added] property author.reviewed_by of schema CouponAuthor in request body + - [Added] properties restrictions.payments.codes, restrictions.payments.iins, restrictions.payments.types, restrictions.payments.networks, restrictions.payments.uses in request body + - [Added] Possible nullable value true to property _schedule.start of schema CouponSchedule in request body + - [Added] property _schedule.status of schema CouponSchedule in request body + - [Added] property coupon_type of schema CouponUpdate in request body + - [Added] property coupon_prefix of schema CouponUpdate in request body + - [Added] property coupon_counts of schema CouponUpdate in request body + - [Added] property reason of schema CouponUpdate in request body + - [Added] property _id of schema CouponCreateResult in response with status code 200 + +- ##### What's Changed + - [Breaking] [Changed] ownership.payable_by made optional in request body + - [Breaking] [Changed] rule_definition.applicable_on, rule_definition.calculate_on, rule_definition.type, rule_definition.value_type made optional in request body + - [Breaking] [Changed] display_meta made optional in request body + - [Breaking] [Changed] identifiers made optional in request body + - [Breaking] [Changed] ownership made optional in request body + - [Breaking] [Changed] rule made optional in request body + - [Breaking] [Changed] rule_definition made optional in request body + - [Breaking] [Changed] validity made optional in request body + + +#### updateCouponPartially + +- ##### What's New + - [Added] Possible nullable value true to property schedule.start of schema CouponSchedule in request body + - [Added] property schedule.status of schema CouponSchedule in request body + + +#### getPromotions + +- ##### What's New + - [Added] query parameter createdBy (type: string) + + - [Added] query parameter reviewedBy (type: string) + + - [Added] query parameter approvedStartTime (type: string) + + - [Added] query parameter approvedEndTime (type: string) + + - [Added] query parameter reviewStartTime (type: string) + + - [Added] query parameter reviewEndTime (type: string) + + - [Added] query parameter status (type: string) + + - [Added] Possible nullable value true to property items[].display_meta.description of schema DisplayMeta1 in response with status code 200 + - [Added] Possible nullable value true to property items[].display_meta.name of schema DisplayMeta1 in response with status code 200 + - [Added] Possible nullable value true to property items[].display_meta.offer_text of schema DisplayMeta1 in response with status code 200 + - [Added] Possible nullable value true to property items[].discount_rules[].item_criteria.cart_quantity.equals of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property items[].discount_rules[].item_criteria.cart_quantity.greater_than of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property items[].discount_rules[].item_criteria.cart_quantity.less_than_equals of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property items[].discount_rules[].item_criteria.cart_quantity.less_than of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property items[].discount_rules[].item_criteria.cart_quantity.greater_than_equals of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property items[].discount_rules[].item_criteria.cart_total.equals of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property items[].discount_rules[].item_criteria.cart_total.greater_than of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property items[].discount_rules[].item_criteria.cart_total.less_than_equals of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property items[].discount_rules[].item_criteria.cart_total.less_than of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property items[].discount_rules[].item_criteria.cart_total.greater_than_equals of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property items[].discount_rules[].item_criteria.cart_unique_item_quantity.equals of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property items[].discount_rules[].item_criteria.cart_unique_item_quantity.greater_than of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property items[].discount_rules[].item_criteria.cart_unique_item_quantity.less_than_equals of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property items[].discount_rules[].item_criteria.cart_unique_item_quantity.less_than of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property items[].discount_rules[].item_criteria.cart_unique_item_quantity.greater_than_equals of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property items[].discount_rules[].item_criteria.cart_unique_item_amount.equals of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property items[].discount_rules[].item_criteria.cart_unique_item_amount.greater_than of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property items[].discount_rules[].item_criteria.cart_unique_item_amount.less_than_equals of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property items[].discount_rules[].item_criteria.cart_unique_item_amount.less_than of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property items[].discount_rules[].item_criteria.cart_unique_item_amount.greater_than_equals of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property items[].discount_rules[].offer.max_usage_per_transaction of schema DiscountOffer in response with status code 200 + - [Added] property items[].discount_rules[].meta of schema DiscountRule in response with status code 200 + - [Added] properties items[].restrictions.payments.codes, items[].restrictions.payments.iins, items[].restrictions.payments.types, items[].restrictions.payments.networks, items[].restrictions.payments.uses in response with status code 200 + - [Added] Possible nullable value true to property items[]._schedule.end of schema PromotionSchedule in response with status code 200 + - [Added] Possible nullable value true to property items[]._schedule.start of schema PromotionSchedule in response with status code 200 + - [Added] property items[]._schedule.status of schema PromotionSchedule in response with status code 200 + - [Added] property items[].author.approved_by of schema PromotionAuthor in response with status code 200 + - [Added] property items[].author.rejected_by of schema PromotionAuthor in response with status code 200 + - [Added] property items[].author.reviewed_by of schema PromotionAuthor in response with status code 200 + - [Added] properties items[].buy_rules.cart_quantity, items[].buy_rules.available_zones, items[].buy_rules.item_exclude_company, items[].buy_rules.item_id, items[].buy_rules.item_l1_category, items[].buy_rules.cart_total, items[].buy_rules.cart_unique_item_quantity, items[].buy_rules.cart_unique_item_amount, items[].buy_rules.item_exclude_id, items[].buy_rules.all_items, items[].buy_rules.item_exclude_l1_category, items[].buy_rules.item_size, items[].buy_rules.item_store, items[].buy_rules.item_exclude_sku, items[].buy_rules.item_department, items[].buy_rules.item_exclude_store, items[].buy_rules.item_brand, items[].buy_rules.item_exclude_department, items[].buy_rules.item_exclude_category, items[].buy_rules.item_category, items[].buy_rules.buy_rules, items[].buy_rules.item_exclude_brand, items[].buy_rules.item_l2_category, items[].buy_rules.item_company, items[].buy_rules.item_tags, items[].buy_rules.item_exclude_l2_category, items[].buy_rules.item_sku in response with status code 200 + - [Added] property items[].date_meta.approved_on of schema PromotionDateMeta in response with status code 200 + - [Added] property items[].date_meta.rejected_on of schema PromotionDateMeta in response with status code 200 + - [Added] property items[].date_meta.reviewed_on of schema PromotionDateMeta in response with status code 200 + - [Added] property items[].is_processed of schema PromotionListItem in response with status code 200 + +- ##### What's Changed + - [Breaking] [Changed] items[].ownership.payable_by, items[].ownership.payable_category made optional in response with status code 200 + - [Breaking] [Changed] items[].restrictions.uses made optional in response with status code 200 + - [Breaking] [Changed] items[]._schedule.end, items[]._schedule.published, items[]._schedule.start made optional in response with status code 200 + - [Breaking] [Changed] items[].post_order_action.action_date, items[].post_order_action.action_type made optional in response with status code 200 + - [Breaking] [Changed] items[].visiblility.coupon_list, items[].visiblility.pdp made optional in response with status code 200 + + +#### createPromotion + +- ##### What's New + - [Added] Possible nullable value true to property display_meta.description of schema DisplayMeta1 in request body + - [Added] Possible nullable value true to property display_meta.name of schema DisplayMeta1 in request body + - [Added] Possible nullable value true to property display_meta.offer_text of schema DisplayMeta1 in request body + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_quantity.equals of schema CompareObject in request body + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_quantity.greater_than of schema CompareObject in request body + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_quantity.less_than_equals of schema CompareObject in request body + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_quantity.less_than of schema CompareObject in request body + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_quantity.greater_than_equals of schema CompareObject in request body + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_total.equals of schema CompareObject in request body + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_total.greater_than of schema CompareObject in request body + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_total.less_than_equals of schema CompareObject in request body + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_total.less_than of schema CompareObject in request body + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_total.greater_than_equals of schema CompareObject in request body + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_unique_item_quantity.equals of schema CompareObject in request body + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_unique_item_quantity.greater_than of schema CompareObject in request body + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_unique_item_quantity.less_than_equals of schema CompareObject in request body + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_unique_item_quantity.less_than of schema CompareObject in request body + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_unique_item_quantity.greater_than_equals of schema CompareObject in request body + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_unique_item_amount.equals of schema CompareObject in request body + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_unique_item_amount.greater_than of schema CompareObject in request body + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_unique_item_amount.less_than_equals of schema CompareObject in request body + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_unique_item_amount.less_than of schema CompareObject in request body + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_unique_item_amount.greater_than_equals of schema CompareObject in request body + - [Added] Possible nullable value true to property discount_rules[].offer.max_usage_per_transaction of schema DiscountOffer in request body + - [Added] property discount_rules[].meta of schema DiscountRule in request body + - [Added] properties restrictions.payments.codes, restrictions.payments.iins, restrictions.payments.types, restrictions.payments.networks, restrictions.payments.uses in request body + - [Added] Possible nullable value true to property _schedule.end of schema PromotionSchedule in request body + - [Added] Possible nullable value true to property _schedule.start of schema PromotionSchedule in request body + - [Added] property _schedule.status of schema PromotionSchedule in request body + - [Added] property author.approved_by of schema PromotionAuthor in request body + - [Added] property author.rejected_by of schema PromotionAuthor in request body + - [Added] property author.reviewed_by of schema PromotionAuthor in request body + - [Added] properties buy_rules.cart_quantity, buy_rules.available_zones, buy_rules.item_exclude_company, buy_rules.item_id, buy_rules.item_l1_category, buy_rules.cart_total, buy_rules.cart_unique_item_quantity, buy_rules.cart_unique_item_amount, buy_rules.item_exclude_id, buy_rules.all_items, buy_rules.item_exclude_l1_category, buy_rules.item_size, buy_rules.item_store, buy_rules.item_exclude_sku, buy_rules.item_department, buy_rules.item_exclude_store, buy_rules.item_brand, buy_rules.item_exclude_department, buy_rules.item_exclude_category, buy_rules.item_category, buy_rules.buy_rules, buy_rules.item_exclude_brand, buy_rules.item_l2_category, buy_rules.item_company, buy_rules.item_tags, buy_rules.item_exclude_l2_category, buy_rules.item_sku in request body + - [Added] property date_meta.approved_on of schema PromotionDateMeta in request body + - [Added] property date_meta.rejected_on of schema PromotionDateMeta in request body + - [Added] property date_meta.reviewed_on of schema PromotionDateMeta in request body + - [Added] Possible nullable value true to property display_meta.description of schema DisplayMeta1 in response with status code 201 + - [Added] Possible nullable value true to property display_meta.name of schema DisplayMeta1 in response with status code 201 + - [Added] Possible nullable value true to property display_meta.offer_text of schema DisplayMeta1 in response with status code 201 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_quantity.equals of schema CompareObject in response with status code 201 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_quantity.greater_than of schema CompareObject in response with status code 201 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_quantity.less_than_equals of schema CompareObject in response with status code 201 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_quantity.less_than of schema CompareObject in response with status code 201 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_quantity.greater_than_equals of schema CompareObject in response with status code 201 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_total.equals of schema CompareObject in response with status code 201 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_total.greater_than of schema CompareObject in response with status code 201 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_total.less_than_equals of schema CompareObject in response with status code 201 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_total.less_than of schema CompareObject in response with status code 201 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_total.greater_than_equals of schema CompareObject in response with status code 201 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_unique_item_quantity.equals of schema CompareObject in response with status code 201 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_unique_item_quantity.greater_than of schema CompareObject in response with status code 201 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_unique_item_quantity.less_than_equals of schema CompareObject in response with status code 201 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_unique_item_quantity.less_than of schema CompareObject in response with status code 201 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_unique_item_quantity.greater_than_equals of schema CompareObject in response with status code 201 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_unique_item_amount.equals of schema CompareObject in response with status code 201 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_unique_item_amount.greater_than of schema CompareObject in response with status code 201 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_unique_item_amount.less_than_equals of schema CompareObject in response with status code 201 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_unique_item_amount.less_than of schema CompareObject in response with status code 201 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_unique_item_amount.greater_than_equals of schema CompareObject in response with status code 201 + - [Added] Possible nullable value true to property discount_rules[].offer.max_usage_per_transaction of schema DiscountOffer in response with status code 201 + - [Added] property discount_rules[].meta of schema DiscountRule in response with status code 201 + - [Added] properties restrictions.payments.codes, restrictions.payments.iins, restrictions.payments.types, restrictions.payments.networks, restrictions.payments.uses in response with status code 201 + - [Added] Possible nullable value true to property _schedule.end of schema PromotionSchedule in response with status code 201 + - [Added] Possible nullable value true to property _schedule.start of schema PromotionSchedule in response with status code 201 + - [Added] property _schedule.status of schema PromotionSchedule in response with status code 201 + - [Added] property author.approved_by of schema PromotionAuthor in response with status code 201 + - [Added] property author.rejected_by of schema PromotionAuthor in response with status code 201 + - [Added] property author.reviewed_by of schema PromotionAuthor in response with status code 201 + - [Added] properties buy_rules.cart_quantity, buy_rules.available_zones, buy_rules.item_exclude_company, buy_rules.item_id, buy_rules.item_l1_category, buy_rules.cart_total, buy_rules.cart_unique_item_quantity, buy_rules.cart_unique_item_amount, buy_rules.item_exclude_id, buy_rules.all_items, buy_rules.item_exclude_l1_category, buy_rules.item_size, buy_rules.item_store, buy_rules.item_exclude_sku, buy_rules.item_department, buy_rules.item_exclude_store, buy_rules.item_brand, buy_rules.item_exclude_department, buy_rules.item_exclude_category, buy_rules.item_category, buy_rules.buy_rules, buy_rules.item_exclude_brand, buy_rules.item_l2_category, buy_rules.item_company, buy_rules.item_tags, buy_rules.item_exclude_l2_category, buy_rules.item_sku in response with status code 201 + - [Added] property date_meta.approved_on of schema PromotionDateMeta in response with status code 201 + - [Added] property date_meta.rejected_on of schema PromotionDateMeta in response with status code 201 + - [Added] property date_meta.reviewed_on of schema PromotionDateMeta in response with status code 201 + - [Added] property is_processed of schema PromotionAddResult in response with status code 201 + +- ##### What's Changed + - [Breaking] [Changed] ownership.payable_by, ownership.payable_category made optional in request body + - [Breaking] [Changed] restrictions.uses made optional in request body + - [Breaking] [Changed] _schedule.end, _schedule.published, _schedule.start made optional in request body + - [Breaking] [Changed] post_order_action.action_date, post_order_action.action_type made optional in request body + - [Breaking] [Changed] visiblility.coupon_list, visiblility.pdp made optional in request body + - [Changed] buy_rules made optional in request body + - [Changed] discount_rules made optional in request body + - [Changed] display_meta made optional in request body + - [Changed] ownership made optional in request body + - [Breaking] [Changed] ownership.payable_by, ownership.payable_category made optional in response with status code 201 + - [Breaking] [Changed] restrictions.uses made optional in response with status code 201 + - [Breaking] [Changed] _schedule.end, _schedule.published, _schedule.start made optional in response with status code 201 + - [Breaking] [Changed] post_order_action.action_date, post_order_action.action_type made optional in response with status code 201 + - [Breaking] [Changed] visiblility.coupon_list, visiblility.pdp made optional in response with status code 201 + - [Breaking] [Changed] buy_rules made optional in response with status code 201 + - [Breaking] [Changed] discount_rules made optional in response with status code 201 + - [Breaking] [Changed] display_meta made optional in response with status code 201 + - [Breaking] [Changed] ownership made optional in response with status code 201 + + +#### getPromotionById + +- ##### What's New + - [Added] Possible nullable value true to property display_meta.description of schema DisplayMeta1 in response with status code 200 + - [Added] Possible nullable value true to property display_meta.name of schema DisplayMeta1 in response with status code 200 + - [Added] Possible nullable value true to property display_meta.offer_text of schema DisplayMeta1 in response with status code 200 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_quantity.equals of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_quantity.greater_than of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_quantity.less_than_equals of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_quantity.less_than of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_quantity.greater_than_equals of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_total.equals of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_total.greater_than of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_total.less_than_equals of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_total.less_than of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_total.greater_than_equals of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_unique_item_quantity.equals of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_unique_item_quantity.greater_than of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_unique_item_quantity.less_than_equals of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_unique_item_quantity.less_than of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_unique_item_quantity.greater_than_equals of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_unique_item_amount.equals of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_unique_item_amount.greater_than of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_unique_item_amount.less_than_equals of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_unique_item_amount.less_than of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_unique_item_amount.greater_than_equals of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property discount_rules[].offer.max_usage_per_transaction of schema DiscountOffer in response with status code 200 + - [Added] property discount_rules[].meta of schema DiscountRule in response with status code 200 + - [Added] properties restrictions.payments.codes, restrictions.payments.iins, restrictions.payments.types, restrictions.payments.networks, restrictions.payments.uses in response with status code 200 + - [Added] Possible nullable value true to property _schedule.end of schema PromotionSchedule in response with status code 200 + - [Added] Possible nullable value true to property _schedule.start of schema PromotionSchedule in response with status code 200 + - [Added] property _schedule.status of schema PromotionSchedule in response with status code 200 + - [Added] property author.approved_by of schema PromotionAuthor in response with status code 200 + - [Added] property author.rejected_by of schema PromotionAuthor in response with status code 200 + - [Added] property author.reviewed_by of schema PromotionAuthor in response with status code 200 + - [Added] properties buy_rules.cart_quantity, buy_rules.available_zones, buy_rules.item_exclude_company, buy_rules.item_id, buy_rules.item_l1_category, buy_rules.cart_total, buy_rules.cart_unique_item_quantity, buy_rules.cart_unique_item_amount, buy_rules.item_exclude_id, buy_rules.all_items, buy_rules.item_exclude_l1_category, buy_rules.item_size, buy_rules.item_store, buy_rules.item_exclude_sku, buy_rules.item_department, buy_rules.item_exclude_store, buy_rules.item_brand, buy_rules.item_exclude_department, buy_rules.item_exclude_category, buy_rules.item_category, buy_rules.buy_rules, buy_rules.item_exclude_brand, buy_rules.item_l2_category, buy_rules.item_company, buy_rules.item_tags, buy_rules.item_exclude_l2_category, buy_rules.item_sku in response with status code 200 + - [Added] property date_meta.approved_on of schema PromotionDateMeta in response with status code 200 + - [Added] property date_meta.rejected_on of schema PromotionDateMeta in response with status code 200 + - [Added] property date_meta.reviewed_on of schema PromotionDateMeta in response with status code 200 + - [Added] property reason of schema PromotionUpdateResult in response with status code 200 + - [Added] property is_processed of schema PromotionUpdateResult in response with status code 200 + +- ##### What's Changed + - [Breaking] [Changed] ownership.payable_by, ownership.payable_category made optional in response with status code 200 + - [Breaking] [Changed] restrictions.uses made optional in response with status code 200 + - [Breaking] [Changed] _schedule.end, _schedule.published, _schedule.start made optional in response with status code 200 + - [Breaking] [Changed] post_order_action.action_date, post_order_action.action_type made optional in response with status code 200 + - [Breaking] [Changed] visiblility.coupon_list, visiblility.pdp made optional in response with status code 200 + - [Breaking] [Changed] buy_rules made optional in response with status code 200 + - [Breaking] [Changed] discount_rules made optional in response with status code 200 + - [Breaking] [Changed] display_meta made optional in response with status code 200 + - [Breaking] [Changed] ownership made optional in response with status code 200 + + +#### updatePromotion + +- ##### What's New + - [Added] Possible nullable value true to property display_meta.description of schema DisplayMeta1 in request body + - [Added] Possible nullable value true to property display_meta.name of schema DisplayMeta1 in request body + - [Added] Possible nullable value true to property display_meta.offer_text of schema DisplayMeta1 in request body + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_quantity.equals of schema CompareObject in request body + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_quantity.greater_than of schema CompareObject in request body + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_quantity.less_than_equals of schema CompareObject in request body + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_quantity.less_than of schema CompareObject in request body + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_quantity.greater_than_equals of schema CompareObject in request body + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_total.equals of schema CompareObject in request body + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_total.greater_than of schema CompareObject in request body + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_total.less_than_equals of schema CompareObject in request body + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_total.less_than of schema CompareObject in request body + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_total.greater_than_equals of schema CompareObject in request body + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_unique_item_quantity.equals of schema CompareObject in request body + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_unique_item_quantity.greater_than of schema CompareObject in request body + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_unique_item_quantity.less_than_equals of schema CompareObject in request body + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_unique_item_quantity.less_than of schema CompareObject in request body + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_unique_item_quantity.greater_than_equals of schema CompareObject in request body + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_unique_item_amount.equals of schema CompareObject in request body + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_unique_item_amount.greater_than of schema CompareObject in request body + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_unique_item_amount.less_than_equals of schema CompareObject in request body + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_unique_item_amount.less_than of schema CompareObject in request body + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_unique_item_amount.greater_than_equals of schema CompareObject in request body + - [Added] Possible nullable value true to property discount_rules[].offer.max_usage_per_transaction of schema DiscountOffer in request body + - [Added] property discount_rules[].meta of schema DiscountRule in request body + - [Added] properties restrictions.payments.codes, restrictions.payments.iins, restrictions.payments.types, restrictions.payments.networks, restrictions.payments.uses in request body + - [Added] Possible nullable value true to property _schedule.end of schema PromotionSchedule in request body + - [Added] Possible nullable value true to property _schedule.start of schema PromotionSchedule in request body + - [Added] property _schedule.status of schema PromotionSchedule in request body + - [Added] property author.approved_by of schema PromotionAuthor in request body + - [Added] property author.rejected_by of schema PromotionAuthor in request body + - [Added] property author.reviewed_by of schema PromotionAuthor in request body + - [Added] properties buy_rules.cart_quantity, buy_rules.available_zones, buy_rules.item_exclude_company, buy_rules.item_id, buy_rules.item_l1_category, buy_rules.cart_total, buy_rules.cart_unique_item_quantity, buy_rules.cart_unique_item_amount, buy_rules.item_exclude_id, buy_rules.all_items, buy_rules.item_exclude_l1_category, buy_rules.item_size, buy_rules.item_store, buy_rules.item_exclude_sku, buy_rules.item_department, buy_rules.item_exclude_store, buy_rules.item_brand, buy_rules.item_exclude_department, buy_rules.item_exclude_category, buy_rules.item_category, buy_rules.buy_rules, buy_rules.item_exclude_brand, buy_rules.item_l2_category, buy_rules.item_company, buy_rules.item_tags, buy_rules.item_exclude_l2_category, buy_rules.item_sku in request body + - [Added] property date_meta.approved_on of schema PromotionDateMeta in request body + - [Added] property date_meta.rejected_on of schema PromotionDateMeta in request body + - [Added] property date_meta.reviewed_on of schema PromotionDateMeta in request body + - [Added] property reason of schema PromotionUpdate in request body + - [Added] Possible nullable value true to property display_meta.description of schema DisplayMeta1 in response with status code 200 + - [Added] Possible nullable value true to property display_meta.name of schema DisplayMeta1 in response with status code 200 + - [Added] Possible nullable value true to property display_meta.offer_text of schema DisplayMeta1 in response with status code 200 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_quantity.equals of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_quantity.greater_than of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_quantity.less_than_equals of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_quantity.less_than of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_quantity.greater_than_equals of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_total.equals of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_total.greater_than of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_total.less_than_equals of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_total.less_than of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_total.greater_than_equals of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_unique_item_quantity.equals of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_unique_item_quantity.greater_than of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_unique_item_quantity.less_than_equals of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_unique_item_quantity.less_than of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_unique_item_quantity.greater_than_equals of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_unique_item_amount.equals of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_unique_item_amount.greater_than of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_unique_item_amount.less_than_equals of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_unique_item_amount.less_than of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property discount_rules[].item_criteria.cart_unique_item_amount.greater_than_equals of schema CompareObject in response with status code 200 + - [Added] Possible nullable value true to property discount_rules[].offer.max_usage_per_transaction of schema DiscountOffer in response with status code 200 + - [Added] property discount_rules[].meta of schema DiscountRule in response with status code 200 + - [Added] properties restrictions.payments.codes, restrictions.payments.iins, restrictions.payments.types, restrictions.payments.networks, restrictions.payments.uses in response with status code 200 + - [Added] Possible nullable value true to property _schedule.end of schema PromotionSchedule in response with status code 200 + - [Added] Possible nullable value true to property _schedule.start of schema PromotionSchedule in response with status code 200 + - [Added] property _schedule.status of schema PromotionSchedule in response with status code 200 + - [Added] property author.approved_by of schema PromotionAuthor in response with status code 200 + - [Added] property author.rejected_by of schema PromotionAuthor in response with status code 200 + - [Added] property author.reviewed_by of schema PromotionAuthor in response with status code 200 + - [Added] properties buy_rules.cart_quantity, buy_rules.available_zones, buy_rules.item_exclude_company, buy_rules.item_id, buy_rules.item_l1_category, buy_rules.cart_total, buy_rules.cart_unique_item_quantity, buy_rules.cart_unique_item_amount, buy_rules.item_exclude_id, buy_rules.all_items, buy_rules.item_exclude_l1_category, buy_rules.item_size, buy_rules.item_store, buy_rules.item_exclude_sku, buy_rules.item_department, buy_rules.item_exclude_store, buy_rules.item_brand, buy_rules.item_exclude_department, buy_rules.item_exclude_category, buy_rules.item_category, buy_rules.buy_rules, buy_rules.item_exclude_brand, buy_rules.item_l2_category, buy_rules.item_company, buy_rules.item_tags, buy_rules.item_exclude_l2_category, buy_rules.item_sku in response with status code 200 + - [Added] property date_meta.approved_on of schema PromotionDateMeta in response with status code 200 + - [Added] property date_meta.rejected_on of schema PromotionDateMeta in response with status code 200 + - [Added] property date_meta.reviewed_on of schema PromotionDateMeta in response with status code 200 + - [Added] property reason of schema PromotionUpdateResult in response with status code 200 + - [Added] property is_processed of schema PromotionUpdateResult in response with status code 200 + +- ##### What's Changed + - [Breaking] [Changed] ownership.payable_by, ownership.payable_category made optional in request body + - [Breaking] [Changed] restrictions.uses made optional in request body + - [Breaking] [Changed] _schedule.end, _schedule.published, _schedule.start made optional in request body + - [Breaking] [Changed] post_order_action.action_date, post_order_action.action_type made optional in request body + - [Breaking] [Changed] visiblility.coupon_list, visiblility.pdp made optional in request body + - [Changed] buy_rules made optional in request body + - [Changed] discount_rules made optional in request body + - [Changed] display_meta made optional in request body + - [Changed] ownership made optional in request body + - [Breaking] [Changed] ownership.payable_by, ownership.payable_category made optional in response with status code 200 + - [Breaking] [Changed] restrictions.uses made optional in response with status code 200 + - [Breaking] [Changed] _schedule.end, _schedule.published, _schedule.start made optional in response with status code 200 + - [Breaking] [Changed] post_order_action.action_date, post_order_action.action_type made optional in response with status code 200 + - [Breaking] [Changed] visiblility.coupon_list, visiblility.pdp made optional in response with status code 200 + - [Breaking] [Changed] buy_rules made optional in response with status code 200 + - [Breaking] [Changed] discount_rules made optional in response with status code 200 + - [Breaking] [Changed] display_meta made optional in response with status code 200 + - [Breaking] [Changed] ownership made optional in response with status code 200 + + +#### updatePromotionPartially + +- ##### What's New + - [Added] Possible nullable value true to property schedule.end of schema PromotionSchedule in request body + - [Added] Possible nullable value true to property schedule.start of schema PromotionSchedule in request body + - [Added] property schedule.status of schema PromotionSchedule in request body + +- ##### What's Changed + - [Breaking] [Changed] schedule.end, schedule.published, schedule.start made optional in request body + + +#### getPromosCouponConfig + +- ##### What's New + - [Breaking] [Added] Value format date-time to property modified_on of schema ActivePromosResult in response with status code 200 + - [Breaking] [Added] Value format date-time to property created_on of schema ActivePromosResult in response with status code 200 + + +#### getPromotionOffers + +- ##### What's New + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property available_promotions[].promotion_type of schema PromotionOffer in response with status code 200 + - [Added] property available_promotions[].free_gift_items[].article_price of schema FreeGiftItems in response with status code 200 + - [Added] property available_promotions[].free_gift_items[].available_sizes of schema FreeGiftItems in response with status code 200 + - [Added] property available_promotions[].free_gift_items[].size of schema FreeGiftItems in response with status code 200 + + +#### getPromotionPaymentOffers + +- ##### What's New + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property promotions[].promotion_type of schema PromotionPaymentOffer in response with status code 200 + + +#### updatePriceAdjustment + +- ##### What's New + - [Added] property data[] of schema GetPriceAdjustmentResult in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] properties data.value, data.message, data.apply_expiry, data.restrictions, data.article_level_distribution, data.id, data.collection, data.type, data.allowed_refund, data.is_authenticated, data.article_ids, data.meta, data.cart_id in response with status code 200 + +- ##### What's Changed + - [Breaking] [Changed] Type from object to array of property data of schema PriceAdjustment in response with status code 200 + - [Breaking] [Changed] data.article_ids, data.article_level_distribution, data.cart_id, data.collection, data.is_authenticated, data.message, data.type, data.value made optional in response with status code 200 + + +#### addPriceAdjustment + +- ##### What's New + - [Added] property data[] of schema GetPriceAdjustmentResult in response with status code 201 + +- ##### What's Deprecated + - [Breaking] [Deleted] properties data.value, data.message, data.apply_expiry, data.restrictions, data.article_level_distribution, data.id, data.collection, data.type, data.allowed_refund, data.is_authenticated, data.article_ids, data.meta, data.cart_id in response with status code 201 + +- ##### What's Changed + - [Breaking] [Changed] Type from object to array of property data of schema PriceAdjustment in response with status code 201 + - [Breaking] [Changed] data.article_ids, data.article_level_distribution, data.cart_id, data.collection, data.is_authenticated, data.message, data.type, data.value made optional in response with status code 201 + + +#### fetchAndvalidateCartItems + +- ##### What's New + - [Added] property items[].product.action.page of schema ProductAction in response with status code 200 + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 + + +#### checkCartServiceability + +- ##### What's New + - [Added] property items[].product.action.page of schema ProductAction in response with status code 200 + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 + + +#### getAbandonedCartDetails + +- ##### What's New + - [Added] property items[].product.action.page of schema ProductAction in response with status code 200 + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property applied_promo_details[].promotion_type of schema AppliedPromotion in response with status code 200 + + +#### addItems + +- ##### What's New + - [Added] property cart.items[].product.action.page of schema ProductAction in response with status code 200 + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property cart.items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property cart.applied_promo_details[].promotion_type of schema AppliedPromotion in response with status code 200 + + +#### updateCart + +- ##### What's New + - [Added] property free_gift_items of schema UpdateCartCreation in request body + - [Added] property cart.items[].product.action.page of schema ProductAction in response with status code 200 + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property cart.items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property cart.applied_promo_details[].promotion_type of schema AppliedPromotion in response with status code 200 + + +#### overrideCart + +- ##### What's New + - [Breaking] [Added] Possible values HomeDelivery,PickAtStore,Digital to property order_type of schema OverrideCheckoutReq in request body + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property payment_identifier of schema OverrideCheckoutReq in request body + + +#### getCartSharedItems + +- ##### What's New + - [Added] property cart.items[].product.action.page of schema ProductAction in response with status code 200 + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property cart.items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 + - [Added] property cart.items[].product.action.page of schema ProductAction in response with status code 404 + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property cart.items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 404 + + +#### updateCartWithSharedItems + +- ##### What's New + - [Added] property cart.items[].product.action.page of schema ProductAction in response with status code 200 + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property cart.items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 + + +#### getCartList + +- ##### What's New + - [Breaking] [Added] Value format date-time to property data[].created_on of schema CartList in response with status code 200 + + +#### updateCartUser + +- ##### What's New + - [Breaking] [Added] Value format date-time to property user.modified_on of schema UserInfo in response with status code 200 + - [Breaking] [Added] Value format date-time to property user.last_name of schema UserInfo in response with status code 200 + - [Breaking] [Added] Value format date-time to property user.created_at of schema UserInfo in response with status code 200 + - [Added] property items[].product.action.page of schema ProductAction in response with status code 200 + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property applied_promo_details[].promotion_type of schema AppliedPromotion in response with status code 200 + + +#### getCart + +- ##### What's New + - [Added] property items[].product.action.page of schema ProductAction in response with status code 200 + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property applied_promo_details[].promotion_type of schema AppliedPromotion in response with status code 200 + + +#### platformAddItems + +- ##### What's New + - [Added] property cart.items[].product.action.page of schema ProductAction in response with status code 200 + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property cart.items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property cart.applied_promo_details[].promotion_type of schema AppliedPromotion in response with status code 200 + + +#### platformUpdateCart + +- ##### What's New + - [Added] property free_gift_items of schema PlatformUpdateCartDetails in request body + - [Added] property cart.items[].product.action.page of schema ProductAction in response with status code 200 + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property cart.items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property cart.applied_promo_details[].promotion_type of schema AppliedPromotion in response with status code 200 + + +#### getAppCoupons + +- ##### What's New + - [Breaking] [Added] Value format date-time to property available_coupon_list[].start_date of schema Coupon in response with status code 200 + - [Breaking] [Added] Value format date-time to property available_coupon_list[].end_date of schema Coupon in response with status code 200 + + +#### applyCoupon + +- ##### What's New + - [Added] property items[].product.action.page of schema ProductAction in response with status code 201 + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 201 + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property applied_promo_details[].promotion_type of schema AppliedPromotion in response with status code 201 + + +#### removeCoupon + +- ##### What's New + - [Added] property items[].product.action.page of schema ProductAction in response with status code 200 + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property applied_promo_details[].promotion_type of schema AppliedPromotion in response with status code 200 + + +#### getAddresses + +- ##### What's New + - [Added] property validation_config of schema PlatformGetAddressesDetails in response with status code 200 + + +#### addAddress + +- ##### What's New + - [Added] Response with status 422 + + +#### selectAddress + +- ##### What's New + - [Added] property items[].product.action.page of schema ProductAction in response with status code 201 + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 201 + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property applied_promo_details[].promotion_type of schema AppliedPromotion in response with status code 201 + + +#### getShipments + +- ##### What's New + - [Added] property items[].product.action.page of schema ProductAction in response with status code 200 + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 + - [Added] property shipments[].items[].product.action.page of schema ProductAction in response with status code 200 + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property shipments[].items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 + - [Breaking] [Added] Possible values HomeDelivery,PickAtStore,Digital to property shipments[].order_type of schema PlatformShipmentDetails in response with status code 200 + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property applied_promo_details[].promotion_type of schema AppliedPromotion in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### updateShipments + +- ##### What's New + - [Added] property items[].product.action.page of schema ProductAction in response with status code 200 + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 + - [Added] property shipments[].items[].product.action.page of schema ProductAction in response with status code 200 + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property shipments[].items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 + - [Breaking] [Added] Possible values HomeDelivery,PickAtStore,Digital to property shipments[].order_type of schema PlatformShipmentDetails in response with status code 200 + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property applied_promo_details[].promotion_type of schema AppliedPromotion in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### selectPaymentMode + +- ##### What's New + - [Added] property items[].product.action.page of schema ProductAction in response with status code 200 + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property applied_promo_details[].promotion_type of schema AppliedPromotion in response with status code 200 + + +#### validateCouponForPayment + +- ##### What's New + - [Added] property coupon_validity.error_en of schema CouponValidity in response with status code 200 + + +#### platformCheckoutCartV2 + +- ##### What's New + - [Added] property custom_meta[] of schema PlatformCartCheckoutDetailV2Creation in request body + - [Added] properties customer_details.name, customer_details.email, customer_details.mobile in request body + - [Breaking] [Added] customer_details.mobile made required in request body + - [Breaking] [Added] Possible values HomeDelivery,PickAtStore,Digital to property order_type of schema PlatformCartCheckoutDetailV2Creation in request body + - [Added] property cart.items[].product.action.page of schema ProductAction in response with status code 200 + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property cart.items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property customer_details of schema PlatformCartCheckoutDetailV2Request in request body + - [Breaking] [Deleted] Possible nullable value from true from property user_id of schema PlatformCartCheckoutDetailV2Request in request body + +- ##### What's Changed + - [Breaking] [Changed] Type from object to array of property custom_meta of schema PlatformCartCheckoutDetailV2Request in request body + + +#### selectPaymentModeV2 + +- ##### What's New + - [Added] property items[].product.action.page of schema ProductAction in response with status code 200 + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property items[].promotions_applied[].promotion_type of schema AppliedPromotion in response with status code 200 + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount to property applied_promo_details[].promotion_type of schema AppliedPromotion in response with status code 200 + + +#### deleteCoupon + +- ##### What's New + - [Added] method deleteCoupon + + + +#### deletePromotion + +- ##### What's New + - [Added] method deletePromotion + + + +#### platformCheckoutCart + +- ##### What's New + - [Added] method platformCheckoutCart + + + +### Catalog + + + +#### getApplicationBrandListing + +- ##### What's Deprecated + - [Breaking] [Deleted] property items[].modified_on of schema ApplicationBrandListingItemSchema in response with status code 200 + - [Breaking] [Deleted] property items[].active of schema ApplicationBrandListingItemSchema in response with status code 200 + + +#### getApplicationBrands + +- ##### What's New + - [Breaking] [Added] Type object to property items[].logo of schema Media2 in response with status code 200 + + +#### getCategories + +- ##### What's Deprecated + - [Breaking] [Deleted] property data[].items[]._custom_json of schema CategoryItems in response with status code 200 + - [Breaking] [Deleted] property departments[].name of schema DepartmentIdentifier in response with status code 200 + + +#### getAllCollections + +- ##### What's New + - [Breaking] [Added] Possible values image,video,3d_model to property items[].logo.type of schema Media in response with status code 200 + - [Added] property items[].logo.alt of schema Media in response with status code 200 + - [Added] property items[].logo.thumbnail of schema Media in response with status code 200 + - [Added] property items[].cron of schema GetCollectionDetailNest in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] properties items[]._schedule.cron, items[]._schedule.duration, items[]._schedule.end, items[]._schedule.next_schedule, items[]._schedule.start in response with status code 200 + - [Breaking] [Deleted] properties items[].badge.color, items[].badge.text in response with status code 200 + - [Breaking] [Deleted] property items[]._id of schema GetCollectionDetailNest in response with status code 200 + - [Breaking] [Deleted] property items[].published of schema GetCollectionDetailNest in response with status code 200 + - [Breaking] [Deleted] property items[].tags of schema GetCollectionDetailNest in response with status code 200 + - [Breaking] [Deleted] property items[].sort_on of schema GetCollectionDetailNest in response with status code 200 + - [Breaking] [Deleted] property items[]._custom_json of schema GetCollectionDetailNest in response with status code 200 + - [Breaking] [Deleted] property items[]._locale_language of schema GetCollectionDetailNest in response with status code 200 + - [Breaking] [Deleted] property items[].seo of schema GetCollectionDetailNest in response with status code 200 + - [Breaking] [Deleted] property items[].is_visible of schema GetCollectionDetailNest in response with status code 200 + + +#### createCollection + +- ##### What's New + - [Added] Possible nullable value true to property created_by of schema CreateCollection in request body + - [Added] Possible nullable value true to property modified_by of schema CreateCollection in request body + - [Added] property cron of schema CollectionCreateResponseSchema in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] properties _schedule.cron, _schedule.duration, _schedule.end, _schedule.next_schedule, _schedule.start in response with status code 200 + - [Breaking] [Deleted] property published of schema CollectionCreateResponse in response with status code 200 + - [Breaking] [Deleted] property tags of schema CollectionCreateResponse in response with status code 200 + - [Breaking] [Deleted] property action of schema CollectionCreateResponse in response with status code 200 + - [Breaking] [Deleted] property _custom_json of schema CollectionCreateResponse in response with status code 200 + - [Breaking] [Deleted] property _locale_language of schema CollectionCreateResponse in response with status code 200 + - [Breaking] [Deleted] property seo of schema CollectionCreateResponse in response with status code 200 + - [Breaking] [Deleted] property is_visible of schema CollectionCreateResponse in response with status code 200 + - [Breaking] [Deleted] property id of schema CollectionCreateResponse in response with status code 200 + + +#### updateCollection + +- ##### What's New + - [Added] Possible nullable value true to property modified_by of schema UpdateCollection in request body + - [Added] Possible nullable value true to property modified_by of schema UpdateCollection in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] properties modified_by.email, modified_by.uid, modified_by.user_id, modified_by.username in request body + - [Breaking] [Deleted] properties modified_by.email, modified_by.uid, modified_by.user_id, modified_by.username in response with status code 200 + +- ##### What's Changed + - [Breaking] [Changed] Type from object to string of property modified_by of schema UserInfo in request body + - [Breaking] [Changed] Type from object to string of property modified_by of schema UserInfo in response with status code 200 + + +#### getCollectionItems + +- ##### What's New + - [Breaking] [Added] Possible values image,video,3d_model to property items[].brand.logo.type of schema Media in response with status code 200 + - [Added] property items[].brand.logo.alt of schema Media in response with status code 200 + - [Added] property items[].brand.logo.thumbnail of schema Media in response with status code 200 + - [Breaking] [Added] Possible values default,standard to property items[].image_nature of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Added] Possible values composite,digital,packaging,set,standard to property items[].item_type of schema ApplicationProductsSchema in response with status code 200 + - [Breaking] [Added] Possible values image,video,3d_model to property items[].medias[].type of schema Media in response with status code 200 + - [Added] property items[].medias[].alt of schema Media in response with status code 200 + - [Added] property items[].medias[].thumbnail of schema Media in response with status code 200 + - [Breaking] [Added] Possible values INR,USD,EUR to property items[].price.effective.currency_code of schema CurrencyCodeEnum in response with status code 200 + - [Breaking] [Added] Possible values INR,USD,EUR to property items[].price.marked.currency_code of schema CurrencyCodeEnum in response with status code 200 + - [Added] property items[].price.selling of schema ProductListingPrice in response with status code 200 + - [Added] property items[].popularity of schema ApplicationProductsSchema in response with status code 200 + - [Added] property items[].brand_uid of schema ApplicationProductsSchema in response with status code 200 + - [Added] property items[].category_uid of schema ApplicationProductsSchema in response with status code 200 + - [Added] property items[].verification_status of schema ApplicationProductsSchema in response with status code 200 + - [Added] property items[].channel_identifier of schema ApplicationProductsSchema in response with status code 200 + - [Added] property items[].category_slug of schema ApplicationProductsSchema in response with status code 200 + - [Added] property items[].size_guide of schema ApplicationProductsSchema in response with status code 200 + - [Added] property items[].l3_categories of schema ApplicationProductsSchema in response with status code 200 + - [Added] property items[].store_ids of schema ApplicationProductsSchema in response with status code 200 + - [Added] property items[].company_ids of schema ApplicationProductsSchema in response with status code 200 + - [Added] property items[].departments of schema ApplicationProductsSchema in response with status code 200 + - [Added] property items[].tags of schema ApplicationProductsSchema in response with status code 200 + - [Added] property items[].l3_category_names of schema ApplicationProductsSchema in response with status code 200 + - [Added] property items[].sizes of schema ApplicationProductsSchema in response with status code 200 + - [Added] property items[].product_group_tag of schema ApplicationProductsSchema in response with status code 200 + - [Added] property items[].multi_size of schema ApplicationProductsSchema in response with status code 200 + - [Added] property items[].is_gift of schema ApplicationProductsSchema in response with status code 200 + - [Added] property items[].is_cod of schema ApplicationProductsSchema in response with status code 200 + - [Added] property items[].is_dependent of schema ApplicationProductsSchema in response with status code 200 + - [Added] property items[].is_available of schema ApplicationProductsSchema in response with status code 200 + - [Added] property items[].moq of schema ApplicationProductsSchema in response with status code 200 + - [Added] property items[].seo of schema ApplicationProductsSchema in response with status code 200 + - [Added] property items[].variants of schema ApplicationProductsSchema in response with status code 200 + - [Added] property items[].variant_media of schema ApplicationProductsSchema in response with status code 200 + - [Added] property items[].variant_group of schema ApplicationProductsSchema in response with status code 200 + - [Added] property items[].multi_categories of schema ApplicationProductsSchema in response with status code 200 + - [Added] property items[].template_tag of schema ApplicationProductsSchema in response with status code 200 + - [Added] property items[].net_quantity of schema ApplicationProductsSchema in response with status code 200 + - [Added] property items[].custom_order of schema ApplicationProductsSchema in response with status code 200 + - [Added] property items[].country_of_origin of schema ApplicationProductsSchema in response with status code 200 + - [Added] property items[]._custom_json of schema ApplicationProductsSchema in response with status code 200 + - [Added] property items[].identifiers of schema ApplicationProductsSchema in response with status code 200 + - [Added] property items[].item_id of schema ApplicationProductsSchema in response with status code 200 + - [Added] property items[]._custom_meta of schema ApplicationProductsSchema in response with status code 200 + - [Added] property items[].discount_percentage of schema ApplicationProductsSchema in response with status code 200 + - [Added] items[].is_dependent made required in response with status code 200 + - [Added] items[].uid made required in response with status code 200 + - [Added] items[].category_uid made required in response with status code 200 + - [Added] items[].item_code made required in response with status code 200 + - [Added] items[].multi_size made required in response with status code 200 + - [Added] items[].brand_uid made required in response with status code 200 + - [Added] items[].country_of_origin made required in response with status code 200 + - [Added] items[].item_type made required in response with status code 200 + - [Added] items[].departments made required in response with status code 200 + - [Added] items[].slug made required in response with status code 200 + - [Added] items[].image_nature made required in response with status code 200 + - [Added] items[].moq made required in response with status code 200 + - [Added] items[].seo made required in response with status code 200 + - [Added] items[].is_cod made required in response with status code 200 + - [Added] items[].is_gift made required in response with status code 200 + - [Added] items[].is_available made required in response with status code 200 + - [Added] items[].l3_categories made required in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property items[].grouped_attributes of schema ProductListingDetail in response with status code 200 + - [Deleted] Type from object from property items[].price of schema ProductListingPrice in response with status code 200 + + +#### getCollectionDetail + +- ##### What's New + - [Breaking] [Added] Possible values image,video,3d_model to property logo.type of schema Media in response with status code 200 + - [Added] property logo.alt of schema Media in response with status code 200 + - [Added] property logo.thumbnail of schema Media in response with status code 200 + + +#### getAppLocations + +- ##### What's New + - [Breaking] [Added] Possible values distributor,franchise,mbo,manufacturer-owner to property items[].company.company_type of schema GetCompanySchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].company.created_on of schema GetCompanySchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].company.modified_on of schema GetCompanySchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].company.verified_on of schema GetCompanySchema in response with status code 200 + - [Breaking] [Added] Possible values high_street,warehouse,mall to property items[].store_type of schema GetLocationSchema in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property items[].integration_type.order of schema LocationIntegrationType in response with status code 200 + + +#### getAppicationProducts + +- ##### What's Deprecated + - [Breaking] [Deleted] property items[].grouped_attributes of schema ProductListingDetail in response with status code 200 + - [Deleted] Type from object from property items[].price of schema ProductListingPrice in response with status code 200 + +- ##### What's Changed + - [Breaking] [Changed] operationId from getAppicationProducts to getApplicationProducts + + +#### getDiscountedInventoryBySizeIdentifier + +- ##### What's New + - [Added] properties items[].tax_identifier.hsn_code, items[].tax_identifier.hsn_code_id, items[].tax_identifier.reporting_hsn in response with status code 200 + + +#### getProductDetailBySlug + +- ##### What's New + - [Breaking] [Added] Possible values image,video,3d_model to property brand.logo.type of schema Media in response with status code 200 + - [Added] property brand.logo.alt of schema Media in response with status code 200 + - [Added] property brand.logo.thumbnail of schema Media in response with status code 200 + - [Breaking] [Added] Possible values set,standard,composite,digital to property item_type of schema ProductDetail in response with status code 200 + - [Breaking] [Added] Possible values image,video,3d_model to property medias[].type of schema Media in response with status code 200 + - [Added] property medias[].alt of schema Media in response with status code 200 + - [Added] property medias[].thumbnail of schema Media in response with status code 200 + + +#### getAppProducts + +- ##### What's New + - [Breaking] [Added] Possible values set,standard,composite,digital to property items[].item_type of schema RawProduct in response with status code 200 + - [Breaking] [Added] Possible values image,video,3d_model to property items[].media[].type of schema Media in response with status code 200 + - [Added] property items[].media[].alt of schema Media in response with status code 200 + - [Added] property items[].media[].thumbnail of schema Media in response with status code 200 + - [Added] properties items[].tax_identifier.hsn_code, items[].tax_identifier.hsn_code_id, items[].tax_identifier.reporting_hsn in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].verified_on of schema RawProduct in response with status code 200 + + +#### createAppReturnConfiguration + +- ##### What's Deprecated + - [Breaking] [Deleted] property app_id of schema CreateUpdateAppReturnConfig in request body + - [Breaking] [Deleted] property company_id of schema CreateUpdateAppReturnConfig in request body + +- ##### What's Changed + - [Changed] app_id made optional in request body + - [Changed] company_id made optional in request body + + +#### updateAppReturnConfiguration + +- ##### What's Deprecated + - [Breaking] [Deleted] property app_id of schema CreateUpdateAppReturnConfig in request body + - [Breaking] [Deleted] property company_id of schema CreateUpdateAppReturnConfig in request body + +- ##### What's Changed + - [Changed] app_id made optional in request body + - [Changed] company_id made optional in request body + + +#### deleteAppCategoryReturnConfiguration + +- ##### What's Deprecated + - [Breaking] [Deleted] property app_id of schema DeleteAppCategoryReturnConfig in request body + - [Breaking] [Deleted] property company_id of schema DeleteAppCategoryReturnConfig in request body + +- ##### What's Changed + - [Changed] app_id made optional in request body + - [Changed] company_id made optional in request body + + +#### createAppCategoryReturnConfiguration + +- ##### What's Deprecated + - [Breaking] [Deleted] property app_id of schema BaseAppCategoryReturnConfig in request body + - [Breaking] [Deleted] property company_id of schema BaseAppCategoryReturnConfig in request body + +- ##### What's Changed + - [Changed] app_id made optional in request body + - [Changed] company_id made optional in request body + + +#### updateAppCategoryReturnConfiguration + +- ##### What's Deprecated + - [Breaking] [Deleted] property app_id of schema BaseAppCategoryReturnConfig in request body + - [Breaking] [Deleted] property company_id of schema BaseAppCategoryReturnConfig in request body + +- ##### What's Changed + - [Changed] app_id made optional in request body + - [Changed] company_id made optional in request body + + +#### listDepartmentsData + +- ##### What's New + - [Breaking] [Added] Possible values set,standard,composite,digital to property items[].item_type of schema GetDepartment in response with status code 200 + + +#### getDepartmentData + +- ##### What's New + - [Breaking] [Added] Possible values set,standard,composite,digital to property items[].item_type of schema GetDepartment in response with status code 200 + + +#### bulkHsnCode + +- ##### What's Changed + - [Changed] data[].hs2_code made optional in request body + + +#### updateHsnCode + +- ##### What's Changed + - [Changed] hs2_code made optional in request body + + +#### getInventories + +- ##### What's New + - [Added] properties items[].identifier.ean, items[].identifier.sku_code, items[].identifier.alu, items[].identifier.upc, items[].identifier.isbn in response with status code 200 + - [Breaking] [Added] Possible values high_street,warehouse,mall to property items[].store.store_type of schema ArticleStoreResponseSchema in response with status code 200 + - [Added] properties items[].tax_identifier.hsn_code, items[].tax_identifier.hsn_code_id, items[].tax_identifier.reporting_hsn in response with status code 200 + +- ##### What's Deprecated + - [Deleted] Type from object from property items[].identifier of schema GetInventories in response with status code 200 + +- ##### What's Changed + - [Breaking] [Changed] items[].return_config.returnable, items[].return_config.time, items[].return_config.unit made optional in response with status code 200 + + +#### getInventoryBulkUploadHistory + +- ##### What's New + - [Breaking] [Added] Value format date-time to property items[].created_on of schema BulkInventoryGetItems in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].modified_on of schema BulkInventoryGetItems in response with status code 200 + + +#### createInventoryExportJob + +- ##### What's New + - [Added] properties filters.brands, filters.from_date, filters.quantity, filters.stores, filters.to_date in response with status code 200 + + +#### getMarketplaceOptinDetail + +- ##### What's New + - [Breaking] [Added] Value format date-time to property items[].created_on of schema CompanyOptIn in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].modified_on of schema CompanyOptIn in response with status code 200 + + +#### getCompanyDetail + +- ##### What's New + - [Breaking] [Added] Possible values distributor,franchise,mbo,manufacturer-owner to property company_type of schema OptinCompanyDetail in response with status code 200 + + +#### getStoreDetail + +- ##### What's New + - [Breaking] [Added] Possible values high_street,warehouse,mall to property items[].store_type of schema StoreDetail in response with status code 200 + + +#### getProductAssetsInBulk + +- ##### What's New + - [Breaking] [Added] Value format date-time to property items[].created_on of schema Items in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].modified_on of schema Items in response with status code 200 + + +#### getProductBulkUploadHistory + +- ##### What's Deprecated + - [Deleted] Type from array from property items of schema ProductBulkRequestList in response with status code 200 + + +#### getInventoryBySizeIdentifier + +- ##### What's New + - [Added] properties items[].tax_identifier.hsn_code, items[].tax_identifier.hsn_code_id, items[].tax_identifier.reporting_hsn in response with status code 200 + + +#### getProductSize + +- ##### What's New + - [Breaking] [Added] Possible values set,standard,composite,digital to property items[].item_type of schema Product in response with status code 200 + - [Breaking] [Added] Possible values image,video,3d_model to property items[].media[].type of schema Media in response with status code 200 + - [Added] property items[].media[].alt of schema Media in response with status code 200 + - [Added] property items[].media[].thumbnail of schema Media in response with status code 200 + - [Added] properties items[].tax_identifier.hsn_code, items[].tax_identifier.hsn_code_id, items[].tax_identifier.reporting_hsn in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].verified_on of schema Product in response with status code 200 + + +#### getInventoryBySize + +- ##### What's New + - [Breaking] [Added] Value format date-time to property items[].inventory_updated_on of schema InventoryResponseSchema in response with status code 200 + + +#### getVariantsOfProducts + +- ##### What's New + - [Breaking] [Added] Possible values image,video,3d_model to property variants[].media[].type of schema Media in response with status code 200 + - [Added] property variants[].media[].alt of schema Media in response with status code 200 + - [Added] property variants[].media[].thumbnail of schema Media in response with status code 200 + + +#### getSizeGuide + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_on of schema SizeGuideResponseSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property modified_on of schema SizeGuideResponseSchema in response with status code 200 + + +#### createInventoryExport + +- ##### What's New + - [Added] properties filters.brands, filters.from_date, filters.quantity, filters.stores, filters.to_date in response with status code 200 + + +#### getProducts + +- ##### What's New + - [Breaking] [Added] Possible values set,standard,composite,digital to property items[].item_type of schema ProductSchemaV2 in response with status code 200 + - [Breaking] [Added] Possible values image,video,3d_model to property items[].media[].type of schema Media in response with status code 200 + - [Added] property items[].media[].alt of schema Media in response with status code 200 + - [Added] property items[].media[].thumbnail of schema Media in response with status code 200 + - [Added] properties items[].tax_identifier.hsn_code, items[].tax_identifier.hsn_code_id, items[].tax_identifier.reporting_hsn in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].verified_on of schema ProductSchemaV2 in response with status code 200 + + +#### createProduct + +- ##### What's New + - [Breaking] [Added] custom_order.is_custom_order made required in request body + - [Breaking] [Added] Possible values image,video,3d_model to property media[].type of schema Media in request body + - [Added] property media[].alt of schema Media in request body + - [Added] property media[].thumbnail of schema Media in request body + +- ##### What's Deprecated + - [Breaking] [Deleted] Default value from property custom_order.is_custom_order of schema CustomOrder in request body + - [Breaking] [Deleted] Default value from property custom_order.manufacturing_time of schema CustomOrder in request body + - [Deleted] minimum validator for custom_order.manufacturing_time in request body + - [Deleted] Possible values from days,hours from property custom_order.manufacturing_time_unit of schema CustomOrder in request body + + +#### uploadBulkProducts + +- ##### What's New + - [Breaking] [Added] Possible values set,standard,composite,digital to property product_type of schema BulkProductJob in request body + + +#### getProduct + +- ##### What's New + - [Breaking] [Added] Possible values set,standard,composite,digital to property data.item_type of schema ProductSchemaV2 in response with status code 200 + - [Breaking] [Added] Possible values image,video,3d_model to property data.media[].type of schema Media in response with status code 200 + - [Added] property data.media[].alt of schema Media in response with status code 200 + - [Added] property data.media[].thumbnail of schema Media in response with status code 200 + - [Added] properties data.tax_identifier.hsn_code, data.tax_identifier.hsn_code_id, data.tax_identifier.reporting_hsn in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.verified_on of schema ProductSchemaV2 in response with status code 200 + + +#### editProduct + +- ##### What's New + - [Breaking] [Added] custom_order.is_custom_order made required in request body + - [Breaking] [Added] Possible values image,video,3d_model to property media[].type of schema Media in request body + - [Added] property media[].alt of schema Media in request body + - [Added] property media[].thumbnail of schema Media in request body + +- ##### What's Deprecated + - [Breaking] [Deleted] Default value from property custom_order.is_custom_order of schema CustomOrder in request body + - [Breaking] [Deleted] Default value from property custom_order.manufacturing_time of schema CustomOrder in request body + - [Deleted] minimum validator for custom_order.manufacturing_time in request body + - [Deleted] Possible values from days,hours from property custom_order.manufacturing_time_unit of schema CustomOrder in request body + + +### Common + + + +#### searchApplication + +- ##### What's New + - [Breaking] [Added] Possible values store,website-and-mobile-apps to property application.channel_type of schema Application in response with status code 200 + - [Breaking] [Added] Value format date-time to property application.created_at of schema Application in response with status code 200 + - [Breaking] [Added] Value format date-time to property application.updated_at of schema Application in response with status code 200 + - [Breaking] [Added] Value format date-time to property created_at of schema ApplicationResponseSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema ApplicationResponseSchema in response with status code 200 + + +### Communication + + + +#### getAppProviders + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema AppProvider in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema AppProvider in response with status code 200 + + +#### updateAppProviders + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema AppProvider in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema AppProvider in response with status code 200 + + +#### getEmailProviders + +- ##### What's New + - [Breaking] [Added] Value format date-time to property items[].created_at of schema EmailProvider in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].updated_at of schema EmailProvider in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### createEmailProvider + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema EmailProvider in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema EmailProvider in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getEmailProviderById + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema EmailProvider in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema EmailProvider in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### updateEmailProviderById + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema EmailProvider in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema EmailProvider in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### deleteEmailProviderById + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getSmsProviders + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### createSmsProvider + +- ##### What's New + - [Added] property tenant_name_1 of schema SmsProviderReq in request body + - [Added] property tenant_name_2 of schema SmsProviderReq in request body + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getDefaultSmsProviders + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getSmsProviderById + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### updateSmsProviderById + +- ##### What's New + - [Added] property tenant_name_1 of schema SmsProviderReq in request body + - [Added] property tenant_name_2 of schema SmsProviderReq in request body + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### deleteSmsProviderById + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getCampaigns + +- ##### What's New + - [Breaking] [Added] Value format date-time to property items[].created_at of schema Campaign in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].updated_at of schema Campaign in response with status code 200 + + +#### createCampaign + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema Campaign in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema Campaign in response with status code 200 + + +#### getCampaignById + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema Campaign in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema Campaign in response with status code 200 + + +#### updateCampaignById + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema Campaign in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema Campaign in response with status code 200 + + +#### getAudiences + +- ##### What's New + - [Breaking] [Added] Value format date-time to property items[].created_at of schema Audience in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].updated_at of schema Audience in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### createAudience + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema Audience in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema Audience in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getAudienceById + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema Audience in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema Audience in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### updateAudienceById + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema Audience in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema Audience in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### deleteAudienceById + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema Audience in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema Audience in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getDummyDatasources + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getDummyDatasourcesMeta + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getNSampleRecordsFromCsvByGet + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getNSampleRecordsFromCsv + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getEmailTemplates + +- ##### What's New + - [Breaking] [Added] Value format date-time to property items[].created_at of schema EmailTemplate in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].updated_at of schema EmailTemplate in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### createEmailTemplate + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema EmailTemplate in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema EmailTemplate in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getSystemEmailTemplates + +- ##### What's New + - [Breaking] [Added] Value format date-time to property items[].created_at of schema SystemEmailTemplate in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].updated_at of schema SystemEmailTemplate in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getEmailTemplateById + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema EmailTemplate in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema EmailTemplate in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### updateEmailTemplateById + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema EmailTemplate in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema EmailTemplate in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### deleteEmailTemplateById + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getSubscribedEmailTemplates + +- ##### What's New + - [Breaking] [Added] Value format date-time to property items[].created_at of schema EmailTemplate in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].updated_at of schema EmailTemplate in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getSmsTemplates + +- ##### What's New + - [Breaking] [Added] Possible values static,nunjucks,lodash to property items[].message.template_type of schema SmsTemplateMessage in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].created_at of schema SmsTemplate in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].updated_at of schema SmsTemplate in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### createSmsTemplate + +- ##### What's New + - [Breaking] [Added] Possible values static,nunjucks,lodash to property message.template_type of schema SmsTemplateMessage in request body + - [Breaking] [Added] Possible values static,nunjucks,lodash to property message.template_type of schema SmsTemplateMessage in response with status code 200 + - [Breaking] [Added] Value format date-time to property created_at of schema SmsTemplate in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema SmsTemplate in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getSystemSmsTemplates + +- ##### What's New + - [Breaking] [Added] Possible values static,nunjucks,lodash to property [].message.template_type of schema SmsTemplateMessage in response with status code 200 + - [Breaking] [Added] Value format date-time to property [].created_at of schema SystemSmsTemplates in response with status code 200 + - [Breaking] [Added] Value format date-time to property [].updated_at of schema SystemSmsTemplates in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getSmsTemplateById + +- ##### What's New + - [Breaking] [Added] Possible values static,nunjucks,lodash to property message.template_type of schema SmsTemplateMessage in response with status code 200 + - [Breaking] [Added] Value format date-time to property created_at of schema SmsTemplate in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema SmsTemplate in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### updateSmsTemplateById + +- ##### What's New + - [Breaking] [Added] Possible values static,nunjucks,lodash to property message.template_type of schema SmsTemplateMessage in request body + - [Breaking] [Added] Possible values static,nunjucks,lodash to property message.template_type of schema SmsTemplateMessage in response with status code 200 + - [Breaking] [Added] Value format date-time to property created_at of schema SmsTemplate in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema SmsTemplate in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### deleteSmsTemplateById + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getSubscribedSmsTemplates + +- ##### What's New + - [Breaking] [Added] Possible values static,nunjucks,lodash to property items[].message.template_type of schema SmsTemplateMessage in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].created_at of schema SmsTemplate in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].updated_at of schema SmsTemplate in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getEventSubscriptions + +- ##### What's New + - [Breaking] [Added] Value format date-time to property items[].created_at of schema EventSubscription in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].updated_at of schema EventSubscription in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### createEventSubscriptions + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema EventSubscriptionsBulkUpdateResult in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema EventSubscriptionsBulkUpdateResult in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getEventSubscriptionsById + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema EventSubscription in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema EventSubscription in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### editEventSubscriptions + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema EventSubscriptionsBulkUpdateResult in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema EventSubscriptionsBulkUpdateResult in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### deleteEventSubscriptionsById + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### createEventSubscriptionsByBulk + +- ##### What's New + - [Breaking] [Added] Value format date-time to property [].created_at of schema EventSubscriptionsBulkUpdateResult in response with status code 200 + - [Breaking] [Added] Value format date-time to property [].updated_at of schema EventSubscriptionsBulkUpdateResult in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getGlobalVariables + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### postGlobalVariables + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema CreateGlobalVariablesResult in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getJobs + +- ##### What's New + - [Breaking] [Added] Value format date-time to property items[].created_at of schema Job in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].updated_at of schema Job in response with status code 200 + + +#### createJobs + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema CreateJobsRes in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema CreateJobsRes in response with status code 200 + + +#### getJobLogs + +- ##### What's New + - [Breaking] [Added] Value format date-time to property items[].created_at of schema JobLog in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].updated_at of schema JobLog in response with status code 200 + + +#### getCommunicationLogs + +- ##### What's New + - [Breaking] [Added] Value format date-time to property items[].expire_at of schema Log in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].created_at of schema Log in response with status code 200 + + +#### getSystemNotifications + +- ##### What's New + - [Breaking] [Added] Value format date-time to property items[].created_at of schema SystemNotification in response with status code 200 + + +### CompanyProfile + + + +#### cbsOnboardGet + +- ##### What's New + - [Breaking] [Added] Possible values distributor,franchise,mbo,manufacturer-owner to property company_type of schema GetCompanyProfileSerializerResponseSchema in response with status code 200 + - [Breaking] [Added] Possible values home,registered,office to property addresses[].address_type of schema GetAddressSchema in response with status code 200 + + +#### updateCompany + +- ##### What's New + - [Breaking] [Added] Possible values distributor,franchise,mbo,manufacturer-owner to property company_type of schema UpdateCompany in request body + + +#### getBrands + +- ##### What's New + - [Breaking] [Added] Possible values distributor,franchise,mbo,manufacturer-owner to property items[].company.company_type of schema CompanySchema in response with status code 200 + - [Breaking] [Added] Possible values home,registered,office to property items[].company.addresses[].address_type of schema GetAddressSchema in response with status code 200 + + +#### getLocations + +- ##### What's New + - [Breaking] [Added] Possible values distributor,franchise,mbo,manufacturer-owner to property items[].company.company_type of schema GetCompanySchema in response with status code 200 + - [Breaking] [Added] Possible values home,registered,office to property items[].company.addresses[].address_type of schema GetAddressSchema in response with status code 200 + - [Breaking] [Added] Possible values home,registered,office to property items[].address.address_type of schema GetAddressSchema in response with status code 200 + - [Breaking] [Added] Possible values high_street,warehouse,mall to property items[].store_type of schema GetLocationSchema in response with status code 200 + + +#### createLocation + +- ##### What's New + - [Breaking] [Added] Possible values high_street,warehouse,mall to property store_type of schema LocationSchema in request body + + +#### getLocationDetail + +- ##### What's New + - [Breaking] [Added] Possible values distributor,franchise,mbo,manufacturer-owner to property company.company_type of schema GetCompanySchema in response with status code 200 + - [Breaking] [Added] Possible values home,registered,office to property company.addresses[].address_type of schema GetAddressSchema in response with status code 200 + - [Breaking] [Added] Possible values home,registered,office to property address.address_type of schema GetAddressSchema in response with status code 200 + - [Breaking] [Added] Possible values high_street,warehouse,mall to property store_type of schema GetLocationSchema in response with status code 200 + + +#### updateLocation + +- ##### What's New + - [Breaking] [Added] Possible values high_street,warehouse,mall to property store_type of schema LocationSchema in request body + + +#### createLocationBulk + +- ##### What's New + - [Breaking] [Added] Possible values high_street,warehouse,mall to property data[].store_type of schema LocationSchema in request body + + +### Configuration + + + +#### getBuildConfig + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema MobileAppConfiguration in response with status code 200 + - [Breaking] [Added] Value format date-time to property modified_at of schema MobileAppConfiguration in response with status code 200 + + +#### updateBuildConfig + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema MobileAppConfiguration in response with status code 200 + - [Breaking] [Added] Value format date-time to property modified_at of schema MobileAppConfiguration in response with status code 200 + + +#### getPreviousVersions + +- ##### What's New + - [Breaking] [Added] Value format date-time to property versions[].created_at of schema BuildVersion in response with status code 200 + - [Breaking] [Added] Value format date-time to property versions[].modified_at of schema BuildVersion in response with status code 200 + + +#### getAppFeatures + +- ##### What's New + - [Breaking] [Added] Value format date-time to property feature.created_at of schema AppFeature in response with status code 200 + - [Breaking] [Added] Value format date-time to property feature.modified_at of schema AppFeature in response with status code 200 + + +#### updateAppFeatures + +- ##### What's New + - [Breaking] [Added] Value format date-time to property feature.created_at of schema AppFeature in request body + - [Breaking] [Added] Value format date-time to property feature.modified_at of schema AppFeature in request body + - [Breaking] [Added] Value format date-time to property created_at of schema AppFeature in response with status code 200 + - [Breaking] [Added] Value format date-time to property modified_at of schema AppFeature in response with status code 200 + + +#### modifyAppFeatures + +- ##### What's New + - [Breaking] [Added] Value format date-time to property feature.created_at of schema AppFeature in request body + - [Breaking] [Added] Value format date-time to property feature.modified_at of schema AppFeature in request body + - [Breaking] [Added] Value format date-time to property created_at of schema AppFeature in response with status code 200 + - [Breaking] [Added] Value format date-time to property modified_at of schema AppFeature in response with status code 200 + + +#### getAppContactInfo + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema ApplicationInformation in response with status code 200 + - [Breaking] [Added] Value format date-time to property modified_at of schema ApplicationInformation in response with status code 200 + + +#### updateAppContactInfo + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema ApplicationInformation in request body + - [Breaking] [Added] Value format date-time to property modified_at of schema ApplicationInformation in request body + - [Breaking] [Added] Value format date-time to property created_at of schema ApplicationInformation in response with status code 200 + - [Breaking] [Added] Value format date-time to property modified_at of schema ApplicationInformation in response with status code 200 + + +#### getAppApiTokens + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema TokenResponseSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property modified_at of schema TokenResponseSchema in response with status code 200 + + +#### updateAppApiTokens + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema TokenResponseSchema in request body + - [Breaking] [Added] Value format date-time to property modified_at of schema TokenResponseSchema in request body + - [Breaking] [Added] Value format date-time to property created_at of schema TokenResponseSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property modified_at of schema TokenResponseSchema in response with status code 200 + + +#### getAppStores + +- ##### What's New + - [Breaking] [Added] Value format date-time to property items[].modified_on of schema AppInventoryStores in response with status code 200 + - [Breaking] [Added] Possible values high_street,warehouse,mall to property items[].store_type of schema AppInventoryStores in response with status code 200 + + +#### getInventoryConfig + +- ##### What's New + - [Breaking] [Added] Type object to property inventory.exclude_category[] of schema AppInventoryConfig in response with status code 200 + - [Breaking] [Added] Value format date-time to property created_at of schema ApplicationInventory in response with status code 200 + - [Breaking] [Added] Value format date-time to property modified_at of schema ApplicationInventory in response with status code 200 + - [Added] property search of schema ApplicationInventory in response with status code 200 + + +#### updateInventoryConfig + +- ##### What's New + - [Breaking] [Added] Type object to property inventory.exclude_category[] of schema AppInventoryConfig in request body + - [Breaking] [Added] Value format date-time to property created_at of schema ApplicationInventory in request body + - [Breaking] [Added] Value format date-time to property modified_at of schema ApplicationInventory in request body + - [Added] property search of schema ApplicationInventory in request body + - [Breaking] [Added] Type object to property inventory.exclude_category[] of schema AppInventoryConfig in response with status code 200 + - [Breaking] [Added] Value format date-time to property created_at of schema ApplicationInventory in response with status code 200 + - [Breaking] [Added] Value format date-time to property modified_at of schema ApplicationInventory in response with status code 200 + - [Added] property search of schema ApplicationInventory in response with status code 200 + + +#### partiallyUpdateInventoryConfig + +- ##### What's New + - [Added] property search of schema AppInventoryPartialUpdate in request body + - [Breaking] [Added] Type object to property inventory.exclude_category[] of schema AppInventoryConfig in response with status code 200 + - [Breaking] [Added] Value format date-time to property created_at of schema ApplicationInventory in response with status code 200 + - [Breaking] [Added] Value format date-time to property modified_at of schema ApplicationInventory in response with status code 200 + - [Added] property search of schema ApplicationInventory in response with status code 200 + + +#### getAppCurrencyConfig + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema AppSupportedCurrency in response with status code 200 + - [Breaking] [Added] Value format date-time to property modified_at of schema AppSupportedCurrency in response with status code 200 + + +#### updateAppCurrencyConfig + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema AppSupportedCurrency in request body + - [Breaking] [Added] Value format date-time to property modified_at of schema AppSupportedCurrency in request body + - [Breaking] [Added] Value format date-time to property created_at of schema AppSupportedCurrency in response with status code 200 + - [Breaking] [Added] Value format date-time to property modified_at of schema AppSupportedCurrency in response with status code 200 + + +#### getAppSupportedCurrency + +- ##### What's New + - [Breaking] [Added] Value format date-time to property supported_currency[].created_at of schema Currency in response with status code 200 + - [Breaking] [Added] Value format date-time to property supported_currency[].modified_at of schema Currency in response with status code 200 + - [Breaking] [Added] Value format date-time to property created_at of schema AppCurrencyResponseSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property modified_at of schema AppCurrencyResponseSchema in response with status code 200 + + +#### createApplication + +- ##### What's New + - [Breaking] [Added] Type object to property configuration.inventory.exclude_category[] of schema AppInventoryConfig in request body + - [Breaking] [Added] Value format date-time to property configuration.created_at of schema ApplicationInventory in request body + - [Breaking] [Added] Value format date-time to property configuration.modified_at of schema ApplicationInventory in request body + - [Added] property configuration.search of schema ApplicationInventory in request body + - [Breaking] [Added] Possible values website-and-mobile-apps,store to property app.channel_type of schema Application in response with status code 200 + - [Breaking] [Added] Value format date-time to property app.created_at of schema Application in response with status code 200 + - [Breaking] [Added] Value format date-time to property app.modified_at of schema Application in response with status code 200 + - [Breaking] [Added] Value format date-time to property app.tokens[].created_at of schema TokenSchema in response with status code 200 + - [Breaking] [Added] Type object to property configuration.inventory.exclude_category[] of schema AppInventoryConfig in response with status code 200 + - [Breaking] [Added] Value format date-time to property configuration.created_at of schema ApplicationInventory in response with status code 200 + - [Breaking] [Added] Value format date-time to property configuration.modified_at of schema ApplicationInventory in response with status code 200 + - [Added] property configuration.search of schema ApplicationInventory in response with status code 200 + + +#### getApplications + +- ##### What's New + - [Breaking] [Added] Possible values website-and-mobile-apps,store to property items[].channel_type of schema Application in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].created_at of schema Application in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].modified_at of schema Application in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].tokens[].created_at of schema TokenSchema in response with status code 200 + + +#### getApplicationById + +- ##### What's New + - [Breaking] [Added] Possible values website-and-mobile-apps,store to property channel_type of schema ApplicationById in response with status code 200 + - [Breaking] [Added] Value format date-time to property created_at of schema ApplicationById in response with status code 200 + - [Breaking] [Added] Value format date-time to property modified_at of schema ApplicationById in response with status code 200 + - [Breaking] [Added] Value format date-time to property tokens[].created_at of schema TokenSchemaID in response with status code 200 + + +#### getCurrencies + +- ##### What's New + - [Breaking] [Added] Value format date-time to property items[].created_at of schema Currency in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].modified_at of schema Currency in response with status code 200 + + +#### getDomainAvailibility + +- ##### What's New + - [Added] property custom_domain of schema DomainSuggestionsRequestSchema in request body + +- ##### What's Deprecated + - [Breaking] [Deleted] property custom of schema DomainSuggestionsRequest in request body + + +#### getStoreByBrands + +- ##### What's New + - [Breaking] [Added] Possible values high_street,warehouse,mall to property items[].store_type of schema BrandStoreInfo in response with status code 200 + + +#### getCurrencyExchangeRates + +- ##### What's New + - [Added] method getCurrencyExchangeRates + + + +### Content + + + +#### getAnnouncementsList + +- ##### What's New + - [Breaking] [Added] Value format date-time to property items[].created_at of schema AdminAnnouncementSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].modified_at of schema AdminAnnouncementSchema in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### createAnnouncement + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema AdminAnnouncementSchema in request body + - [Breaking] [Added] Value format date-time to property modified_at of schema AdminAnnouncementSchema in request body + - [Breaking] [Added] Value format date-time to property data.created_at of schema AdminAnnouncementSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.modified_at of schema AdminAnnouncementSchema in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### getAnnouncementById + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema AdminAnnouncementSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property modified_at of schema AdminAnnouncementSchema in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### updateAnnouncement + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema AdminAnnouncementSchema in request body + - [Breaking] [Added] Value format date-time to property modified_at of schema AdminAnnouncementSchema in request body + - [Breaking] [Added] Value format date-time to property data.created_at of schema AdminAnnouncementSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.modified_at of schema AdminAnnouncementSchema in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### updateAnnouncementSchedule + +- ##### What's New + - [Breaking] [Added] Value format date-time to property data.created_at of schema AdminAnnouncementSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.modified_at of schema AdminAnnouncementSchema in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### deleteAnnouncement + +- ##### What's New + - [Breaking] [Added] Value format date-time to property data.created_at of schema AdminAnnouncementSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.modified_at of schema AdminAnnouncementSchema in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### createBlog + +- ##### What's New + - [Breaking] [Added] Value format date-time to property publish_date of schema BlogSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property date_meta.created_on of schema DateMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property date_meta.modified_on of schema DateMeta in response with status code 200 + + +#### getBlogs + +- ##### What's New + - [Breaking] [Added] Value format date-time to property items[].publish_date of schema BlogSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].date_meta.created_on of schema DateMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].date_meta.modified_on of schema DateMeta in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### updateBlog + +- ##### What's New + - [Breaking] [Added] Value format date-time to property publish_date of schema BlogSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property date_meta.created_on of schema DateMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property date_meta.modified_on of schema DateMeta in response with status code 200 + + +#### deleteBlog + +- ##### What's New + - [Breaking] [Added] Value format date-time to property publish_date of schema BlogSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property date_meta.created_on of schema DateMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property date_meta.modified_on of schema DateMeta in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### addDataLoader + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### getDataLoaders + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### deleteDataLoader + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### editDataLoader + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### getDataLoadersByService + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### selectDataLoader + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### resetDataLoader + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### getFaqCategories + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### getFaqCategoryBySlugOrId + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### createFaqCategory + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### updateFaqCategory + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### deleteFaqCategory + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### getFaqsByCategoryIdOrSlug + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### addFaq + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### updateFaq + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### deleteFaq + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### getFaqByIdOrSlug + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### generateSEOTitle + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### getLandingPages + +- ##### What's New + - [Breaking] [Added] Value format date-time to property items[].date_meta.created_on of schema DateMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].date_meta.modified_on of schema DateMeta in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### createLandingPage + +- ##### What's New + - [Breaking] [Added] Value format date-time to property date_meta.created_on of schema DateMeta in request body + - [Breaking] [Added] Value format date-time to property date_meta.modified_on of schema DateMeta in request body + - [Breaking] [Added] Value format date-time to property date_meta.created_on of schema DateMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property date_meta.modified_on of schema DateMeta in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### updateLandingPage + +- ##### What's New + - [Breaking] [Added] Value format date-time to property date_meta.created_on of schema DateMeta in request body + - [Breaking] [Added] Value format date-time to property date_meta.modified_on of schema DateMeta in request body + - [Breaking] [Added] Value format date-time to property date_meta.created_on of schema DateMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property date_meta.modified_on of schema DateMeta in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### deleteLandingPage + +- ##### What's New + - [Breaking] [Added] Value format date-time to property date_meta.created_on of schema DateMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property date_meta.modified_on of schema DateMeta in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### getLegalInformation + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### updateLegalInformation + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### getNavigations + +- ##### What's New + - [Breaking] [Added] Value format date-time to property items[].date_meta.created_on of schema DateMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].date_meta.modified_on of schema DateMeta in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### createNavigation + +- ##### What's New + - [Breaking] [Added] Value format date-time to property date_meta.created_on of schema DateMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property date_meta.modified_on of schema DateMeta in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### getDefaultNavigations + +- ##### What's New + - [Breaking] [Added] Value format date-time to property items[].date_meta.created_on of schema DateMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].date_meta.modified_on of schema DateMeta in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### getNavigationBySlug + +- ##### What's New + - [Breaking] [Added] Value format date-time to property date_meta.created_on of schema DateMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property date_meta.modified_on of schema DateMeta in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + +- ##### What's Changed + - [Changed] Required status of query parameter devicePlatform + + +#### updateNavigation + +- ##### What's New + - [Breaking] [Added] Value format date-time to property date_meta.created_on of schema DateMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property date_meta.modified_on of schema DateMeta in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### deleteNavigation + +- ##### What's New + - [Breaking] [Added] Value format date-time to property date_meta.created_on of schema DateMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property date_meta.modified_on of schema DateMeta in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### getPageMeta + +- ##### What's New + - [Breaking] [Added] Value format date-time to property system_pages[].date_meta.created_on of schema DateMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property system_pages[].date_meta.modified_on of schema DateMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property custom_pages[].date_meta.created_on of schema DateMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property custom_pages[].date_meta.modified_on of schema DateMeta in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### getPageSpec + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### createPagePreview + +- ##### What's New + - [Breaking] [Added] Value format date-time to property date_meta.created_on of schema DateMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property date_meta.modified_on of schema DateMeta in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### updatePagePreview + +- ##### What's New + - [Breaking] [Added] Value format date-time to property date_meta.created_on of schema DateMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property date_meta.modified_on of schema DateMeta in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### deletePage + +- ##### What's New + - [Breaking] [Added] Value format date-time to property date_meta.created_on of schema DateMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property date_meta.modified_on of schema DateMeta in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### addPathRedirectionRules + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### getPathRedirectionRules + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### getPathRedirectionRule + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### updatePathRedirectionRules + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### deletePathRedirectionRules + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### getSEOConfiguration + +- ##### What's New + - [Breaking] [Added] Value format date-time to property seo.created_at of schema SeoSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property seo.updated_at of schema SeoSchema in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### updateSEOConfiguration + +- ##### What's New + - [Breaking] [Added] Value format date-time to property seo.created_at of schema SeoSchema in request body + - [Breaking] [Added] Value format date-time to property seo.updated_at of schema SeoSchema in request body + - [Breaking] [Added] Value format date-time to property created_at of schema SeoSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema SeoSchema in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### getDefaultSEOMarkupSchema + +- ##### What's New + - [Breaking] [Added] Possible values 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 to property items[].page_type of schema DefaultSEOSchemaMarkupTemplate in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### getSEOMarkupSchemas + +- ##### What's New + - [Breaking] [Added] Possible values 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 to property items[].page_type of schema SEOSchemaMarkupTemplate in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### createSEOMarkupSchema + +- ##### What's New + - [Breaking] [Added] Possible values 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 to property page_type of schema SEOSchemaMarkupTemplateRequestBody in request body + - [Breaking] [Added] Possible values 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 to property page_type of schema SEOSchemaMarkupTemplate in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### getSEOMarkupSchema + +- ##### What's New + - [Breaking] [Added] Possible values 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 to property page_type of schema SEOSchemaMarkupTemplate in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### editSEOMarkupSchema + +- ##### What's New + - [Breaking] [Added] Possible values 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 to property page_type of schema SEOSchemaMarkupTemplateRequestBody in request body + - [Breaking] [Added] Possible values 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 to property page_type of schema SEOSchemaMarkupTemplate in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### deleteSEOMarkupSchema + +- ##### What's New + - [Breaking] [Added] Possible values 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 to property page_type of schema SEOSchemaMarkupTemplate in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getSlideshows + +- ##### What's New + - [Breaking] [Added] Value format date-time to property items[].date_meta.created_on of schema DateMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].date_meta.modified_on of schema DateMeta in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### createSlideshow + +- ##### What's New + - [Breaking] [Added] Value format date-time to property date_meta.created_on of schema DateMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property date_meta.modified_on of schema DateMeta in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### getSlideshowBySlug + +- ##### What's New + - [Breaking] [Added] Value format date-time to property date_meta.created_on of schema DateMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property date_meta.modified_on of schema DateMeta in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### updateSlideshow + +- ##### What's New + - [Breaking] [Added] Value format date-time to property date_meta.created_on of schema DateMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property date_meta.modified_on of schema DateMeta in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### deleteSlideshow + +- ##### What's New + - [Breaking] [Added] Value format date-time to property date_meta.created_on of schema DateMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property date_meta.modified_on of schema DateMeta in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### getSupportInformation + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema Support in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema Support in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### updateSupportInformation + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema Support in request body + - [Breaking] [Added] Value format date-time to property updated_at of schema Support in request body + - [Breaking] [Added] Value format date-time to property created_at of schema Support in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema Support in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### updateInjectableTag + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### getInjectableTags + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### addInjectableTag + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### removeInjectableTag + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### editInjectableTag + +- ##### What's New + - [Breaking] [Added] Possible values inline,external to property tag.sub_type of schema HandpickedTagSchema in request body + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### getBlogBySlug + +- ##### What's New + - [Breaking] [Added] Value format date-time to property publish_date of schema BlogSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property date_meta.created_on of schema DateMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property date_meta.modified_on of schema DateMeta in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### createPage + +- ##### What's New + - [Breaking] [Added] Value format date-time to property date_meta.created_on of schema DateMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property date_meta.modified_on of schema DateMeta in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### getPages + +- ##### What's New + - [Breaking] [Added] Value format date-time to property items[].date_meta.created_on of schema DateMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].date_meta.modified_on of schema DateMeta in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### updatePage + +- ##### What's New + - [Breaking] [Added] Value format date-time to property date_meta.created_on of schema DateMeta in request body + - [Breaking] [Added] Value format date-time to property date_meta.modified_on of schema DateMeta in request body + - [Breaking] [Added] Value format date-time to property date_meta.created_on of schema DateMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property date_meta.modified_on of schema DateMeta in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### getPageBySlug + +- ##### What's New + - [Breaking] [Added] Value format date-time to property date_meta.created_on of schema DateMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property date_meta.modified_on of schema DateMeta in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### getCustomFieldTypes + +- ##### What's New + - [Added] property metafield_types of schema MetafieldTypesSchema in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property _id of schema CustomObjectByIdSchema in response with status code 200 + - [Breaking] [Deleted] property status of schema CustomObjectByIdSchema in response with status code 200 + - [Breaking] [Deleted] property display_name of schema CustomObjectByIdSchema in response with status code 200 + - [Breaking] [Deleted] property definition of schema CustomObjectByIdSchema in response with status code 200 + - [Breaking] [Deleted] property references of schema CustomObjectByIdSchema in response with status code 200 + - [Breaking] [Deleted] property fields of schema CustomObjectByIdSchema in response with status code 200 + - [Breaking] [Deleted] Response with status 500 + + +#### getResources + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 5XX + + +#### getCustomFieldDefinitions + +- ##### What's New + - [Added] property items[].id of schema FieldDefinitionSchema in response with status code 200 + - [Added] property items[].slug of schema FieldDefinitionSchema in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property items[]._id of schema FieldDefinitionSchema in response with status code 200 + - [Breaking] [Deleted] property items[].creator of schema FieldDefinitionSchema in response with status code 200 + - [Breaking] [Deleted] property items[].key of schema FieldDefinitionSchema in response with status code 200 + - [Breaking] [Deleted] property items[].created_by of schema FieldDefinitionSchema in response with status code 200 + - [Breaking] [Deleted] property items[].updated_by of schema FieldDefinitionSchema in response with status code 200 + - [Breaking] [Deleted] property items[].created_at of schema FieldDefinitionSchema in response with status code 200 + - [Breaking] [Deleted] property items[].updated_at of schema FieldDefinitionSchema in response with status code 200 + - [Breaking] [Deleted] Response with status 500 + +- ##### What's Changed + - [Changed] Path From /service/platform/content/v1.0/company/{company_id}/metafields/definitions To /service/platform/content/v2.0/company/{company_id}/customfields/definition + + +#### createCustomFieldDefinition + +- ##### What's New + - [Added] property slug of schema CustomFieldDefinitionRequestSchema in request body + - [Added] property slug of schema CustomFieldDefinitionDetailResSchema in response with status code 200 + - [Added] property id of schema CustomFieldDefinitionDetailResSchema in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property resource of schema CustomFieldDefinitionRequestSchema in request body + - [Breaking] [Deleted] property key of schema CustomFieldDefinitionRequestSchema in request body + - [Breaking] [Deleted] property creator of schema CustomFieldDefinitionDetailResSchema in response with status code 200 + - [Breaking] [Deleted] property key of schema CustomFieldDefinitionDetailResSchema in response with status code 200 + - [Breaking] [Deleted] property created_by of schema CustomFieldDefinitionDetailResSchema in response with status code 200 + - [Breaking] [Deleted] property updated_by of schema CustomFieldDefinitionDetailResSchema in response with status code 200 + - [Breaking] [Deleted] property _id of schema CustomFieldDefinitionDetailResSchema in response with status code 200 + - [Breaking] [Deleted] Response with status 500 + +- ##### What's Changed + - [Changed] Path From /service/platform/content/v1.0/company/{company_id}/metafields/definitions To /service/platform/content/v2.0/company/{company_id}/customfields/resource/{resource}/definition + + +#### getCustomFieldDefinition + +- ##### What's Deprecated + - [Breaking] [Deleted] method getCustomFieldDefinition + + + +#### updateCustomFieldDefinition + +- ##### What's Deprecated + - [Breaking] [Deleted] method updateCustomFieldDefinition + + + +#### deleteCustomFieldDefinition + +- ##### What's Deprecated + - [Breaking] [Deleted] method deleteCustomFieldDefinition + + + +#### getCustomFields + +- ##### What's Deprecated + - [Breaking] [Deleted] method getCustomFields + + + +#### getCustomFieldsByResourceId + +- ##### What's Deprecated + - [Breaking] [Deleted] method getCustomFieldsByResourceId + + + +#### createCustomFieldByResourceId + +- ##### What's Deprecated + - [Breaking] [Deleted] method createCustomFieldByResourceId + + + +#### createCustomObjectDefinition + +- ##### What's New + - [Added] property field_definitions[].slug of schema CustomObjectCustomFieldDefinitions in request body + - [Added] property definition_slug of schema CustomObjectDefinitionRequestSchema in request body + - [Breaking] [Added] Value format integer to property field_definitions[].company_id of schema CustomFieldDefinitionDetailResSchema in response with status code 200 + - [Added] property field_definitions[].slug of schema CustomFieldDefinitionDetailResSchema in response with status code 200 + - [Added] property field_definitions[].application_id of schema CustomFieldDefinitionDetailResSchema in response with status code 200 + - [Added] property field_definitions[].id of schema CustomFieldDefinitionDetailResSchema in response with status code 200 + - [Added] property id of schema CustomObjectDefinitionSlugSchema in response with status code 200 + - [Added] property definition_slug of schema CustomObjectDefinitionSlugSchema in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property field_definitions[].key of schema CustomObjectCustomFieldDefinitions in request body + - [Breaking] [Deleted] property _id of schema CustomObjectDefinitionSchema in response with status code 200 + - [Breaking] [Deleted] property creator of schema CustomObjectDefinitionSchema in response with status code 200 + - [Breaking] [Deleted] property created_by of schema CustomObjectDefinitionSchema in response with status code 200 + - [Breaking] [Deleted] property updated_by of schema CustomObjectDefinitionSchema in response with status code 200 + - [Breaking] [Deleted] property field_definitions[].creator of schema CustomObjectCustomFieldDefinitionResSchema in response with status code 200 + - [Breaking] [Deleted] property field_definitions[].key of schema CustomObjectCustomFieldDefinitionResSchema in response with status code 200 + - [Deleted] Type from object from property field_definitions[].validations[] of schema FieldValidations in response with status code 200 + - [Breaking] [Deleted] properties field_definitions[].validations[].name, field_definitions[].validations[].type, field_definitions[].validations[].value in response with status code 200 + - [Breaking] [Deleted] property field_definitions[].created_by of schema CustomObjectCustomFieldDefinitionResSchema in response with status code 200 + - [Breaking] [Deleted] property field_definitions[].metaobject_definition_id of schema CustomObjectCustomFieldDefinitionResSchema in response with status code 200 + - [Breaking] [Deleted] property field_definitions[]._id of schema CustomObjectCustomFieldDefinitionResSchema in response with status code 200 + - [Breaking] [Deleted] Response with status 500 + +- ##### What's Changed + - [Changed] Path From /service/platform/content/v1.0/company/{company_id}/metaobjects/definitions To /service/platform/content/v2.0/company/{company_id}/customobjects/definition + + +#### getCustomObjectDefinitions + +- ##### What's New + - [Added] property items[].id of schema CustomObjectEntry in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property items[]._id of schema CustomObjectEntry in response with status code 200 + - [Breaking] [Deleted] Response with status 500 + +- ##### What's Changed + - [Changed] Path From /service/platform/content/v1.0/company/{company_id}/metaobjects/definitions To /service/platform/content/v2.0/company/{company_id}/customobjects/definition + + +#### getCustomObjectDefinition + +- ##### What's Deprecated + - [Breaking] [Deleted] method getCustomObjectDefinition + + + +#### updateCustomObjectDefinition + +- ##### What's Deprecated + - [Breaking] [Deleted] method updateCustomObjectDefinition + + + +#### deleteCustomObjectDefinition + +- ##### What's Deprecated + - [Breaking] [Deleted] method deleteCustomObjectDefinition + + + +#### getCustomObjects + +- ##### What's Deprecated + - [Breaking] [Deleted] method getCustomObjects + + + +#### createCustomObject + +- ##### What's Deprecated + - [Breaking] [Deleted] method createCustomObject + + + +#### getCustomObject + +- ##### What's Deprecated + - [Breaking] [Deleted] method getCustomObject + + + +#### deleteCustomObject + +- ##### What's Deprecated + - [Breaking] [Deleted] method deleteCustomObject + + + +#### updateCustomObject + +- ##### What's Deprecated + - [Breaking] [Deleted] method updateCustomObject + + + +#### getJobs + +- ##### What's New + - [Breaking] [Added] Possible values download,upload to property items[].action_type of schema JobSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].created_at of schema JobSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].updated_at of schema JobSchema in response with status code 200 + - [Added] property items[].id of schema JobSchema in response with status code 200 + - [Added] property items[].application_id of schema JobSchema in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property items[]._id of schema CustomObjectJobSchema in response with status code 200 + - [Breaking] [Deleted] property items[].creator of schema CustomObjectJobSchema in response with status code 200 + - [Breaking] [Deleted] property items[].url of schema CustomObjectJobSchema in response with status code 200 + - [Breaking] [Deleted] Response with status 500 + + +#### importCustomObjectEntries + +- ##### What's Deprecated + - [Breaking] [Deleted] method importCustomObjectEntries + + + +#### exportCustomObjectEntries + +- ##### What's Deprecated + - [Breaking] [Deleted] method exportCustomObjectEntries + + + +#### sampleCustomObjectBulkEntry + +- ##### What's Deprecated + - [Breaking] [Deleted] method sampleCustomObjectBulkEntry + + + +#### getAppCustomFieldTypes + +- ##### What's New + - [Added] property metafield_types of schema MetafieldTypesSchema in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property _id of schema CustomObjectByIdSchema in response with status code 200 + - [Breaking] [Deleted] property status of schema CustomObjectByIdSchema in response with status code 200 + - [Breaking] [Deleted] property display_name of schema CustomObjectByIdSchema in response with status code 200 + - [Breaking] [Deleted] property definition of schema CustomObjectByIdSchema in response with status code 200 + - [Breaking] [Deleted] property references of schema CustomObjectByIdSchema in response with status code 200 + - [Breaking] [Deleted] property fields of schema CustomObjectByIdSchema in response with status code 200 + - [Breaking] [Deleted] Response with status 500 + + +#### getAppResources + +- ##### What's New + - [Added] Response with status 400 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 4XX + - [Breaking] [Deleted] Response with status 5XX + + +#### getAppCustomFieldDefinitions + +- ##### What's New + - [Added] property items[].id of schema FieldDefinitionSchema in response with status code 200 + - [Added] property items[].slug of schema FieldDefinitionSchema in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property items[]._id of schema FieldDefinitionSchema in response with status code 200 + - [Breaking] [Deleted] property items[].creator of schema FieldDefinitionSchema in response with status code 200 + - [Breaking] [Deleted] property items[].key of schema FieldDefinitionSchema in response with status code 200 + - [Breaking] [Deleted] property items[].created_by of schema FieldDefinitionSchema in response with status code 200 + - [Breaking] [Deleted] property items[].updated_by of schema FieldDefinitionSchema in response with status code 200 + - [Breaking] [Deleted] property items[].created_at of schema FieldDefinitionSchema in response with status code 200 + - [Breaking] [Deleted] property items[].updated_at of schema FieldDefinitionSchema in response with status code 200 + - [Breaking] [Deleted] Response with status 500 + +- ##### What's Changed + - [Changed] Path From /service/platform/content/v1.0/company/{company_id}/application/{application_id}/metafields/definitions To /service/platform/content/v2.0/company/{company_id}/application/{application_id}/customfields/definition + + +#### createAppCustomFieldDefinition + +- ##### What's New + - [Added] property slug of schema CustomFieldDefinitionRequestSchema in request body + - [Added] property slug of schema CustomFieldDefinitionDetailResSchema in response with status code 200 + - [Added] property id of schema CustomFieldDefinitionDetailResSchema in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property resource of schema CustomFieldDefinitionRequestSchema in request body + - [Breaking] [Deleted] property key of schema CustomFieldDefinitionRequestSchema in request body + - [Breaking] [Deleted] property creator of schema CustomFieldDefinitionDetailResSchema in response with status code 200 + - [Breaking] [Deleted] property key of schema CustomFieldDefinitionDetailResSchema in response with status code 200 + - [Breaking] [Deleted] property created_by of schema CustomFieldDefinitionDetailResSchema in response with status code 200 + - [Breaking] [Deleted] property updated_by of schema CustomFieldDefinitionDetailResSchema in response with status code 200 + - [Breaking] [Deleted] property _id of schema CustomFieldDefinitionDetailResSchema in response with status code 200 + - [Breaking] [Deleted] Response with status 500 + +- ##### What's Changed + - [Changed] Path From /service/platform/content/v1.0/company/{company_id}/application/{application_id}/metafields/definitions To /service/platform/content/v2.0/company/{company_id}/application/{application_id}/customfields/resource/{resource}/definition + + +#### getAppCustomFieldDefinition + +- ##### What's Deprecated + - [Breaking] [Deleted] method getAppCustomFieldDefinition + + + +#### updateAppCustomFieldDefinition + +- ##### What's Deprecated + - [Breaking] [Deleted] method updateAppCustomFieldDefinition + + + +#### deleteAppCustomFieldDefinition + +- ##### What's Deprecated + - [Breaking] [Deleted] method deleteAppCustomFieldDefinition + + + +#### getAppCustomFields + +- ##### What's Deprecated + - [Breaking] [Deleted] method getAppCustomFields + + + +#### getAppCustomFieldsByResourceId + +- ##### What's Deprecated + - [Breaking] [Deleted] method getAppCustomFieldsByResourceId + + + +#### createAppCustomFieldByResourceId + +- ##### What's Deprecated + - [Breaking] [Deleted] method createAppCustomFieldByResourceId + + + +#### createAppCustomObjectDefinition + +- ##### What's New + - [Added] property field_definitions[].slug of schema CustomObjectCustomFieldDefinitions in request body + - [Added] property definition_slug of schema CustomObjectDefinitionRequestSchema in request body + - [Breaking] [Added] Value format integer to property field_definitions[].company_id of schema CustomFieldDefinitionDetailResSchema in response with status code 200 + - [Added] property field_definitions[].slug of schema CustomFieldDefinitionDetailResSchema in response with status code 200 + - [Added] property field_definitions[].application_id of schema CustomFieldDefinitionDetailResSchema in response with status code 200 + - [Added] property field_definitions[].id of schema CustomFieldDefinitionDetailResSchema in response with status code 200 + - [Added] property id of schema CustomObjectDefinitionSlugSchema in response with status code 200 + - [Added] property definition_slug of schema CustomObjectDefinitionSlugSchema in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property field_definitions[].key of schema CustomObjectCustomFieldDefinitions in request body + - [Breaking] [Deleted] property _id of schema CustomObjectDefinitionSchema in response with status code 200 + - [Breaking] [Deleted] property creator of schema CustomObjectDefinitionSchema in response with status code 200 + - [Breaking] [Deleted] property created_by of schema CustomObjectDefinitionSchema in response with status code 200 + - [Breaking] [Deleted] property updated_by of schema CustomObjectDefinitionSchema in response with status code 200 + - [Breaking] [Deleted] property field_definitions[].creator of schema CustomObjectCustomFieldDefinitionResSchema in response with status code 200 + - [Breaking] [Deleted] property field_definitions[].key of schema CustomObjectCustomFieldDefinitionResSchema in response with status code 200 + - [Deleted] Type from object from property field_definitions[].validations[] of schema FieldValidations in response with status code 200 + - [Breaking] [Deleted] properties field_definitions[].validations[].name, field_definitions[].validations[].type, field_definitions[].validations[].value in response with status code 200 + - [Breaking] [Deleted] property field_definitions[].created_by of schema CustomObjectCustomFieldDefinitionResSchema in response with status code 200 + - [Breaking] [Deleted] property field_definitions[].metaobject_definition_id of schema CustomObjectCustomFieldDefinitionResSchema in response with status code 200 + - [Breaking] [Deleted] property field_definitions[]._id of schema CustomObjectCustomFieldDefinitionResSchema in response with status code 200 + - [Breaking] [Deleted] Response with status 500 + +- ##### What's Changed + - [Changed] Path From /service/platform/content/v1.0/company/{company_id}/application/{application_id}/metaobjects/definitions To /service/platform/content/v2.0/company/{company_id}/application/{application_id}/customobjects/definition + + +#### getAppCustomObjectDefinitions + +- ##### What's New + - [Added] property items[].id of schema CustomObjectEntry in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property items[]._id of schema CustomObjectEntry in response with status code 200 + - [Breaking] [Deleted] Response with status 500 + +- ##### What's Changed + - [Changed] Path From /service/platform/content/v1.0/company/{company_id}/application/{application_id}/metaobjects/definitions To /service/platform/content/v2.0/company/{company_id}/application/{application_id}/customobjects/definition + + +#### getAppCustomObjectDefinition + +- ##### What's Deprecated + - [Breaking] [Deleted] method getAppCustomObjectDefinition + + + +#### updateAppCustomObjectDefinition + +- ##### What's Deprecated + - [Breaking] [Deleted] method updateAppCustomObjectDefinition + + + +#### deleteAppCustomObjectDefinition + +- ##### What's Deprecated + - [Breaking] [Deleted] method deleteAppCustomObjectDefinition + + + +#### getAppCustomObjects + +- ##### What's Deprecated + - [Breaking] [Deleted] method getAppCustomObjects + + + +#### createAppCustomObject + +- ##### What's Deprecated + - [Breaking] [Deleted] method createAppCustomObject + + + +#### getAppCustomObject + +- ##### What's Deprecated + - [Breaking] [Deleted] method getAppCustomObject + + + +#### deleteAppCustomObject + +- ##### What's Deprecated + - [Breaking] [Deleted] method deleteAppCustomObject + + + +#### updateAppCustomObject + +- ##### What's Deprecated + - [Breaking] [Deleted] method updateAppCustomObject + + + +#### getAppJobs + +- ##### What's New + - [Breaking] [Added] Possible values download,upload to property items[].action_type of schema JobSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].created_at of schema JobSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].updated_at of schema JobSchema in response with status code 200 + - [Added] property items[].id of schema JobSchema in response with status code 200 + - [Added] property items[].application_id of schema JobSchema in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property items[]._id of schema CustomObjectJobSchema in response with status code 200 + - [Breaking] [Deleted] property items[].creator of schema CustomObjectJobSchema in response with status code 200 + - [Breaking] [Deleted] property items[].url of schema CustomObjectJobSchema in response with status code 200 + - [Breaking] [Deleted] Response with status 500 + + +#### importAppCustomObjectEntries + +- ##### What's Deprecated + - [Breaking] [Deleted] method importAppCustomObjectEntries + + + +#### exportAppCustomObjectEntries + +- ##### What's Deprecated + - [Breaking] [Deleted] method exportAppCustomObjectEntries + + + +#### sampleAppCustomObjectBulkEntry + +- ##### What's Deprecated + - [Breaking] [Deleted] method sampleAppCustomObjectBulkEntry + + + +#### getCustomFieldDefinitionByResource + +- ##### What's New + - [Added] method getCustomFieldDefinitionByResource + + + +#### getCustomFieldDefinitionBySlug + +- ##### What's New + - [Added] method getCustomFieldDefinitionBySlug + + + +#### updateCustomFieldDefinitionBySlug + +- ##### What's New + - [Added] method updateCustomFieldDefinitionBySlug + + + +#### deleteCustomFieldDefinitionBySlug + +- ##### What's New + - [Added] method deleteCustomFieldDefinitionBySlug + + + +#### getCustomFieldsByResourceSlug + +- ##### What's New + - [Added] method getCustomFieldsByResourceSlug + + + +#### updateCustomFieldByResourceSlug + +- ##### What's New + - [Added] method updateCustomFieldByResourceSlug + + + +#### deleteCustomFieldsByResourceSlug + +- ##### What's New + - [Added] method deleteCustomFieldsByResourceSlug + + + +#### getCustomObjectDefinitionBySlug + +- ##### What's New + - [Added] method getCustomObjectDefinitionBySlug + + + +#### updateCustomObjectDefinitionBySlug + +- ##### What's New + - [Added] method updateCustomObjectDefinitionBySlug + + + +#### deleteCustomObjectDefinitionBySlug + +- ##### What's New + - [Added] method deleteCustomObjectDefinitionBySlug + + + +#### getCustomObjectsBySlug + +- ##### What's New + - [Added] method getCustomObjectsBySlug + + + +#### createCustomObjectBySlug + +- ##### What's New + - [Added] method createCustomObjectBySlug + + + +#### getCustomObjectBySlug + +- ##### What's New + - [Added] method getCustomObjectBySlug + + + +#### deleteCustomObjectBySlug + +- ##### What's New + - [Added] method deleteCustomObjectBySlug + + + +#### updateCustomObjectBySlug + +- ##### What's New + - [Added] method updateCustomObjectBySlug + + + +#### importCustomObjectEntriesBySlug + +- ##### What's New + - [Added] method importCustomObjectEntriesBySlug + + + +#### exportCustomObjectEntriesBySlug + +- ##### What's New + - [Added] method exportCustomObjectEntriesBySlug + + + +#### sampleCustomObjectBulkEntryBySlug + +- ##### What's New + - [Added] method sampleCustomObjectBulkEntryBySlug + + + +#### getAppCustomFieldDefinitionByResource + +- ##### What's New + - [Added] method getAppCustomFieldDefinitionByResource + + + +#### getAppCustomFieldDefinitionBySlug + +- ##### What's New + - [Added] method getAppCustomFieldDefinitionBySlug + + + +#### updateAppCustomFieldDefinitionBySlug + +- ##### What's New + - [Added] method updateAppCustomFieldDefinitionBySlug + + + +#### deleteAppCustomFieldDefinitionBySlug + +- ##### What's New + - [Added] method deleteAppCustomFieldDefinitionBySlug + + + +#### getAppCustomFieldsByResourceSlug + +- ##### What's New + - [Added] method getAppCustomFieldsByResourceSlug + + + +#### updateAppCustomFieldByResourceSlug + +- ##### What's New + - [Added] method updateAppCustomFieldByResourceSlug + + + +#### getAppCustomObjectDefinitionBySlug + +- ##### What's New + - [Added] method getAppCustomObjectDefinitionBySlug + + + +#### updateAppCustomObjectDefinitionBySlug + +- ##### What's New + - [Added] method updateAppCustomObjectDefinitionBySlug + + + +#### deleteAppCustomObjectDefinitionBySlug + +- ##### What's New + - [Added] method deleteAppCustomObjectDefinitionBySlug + + + +#### getAppCustomObjectsBySlug + +- ##### What's New + - [Added] method getAppCustomObjectsBySlug + + + +#### createAppCustomObjectBySlug + +- ##### What's New + - [Added] method createAppCustomObjectBySlug + + + +#### getAppCustomObjectBySlug + +- ##### What's New + - [Added] method getAppCustomObjectBySlug + + + +#### deleteAppCustomObjectBySlug + +- ##### What's New + - [Added] method deleteAppCustomObjectBySlug + + + +#### updateAppCustomObjectBySlug + +- ##### What's New + - [Added] method updateAppCustomObjectBySlug + + + +#### importAppCustomObjectEntriesBySlug + +- ##### What's New + - [Added] method importAppCustomObjectEntriesBySlug + + + +#### exportAppCustomObjectEntriesBySlug + +- ##### What's New + - [Added] method exportAppCustomObjectEntriesBySlug + + + +#### sampleAppCustomObjectBulkEntryBySlug + +- ##### What's New + - [Added] method sampleAppCustomObjectBulkEntryBySlug + + + +### Discount + + + +#### getDiscounts + +- ##### What's New + - [Breaking] [Added] Possible values app,app|brand,app|store,app|brand|store,app|brand|product,app|brand|store|product,app|brand|inventory,app|brand|store|inventory to property items[].job_type of schema DiscountJob in response with status code 200 + - [Breaking] [Added] Possible values flat,percentage to property items[].discount_type of schema DiscountJob in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].created_on of schema DiscountJob in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].modified_on of schema DiscountJob in response with status code 200 + + +#### createDiscount + +- ##### What's New + - [Breaking] [Added] Possible values app,app|brand,app|store,app|brand|store,app|brand|product,app|brand|store|product,app|brand|inventory,app|brand|store|inventory to property job_type of schema DiscountJob in response with status code 200 + - [Breaking] [Added] Possible values flat,percentage to property discount_type of schema DiscountJob in response with status code 200 + - [Breaking] [Added] Value format date-time to property created_on of schema DiscountJob in response with status code 200 + - [Breaking] [Added] Value format date-time to property modified_on of schema DiscountJob in response with status code 200 + + +#### getDiscount + +- ##### What's New + - [Breaking] [Added] Possible values app,app|brand,app|store,app|brand|store,app|brand|product,app|brand|store|product,app|brand|inventory,app|brand|store|inventory to property job_type of schema DiscountJob in response with status code 200 + - [Breaking] [Added] Possible values flat,percentage to property discount_type of schema DiscountJob in response with status code 200 + - [Breaking] [Added] Value format date-time to property created_on of schema DiscountJob in response with status code 200 + - [Breaking] [Added] Value format date-time to property modified_on of schema DiscountJob in response with status code 200 + + +#### updateDiscount + +- ##### What's New + - [Breaking] [Added] Possible values app,app|brand,app|store,app|brand|store,app|brand|product,app|brand|store|product,app|brand|inventory,app|brand|store|inventory to property job_type of schema DiscountJob in response with status code 200 + - [Breaking] [Added] Possible values flat,percentage to property discount_type of schema DiscountJob in response with status code 200 + - [Breaking] [Added] Value format date-time to property created_on of schema DiscountJob in response with status code 200 + - [Breaking] [Added] Value format date-time to property modified_on of schema DiscountJob in response with status code 200 + + +#### validateDiscountFile + +- ##### What's New + - [Breaking] [Added] Possible values app,app|brand,app|store,app|brand|store,app|brand|product,app|brand|store|product,app|brand|inventory,app|brand|store|inventory to property job_type of schema FileJobRequestSchema in request body + - [Breaking] [Added] Possible values flat,percentage to property discount_type of schema FileJobRequestSchema in request body + - [Breaking] [Added] Possible values app,app|brand,app|store,app|brand|store,app|brand|product,app|brand|store|product,app|brand|inventory,app|brand|store|inventory to property body.job_type of schema FileJobBody in response with status code 200 + - [Breaking] [Added] Possible values flat,percentage to property body.discount_type of schema FileJobBody in response with status code 200 + - [Breaking] [Added] Value format date-time to property body.created_on of schema FileJobBody in response with status code 200 + - [Breaking] [Added] Value format date-time to property body.modified_on of schema FileJobBody in response with status code 200 + - [Breaking] [Added] Value format date-time to property created_on of schema FileJobResponseSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property modified_on of schema FileJobResponseSchema in response with status code 200 + + +#### downloadDiscountFile + +- ##### What's New + - [Breaking] [Added] Possible values app,app|brand,app|store,app|brand|store,app|brand|product,app|brand|store|product,app|brand|inventory,app|brand|store|inventory to property body.job_type of schema FileJobBody in response with status code 200 + - [Breaking] [Added] Possible values flat,percentage to property body.discount_type of schema FileJobBody in response with status code 200 + - [Breaking] [Added] Value format date-time to property body.created_on of schema FileJobBody in response with status code 200 + - [Breaking] [Added] Value format date-time to property body.modified_on of schema FileJobBody in response with status code 200 + - [Breaking] [Added] Value format date-time to property created_on of schema FileJobResponseSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property modified_on of schema FileJobResponseSchema in response with status code 200 + + +#### getValidationJob + +- ##### What's New + - [Breaking] [Added] Possible values app,app|brand,app|store,app|brand|store,app|brand|product,app|brand|store|product,app|brand|inventory,app|brand|store|inventory to property body.job_type of schema FileJobBody in response with status code 200 + - [Breaking] [Added] Possible values flat,percentage to property body.discount_type of schema FileJobBody in response with status code 200 + - [Breaking] [Added] Value format date-time to property body.created_on of schema FileJobBody in response with status code 200 + - [Breaking] [Added] Value format date-time to property body.modified_on of schema FileJobBody in response with status code 200 + - [Breaking] [Added] Value format date-time to property created_on of schema FileJobResponseSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property modified_on of schema FileJobResponseSchema in response with status code 200 + + +#### getDownloadJob + +- ##### What's New + - [Breaking] [Added] Possible values app,app|brand,app|store,app|brand|store,app|brand|product,app|brand|store|product,app|brand|inventory,app|brand|store|inventory to property body.job_type of schema FileJobBody in response with status code 200 + - [Breaking] [Added] Possible values flat,percentage to property body.discount_type of schema FileJobBody in response with status code 200 + - [Breaking] [Added] Value format date-time to property body.created_on of schema FileJobBody in response with status code 200 + - [Breaking] [Added] Value format date-time to property body.modified_on of schema FileJobBody in response with status code 200 + - [Breaking] [Added] Value format date-time to property created_on of schema FileJobResponseSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property modified_on of schema FileJobResponseSchema in response with status code 200 + + +### FileStorage + + + +#### startUpload + +- ##### What's New + - [Added] Security in Request + +- ##### What's Deprecated + - [Breaking] [Deleted] property cdn of schema StartResponse in response with status code 200 + +- ##### What's Changed + - [Breaking] [Changed] cdn made optional in response with status code 200 + - [Changed] Path From /service/platform/assets/v1.0/company/{company_id}/namespaces/{namespace}/upload/start To /service/platform/assets/v2.0/company/{company_id}/namespaces/{namespace}/upload/start + + +#### completeUpload + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_on of schema FileUploadComplete in response with status code 200 + - [Breaking] [Added] Value format date-time to property modified_on of schema FileUploadComplete in response with status code 200 + - [Added] Security in Request + +- ##### What's Deprecated + - [Breaking] [Deleted] property cdn of schema StartResponse in request body + +- ##### What's Changed + - [Breaking] [Changed] cdn made optional in request body + - [Changed] Path From /service/platform/assets/v1.0/company/{company_id}/namespaces/{namespace}/upload/complete To /service/platform/assets/v2.0/company/{company_id}/namespaces/{namespace}/upload/complete + + +#### appStartUpload + +- ##### What's New + - [Added] Security in Request + +- ##### What's Deprecated + - [Breaking] [Deleted] property cdn of schema StartResponse in response with status code 200 + +- ##### What's Changed + - [Breaking] [Changed] cdn made optional in response with status code 200 + - [Changed] Path From /service/platform/assets/v1.0/company/{company_id}/application/{application_id}/namespaces/{namespace}/upload/start To /service/platform/assets/v2.0/company/{company_id}/application/{application_id}/namespaces/{namespace}/upload/start + + +#### appCompleteUpload + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_on of schema FileUploadComplete in response with status code 200 + - [Breaking] [Added] Value format date-time to property modified_on of schema FileUploadComplete in response with status code 200 + - [Added] Security in Request + +- ##### What's Deprecated + - [Breaking] [Deleted] property cdn of schema StartResponse in request body + +- ##### What's Changed + - [Breaking] [Changed] cdn made optional in request body + - [Changed] Path From /service/platform/assets/v1.0/company/{company_id}/application/{application_id}/namespaces/{namespace}/upload/complete To /service/platform/assets/v2.0/company/{company_id}/application/{application_id}/namespaces/{namespace}/upload/complete + + +#### getSignUrls + +- ##### What's New + - [Added] Security in Request + + +#### copyFiles + +- ##### What's New + - [Added] Security in Request + + +#### appCopyFiles + +- ##### What's New + - [Added] Security in Request + + +#### browse + +- ##### What's New + - [Added] property items[].created_at of schema in response with status code 200 + - [Added] property items[].updated_at of schema in response with status code 200 + - [Added] Security in Request + +- ##### What's Deprecated + - [Breaking] [Deleted] property items[].createdAt of schema in response with status code 200 + - [Breaking] [Deleted] property items[].updatedAt of schema in response with status code 200 + + +#### appbrowse + +- ##### What's New + - [Added] property items[].created_at of schema in response with status code 200 + - [Added] property items[].updated_at of schema in response with status code 200 + - [Added] Security in Request + +- ##### What's Deprecated + - [Breaking] [Deleted] property items[].createdAt of schema in response with status code 200 + - [Breaking] [Deleted] property items[].updatedAt of schema in response with status code 200 + + +#### browsefiles + +- ##### What's New + - [Added] property items[].created_at of schema in response with status code 200 + - [Added] property items[].updated_at of schema in response with status code 200 + - [Added] Security in Request + +- ##### What's Deprecated + - [Breaking] [Deleted] property items[].createdAt of schema in response with status code 200 + - [Breaking] [Deleted] property items[].updatedAt of schema in response with status code 200 + + +#### proxy + +- ##### What's New + - [Added] Security in Request + + +#### getPdfTypes + +- ##### What's New + - [Added] data[].store_os made required in response with status code 200 + - [Added] property data[].store_os of schema InvoiceTypesData in response with status code 200 + - [Added] Security in Request + + +#### getDefaultPdfData + +- ##### What's New + - [Breaking] [Added] Value format date-time to property data[].payload.current_date of schema PdfPayloadDetails in response with status code 200 + - [Breaking] [Added] Value format date-time to property data[].payload.invoice_detail.invoice_date of schema InvoiceDetail in response with status code 200 + - [Added] Security in Request + +- ##### What's Deprecated + - [Breaking] [Deleted] property data[].payload.shipment_meta of schema DummyTemplateDataPayload in response with status code 200 + - [Breaking] [Deleted] property data[].payload.order_meta of schema DummyTemplateDataPayload in response with status code 200 + + +#### updateHtmlTemplate + +- ##### What's New + - [Added] property country_code of schema PdfConfig in request body + - [Added] property default_template of schema PdfConfig in request body + - [Added] Security in Request + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getDefaultHtmlTemplate + +- ##### What's New + - [Added] Security in Request + +- ##### What's Changed + - [Breaking] [Changed] operationId from getDefaultHtmlTemplate to getHtmlTemplateConfig + + +#### saveHtmlTemplate + +- ##### What's New + - [Added] property country_code of schema PdfConfig in request body + - [Added] property default_template of schema PdfConfig in request body + - [Added] Security in Request + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getDefaultPdfTemplate + +- ##### What's New + - [Added] Security in Request + + +#### generatePaymentReceipt + +- ##### What's New + - [Breaking] [Added] Value format date-time to property payload.payments[].txn_date of schema PaymentReceiptPayments in request body + - [Added] Security in Request + + +#### fetchPdfTypeById + +- ##### What's New + - [Added] method fetchPdfTypeById + + + +#### getPdfPayloadById + +- ##### What's New + - [Added] method getPdfPayloadById + + + +#### getConfigHtmlTemplateById + +- ##### What's New + - [Added] method getConfigHtmlTemplateById + + + +#### deletePdfGeneratorConfig + +- ##### What's New + - [Added] method deletePdfGeneratorConfig + + + +#### fetchPdfDefaultTemplateById + +- ##### What's New + - [Added] method fetchPdfDefaultTemplateById + + + +### Serviceability + + + +#### createZone + +- ##### What's Changed + - [Changed] product made optional in request body + + +#### getAllStores + +- ##### What's New + - [Breaking] [Added] Value format date-time to property items[].created_on of schema ItemResult in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].verified_on of schema ItemResult in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].modified_on of schema ItemResult in response with status code 200 + + +#### updatePincodeAuditHistory + +- ##### What's New + - [Breaking] [Added] Value format date-time to property data[].updated_at of schema PincodeMopUpdateAuditHistoryResult in response with status code 200 + + +#### createCourierPartnerAccount + +- ##### What's Changed + - [Changed] company_id made optional in request body + - [Breaking] [Changed] company_id made optional in response with status code 200 + + +#### updateCourierPartnerAccount + +- ##### What's Changed + - [Breaking] [Changed] company_id made optional in request body + + +#### updateCourierRule + +- ##### What's New + - [Breaking] [Added] Value format date-time to property modified_on of schema CourierPartnerRuleResult in response with status code 200 + +- ##### What's Changed + - [Changed] type made optional in request body + + +#### getCourierPartnerRule + +- ##### What's New + - [Breaking] [Added] Value format date-time to property modified_on of schema CourierPartnerRuleResult in response with status code 200 + + +#### createCourierPartnerRule + +- ##### What's New + - [Breaking] [Added] Value format date-time to property modified_on of schema CourierPartnerRuleResult in response with status code 200 + +- ##### What's Changed + - [Changed] type made optional in request body + + +#### getCourierPartnerRules + +- ##### What's New + - [Breaking] [Added] Value format date-time to property items[].modified_on of schema CourierPartnerRuleResult in response with status code 200 + + +#### patchApplicationServiceabilitySelfShipment + +- ##### What's New + - [Added] properties data.self_ship.is_active, data.self_ship.tat in response with status code 200 + - [Added] data.self_ship.is_active, data.self_ship.tat made required in response with status code 200 + - [Added] properties data.self_ship.is_active, data.self_ship.tat in response with status code 400 + - [Added] data.self_ship.is_active, data.self_ship.tat made required in response with status code 400 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property data.self_ship of schema ApplicationSelfShipConfig in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property data.self_ship of schema ApplicationSelfShipConfig in response with status code 400 + + +#### getApplicationServiceabilitySelfShipment + +- ##### What's New + - [Added] properties data.self_ship.is_active, data.self_ship.tat in response with status code 200 + - [Added] data.self_ship.is_active, data.self_ship.tat made required in response with status code 200 + - [Added] properties data.self_ship.is_active, data.self_ship.tat in response with status code 400 + - [Added] data.self_ship.is_active, data.self_ship.tat made required in response with status code 400 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property data.self_ship of schema ApplicationSelfShipConfig in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property data.self_ship of schema ApplicationSelfShipConfig in response with status code 400 + + +#### getServiceability + +- ##### What's Changed + - [Breaking] [Changed] pickup_cutoff made optional in response with status code 200 + - [Breaking] [Changed] route_code made optional in response with status code 200 + + +#### updateServiceability + +- ##### What's Changed + - [Breaking] [Changed] pickup_cutoff made optional in request body + - [Breaking] [Changed] route_code made optional in request body + - [Breaking] [Changed] pickup_cutoff made optional in response with status code 200 + - [Breaking] [Changed] route_code made optional in response with status code 200 + + +#### createPackageMaterial + +- ##### What's New + - [Breaking] [Added] Possible values Box,Paper Bag,Corrugated Box,Wooden Box to property package_type of schema PackageMaterial in request body + - [Breaking] [Added] Possible values Box,Paper Bag,Corrugated Box,Wooden Box to property package_type of schema PackageMaterialResult in response with status code 201 + + +#### getPackageMaterialList + +- ##### What's New + - [Breaking] [Added] Possible values Box,Paper Bag,Corrugated Box,Wooden Box to property items.package_type of schema PackageMaterialResult in response with status code 200 + + +#### updatePackageMaterials + +- ##### What's New + - [Breaking] [Added] Possible values Box,Paper Bag,Corrugated Box,Wooden Box to property package_type of schema PackageMaterial in request body + - [Breaking] [Added] Possible values Box,Paper Bag,Corrugated Box,Wooden Box to property package_type of schema PackageMaterialResult in response with status code 200 + + +#### getPackageMaterials + +- ##### What's New + - [Breaking] [Added] Possible values Box,Paper Bag,Corrugated Box,Wooden Box to property package_type of schema PackageMaterialResult in response with status code 200 + + +#### getOptimalLocations + +- ##### What's New + - [Added] property articles of schema OptimlLocationsDetailsSchema in request body + +- ##### What's Deprecated + - [Breaking] [Deleted] property article of schema OptimlLocationsRequestSchema in request body + +- ##### What's Changed + - [Changed] articles made optional in request body + + +#### getCourierPartners + +- ##### What's New + - [Added] method getCourierPartners + + + +### Order + + + +#### getAnnouncements + +- ##### What's New + - [Breaking] [Added] Value format date-time to property announcements[].created_at of schema AnnouncementResponseSchema in response with status code 200 + - [Added] property message of schema AnnouncementsResponseSchema in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property status of schema AnnouncementsResponse in response with status code 200 + + +#### updateAddress + +- ##### What's New + - [Added] Response with status 400 + - [Added] Body content in Request + +- ##### What's Deprecated + - [Breaking] [Deleted] query parameter name (type: string) + + - [Breaking] [Deleted] query parameter address (type: string) + + - [Breaking] [Deleted] query parameter addressType (type: string) + + - [Breaking] [Deleted] query parameter pincode (type: string) + + - [Breaking] [Deleted] query parameter phone (type: string) + + - [Breaking] [Deleted] query parameter email (type: string) + + - [Breaking] [Deleted] query parameter landmark (type: string) + + - [Breaking] [Deleted] Required query parameter addressCategory (type: string) + + - [Breaking] [Deleted] query parameter city (type: string) + + - [Breaking] [Deleted] query parameter state (type: string) + + - [Breaking] [Deleted] query parameter country (type: string) + + - [Breaking] [Deleted] Response with status 4XX + +- ##### What's Changed + - [Breaking] [Changed] location from query to path of parameter shipmentId + - [Changed] Security in Request + - [Changed] Security in Request + - [Breaking] [Changed] Security in Request + - [Changed] Path From /service/platform/order-manage/v1.0/company/{company_id}/delight/update-address To /service/platform/order-manage/v1.0/company/{company_id}/shipment/{shipment_id}/address + - [Changed] http method type from post To put + + +#### updateShipmentStatus + +- ##### What's New + - [Added] property statuses[].shipments[].data_updates.products[].filters[].quantity of schema ProductsDataUpdatesFilters in request body + - [Added] property statuses[].shipments[].data_updates.order of schema DataUpdates in request body + + +#### getRoleBasedActions + +- ##### What's New + - [Breaking] [Added] Value format int32 to property status of schema ErrorResponseSchema in response with status code 4XX + - [Added] Possible nullable value true to property status of schema ErrorResponseSchema in response with status code 4XX + - [Added] Possible nullable value true to property message of schema ErrorResponseSchema in response with status code 4XX + - [Added] property success of schema ErrorResponseSchema in response with status code 4XX + - [Added] property error_trace of schema ErrorResponseSchema in response with status code 4XX + - [Added] property error of schema ErrorResponseSchema in response with status code 4XX + - [Added] message made required in response with status code 4XX + + +#### getShipmentHistory + +- ##### What's New + - [Breaking] [Added] Type object to property activity_history[].meta of schema HistoryMeta in response with status code 200 + - [Added] properties activity_history[].meta.store_id, activity_history[].meta.status, activity_history[].meta.status1, activity_history[].meta.call_id, activity_history[].meta.starttime, activity_history[].meta.reason, activity_history[].meta.short_link, activity_history[].meta.endtime, activity_history[].meta.store_name, activity_history[].meta.caller, activity_history[].meta.store_code, activity_history[].meta.billsec, activity_history[].meta.recordpath, activity_history[].meta.status2, activity_history[].meta.callerid, activity_history[].meta.duration, activity_history[].meta.channel_type, activity_history[].meta.activity_comment, activity_history[].meta.activity_type, activity_history[].meta.receiver, activity_history[].meta.recipient, activity_history[].meta.slug, activity_history[].meta.message, activity_history[].meta.prev_store_name, activity_history[].meta.prev_store_code, activity_history[].meta.prev_store_id, activity_history[].meta.refund_to, activity_history[].meta.refund_information in response with status code 200 + - [Added] property activity_history[].activity_type of schema HistoryDict in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property activity_history[].created_ts of schema HistoryDict in response with status code 200 + - [Breaking] [Deleted] property activity_history[].type of schema HistoryDict in response with status code 200 + + +#### postShipmentHistory + +- ##### What's New + - [Breaking] [Added] Type object to property activity_history[].meta of schema HistoryMeta in response with status code 200 + - [Added] properties activity_history[].meta.store_id, activity_history[].meta.status, activity_history[].meta.status1, activity_history[].meta.call_id, activity_history[].meta.starttime, activity_history[].meta.reason, activity_history[].meta.short_link, activity_history[].meta.endtime, activity_history[].meta.store_name, activity_history[].meta.caller, activity_history[].meta.store_code, activity_history[].meta.billsec, activity_history[].meta.recordpath, activity_history[].meta.status2, activity_history[].meta.callerid, activity_history[].meta.duration, activity_history[].meta.channel_type, activity_history[].meta.activity_comment, activity_history[].meta.activity_type, activity_history[].meta.receiver, activity_history[].meta.recipient, activity_history[].meta.slug, activity_history[].meta.message, activity_history[].meta.prev_store_name, activity_history[].meta.prev_store_code, activity_history[].meta.prev_store_id, activity_history[].meta.refund_to, activity_history[].meta.refund_information in response with status code 200 + - [Added] property activity_history[].activity_type of schema HistoryDict in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property activity_history[].created_ts of schema HistoryDict in response with status code 200 + - [Breaking] [Deleted] property activity_history[].type of schema HistoryDict in response with status code 200 + + +#### sendSmsNinja + +- ##### What's New + - [Added] success, message made required in response with status code 200 + +- ##### What's Deprecated + - [Deleted] Value format from int32 from property bag_id of schema SendSmsPayload in request body + +- ##### What's Changed + - [Breaking] [Changed] Type from integer to string of property bag_id of schema SendSmsPayload in request body + + +#### updatePackagingDimensions + +- ##### What's New + - [Added] property success of schema ErrorResponseSchema in response with status code 4XX + - [Added] property message of schema ErrorResponseSchema in response with status code 4XX + - [Added] property error_trace of schema ErrorResponseSchema in response with status code 4XX + - [Added] message made required in response with status code 4XX + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property error of schema UpdatePackingErrorResponse in response with status code 4XX + +- ##### What's Changed + - [Breaking] [Changed] Type from number to string of property dimension[].weight of schema Dimension in request body + - [Breaking] [Changed] Type from number to string of property dimension[].height of schema Dimension in request body + + +#### createOrder + +- ##### What's New + - [Breaking] [Added] Value format date-time to property shipments[].processing_dates.dispatch_after_date of schema ProcessingDates in request body + - [Breaking] [Added] Value format date-time to property shipments[].processing_dates.dispatch_by_date of schema ProcessingDates in request body + - [Breaking] [Added] Value format date-time to property shipments[].processing_dates.confirm_by_date of schema ProcessingDates in request body + - [Breaking] [Added] Value format date-time to property shipments[].processing_dates.pack_by_date of schema ProcessingDates in request body + - [Added] Possible values Digital to property shipments[].order_type of schema Shipment in request body + - [Breaking] [Added] Possible values store,delivery,billing to property shipments[].billing_address_json.address_category of schema Address in request body + - [Breaking] [Added] Value format date-time to property shipments[].billing_address_json.created_at of schema Address in request body + - [Breaking] [Added] Value format date-time to property shipments[].billing_address_json.updated_at of schema Address in request body + - [Breaking] [Added] Possible values store,delivery,billing to property shipments[].delivery_address_json.address_category of schema Address in request body + - [Breaking] [Added] Value format date-time to property shipments[].delivery_address_json.created_at of schema Address in request body + - [Breaking] [Added] Value format date-time to property shipments[].delivery_address_json.updated_at of schema Address in request body + - [Added] properties shipments[].tags[].slug, shipments[].tags[].display_text in request body + - [Breaking] [Added] Value format date-time to property shipments[].created_at of schema Shipment in request body + - [Breaking] [Added] Possible values store,delivery,billing to property shipments[].hand_over_contact_json.address_category of schema Address in request body + - [Breaking] [Added] Value format date-time to property shipments[].hand_over_contact_json.created_at of schema Address in request body + - [Breaking] [Added] Value format date-time to property shipments[].hand_over_contact_json.updated_at of schema Address in request body + - [Breaking] [Added] Value format date-time to property shipments[].status.created_at of schema ShipmentStatusData in request body + - [Breaking] [Added] Value format date-time to property shipments[].status.status_created_at of schema ShipmentStatusData in request body + - [Added] property shipments[].system_messages of schema Shipment in request body + - [Added] property shipments[].process_after_config of schema Shipment in request body + - [Breaking] [Added] Value format date-time to property external_creation_date of schema CreateOrderAPI in request body + - [Added] property config.lock_state_messages of schema CreateOrderConfig in request body + - [Added] property status of schema CreateOrderAPI in request body + - [Added] property system_messages of schema CreateOrderAPI in request body + - [Added] property request_id of schema CreateOrderErrorReponse in response with status code 4XX + - [Added] property status of schema CreateOrderErrorReponse in response with status code 4XX + - [Added] property info of schema CreateOrderErrorReponse in response with status code 4XX + - [Added] property stack_trace of schema CreateOrderErrorReponse in response with status code 4XX + - [Added] property code of schema CreateOrderErrorReponse in response with status code 4XX + - [Added] property meta of schema CreateOrderErrorReponse in response with status code 4XX + - [Added] property message of schema CreateOrderErrorReponse in response with status code 4XX + - [Added] property exception of schema CreateOrderErrorReponse in response with status code 4XX + - [Added] message, status made required in response with status code 4XX + - [Added] property request_id of schema CreateOrderErrorReponse in response with status code 5XX + - [Added] property status of schema CreateOrderErrorReponse in response with status code 5XX + - [Added] property info of schema CreateOrderErrorReponse in response with status code 5XX + - [Added] property stack_trace of schema CreateOrderErrorReponse in response with status code 5XX + - [Added] property code of schema CreateOrderErrorReponse in response with status code 5XX + - [Added] property meta of schema CreateOrderErrorReponse in response with status code 5XX + - [Added] property message of schema CreateOrderErrorReponse in response with status code 5XX + - [Added] property exception of schema CreateOrderErrorReponse in response with status code 5XX + - [Added] message, status made required in response with status code 5XX + +- ##### What's Deprecated + - [Breaking] [Deleted] properties shipments[].line_items[].charges[].amount.currency, shipments[].line_items[].charges[].amount.value in request body + - [Deleted] Possible values from delivery,pickup from property shipping_info.shipping_type of schema ShippingInfo in request body + - [Breaking] [Deleted] properties shipping_info.geo_location.latitude, shipping_info.geo_location.longitude in request body + - [Breaking] [Deleted] property billing_info.shipping_type of schema ShippingInfo in request body + - [Breaking] [Deleted] property billing_info.geo_location of schema ShippingInfo in request body + - [Breaking] [Deleted] property billing_info.address_type of schema ShippingInfo in request body + - [Breaking] [Deleted] property billing_info.slot of schema ShippingInfo in request body + - [Breaking] [Deleted] properties charges[].amount.currency, charges[].amount.value in request body + - [Breaking] [Deleted] property config.integration_type of schema CreateOrderConfig in request body + - [Breaking] [Deleted] property payment_info.payment_mode of schema PaymentInfo in request body + - [Deleted] Possible values from platform-pos,platform-site,openapi,marketplace from property order_platform of schema CreateOrderAPI in request body + - [Breaking] [Deleted] property order_type of schema CreateOrderAPI in request body + - [Breaking] [Deleted] property fynd_order_id of schema CreateOrderAPI in request body + - [Breaking] [Deleted] property application_id of schema CreateOrderAPI in request body + - [Breaking] [Deleted] property external_shipment_id of schema CreateOrderAPI in request body + - [Breaking] [Deleted] property success of schema CreateOrderErrorReponse in response with status code 4XX + - [Breaking] [Deleted] property errors of schema CreateOrderErrorReponse in response with status code 4XX + - [Breaking] [Deleted] property status_code of schema CreateOrderErrorReponse in response with status code 4XX + - [Breaking] [Deleted] property fynd_order_id of schema CreateOrderErrorReponse in response with status code 4XX + - [Breaking] [Deleted] property success of schema CreateOrderErrorReponse in response with status code 5XX + - [Breaking] [Deleted] property errors of schema CreateOrderErrorReponse in response with status code 5XX + - [Breaking] [Deleted] property status_code of schema CreateOrderErrorReponse in response with status code 5XX + - [Breaking] [Deleted] property fynd_order_id of schema CreateOrderErrorReponse in response with status code 5XX + +- ##### What's Changed + - [Breaking] [Changed] Possible values from other to registered of property shipping_info.address_type of schema ShippingInfo in request body + - [Breaking] [Changed] config.dp_configuration made optional in request body + - [Changed] config made optional in request body + + +#### orderUpdate + +- ##### What's New + - [Added] property message[] of schema ResponseDetail in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property status of schema ResponseDetail in response with status code 200 + +- ##### What's Changed + - [Breaking] [Changed] Type from string to array of property message of schema ResponseDetail in response with status code 200 + + +#### checkOrderStatus + +- ##### What's New + - [Added] property start_date of schema OrderStatus in request body + - [Added] property end_date of schema OrderStatus in request body + - [Added] property mobile of schema OrderStatus in request body + - [Breaking] [Added] end_date, mobile, start_date made required in request body + - [Breaking] [Added] Value format date-time to property result[].order_details.created_at of schema OrderDetails in response with status code 200 + - [Breaking] [Added] Value format date-time to property result[].order_details.affiliate_order_date of schema OrderDetails in response with status code 200 + - [Added] property result[].order_details.charges of schema OrderDetails in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property order_details[].start_date of schema FyndOrderIdList in request body + - [Breaking] [Deleted] property order_details[].end_date of schema FyndOrderIdList in request body + - [Breaking] [Deleted] property order_details[].mobile of schema FyndOrderIdList in request body + - [Breaking] [Deleted] Response with status 4XX + - [Breaking] [Deleted] Response with status 5XX + + +#### fetchRefundModeConfig + +- ##### What's Deprecated + - [Breaking] [Deleted] property data[].format of schema RefundModeInfo in response with status code 200 + - [Breaking] [Deleted] property status of schema RefundModeConfigResponsePayload in response with status code 200 + - [Breaking] [Deleted] property message of schema RefundModeConfigResponsePayload in response with status code 200 + +- ##### What's Changed + - [Breaking] [Changed] Type from number to string of property customer_mobile_number of schema RefundModeConfigRequestPayload in request body + + +#### sendUserMobileOTP + +- ##### What's New + - [Breaking] [Added] Value format int32 to property data.mobile of schema PointBlankOtpData in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property status of schema SendUserMobileOtpResponse in response with status code 200 + +- ##### What's Changed + - [Breaking] [Changed] Type from number to string of property mobile of schema SendUserMobileOTP in request body + + +#### downloadLanesReport + +- ##### What's Deprecated + - [Breaking] [Deleted] property custom_headers[] of schema BulkReportsDownloadRequest in request body + - [Breaking] [Deleted] Possible values from fetch_by_filter_type from property report_type of schema BulkReportsDownloadRequest in request body + +- ##### What's Changed + - [Breaking] [Changed] Type from array to string of property custom_headers of schema BulkReportsDownloadRequest in request body + - [Breaking] [Changed] Possible values from shipment_statuses to generation_report of property report_type of schema BulkReportsDownloadRequest in request body + - [Breaking] [Changed] Possible values from shipment_statuses_with_store_ids to invoice_report of property report_type of schema BulkReportsDownloadRequest in request body + + +#### bulkListing + +- ##### What's New + - [Breaking] [Added] Possible values a4,a6,pos to property data[].last_selected_invoice_label_type of schema BulkActionListingData in response with status code 200 + +- ##### What's Deprecated + - [Deleted] Possible values from COMPLETED,FAILED,PARTIALLY COMPLETED,PROCESSING from property data[].status of schema BulkActionListingData in response with status code 200 + - [Deleted] Possible values from yet_to_initiate,initiated,initiated_but_failed,success,failed from property data[].invoice_status of schema BulkActionListingData in response with status code 200 + - [Breaking] [Deleted] property data[].invoicelabel_document_type of schema BulkActionListingData in response with status code 200 + - [Breaking] [Deleted] property data[].failed_sh_count of schema BulkActionListingData in response with status code 200 + - [Breaking] [Deleted] property data[].successful_sh_count of schema BulkActionListingData in response with status code 200 + - [Breaking] [Deleted] property data[].total_count of schema BulkActionListingData in response with status code 200 + - [Breaking] [Deleted] property data[].failed_shipments of schema BulkActionListingData in response with status code 200 + - [Breaking] [Deleted] property data[].successful_invoiced_count of schema BulkActionListingData in response with status code 200 + - [Breaking] [Deleted] property data[].failed_invoiced_count of schema BulkActionListingData in response with status code 200 + - [Breaking] [Deleted] property data[].total_invoiced_count of schema BulkActionListingData in response with status code 200 + + +#### getManifestShipments + +- ##### What's New + - [Breaking] [Added] Value format int32 to property status of schema ErrorResponseSchema in response with status code 4XX + - [Added] Possible nullable value true to property status of schema ErrorResponseSchema in response with status code 4XX + - [Added] property success of schema ErrorResponseSchema in response with status code 4XX + - [Added] property message of schema ErrorResponseSchema in response with status code 4XX + - [Added] property error_trace of schema ErrorResponseSchema in response with status code 4XX + - [Added] message made required in response with status code 4XX + +- ##### What's Changed + - [Breaking] [Changed] lane made optional in response with status code 200 + - [Breaking] [Changed] Type from boolean to integer of property status of schema APIFailedResponse in response with status code 4XX + + +#### getManifests + +- ##### What's New + - [Breaking] [Added] Value format date-time to property items[].filters.date_range.from_date of schema DateRange in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].filters.date_range.to_date of schema DateRange in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].filters.from_date of schema Filters in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].filters.to_date of schema Filters in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].meta.filters.date_range.from_date of schema DateRange in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].meta.filters.date_range.to_date of schema DateRange in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].meta.filters.from_date of schema Filters in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].meta.filters.to_date of schema Filters in response with status code 200 + - [Breaking] [Added] Value format int32 to property status of schema ErrorResponseSchema in response with status code 4XX + - [Added] Possible nullable value true to property status of schema ErrorResponseSchema in response with status code 4XX + - [Added] property success of schema ErrorResponseSchema in response with status code 4XX + - [Added] property message of schema ErrorResponseSchema in response with status code 4XX + - [Added] property error_trace of schema ErrorResponseSchema in response with status code 4XX + - [Added] message made required in response with status code 4XX + - [Breaking] [Added] Value format int32 to property status of schema ErrorResponseSchema in response with status code 5XX + - [Added] Possible nullable value true to property status of schema ErrorResponseSchema in response with status code 5XX + - [Added] property success of schema ErrorResponseSchema in response with status code 5XX + - [Added] property message of schema ErrorResponseSchema in response with status code 5XX + - [Added] property error_trace of schema ErrorResponseSchema in response with status code 5XX + - [Added] message made required in response with status code 5XX + +- ##### What's Deprecated + - [Deleted] Possible values from save,process,pdf_generated,invalidate,pdf_failed,complete from property items[].status of schema Manifest in response with status code 200 + +- ##### What's Changed + - [Breaking] [Changed] Type from boolean to integer of property status of schema APIFailedResponse in response with status code 4XX + - [Breaking] [Changed] Type from boolean to integer of property status of schema APIFailedResponse in response with status code 5XX + - [Changed] Path From /service/platform/order-manage/v1.0/company/{company_id}/manifest/listing To /service/platform/order-manage/v1.0/company/{company_id}/manifests + + +#### generateProcessManifest + +- ##### What's New + - [Breaking] [Added] Value format date-time to property filters.date_range.from_date of schema DateRange in request body + - [Breaking] [Added] Value format date-time to property filters.date_range.to_date of schema DateRange in request body + - [Breaking] [Added] Value format date-time to property filters.from_date of schema Filters in request body + - [Breaking] [Added] Value format date-time to property filters.to_date of schema Filters in request body + - [Breaking] [Added] Value format date-time to property items.filters.date_range.from_date of schema DateRange in response with status code 200 + - [Breaking] [Added] Value format date-time to property items.filters.date_range.to_date of schema DateRange in response with status code 200 + - [Breaking] [Added] Value format date-time to property items.filters.from_date of schema Filters in response with status code 200 + - [Breaking] [Added] Value format date-time to property items.filters.to_date of schema Filters in response with status code 200 + +- ##### What's Deprecated + - [Deleted] Possible values from save,process from property action of schema ProcessManifestRequest in request body + - [Deleted] Possible values from save,process from property items.action of schema ManifestItems in response with status code 200 + - [Breaking] [Deleted] Response with status 500 + +- ##### What's Changed + - [Changed] action, unique_id, filters made optional in request body + + +#### getManifestDetails + +- ##### What's New + - [Breaking] [Added] Value format date-time to property manifest_details[].filters.date_range.from_date of schema DateRange in response with status code 200 + - [Breaking] [Added] Value format date-time to property manifest_details[].filters.date_range.to_date of schema DateRange in response with status code 200 + - [Breaking] [Added] Value format date-time to property manifest_details[].filters.from_date of schema Filters in response with status code 200 + - [Breaking] [Added] Value format date-time to property manifest_details[].filters.to_date of schema Filters in response with status code 200 + - [Breaking] [Added] Value format date-time to property manifest_details[].meta.filters.date_range.from_date of schema DateRange in response with status code 200 + - [Breaking] [Added] Value format date-time to property manifest_details[].meta.filters.date_range.to_date of schema DateRange in response with status code 200 + - [Breaking] [Added] Value format date-time to property manifest_details[].meta.filters.from_date of schema Filters in response with status code 200 + - [Breaking] [Added] Value format date-time to property manifest_details[].meta.filters.to_date of schema Filters in response with status code 200 + - [Breaking] [Added] Value format int32 to property status of schema ErrorResponseSchema in response with status code 4XX + - [Added] Possible nullable value true to property status of schema ErrorResponseSchema in response with status code 4XX + - [Added] property success of schema ErrorResponseSchema in response with status code 4XX + - [Added] property message of schema ErrorResponseSchema in response with status code 4XX + - [Added] property error_trace of schema ErrorResponseSchema in response with status code 4XX + - [Added] message made required in response with status code 4XX + - [Breaking] [Added] Value format int32 to property status of schema ErrorResponseSchema in response with status code 5XX + - [Added] Possible nullable value true to property status of schema ErrorResponseSchema in response with status code 5XX + - [Added] property success of schema ErrorResponseSchema in response with status code 5XX + - [Added] property message of schema ErrorResponseSchema in response with status code 5XX + - [Added] property error_trace of schema ErrorResponseSchema in response with status code 5XX + - [Added] message made required in response with status code 5XX + +- ##### What's Deprecated + - [Breaking] [Deleted] query parameter dpIds (type: string) + + - [Breaking] [Deleted] query parameter endDate (type: string) + + - [Breaking] [Deleted] query parameter startDate (type: string) + + - [Breaking] [Deleted] query parameter pageNo (type: integer) + + - [Breaking] [Deleted] query parameter pageSize (type: integer) + + - [Deleted] Possible values from save,process,pdf_generated,invalidate,pdf_failed,complete from property manifest_details[].status of schema Manifest in response with status code 200 + +- ##### What's Changed + - [Breaking] [Changed] location from query to path of parameter manifestId + - [Breaking] [Changed] Type from boolean to integer of property status of schema APIFailedResponse in response with status code 4XX + - [Breaking] [Changed] Type from boolean to integer of property status of schema APIFailedResponse in response with status code 5XX + - [Changed] Path From /service/platform/order-manage/v1.0/company/{company_id}/manifest/details To /service/platform/order-manage/v1.0/company/{company_id}/manifests/{manifest_id} + + +#### dispatchManifests + +- ##### What's New + - [Breaking] [Added] Value format int32 to property status of schema ErrorResponseSchema in response with status code 4XX + - [Added] Possible nullable value true to property status of schema ErrorResponseSchema in response with status code 4XX + - [Added] property success of schema ErrorResponseSchema in response with status code 4XX + - [Added] property message of schema ErrorResponseSchema in response with status code 4XX + - [Added] property error_trace of schema ErrorResponseSchema in response with status code 4XX + - [Added] message made required in response with status code 4XX + +- ##### What's Changed + - [Breaking] [Changed] Type from boolean to integer of property status of schema APIFailedResponse in response with status code 4XX + + +#### uploadConsents + +- ##### What's New + - [Breaking] [Added] Required path parameter manifestId (type: string) + + - [Breaking] [Added] Value format int32 to property status of schema ErrorResponseSchema in response with status code 4XX + - [Added] Possible nullable value true to property status of schema ErrorResponseSchema in response with status code 4XX + - [Added] property success of schema ErrorResponseSchema in response with status code 4XX + - [Added] property message of schema ErrorResponseSchema in response with status code 4XX + - [Added] property error_trace of schema ErrorResponseSchema in response with status code 4XX + - [Added] message made required in response with status code 4XX + +- ##### What's Changed + - [Breaking] [Changed] Type from boolean to integer of property status of schema APIFailedResponse in response with status code 4XX + - [Changed] Path From /service/platform/order-manage/v1.0/company/{company_id}/manifest/uploadConsent To /service/platform/order-manage/v1.0/company/{company_id}/manifest/{manifest_id}/upload-consent + + +#### getManifestfilters + +- ##### What's Deprecated + - [Deleted] Possible values from multi_select,single_select from property advance_filter[].type of schema FiltersInfo in response with status code 200 + - [Deleted] Possible values from multi_select,single_select from property global_filter[].type of schema FiltersInfo in response with status code 200 + + +#### eInvoiceRetry + +- ##### What's New + - [Breaking] [Added] Possible values invoice,credit_note to property shipments_data[].einvoice_type of schema EInvoiceRetryShipmentData in request body + - [Breaking] [Added] Possible values invoice,credit_note to property response_data[].einvoice_type of schema EInvoiceResponseData in response with status code 200 + - [Breaking] [Added] Possible values invoice,credit_note to property response_data[].einvoice_type of schema EInvoiceErrorResponseData in response with status code 400 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### trackShipment + +- ##### What's New + - [Added] Possible nullable value true to property message of schema ErrorResponseSchema in response with status code 4XX + - [Added] property status of schema ErrorResponseSchema in response with status code 4XX + - [Added] property success of schema ErrorResponseSchema in response with status code 4XX + - [Added] property error_trace of schema ErrorResponseSchema in response with status code 4XX + - [Added] property error of schema ErrorResponseSchema in response with status code 4XX + - [Added] message made required in response with status code 4XX + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property page.item_total of schema PageDetails in response with status code 200 + - [Breaking] [Deleted] property exception of schema ExceptionErrorResponse in response with status code 4XX + - [Breaking] [Deleted] property stack_trace of schema ExceptionErrorResponse in response with status code 4XX + + +#### updateShipmentTracking + +- ##### What's New + - [Added] Possible nullable value true to property message of schema ErrorResponseSchema in response with status code 4XX + - [Added] property status of schema ErrorResponseSchema in response with status code 4XX + - [Added] property success of schema ErrorResponseSchema in response with status code 4XX + - [Added] property error_trace of schema ErrorResponseSchema in response with status code 4XX + - [Added] property error of schema ErrorResponseSchema in response with status code 4XX + - [Added] message made required in response with status code 4XX + +- ##### What's Deprecated + - [Breaking] [Deleted] property exception of schema ExceptionErrorResponse in response with status code 4XX + - [Breaking] [Deleted] property stack_trace of schema ExceptionErrorResponse in response with status code 4XX + + +#### failedOrderLogs + +- ##### What's New + - [Breaking] [Added] Value format date-time to property items.created_at of schema FailedOrdersItem in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property items.error_message of schema FailedOrdersItem in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property items.display_message of schema FailedOrdersItem in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property items.meta of schema FailedOrdersItem in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property page.item_total of schema PageDetails in response with status code 200 + + +#### failedOrderLogDetails + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property error_trace of schema FailedOrderLogDetails in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property exception of schema FailedOrderLogDetails in response with status code 200 + + +#### getShipmentBagReasons + +- ##### What's New + - [Added] property rule_id of schema ShipmentBagReasons in response with status code 200 + + +#### getShipments + +- ##### What's New + - [Added] query parameter groupEntity (type: string) + + - [Breaking] [Added] Value format date-time to property items[].order_date of schema ShipmentItem in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].shipment_status.created_at of schema ShipmentStatus in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].shipment_status.status_created_at of schema ShipmentStatus in response with status code 200 + - [Breaking] [Added] Possible values store,delivery,billing to property items[].delivery_address.address_category of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].delivery_address.created_at of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].delivery_address.updated_at of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].status_created_at of schema ShipmentItem in response with status code 200 + - [Breaking] [Added] Possible values forward_standard to property items[].bags[].bag_type of schema BagUnit in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].bags[].bag_expiry_date of schema BagUnit in response with status code 200 + - [Breaking] [Added] Possible values operational,financial,logistics to property items[].bags[].bag_status[].state_type of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].bags[].bag_status[].created_at of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].bags[].bag_status[].updated_at of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Possible values operational,financial,logistics to property items[].bags[].bag_status[].bag_state_mapper.state_type of schema BagStateMapper in response with status code 200 + - [Breaking] [Added] Possible values return,forward to property items[].bags[].bag_status[].bag_state_mapper.journey_type of schema BagStateMapper in response with status code 200 + - [Breaking] [Added] Possible values operational,financial,logistics to property items[].bags[].current_operational_status.state_type of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].bags[].current_operational_status.created_at of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].bags[].current_operational_status.updated_at of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Possible values operational,financial,logistics to property items[].bags[].current_operational_status.bag_state_mapper.state_type of schema BagStateMapper in response with status code 200 + - [Breaking] [Added] Possible values return,forward to property items[].bags[].current_operational_status.bag_state_mapper.journey_type of schema BagStateMapper in response with status code 200 + - [Added] property items[].bags[].article.set of schema Article in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].bags[].brand.created_on of schema ShipmentListingBrand in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].bags[].affiliate_bag_details.affiliate_meta.due_date of schema AffiliateMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].bags[].item.last_updated_at of schema PlatformItem in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].bags[].dates.delivery_date of schema Dates in response with status code 200 + - [Breaking] [Added] Possible values operational,financial,logistics to property items[].bags[].current_status.state_type of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].bags[].current_status.created_at of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].bags[].current_status.updated_at of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Possible values operational,financial,logistics to property items[].bags[].current_status.bag_state_mapper.state_type of schema BagStateMapper in response with status code 200 + - [Breaking] [Added] Possible values return,forward to property items[].bags[].current_status.bag_state_mapper.journey_type of schema BagStateMapper in response with status code 200 + - [Breaking] [Added] Possible values bag to property items[].bags[].entity_type of schema BagUnit in response with status code 200 + - [Added] property items[].bags[].ordering_currency_prices of schema BagUnit in response with status code 200 + - [Breaking] [Added] Possible values high_street,mall,store,warehouse to property items[].fulfilling_store.location_type of schema ShipmentItemFulFillingStore in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].shipment_created_at of schema ShipmentItem in response with status code 200 + - [Added] property items[].billing_address of schema ShipmentItem in response with status code 200 + - [Added] property items[].affiliate_details of schema ShipmentItem in response with status code 200 + - [Added] property items[].is_active of schema ShipmentItem in response with status code 200 + - [Added] property items[].forward_end_shipment_id of schema ShipmentItem in response with status code 200 + - [Added] property items[].ordering_currency_prices of schema ShipmentItem in response with status code 200 + - [Added] property items[].logistics_meta of schema ShipmentItem in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property items[].shipment_status.status of schema ShipmentStatus in response with status code 200 + - [Breaking] [Deleted] property items[].bags[].article.a_set of schema Article in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property items[].total_bags of schema ShipmentItem in response with status code 200 + + +#### getShipmentById + +- ##### What's New + - [Breaking] [Added] Value format date-time to property shipments[].picked_date of schema PlatformShipment in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipments[].invoice.updated_date of schema InvoiceInfo in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipments[].order_status.order_details.created_at of schema OrderDetails in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipments[].order_status.order_details.affiliate_order_date of schema OrderDetails in response with status code 200 + - [Added] property shipments[].order_status.order_details.charges of schema OrderDetails in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipments[].order.order_date of schema OrderDetailsData in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipments[].affiliate_details.shipment_meta.estimated_delivery_date of schema ShipmentMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipments[].affiliate_details.shipment_meta.due_date of schema ShipmentMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipments[].affiliate_details.shipment_meta.store_invoice_updated_date of schema ShipmentMeta in response with status code 200 + - [Breaking] [Added] Possible values bag,shipments to property shipments[].affiliate_details.shipment_meta.shipment_tags[].entity_type of schema ShipmentTags in response with status code 200 + - [Breaking] [Added] Possible values HomeDelivery,PickAtStore,Digital to property shipments[].affiliate_details.shipment_meta.order_type of schema ShipmentMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipments[].affiliate_details.affiliate_meta.due_date of schema AffiliateMeta in response with status code 200 + - [Breaking] [Added] Possible values fynd,external to property shipments[].affiliate_details.pdf_links.invoice_type of schema PDFLinks in response with status code 200 + - [Breaking] [Added] Possible values fynd,external,parent_child to property shipments[].affiliate_details.pdf_links.label_type of schema PDFLinks in response with status code 200 + - [Added] property shipments[].affiliate_details.config.app of schema AffiliateConfig in response with status code 200 + - [Added] property shipments[].affiliate_details.config.inventory of schema AffiliateConfig in response with status code 200 + - [Breaking] [Added] Possible values operational,financial,logistics to property shipments[].bag_status_history[].state_type of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipments[].bag_status_history[].created_at of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipments[].bag_status_history[].updated_at of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Possible values operational,financial,logistics to property shipments[].bag_status_history[].bag_state_mapper.state_type of schema BagStateMapper in response with status code 200 + - [Breaking] [Added] Possible values return,forward to property shipments[].bag_status_history[].bag_state_mapper.journey_type of schema BagStateMapper in response with status code 200 + - [Breaking] [Added] Possible values operational,financial,logistics to property shipments[].bags[].bag_status[].state_type of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipments[].bags[].bag_status[].created_at of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipments[].bags[].bag_status[].updated_at of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Possible values operational,financial,logistics to property shipments[].bags[].bag_status[].bag_state_mapper.state_type of schema BagStateMapper in response with status code 200 + - [Breaking] [Added] Possible values return,forward to property shipments[].bags[].bag_status[].bag_state_mapper.journey_type of schema BagStateMapper in response with status code 200 + - [Breaking] [Added] Possible values store,delivery,billing to property shipments[].bags[].delivery_address.address_category of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipments[].bags[].delivery_address.created_at of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipments[].bags[].delivery_address.updated_at of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipments[].bags[].brand.created_on of schema OrderBrandName in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipments[].bags[].brand.modified_on of schema OrderBrandName in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipments[].bags[].affiliate_bag_details.affiliate_meta.due_date of schema AffiliateMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipments[].bags[].item.last_updated_at of schema PlatformItem in response with status code 200 + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items to property shipments[].bags[].applied_promos[].promotion_type of schema AppliedPromos in response with status code 200 + - [Added] property shipments[].bags[].applied_promos[].applied_free_articles of schema AppliedPromos in response with status code 200 + - [Breaking] [Added] Possible values operational,financial,logistics to property shipments[].bags[].current_status.state_type of schema CurrentStatus in response with status code 200 + - [Breaking] [Added] Possible values operational,financial,logistics to property shipments[].bags[].current_status.bag_state_mapper.state_type of schema BagStateMapper in response with status code 200 + - [Breaking] [Added] Possible values return,forward to property shipments[].bags[].current_status.bag_state_mapper.journey_type of schema BagStateMapper in response with status code 200 + - [Breaking] [Added] Possible values bag,shipments to property shipments[].bags[].entity_type of schema OrderBags in response with status code 200 + - [Added] property shipments[].bags[].charges of schema OrderBags in response with status code 200 + - [Added] property shipments[].bags[].ordering_currency_prices of schema OrderBags in response with status code 200 + - [Breaking] [Added] Possible values return,forward to property shipments[].journey_type of schema PlatformShipment in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipments[].status.created_at of schema ShipmentStatusData in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipments[].status.status_created_at of schema ShipmentStatusData in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipments[].shipment_created_at of schema PlatformShipment in response with status code 200 + - [Breaking] [Added] Possible values store,delivery,billing to property shipments[].rto_address.address_category of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipments[].rto_address.created_at of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipments[].rto_address.updated_at of schema Address in response with status code 200 + - [Added] property shipments[].charges of schema PlatformShipment in response with status code 200 + - [Added] property shipments[].ordering_currency_prices of schema PlatformShipment in response with status code 200 + - [Added] property shipments[].forward_end_shipment_id of schema PlatformShipment in response with status code 200 + - [Added] property shipments[].logistics_meta of schema PlatformShipment in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] properties shipments[].delivery_details.phone, shipments[].delivery_details.pincode, shipments[].delivery_details.address, shipments[].delivery_details.area, shipments[].delivery_details.address_type, shipments[].delivery_details.country, shipments[].delivery_details.email, shipments[].delivery_details.address1, shipments[].delivery_details.landmark, shipments[].delivery_details.state, shipments[].delivery_details.name, shipments[].delivery_details.city, shipments[].delivery_details.state_code, shipments[].delivery_details.country_iso_code, shipments[].delivery_details.country_phone_code, shipments[].delivery_details.display_address in response with status code 200 + - [Breaking] [Deleted] properties shipments[].billing_details.phone, shipments[].billing_details.pincode, shipments[].billing_details.address, shipments[].billing_details.area, shipments[].billing_details.address_type, shipments[].billing_details.country, shipments[].billing_details.email, shipments[].billing_details.address1, shipments[].billing_details.landmark, shipments[].billing_details.state, shipments[].billing_details.name, shipments[].billing_details.city, shipments[].billing_details.state_code, shipments[].billing_details.country_iso_code, shipments[].billing_details.country_phone_code, shipments[].billing_details.display_address in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property shipments[].affiliate_details.shipment_meta.b2b_buyer_details.address of schema BuyerDetails in response with status code 200 + +- ##### What's Changed + - [Breaking] [Changed] shipments[].delivery_details.address, shipments[].delivery_details.city, shipments[].delivery_details.country, shipments[].delivery_details.name, shipments[].delivery_details.phone, shipments[].delivery_details.pincode, shipments[].delivery_details.state made optional in response with status code 200 + - [Breaking] [Changed] shipments[].billing_details.address, shipments[].billing_details.city, shipments[].billing_details.country, shipments[].billing_details.name, shipments[].billing_details.phone, shipments[].billing_details.pincode, shipments[].billing_details.state made optional in response with status code 200 + + +#### getOrderById + +- ##### What's New + - [Breaking] [Added] Value format date-time to property order.order_date of schema OrderData in response with status code 200 + - [Added] property order.charges of schema OrderData in response with status code 200 + - [Added] property order.ordering_currency_prices of schema OrderData in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipments[].picked_date of schema PlatformShipment in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipments[].invoice.updated_date of schema InvoiceInfo in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipments[].order_status.order_details.created_at of schema OrderDetails in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipments[].order_status.order_details.affiliate_order_date of schema OrderDetails in response with status code 200 + - [Added] property shipments[].order_status.order_details.charges of schema OrderDetails in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipments[].order.order_date of schema OrderDetailsData in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipments[].affiliate_details.shipment_meta.estimated_delivery_date of schema ShipmentMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipments[].affiliate_details.shipment_meta.due_date of schema ShipmentMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipments[].affiliate_details.shipment_meta.store_invoice_updated_date of schema ShipmentMeta in response with status code 200 + - [Breaking] [Added] Possible values bag,shipments to property shipments[].affiliate_details.shipment_meta.shipment_tags[].entity_type of schema ShipmentTags in response with status code 200 + - [Breaking] [Added] Possible values HomeDelivery,PickAtStore,Digital to property shipments[].affiliate_details.shipment_meta.order_type of schema ShipmentMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipments[].affiliate_details.affiliate_meta.due_date of schema AffiliateMeta in response with status code 200 + - [Breaking] [Added] Possible values fynd,external to property shipments[].affiliate_details.pdf_links.invoice_type of schema PDFLinks in response with status code 200 + - [Breaking] [Added] Possible values fynd,external,parent_child to property shipments[].affiliate_details.pdf_links.label_type of schema PDFLinks in response with status code 200 + - [Added] property shipments[].affiliate_details.config.app of schema AffiliateConfig in response with status code 200 + - [Added] property shipments[].affiliate_details.config.inventory of schema AffiliateConfig in response with status code 200 + - [Breaking] [Added] Possible values operational,financial,logistics to property shipments[].bag_status_history[].state_type of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipments[].bag_status_history[].created_at of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipments[].bag_status_history[].updated_at of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Possible values operational,financial,logistics to property shipments[].bag_status_history[].bag_state_mapper.state_type of schema BagStateMapper in response with status code 200 + - [Breaking] [Added] Possible values return,forward to property shipments[].bag_status_history[].bag_state_mapper.journey_type of schema BagStateMapper in response with status code 200 + - [Breaking] [Added] Possible values operational,financial,logistics to property shipments[].bags[].bag_status[].state_type of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipments[].bags[].bag_status[].created_at of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipments[].bags[].bag_status[].updated_at of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Possible values operational,financial,logistics to property shipments[].bags[].bag_status[].bag_state_mapper.state_type of schema BagStateMapper in response with status code 200 + - [Breaking] [Added] Possible values return,forward to property shipments[].bags[].bag_status[].bag_state_mapper.journey_type of schema BagStateMapper in response with status code 200 + - [Breaking] [Added] Possible values store,delivery,billing to property shipments[].bags[].delivery_address.address_category of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipments[].bags[].delivery_address.created_at of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipments[].bags[].delivery_address.updated_at of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipments[].bags[].brand.created_on of schema OrderBrandName in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipments[].bags[].brand.modified_on of schema OrderBrandName in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipments[].bags[].affiliate_bag_details.affiliate_meta.due_date of schema AffiliateMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipments[].bags[].item.last_updated_at of schema PlatformItem in response with status code 200 + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items to property shipments[].bags[].applied_promos[].promotion_type of schema AppliedPromos in response with status code 200 + - [Added] property shipments[].bags[].applied_promos[].applied_free_articles of schema AppliedPromos in response with status code 200 + - [Breaking] [Added] Possible values operational,financial,logistics to property shipments[].bags[].current_status.state_type of schema CurrentStatus in response with status code 200 + - [Breaking] [Added] Possible values operational,financial,logistics to property shipments[].bags[].current_status.bag_state_mapper.state_type of schema BagStateMapper in response with status code 200 + - [Breaking] [Added] Possible values return,forward to property shipments[].bags[].current_status.bag_state_mapper.journey_type of schema BagStateMapper in response with status code 200 + - [Breaking] [Added] Possible values bag,shipments to property shipments[].bags[].entity_type of schema OrderBags in response with status code 200 + - [Added] property shipments[].bags[].charges of schema OrderBags in response with status code 200 + - [Added] property shipments[].bags[].ordering_currency_prices of schema OrderBags in response with status code 200 + - [Breaking] [Added] Possible values return,forward to property shipments[].journey_type of schema PlatformShipment in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipments[].status.created_at of schema ShipmentStatusData in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipments[].status.status_created_at of schema ShipmentStatusData in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipments[].shipment_created_at of schema PlatformShipment in response with status code 200 + - [Breaking] [Added] Possible values store,delivery,billing to property shipments[].rto_address.address_category of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipments[].rto_address.created_at of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property shipments[].rto_address.updated_at of schema Address in response with status code 200 + - [Added] property shipments[].charges of schema PlatformShipment in response with status code 200 + - [Added] property shipments[].ordering_currency_prices of schema PlatformShipment in response with status code 200 + - [Added] property shipments[].forward_end_shipment_id of schema PlatformShipment in response with status code 200 + - [Added] property shipments[].logistics_meta of schema PlatformShipment in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] properties shipments[].delivery_details.phone, shipments[].delivery_details.pincode, shipments[].delivery_details.address, shipments[].delivery_details.area, shipments[].delivery_details.address_type, shipments[].delivery_details.country, shipments[].delivery_details.email, shipments[].delivery_details.address1, shipments[].delivery_details.landmark, shipments[].delivery_details.state, shipments[].delivery_details.name, shipments[].delivery_details.city, shipments[].delivery_details.state_code, shipments[].delivery_details.country_iso_code, shipments[].delivery_details.country_phone_code, shipments[].delivery_details.display_address in response with status code 200 + - [Breaking] [Deleted] properties shipments[].billing_details.phone, shipments[].billing_details.pincode, shipments[].billing_details.address, shipments[].billing_details.area, shipments[].billing_details.address_type, shipments[].billing_details.country, shipments[].billing_details.email, shipments[].billing_details.address1, shipments[].billing_details.landmark, shipments[].billing_details.state, shipments[].billing_details.name, shipments[].billing_details.city, shipments[].billing_details.state_code, shipments[].billing_details.country_iso_code, shipments[].billing_details.country_phone_code, shipments[].billing_details.display_address in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property shipments[].affiliate_details.shipment_meta.b2b_buyer_details.address of schema BuyerDetails in response with status code 200 + +- ##### What's Changed + - [Breaking] [Changed] shipments[].delivery_details.address, shipments[].delivery_details.city, shipments[].delivery_details.country, shipments[].delivery_details.name, shipments[].delivery_details.phone, shipments[].delivery_details.pincode, shipments[].delivery_details.state made optional in response with status code 200 + - [Breaking] [Changed] shipments[].billing_details.address, shipments[].billing_details.city, shipments[].billing_details.country, shipments[].billing_details.name, shipments[].billing_details.phone, shipments[].billing_details.pincode, shipments[].billing_details.state made optional in response with status code 200 + + +#### getOrders + +- ##### What's New + - [Added] query parameter groupEntity (type: string) + + - [Breaking] [Added] Value format date-time to property items[].shipments[].picked_date of schema PlatformShipment in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].shipments[].invoice.updated_date of schema InvoiceInfo in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].shipments[].order_status.order_details.created_at of schema OrderDetails in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].shipments[].order_status.order_details.affiliate_order_date of schema OrderDetails in response with status code 200 + - [Added] property items[].shipments[].order_status.order_details.charges of schema OrderDetails in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].shipments[].order.order_date of schema OrderDetailsData in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].shipments[].affiliate_details.shipment_meta.estimated_delivery_date of schema ShipmentMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].shipments[].affiliate_details.shipment_meta.due_date of schema ShipmentMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].shipments[].affiliate_details.shipment_meta.store_invoice_updated_date of schema ShipmentMeta in response with status code 200 + - [Breaking] [Added] Possible values bag,shipments to property items[].shipments[].affiliate_details.shipment_meta.shipment_tags[].entity_type of schema ShipmentTags in response with status code 200 + - [Breaking] [Added] Possible values HomeDelivery,PickAtStore,Digital to property items[].shipments[].affiliate_details.shipment_meta.order_type of schema ShipmentMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].shipments[].affiliate_details.affiliate_meta.due_date of schema AffiliateMeta in response with status code 200 + - [Breaking] [Added] Possible values fynd,external to property items[].shipments[].affiliate_details.pdf_links.invoice_type of schema PDFLinks in response with status code 200 + - [Breaking] [Added] Possible values fynd,external,parent_child to property items[].shipments[].affiliate_details.pdf_links.label_type of schema PDFLinks in response with status code 200 + - [Added] property items[].shipments[].affiliate_details.config.app of schema AffiliateConfig in response with status code 200 + - [Added] property items[].shipments[].affiliate_details.config.inventory of schema AffiliateConfig in response with status code 200 + - [Breaking] [Added] Possible values operational,financial,logistics to property items[].shipments[].bag_status_history[].state_type of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].shipments[].bag_status_history[].created_at of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].shipments[].bag_status_history[].updated_at of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Possible values operational,financial,logistics to property items[].shipments[].bag_status_history[].bag_state_mapper.state_type of schema BagStateMapper in response with status code 200 + - [Breaking] [Added] Possible values return,forward to property items[].shipments[].bag_status_history[].bag_state_mapper.journey_type of schema BagStateMapper in response with status code 200 + - [Breaking] [Added] Possible values operational,financial,logistics to property items[].shipments[].bags[].bag_status[].state_type of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].shipments[].bags[].bag_status[].created_at of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].shipments[].bags[].bag_status[].updated_at of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Possible values operational,financial,logistics to property items[].shipments[].bags[].bag_status[].bag_state_mapper.state_type of schema BagStateMapper in response with status code 200 + - [Breaking] [Added] Possible values return,forward to property items[].shipments[].bags[].bag_status[].bag_state_mapper.journey_type of schema BagStateMapper in response with status code 200 + - [Breaking] [Added] Possible values store,delivery,billing to property items[].shipments[].bags[].delivery_address.address_category of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].shipments[].bags[].delivery_address.created_at of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].shipments[].bags[].delivery_address.updated_at of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].shipments[].bags[].brand.created_on of schema OrderBrandName in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].shipments[].bags[].brand.modified_on of schema OrderBrandName in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].shipments[].bags[].affiliate_bag_details.affiliate_meta.due_date of schema AffiliateMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].shipments[].bags[].item.last_updated_at of schema PlatformItem in response with status code 200 + - [Breaking] [Added] Possible values percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items to property items[].shipments[].bags[].applied_promos[].promotion_type of schema AppliedPromos in response with status code 200 + - [Added] property items[].shipments[].bags[].applied_promos[].applied_free_articles of schema AppliedPromos in response with status code 200 + - [Breaking] [Added] Possible values operational,financial,logistics to property items[].shipments[].bags[].current_status.state_type of schema CurrentStatus in response with status code 200 + - [Breaking] [Added] Possible values operational,financial,logistics to property items[].shipments[].bags[].current_status.bag_state_mapper.state_type of schema BagStateMapper in response with status code 200 + - [Breaking] [Added] Possible values return,forward to property items[].shipments[].bags[].current_status.bag_state_mapper.journey_type of schema BagStateMapper in response with status code 200 + - [Breaking] [Added] Possible values bag,shipments to property items[].shipments[].bags[].entity_type of schema OrderBags in response with status code 200 + - [Added] property items[].shipments[].bags[].charges of schema OrderBags in response with status code 200 + - [Added] property items[].shipments[].bags[].ordering_currency_prices of schema OrderBags in response with status code 200 + - [Breaking] [Added] Possible values return,forward to property items[].shipments[].journey_type of schema PlatformShipment in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].shipments[].status.created_at of schema ShipmentStatusData in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].shipments[].status.status_created_at of schema ShipmentStatusData in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].shipments[].shipment_created_at of schema PlatformShipment in response with status code 200 + - [Breaking] [Added] Possible values store,delivery,billing to property items[].shipments[].rto_address.address_category of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].shipments[].rto_address.created_at of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].shipments[].rto_address.updated_at of schema Address in response with status code 200 + - [Added] property items[].shipments[].charges of schema PlatformShipment in response with status code 200 + - [Added] property items[].shipments[].ordering_currency_prices of schema PlatformShipment in response with status code 200 + - [Added] property items[].shipments[].forward_end_shipment_id of schema PlatformShipment in response with status code 200 + - [Added] property items[].shipments[].logistics_meta of schema PlatformShipment in response with status code 200 + - [Added] property items[].prices of schema PlatformOrderItems in response with status code 200 + - [Added] property items[].ordering_currency_prices of schema PlatformOrderItems in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] properties items[].shipments[].delivery_details.phone, items[].shipments[].delivery_details.pincode, items[].shipments[].delivery_details.address, items[].shipments[].delivery_details.area, items[].shipments[].delivery_details.address_type, items[].shipments[].delivery_details.country, items[].shipments[].delivery_details.email, items[].shipments[].delivery_details.address1, items[].shipments[].delivery_details.landmark, items[].shipments[].delivery_details.state, items[].shipments[].delivery_details.name, items[].shipments[].delivery_details.city, items[].shipments[].delivery_details.state_code, items[].shipments[].delivery_details.country_iso_code, items[].shipments[].delivery_details.country_phone_code, items[].shipments[].delivery_details.display_address in response with status code 200 + - [Breaking] [Deleted] properties items[].shipments[].billing_details.phone, items[].shipments[].billing_details.pincode, items[].shipments[].billing_details.address, items[].shipments[].billing_details.area, items[].shipments[].billing_details.address_type, items[].shipments[].billing_details.country, items[].shipments[].billing_details.email, items[].shipments[].billing_details.address1, items[].shipments[].billing_details.landmark, items[].shipments[].billing_details.state, items[].shipments[].billing_details.name, items[].shipments[].billing_details.city, items[].shipments[].billing_details.state_code, items[].shipments[].billing_details.country_iso_code, items[].shipments[].billing_details.country_phone_code, items[].shipments[].billing_details.display_address in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property items[].shipments[].affiliate_details.shipment_meta.b2b_buyer_details.address of schema BuyerDetails in response with status code 200 + +- ##### What's Changed + - [Breaking] [Changed] items[].shipments[].delivery_details.address, items[].shipments[].delivery_details.city, items[].shipments[].delivery_details.country, items[].shipments[].delivery_details.name, items[].shipments[].delivery_details.phone, items[].shipments[].delivery_details.pincode, items[].shipments[].delivery_details.state made optional in response with status code 200 + - [Breaking] [Changed] items[].shipments[].billing_details.address, items[].shipments[].billing_details.city, items[].shipments[].billing_details.country, items[].shipments[].billing_details.name, items[].shipments[].billing_details.phone, items[].shipments[].billing_details.pincode, items[].shipments[].billing_details.state made optional in response with status code 200 + + +#### getApplicationShipments + +- ##### What's New + - [Breaking] [Added] Value format date-time to property items[].order_date of schema ShipmentItem in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].shipment_status.created_at of schema ShipmentStatus in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].shipment_status.status_created_at of schema ShipmentStatus in response with status code 200 + - [Breaking] [Added] Possible values store,delivery,billing to property items[].delivery_address.address_category of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].delivery_address.created_at of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].delivery_address.updated_at of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].status_created_at of schema ShipmentItem in response with status code 200 + - [Breaking] [Added] Possible values forward_standard to property items[].bags[].bag_type of schema BagUnit in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].bags[].bag_expiry_date of schema BagUnit in response with status code 200 + - [Breaking] [Added] Possible values operational,financial,logistics to property items[].bags[].bag_status[].state_type of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].bags[].bag_status[].created_at of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].bags[].bag_status[].updated_at of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Possible values operational,financial,logistics to property items[].bags[].bag_status[].bag_state_mapper.state_type of schema BagStateMapper in response with status code 200 + - [Breaking] [Added] Possible values return,forward to property items[].bags[].bag_status[].bag_state_mapper.journey_type of schema BagStateMapper in response with status code 200 + - [Breaking] [Added] Possible values operational,financial,logistics to property items[].bags[].current_operational_status.state_type of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].bags[].current_operational_status.created_at of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].bags[].current_operational_status.updated_at of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Possible values operational,financial,logistics to property items[].bags[].current_operational_status.bag_state_mapper.state_type of schema BagStateMapper in response with status code 200 + - [Breaking] [Added] Possible values return,forward to property items[].bags[].current_operational_status.bag_state_mapper.journey_type of schema BagStateMapper in response with status code 200 + - [Added] property items[].bags[].article.set of schema Article in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].bags[].brand.created_on of schema ShipmentListingBrand in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].bags[].affiliate_bag_details.affiliate_meta.due_date of schema AffiliateMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].bags[].item.last_updated_at of schema PlatformItem in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].bags[].dates.delivery_date of schema Dates in response with status code 200 + - [Breaking] [Added] Possible values operational,financial,logistics to property items[].bags[].current_status.state_type of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].bags[].current_status.created_at of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].bags[].current_status.updated_at of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Possible values operational,financial,logistics to property items[].bags[].current_status.bag_state_mapper.state_type of schema BagStateMapper in response with status code 200 + - [Breaking] [Added] Possible values return,forward to property items[].bags[].current_status.bag_state_mapper.journey_type of schema BagStateMapper in response with status code 200 + - [Breaking] [Added] Possible values bag to property items[].bags[].entity_type of schema BagUnit in response with status code 200 + - [Added] property items[].bags[].ordering_currency_prices of schema BagUnit in response with status code 200 + - [Breaking] [Added] Possible values high_street,mall,store,warehouse to property items[].fulfilling_store.location_type of schema ShipmentItemFulFillingStore in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].shipment_created_at of schema ShipmentItem in response with status code 200 + - [Added] property items[].billing_address of schema ShipmentItem in response with status code 200 + - [Added] property items[].affiliate_details of schema ShipmentItem in response with status code 200 + - [Added] property items[].is_active of schema ShipmentItem in response with status code 200 + - [Added] property items[].forward_end_shipment_id of schema ShipmentItem in response with status code 200 + - [Added] property items[].ordering_currency_prices of schema ShipmentItem in response with status code 200 + - [Added] property items[].logistics_meta of schema ShipmentItem in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property items[].shipment_status.status of schema ShipmentStatus in response with status code 200 + - [Breaking] [Deleted] property items[].bags[].article.a_set of schema Article in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property items[].total_bags of schema ShipmentItem in response with status code 200 + + +#### trackShipmentPlatform + +- ##### What's New + - [Breaking] [Added] Value format date-time to property results[].last_location_recieved_at of schema PlatformTrack in response with status code 200 + - [Breaking] [Added] Value format date-time to property results[].updated_at of schema PlatformTrack in response with status code 200 + - [Breaking] [Added] Possible values forward,reverse,RTO to property results[].shipment_type of schema PlatformTrack in response with status code 200 + + +#### getfilters + +- ##### What's Deprecated + - [Deleted] Possible values from multi_select,single_select from property advance_filter.returned[].type of schema FiltersInfo in response with status code 200 + - [Deleted] Possible values from multi_select,single_select from property advance_filter.action_centre[].type of schema FiltersInfo in response with status code 200 + - [Deleted] Possible values from multi_select,single_select from property advance_filter.unfulfilled[].type of schema FiltersInfo in response with status code 200 + - [Deleted] Possible values from multi_select,single_select from property advance_filter.filters[].type of schema FiltersInfo in response with status code 200 + - [Deleted] Possible values from multi_select,single_select from property advance_filter.processed[].type of schema FiltersInfo in response with status code 200 + - [Deleted] Possible values from multi_select,single_select from property global_filter[].type of schema FiltersInfo in response with status code 200 + + +#### getShipmentReasons + +- ##### What's New + - [Breaking] [Added] Possible values doorstep_qc,pre_qc to property reasons[].qc_type[] of schema Reason in response with status code 200 + - [Added] property reasons[].reasons 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] reasons[].display_name, reasons[].qc_type, reasons[].question_set, reasons[].meta, reasons[].is_active made required in response with status code 200 + + +#### getBagById + +- ##### What's New + - [Breaking] [Added] Possible values 200,400,500 to property status_code of schema BagDetailsPlatformResponseSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.affiliate_bag_details.affiliate_meta.due_date of schema AffiliateMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.affiliate_details.shipment_meta.estimated_delivery_date of schema ShipmentMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.affiliate_details.shipment_meta.due_date of schema ShipmentMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.affiliate_details.shipment_meta.store_invoice_updated_date of schema ShipmentMeta in response with status code 200 + - [Breaking] [Added] Possible values bag,shipments to property data.affiliate_details.shipment_meta.shipment_tags[].entity_type of schema ShipmentTags in response with status code 200 + - [Breaking] [Added] Possible values HomeDelivery,PickAtStore,Digital to property data.affiliate_details.shipment_meta.order_type of schema ShipmentMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.affiliate_details.affiliate_meta.due_date of schema AffiliateMeta in response with status code 200 + - [Breaking] [Added] Possible values fynd,external to property data.affiliate_details.pdf_links.invoice_type of schema PDFLinks in response with status code 200 + - [Breaking] [Added] Possible values fynd,external,parent_child to property data.affiliate_details.pdf_links.label_type of schema PDFLinks in response with status code 200 + - [Added] property data.affiliate_details.config.app of schema AffiliateConfig in response with status code 200 + - [Added] property data.affiliate_details.config.inventory of schema AffiliateConfig in response with status code 200 + - [Added] property data.article.set of schema Article in response with status code 200 + - [Breaking] [Added] Possible values operational,financial,logistics to property data.bag_status[].state_type of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.bag_status[].created_at of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.bag_status[].updated_at of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Possible values operational,financial,logistics to property data.bag_status[].bag_state_mapper.state_type of schema BagStateMapper in response with status code 200 + - [Breaking] [Added] Possible values return,forward to property data.bag_status[].bag_state_mapper.journey_type of schema BagStateMapper in response with status code 200 + - [Breaking] [Added] Possible values operational,financial,logistics to property data.bag_status_history[].state_type of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.bag_status_history[].created_at of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.bag_status_history[].updated_at of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Possible values operational,financial,logistics to property data.bag_status_history[].bag_state_mapper.state_type of schema BagStateMapper in response with status code 200 + - [Breaking] [Added] Possible values return,forward to property data.bag_status_history[].bag_state_mapper.journey_type of schema BagStateMapper in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.brand.start_date of schema Brand in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.brand.created_on of schema Brand in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.brand.modified_on of schema Brand in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.company.created_on of schema Company in response with status code 200 + - [Breaking] [Added] Possible values mbo,distributor,manufacturer-owner,franchise to property data.company.company_type of schema Company in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.company.modified_on of schema Company in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.company.agreement_start_date of schema Company in response with status code 200 + - [Breaking] [Added] Possible values operational,financial,logistics to property data.current_operational_status.state_type of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.current_operational_status.created_at of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.current_operational_status.updated_at of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Possible values operational,financial,logistics to property data.current_operational_status.bag_state_mapper.state_type of schema BagStateMapper in response with status code 200 + - [Breaking] [Added] Possible values return,forward to property data.current_operational_status.bag_state_mapper.journey_type of schema BagStateMapper in response with status code 200 + - [Breaking] [Added] Possible values operational,financial,logistics to property data.current_status.state_type of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.current_status.created_at of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.current_status.updated_at of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Possible values operational,financial,logistics to property data.current_status.bag_state_mapper.state_type of schema BagStateMapper in response with status code 200 + - [Breaking] [Added] Possible values return,forward to property data.current_status.bag_state_mapper.journey_type of schema BagStateMapper in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.dates.delivery_date of schema Dates in response with status code 200 + - [Breaking] [Added] Possible values store,delivery,billing to property data.delivery_address.address_category of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.delivery_address.created_at of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.delivery_address.updated_at of schema Address in response with status code 200 + - [Breaking] [Added] Possible values bag to property data.entity_type of schema BagDetails in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.fulfilling_store.created_at of schema Store in response with status code 200 + - [Breaking] [Added] Possible values high_street,mall,store,warehouse to property data.fulfilling_store.location_type of schema Store in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.fulfilling_store.updated_at of schema Store in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.fulfilling_store.store_address_json.created_at of schema StoreAddress in response with status code 200 + - [Breaking] [Added] Possible values store,delivery,billing to property data.fulfilling_store.store_address_json.address_category of schema StoreAddress in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.fulfilling_store.store_address_json.updated_at of schema StoreAddress in response with status code 200 + - [Added] property data.fulfilling_store.meta.documents.gst.type of schema Document in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.invoice.updated_date of schema InvoiceDetails in response with status code 200 + - [Breaking] [Added] Possible values return,forward to property data.journey_type of schema BagDetails in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.order.created_at of schema OrderDetails in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.order.affiliate_order_date of schema OrderDetails in response with status code 200 + - [Added] property data.order.charges of schema OrderDetails in response with status code 200 + - [Breaking] [Added] Possible values HomeDelivery,PickAtStore,Digital to property data.order_type of schema BagDetails in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.ordering_store.created_at of schema Store in response with status code 200 + - [Breaking] [Added] Possible values high_street,mall,store,warehouse to property data.ordering_store.location_type of schema Store in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.ordering_store.updated_at of schema Store in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.ordering_store.store_address_json.created_at of schema StoreAddress in response with status code 200 + - [Breaking] [Added] Possible values store,delivery,billing to property data.ordering_store.store_address_json.address_category of schema StoreAddress in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.ordering_store.store_address_json.updated_at of schema StoreAddress in response with status code 200 + - [Added] property data.ordering_store.meta.documents.gst.type of schema Document in response with status code 200 + - [Breaking] [Added] Possible values partner,self,fynd to property data.payment_type of schema BagDetails in response with status code 200 + - [Breaking] [Added] Possible values store,delivery,billing to property data.rto_address.address_category of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.rto_address.created_at of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.rto_address.updated_at of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.shipment.processing_dates.dispatch_after_date of schema ProcessingDates in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.shipment.processing_dates.dispatch_by_date of schema ProcessingDates in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.shipment.processing_dates.confirm_by_date of schema ProcessingDates in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.shipment.processing_dates.pack_by_date of schema ProcessingDates in response with status code 200 + - [Added] Possible values Digital to property data.shipment.order_type of schema Shipment in response with status code 200 + - [Breaking] [Added] Possible values store,delivery,billing to property data.shipment.billing_address_json.address_category of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.shipment.billing_address_json.created_at of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.shipment.billing_address_json.updated_at of schema Address in response with status code 200 + - [Breaking] [Added] Possible values store,delivery,billing to property data.shipment.delivery_address_json.address_category of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.shipment.delivery_address_json.created_at of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.shipment.delivery_address_json.updated_at of schema Address in response with status code 200 + - [Added] properties data.shipment.tags[].slug, data.shipment.tags[].display_text in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.shipment.created_at of schema Shipment in response with status code 200 + - [Breaking] [Added] Possible values store,delivery,billing to property data.shipment.hand_over_contact_json.address_category of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.shipment.hand_over_contact_json.created_at of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.shipment.hand_over_contact_json.updated_at of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.shipment.status.created_at of schema ShipmentStatusData in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.shipment.status.status_created_at of schema ShipmentStatusData in response with status code 200 + - [Added] property data.shipment.system_messages of schema Shipment in response with status code 200 + - [Added] property data.shipment.process_after_config of schema Shipment in response with status code 200 + - [Breaking] [Added] Value format int32 to property data.shipment_details.dp_id of schema ShipmentDetails in response with status code 200 + - [Added] property data.shipment_details.box_type of schema ShipmentDetails in response with status code 200 + - [Added] property data.shipment_details.shipments of schema ShipmentDetails in response with status code 200 + - [Added] property data.shipment_details.fulfillment_id of schema ShipmentDetails in response with status code 200 + - [Added] property data.shipment_details.articles of schema ShipmentDetails in response with status code 200 + - [Added] property data.shipment_details.meta of schema ShipmentDetails in response with status code 200 + - [Added] property data.shipment_details.affiliate_shipment_id of schema ShipmentDetails in response with status code 200 + - [Added] data.shipment_details.affiliate_shipment_id, data.shipment_details.articles, data.shipment_details.fulfillment_id, data.shipment_details.shipments made required in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.shipment_status.created_at of schema ShipmentStatusData in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.shipment_status.status_created_at of schema ShipmentStatusData in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.shipment_status_history[].created_at of schema ShipmentStatusData in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.shipment_status_history[].status_created_at of schema ShipmentStatusData in response with status code 200 + - [Breaking] [Added] Possible values shipment to property data.transaction_type of schema BagDetails in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.updated_at of schema BagDetails in response with status code 200 + - [Added] property data.charges of schema BagDetails in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property data.affiliate_details.shipment_meta.b2b_buyer_details.address of schema BuyerDetails in response with status code 200 + - [Breaking] [Deleted] property data.article.a_set of schema Article in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property data.fulfilling_store.address1 of schema Store in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property data.fulfilling_store.store_address_json.phone of schema StoreAddress in response with status code 200 + - [Breaking] [Deleted] property data.fulfilling_store.meta.documents.gst.ds_type of schema Document in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property data.ordering_store.address1 of schema Store in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property data.ordering_store.store_address_json.phone of schema StoreAddress in response with status code 200 + - [Breaking] [Deleted] property data.ordering_store.meta.documents.gst.ds_type of schema Document in response with status code 200 + - [Breaking] [Deleted] properties data.shipment.line_items[].charges[].amount.currency, data.shipment.line_items[].charges[].amount.value in response with status code 200 + + +#### getBags + +- ##### What's New + - [Breaking] [Added] Possible values 200,400,500 to property status_code of schema GetBagsPlatformResponseSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.items[].affiliate_bag_details.affiliate_meta.due_date of schema AffiliateMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.items[].affiliate_details.shipment_meta.estimated_delivery_date of schema ShipmentMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.items[].affiliate_details.shipment_meta.due_date of schema ShipmentMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.items[].affiliate_details.shipment_meta.store_invoice_updated_date of schema ShipmentMeta in response with status code 200 + - [Breaking] [Added] Possible values bag,shipments to property data.items[].affiliate_details.shipment_meta.shipment_tags[].entity_type of schema ShipmentTags in response with status code 200 + - [Breaking] [Added] Possible values HomeDelivery,PickAtStore,Digital to property data.items[].affiliate_details.shipment_meta.order_type of schema ShipmentMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.items[].affiliate_details.affiliate_meta.due_date of schema AffiliateMeta in response with status code 200 + - [Breaking] [Added] Possible values fynd,external to property data.items[].affiliate_details.pdf_links.invoice_type of schema PDFLinks in response with status code 200 + - [Breaking] [Added] Possible values fynd,external,parent_child to property data.items[].affiliate_details.pdf_links.label_type of schema PDFLinks in response with status code 200 + - [Added] property data.items[].affiliate_details.config.app of schema AffiliateConfig in response with status code 200 + - [Added] property data.items[].affiliate_details.config.inventory of schema AffiliateConfig in response with status code 200 + - [Added] property data.items[].article.set of schema Article in response with status code 200 + - [Breaking] [Added] Possible values operational,financial,logistics to property data.items[].bag_status[].state_type of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.items[].bag_status[].created_at of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.items[].bag_status[].updated_at of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Possible values operational,financial,logistics to property data.items[].bag_status[].bag_state_mapper.state_type of schema BagStateMapper in response with status code 200 + - [Breaking] [Added] Possible values return,forward to property data.items[].bag_status[].bag_state_mapper.journey_type of schema BagStateMapper in response with status code 200 + - [Breaking] [Added] Possible values operational,financial,logistics to property data.items[].bag_status_history[].state_type of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.items[].bag_status_history[].created_at of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.items[].bag_status_history[].updated_at of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Possible values operational,financial,logistics to property data.items[].bag_status_history[].bag_state_mapper.state_type of schema BagStateMapper in response with status code 200 + - [Breaking] [Added] Possible values return,forward to property data.items[].bag_status_history[].bag_state_mapper.journey_type of schema BagStateMapper in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.items[].brand.start_date of schema Brand in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.items[].brand.created_on of schema Brand in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.items[].brand.modified_on of schema Brand in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.items[].company.created_on of schema Company in response with status code 200 + - [Breaking] [Added] Possible values mbo,distributor,manufacturer-owner,franchise to property data.items[].company.company_type of schema Company in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.items[].company.modified_on of schema Company in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.items[].company.agreement_start_date of schema Company in response with status code 200 + - [Breaking] [Added] Possible values operational,financial,logistics to property data.items[].current_operational_status.state_type of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.items[].current_operational_status.created_at of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.items[].current_operational_status.updated_at of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Possible values operational,financial,logistics to property data.items[].current_operational_status.bag_state_mapper.state_type of schema BagStateMapper in response with status code 200 + - [Breaking] [Added] Possible values return,forward to property data.items[].current_operational_status.bag_state_mapper.journey_type of schema BagStateMapper in response with status code 200 + - [Breaking] [Added] Possible values operational,financial,logistics to property data.items[].current_status.state_type of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.items[].current_status.created_at of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.items[].current_status.updated_at of schema BagStatusHistory in response with status code 200 + - [Breaking] [Added] Possible values operational,financial,logistics to property data.items[].current_status.bag_state_mapper.state_type of schema BagStateMapper in response with status code 200 + - [Breaking] [Added] Possible values return,forward to property data.items[].current_status.bag_state_mapper.journey_type of schema BagStateMapper in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.items[].dates.delivery_date of schema Dates in response with status code 200 + - [Breaking] [Added] Possible values store,delivery,billing to property data.items[].delivery_address.address_category of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.items[].delivery_address.created_at of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.items[].delivery_address.updated_at of schema Address in response with status code 200 + - [Breaking] [Added] Possible values bag to property data.items[].entity_type of schema BagDetails in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.items[].fulfilling_store.created_at of schema Store in response with status code 200 + - [Breaking] [Added] Possible values high_street,mall,store,warehouse to property data.items[].fulfilling_store.location_type of schema Store in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.items[].fulfilling_store.updated_at of schema Store in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.items[].fulfilling_store.store_address_json.created_at of schema StoreAddress in response with status code 200 + - [Breaking] [Added] Possible values store,delivery,billing to property data.items[].fulfilling_store.store_address_json.address_category of schema StoreAddress in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.items[].fulfilling_store.store_address_json.updated_at of schema StoreAddress in response with status code 200 + - [Added] property data.items[].fulfilling_store.meta.documents.gst.type of schema Document in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.items[].invoice.updated_date of schema InvoiceDetails in response with status code 200 + - [Breaking] [Added] Possible values return,forward to property data.items[].journey_type of schema BagDetails in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.items[].order.created_at of schema OrderDetails in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.items[].order.affiliate_order_date of schema OrderDetails in response with status code 200 + - [Added] property data.items[].order.charges of schema OrderDetails in response with status code 200 + - [Breaking] [Added] Possible values HomeDelivery,PickAtStore,Digital to property data.items[].order_type of schema BagDetails in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.items[].ordering_store.created_at of schema Store in response with status code 200 + - [Breaking] [Added] Possible values high_street,mall,store,warehouse to property data.items[].ordering_store.location_type of schema Store in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.items[].ordering_store.updated_at of schema Store in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.items[].ordering_store.store_address_json.created_at of schema StoreAddress in response with status code 200 + - [Breaking] [Added] Possible values store,delivery,billing to property data.items[].ordering_store.store_address_json.address_category of schema StoreAddress in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.items[].ordering_store.store_address_json.updated_at of schema StoreAddress in response with status code 200 + - [Added] property data.items[].ordering_store.meta.documents.gst.type of schema Document in response with status code 200 + - [Breaking] [Added] Possible values partner,self,fynd to property data.items[].payment_type of schema BagDetails in response with status code 200 + - [Breaking] [Added] Possible values store,delivery,billing to property data.items[].rto_address.address_category of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.items[].rto_address.created_at of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.items[].rto_address.updated_at of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.items[].shipment.processing_dates.dispatch_after_date of schema ProcessingDates in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.items[].shipment.processing_dates.dispatch_by_date of schema ProcessingDates in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.items[].shipment.processing_dates.confirm_by_date of schema ProcessingDates in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.items[].shipment.processing_dates.pack_by_date of schema ProcessingDates in response with status code 200 + - [Added] Possible values Digital to property data.items[].shipment.order_type of schema Shipment in response with status code 200 + - [Breaking] [Added] Possible values store,delivery,billing to property data.items[].shipment.billing_address_json.address_category of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.items[].shipment.billing_address_json.created_at of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.items[].shipment.billing_address_json.updated_at of schema Address in response with status code 200 + - [Breaking] [Added] Possible values store,delivery,billing to property data.items[].shipment.delivery_address_json.address_category of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.items[].shipment.delivery_address_json.created_at of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.items[].shipment.delivery_address_json.updated_at of schema Address in response with status code 200 + - [Added] properties data.items[].shipment.tags[].slug, data.items[].shipment.tags[].display_text in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.items[].shipment.created_at of schema Shipment in response with status code 200 + - [Breaking] [Added] Possible values store,delivery,billing to property data.items[].shipment.hand_over_contact_json.address_category of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.items[].shipment.hand_over_contact_json.created_at of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.items[].shipment.hand_over_contact_json.updated_at of schema Address in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.items[].shipment.status.created_at of schema ShipmentStatusData in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.items[].shipment.status.status_created_at of schema ShipmentStatusData in response with status code 200 + - [Added] property data.items[].shipment.system_messages of schema Shipment in response with status code 200 + - [Added] property data.items[].shipment.process_after_config of schema Shipment in response with status code 200 + - [Breaking] [Added] Value format int32 to property data.items[].shipment_details.dp_id of schema ShipmentDetails in response with status code 200 + - [Added] property data.items[].shipment_details.box_type of schema ShipmentDetails in response with status code 200 + - [Added] property data.items[].shipment_details.shipments of schema ShipmentDetails in response with status code 200 + - [Added] property data.items[].shipment_details.fulfillment_id of schema ShipmentDetails in response with status code 200 + - [Added] property data.items[].shipment_details.articles of schema ShipmentDetails in response with status code 200 + - [Added] property data.items[].shipment_details.meta of schema ShipmentDetails in response with status code 200 + - [Added] property data.items[].shipment_details.affiliate_shipment_id of schema ShipmentDetails in response with status code 200 + - [Added] data.items[].shipment_details.affiliate_shipment_id, data.items[].shipment_details.articles, data.items[].shipment_details.fulfillment_id, data.items[].shipment_details.shipments made required in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.items[].shipment_status.created_at of schema ShipmentStatusData in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.items[].shipment_status.status_created_at of schema ShipmentStatusData in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.items[].shipment_status_history[].created_at of schema ShipmentStatusData in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.items[].shipment_status_history[].status_created_at of schema ShipmentStatusData in response with status code 200 + - [Breaking] [Added] Possible values shipment to property data.items[].transaction_type of schema BagDetails in response with status code 200 + - [Breaking] [Added] Value format date-time to property data.items[].updated_at of schema BagDetails in response with status code 200 + - [Added] property data.items[].charges of schema BagDetails in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property data.items[].affiliate_details.shipment_meta.b2b_buyer_details.address of schema BuyerDetails in response with status code 200 + - [Breaking] [Deleted] property data.items[].article.a_set of schema Article in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property data.items[].fulfilling_store.address1 of schema Store in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property data.items[].fulfilling_store.store_address_json.phone of schema StoreAddress in response with status code 200 + - [Breaking] [Deleted] property data.items[].fulfilling_store.meta.documents.gst.ds_type of schema Document in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property data.items[].ordering_store.address1 of schema Store in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property data.items[].ordering_store.store_address_json.phone of schema StoreAddress in response with status code 200 + - [Breaking] [Deleted] property data.items[].ordering_store.meta.documents.gst.ds_type of schema Document in response with status code 200 + - [Breaking] [Deleted] properties data.items[].shipment.line_items[].charges[].amount.currency, data.items[].shipment.line_items[].charges[].amount.value in response with status code 200 + + +#### getChannelConfig + +- ##### What's New + - [Added] method getChannelConfig + + + +#### createChannelConfig + +- ##### What's New + - [Added] method createChannelConfig + + + +#### fetchCreditBalanceDetail + +- ##### What's New + - [Added] method fetchCreditBalanceDetail + + + +#### processManifests + +- ##### What's New + - [Added] method processManifests + + + +#### getRules + +- ##### What's New + - [Added] method getRules + + + +#### updatePaymentInfo + +- ##### What's New + - [Added] method updatePaymentInfo + + + +### Partner + + + +#### addProxyPath + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema ExtensionProxyPathCreation in response with status code 200 + - [Breaking] [Added] Value format date-time to property modified_at of schema ExtensionProxyPathCreation in response with status code 200 + + +### Payment + + + +#### getBrandPaymentGatewayConfig + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### saveBrandPaymentGatewayConfig + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getPaymentModeRoutes + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getAllPayouts + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### savePayout + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### updatePayout + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### activateAndDectivatePayout + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### deletePayout + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getSubscriptionPaymentMethod + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### deleteSubscriptionPaymentMethod + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getSubscriptionConfig + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### saveSubscriptionSetupIntent + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getBankAccountDetailsOpenAPI + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### addRefundBankAccountUsingOTP + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### verifyIfscCode + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getUserOrderBeneficiaries + +- ##### What's New + - [Breaking] [Added] Value format date-time to property beneficiaries[].created_on of schema OrderBeneficiaryDetails in response with status code 200 + - [Breaking] [Added] Value format date-time to property beneficiaries[].modified_on of schema OrderBeneficiaryDetails in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getUserBeneficiaries + +- ##### What's New + - [Breaking] [Added] Value format date-time to property beneficiaries[].created_on of schema OrderBeneficiaryDetails in response with status code 200 + - [Breaking] [Added] Value format date-time to property beneficiaries[].modified_on of schema OrderBeneficiaryDetails in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### confirmPayment + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getUserCODlimitRoutes + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### setUserCODlimitRoutes + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### edcAggregatorsAndModelList + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### edcDeviceStats + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### updateEdcDevice + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getEdcDevice + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### addEdcDevice + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### edcDeviceList + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getPosPaymentModeRoutes + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### initialisePayment + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property amount of schema PaymentInitializationRequest in request body + - [Breaking] [Deleted] Response with status 500 + + +#### checkAndUpdatePaymentStatus + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property amount of schema PaymentStatusUpdateRequest in request body + - [Breaking] [Deleted] Response with status 500 + + +#### resendOrCancelPayment + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### paymentStatusBulk + +- ##### What's New + - [Breaking] [Added] Value format date-time to property data[].payment_object_list[].modified_on of schema PaymentObjectList in response with status code 200 + - [Breaking] [Added] Value format date-time to property data[].payment_object_list[].created_on of schema PaymentObjectList in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### oauthGetUrl + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### revokeOauthToken + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### repaymentDetails + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property extension_order_id of schema RepaymentDetailsSerialiserPayAll in request body + - [Breaking] [Deleted] Response with status 500 + + +#### merchantOnBoarding + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### verifyCustomerForPayment + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getPaymentLink + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### createPaymentLink + +- ##### What's New + - [Added] property success_redirection_url of schema CreatePaymentLinkCreation in request body + - [Added] property failure_redirection_url of schema CreatePaymentLinkCreation in request body + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### pollingPaymentLink + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### resendPaymentLink + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### cancelPaymentLink + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getPaymentModeControlRoutes + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### setMerchantModeControlRoutes + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getPaymentModeCustomConfig + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### setPaymentModeCustomConfig + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getPaymentCodeOption + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getPaymentSession + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property gid of schema PaymentSessionSerializer in response with status code 200 + - [Breaking] [Deleted] Response with status 500 + + +#### updatePaymentSession + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### updateRefundSession + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getMerchantPaymentOption + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### patchMerchantPaymentOption + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getMerchantAggregatorPaymentModeDetails + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### patchMerchantAggregatorPaymentModeDetails + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getPGConfigAggregators + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getMerchantRefundPriority + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### createMerchantRefundPriority + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### updateMerchantRefundPriority + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### createPaymentOrder + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getMerchantAggregatorAppVersion + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### patchMerchantPaymentOptionVersion + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +### Rewards + + + +#### showGiveaways + +- ##### What's New + - [Breaking] [Added] Value format date-time to property items[].created_at of schema Giveaway in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].updated_at of schema Giveaway in response with status code 200 + + +#### saveGiveAway + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema Giveaway in request body + - [Breaking] [Added] Value format date-time to property updated_at of schema Giveaway in request body + - [Breaking] [Added] Value format date-time to property created_at of schema Giveaway in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema Giveaway in response with status code 200 + + +#### getGiveawayById + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema Giveaway in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema Giveaway in response with status code 200 + + +#### updateGiveAway + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema Giveaway in request body + - [Breaking] [Added] Value format date-time to property updated_at of schema Giveaway in request body + - [Breaking] [Added] Value format date-time to property created_at of schema Giveaway in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema Giveaway in response with status code 200 + + +#### showOffers + +- ##### What's New + - [Breaking] [Added] Value format date-time to property [].created_at of schema Offer in response with status code 200 + - [Breaking] [Added] Value format date-time to property [].updated_at of schema Offer in response with status code 200 + + +#### getOfferByName + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema Offer in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema Offer in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### updateOfferByName + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema Offer in request body + - [Breaking] [Added] Value format date-time to property updated_at of schema Offer in request body + - [Breaking] [Added] Value format date-time to property created_at of schema Offer in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema Offer in response with status code 200 + + +#### updateUserStatus + +- ##### What's New + - [Breaking] [Added] Value format date-time to property updated_at of schema AppUser in request body + - [Breaking] [Added] Value format date-time to property updated_at of schema AppUser in response with status code 200 + + +#### getUserDetails + +- ##### What's New + - [Breaking] [Added] Value format date-time to property user.created_at of schema RewardUser in response with status code 200 + - [Breaking] [Added] Value format date-time to property user.updated_at of schema RewardUser in response with status code 200 + + +#### getUserPointsHistory + +- ##### What's New + - [Breaking] [Added] Value format date-time to property items[].created_at of schema PointsHistory in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].updated_at of schema PointsHistory in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +#### getRewardsConfiguration + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 500 + + +### Share + + + +#### createShortLink + +- ##### What's New + - [Breaking] [Added] Value format date-time to property expire_at of schema ShortLinkReq in request body + - [Added] property meta of schema ShortLinkReq in request body + - [Added] property url.alias of schema UrlInfo in response with status code 200 + - [Breaking] [Added] Value format date-time to property expire_at of schema ShortLinkRes in response with status code 200 + - [Breaking] [Added] Value format date-time to property created_at of schema ShortLinkRes in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema ShortLinkRes in response with status code 200 + +- ##### What's Changed + - [Changed] redirects.expiry, redirects.url made optional in request body + - [Changed] redirects.expiry, redirects.url made optional in response with status code 200 + + +#### getShortLinks + +- ##### What's New + - [Added] property items[].url.alias of schema UrlInfo in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].expire_at of schema ShortLinkRes in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].created_at of schema ShortLinkRes in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].updated_at of schema ShortLinkRes in response with status code 200 + +- ##### What's Changed + - [Changed] items[].redirects.expiry, items[].redirects.url made optional in response with status code 200 + + +#### getShortLinkByHash + +- ##### What's New + - [Added] property url.alias of schema UrlInfo in response with status code 200 + - [Breaking] [Added] Value format date-time to property expire_at of schema ShortLinkRes in response with status code 200 + - [Breaking] [Added] Value format date-time to property created_at of schema ShortLinkRes in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema ShortLinkRes in response with status code 200 + +- ##### What's Changed + - [Changed] redirects.expiry, redirects.url made optional in response with status code 200 + + +#### updateShortLinkById + +- ##### What's New + - [Breaking] [Added] Value format date-time to property expire_at of schema ShortLinkReq in request body + - [Added] property meta of schema ShortLinkReq in request body + - [Added] property url.alias of schema UrlInfo in response with status code 200 + - [Breaking] [Added] Value format date-time to property expire_at of schema ShortLinkRes in response with status code 200 + - [Breaking] [Added] Value format date-time to property created_at of schema ShortLinkRes in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema ShortLinkRes in response with status code 200 + +- ##### What's Changed + - [Changed] redirects.expiry, redirects.url made optional in request body + - [Changed] redirects.expiry, redirects.url made optional in response with status code 200 + + +### Theme + + + +#### getAllPages + +- ##### What's New + - [Added] property pages[].sections[].__source of schema AvailablePageSchemaSections in response with status code 200 + - [Breaking] [Added] Value format date-time to property pages[].created_at of schema AvailablePageSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property pages[].updated_at of schema AvailablePageSchema in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property pages[].sections[].source of schema AvailablePageSchemaSections in response with status code 200 + + +#### createPage + +- ##### What's New + - [Added] property sections[].__source of schema AvailablePageSchemaSections in request body + - [Breaking] [Added] Value format date-time to property created_at of schema AvailablePageSchema in request body + - [Breaking] [Added] Value format date-time to property updated_at of schema AvailablePageSchema in request body + - [Added] property sections[].__source of schema AvailablePageSchemaSections in response with status code 200 + - [Breaking] [Added] Value format date-time to property created_at of schema AvailablePageSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema AvailablePageSchema in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property sections[].source of schema AvailablePageSchemaSections in request body + - [Breaking] [Deleted] property sections[].source of schema AvailablePageSchemaSections in response with status code 200 + + +#### updateMultiplePages + +- ##### What's New + - [Added] property pages[].sections[].__source of schema AvailablePageSchemaSections in request body + - [Breaking] [Added] Value format date-time to property pages[].created_at of schema AvailablePageSchema in request body + - [Breaking] [Added] Value format date-time to property pages[].updated_at of schema AvailablePageSchema in request body + - [Added] property pages[].sections[].__source of schema AvailablePageSchemaSections in response with status code 200 + - [Breaking] [Added] Value format date-time to property pages[].created_at of schema AvailablePageSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property pages[].updated_at of schema AvailablePageSchema in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property pages[].sections[].source of schema AvailablePageSchemaSections in request body + - [Breaking] [Deleted] property pages[].sections[].source of schema AvailablePageSchemaSections in response with status code 200 + + +#### getPage + +- ##### What's New + - [Added] property sections[].__source of schema AvailablePageSchemaSections in response with status code 200 + - [Breaking] [Added] Value format date-time to property created_at of schema AvailablePageSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema AvailablePageSchema in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property sections[].source of schema AvailablePageSchemaSections in response with status code 200 + + +#### updatePage + +- ##### What's New + - [Breaking] [Added] Required path parameter socketId (type: string) + + - [Added] property sections[].__source of schema AvailablePageSchemaSections in request body + - [Breaking] [Added] Value format date-time to property created_at of schema AvailablePageSchema in request body + - [Breaking] [Added] Value format date-time to property updated_at of schema AvailablePageSchema in request body + - [Added] property sections[].__source of schema AvailablePageSchemaSections in response with status code 200 + - [Breaking] [Added] Value format date-time to property created_at of schema AvailablePageSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema AvailablePageSchema in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property sections[].source of schema AvailablePageSchemaSections in request body + - [Breaking] [Deleted] property sections[].source of schema AvailablePageSchemaSections in response with status code 200 + +- ##### What's Changed + - [Changed] Path From /service/platform/theme/v1.0/company/{company_id}/application/{application_id}/{theme_id}/{page_value} To /service/platform/theme/v1.0/company/{company_id}/application/{application_id}/{theme_id}/{page_value}/{socket_id} + + +#### deletePage + +- ##### What's New + - [Added] property sections[].__source of schema AvailablePageSchemaSections in response with status code 200 + - [Breaking] [Added] Value format date-time to property created_at of schema AvailablePageSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema AvailablePageSchema in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property sections[].source of schema AvailablePageSchemaSections in response with status code 200 + + +#### getCompanyLevelThemes + +- ##### What's New + - [Breaking] [Added] Value format date-time to property [].marketplace_theme_id.created_at of schema MarketplaceThemeId in response with status code 200 + - [Breaking] [Added] Value format date-time to property [].marketplace_theme_id.updated_at of schema MarketplaceThemeId in response with status code 200 + + +#### getCompanyLevelPrivateThemes + +- ##### What's New + - [Breaking] [Added] Possible values vue2,react to property [].theme_type of schema CompanyPrivateTheme in response with status code 200 + + +#### addMarketplaceThemeToCompany + +- ##### What's New + - [Breaking] [Added] Value format date-time to property marketplace_theme_id.created_at of schema MarketplaceThemeId in response with status code 200 + - [Breaking] [Added] Value format date-time to property marketplace_theme_id.updated_at of schema MarketplaceThemeId in response with status code 200 + + +#### deleteCompanyTheme + +- ##### What's New + - [Breaking] [Added] Value format date-time to property marketplace_theme_id.created_at of schema MarketplaceThemeId in response with status code 200 + - [Breaking] [Added] Value format date-time to property marketplace_theme_id.updated_at of schema MarketplaceThemeId in response with status code 200 + + +#### getApplicationThemes + +- ##### What's New + - [Breaking] [Added] Value format date-time to property [].created_at of schema ThemesSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property [].updated_at of schema ThemesSchema in response with status code 200 + + +#### getThemeById + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema ThemesSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema ThemesSchema in response with status code 200 + + +#### updateTheme + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema ThemesSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema ThemesSchema in response with status code 200 + + +#### deleteTheme + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema ThemesSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema ThemesSchema in response with status code 200 + + +#### addThemeToApplication + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema ThemesSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema ThemesSchema in response with status code 200 + + +#### updateThemeName + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema ThemesSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema ThemesSchema in response with status code 200 + + +#### applyTheme + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema ThemesSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema ThemesSchema in response with status code 200 + + +#### duplicateTheme + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema ThemesSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema ThemesSchema in response with status code 200 + + +#### getAppliedTheme + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema ThemesSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema ThemesSchema in response with status code 200 + + +#### getThemeForPreview + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema ThemesSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema ThemesSchema in response with status code 200 + + +#### upgradeTheme + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema ThemesSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_at of schema ThemesSchema in response with status code 200 + + +### User + + + +#### getCustomers + +- ##### What's New + - [Breaking] [Added] Possible values user,programmatic to property items[].account_type of schema UserSearchSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].created_at of schema UserSearchSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].updated_at of schema UserSearchSchema in response with status code 200 + + +#### searchUsers + +- ##### What's New + - [Breaking] [Added] Possible values user,programmatic to property users[].account_type of schema UserSearchSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property users[].created_at of schema UserSearchSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property users[].updated_at of schema UserSearchSchema in response with status code 200 + + +#### createUser + +- ##### What's New + - [Breaking] [Added] Possible values user,programmatic to property user.account_type of schema UserSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property user.created_at of schema UserSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property user.updated_at of schema UserSchema in response with status code 200 + + +#### updateUser + +- ##### What's New + - [Breaking] [Added] Possible values user,programmatic to property user.account_type of schema UserSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property user.created_at of schema UserSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property user.updated_at of schema UserSchema in response with status code 200 + + +#### getPlatformConfig + +- ##### What's New + - [Breaking] [Added] Value format date-time to property updated_at of schema PlatformSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property created_at of schema PlatformSchema in response with status code 200 + + +#### updatePlatformConfig + +- ##### What's New + - [Breaking] [Added] Value format date-time to property updated_at of schema PlatformSchema in request body + - [Breaking] [Added] Value format date-time to property created_at of schema PlatformSchema in request body + - [Breaking] [Added] Value format date-time to property updated_at of schema PlatformSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property created_at of schema PlatformSchema in response with status code 200 + + +#### createUserGroup + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema UserGroupResponseSchema in response with status code 201 + - [Breaking] [Added] Value format date-time to property modified_at of schema UserGroupResponseSchema in response with status code 201 + + +#### getUserGroups + +- ##### What's New + - [Breaking] [Added] Value format date-time to property items[].created_at of schema UserGroupResponseSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].modified_at of schema UserGroupResponseSchema in response with status code 200 + + +#### updateUserGroup + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema UserGroupResponseSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property modified_at of schema UserGroupResponseSchema in response with status code 200 + + +#### getUserGroupById + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema UserGroupResponseSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property modified_at of schema UserGroupResponseSchema in response with status code 200 + + +#### updateUserGroupPartially + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema UserGroupResponseSchema in response with status code 200 + - [Breaking] [Added] Value format date-time to property modified_at of schema UserGroupResponseSchema in response with status code 200 + + +#### getUserAttributeDefinitions + +- ##### What's New + - [Breaking] [Added] Value format date-time to property items[].created_at of schema UserAttributeDefinition in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].modified_at of schema UserAttributeDefinition in response with status code 200 + + +#### updateUserAttributeDefinition + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema UserAttributeDefinition in response with status code 200 + - [Breaking] [Added] Value format date-time to property modified_at of schema UserAttributeDefinition in response with status code 200 + + +#### getUserAttributeDefinitionById + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema UserAttributeDefinition in response with status code 200 + - [Breaking] [Added] Value format date-time to property modified_at of schema UserAttributeDefinition in response with status code 200 + + +#### updateUserAttribute + +- ##### What's New + - [Added] property customer_overridden of schema CreateUserAttribute in request body + - [Added] property customer_overridden of schema UserAttribute in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property customer_overriden of schema CreateUserAttributeRequest in request body + - [Breaking] [Deleted] property customer_overriden of schema UserAttributeResponse in response with status code 200 + + +#### getUserAttribute + +- ##### What's New + - [Added] property customer_overridden of schema UserAttribute in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property customer_overriden of schema UserAttributeResponse in response with status code 200 + + +#### getUserAttributesForUser + +- ##### What's New + - [Added] property items[].customer_overridden of schema UserAttribute in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property items[].customer_overriden of schema UserAttributeResponse in response with status code 200 + + +#### getUserAttributeById + +- ##### What's New + - [Added] property customer_overridden of schema UserAttribute in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property customer_overriden of schema UserAttributeResponse in response with status code 200 + + +### Webhook + + + +#### downloadDeliveryReport + +- ##### What's Deprecated + - [Breaking] [Deleted] method downloadDeliveryReport + + + +#### pingWebhook + +- ##### What's Deprecated + - [Breaking] [Deleted] method pingWebhook + + + +#### getReportFilters + +- ##### What's Deprecated + - [Breaking] [Deleted] method getReportFilters + + + +#### getHistoricalReports + +- ##### What's Deprecated + - [Breaking] [Deleted] method getHistoricalReports + + + +#### cancelJobByName + +- ##### What's Deprecated + - [Breaking] [Deleted] method cancelJobByName + + + +#### getDeliveryReports + +- ##### What's Deprecated + - [Breaking] [Deleted] method getDeliveryReports + + + +#### fetchAllEventConfigurations + +- ##### What's New + - [Breaking] [Added] Value format date-time to property event_configs[].subscriber_event_mapping.created_on of schema SubscriberEventMapping in response with status code 200 + - [Added] property event_configs[].subscriber_event_mapping.broadcaster_config of schema SubscriberEventMapping in response with status code 200 + - [Breaking] [Added] Value format date-time to property event_configs[].created_on of schema EventConfig in response with status code 200 + - [Breaking] [Added] Value format date-time to property event_configs[].updated_on of schema EventConfig in response with status code 200 + - [Added] property event_configs[].type of schema EventConfig in response with status code 200 + - [Added] property event_configs[].modified_by of schema EventConfig in response with status code 200 + - [Added] Security in Request + +- ##### What's Deprecated + - [Breaking] [Deleted] property event_configs[].subscriber_event_mapping.topic of schema SubscriberEventMapping in response with status code 200 + + +#### registerSubscriberToEventV2 + +- ##### What's New + - [Breaking] [Added] Possible values kafka,sqs,rest,event_bridge,pub_sub,temporal to property provider of schema SubscriberConfigPostRequestV2 in request body + - [Breaking] [Added] Type object to property association of schema Association in request body + - [Breaking] [Added] Possible values hmac to property auth_meta.type of schema AuthMeta in request body + - [Breaking] [Added] Type object to property auth_meta of schema AuthMeta in request body + - [Added] property events[].queue of schema Events in request body + - [Added] property events[].event_bridge_name of schema Events in request body + - [Added] property events[].workflow_name of schema Events in request body + - [Added] property events[].detail_type of schema Events in request body + - [Added] property type of schema SubscriberConfigPostRequestV2 in request body + - [Breaking] [Added] Possible values kafka,sqs,rest,event_bridge,pub_sub,temporal to property provider of schema SubscriberConfigResult in response with status code 200 + - [Breaking] [Added] Type object to property association of schema AssociationResp in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_on of schema SubscriberConfigResult in response with status code 200 + - [Breaking] [Added] Value format date-time to property created_on of schema SubscriberConfigResult in response with status code 200 + - [Breaking] [Added] Possible values hmac to property auth_meta.type of schema AuthMeta in response with status code 200 + - [Breaking] [Added] Type object to property auth_meta of schema AuthMeta in response with status code 200 + - [Breaking] [Added] Type object to property of schema SubscriberConfigResult in response with status code 200 + - [Added] Security in Request + + +#### updateSubscriberV2 + +- ##### What's New + - [Breaking] [Added] Possible values kafka,sqs,rest,event_bridge,pub_sub,temporal to property provider of schema SubscriberConfigUpdateRequestV2 in request body + - [Breaking] [Added] Type object to property association of schema Association in request body + - [Breaking] [Added] Possible values hmac to property auth_meta.type of schema AuthMeta in request body + - [Breaking] [Added] Type object to property auth_meta of schema AuthMeta in request body + - [Added] property events[].queue of schema Events in request body + - [Added] property events[].event_bridge_name of schema Events in request body + - [Added] property events[].workflow_name of schema Events in request body + - [Added] property events[].detail_type of schema Events in request body + - [Added] property type of schema SubscriberConfigUpdateRequestV2 in request body + - [Breaking] [Added] Possible values kafka,sqs,rest,event_bridge,pub_sub,temporal to property provider of schema SubscriberConfigResult in response with status code 200 + - [Breaking] [Added] Type object to property association of schema AssociationResp in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_on of schema SubscriberConfigResult in response with status code 200 + - [Breaking] [Added] Value format date-time to property created_on of schema SubscriberConfigResult in response with status code 200 + - [Breaking] [Added] Possible values hmac to property auth_meta.type of schema AuthMeta in response with status code 200 + - [Breaking] [Added] Type object to property auth_meta of schema AuthMeta in response with status code 200 + - [Breaking] [Added] Type object to property of schema SubscriberConfigResult in response with status code 200 + + +#### registerSubscriberToEvent + +- ##### What's New + - [Breaking] [Added] Type object to property association of schema Association in request body + - [Breaking] [Added] Possible values hmac to property auth_meta.type of schema AuthMeta in request body + - [Breaking] [Added] Type object to property auth_meta of schema AuthMeta in request body + - [Added] property type of schema SubscriberConfigPost in request body + - [Breaking] [Added] Possible values kafka,sqs,rest,event_bridge,pub_sub,temporal to property provider of schema SubscriberConfigResult in response with status code 200 + - [Breaking] [Added] Type object to property association of schema AssociationResp in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_on of schema SubscriberConfigResult in response with status code 200 + - [Breaking] [Added] Value format date-time to property created_on of schema SubscriberConfigResult in response with status code 200 + - [Breaking] [Added] Possible values hmac to property auth_meta.type of schema AuthMeta in response with status code 200 + - [Breaking] [Added] Type object to property auth_meta of schema AuthMeta in response with status code 200 + - [Breaking] [Added] Type object to property of schema SubscriberConfigResult in response with status code 200 + + +#### getSubscribersByCompany + +- ##### What's New + - [Breaking] [Added] Possible values kafka,sqs,rest,event_bridge,pub_sub,temporal to property items[].provider of schema SubscriberDetails in response with status code 200 + - [Breaking] [Added] Type object to property items[].association of schema AssociationResp in response with status code 200 + - [Added] Possible nullable value true to property items[].custom_headers of schema SubscriberDetails in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].updated_on of schema SubscriberDetails in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].created_on of schema SubscriberDetails in response with status code 200 + - [Breaking] [Added] Possible values hmac to property items[].auth_meta.type of schema AuthMeta in response with status code 200 + - [Breaking] [Added] Type object to property items[].auth_meta of schema AuthMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].event_configs[].subscriber_event_mapping.created_on of schema SubscriberEventMapping in response with status code 200 + - [Added] property items[].event_configs[].subscriber_event_mapping.broadcaster_config of schema SubscriberEventMapping in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].event_configs[].created_on of schema EventConfig in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].event_configs[].updated_on of schema EventConfig in response with status code 200 + - [Added] property items[].event_configs[].type of schema EventConfig in response with status code 200 + - [Added] property items[].event_configs[].modified_by of schema EventConfig in response with status code 200 + - [Breaking] [Added] Type object to property items[] of schema SubscriberDetails in response with status code 200 + - [Breaking] [Added] Type object to property of schema SubscriberConfigList in response with status code 200 + - [Added] Security in Request + +- ##### What's Deprecated + - [Breaking] [Deleted] property items[].event_configs[].subscriber_event_mapping.topic of schema SubscriberEventMapping in response with status code 200 + + +#### updateSubscriberConfig + +- ##### What's New + - [Breaking] [Added] Type object to property association of schema Association in request body + - [Breaking] [Added] Possible values hmac to property auth_meta.type of schema AuthMeta in request body + - [Breaking] [Added] Type object to property auth_meta of schema AuthMeta in request body + - [Added] property type of schema SubscriberConfigUpdate in request body + - [Breaking] [Added] Possible values kafka,sqs,rest,event_bridge,pub_sub,temporal to property provider of schema SubscriberConfigResult in response with status code 200 + - [Breaking] [Added] Type object to property association of schema AssociationResp in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_on of schema SubscriberConfigResult in response with status code 200 + - [Breaking] [Added] Value format date-time to property created_on of schema SubscriberConfigResult in response with status code 200 + - [Breaking] [Added] Possible values hmac to property auth_meta.type of schema AuthMeta in response with status code 200 + - [Breaking] [Added] Type object to property auth_meta of schema AuthMeta in response with status code 200 + - [Breaking] [Added] Type object to property of schema SubscriberConfigResult in response with status code 200 + + +#### getSubscriberById + +- ##### What's New + - [Breaking] [Added] Possible values kafka,sqs,rest,event_bridge,pub_sub,temporal to property provider of schema SubscriberDetails in response with status code 200 + - [Breaking] [Added] Type object to property association of schema AssociationResp in response with status code 200 + - [Added] Possible nullable value true to property custom_headers of schema SubscriberDetails in response with status code 200 + - [Breaking] [Added] Value format date-time to property updated_on of schema SubscriberDetails in response with status code 200 + - [Breaking] [Added] Value format date-time to property created_on of schema SubscriberDetails in response with status code 200 + - [Breaking] [Added] Possible values hmac to property auth_meta.type of schema AuthMeta in response with status code 200 + - [Breaking] [Added] Type object to property auth_meta of schema AuthMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property event_configs[].subscriber_event_mapping.created_on of schema SubscriberEventMapping in response with status code 200 + - [Added] property event_configs[].subscriber_event_mapping.broadcaster_config of schema SubscriberEventMapping in response with status code 200 + - [Breaking] [Added] Value format date-time to property event_configs[].created_on of schema EventConfig in response with status code 200 + - [Breaking] [Added] Value format date-time to property event_configs[].updated_on of schema EventConfig in response with status code 200 + - [Added] property event_configs[].type of schema EventConfig in response with status code 200 + - [Added] property event_configs[].modified_by of schema EventConfig in response with status code 200 + - [Breaking] [Added] Type object to property of schema SubscriberDetails in response with status code 200 + - [Added] Security in Request + +- ##### What's Deprecated + - [Breaking] [Deleted] property event_configs[].subscriber_event_mapping.topic of schema SubscriberEventMapping in response with status code 200 + + +#### getSubscribersByExtensionId + +- ##### What's New + - [Breaking] [Added] Possible values kafka,sqs,rest,event_bridge,pub_sub,temporal to property items[].provider of schema SubscriberDetails in response with status code 200 + - [Breaking] [Added] Type object to property items[].association of schema AssociationResp in response with status code 200 + - [Added] Possible nullable value true to property items[].custom_headers of schema SubscriberDetails in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].updated_on of schema SubscriberDetails in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].created_on of schema SubscriberDetails in response with status code 200 + - [Breaking] [Added] Possible values hmac to property items[].auth_meta.type of schema AuthMeta in response with status code 200 + - [Breaking] [Added] Type object to property items[].auth_meta of schema AuthMeta in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].event_configs[].subscriber_event_mapping.created_on of schema SubscriberEventMapping in response with status code 200 + - [Added] property items[].event_configs[].subscriber_event_mapping.broadcaster_config of schema SubscriberEventMapping in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].event_configs[].created_on of schema EventConfig in response with status code 200 + - [Breaking] [Added] Value format date-time to property items[].event_configs[].updated_on of schema EventConfig in response with status code 200 + - [Added] property items[].event_configs[].type of schema EventConfig in response with status code 200 + - [Added] property items[].event_configs[].modified_by of schema EventConfig in response with status code 200 + - [Breaking] [Added] Type object to property items[] of schema SubscriberDetails in response with status code 200 + - [Breaking] [Added] Type object to property of schema SubscriberConfigList in response with status code 200 + - [Added] Security in Request + +- ##### What's Deprecated + - [Breaking] [Deleted] property items[].event_configs[].subscriber_event_mapping.topic of schema SubscriberEventMapping in response with status code 200 + + +#### upsertSubscriberEvent + +- ##### What's New + - [Added] method upsertSubscriberEvent + + + +## Public Client + + + +### Configuration + + + +#### searchApplication + +- ##### What's New + - [Breaking] [Added] Value format date-time to property application.created_at of schema Application in response with status code 200 + - [Breaking] [Added] Value format date-time to property application.updated_at of schema Application in response with status code 200 + + +### Content + + + +#### getCredentialsByEntity + +- ##### What's New + - [Added] properties items[].configuration.token, items[].configuration.host in response with status code 200 + - [Breaking] [Added] Possible values partner,platform to property items[].entity_type of schema CredentialSchema in response with status code 200 + - [Added] property items[]._id of schema CredentialSchema in response with status code 200 + - [Added] property items[].updated_at of schema CredentialSchema in response with status code 200 + - [Added] property items[].created_at of schema CredentialSchema in response with status code 200 + - [Added] property items[].__v of schema CredentialSchema in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 4XX + + +#### getBasicDetails + +- ##### What's New + - [Added] method getBasicDetails + + + +#### getMenuContent + +- ##### What's New + - [Added] method getMenuContent + + + +#### getMenuContentByType + +- ##### What's New + - [Added] method getMenuContentByType + + + +#### getAnalyticsTags + +- ##### What's New + - [Added] method getAnalyticsTags + + + +#### getCustomPage + +- ##### What's New + - [Added] method getCustomPage + + + +#### getFooterContent + +- ##### What's New + - [Added] method getFooterContent + + + +#### getHomePageContent + +- ##### What's New + - [Added] method getHomePageContent + + + +#### getNavbar + +- ##### What's New + - [Added] method getNavbar + + + +#### getPricingBanner + +- ##### What's New + - [Added] method getPricingBanner + + + +#### getAllTags + +- ##### What's New + - [Added] method getAllTags + + + +### Partner + + + +#### getPanelExtensionDetails + +- ##### What's New + - [Breaking] [Added] Value format date-time to property created_at of schema ExtensionUsingSlug in response with status code 200 + - [Breaking] [Added] Value format date-time to property modified_at of schema ExtensionUsingSlug in response with status code 200 + - [Breaking] [Added] Possible values free,one_time,recurring to property plan_type of schema ExtensionUsingSlug in response with status code 200 + - [Breaking] [Added] Value format int64 to property plans[].recurring.recurring_time of schema Recurring in response with status code 200 + + +### Webhook + + + +#### fetchAllWebhookEvents + +- ##### What's New + - [Breaking] [Added] Value format date-time to property event_configs[].created_on of schema EventConfig in response with status code 200 + - [Breaking] [Added] Value format date-time to property event_configs[].updated_on of schema EventConfig in response with status code 200 + + +#### queryWebhookEventDetails + +- ##### What's New + - [Breaking] [Added] Value format date-time to property event_configs[].created_on of schema EventConfig in response with status code 200 + - [Breaking] [Added] Value format date-time to property event_configs[].updated_on of schema EventConfig in response with status code 200 + + +# CHANGE LOG (1.4.13) - 1.9.4 + +## Application Client + + + +### Cart + + + +#### getCart + +- ##### What's New + - [Added] query parameter orderType (type: string) + + - [Added] property custom_cart_meta of schema CartDetailResponse in response with status code 200 + + +#### addItems + +- ##### What's New + - [Added] query parameter orderType (type: string) + + - [Added] property cart.custom_cart_meta of schema CartDetailResponse in response with status code 200 + + +#### updateCart + +- ##### What's New + - [Added] query parameter orderType (type: string) + + - [Added] property cart.custom_cart_meta of schema CartDetailResponse in response with status code 200 + + +#### getCoupons + +- ##### What's New + - [Added] property available_coupon_list[].offer_text of schema Coupon in response with status code 200 + - [Added] property available_coupon_list[].is_bank_offer of schema Coupon in response with status code 200 + + +#### applyCoupon + +- ##### What's New + - [Added] property custom_cart_meta of schema CartDetailResponse in response with status code 201 + + +#### removeCoupon + +- ##### What's New + - [Added] property custom_cart_meta of schema CartDetailResponse in response with status code 200 + + +#### applyRewardPoints + +- ##### What's New + - [Added] property custom_cart_meta of schema CartDetailResponse in response with status code 200 + + +#### selectAddress + +- ##### What's New + - [Added] property custom_cart_meta of schema CartDetailResponse in response with status code 201 + + +#### selectPaymentMode + +- ##### What's New + - [Added] property custom_cart_meta of schema CartDetailResponse in response with status code 200 + + +#### getShipments + +- ##### What's New + - [Added] property custom_cart_meta of schema CartShipmentsResponse in response with status code 200 + + +#### checkoutCart + +- ##### What's Deprecated + - [Breaking] [Deleted] method checkoutCart + + + +#### updateCartMeta + +- ##### What's New + - [Added] property custom_cart_meta of schema CartMetaRequest in request body + + +#### getCartSharedItems + +- ##### What's New + - [Added] property cart.custom_cart_meta of schema SharedCart in response with status code 200 + - [Added] property cart.custom_cart_meta of schema SharedCart in response with status code 404 + + +#### updateCartWithSharedItems + +- ##### What's New + - [Added] property cart.custom_cart_meta of schema SharedCart in response with status code 200 + + +#### getPromotionOffers + +- ##### What's New + - [Added] properties available_promotions[].free_gift_items[].item_price_details.marked, available_promotions[].free_gift_items[].item_price_details.effective, available_promotions[].free_gift_items[].item_price_details.currency in response with status code 200 + - [Added] property available_promotions[].promotion_type of schema PromotionOffer in response with status code 200 + - [Added] property available_promotions[].promotion_name of schema PromotionOffer in response with status code 200 + + +#### getLadderOffers + +- ##### What's New + - [Added] properties available_offers[].free_gift_items[].item_price_details.marked, available_offers[].free_gift_items[].item_price_details.effective, available_offers[].free_gift_items[].item_price_details.currency in response with status code 200 + + +#### checkoutCartV2 + +- ##### What's New + - [Added] property cart.custom_cart_meta of schema CheckCart in response with status code 200 + + +#### getPromotionPaymentOffers + +- ##### What's New + - [Added] method getPromotionPaymentOffers + + + +### Catalog + + + +#### getProductSizesBySlug + +- ##### What's Changed + - [Breaking] [Changed] discount_meta.timer made optional in response with status code 200 + + +#### getProductVariantsBySlug + +- ##### What's New + - [Added] property variants[].group_id of schema ProductVariantResponse in response with status code 200 + + +#### getProductPriceBySlug + +- ##### What's Changed + - [Breaking] [Changed] discount_meta.timer made optional in response with status code 200 + + +#### getProductSellersBySlug + +- ##### What's Changed + - [Breaking] [Changed] items[].discount_meta.timer made optional in response with status code 200 + + +### Configuration + + + +#### getIntegrationTokens + +- ##### What's New + - [Added] property tokens.google_map.enabled of schema GoogleMap in response with status code 200 + + +### Content + + + +#### getBlog + +- ##### What's New + - [Added] Possible values locate-us to property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + - [Added] property summary of schema BlogSchema in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] property _schedule of schema BlogSchema in response with status code 200 + + +#### getBlogs + +- ##### What's New + - [Added] query parameter tags (type: string) + + - [Added] query parameter search (type: string) + + - [Added] Possible values locate-us to property items[].seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property items[].seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + - [Added] property items[].summary of schema BlogSchema in response with status code 200 + - [Added] property filters of schema BlogGetResponse in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property items[].seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property items[].seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] property items[]._schedule of schema BlogSchema in response with status code 200 + + +#### getLandingPage + +- ##### What's New + - [Added] Possible values locate-us to property action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property action.popup.type of schema PageType in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property action.popup.type of schema PageType in response with status code 200 + + +#### getNavigations + +- ##### What's New + - [Added] Possible values locate-us to property items[].navigation[].action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property items[].navigation[].action.popup.type of schema PageType in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property items[].navigation[].action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property items[].navigation[].action.popup.type of schema PageType in response with status code 200 + + +#### getSlideshows + +- ##### What's New + - [Added] Possible values locate-us to property items[].media[].action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property items[].media[].action.popup.type of schema PageType in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property items[].media[].action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property items[].media[].action.popup.type of schema PageType in response with status code 200 + + +#### getSlideshow + +- ##### What's New + - [Added] Possible values locate-us to property media[].action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property media[].action.popup.type of schema PageType in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property media[].action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property media[].action.popup.type of schema PageType in response with status code 200 + + +#### getSupportInformation + +- ##### What's New + - [Added] property contact.phone.phone[].phone_type of schema PhoneProperties in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property config_type of schema Support in response with status code 200 + + +#### getPage + +- ##### What's New + - [Added] Possible values locate-us to property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + + +#### getPages + +- ##### What's New + - [Added] Possible values locate-us to property items[].seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property items[].seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property items[].seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property items[].seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + + +### Lead + + + +#### submitCustomForm + +- ##### What's New + - [Added] property response of schema SubmitCustomFormResponse in response with status code 200 + + +#### getParticipantsInsideVideoRoom + +- ##### What's Deprecated + - [Breaking] [Deleted] method getParticipantsInsideVideoRoom + + + +#### getTokenForVideoRoom + +- ##### What's Deprecated + - [Breaking] [Deleted] method getTokenForVideoRoom + + + +### Logistic + + + +#### getLocations + +- ##### What's New + - [Added] property message of schema ErrorResponse in response with status code 400 + + +#### getCountries + +- ##### What's Changed + - [Changed] Path From /service/application/logistics/v1.0/countries To /service/application/logistics/v2.0/countries + + +#### getCountry + +- ##### What's New + - [Added] property message of schema ErrorResponse in response with status code 400 + + +#### getLocalities + +- ##### What's New + - [Added] property message of schema ErrorResponse in response with status code 400 + + +#### getLocality + +- ##### What's New + - [Added] property message of schema ErrorResponse in response with status code 400 + + +#### validateAddress + +- ##### What's New + - [Added] property message of schema ErrorResponse in response with status code 400 + + +### Order + + + +#### getOrders + +- ##### What's New + - [Added] property items[].shipments[].gstin_code of schema Shipments in response with status code 200 + - [Added] property items[].meta of schema OrderSchema in response with status code 200 + + +#### getOrderById + +- ##### What's New + - [Added] property order.shipments[].gstin_code of schema Shipments in response with status code 200 + - [Added] property order.meta of schema OrderSchema in response with status code 200 + + +#### getShipmentById + +- ##### What's New + - [Added] property shipment.gstin_code of schema Shipments in response with status code 200 + + +### Payment + + + +#### verifyCustomerForPayment + +- ##### What's Changed + - [Breaking] [Changed] data made optional in response with status code 200 + + +#### resendOrCancelPayment + +- ##### What's New + - [Added] property data.is_payment_done of schema LinkStatus in response with status code 200 + +- ##### What's Changed + - [Breaking] [Changed] Type from boolean to string of property data.status of schema LinkStatus in response with status code 200 + + +### Theme + + + +#### getAllPages + +- ##### What's New + - [Added] property pages[].sections[].source of schema AvailablePageSchemaSections in response with status code 200 + - [Added] Possible values locate-us to property pages[].seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property pages[].seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property pages[].seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property pages[].seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + + +#### getPage + +- ##### What's New + - [Added] query parameter sectionPreviewHash (type: string) + + - [Added] property sections[].source of schema AvailablePageSchemaSections in response with status code 200 + - [Added] Possible values locate-us to property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + + +#### getAppliedTheme + +- ##### What's New + - [Breaking] [Added] Type object to property available_sections[].props[] of schema SectionItem in response with status code 200 + - [Breaking] [Added] Type object to property available_sections[].blocks[] of schema SectionItem in response with status code 200 + + +#### getThemeForPreview + +- ##### What's New + - [Breaking] [Added] Type object to property available_sections[].props[] of schema SectionItem in response with status code 200 + - [Breaking] [Added] Type object to property available_sections[].blocks[] of schema SectionItem in response with status code 200 + + +## Partner Client + + + +### Lead + + + +#### getTickets + +- ##### What's New + - [Added] property items[].sla of schema Ticket in response with status code 200 + + +#### createTicket + +- ##### What's New + - [Added] property sla of schema Ticket in response with status code 200 + + +#### getTicket + +- ##### What's New + - [Added] property sla of schema Ticket in response with status code 200 + + +#### editTicket + +- ##### What's New + - [Added] property sla of schema Ticket in response with status code 200 + + +#### getTokenForVideoRoom + +- ##### What's Deprecated + - [Breaking] [Deleted] method getTokenForVideoRoom + + + +#### getVideoParticipants + +- ##### What's Deprecated + - [Breaking] [Deleted] method getVideoParticipants + + + +### Logistics + + + +#### createCourierPartnerAccount + +- ##### What's Changed + - [Changed] account_id made optional in request body + + +#### getCourierPartnerAccounts + +- ##### What's New + - [Added] Possible nullable value true to property items[].scheme_rules.weight.lt of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property items[].scheme_rules.weight.gt of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property items[].scheme_rules.weight.lte of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property items[].scheme_rules.weight.gte of schema ArithmeticOperations in response with status code 200 + + +#### updateCourierPartnerAccount + +- ##### What's New + - [Added] Possible nullable value true to property scheme_rules.weight.lt of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property scheme_rules.weight.gt of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property scheme_rules.weight.lte of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property scheme_rules.weight.gte of schema ArithmeticOperations in response with status code 200 + + +#### getCourierPartnerAccount + +- ##### What's New + - [Added] Possible nullable value true to property scheme_rules.weight.lt of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property scheme_rules.weight.gt of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property scheme_rules.weight.lte of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property scheme_rules.weight.gte of schema ArithmeticOperations in response with status code 200 + + +#### createCourierPartnerScheme + +- ##### What's New + - [Added] Possible nullable value true to property weight.lt of schema ArithmeticOperations in request body + - [Added] Possible nullable value true to property weight.gt of schema ArithmeticOperations in request body + - [Added] Possible nullable value true to property weight.lte of schema ArithmeticOperations in request body + - [Added] Possible nullable value true to property weight.gte of schema ArithmeticOperations in request body + - [Added] Possible nullable value true to property weight.lt of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property weight.gt of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property weight.lte of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property weight.gte of schema ArithmeticOperations in response with status code 200 + +- ##### What's Changed + - [Changed] scheme_id made optional in request body + + +#### updateCourierPartnerScheme + +- ##### What's New + - [Added] Possible nullable value true to property weight.lt of schema ArithmeticOperations in request body + - [Added] Possible nullable value true to property weight.gt of schema ArithmeticOperations in request body + - [Added] Possible nullable value true to property weight.lte of schema ArithmeticOperations in request body + - [Added] Possible nullable value true to property weight.gte of schema ArithmeticOperations in request body + - [Added] Possible nullable value true to property weight.lt of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property weight.gt of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property weight.lte of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property weight.gte of schema ArithmeticOperations in response with status code 200 + + +#### getCountries + +- ##### What's Changed + - [Changed] Path From /service/partner/logistics/v1.0/organization/{organization_id}/countries To /service/partner/logistics/v2.0/organization/{organization_id}/countries + + +### Theme + + + +#### getAllPages + +- ##### What's New + - [Added] Possible values locate-us to property pages[].seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property pages[].seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property pages[].seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property pages[].seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + + +#### createPage + +- ##### What's New + - [Added] Possible values locate-us to property seo.breadcrumb[].action.page.type of schema PageType in request body + - [Added] Possible values locate-us to property seo.breadcrumb[].action.popup.type of schema PageType in request body + - [Added] Possible values locate-us to property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.page.type of schema PageType in request body + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.popup.type of schema PageType in request body + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + + +#### updateMultiplePages + +- ##### What's New + - [Added] Possible values locate-us to property pages[].seo.breadcrumb[].action.page.type of schema PageType in request body + - [Added] Possible values locate-us to property pages[].seo.breadcrumb[].action.popup.type of schema PageType in request body + - [Added] Possible values locate-us to property pages[].seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property pages[].seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property pages[].seo.breadcrumb[].action.page.type of schema PageType in request body + - [Breaking] [Deleted] Possible nullable value from true from property pages[].seo.breadcrumb[].action.popup.type of schema PageType in request body + - [Breaking] [Deleted] Possible nullable value from true from property pages[].seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property pages[].seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + + +#### getPage + +- ##### What's New + - [Added] Possible values locate-us to property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + + +#### updatePage + +- ##### What's New + - [Added] Possible values locate-us to property seo.breadcrumb[].action.page.type of schema PageType in request body + - [Added] Possible values locate-us to property seo.breadcrumb[].action.popup.type of schema PageType in request body + - [Added] Possible values locate-us to property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.page.type of schema PageType in request body + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.popup.type of schema PageType in request body + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + + +#### deletePage + +- ##### What's New + - [Added] Possible values locate-us to property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + + +#### createExtensionSectionDraft + +- ##### What's New + - [Added] method createExtensionSectionDraft + + + +#### publishExtensionSections + +- ##### What's New + - [Added] method publishExtensionSections + + + +#### applyExtensionPreview + +- ##### What's New + - [Added] method applyExtensionPreview + + + +#### removeExtensionPreview + +- ##### What's New + - [Added] method removeExtensionPreview + + + +## Platform Client + + + +### Billing + + + +#### checkCouponValidity + +- ##### What's Deprecated + - [Breaking] [Deleted] method checkCouponValidity + + + +#### createSubscriptionCharge + +- ##### What's New + - [Added] Possible values day to property subscription.line_items[].recurring.interval of schema ChargeRecurring in response with status code 200 + - [Added] Possible values week to property subscription.line_items[].recurring.interval of schema ChargeRecurring in response with status code 200 + - [Added] Possible values quarter to property subscription.line_items[].recurring.interval of schema ChargeRecurring in response with status code 200 + - [Added] Possible values half_year to property subscription.line_items[].recurring.interval of schema ChargeRecurring in response with status code 200 + - [Added] property subscription.line_items[].recurring.interval_time of schema ChargeRecurring in response with status code 200 + - [Added] Possible nullable value true to property subscription.line_items[].activated_on of schema EntityChargeDetails in response with status code 200 + - [Breaking] [Added] Value format date-time to property subscription.line_items[].activated_on of schema EntityChargeDetails in response with status code 200 + - [Added] Possible nullable value true to property subscription.line_items[].cancelled_on of schema EntityChargeDetails in response with status code 200 + - [Breaking] [Added] Value format date-time to property subscription.line_items[].cancelled_on of schema EntityChargeDetails in response with status code 200 + - [Added] Possible nullable value true to property subscription.line_items[].billing_date of schema EntityChargeDetails in response with status code 200 + - [Breaking] [Added] Value format date-time to property subscription.line_items[].billing_date of schema EntityChargeDetails in response with status code 200 + - [Breaking] [Added] Value format date-time to property subscription.line_items[].current_period.start_date of schema SubscriptionTrialPeriod in response with status code 200 + - [Breaking] [Added] Value format date-time to property subscription.line_items[].current_period.end_date of schema SubscriptionTrialPeriod in response with status code 200 + - [Added] Possible values success to property subscription.line_items[].status of schema EntityChargeDetails in response with status code 200 + - [Added] Possible values failed to property subscription.line_items[].status of schema EntityChargeDetails in response with status code 200 + - [Added] property subscription.line_items[].subscription_id of schema EntityChargeDetails in response with status code 200 + - [Added] property subscription.line_items[].subscriber_id of schema EntityChargeDetails in response with status code 200 + - [Added] property subscription.line_items[].entity_type of schema EntityChargeDetails in response with status code 200 + - [Added] property subscription.line_items[].entity_id of schema EntityChargeDetails in response with status code 200 + - [Added] property subscription.line_items[].charge_type of schema EntityChargeDetails in response with status code 200 + - [Added] property subscription.line_items[].modified_at of schema EntityChargeDetails in response with status code 200 + - [Added] property subscription.line_items[].created_at of schema EntityChargeDetails in response with status code 200 + - [Added] property subscription.line_items[].company_id of schema EntityChargeDetails in response with status code 200 + - [Added] property subscription.line_items[].meta of schema EntityChargeDetails in response with status code 200 + - [Added] property subscription.line_items[].__v of schema EntityChargeDetails in response with status code 200 + - [Added] property subscription.product_suit_id of schema EntitySubscription in response with status code 200 + - [Added] property subscription.entity_id of schema EntitySubscription in response with status code 200 + - [Added] property subscription.entity_type of schema EntitySubscription in response with status code 200 + - [Added] property subscription.is_test of schema EntitySubscription in response with status code 200 + - [Added] property subscription.created_at of schema EntitySubscription in response with status code 200 + - [Added] property subscription.modified_at of schema EntitySubscription in response with status code 200 + - [Added] property subscription.subscriber_id of schema EntitySubscription in response with status code 200 + - [Added] property subscription.return_url of schema EntitySubscription in response with status code 200 + +- ##### What's Deprecated + - [Deleted] Possible values from pending,active,cancelled,frozen,declined from property subscription.status of schema EntitySubscription in response with status code 200 + - [Breaking] [Deleted] property subscription.company_id of schema EntitySubscription in response with status code 200 + - [Breaking] [Deleted] property subscription.activated_on of schema EntitySubscription in response with status code 200 + - [Breaking] [Deleted] property subscription.cancelled_on of schema EntitySubscription in response with status code 200 + - [Deleted] Value format from int32 from property subscription.trial_days of schema EntitySubscription in response with status code 200 + - [Breaking] [Deleted] property subscription.trial_period of schema EntitySubscription in response with status code 200 + - [Breaking] [Deleted] property subscription.metadata of schema EntitySubscription in response with status code 200 + - [Breaking] [Deleted] property subscription.line_items[].metadata of schema SubscriptionCharge in response with status code 200 + +- ##### What's Changed + - [Changed] line_items[].price.amount, line_items[].price.currency_code made optional in request body + - [Breaking] [Changed] Type from integer to number of property subscription.trial_days of schema EntitySubscription in response with status code 200 + - [Changed] subscription.line_items[].price.amount, subscription.line_items[].price.currency_code made optional in response with status code 200 + - [Breaking] [Changed] subscription.line_items[].recurring.interval made optional in response with status code 200 + + +#### getSubscriptionCharge + +- ##### What's New + - [Breaking] [Added] Value format date-time to property activated_on of schema SubscriptionChargeRes in response with status code 200 + - [Breaking] [Added] Value format date-time to property cancelled_on of schema SubscriptionChargeRes in response with status code 200 + - [Added] property product_suit_id of schema SubscriptionChargeRes in response with status code 200 + - [Added] property entity_id of schema SubscriptionChargeRes in response with status code 200 + - [Added] property entity_type of schema SubscriptionChargeRes in response with status code 200 + - [Added] property is_test of schema SubscriptionChargeRes in response with status code 200 + - [Added] property created_at of schema SubscriptionChargeRes in response with status code 200 + - [Added] property modified_at of schema SubscriptionChargeRes in response with status code 200 + - [Added] property code of schema ResourceNotFound in response with status code 404 + - [Added] property success of schema ResourceNotFound in response with status code 404 + +- ##### What's Deprecated + - [Deleted] Possible values from pending,active,cancelled,frozen,declined from property status of schema EntitySubscription in response with status code 200 + - [Deleted] Value format from int32 from property company_id of schema EntitySubscription in response with status code 200 + - [Deleted] Value format from int32 from property trial_days of schema EntitySubscription in response with status code 200 + - [Breaking] [Deleted] property trial_period of schema EntitySubscription in response with status code 200 + - [Breaking] [Deleted] property metadata of schema EntitySubscription in response with status code 200 + - [Breaking] [Deleted] properties line_items[]._id, line_items[].name, line_items[].term, line_items[].pricing_type, line_items[].price, line_items[].recurring, line_items[].capped_amount, line_items[].activated_on, line_items[].cancelled_on, line_items[].billing_date, line_items[].current_period, line_items[].status, line_items[].is_test, line_items[].metadata in response with status code 200 + +- ##### What's Changed + - [Breaking] [Changed] Type from integer to string of property company_id of schema EntitySubscription in response with status code 200 + - [Breaking] [Changed] Type from integer to number of property trial_days of schema EntitySubscription in response with status code 200 + + +#### cancelSubscriptionCharge + +- ##### What's New + - [Breaking] [Added] Value format date-time to property activated_on of schema SubscriptionChargeRes in response with status code 200 + - [Breaking] [Added] Value format date-time to property cancelled_on of schema SubscriptionChargeRes in response with status code 200 + - [Added] property product_suit_id of schema SubscriptionChargeRes in response with status code 200 + - [Added] property entity_id of schema SubscriptionChargeRes in response with status code 200 + - [Added] property entity_type of schema SubscriptionChargeRes in response with status code 200 + - [Added] property is_test of schema SubscriptionChargeRes in response with status code 200 + - [Added] property created_at of schema SubscriptionChargeRes in response with status code 200 + - [Added] property modified_at of schema SubscriptionChargeRes in response with status code 200 + - [Added] property code of schema ResourceNotFound in response with status code 404 + - [Added] property success of schema ResourceNotFound in response with status code 404 + +- ##### What's Deprecated + - [Deleted] Possible values from pending,active,cancelled,frozen,declined from property status of schema EntitySubscription in response with status code 200 + - [Deleted] Value format from int32 from property company_id of schema EntitySubscription in response with status code 200 + - [Deleted] Value format from int32 from property trial_days of schema EntitySubscription in response with status code 200 + - [Breaking] [Deleted] property trial_period of schema EntitySubscription in response with status code 200 + - [Breaking] [Deleted] property metadata of schema EntitySubscription in response with status code 200 + - [Breaking] [Deleted] properties line_items[]._id, line_items[].name, line_items[].term, line_items[].pricing_type, line_items[].price, line_items[].recurring, line_items[].capped_amount, line_items[].activated_on, line_items[].cancelled_on, line_items[].billing_date, line_items[].current_period, line_items[].status, line_items[].is_test, line_items[].metadata in response with status code 200 + - [Breaking] [Deleted] Response with status 400 + +- ##### What's Changed + - [Breaking] [Changed] Type from integer to string of property company_id of schema EntitySubscription in response with status code 200 + - [Breaking] [Changed] Type from integer to number of property trial_days of schema EntitySubscription in response with status code 200 + + +#### createOneTimeCharge + +- ##### What's New + - [Added] Possible values recurring to property charge.pricing_type of schema OneTimeChargeItem in request body + - [Added] Possible values usage_base to property charge.pricing_type of schema OneTimeChargeItem in request body + - [Added] property charge.final_charge of schema Charge in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property charge._id of schema OneTimeChargeEntity in response with status code 200 + - [Breaking] [Deleted] property charge.name of schema OneTimeChargeEntity in response with status code 200 + - [Breaking] [Deleted] property charge.status of schema OneTimeChargeEntity in response with status code 200 + - [Breaking] [Deleted] property charge.activated_on of schema OneTimeChargeEntity in response with status code 200 + - [Breaking] [Deleted] property charge.cancelled_on of schema OneTimeChargeEntity in response with status code 200 + - [Breaking] [Deleted] property charge.metadata of schema OneTimeChargeEntity in response with status code 200 + - [Breaking] [Deleted] property charge.return_url of schema OneTimeChargeEntity in response with status code 200 + - [Breaking] [Deleted] property charge.is_test of schema OneTimeChargeEntity in response with status code 200 + - [Breaking] [Deleted] property charge.pricing_type of schema OneTimeChargeEntity in response with status code 200 + - [Breaking] [Deleted] property charge.subscriber_id of schema OneTimeChargeEntity in response with status code 200 + - [Breaking] [Deleted] property charge.entity_type of schema OneTimeChargeEntity in response with status code 200 + - [Breaking] [Deleted] property charge.entity_id of schema OneTimeChargeEntity in response with status code 200 + - [Breaking] [Deleted] property charge.meta of schema OneTimeChargeEntity in response with status code 200 + - [Breaking] [Deleted] property charge.price of schema OneTimeChargeEntity in response with status code 200 + +- ##### What's Changed + - [Changed] charge.price.amount, charge.price.currency_code made optional in request body + - [Changed] charge.name, charge.pricing_type, charge.price made optional in request body + - [Changed] name, charge, return_url made optional in request body + + +#### getChargeDetails + +- ##### What's New + - [Breaking] [Added] Value format date-time to property activated_on of schema ChargeDetails in response with status code 200 + - [Breaking] [Added] Value format date-time to property cancelled_on of schema ChargeDetails in response with status code 200 + - [Breaking] [Added] Possible values one_time,recurring,usage_base to property pricing_type of schema ChargeDetails in response with status code 200 + - [Breaking] [Added] Possible values extension,theme to property entity_type of schema ChargeDetails in response with status code 200 + - [Added] property term of schema ChargeDetails in response with status code 200 + - [Added] property charge_type of schema ChargeDetails in response with status code 200 + - [Added] property recurring of schema ChargeDetails in response with status code 200 + - [Added] property capped_amount of schema ChargeDetails in response with status code 200 + - [Added] property billing_date of schema ChargeDetails in response with status code 200 + - [Added] property current_period of schema ChargeDetails in response with status code 200 + - [Added] property modified_at of schema ChargeDetails in response with status code 200 + - [Added] property created_at of schema ChargeDetails in response with status code 200 + - [Added] property company_id of schema ChargeDetails in response with status code 200 + - [Added] property __v of schema ChargeDetails in response with status code 200 + - [Added] property code of schema ResourceNotFound in response with status code 404 + - [Added] property success of schema ResourceNotFound in response with status code 404 + +- ##### What's Deprecated + - [Breaking] [Deleted] property metadata of schema OneTimeChargeEntity in response with status code 200 + - [Breaking] [Deleted] property return_url of schema OneTimeChargeEntity in response with status code 200 + - [Breaking] [Deleted] property subscriber_id of schema OneTimeChargeEntity in response with status code 200 + +- ##### What's Changed + - [Changed] price.amount, price.currency_code made optional in response with status code 200 + + +#### getInvoices + +- ##### What's Deprecated + - [Breaking] [Deleted] method getInvoices + + + +#### getInvoiceById + +- ##### What's Deprecated + - [Breaking] [Deleted] method getInvoiceById + + + +#### getCustomerDetail + +- ##### What's Deprecated + - [Breaking] [Deleted] method getCustomerDetail + + + +#### upsertCustomerDetail + +- ##### What's Deprecated + - [Breaking] [Deleted] method upsertCustomerDetail + + + +#### getSubscription + +- ##### What's Deprecated + - [Breaking] [Deleted] method getSubscription + + + +#### getFeatureLimitConfig + +- ##### What's Deprecated + - [Breaking] [Deleted] method getFeatureLimitConfig + + + +#### activateSubscriptionPlan + +- ##### What's Deprecated + - [Breaking] [Deleted] method activateSubscriptionPlan + + + +#### cancelSubscriptionPlan + +- ##### What's Deprecated + - [Breaking] [Deleted] method cancelSubscriptionPlan + + + +#### getEnterprisePlans + +- ##### What's Deprecated + - [Breaking] [Deleted] method getEnterprisePlans + + + +#### planStatusUpdate + +- ##### What's Deprecated + - [Breaking] [Deleted] method planStatusUpdate + + + +#### subscripePlan + +- ##### What's Deprecated + - [Breaking] [Deleted] method subscripePlan + + + +#### getentityDetail + +- ##### What's Deprecated + - [Breaking] [Deleted] method getentityDetail + + + +### Cart + + + +#### getPromotions + +- ##### What's Deprecated + - [Breaking] [Deleted] property items[].restrictions.payments[] of schema Restrictions1 in response with status code 200 + + +#### createPromotion + +- ##### What's Deprecated + - [Breaking] [Deleted] property restrictions.payments[] of schema Restrictions1 in request body + - [Breaking] [Deleted] property restrictions.payments[] of schema Restrictions1 in response with status code 201 + + +#### getPromotionById + +- ##### What's Deprecated + - [Breaking] [Deleted] property restrictions.payments[] of schema Restrictions1 in response with status code 200 + + +#### updatePromotion + +- ##### What's Deprecated + - [Breaking] [Deleted] property restrictions.payments[] of schema Restrictions1 in request body + - [Breaking] [Deleted] property restrictions.payments[] of schema Restrictions1 in response with status code 200 + + +#### getPriceAdjustments + +- ##### What's New + - [Added] property data[] of schema GetPriceAdjustmentResponse in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] properties data.value, data.message, data.apply_expiry, data.restrictions, data.article_level_distribution, data.id, data.collection, data.type, data.allowed_refund, data.is_authenticated, data.article_ids, data.meta, data.cart_id in response with status code 200 + +- ##### What's Changed + - [Breaking] [Changed] Type from object to array of property data of schema PriceAdjustment in response with status code 200 + - [Breaking] [Changed] data.article_ids, data.article_level_distribution, data.cart_id, data.collection, data.is_authenticated, data.message, data.type, data.value made optional in response with status code 200 + + +#### getAbandonedCartDetails + +- ##### What's New + - [Added] property custom_cart_meta of schema CartDetailResponse in response with status code 200 + + +#### addItems + +- ##### What's New + - [Added] property cart.custom_cart_meta of schema CartDetailResponse in response with status code 200 + + +#### updateCart + +- ##### What's New + - [Added] property cart.custom_cart_meta of schema CartDetailResponse in response with status code 200 + + +#### getCartSharedItems + +- ##### What's New + - [Added] property cart.custom_cart_meta of schema SharedCart in response with status code 200 + - [Added] property cart.custom_cart_meta of schema SharedCart in response with status code 404 + + +#### updateCartWithSharedItems + +- ##### What's New + - [Added] property cart.custom_cart_meta of schema SharedCart in response with status code 200 + + +#### updateCartUser + +- ##### What's New + - [Added] property custom_cart_meta of schema UserCartMappingResponse in response with status code 200 + + +#### getCart + +- ##### What's New + - [Added] query parameter orderType (type: string) + + - [Added] property custom_cart_meta of schema CartDetailResponse in response with status code 200 + + +#### platformAddItems + +- ##### What's New + - [Added] query parameter orderType (type: string) + + - [Added] property cart.custom_cart_meta of schema CartDetailResponse in response with status code 200 + + +#### platformUpdateCart + +- ##### What's New + - [Added] query parameter orderType (type: string) + + - [Added] property cart.custom_cart_meta of schema CartDetailResponse in response with status code 200 + + +#### applyCoupon + +- ##### What's New + - [Added] property custom_cart_meta of schema CartDetailResponse in response with status code 201 + + +#### removeCoupon + +- ##### What's New + - [Added] property custom_cart_meta of schema CartDetailResponse in response with status code 200 + + +#### selectAddress + +- ##### What's New + - [Added] property custom_cart_meta of schema CartDetailResponse in response with status code 201 + + +#### getShipments + +- ##### What's New + - [Added] property custom_cart_meta of schema PlatformCartShipmentsResponse in response with status code 200 + + +#### updateShipments + +- ##### What's New + - [Added] property custom_cart_meta of schema PlatformCartShipmentsResponse in response with status code 200 + + +#### platformCheckoutCart + +- ##### What's Deprecated + - [Breaking] [Deleted] method platformCheckoutCart + + + +#### selectPaymentMode + +- ##### What's New + - [Added] property custom_cart_meta of schema CartDetailResponse in response with status code 200 + + +#### platformCheckoutCartV2 + +- ##### What's New + - [Added] property cart.custom_cart_meta of schema CheckCart in response with status code 200 + + +#### selectPaymentModeV2 + +- ##### What's New + - [Added] property custom_cart_meta of schema CartDetailResponse in response with status code 200 + + +#### getPromotionOffers + +- ##### What's New + - [Added] method getPromotionOffers + + + +#### getPromotionPaymentOffers + +- ##### What's New + - [Added] method getPromotionPaymentOffers + + + +### Catalog + + + +#### getApplicationBrandListing + +- ##### What's New + - [Added] property items[]._custom_json of schema ApplicationBrandListingItemSchema in response with status code 200 + - [Added] property items[]._locale_language of schema ApplicationBrandListingItemSchema in response with status code 200 + - [Added] property items[].brand_banner_portrait_url of schema ApplicationBrandListingItemSchema in response with status code 200 + - [Added] property items[].brand_banner_url of schema ApplicationBrandListingItemSchema in response with status code 200 + - [Added] property items[].brand_logo_url of schema ApplicationBrandListingItemSchema in response with status code 200 + - [Added] property items[].description of schema ApplicationBrandListingItemSchema in response with status code 200 + - [Added] property items[].slug_key of schema ApplicationBrandListingItemSchema in response with status code 200 + - [Added] property items[].priority of schema ApplicationBrandListingItemSchema in response with status code 200 + - [Added] property items[].created_on of schema ApplicationBrandListingItemSchema in response with status code 200 + - [Added] property items[].last_updated of schema ApplicationBrandListingItemSchema in response with status code 200 + - [Added] property items[].is_active of schema ApplicationBrandListingItemSchema in response with status code 200 + - [Added] property items[].modified_on of schema ApplicationBrandListingItemSchema in response with status code 200 + - [Added] property items[].active of schema ApplicationBrandListingItemSchema in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property items[].action of schema BrandItem in response with status code 200 + - [Breaking] [Deleted] property items[].banners of schema BrandItem in response with status code 200 + - [Breaking] [Deleted] property items[].discount of schema BrandItem in response with status code 200 + - [Breaking] [Deleted] property items[].logo of schema BrandItem in response with status code 200 + - [Breaking] [Deleted] property items[].slug of schema BrandItem in response with status code 200 + - [Deleted] Type from object from property of schema BrandListingResponse in response with status code 200 + +- ##### What's Changed + - [Breaking] [Changed] Type from string to integer of property items[].departments[] of schema BrandItem in response with status code 200 + - [Breaking] [Changed] page made optional in response with status code 200 + + +#### getApplicationBrands + +- ##### What's New + - [Added] Possible values locate-us to property items[].action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property items[].action.popup.type of schema PageType in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property items[].action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property items[].action.popup.type of schema PageType in response with status code 200 + - [Deleted] Type from object from property items[].logo of schema Media2 in response with status code 200 + + +#### getCategories + +- ##### What's New + - [Added] Possible values locate-us to property data[].items[].action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property data[].items[].action.popup.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property data[].items[].childs[].action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property data[].items[].childs[].action.popup.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property data[].items[].childs[].childs[].action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property data[].items[].childs[].childs[].action.popup.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property data[].items[].childs[].childs[].childs[].action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property data[].items[].childs[].childs[].childs[].action.popup.type of schema PageType in response with status code 200 + - [Added] property data[].items[]._custom_json of schema CategoryItems in response with status code 200 + - [Added] property departments[].name of schema DepartmentIdentifier in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property data[].items[].action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property data[].items[].action.popup.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property data[].items[].childs[].action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property data[].items[].childs[].action.popup.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property data[].items[].childs[].childs[].action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property data[].items[].childs[].childs[].action.popup.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property data[].items[].childs[].childs[].childs[].action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property data[].items[].childs[].childs[].childs[].action.popup.type of schema PageType in response with status code 200 + + +#### getApplicationCategoryListing + +- ##### What's New + - [Added] property items[].attr_name of schema ApplicationCategoryListingItemSchema in response with status code 200 + - [Added] property items[].landscape_url of schema ApplicationCategoryListingItemSchema in response with status code 200 + - [Added] property items[].portrait_url of schema ApplicationCategoryListingItemSchema in response with status code 200 + - [Added] property items[]._custom_json of schema ApplicationCategoryListingItemSchema in response with status code 200 + - [Added] property items[].priority of schema ApplicationCategoryListingItemSchema in response with status code 200 + - [Added] property items[].created_by of schema ApplicationCategoryListingItemSchema in response with status code 200 + - [Added] property items[].created_on of schema ApplicationCategoryListingItemSchema in response with status code 200 + - [Added] property items[].modified_by of schema ApplicationCategoryListingItemSchema in response with status code 200 + - [Added] property items[].modified_on of schema ApplicationCategoryListingItemSchema in response with status code 200 + - [Added] property items[].app_id of schema ApplicationCategoryListingItemSchema in response with status code 200 + - [Added] property items[].is_active of schema ApplicationCategoryListingItemSchema in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property items[].action of schema BrandItem in response with status code 200 + - [Breaking] [Deleted] property items[].banners of schema BrandItem in response with status code 200 + - [Breaking] [Deleted] property items[].discount of schema BrandItem in response with status code 200 + - [Breaking] [Deleted] properties items[].logo.aspect_ratio, items[].logo.type, items[].logo.url in response with status code 200 + - [Breaking] [Deleted] property items[].slug of schema BrandItem in response with status code 200 + - [Deleted] Type from object from property of schema BrandListingResponse in response with status code 200 + +- ##### What's Changed + - [Breaking] [Changed] Type from string to integer of property items[].departments[] of schema BrandItem in response with status code 200 + - [Breaking] [Changed] Type from object to string of property items[].logo of schema Media2 in response with status code 200 + - [Breaking] [Changed] page made optional in response with status code 200 + + +#### getAllCollections + +- ##### What's New + - [Added] properties items[]._schedule.cron, items[]._schedule.duration, items[]._schedule.end, items[]._schedule.next_schedule, items[]._schedule.start in response with status code 200 + - [Added] Possible values locate-us to property items[].action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property items[].action.popup.type of schema PageType in response with status code 200 + - [Added] properties items[].badge.color, items[].badge.text in response with status code 200 + - [Added] property items[]._id of schema GetCollectionDetailNest in response with status code 200 + - [Added] property items[].published of schema GetCollectionDetailNest in response with status code 200 + - [Added] property items[].tags of schema GetCollectionDetailNest in response with status code 200 + - [Added] property items[].sort_on of schema GetCollectionDetailNest in response with status code 200 + - [Added] property items[]._custom_json of schema GetCollectionDetailNest in response with status code 200 + - [Added] property items[]._locale_language of schema GetCollectionDetailNest in response with status code 200 + - [Added] property items[].seo of schema GetCollectionDetailNest in response with status code 200 + - [Added] property items[].is_visible of schema GetCollectionDetailNest in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property items[].action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property items[].action.popup.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] property items[].cron of schema GetCollectionDetailNest in response with status code 200 + + +#### createCollection + +- ##### What's New + - [Added] properties _schedule.cron, _schedule.duration, _schedule.end, _schedule.next_schedule, _schedule.start in response with status code 200 + - [Added] property published of schema CollectionCreateResponse in response with status code 200 + - [Added] property tags of schema CollectionCreateResponse in response with status code 200 + - [Added] property action 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 seo of schema CollectionCreateResponse in response with status code 200 + - [Added] property is_visible of schema CollectionCreateResponse in response with status code 200 + - [Added] property id of schema CollectionCreateResponse in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property created_by of schema CreateCollection in request body + - [Breaking] [Deleted] Possible nullable value from true from property modified_by of schema CreateCollection in request body + - [Breaking] [Deleted] property cron of schema CollectionCreateResponse in response with status code 200 + + +#### updateCollection + +- ##### What's New + - [Added] properties modified_by.email, modified_by.uid, modified_by.user_id, modified_by.username in request body + - [Added] properties modified_by.email, modified_by.uid, modified_by.user_id, modified_by.username in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property modified_by of schema UpdateCollection in request body + - [Breaking] [Deleted] Possible nullable value from true from property modified_by of schema UpdateCollection in response with status code 200 + +- ##### What's Changed + - [Breaking] [Changed] Type from string to object of property modified_by of schema UpdateCollection in request body + - [Breaking] [Changed] Type from string to object of property modified_by of schema UpdateCollection in response with status code 200 + + +#### getCollectionItems + +- ##### What's New + - [Added] Possible values locate-us to property items[].brand.action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property items[].brand.action.popup.type of schema PageType in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property items[].brand.action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property items[].brand.action.popup.type of schema PageType in response with status code 200 + + +#### getAppInventory + +- ##### What's New + - [Added] query parameter qtyGt (type: integer) + + - [Added] query parameter qtyLt (type: integer) + + - [Added] query parameter qtyType (type: string) + + - [Added] query parameter fromDate (type: string) + + - [Added] query parameter toDate (type: string) + + + +#### getAppicationProducts + +- ##### What's New + - [Added] Possible values locate-us to property items[].brand.action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property items[].brand.action.popup.type of schema PageType in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property items[].brand.action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property items[].brand.action.popup.type of schema PageType in response with status code 200 + + +#### getProductDetailBySlug + +- ##### What's New + - [Added] Possible values locate-us to property brand.action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property brand.action.popup.type of schema PageType in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property brand.action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property brand.action.popup.type of schema PageType in response with status code 200 + + +#### getAppCategoryReturnConfig + +- ##### What's New + - [Added] query parameter q (type: string) + + - [Added] query parameter pageNo (type: integer) + + - [Added] query parameter pageSize (type: integer) + + + +#### createCategories + +- ##### What's Deprecated + - [Breaking] [Deleted] method createCategories + + + +#### updateCategory + +- ##### What's Deprecated + - [Breaking] [Deleted] method updateCategory + + + +#### createDepartments + +- ##### What's Deprecated + - [Breaking] [Deleted] method createDepartments + + + +#### updateDepartment + +- ##### What's Deprecated + - [Breaking] [Deleted] method updateDepartment + + + +#### getInventories + +- ##### What's New + - [Added] items[].return_config.returnable, items[].return_config.time, items[].return_config.unit made required in response with status code 200 + + +#### getGenderAttribute + +- ##### What's Changed + - [Breaking] [Changed] operationId from getGenderAttribute to getAttribute + + +#### listProductTemplateExportDetails + +- ##### What's New + - [Added] property page of schema ProductDownloadsResponse in response with status code 200 + + +#### listInventoryExport + +- ##### What's New + - [Added] query parameter pageNo (type: integer) + + - [Added] query parameter pageSize (type: integer) + + - [Added] property page of schema InventoryExportJobListResponse in response with status code 200 + + +#### getProducts + +- ##### What's New + - [Added] query parameter name (type: string) + + - [Added] query parameter slug (type: string) + + - [Added] query parameter allIdentifiers (type: array) + + - [Added] query parameter pageType (type: string) + + - [Added] query parameter sortOn (type: string) + + - [Added] query parameter pageId (type: string) + + + +#### getProductExportJobs + +- ##### What's New + - [Added] query parameter pageNo (type: integer) + + - [Added] query parameter pageSize (type: integer) + + - [Added] property page of schema ProductDownloadsResponse in response with status code 200 + + +#### createProductExportJob + +- ##### What's New + - [Added] property page of schema ProductDownloadsResponse in response with status code 200 + + +### Configuration + + + +#### getAppApiTokens + +- ##### What's New + - [Added] property tokens.google_map.enabled of schema GoogleMap in response with status code 200 + + +#### updateAppApiTokens + +- ##### What's New + - [Added] property tokens.google_map.enabled of schema GoogleMap in request body + - [Added] property tokens.google_map.enabled of schema GoogleMap in response with status code 200 + + +#### getIntegrationById + +- ##### What's Deprecated + - [Breaking] [Deleted] method getIntegrationById + + + +#### getAvailableOptIns + +- ##### What's Deprecated + - [Breaking] [Deleted] method getAvailableOptIns + + + +#### getSelectedOptIns + +- ##### What's Deprecated + - [Breaking] [Deleted] method getSelectedOptIns + + + +#### getIntegrationLevelConfig + +- ##### What's Deprecated + - [Breaking] [Deleted] method getIntegrationLevelConfig + + + +#### updateLevelIntegration + +- ##### What's Deprecated + - [Breaking] [Deleted] method updateLevelIntegration + + + +#### getIntegrationByLevelId + +- ##### What's Deprecated + - [Breaking] [Deleted] method getIntegrationByLevelId + + + +#### updateLevelUidIntegration + +- ##### What's Deprecated + - [Breaking] [Deleted] method updateLevelUidIntegration + + + +#### getLevelActiveIntegrations + +- ##### What's Deprecated + - [Breaking] [Deleted] method getLevelActiveIntegrations + + + +### Content + + + +#### createBlog + +- ##### What's New + - [Added] Possible values locate-us to property seo.breadcrumb[].action.page.type of schema PageType in request body + - [Added] Possible values locate-us to property seo.breadcrumb[].action.popup.type of schema PageType in request body + - [Added] property summary of schema BlogRequest in request body + - [Added] Possible values locate-us to property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + - [Added] property summary of schema BlogSchema in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.page.type of schema PageType in request body + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.popup.type of schema PageType in request body + - [Breaking] [Deleted] property _schedule of schema BlogRequest in request body + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] property _schedule of schema BlogSchema in response with status code 200 + + +#### getBlogs + +- ##### What's New + - [Added] query parameter tags (type: string) + + - [Added] query parameter q (type: string) + + - [Added] query parameter slug (type: string) + + - [Added] query parameter title (type: string) + + - [Added] query parameter status (type: string) + + - [Added] Possible values locate-us to property items[].seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property items[].seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + - [Added] property items[].summary of schema BlogSchema in response with status code 200 + - [Added] property filters of schema BlogGetResponse in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property items[].seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property items[].seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] property items[]._schedule of schema BlogSchema in response with status code 200 + + +#### updateBlog + +- ##### What's New + - [Added] Possible values locate-us to property seo.breadcrumb[].action.page.type of schema PageType in request body + - [Added] Possible values locate-us to property seo.breadcrumb[].action.popup.type of schema PageType in request body + - [Added] property summary of schema BlogRequest in request body + - [Added] Possible values locate-us to property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + - [Added] property summary of schema BlogSchema in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.page.type of schema PageType in request body + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.popup.type of schema PageType in request body + - [Breaking] [Deleted] property _schedule of schema BlogRequest in request body + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] property _schedule of schema BlogSchema in response with status code 200 + + +#### deleteBlog + +- ##### What's New + - [Added] Possible values locate-us to property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + - [Added] property summary of schema BlogSchema in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] property _schedule of schema BlogSchema in response with status code 200 + + +#### getComponentById + +- ##### What's Deprecated + - [Breaking] [Deleted] method getComponentById + + + +#### getLandingPages + +- ##### What's New + - [Added] Possible values locate-us to property items[].action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property items[].action.popup.type of schema PageType in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property items[].action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property items[].action.popup.type of schema PageType in response with status code 200 + + +#### createLandingPage + +- ##### What's New + - [Added] Possible values locate-us to property action.page.type of schema PageType in request body + - [Added] Possible values locate-us to property action.popup.type of schema PageType in request body + - [Added] Possible values locate-us to property action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property action.popup.type of schema PageType in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property action.page.type of schema PageType in request body + - [Breaking] [Deleted] Possible nullable value from true from property action.popup.type of schema PageType in request body + - [Breaking] [Deleted] Possible nullable value from true from property action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property action.popup.type of schema PageType in response with status code 200 + + +#### updateLandingPage + +- ##### What's New + - [Added] Possible values locate-us to property action.page.type of schema PageType in request body + - [Added] Possible values locate-us to property action.popup.type of schema PageType in request body + - [Added] Possible values locate-us to property action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property action.popup.type of schema PageType in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property action.page.type of schema PageType in request body + - [Breaking] [Deleted] Possible nullable value from true from property action.popup.type of schema PageType in request body + - [Breaking] [Deleted] Possible nullable value from true from property action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property action.popup.type of schema PageType in response with status code 200 + + +#### deleteLandingPage + +- ##### What's New + - [Added] Possible values locate-us to property action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property action.popup.type of schema PageType in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property action.popup.type of schema PageType in response with status code 200 + + +#### getNavigations + +- ##### What's New + - [Added] Possible values locate-us to property items[].navigation[].action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property items[].navigation[].action.popup.type of schema PageType in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property items[].navigation[].action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property items[].navigation[].action.popup.type of schema PageType in response with status code 200 + + +#### createNavigation + +- ##### What's New + - [Added] Possible values locate-us to property navigation[].action.page.type of schema PageType in request body + - [Added] Possible values locate-us to property navigation[].action.popup.type of schema PageType in request body + - [Added] Possible values locate-us to property navigation[].action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property navigation[].action.popup.type of schema PageType in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property navigation[].action.page.type of schema PageType in request body + - [Breaking] [Deleted] Possible nullable value from true from property navigation[].action.popup.type of schema PageType in request body + - [Breaking] [Deleted] Possible nullable value from true from property navigation[].action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property navigation[].action.popup.type of schema PageType in response with status code 200 + + +#### getDefaultNavigations + +- ##### What's New + - [Added] Possible values locate-us to property items[].navigation[].action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property items[].navigation[].action.popup.type of schema PageType in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property items[].navigation[].action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property items[].navigation[].action.popup.type of schema PageType in response with status code 200 + + +#### getNavigationBySlug + +- ##### What's New + - [Added] Possible values locate-us to property navigation[].action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property navigation[].action.popup.type of schema PageType in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property navigation[].action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property navigation[].action.popup.type of schema PageType in response with status code 200 + + +#### updateNavigation + +- ##### What's New + - [Added] Possible values locate-us to property navigation[].action.page.type of schema PageType in request body + - [Added] Possible values locate-us to property navigation[].action.popup.type of schema PageType in request body + - [Added] Possible values locate-us to property navigation[].action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property navigation[].action.popup.type of schema PageType in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property navigation[].action.page.type of schema PageType in request body + - [Breaking] [Deleted] Possible nullable value from true from property navigation[].action.popup.type of schema PageType in request body + - [Breaking] [Deleted] Possible nullable value from true from property navigation[].action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property navigation[].action.popup.type of schema PageType in response with status code 200 + + +#### deleteNavigation + +- ##### What's New + - [Added] Possible values locate-us to property navigation[].action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property navigation[].action.popup.type of schema PageType in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property navigation[].action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property navigation[].action.popup.type of schema PageType in response with status code 200 #### getPageMeta - ##### What's New - - [Added] Possible values locate-us to property system_pages[].navigation[].action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property system_pages[].navigation[].action.popup.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property custom_pages[].seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property custom_pages[].seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property system_pages[].navigation[].action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property system_pages[].navigation[].action.popup.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property custom_pages[].seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property custom_pages[].seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property system_pages[].navigation[].action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property system_pages[].navigation[].action.popup.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property custom_pages[].seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property custom_pages[].seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + + +#### createPagePreview + +- ##### What's New + - [Added] Possible values locate-us to property seo.breadcrumb[].action.page.type of schema PageType in request body + - [Added] Possible values locate-us to property seo.breadcrumb[].action.popup.type of schema PageType in request body + - [Added] Possible values locate-us to property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.page.type of schema PageType in request body + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.popup.type of schema PageType in request body + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + + +#### updatePagePreview + +- ##### What's New + - [Added] Possible values locate-us to property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + + +#### deletePage + +- ##### What's New + - [Added] Possible values locate-us to property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + + +#### getSlideshows + +- ##### What's New + - [Added] Possible values locate-us to property items[].media[].action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property items[].media[].action.popup.type of schema PageType in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property items[].media[].action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property items[].media[].action.popup.type of schema PageType in response with status code 200 + + +#### createSlideshow + +- ##### What's New + - [Added] Possible values locate-us to property media.action.page.type of schema PageType in request body + - [Added] Possible values locate-us to property media.action.popup.type of schema PageType in request body + - [Added] Possible values locate-us to property media[].action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property media[].action.popup.type of schema PageType in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property media.action.page.type of schema PageType in request body + - [Breaking] [Deleted] Possible nullable value from true from property media.action.popup.type of schema PageType in request body + - [Breaking] [Deleted] Possible nullable value from true from property media[].action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property media[].action.popup.type of schema PageType in response with status code 200 + + +#### getSlideshowBySlug + +- ##### What's New + - [Added] Possible values locate-us to property media[].action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property media[].action.popup.type of schema PageType in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property media[].action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property media[].action.popup.type of schema PageType in response with status code 200 + + +#### updateSlideshow + +- ##### What's New + - [Added] Possible values locate-us to property media.action.page.type of schema PageType in request body + - [Added] Possible values locate-us to property media.action.popup.type of schema PageType in request body + - [Added] Possible values locate-us to property media[].action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property media[].action.popup.type of schema PageType in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property media.action.page.type of schema PageType in request body + - [Breaking] [Deleted] Possible nullable value from true from property media.action.popup.type of schema PageType in request body + - [Breaking] [Deleted] Possible nullable value from true from property media[].action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property media[].action.popup.type of schema PageType in response with status code 200 + + +#### deleteSlideshow + +- ##### What's New + - [Added] Possible values locate-us to property media[].action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property media[].action.popup.type of schema PageType in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property media[].action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property media[].action.popup.type of schema PageType in response with status code 200 + + +#### getSupportInformation + +- ##### What's New + - [Added] property contact.phone.phone[].phone_type of schema PhoneProperties in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property config_type of schema Support in response with status code 200 + + +#### updateSupportInformation + +- ##### What's New + - [Added] property contact.phone.phone[].phone_type of schema PhoneProperties in request body + - [Added] property contact.phone.phone[].phone_type of schema PhoneProperties in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property config_type of schema Support in request body + - [Breaking] [Deleted] property config_type of schema Support in response with status code 200 + + +#### getBlogBySlug + +- ##### What's New + - [Added] Possible values locate-us to property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + - [Added] property summary of schema BlogSchema in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] property _schedule of schema BlogSchema in response with status code 200 + + +#### createPage + +- ##### What's New + - [Added] Possible values locate-us to property seo.breadcrumb[].action.page.type of schema PageType in request body + - [Added] Possible values locate-us to property seo.breadcrumb[].action.popup.type of schema PageType in request body + - [Added] Possible values locate-us to property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.page.type of schema PageType in request body + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.popup.type of schema PageType in request body + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + + +#### getPages + +- ##### What's New + - [Added] Possible values locate-us to property items[].seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property items[].seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property items[].seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property items[].seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + + +#### updatePage + +- ##### What's New + - [Added] Possible values locate-us to property seo.breadcrumb[].action.page.type of schema PageType in request body + - [Added] Possible values locate-us to property seo.breadcrumb[].action.popup.type of schema PageType in request body + - [Added] Possible values locate-us to property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.page.type of schema PageType in request body + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.popup.type of schema PageType in request body + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + + +#### getPageBySlug + +- ##### What's New + - [Added] Possible values locate-us to property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + + +### FileStorage + + + +#### getDefaultPdfData + +- ##### What's New + - [Added] property data[].payload.company_detail.meta of schema CompanyDetail in response with status code 200 + - [Added] property data[].payload.shipment_meta of schema DummyTemplateDataPayload in response with status code 200 + - [Added] property data[].payload.order_meta of schema DummyTemplateDataPayload in response with status code 200 + + +### Finance + + + +#### generateReport + +- ##### What's New + - [Added] property data of schema GenerateReportJson in response with status code 200 + - [Added] Response with status 400 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 4XX + +- ##### What's Changed + - [Changed] Security in Request + - [Changed] Security in Request + - [Breaking] [Changed] Security in Request + + +#### downloadReport + +- ##### What's New + - [Added] property data of schema DownloadReport in request body + - [Added] Response with status 400 + +- ##### What's Deprecated + - [Breaking] [Deleted] property page of schema DownloadReport in request body + - [Breaking] [Deleted] property pagesize of schema DownloadReport in request body + - [Breaking] [Deleted] property start_date of schema DownloadReport in request body + - [Breaking] [Deleted] property end_date of schema DownloadReport in request body + - [Breaking] [Deleted] property items[].type_of_request of schema DownloadReportItems in response with status code 200 + - [Breaking] [Deleted] Response with status 4XX + +- ##### What's Changed + - [Changed] Security in Request + - [Changed] Security in Request + - [Breaking] [Changed] Security in Request + + +#### getData + +- ##### What's New + - [Added] properties data.filters.config_field, data.filters.status, data.filters.is_active, data.filters.seller_id in request body + - [Added] property data.status of schema GetEngineData in request body + - [Added] property data.search of schema GetEngineData in request body + - [Added] property data.page of schema GetEngineData in request body + - [Added] property data.page_size of schema GetEngineData in request body + - [Added] property data.order_by of schema GetEngineData in request body + - [Added] Response with status 400 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 4XX + +- ##### What's Changed + - [Changed] Security in Request + - [Changed] Security in Request + - [Breaking] [Changed] Security in Request + + +#### getReason + +- ##### What's New + - [Added] Response with status 400 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 4XX + +- ##### What's Changed + - [Changed] Security in Request + - [Changed] Security in Request + - [Breaking] [Changed] Security in Request + + +#### getReportList + +- ##### What's New + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 4XX + +- ##### What's Changed + - [Changed] Security in Request + - [Changed] Security in Request + - [Breaking] [Changed] Security in Request + + +#### getAffiliate + +- ##### What's New + - [Added] property reason of schema GetAffiliateResponse in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 4XX + +- ##### What's Changed + - [Changed] Security in Request + - [Changed] Security in Request + - [Breaking] [Changed] Security in Request + + +#### downloadCreditDebitNote + +- ##### What's New + - [Added] Response with status 400 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 4XX + +- ##### What's Changed + - [Changed] Security in Request + - [Changed] Security in Request + - [Breaking] [Changed] Security in Request + + +#### paymentProcess + +- ##### What's New + - [Added] property data.invoice_billing_items of schema PaymentProcessPayload in request body + - [Added] Response with status 400 + +- ##### What's Deprecated + - [Breaking] [Deleted] property data.invoice_number of schema PaymentProcessPayload in request body + - [Breaking] [Deleted] Response with status 4XX + +- ##### What's Changed + - [Breaking] [Changed] Type from string to number of property data.amount of schema PaymentProcessPayload in request body + - [Breaking] [Changed] Type from string to number of property data.total_amount of schema PaymentProcessPayload in request body + - [Changed] Security in Request + - [Changed] Security in Request + - [Breaking] [Changed] Security in Request + + +#### creditlineDataplatform + +- ##### What's New + - [Added] property data.end_date of schema CreditlineDataPlatformPayload in request body + - [Added] property data.start_date of schema CreditlineDataPlatformPayload in request body + - [Added] property data.page_size of schema CreditlineDataPlatformPayload in request body + - [Added] Response with status 400 + +- ##### What's Deprecated + - [Breaking] [Deleted] property data.end_end of schema CreditlineDataPlatformPayload in request body + - [Breaking] [Deleted] property data.start_end of schema CreditlineDataPlatformPayload in request body + - [Breaking] [Deleted] property data.pagesize of schema CreditlineDataPlatformPayload in request body + - [Breaking] [Deleted] Response with status 4XX + +- ##### What's Changed + - [Changed] Security in Request + - [Changed] Security in Request + - [Breaking] [Changed] Security in Request + + +#### isCreditlinePlatform + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 4XX + +- ##### What's Changed + - [Changed] Security in Request + - [Changed] Security in Request + - [Breaking] [Changed] Security in Request + + +#### invoiceType + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 4XX + +- ##### What's Changed + - [Changed] Security in Request + - [Changed] Security in Request + - [Breaking] [Changed] Security in Request + + +#### invoiceListing + +- ##### What's New + - [Added] Possible nullable value true to property items[].currency of schema Currency in response with status code 200 + - [Added] property success of schema InvoiceListingResponse in response with status code 200 + - [Added] property headers of schema InvoiceListingResponse in response with status code 200 + - [Added] Response with status 400 + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 4XX + +- ##### What's Changed + - [Breaking] [Changed] Type from string to number of property items[].amount of schema InvoiceListingResponseItems in response with status code 200 + - [Changed] Security in Request + - [Changed] Security in Request + - [Breaking] [Changed] Security in Request + + +#### invoicePDF + +- ##### What's New + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 4XX + +- ##### What's Changed + - [Changed] Security in Request + - [Changed] Security in Request + - [Breaking] [Changed] Security in Request + + +#### isCnRefundMethod + +- ##### What's New + - [Added] Response with status 400 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 4XX + +- ##### What's Changed + - [Changed] Security in Request + - [Changed] Security in Request + - [Breaking] [Changed] Security in Request + + +#### createSellerCreditNoteConfig + +- ##### What's New + - [Added] Response with status 400 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 4XX + +- ##### What's Changed + - [Changed] Security in Request + - [Changed] Security in Request + - [Breaking] [Changed] Security in Request + + +#### deleteConfig + +- ##### What's New + - [Added] Response with status 400 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 4XX + +- ##### What's Changed + - [Changed] Security in Request + - [Changed] Security in Request + - [Breaking] [Changed] Security in Request + + +#### channelDisplayName + +- ##### What's New + - [Added] property items of schema ChannelDisplayNameResponse in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property data of schema ChannelDisplayNameResponse in response with status code 200 + - [Breaking] [Deleted] Response with status 4XX + +- ##### What's Changed + - [Changed] Security in Request + - [Changed] Security in Request + - [Breaking] [Changed] Security in Request + + +#### getPdfUrlView + +- ##### What's New + - [Added] Response with status 400 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 4XX + +- ##### What's Changed + - [Changed] Security in Request + - [Changed] Security in Request + - [Breaking] [Changed] Security in Request + + +#### creditNoteDetails + +- ##### What's New + - [Added] property data.redemption_details[].meta of schema RedemptionDetails in response with status code 200 + - [Added] property data.currency of schema CreditNoteDetails in response with status code 200 + - [Added] property data.current_amount_used of schema CreditNoteDetails in response with status code 200 + - [Added] Response with status 400 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 4XX + +- ##### What's Changed + - [Changed] Security in Request + - [Changed] Security in Request + - [Breaking] [Changed] Security in Request + + +#### getCustomerCreditBalance + +- ##### What's New + - [Added] Response with status 400 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 4XX + +- ##### What's Changed + - [Changed] Security in Request + - [Changed] Security in Request + - [Breaking] [Changed] Security in Request + + +#### getCnConfig + +- ##### What's New + - [Added] Response with status 400 + +- ##### What's Deprecated + - [Deleted] Type from object from property data.meta of schema GetCnConfigResponseMeta in response with status code 200 + - [Breaking] [Deleted] properties data.meta.reason, data.meta.source_channel in response with status code 200 + - [Breaking] [Deleted] Response with status 4XX + +- ##### What's Changed + - [Changed] Security in Request + - [Changed] Security in Request + - [Breaking] [Changed] Security in Request + + +#### generateReportCustomerCn + +- ##### What's New + - [Added] property data.filters.type_of_transaction of schema CnGenerateReportFilters in request body + - [Added] property data.filters.issuance_channel of schema CnGenerateReportFilters in request body + - [Added] property data.page_size of schema CnGenerateReport in request body + - [Added] property data.success of schema GenerateReportCustomerCnResponseData in response with status code 200 + - [Added] property data.message of schema GenerateReportCustomerCnResponseData in response with status code 200 + - [Added] Response with status 400 + +- ##### What's Deprecated + - [Breaking] [Deleted] property data.pagesize of schema CnGenerateReport in request body + - [Breaking] [Deleted] property data.filters.types_of_transaction of schema CnGenerateReportFilters in request body + - [Breaking] [Deleted] Response with status 4XX + +- ##### What's Changed + - [Changed] Security in Request + - [Changed] Security in Request + - [Breaking] [Changed] Security in Request + + +#### downloadReportCustomerCn + +- ##### What's New + - [Added] property data.page_size of schema CnDownloadReport in request body + - [Added] property items of schema DownloadReportCustomerCnResponse in response with status code 200 + - [Added] property item_count of schema DownloadReportCustomerCnResponse in response with status code 200 + - [Added] property page of schema DownloadReportCustomerCnResponse in response with status code 200 + - [Added] Response with status 400 + +- ##### What's Deprecated + - [Breaking] [Deleted] property data.status[] of schema CnDownloadReport in request body + - [Breaking] [Deleted] property data.pagesize of schema CnDownloadReport in request body + - [Breaking] [Deleted] property data of schema DownloadReportCustomerCnResponse in response with status code 200 + - [Breaking] [Deleted] Response with status 4XX + +- ##### What's Changed + - [Breaking] [Changed] Type from array to string of property data.status of schema CnDownloadReport in request body + - [Changed] Security in Request + - [Changed] Security in Request + - [Breaking] [Changed] Security in Request + + +#### getReportingFilters + +- ##### What's New + - [Added] property reason of schema GetReportingFiltersResponse in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 4XX + +- ##### What's Changed + - [Changed] Security in Request + - [Changed] Security in Request + - [Breaking] [Changed] Security in Request + + +#### invoicePaymentDetails + +- ##### What's New + - [Added] property reason of schema InvoicePaymentDetailsResponse in response with status code 200 + - [Added] Response with status 500 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 4XX + +- ##### What's Changed + - [Changed] Security in Request + - [Changed] Security in Request + - [Breaking] [Changed] Security in Request + + +#### invoiceActivityLogs + +- ##### What's New + - [Added] Possible nullable value true to property data[].performed_by of schema InvoiceActivityLogsResponseData in response with status code 200 + - [Added] Possible nullable value true to property data[].reason of schema InvoiceActivityLogsResponseData in response with status code 200 + - [Added] Possible nullable value true to property data[].max_retry_attempts of schema InvoiceActivityLogsResponseData in response with status code 200 + - [Added] Response with status 400 + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 4XX + +- ##### What's Changed + - [Changed] Security in Request + - [Changed] Security in Request + - [Breaking] [Changed] Security in Request + + +#### unlockCreditNote + +- ##### What's Deprecated + - [Breaking] [Deleted] Response with status 4XX + +- ##### What's Changed + - [Changed] Security in Request + - [Changed] Security in Request + - [Breaking] [Changed] Security in Request + + +#### invoicePaymentOptions + +- ##### What's New + - [Added] method invoicePaymentOptions + + + +#### orderFreeze + +- ##### What's New + - [Added] method orderFreeze + + + +### Lead + + + +#### getPlatformTickets + +- ##### What's New + - [Added] property items[].sla of schema Ticket in response with status code 200 + + +#### createTicket + +- ##### What's New + - [Added] property sla of schema Ticket in response with status code 200 + + +#### getNewTickets + +- ##### What's New + - [Added] property items[].sla of schema Ticket in response with status code 200 + + +#### getPlatformTicket + +- ##### What's New + - [Added] property sla of schema Ticket in response with status code 200 + + +#### editPlatformTicket + +- ##### What's New + - [Added] property sla of schema Ticket in response with status code 200 + + +#### getNewTicket + +- ##### What's New + - [Added] property sla of schema Ticket in response with status code 200 + + +#### editNewTicket + +- ##### What's New + - [Added] property sla of schema Ticket in response with status code 200 + + +#### getTokenForPlatformVideoRoom + +- ##### What's Deprecated + - [Breaking] [Deleted] method getTokenForPlatformVideoRoom + + + +#### getNewTokenForVideoRoom + +- ##### What's Deprecated + - [Breaking] [Deleted] method getNewTokenForVideoRoom + + + +#### getPlatformVideoParticipants + +- ##### What's Deprecated + - [Breaking] [Deleted] method getPlatformVideoParticipants + + + +#### getNewVideoParticipants + +- ##### What's Deprecated + - [Breaking] [Deleted] method getNewVideoParticipants + + + +#### openVideoRoom + +- ##### What's Deprecated + - [Breaking] [Deleted] method openVideoRoom + + + +#### closeVideoRoom + +- ##### What's Deprecated + - [Breaking] [Deleted] method closeVideoRoom + + + +#### getGeneralConfig + +- ##### What's New + - [Added] property _id of schema GeneralConfigResponse in response with status code 200 + - [Added] property support_communication of schema GeneralConfigResponse in response with status code 200 + - [Added] property show_communication_info of schema GeneralConfigResponse in response with status code 200 + - [Added] property show_support_dris 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 allow_ticket_creation of schema GeneralConfigResponse in response with status code 200 + - [Added] property show_listing of schema GeneralConfigResponse in response with status code 200 + - [Added] property available_integration of schema GeneralConfigResponse in response with status code 200 + - [Added] property enable_dris of schema GeneralConfigResponse in response with status code 200 + - [Added] property support_email of schema GeneralConfigResponse in response with status code 200 + - [Added] property support_phone of schema GeneralConfigResponse in response with status code 200 + - [Added] property support_faq of schema GeneralConfigResponse in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property success of schema CloseVideoRoomResponse in response with status code 200 + +- ##### What's Changed + - [Breaking] [Changed] success made optional in response with status code 200 + + +### Serviceability + + + +#### getZones + +- ##### What's New + - [Breaking] [Deleted] query parameter country (type: string), + [Added] query parameter countryIsoCode (type: string) + - [Added] property items[].store_ids of schema ListViewItems in response with status code 200 + + +#### createCourierPartnerAccount + +- ##### What's Changed + - [Changed] account_id made optional in request body + + +#### getCourierPartnerAccounts + +- ##### What's New + - [Added] Possible nullable value true to property items[].scheme_rules.weight.lt of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property items[].scheme_rules.weight.gt of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property items[].scheme_rules.weight.lte of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property items[].scheme_rules.weight.gte of schema ArithmeticOperations in response with status code 200 + + +#### updateCourierPartnerAccount + +- ##### What's New + - [Added] Possible nullable value true to property scheme_rules.weight.lt of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property scheme_rules.weight.gt of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property scheme_rules.weight.lte of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property scheme_rules.weight.gte of schema ArithmeticOperations in response with status code 200 + + +#### getCourierPartnerAccount + +- ##### What's New + - [Added] Possible nullable value true to property scheme_rules.weight.lt of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property scheme_rules.weight.gt of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property scheme_rules.weight.lte of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property scheme_rules.weight.gte of schema ArithmeticOperations in response with status code 200 + + +#### updateCourierRule + +- ##### What's New + - [Added] Possible nullable value true to property conditions.order_place_date.lt of schema ArithmeticOperations in request body + - [Added] Possible nullable value true to property conditions.order_place_date.gt of schema ArithmeticOperations in request body + - [Added] Possible nullable value true to property conditions.order_place_date.lte of schema ArithmeticOperations in request body + - [Added] Possible nullable value true to property conditions.order_place_date.gte of schema ArithmeticOperations in request body + - [Added] Possible nullable value true to property conditions.shipment_weight.lt of schema ArithmeticOperations in request body + - [Added] Possible nullable value true to property conditions.shipment_weight.gt of schema ArithmeticOperations in request body + - [Added] Possible nullable value true to property conditions.shipment_weight.lte of schema ArithmeticOperations in request body + - [Added] Possible nullable value true to property conditions.shipment_weight.gte of schema ArithmeticOperations in request body + - [Added] Possible nullable value true to property conditions.shipment_cost.lt of schema ArithmeticOperations in request body + - [Added] Possible nullable value true to property conditions.shipment_cost.gt of schema ArithmeticOperations in request body + - [Added] Possible nullable value true to property conditions.shipment_cost.lte of schema ArithmeticOperations in request body + - [Added] Possible nullable value true to property conditions.shipment_cost.gte of schema ArithmeticOperations in request body + - [Added] Possible nullable value true to property conditions.shipment_volumetric_weight.lt of schema ArithmeticOperations in request body + - [Added] Possible nullable value true to property conditions.shipment_volumetric_weight.gt of schema ArithmeticOperations in request body + - [Added] Possible nullable value true to property conditions.shipment_volumetric_weight.lte of schema ArithmeticOperations in request body + - [Added] Possible nullable value true to property conditions.shipment_volumetric_weight.gte of schema ArithmeticOperations in request body + - [Added] property cp_list[].scheme_rules of schema CourierPartnerRuleCPListResponse in response with status code 200 + - [Added] Possible nullable value true to property conditions.order_place_date.lt of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property conditions.order_place_date.gt of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property conditions.order_place_date.lte of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property conditions.order_place_date.gte of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property conditions.shipment_weight.lt of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property conditions.shipment_weight.gt of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property conditions.shipment_weight.lte of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property conditions.shipment_weight.gte of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property conditions.shipment_cost.lt of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property conditions.shipment_cost.gt of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property conditions.shipment_cost.lte of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property conditions.shipment_cost.gte of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property conditions.shipment_volumetric_weight.lt of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property conditions.shipment_volumetric_weight.gt of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property conditions.shipment_volumetric_weight.lte of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property conditions.shipment_volumetric_weight.gte of schema ArithmeticOperations in response with status code 200 + - [Added] property application_id of schema CourierPartnerRuleResponse in response with status code 200 + - [Added] property company_id of schema CourierPartnerRuleResponse in response with status code 200 + - [Added] property created_by of schema CourierPartnerRuleResponse in response with status code 200 + - [Added] property id of schema CourierPartnerRuleResponse in response with status code 200 + - [Added] property modified_by of schema CourierPartnerRuleResponse in response with status code 200 + - [Added] property modified_on of schema CourierPartnerRuleResponse in response with status code 200 + - [Added] property type of schema CourierPartnerRuleResponse in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property cp_list[].name of schema CourierPartnerList in request body + - [Breaking] [Deleted] property cp_list[].is_self_ship of schema CourierPartnerList in request body + - [Breaking] [Deleted] property cp_list[].name of schema CourierPartnerList in response with status code 200 + +- ##### What's Changed + - [Changed] cp_list[].is_self_ship made optional in request body + - [Changed] cp_list[].name made optional in request body + - [Breaking] [Changed] cp_list[].account_id, cp_list[].extension_id, cp_list[].is_self_ship, cp_list[].name made optional in response with status code 200 + - [Breaking] [Changed] conditions, is_active, name, sort, type made optional in response with status code 200 + + +#### getCourierPartnerRule + +- ##### What's New + - [Added] property cp_list[].scheme_rules of schema CourierPartnerRuleCPListResponse in response with status code 200 + - [Added] Possible nullable value true to property conditions.order_place_date.lt of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property conditions.order_place_date.gt of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property conditions.order_place_date.lte of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property conditions.order_place_date.gte of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property conditions.shipment_weight.lt of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property conditions.shipment_weight.gt of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property conditions.shipment_weight.lte of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property conditions.shipment_weight.gte of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property conditions.shipment_cost.lt of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property conditions.shipment_cost.gt of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property conditions.shipment_cost.lte of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property conditions.shipment_cost.gte of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property conditions.shipment_volumetric_weight.lt of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property conditions.shipment_volumetric_weight.gt of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property conditions.shipment_volumetric_weight.lte of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property conditions.shipment_volumetric_weight.gte of schema ArithmeticOperations in response with status code 200 + - [Added] property application_id of schema CourierPartnerRuleResponse in response with status code 200 + - [Added] property company_id of schema CourierPartnerRuleResponse in response with status code 200 + - [Added] property created_by of schema CourierPartnerRuleResponse in response with status code 200 + - [Added] property id of schema CourierPartnerRuleResponse in response with status code 200 + - [Added] property modified_by of schema CourierPartnerRuleResponse in response with status code 200 + - [Added] property modified_on of schema CourierPartnerRuleResponse in response with status code 200 + - [Added] property type of schema CourierPartnerRuleResponse in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property cp_list[].name of schema CourierPartnerList in response with status code 200 + +- ##### What's Changed + - [Breaking] [Changed] cp_list[].account_id, cp_list[].extension_id, cp_list[].is_self_ship, cp_list[].name made optional in response with status code 200 + - [Breaking] [Changed] conditions, is_active, name, sort, type made optional in response with status code 200 + + +#### createCourierPartnerRule + +- ##### What's New + - [Added] Possible nullable value true to property conditions.order_place_date.lt of schema ArithmeticOperations in request body + - [Added] Possible nullable value true to property conditions.order_place_date.gt of schema ArithmeticOperations in request body + - [Added] Possible nullable value true to property conditions.order_place_date.lte of schema ArithmeticOperations in request body + - [Added] Possible nullable value true to property conditions.order_place_date.gte of schema ArithmeticOperations in request body + - [Added] Possible nullable value true to property conditions.shipment_weight.lt of schema ArithmeticOperations in request body + - [Added] Possible nullable value true to property conditions.shipment_weight.gt of schema ArithmeticOperations in request body + - [Added] Possible nullable value true to property conditions.shipment_weight.lte of schema ArithmeticOperations in request body + - [Added] Possible nullable value true to property conditions.shipment_weight.gte of schema ArithmeticOperations in request body + - [Added] Possible nullable value true to property conditions.shipment_cost.lt of schema ArithmeticOperations in request body + - [Added] Possible nullable value true to property conditions.shipment_cost.gt of schema ArithmeticOperations in request body + - [Added] Possible nullable value true to property conditions.shipment_cost.lte of schema ArithmeticOperations in request body + - [Added] Possible nullable value true to property conditions.shipment_cost.gte of schema ArithmeticOperations in request body + - [Added] Possible nullable value true to property conditions.shipment_volumetric_weight.lt of schema ArithmeticOperations in request body + - [Added] Possible nullable value true to property conditions.shipment_volumetric_weight.gt of schema ArithmeticOperations in request body + - [Added] Possible nullable value true to property conditions.shipment_volumetric_weight.lte of schema ArithmeticOperations in request body + - [Added] Possible nullable value true to property conditions.shipment_volumetric_weight.gte of schema ArithmeticOperations in request body + - [Added] property cp_list[].scheme_rules of schema CourierPartnerRuleCPListResponse in response with status code 200 + - [Added] Possible nullable value true to property conditions.order_place_date.lt of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property conditions.order_place_date.gt of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property conditions.order_place_date.lte of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property conditions.order_place_date.gte of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property conditions.shipment_weight.lt of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property conditions.shipment_weight.gt of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property conditions.shipment_weight.lte of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property conditions.shipment_weight.gte of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property conditions.shipment_cost.lt of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property conditions.shipment_cost.gt of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property conditions.shipment_cost.lte of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property conditions.shipment_cost.gte of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property conditions.shipment_volumetric_weight.lt of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property conditions.shipment_volumetric_weight.gt of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property conditions.shipment_volumetric_weight.lte of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property conditions.shipment_volumetric_weight.gte of schema ArithmeticOperations in response with status code 200 + - [Added] property application_id of schema CourierPartnerRuleResponse in response with status code 200 + - [Added] property company_id of schema CourierPartnerRuleResponse in response with status code 200 + - [Added] property created_by of schema CourierPartnerRuleResponse in response with status code 200 + - [Added] property id of schema CourierPartnerRuleResponse in response with status code 200 + - [Added] property modified_by of schema CourierPartnerRuleResponse in response with status code 200 + - [Added] property modified_on of schema CourierPartnerRuleResponse in response with status code 200 + - [Added] property type of schema CourierPartnerRuleResponse in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property cp_list[].name of schema CourierPartnerList in request body + - [Breaking] [Deleted] property cp_list[].is_self_ship of schema CourierPartnerList in request body + - [Breaking] [Deleted] property cp_list[].name of schema CourierPartnerList in response with status code 200 + +- ##### What's Changed + - [Changed] cp_list[].is_self_ship made optional in request body + - [Changed] cp_list[].name made optional in request body + - [Breaking] [Changed] cp_list[].account_id, cp_list[].extension_id, cp_list[].is_self_ship, cp_list[].name made optional in response with status code 200 + - [Breaking] [Changed] conditions, is_active, name, sort, type made optional in response with status code 200 + + +#### getCourierPartnerRules + +- ##### What's New + - [Added] property items[].cp_list[].scheme_rules of schema CourierPartnerRuleCPListResponse in response with status code 200 + - [Added] Possible nullable value true to property items[].conditions.order_place_date.lt of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property items[].conditions.order_place_date.gt of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property items[].conditions.order_place_date.lte of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property items[].conditions.order_place_date.gte of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property items[].conditions.shipment_weight.lt of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property items[].conditions.shipment_weight.gt of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property items[].conditions.shipment_weight.lte of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property items[].conditions.shipment_weight.gte of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property items[].conditions.shipment_cost.lt of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property items[].conditions.shipment_cost.gt of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property items[].conditions.shipment_cost.lte of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property items[].conditions.shipment_cost.gte of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property items[].conditions.shipment_volumetric_weight.lt of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property items[].conditions.shipment_volumetric_weight.gt of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property items[].conditions.shipment_volumetric_weight.lte of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property items[].conditions.shipment_volumetric_weight.gte of schema ArithmeticOperations in response with status code 200 + - [Added] property items[].application_id of schema CourierPartnerRuleResponse in response with status code 200 + - [Added] property items[].company_id of schema CourierPartnerRuleResponse in response with status code 200 + - [Added] property items[].created_by of schema CourierPartnerRuleResponse in response with status code 200 + - [Added] property items[].id of schema CourierPartnerRuleResponse in response with status code 200 + - [Added] property items[].modified_by of schema CourierPartnerRuleResponse in response with status code 200 + - [Added] property items[].modified_on of schema CourierPartnerRuleResponse in response with status code 200 + - [Added] property items[].type of schema CourierPartnerRuleResponse in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property items[].cp_list[].name of schema CourierPartnerList in response with status code 200 + +- ##### What's Changed + - [Breaking] [Changed] items[].cp_list[].account_id, items[].cp_list[].extension_id, items[].cp_list[].is_self_ship, items[].cp_list[].name made optional in response with status code 200 + - [Breaking] [Changed] items[].conditions, items[].is_active, items[].name, items[].sort, items[].type made optional in response with status code 200 + + +#### getStoreRules + +- ##### What's New + - [Added] Possible nullable value true to property items[].conditions.order_place_date.lt of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property items[].conditions.order_place_date.gt of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property items[].conditions.order_place_date.lte of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property items[].conditions.order_place_date.gte of schema ArithmeticOperations in response with status code 200 + + +#### createStoreRules + +- ##### What's New + - [Added] Possible nullable value true to property conditions.order_place_date.lt of schema ArithmeticOperations in request body + - [Added] Possible nullable value true to property conditions.order_place_date.gt of schema ArithmeticOperations in request body + - [Added] Possible nullable value true to property conditions.order_place_date.lte of schema ArithmeticOperations in request body + - [Added] Possible nullable value true to property conditions.order_place_date.gte of schema ArithmeticOperations in request body + - [Added] Possible nullable value true to property conditions.order_place_date.lt of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property conditions.order_place_date.gt of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property conditions.order_place_date.lte of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property conditions.order_place_date.gte of schema ArithmeticOperations in response with status code 200 + + +#### getStoreRule + +- ##### What's New + - [Added] Possible nullable value true to property conditions.order_place_date.lt of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property conditions.order_place_date.gt of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property conditions.order_place_date.lte of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property conditions.order_place_date.gte of schema ArithmeticOperations in response with status code 200 + + +#### updateStoreRules + +- ##### What's New + - [Added] Possible nullable value true to property conditions.order_place_date.lt of schema ArithmeticOperations in request body + - [Added] Possible nullable value true to property conditions.order_place_date.gt of schema ArithmeticOperations in request body + - [Added] Possible nullable value true to property conditions.order_place_date.lte of schema ArithmeticOperations in request body + - [Added] Possible nullable value true to property conditions.order_place_date.gte of schema ArithmeticOperations in request body + - [Added] Possible nullable value true to property conditions.order_place_date.lt of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property conditions.order_place_date.gt of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property conditions.order_place_date.lte of schema ArithmeticOperations in response with status code 200 + - [Added] Possible nullable value true to property conditions.order_place_date.gte of schema ArithmeticOperations in response with status code 200 + + +### Order + + + +#### getAnnouncements + +- ##### What's New + - [Added] property status of schema AnnouncementsResponse in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property message of schema AnnouncementsResponse in response with status code 200 + + +#### updateShipmentStatus + +- ##### What's New + - [Added] property resume_tasks_after_unlock of schema UpdateShipmentStatusRequestSchema in request body + + +#### getRoleBasedActions + +- ##### What's Deprecated + - [Deleted] Value format from int32 from property status of schema ErrorResponse in response with status code 4XX + - [Breaking] [Deleted] Possible nullable value from true from property status of schema ErrorResponse in response with status code 4XX + - [Breaking] [Deleted] property success of schema ErrorResponse in response with status code 4XX + - [Breaking] [Deleted] Possible nullable value from true from property message of schema ErrorResponse in response with status code 4XX + - [Breaking] [Deleted] property error_trace of schema ErrorResponse in response with status code 4XX + - [Breaking] [Deleted] property error of schema ErrorResponse in response with status code 4XX + +- ##### What's Changed + - [Breaking] [Changed] message made optional in response with status code 4XX + + +#### getShipmentHistory + +- ##### What's New + - [Breaking] [Added] Possible values activity_status,activity_escalation,activity_comment,outbound_notification,outbound_voice to property activity_history[].type of schema HistoryDict in response with status code 200 + - [Added] property activity_history[].created_ts of schema HistoryDict in response with status code 200 + + +#### postShipmentHistory + +- ##### What's New + - [Breaking] [Added] Possible values activity_status,activity_escalation,activity_comment,outbound_notification,outbound_voice to property activity_history[].type of schema HistoryDict in response with status code 200 + - [Added] property activity_history[].created_ts of schema HistoryDict in response with status code 200 + + +#### sendSmsNinja + +- ##### What's New + - [Added] property message of schema BaseResponse in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property result of schema OrderStatusResult in response with status code 200 + +- ##### What's Changed + - [Breaking] [Changed] Type from string to boolean of property success of schema OrderStatusResult in response with status code 200 + - [Breaking] [Changed] success made optional in response with status code 200 + + +#### updatePackagingDimensions + +- ##### What's New + - [Added] Possible nullable value true to property error of schema UpdatePackingErrorResponse in response with status code 4XX + +- ##### What's Deprecated + - [Breaking] [Deleted] property success of schema ErrorResponse in response with status code 4XX + - [Breaking] [Deleted] property message of schema ErrorResponse in response with status code 4XX + - [Breaking] [Deleted] property error_trace of schema ErrorResponse in response with status code 4XX + +- ##### What's Changed + - [Breaking] [Changed] Type from string to number of property dimension[].weight of schema Dimension in request body + - [Breaking] [Changed] Type from string to number of property dimension[].height of schema Dimension in request body + - [Breaking] [Changed] message made optional in response with status code 4XX + + +#### createOrder + +- ##### What's New + - [Added] properties shipments[].line_items[].charges[].amount.currency, shipments[].line_items[].charges[].amount.value in request body + - [Breaking] [Added] Possible values HomeDelivery,PickAtStore to property shipments[].order_type of schema Shipment in request body + - [Breaking] [Added] Possible values delivery,pickup to property shipping_info.shipping_type of schema ShippingInfo in request body + - [Added] properties shipping_info.geo_location.latitude, shipping_info.geo_location.longitude in request body + - [Breaking] [Added] Possible values home,office,other to property shipping_info.address_type of schema ShippingInfo in request body + - [Added] property billing_info.shipping_type of schema ShippingInfo in request body + - [Added] property billing_info.geo_location of schema ShippingInfo in request body + - [Added] property billing_info.address_type of schema ShippingInfo in request body + - [Added] property billing_info.slot of schema ShippingInfo in request body + - [Added] properties charges[].amount.currency, charges[].amount.value in request body + - [Added] properties config.dp_configuration, config.integration_type, config.location_reassignment, config.payment, config.optimal_shipment_creation in request body + - [Breaking] [Added] config.dp_configuration made required in request body + - [Added] property payment_info.payment_mode of schema PaymentInfo in request body + - [Breaking] [Added] Possible values platform-pos,platform-site,openapi,marketplace to property order_platform of schema CreateOrderAPI in request body + - [Added] property order_type of schema CreateOrderAPI in request body + - [Added] property fynd_order_id of schema CreateOrderAPI in request body + - [Added] property application_id of schema CreateOrderAPI in request body + - [Added] property external_shipment_id of schema CreateOrderAPI in request body + - [Breaking] [Added] shipping_info made required in request body + - [Added] property success of schema CreateOrderErrorReponse in response with status code 4XX + - [Added] property errors of schema CreateOrderErrorReponse in response with status code 4XX + - [Added] property status_code of schema CreateOrderErrorReponse in response with status code 4XX + - [Added] property fynd_order_id of schema CreateOrderErrorReponse in response with status code 4XX + - [Added] property success of schema CreateOrderErrorReponse in response with status code 5XX + - [Added] property errors of schema CreateOrderErrorReponse in response with status code 5XX + - [Added] property status_code of schema CreateOrderErrorReponse in response with status code 5XX + - [Added] property fynd_order_id of schema CreateOrderErrorReponse in response with status code 5XX + +- ##### What's Deprecated + - [Breaking] [Deleted] property request_id of schema CreateOrderErrorReponse in response with status code 4XX + - [Breaking] [Deleted] property status of schema CreateOrderErrorReponse in response with status code 4XX + - [Breaking] [Deleted] property info of schema CreateOrderErrorReponse in response with status code 4XX + - [Breaking] [Deleted] property stack_trace of schema CreateOrderErrorReponse in response with status code 4XX + - [Breaking] [Deleted] property code of schema CreateOrderErrorReponse in response with status code 4XX + - [Breaking] [Deleted] property meta of schema CreateOrderErrorReponse in response with status code 4XX + - [Breaking] [Deleted] property message of schema CreateOrderErrorReponse in response with status code 4XX + - [Breaking] [Deleted] property exception of schema CreateOrderErrorReponse in response with status code 4XX + - [Breaking] [Deleted] property request_id of schema CreateOrderErrorReponse in response with status code 5XX + - [Breaking] [Deleted] property status of schema CreateOrderErrorReponse in response with status code 5XX + - [Breaking] [Deleted] property info of schema CreateOrderErrorReponse in response with status code 5XX + - [Breaking] [Deleted] property stack_trace of schema CreateOrderErrorReponse in response with status code 5XX + - [Breaking] [Deleted] property code of schema CreateOrderErrorReponse in response with status code 5XX + - [Breaking] [Deleted] property meta of schema CreateOrderErrorReponse in response with status code 5XX + - [Breaking] [Deleted] property message of schema CreateOrderErrorReponse in response with status code 5XX + - [Breaking] [Deleted] property exception of schema CreateOrderErrorReponse in response with status code 5XX + +- ##### What's Changed + - [Breaking] [Changed] shipments[].location_id made optional in request body + - [Breaking] [Changed] message, status made optional in response with status code 4XX + - [Breaking] [Changed] message, status made optional in response with status code 5XX + + +#### getChannelConfig + +- ##### What's Deprecated + - [Breaking] [Deleted] method getChannelConfig + + + +#### createChannelConfig + +- ##### What's Deprecated + - [Breaking] [Deleted] method createChannelConfig + + + +#### orderUpdate + +- ##### What's New + - [Added] property status of schema ResponseDetail in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property message[] of schema ResponseDetail in response with status code 200 + +- ##### What's Changed + - [Breaking] [Changed] Type from array to string of property message of schema ResponseDetail in response with status code 200 + + +#### checkOrderStatus + +- ##### What's New + - [Added] property order_details[].start_date of schema FyndOrderIdList in request body + - [Added] property order_details[].end_date of schema FyndOrderIdList in request body + - [Added] property order_details[].mobile of schema FyndOrderIdList in request body + - [Added] property result[].text of schema OrderStatusData in response with status code 200 + - [Added] property result[].value of schema OrderStatusData in response with status code 200 + - [Added] property result[].color_code of schema OrderStatusData in response with status code 200 + - [Added] property result[].expected_delivery_date of schema OrderStatusData in response with status code 200 + - [Added] Response with status 4XX + - [Added] Response with status 5XX + +- ##### What's Deprecated + - [Breaking] [Deleted] property start_date of schema OrderStatus in request body + - [Breaking] [Deleted] property end_date of schema OrderStatus in request body + - [Breaking] [Deleted] property mobile of schema OrderStatus in request body + +- ##### What's Changed + - [Changed] end_date, mobile, start_date made optional in request body + + +#### fetchCreditBalanceDetail + +- ##### What's Deprecated + - [Breaking] [Deleted] method fetchCreditBalanceDetail + + + +#### fetchRefundModeConfig + +- ##### What's New + - [Added] property data[].format of schema RefundModeInfo in response with status code 200 + - [Added] property status of schema RefundModeConfigResponsePayload in response with status code 200 + - [Added] property message of schema RefundModeConfigResponsePayload in response with status code 200 + +- ##### What's Changed + - [Breaking] [Changed] Type from string to number of property customer_mobile_number of schema RefundModeConfigRequestPayload in request body + + +#### sendUserMobileOTP + +- ##### What's New + - [Added] property status of schema SendUserMobileOtpResponse in response with status code 200 + +- ##### What's Deprecated + - [Deleted] Value format from int32 from property data.mobile of schema PointBlankOtpData in response with status code 200 + +- ##### What's Changed + - [Breaking] [Changed] Type from string to number of property mobile of schema SendUserMobileOTP in request body + + +#### downloadLanesReport + +- ##### What's New + - [Added] property custom_headers[] of schema BulkReportsDownloadRequest in request body + - [Breaking] [Added] Possible values shipment_statuses,shipment_statuses_with_store_ids,fetch_by_filter_type to property report_type of schema BulkReportsDownloadRequest in request body + +- ##### What's Changed + - [Breaking] [Changed] Type from string to array of property custom_headers of schema BulkReportsDownloadRequest in request body + + +#### bulkListing + +- ##### What's New + - [Breaking] [Added] Possible values a4,a6,pos to property data[].invoice_document_type of schema BulkActionListingData in response with status code 200 + - [Breaking] [Added] Possible values a4,a6,pos to property data[].label_document_type of schema BulkActionListingData in response with status code 200 + - [Breaking] [Added] Possible values COMPLETED,FAILED,PARTIALLY COMPLETED,PROCESSING to property data[].status of schema BulkActionListingData in response with status code 200 + - [Breaking] [Added] Possible values order_processing,reports,invoice_label to property data[].bulk_action_type of schema BulkActionListingData in response with status code 200 + - [Breaking] [Added] Possible values yet_to_initiate,initiated,initiated_but_failed,success,failed to property data[].invoice_status of schema BulkActionListingData in response with status code 200 + - [Added] property data[].invoicelabel_document_type of schema BulkActionListingData in response with status code 200 + - [Added] property data[].failed_sh_count of schema BulkActionListingData in response with status code 200 + - [Added] property data[].successful_sh_count of schema BulkActionListingData in response with status code 200 + - [Added] property data[].total_count of schema BulkActionListingData in response with status code 200 + - [Added] property data[].failed_shipments of schema BulkActionListingData in response with status code 200 + - [Added] property data[].successful_invoiced_count of schema BulkActionListingData in response with status code 200 + - [Added] property data[].failed_invoiced_count of schema BulkActionListingData in response with status code 200 + - [Added] property data[].total_invoiced_count of schema BulkActionListingData in response with status code 200 + + +#### getManifestShipments + +- ##### What's New + - [Added] total_count made required in response with status code 200 + +- ##### What's Deprecated + - [Deleted] Value format from int32 from property status of schema ErrorResponse in response with status code 4XX + - [Breaking] [Deleted] Possible nullable value from true from property status of schema ErrorResponse in response with status code 4XX + - [Breaking] [Deleted] property success of schema ErrorResponse in response with status code 4XX + - [Breaking] [Deleted] property message of schema ErrorResponse in response with status code 4XX + - [Breaking] [Deleted] property error_trace of schema ErrorResponse in response with status code 4XX + +- ##### What's Changed + - [Breaking] [Changed] Type from integer to boolean of property status of schema ErrorResponse in response with status code 4XX + - [Breaking] [Changed] message made optional in response with status code 4XX + + +#### getManifests + +- ##### What's New + - [Breaking] [Added] Possible values save,process,pdf_generated,invalidate,pdf_failed,complete to property items[].status of schema Manifest in response with status code 200 + +- ##### What's Deprecated + - [Deleted] Value format from int32 from property status of schema ErrorResponse in response with status code 4XX + - [Breaking] [Deleted] Possible nullable value from true from property status of schema ErrorResponse in response with status code 4XX + - [Breaking] [Deleted] property success of schema ErrorResponse in response with status code 4XX + - [Breaking] [Deleted] property message of schema ErrorResponse in response with status code 4XX + - [Breaking] [Deleted] property error_trace of schema ErrorResponse in response with status code 4XX + - [Deleted] Value format from int32 from property status of schema ErrorResponse in response with status code 5XX + - [Breaking] [Deleted] Possible nullable value from true from property status of schema ErrorResponse in response with status code 5XX + - [Breaking] [Deleted] property success of schema ErrorResponse in response with status code 5XX + - [Breaking] [Deleted] property message of schema ErrorResponse in response with status code 5XX + - [Breaking] [Deleted] property error_trace of schema ErrorResponse in response with status code 5XX + +- ##### What's Changed + - [Breaking] [Changed] Type from integer to boolean of property status of schema ErrorResponse in response with status code 4XX + - [Breaking] [Changed] message made optional in response with status code 4XX + - [Breaking] [Changed] Type from integer to boolean of property status of schema ErrorResponse in response with status code 5XX + - [Breaking] [Changed] message made optional in response with status code 5XX + - [Changed] Path From /service/platform/order-manage/v1.0/company/{company_id}/manifests To /service/platform/order-manage/v1.0/company/{company_id}/manifest/listing + + +#### processManifests + +- ##### What's Deprecated + - [Breaking] [Deleted] method processManifests + + + +#### getManifestDetails + +- ##### What's New + - [Added] query parameter dpIds (type: string) + + - [Added] query parameter endDate (type: string) + + - [Added] query parameter startDate (type: string) + + - [Added] query parameter pageNo (type: integer) + + - [Added] query parameter pageSize (type: integer) + + - [Breaking] [Added] Possible values save,process,pdf_generated,invalidate,pdf_failed,complete to property manifest_details[].status of schema Manifest in response with status code 200 + +- ##### What's Deprecated + - [Deleted] Value format from int32 from property status of schema ErrorResponse in response with status code 4XX + - [Breaking] [Deleted] Possible nullable value from true from property status of schema ErrorResponse in response with status code 4XX + - [Breaking] [Deleted] property success of schema ErrorResponse in response with status code 4XX + - [Breaking] [Deleted] property message of schema ErrorResponse in response with status code 4XX + - [Breaking] [Deleted] property error_trace of schema ErrorResponse in response with status code 4XX + - [Deleted] Value format from int32 from property status of schema ErrorResponse in response with status code 5XX + - [Breaking] [Deleted] Possible nullable value from true from property status of schema ErrorResponse in response with status code 5XX + - [Breaking] [Deleted] property success of schema ErrorResponse in response with status code 5XX + - [Breaking] [Deleted] property message of schema ErrorResponse in response with status code 5XX + - [Breaking] [Deleted] property error_trace of schema ErrorResponse in response with status code 5XX + +- ##### What's Changed + - [Breaking] [Changed] location from path to query of parameter manifestId + - [Breaking] [Changed] Type from integer to boolean of property status of schema ErrorResponse in response with status code 4XX + - [Breaking] [Changed] message made optional in response with status code 4XX + - [Breaking] [Changed] Type from integer to boolean of property status of schema ErrorResponse in response with status code 5XX + - [Breaking] [Changed] message made optional in response with status code 5XX + - [Changed] Path From /service/platform/order-manage/v1.0/company/{company_id}/manifests/{manifest_id} To /service/platform/order-manage/v1.0/company/{company_id}/manifest/details + + +#### dispatchManifests + +- ##### What's Deprecated + - [Deleted] Value format from int32 from property status of schema ErrorResponse in response with status code 4XX + - [Breaking] [Deleted] Possible nullable value from true from property status of schema ErrorResponse in response with status code 4XX + - [Breaking] [Deleted] property success of schema ErrorResponse in response with status code 4XX + - [Breaking] [Deleted] property message of schema ErrorResponse in response with status code 4XX + - [Breaking] [Deleted] property error_trace of schema ErrorResponse in response with status code 4XX + +- ##### What's Changed + - [Breaking] [Changed] Type from integer to boolean of property status of schema ErrorResponse in response with status code 4XX + - [Breaking] [Changed] message made optional in response with status code 4XX + + +#### uploadConsents + +- ##### What's Deprecated + - [Breaking] [Deleted] Required path parameter manifestId (type: string) + + - [Deleted] Value format from int32 from property status of schema ErrorResponse in response with status code 4XX + - [Breaking] [Deleted] Possible nullable value from true from property status of schema ErrorResponse in response with status code 4XX + - [Breaking] [Deleted] property success of schema ErrorResponse in response with status code 4XX + - [Breaking] [Deleted] property message of schema ErrorResponse in response with status code 4XX + - [Breaking] [Deleted] property error_trace of schema ErrorResponse in response with status code 4XX + +- ##### What's Changed + - [Breaking] [Changed] Type from integer to boolean of property status of schema ErrorResponse in response with status code 4XX + - [Breaking] [Changed] message made optional in response with status code 4XX + - [Changed] Path From /service/platform/order-manage/v1.0/company/{company_id}/manifest/{manifest_id}/upload-consent To /service/platform/order-manage/v1.0/company/{company_id}/manifest/uploadConsent + + +#### getManifestfilters + +- ##### What's New + - [Breaking] [Added] Possible values multi_select,single_select to property advance_filter[].type of schema FiltersInfo in response with status code 200 + - [Breaking] [Added] Possible values multi_select,single_select to property global_filter[].type of schema FiltersInfo in response with status code 200 + + +#### trackShipment + +- ##### What's New + - [Added] property exception of schema ExceptionErrorResponse in response with status code 4XX + - [Added] property stack_trace of schema ExceptionErrorResponse in response with status code 4XX + +- ##### What's Deprecated + - [Breaking] [Deleted] property status of schema ErrorResponse in response with status code 4XX + - [Breaking] [Deleted] property success of schema ErrorResponse in response with status code 4XX + - [Breaking] [Deleted] Possible nullable value from true from property message of schema ErrorResponse in response with status code 4XX + - [Breaking] [Deleted] property error_trace of schema ErrorResponse in response with status code 4XX + - [Breaking] [Deleted] property error of schema ErrorResponse in response with status code 4XX + +- ##### What's Changed + - [Breaking] [Changed] message made optional in response with status code 4XX + + +#### updateShipmentTracking + +- ##### What's New + - [Added] property exception of schema ExceptionErrorResponse in response with status code 4XX + - [Added] property stack_trace of schema ExceptionErrorResponse in response with status code 4XX + +- ##### What's Deprecated + - [Breaking] [Deleted] property status of schema ErrorResponse in response with status code 4XX + - [Breaking] [Deleted] property success of schema ErrorResponse in response with status code 4XX + - [Breaking] [Deleted] Possible nullable value from true from property message of schema ErrorResponse in response with status code 4XX + - [Breaking] [Deleted] property error_trace of schema ErrorResponse in response with status code 4XX + - [Breaking] [Deleted] property error of schema ErrorResponse in response with status code 4XX + +- ##### What's Changed + - [Breaking] [Changed] message made optional in response with status code 4XX + + +#### generateProcessManifest + +- ##### What's New + - [Breaking] [Added] Possible values save,process to property action of schema ProcessManifestRequest in request body + - [Breaking] [Added] action, unique_id, filters made required in request body + - [Breaking] [Added] Possible values save,process to property items.action of schema ManifestItems in response with status code 200 + + +#### getShipments + +- ##### What's New + - [Added] property items[].is_lapa_enabled of schema ShipmentItem in response with status code 200 + + +#### getShipmentById + +- ##### What's New + - [Added] property shipments[].order_status of schema PlatformShipment in response with status code 200 + - [Added] property shipments[].is_lapa_enabled of schema PlatformShipment in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property shipments[].affiliate_details.config.app of schema AffiliateConfig in response with status code 200 + - [Breaking] [Deleted] property shipments[].affiliate_details.config.inventory of schema AffiliateConfig in response with status code 200 + + +#### getOrderById + +- ##### What's New + - [Added] property shipments[].order_status of schema PlatformShipment in response with status code 200 + - [Added] property shipments[].is_lapa_enabled of schema PlatformShipment in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property shipments[].affiliate_details.config.app of schema AffiliateConfig in response with status code 200 + - [Breaking] [Deleted] property shipments[].affiliate_details.config.inventory of schema AffiliateConfig in response with status code 200 + + +#### getOrders + +- ##### What's New + - [Added] property items[].shipments[].order_status of schema PlatformShipment in response with status code 200 + - [Added] property items[].shipments[].is_lapa_enabled of schema PlatformShipment in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property items[].shipments[].affiliate_details.config.app of schema AffiliateConfig in response with status code 200 + - [Breaking] [Deleted] property items[].shipments[].affiliate_details.config.inventory of schema AffiliateConfig in response with status code 200 + + +#### getApplicationShipments + +- ##### What's New + - [Added] property items[].is_lapa_enabled of schema ShipmentItem in response with status code 200 + + +#### getfilters + +- ##### What's New + - [Breaking] [Added] Possible values multi_select,single_select to property advance_filter.returned[].type of schema FiltersInfo in response with status code 200 + - [Breaking] [Added] Possible values multi_select,single_select to property advance_filter.action_centre[].type of schema FiltersInfo in response with status code 200 + - [Breaking] [Added] Possible values multi_select,single_select to property advance_filter.unfulfilled[].type of schema FiltersInfo in response with status code 200 + - [Breaking] [Added] Possible values multi_select,single_select to property advance_filter.filters[].type of schema FiltersInfo in response with status code 200 + - [Breaking] [Added] Possible values multi_select,single_select to property advance_filter.processed[].type of schema FiltersInfo in response with status code 200 + - [Breaking] [Added] Possible values multi_select,single_select to property global_filter[].type of schema FiltersInfo in response with status code 200 + + +#### getBagById + +- ##### What's New + - [Added] property data.bag_status_history[] of schema BagDetails in response with status code 200 + - [Added] properties data.shipment.line_items[].charges[].amount.currency, data.shipment.line_items[].charges[].amount.value in response with status code 200 + - [Breaking] [Added] Possible values HomeDelivery,PickAtStore to property data.shipment.order_type of schema Shipment in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property data.affiliate_details.config.app of schema AffiliateConfig in response with status code 200 + - [Breaking] [Deleted] property data.affiliate_details.config.inventory of schema AffiliateConfig in response with status code 200 + - [Breaking] [Deleted] properties data.bag_status_history.forward, data.bag_status_history.store_id, data.bag_status_history.delivery_awb_number, data.bag_status_history.kafka_sync, data.bag_status_history.delivery_partner_id, data.bag_status_history.app_display_name, data.bag_status_history.state_id, data.bag_status_history.state_type, data.bag_status_history.bsh_id, data.bag_status_history.created_at, data.bag_status_history.created_ts, data.bag_status_history.shipment_id, data.bag_status_history.updated_at, data.bag_status_history.updated_ts, data.bag_status_history.bag_state_mapper, data.bag_status_history.bag_id, data.bag_status_history.reasons, data.bag_status_history.status, data.bag_status_history.display_name in response with status code 200 + - [Breaking] [Deleted] properties data.item.attributes.primary_material, data.item.attributes.essential, data.item.attributes.marketer_name, data.item.attributes.primary_color, data.item.attributes.marketer_address, data.item.attributes.primary_color_hex, data.item.attributes.brand_name, data.item.attributes.name, data.item.attributes.gender in response with status code 200 + - [Breaking] [Deleted] property data.shipment_details.box_type of schema ShipmentDetails in response with status code 200 + - [Breaking] [Deleted] property data.shipment_details.shipments of schema ShipmentDetails in response with status code 200 + - [Breaking] [Deleted] property data.shipment_details.fulfillment_id of schema ShipmentDetails in response with status code 200 + - [Breaking] [Deleted] property data.shipment_details.articles of schema ShipmentDetails in response with status code 200 + - [Deleted] Value format from int32 from property data.shipment_details.dp_id of schema ShipmentDetails in response with status code 200 + - [Breaking] [Deleted] property data.shipment_details.meta of schema ShipmentDetails in response with status code 200 + - [Breaking] [Deleted] property data.shipment_details.affiliate_shipment_id of schema ShipmentDetails in response with status code 200 + +- ##### What's Changed + - [Breaking] [Changed] Type from object to array of property data.bag_status_history of schema BagStatusHistory in response with status code 200 + - [Breaking] [Changed] data.bag_status_history.status made optional in response with status code 200 + - [Breaking] [Changed] data.shipment.location_id made optional in response with status code 200 + - [Breaking] [Changed] data.shipment_details.affiliate_shipment_id, data.shipment_details.articles, data.shipment_details.fulfillment_id, data.shipment_details.shipments made optional in response with status code 200 + + +#### getBags + +- ##### What's New + - [Added] property data.items[].bag_status_history[] of schema BagDetails in response with status code 200 + - [Added] properties data.items[].shipment.line_items[].charges[].amount.currency, data.items[].shipment.line_items[].charges[].amount.value in response with status code 200 + - [Breaking] [Added] Possible values HomeDelivery,PickAtStore to property data.items[].shipment.order_type of schema Shipment in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property data.items[].affiliate_details.config.app of schema AffiliateConfig in response with status code 200 + - [Breaking] [Deleted] property data.items[].affiliate_details.config.inventory of schema AffiliateConfig in response with status code 200 + - [Breaking] [Deleted] properties data.items[].bag_status_history.forward, data.items[].bag_status_history.store_id, data.items[].bag_status_history.delivery_awb_number, data.items[].bag_status_history.kafka_sync, data.items[].bag_status_history.delivery_partner_id, data.items[].bag_status_history.app_display_name, data.items[].bag_status_history.state_id, data.items[].bag_status_history.state_type, data.items[].bag_status_history.bsh_id, data.items[].bag_status_history.created_at, data.items[].bag_status_history.created_ts, data.items[].bag_status_history.shipment_id, data.items[].bag_status_history.updated_at, data.items[].bag_status_history.updated_ts, data.items[].bag_status_history.bag_state_mapper, data.items[].bag_status_history.bag_id, data.items[].bag_status_history.reasons, data.items[].bag_status_history.status, data.items[].bag_status_history.display_name in response with status code 200 + - [Breaking] [Deleted] properties data.items[].item.attributes.primary_material, data.items[].item.attributes.essential, data.items[].item.attributes.marketer_name, data.items[].item.attributes.primary_color, data.items[].item.attributes.marketer_address, data.items[].item.attributes.primary_color_hex, data.items[].item.attributes.brand_name, data.items[].item.attributes.name, data.items[].item.attributes.gender in response with status code 200 + - [Breaking] [Deleted] property data.items[].shipment_details.box_type of schema ShipmentDetails in response with status code 200 + - [Breaking] [Deleted] property data.items[].shipment_details.shipments of schema ShipmentDetails in response with status code 200 + - [Breaking] [Deleted] property data.items[].shipment_details.fulfillment_id of schema ShipmentDetails in response with status code 200 + - [Breaking] [Deleted] property data.items[].shipment_details.articles of schema ShipmentDetails in response with status code 200 + - [Deleted] Value format from int32 from property data.items[].shipment_details.dp_id of schema ShipmentDetails in response with status code 200 + - [Breaking] [Deleted] property data.items[].shipment_details.meta of schema ShipmentDetails in response with status code 200 + - [Breaking] [Deleted] property data.items[].shipment_details.affiliate_shipment_id of schema ShipmentDetails in response with status code 200 +- ##### What's Changed + - [Breaking] [Changed] Type from object to array of property data.items[].bag_status_history of schema BagStatusHistory in response with status code 200 + - [Breaking] [Changed] data.items[].bag_status_history.status made optional in response with status code 200 + - [Breaking] [Changed] data.items[].shipment.location_id made optional in response with status code 200 + - [Breaking] [Changed] data.items[].shipment_details.affiliate_shipment_id, data.items[].shipment_details.articles, data.items[].shipment_details.fulfillment_id, data.items[].shipment_details.shipments made optional in response with status code 200 -#### createPagePreview + +#### addStateManagerConfig - ##### What's New - - [Added] Possible values locate-us to property seo.breadcrumb[].action.page.type of schema PageType in request body - - [Added] Possible values locate-us to property seo.breadcrumb[].action.popup.type of schema PageType in request body - - [Added] Possible values locate-us to property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + - [Added] method addStateManagerConfig -#### updatePagePreview + +#### getStateManagerConfig - ##### What's New - - [Added] Possible values locate-us to property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + - [Added] method getStateManagerConfig -#### deletePage -- ##### What's New - - [Added] Possible values locate-us to property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 +### Payment -#### getSlideshows + +#### confirmPayment - ##### What's New - - [Added] Possible values locate-us to property items[].media[].action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property items[].media[].action.popup.type of schema PageType in response with status code 200 + - [Added] property payment_methods[].meta.payment_gateway_slug of schema MultiTenderPaymentMeta in request body -#### createSlideshow +#### setUserCODlimitRoutes - ##### What's New - - [Added] Possible values locate-us to property media.action.page.type of schema PageType in request body - - [Added] Possible values locate-us to property media.action.popup.type of schema PageType in request body - - [Added] Possible values locate-us to property media[].action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property media[].action.popup.type of schema PageType in response with status code 200 + - [Added] property business_unit of schema SetCODForUserRequest in request body -#### getSlideshowBySlug +#### resendOrCancelPayment - ##### What's New - - [Added] Possible values locate-us to property media[].action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property media[].action.popup.type of schema PageType in response with status code 200 + - [Added] property data.is_payment_done of schema LinkStatus in response with status code 200 -#### updateSlideshow +#### verifyCustomerForPayment -- ##### What's New - - [Added] Possible values locate-us to property media.action.page.type of schema PageType in request body - - [Added] Possible values locate-us to property media.action.popup.type of schema PageType in request body - - [Added] Possible values locate-us to property media[].action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property media[].action.popup.type of schema PageType in response with status code 200 +- ##### What's Changed + - [Breaking] [Changed] data made optional in response with status code 200 -#### deleteSlideshow +#### getPaymentSession - ##### What's New - - [Added] Possible values locate-us to property media[].action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property media[].action.popup.type of schema PageType in response with status code 200 + - [Added] property cart_details.custom_cart_meta of schema CartDetailsSerializer in response with status code 200 -#### getBlogBySlug +### Theme + + + +#### getAllPages - ##### What's New - - [Added] Possible values locate-us to property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property pages[].seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property pages[].seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property pages[].seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property pages[].seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 #### createPage @@ -408,12 +19533,37 @@ - [Added] Possible values locate-us to property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 - [Added] Possible values locate-us to property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.page.type of schema PageType in request body + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.popup.type of schema PageType in request body + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + -#### getPages +#### updateMultiplePages - ##### What's New - - [Added] Possible values locate-us to property items[].seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property items[].seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property pages[].seo.breadcrumb[].action.page.type of schema PageType in request body + - [Added] Possible values locate-us to property pages[].seo.breadcrumb[].action.popup.type of schema PageType in request body + - [Added] Possible values locate-us to property pages[].seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property pages[].seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property pages[].seo.breadcrumb[].action.page.type of schema PageType in request body + - [Breaking] [Deleted] Possible nullable value from true from property pages[].seo.breadcrumb[].action.popup.type of schema PageType in request body + - [Breaking] [Deleted] Possible nullable value from true from property pages[].seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property pages[].seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + + +#### getPage + +- ##### What's New + - [Added] Possible values locate-us to property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Added] Possible values locate-us to property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 #### updatePage @@ -424,104 +19574,165 @@ - [Added] Possible values locate-us to property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 - [Added] Possible values locate-us to property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.page.type of schema PageType in request body + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.popup.type of schema PageType in request body + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + -#### getPageBySlug +#### deletePage - ##### What's New - [Added] Possible values locate-us to property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 - [Added] Possible values locate-us to property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 +- ##### What's Deprecated + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 + - [Breaking] [Deleted] Possible nullable value from true from property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 -### Order +#### getExtensionSections +- ##### What's New + - [Added] method getExtensionSections -#### sendSmsNinja -- ##### What's New - - [Added] property result[].text of schema OrderStatusData in response with status code 200 - - [Added] property result[].value of schema OrderStatusData in response with status code 200 - - [Added] property result[].color_code of schema OrderStatusData in response with status code 200 - - [Added] property result[].expected_delivery_date of schema OrderStatusData in response with status code 200 +### User -#### checkOrderStatus + + +#### createUserSession + +- ##### What's Deprecated + - [Breaking] [Deleted] property max_age of schema CreateUserSessionRequestSchema in request body + + +### Webhook + + + +#### manualRetryOfFailedEvent + +- ##### What's Deprecated + - [Breaking] [Deleted] method manualRetryOfFailedEvent + + + +#### getEventCounts + +- ##### What's Deprecated + - [Breaking] [Deleted] method getEventCounts + + + +#### getManualRetryStatus + +- ##### What's Deprecated + - [Breaking] [Deleted] method getManualRetryStatus + + + +#### manualRetryCancel + +- ##### What's Deprecated + - [Breaking] [Deleted] method manualRetryCancel + + + +#### downloadDeliveryReport - ##### What's New - - [Added] property result[].text of schema OrderStatusData in response with status code 200 - - [Added] property result[].value of schema OrderStatusData in response with status code 200 - - [Added] property result[].color_code of schema OrderStatusData in response with status code 200 - - [Added] property result[].expected_delivery_date of schema OrderStatusData in response with status code 200 + - [Breaking] [Added] end_date, start_date made required in request body -#### getShipmentById +#### pingWebhook - ##### What's New - - [Added] property shipments[].order_status of schema PlatformShipment in response with status code 200 + - [Breaking] [Added] webhook_url made required in request body -#### getOrderById +#### getReportFilters - ##### What's New - - [Added] property shipments[].order_status of schema PlatformShipment in response with status code 200 + - [Breaking] [Added] subscriber_ids made required in request body -#### getOrders +#### getHistoricalReports - ##### What's New - - [Added] property items[].shipments[].order_status of schema PlatformShipment in response with status code 200 + - [Breaking] [Added] type made required in request body -### Theme +#### getDeliveryReports +- ##### What's New + - [Breaking] [Added] end_date, start_date made required in request body -#### getAllPages +#### registerSubscriberToEventV2 - ##### What's New - - [Added] Possible values locate-us to property pages[].seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property pages[].seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + - [Breaking] [Added] Type object to property of schema SubscriberConfigPostRequestV2 in request body + - [Breaking] [Added] provider, association, status, email_id, name, events made required in request body + +- ##### What's Deprecated + - [Breaking] [Deleted] property id of schema SubscriberConfigRequestV2 in request body + - [Breaking] [Deleted] property association.company_id of schema Association in request body -#### createPage +#### updateSubscriberV2 - ##### What's New - - [Added] Possible values locate-us to property seo.breadcrumb[].action.page.type of schema PageType in request body - - [Added] Possible values locate-us to property seo.breadcrumb[].action.popup.type of schema PageType in request body - - [Added] Possible values locate-us to property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + - [Breaking] [Added] Type object to property of schema SubscriberConfigUpdateRequestV2 in request body + - [Breaking] [Added] id, provider, status made required in request body + +- ##### What's Deprecated + - [Breaking] [Deleted] property association.company_id of schema Association in request body -#### updateMultiplePages +#### registerSubscriberToEvent - ##### What's New - - [Added] Possible values locate-us to property pages[].seo.breadcrumb[].action.page.type of schema PageType in request body - - [Added] Possible values locate-us to property pages[].seo.breadcrumb[].action.popup.type of schema PageType in request body - - [Added] Possible values locate-us to property pages[].seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property pages[].seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + - [Breaking] [Added] Type object to property of schema SubscriberConfigPost in request body + - [Breaking] [Added] webhook_url, association, status, email_id, event_id, name made required in request body + +- ##### What's Deprecated + - [Breaking] [Deleted] property id of schema SubscriberConfig in request body + - [Breaking] [Deleted] property association.company_id of schema Association in request body -#### getPage +#### updateSubscriberConfig - ##### What's New - - [Added] Possible values locate-us to property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + - [Breaking] [Added] Type object to property of schema SubscriberConfigUpdate in request body + - [Breaking] [Added] id, event_id made required in request body + +- ##### What's Deprecated + - [Breaking] [Deleted] property association.company_id of schema Association in request body -#### updatePage +## Public Client + +- [Breaking] [Removed] Billing class from public client +- [Breaking] [Removed] Inventory class from public client + + +### Webhook + + + +#### testHandlerTransformation - ##### What's New - - [Added] Possible values locate-us to property seo.breadcrumb[].action.page.type of schema PageType in request body - - [Added] Possible values locate-us to property seo.breadcrumb[].action.popup.type of schema PageType in request body - - [Added] Possible values locate-us to property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + - [Breaking] [Added] event_name, event_type, event_category, event_version, event made required in request body -#### deletePage +#### validateSchema - ##### What's New - - [Added] Possible values locate-us to property seo.breadcrumb[].action.page.type of schema PageType in response with status code 200 - - [Added] Possible values locate-us to property seo.breadcrumb[].action.popup.type of schema PageType in response with status code 200 + - [Breaking] [Added] event_name, event_type, event_category, event_version, event, event_schema made required in request body # CHANGE LOG (1.4.12) - 1.9.4 diff --git a/README.md b/README.md index 93d56530e..a1a27fb49 100644 --- a/README.md +++ b/README.md @@ -237,7 +237,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.12-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: v1.4.15-beta.1' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8' Active Theme: Emerge ``` diff --git a/dist/application.js b/dist/application.js index 795f89796..dc846bbc9 100644 --- a/dist/application.js +++ b/dist/application.js @@ -1 +1 @@ -(()=>{var e={2675:(e,t,r)=>{const{ApplicationConfig:a,ApplicationClient:n,ApplicationModel:o}=r(3775);e.exports={ApplicationConfig:a,ApplicationClient:n,ApplicationModel:o}},5379: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;r0&&n[n.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]1e3&&(0,l.removeFromStart)(t-1e3,"flickEvents")})),[2]):[2]}))}))}t.axiosRequest=null,t.eventProcessor=null,t.client=null,t.apiKey=null,t.stelioLocal=null,t.batchExecutorID=null,t.identify=function(e,t,r){return void 0===r&&(r=!0),n(this,void 0,void 0,(function(){var n,s;return o(this,(function(o){return n=(0,l.getLocal)("userIdentity"),{},s=n?n.userID&&n.userID!==e?{anonymousID:(0,c.v4)(),userID:e}:a(a({},n),{userID:e}):{anonymousID:(0,c.v4)(),userID:e},(0,l.setLocal)("userIdentity",s),r&&d("user_login",a({event_type:"identity"},t)),[2]}))}))},t.reset=function(){return n(this,void 0,void 0,(function(){var e;return o(this,(function(t){return(0,l.deleteSteliosLocal)("userIdentity"),(0,l.deleteSteliosLocal)("apiKey"),e={anonymousID:(0,c.v4)()},(0,l.setLocal)("userIdentity",e),[2]}))}))},t.initialize=function(e,r,a){return void 0===a&&(a=15e3),n(this,void 0,void 0,(function(){return o(this,(function(n){return(0,l.initStorage)(),(0,u.axiosCreate)(e,r),t.batchExecutorID||(t.batchExecutorID=setInterval(p,a)),[2]}))}))},t.validateClient=function(e){return n(this,void 0,void 0,(function(){return o(this,(function(e){return[2,{data:{isTokenValid:"true"}}]}))}))},t.sendEvent=d},5656:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.send=void 0;var a=r(5785);t.send=function(e,t){return(0,a.post)("service/application/webhook/v1.0/click-analytics/events",e,t)}},2241:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.deleteSteliosLocal=t.removeFromStart=t.getLocal=t.ifExists=t.setLocal=t.appendLocal=t.initStorage=void 0;var a={},n={getItem:function(e){return a[e]},setItem:function(e,t){a[e]=t},removeItem:function(e){delete a[e]}};function o(e,t){try{if(!e||0==e.length||!t)return;r.setItem(e,JSON.stringify(t))}catch(e){return e}}function s(e){return!!r.getItem(e)}function i(e){if(e&&0!=e.length&&s(e)){var t=r.removeItem(e);return console.info("key ".concat(e," deleted from localStorage")),t}}t.initStorage=function(){console.log("############ inside initStorage ##############");var e="undefined"!=typeof window;r=e?window.localStorage:n},t.appendLocal=function(e,t){try{if(0==e.length||!t)return;if(!r.getItem(e))return o(e,t);var a=JSON.parse(r.getItem(e));return a.push(t),r.setItem(e,JSON.stringify(a))}catch(e){return e}},t.setLocal=o,t.ifExists=s,t.getLocal=function(e){try{return e&&0!=e.length?r.getItem(e)?JSON.parse(r.getItem(e)):{}:"null"}catch(e){return e}},t.removeFromStart=function(e,t){if(t&&0!=t.length&&s(t)){var a=JSON.parse(r.getItem(t));return e=e>a.length?a.length:e,a.splice(0,e),a&&a.length>0?(i(t),o(t,a)):i(t)}},t.deleteSteliosLocal=i},3911:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateContext=t.validate=void 0;var a=r(5785),n=r(611),o=r(7232);t.validate=function(e){return(0,a.post)("verify_token",{access_token:e},{"x-dp-access-token":e})},t.generateContext=function(e,t){return{context:{library:{name:"flick",version:"1.0.4"},os:new o.UAParser(navigator.userAgent).getOS(),timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,screen:{width:window.screen.availWidth,height:window.screen.availHeight},user_agent:navigator.userAgent||"",locale:navigator.languages&&navigator.languages.length?navigator.languages[0]:navigator.language,device:{is_mobile:/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)}},event_id:(0,n.v4)(),event_name:e,properties:t,event_timestamp:new Date,user_id:"",anonymous_id:""}}},5785: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;r0&&n[n.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1](()=>{var e={249:function(e,t,r){var a;e.exports=(a=a||function(e){var t;if("undefined"!=typeof window&&window.crypto&&(t=window.crypto),"undefined"!=typeof self&&self.crypto&&(t=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(t=globalThis.crypto),!t&&"undefined"!=typeof window&&window.msCrypto&&(t=window.msCrypto),!t&&void 0!==r.g&&r.g.crypto&&(t=r.g.crypto),!t)try{t=r(480)}catch(e){}var a=function(){if(t){if("function"==typeof t.getRandomValues)try{return t.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof t.randomBytes)try{return t.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},n=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),o={},s=o.lib={},i=s.Base={extend:function(e){var t=n(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)}},l=s.WordArray=i.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||u).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=i.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 l.init(r,t/2)}},d=c.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 l.init(r,t)}},p=c.Utf8={stringify:function(e){try{return decodeURIComponent(escape(d.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return d.parse(unescape(encodeURIComponent(e)))}},g=s.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.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),c=(i=t?e.ceil(i):e.max((0|i)-this._minBufferSize,0))*s,u=e.min(4*c,o);if(c){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,w=c[g-2],y=(w<<15|w>>>17)^(w<<13|w>>>19)^w>>>10;c[g]=f+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=f.substr(0,w),p=f.substr(w+1)):(d=f,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()},2729: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},454: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),f=r(6133),w=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 f.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,f.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 w.location?w.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(!a.errors.label)return"";if(e.label)return e.label;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 f=Object.assign({},d.manifest,u.manifest);return f.build=i.build(u.manifest&&u.manifest.build,d.manifest&&d.manifest.build),u.manifest=f,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 f={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(f.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"),f.generate(this,f.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,f.methods);for(const t in f.aliases){const r=f.aliases[t];e[t]=e[r]}return e.x=e.expression,g.setup&&g.setup(e),e}};f.methods={ValidationError:l.ValidationError,version:s.version,cache:o.provider,assert(e,t,...r){f.assert(e,t,!0,r)},attempt:(e,t,...r)=>f.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 f.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=f.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 f.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 f.aliases)e[t]=this[t]();return e}},f.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},f.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},f.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=f.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?n.push({type:s.type,report:i}):"object.base"===i.code?a.add(i.local.type):a.add(c)}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:void 0}},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","encodeUri"]),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");let i=a.exec(e);if(!i&&t.prefs.convert&&r.encodeUri){const t=encodeURI(e);i=a.exec(t),i&&(e=t)}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,f=t;const w=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],w.unshift(e);m=w[0],f=m[g]}try{const e=(e,t)=>(p||n.schema).$_createError(e,f,t,n.state,a),s=await n.method(f,{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,f,t,n.state,a)),message:(e,t)=>(p||n.schema).$_createError("external",f,t,n.state,a,{messages:e})});if(void 0===s||s===f)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",f,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 f=l.process(m.errors,e,a);return{value:m.value,error:f,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,f="(?:(?:"+c+":){0,2}"+c+")?::(?:"+c+":){2}"+u,w="(?:(?:"+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+"|"+f+"|"+w+"|"+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,U="(?:\\/\\/\\/"+j+q+")";return e.hierPart="(?:(?:\\/\\/"+k+q+")|"+S+"|"+A+"|"+U+")",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.13.3"}')}},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()},3065:function(e,t,r){var a,n;!function(){"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 f=g();null!=f&&(c=m(f)),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)}()},6663:(e,t,r)=>{"use strict";const a=r(4280),n=r(454),o=r(528),s=r(3055),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 f(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=f,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:f(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)}},528: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)]}},4280:e=>{"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},7232:function(e,t,r){var a;!function(n,o){"use strict";var s="function",i="undefined",l="object",c="string",u="major",d="model",p="name",g="type",m="vendor",f="version",w="architecture",y="console",b="mobile",h="tablet",_="smarttv",v="wearable",R="embedded",k="Amazon",P="Apple",j="ASUS",C="BlackBerry",q="Browser",S="Chrome",A="Firefox",E="Google",U="Huawei",H="LG",x="Microsoft",O="Motorola",I="Opera",$="Samsung",N="Sharp",D="Sony",W="Xiaomi",L="Zebra",T="Facebook",V="Chromium OS",B="Mac OS",F=" Browser",M=function(e){for(var t={},r=0;r0?2===i.length?typeof i[1]==s?this[i[0]]=i[1].call(this,u):this[i[0]]=i[1]:3===i.length?typeof i[1]!==s||i[1].exec&&i[1].test?this[i[0]]=u?u.replace(i[1],i[2]):o:this[i[0]]=u?i[1].call(this,u,i[2]):o:4===i.length&&(this[i[0]]=u?i[3].call(this,u.replace(i[1],i[2])):o):this[i]=u||o;d+=2}},J=function(e,t){for(var r in t)if(typeof t[r]===l&&t[r].length>0){for(var a=0;a2&&(e[d]="iPad",e[g]=h),e},this.getEngine=function(){var e={};return e[p]=o,e[f]=o,Q.call(e,a,_.engine),e},this.getOS=function(){var e={};return e[p]=o,e[f]=o,Q.call(e,a,_.os),v&&!e[p]&&y&&y.platform&&"Unknown"!=y.platform&&(e[p]=y.platform.replace(/chrome os/i,V).replace(/macos/i,B)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return a},this.setUA=function(e){return a=typeof e===c&&e.length>500?K(e,500):e,this},this.setUA(a),this};X.VERSION="1.0.39",X.BROWSER=M([p,f,u]),X.CPU=M([w]),X.DEVICE=M([d,m,g,y,b,_,h,v,R]),X.ENGINE=X.OS=M([p,f]),typeof t!==i?(e.exports&&(t=e.exports=X),t.UAParser=X):r.amdO?(a=function(){return X}.call(t,r,t,e))===o||(e.exports=a):typeof n!==i&&(n.UAParser=X);var ee=typeof n!==i&&(n.jQuery||n.Zepto);if(ee&&!ee.ua){var te=new X;ee.ua=te.getResult(),ee.ua.get=function(){return te.getUA()},ee.ua.set=function(e){te.setUA(e);var t=te.getResult();for(var r in t)ee.ua[r]=t[r]}}}("object"==typeof window?window:this)},611:(e,t,r)=>{"use strict";var a;r.r(t),r.d(t,{NIL:()=>E,parse:()=>w,stringify:()=>u,v1:()=>f,v3:()=>j,v4:()=>C,v5:()=>A,validate:()=>i,version:()=>U});var n=new Uint8Array(16);function o(){if(!a&&!(a="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return a(n)}const s=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,i=function(e){return"string"==typeof e&&s.test(e)};for(var l=[],c=0;c<256;++c)l.push((c+256).toString(16).substr(1));const u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(l[e[t+0]]+l[e[t+1]]+l[e[t+2]]+l[e[t+3]]+"-"+l[e[t+4]]+l[e[t+5]]+"-"+l[e[t+6]]+l[e[t+7]]+"-"+l[e[t+8]]+l[e[t+9]]+"-"+l[e[t+10]]+l[e[t+11]]+l[e[t+12]]+l[e[t+13]]+l[e[t+14]]+l[e[t+15]]).toLowerCase();if(!i(r))throw TypeError("Stringified UUID is invalid");return r};var d,p,g=0,m=0;const f=function(e,t,r){var a=t&&r||0,n=t||new Array(16),s=(e=e||{}).node||d,i=void 0!==e.clockseq?e.clockseq:p;if(null==s||null==i){var l=e.random||(e.rng||o)();null==s&&(s=d=[1|l[0],l[1],l[2],l[3],l[4],l[5]]),null==i&&(i=p=16383&(l[6]<<8|l[7]))}var c=void 0!==e.msecs?e.msecs:Date.now(),f=void 0!==e.nsecs?e.nsecs:m+1,w=c-g+(f-m)/1e4;if(w<0&&void 0===e.clockseq&&(i=i+1&16383),(w<0||c>g)&&void 0===e.nsecs&&(f=0),f>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");g=c,m=f,p=i;var y=(1e4*(268435455&(c+=122192928e5))+f)%4294967296;n[a++]=y>>>24&255,n[a++]=y>>>16&255,n[a++]=y>>>8&255,n[a++]=255&y;var b=c/4294967296*1e4&268435455;n[a++]=b>>>8&255,n[a++]=255&b,n[a++]=b>>>24&15|16,n[a++]=b>>>16&255,n[a++]=i>>>8|128,n[a++]=255&i;for(var h=0;h<6;++h)n[a+h]=s[h];return t||u(n)},w=function(e){if(!i(e))throw TypeError("Invalid UUID");var t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r};function y(e,t,r){function a(e,a,n,o){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r>>9<<4)+1}function h(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function _(e,t,r,a,n,o){return h((s=h(h(t,e),h(a,o)))<<(i=n)|s>>>32-i,r);var s,i}function v(e,t,r,a,n,o,s){return _(t&r|~t&a,e,t,n,o,s)}function R(e,t,r,a,n,o,s){return _(t&a|r&~a,e,t,n,o,s)}function k(e,t,r,a,n,o,s){return _(t^r^a,e,t,n,o,s)}function P(e,t,r,a,n,o,s){return _(r^(t|~a),e,t,n,o,s)}const j=y("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var r=0;r>5]>>>n%32&255,s=parseInt(a.charAt(o>>>4&15)+a.charAt(15&o),16);t.push(s)}return t}(function(e,t){e[t>>5]|=128<>5]|=(255&e[a/8])<>>32-t}const A=y("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var a=unescape(encodeURIComponent(e));e=[];for(var n=0;n>>0;h=b,b=y,y=S(w,30)>>>0,w=f,f=R}r[0]=r[0]+f>>>0,r[1]=r[1]+w>>>0,r[2]=r[2]+y>>>0,r[3]=r[3]+b>>>0,r[4]=r[4]+h>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]})),E="00000000-0000-0000-0000-000000000000",U=function(e){if(!i(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},7534:(e,t,r)=>{const{fdkAxios:a}=r(128),{convertStringToBase64:n}=r(8879);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 a.request(d)}}},9418:(e,t,r)=>{const a=r(869),n=r(2099),o=r(3727),s=r(8979),i=r(7307),l=r(7507),c=r(5259),u=r(133),d=r(469),p=r(7611),g=r(603),m=r(3715),f=r(8651),w=r(7803),y=r(8363),b=r(3567),{FDKClientValidationError:h}=r(1235),{Logger:_}=r(8572),{convertStringToBase64:v}=r(8879),{execute:R}=r(7534);e.exports=class{constructor(e){if(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.rewards=new m(e),this.share=new f(e),this.theme=new w(e),this.user=new y(e),this.webhook=new b(e),"undefined"!=typeof window&&e.options&&e.options.enable_clickstream){const t=r(5379);_({level:"DEBUG",message:`initializing clickstream with base url ${e.domain}`}),t.initialize(e.domain,v(e.applicationID+":"+e.applicationToken)),r(3010)}}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)}async request({method:e,url:t,query:r,body:a,headers:n,responseHeaders:o=!1}){return await R(this.config,e,t,r,a,n,{responseHeaders:o})}}},8163:(e,t,r)=>{const{FDKInvalidCredentialError:a}=r(1235),{Logger:n,setLoggerLevel:o}=r(8572);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")}}},869:(e,t,r)=>{const a=r(7534),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(1235),s=r(1205),i=(r(1121),r(3206)),l=r(7785),{Logger:c}=r(8572),u=r(6075);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/",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",getPromotionPaymentOffers:"/service/application/cart/v1.0/available-payment-offers",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,orderType:g,requestHeaders:m}={requestHeaders:{}},{responseHeaders:f}={responseHeaders:!1}){const{error:w}=i.addItems().validate({body:e,i:t,b:r,areaCode:u,buyNow:d,id:p,orderType:g},{abortEarly:!1,allowUnknown:!0});if(w)return Promise.reject(new n(w));const{error:y}=i.addItems().validate({body:e,i:t,b:r,areaCode:u,buyNow:d,id:p,orderType: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.order_type=g;const h=await a.execute(this._conf,"post",s({url:this._urls.addItems,params:{}}),b,e,{...m},{responseHeaders:f});let _=h;f&&(_=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:f}={responseHeaders:!1}){const{error:w}=i.applyCoupon().validate({body:e,i:t,b:r,p:u,id:d,buyNow:p,cartType:g},{abortEarly:!1,allowUnknown:!0});if(w)return Promise.reject(new n(w));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:f});let _=h;f&&(_=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,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:f}=i.applyRewardPoints().validate({body:e,id:t,i:r,b:u,buyNow:d},{abortEarly:!1,allowUnknown:!1});f&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > applyRewardPoints \n ${f}`});const w={};w.id=t,w.i=r,w.b=u,w.buy_now=d;const y=await a.execute(this._conf,"post",s({url:this._urls.applyRewardPoints,params:{}}),w,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 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 f=await a.execute(this._conf,"post",s({url:this._urls.checkoutCartV2,params:{}}),m,e,{...u},{responseHeaders:d});let w=f;d&&(w=f[0]);const{error:y}=l.CartCheckoutResponse().validate(w,{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 f}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:f}=l.DeleteCartDetailResponse().validate(m,{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 g}async getAddressById({id:e,cartId:t,buyNow:r,mobileNo:u,checkoutMode:d,tags:p,isDefault:g,requestHeaders:m}={requestHeaders:{}},{responseHeaders:f}={responseHeaders:!1}){const{error:w}=i.getAddressById().validate({id:e,cartId:t,buyNow:r,mobileNo:u,checkoutMode:d,tags:p,isDefault:g},{abortEarly:!1,allowUnknown:!0});if(w)return Promise.reject(new n(w));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:f});let _=h;f&&(_=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:f}=i.getAddresses().validate({cartId:e,buyNow:t,mobileNo:r,checkoutMode:u,tags:d,isDefault:p},{abortEarly:!1,allowUnknown:!0});if(f)return Promise.reject(new n(f));const{error:w}=i.getAddresses().validate({cartId:e,buyNow:t,mobileNo:r,checkoutMode:u,tags:d,isDefault:p},{abortEarly:!1,allowUnknown:!1});w&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getAddresses \n ${w}`});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 f={};f.item_id=e,f.article_id=t,f.uid=r,f.slug=u;const w=await a.execute(this._conf,"get",s({url:this._urls.getBulkDiscountOffers,params:{}}),f,void 0,{...d},{responseHeaders:p});let y=w;p&&(y=w[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 w}async getCart({id:e,i:t,b:r,c:u,assignCardId:d,areaCode:p,buyNow:g,orderType:m,requestHeaders:f}={requestHeaders:{}},{responseHeaders:w}={responseHeaders:!1}){const{error:y}=i.getCart().validate({id:e,i:t,b:r,c:u,assignCardId:d,areaCode:p,buyNow:g,orderType: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,orderType: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.order_type=m;const _=await a.execute(this._conf,"get",s({url:this._urls.getCart,params:{}}),h,void 0,{...f},{responseHeaders:w});let v=_;w&&(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:f}=u.string().allow("").validate(m,{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 > getCartLastModified \n ${f}`})}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 f={};f.id=e,f.buy_now=t,f.slug=r,f.store_id=u;const w=await a.execute(this._conf,"get",s({url:this._urls.getCoupons,params:{}}),f,void 0,{...d},{responseHeaders:p});let y=w;p&&(y=w[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 w}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 f=m;u&&(f=m[0]);const{error:w}=l.CartItemCountResponse().validate(f,{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 > getItemCount \n ${w}`})}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 f={};f.slug=e,f.store_id=t,f.promotion_id=r,f.page_size=u;const w=await a.execute(this._conf,"get",s({url:this._urls.getLadderOffers,params:{}}),f,void 0,{...d},{responseHeaders:p});let y=w;p&&(y=w[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 w}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:f}=i.getPromotionOffers().validate({slug:e,pageSize:t,promotionGroup:r,storeId:u,cartType:d},{abortEarly:!1,allowUnknown:!1});f&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getPromotionOffers \n ${f}`});const w={};w.slug=e,w.page_size=t,w.promotion_group=r,w.store_id=u,w.cart_type=d;const y=await a.execute(this._conf,"get",s({url:this._urls.getPromotionOffers,params:{}}),w,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 getPromotionPaymentOffers({id:e,uid:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.getPromotionPaymentOffers().validate({id:e,uid:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.getPromotionPaymentOffers().validate({id:e,uid:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getPromotionPaymentOffers \n ${p}`});const g={};g.id=e,g.uid=t;const m=await a.execute(this._conf,"get",s({url:this._urls.getPromotionPaymentOffers,params:{}}),g,void 0,{...r},{responseHeaders:u});let f=m;u&&(f=m[0]);const{error:w}=l.PromotionPaymentOffersResponse().validate(f,{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 > getPromotionPaymentOffers \n ${w}`})}return m}async getShipments({p:e,id:t,buyNow:r,addressId:u,areaCode:d,orderType:p,requestHeaders:g}={requestHeaders:{}},{responseHeaders:m}={responseHeaders:!1}){const{error:f}=i.getShipments().validate({p:e,id:t,buyNow:r,addressId:u,areaCode:d,orderType:p},{abortEarly:!1,allowUnknown:!0});if(f)return Promise.reject(new n(f));const{error:w}=i.getShipments().validate({p:e,id:t,buyNow:r,addressId:u,areaCode:d,orderType:p},{abortEarly:!1,allowUnknown:!1});w&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getShipments \n ${w}`});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 f=m;u&&(f=m[0]);const{error:w}=l.CartDetailResponse().validate(f,{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 > removeCoupon \n ${w}`})}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:f}=i.selectAddress().validate({body:e,cartId:t,buyNow:r,i:u,b:d},{abortEarly:!1,allowUnknown:!1});f&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > selectAddress \n ${f}`});const w={};w.cart_id=t,w.buy_now=r,w.i=u,w.b=d;const y=await a.execute(this._conf,"post",s({url:this._urls.selectAddress,params:{}}),w,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 f=await a.execute(this._conf,"put",s({url:this._urls.selectPaymentMode,params:{}}),m,e,{...u},{responseHeaders:d});let w=f;d&&(w=f[0]);const{error:y}=l.CartDetailResponse().validate(w,{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 f}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:f}=l.UpdateAddressResponse().validate(m,{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 > updateAddress \n ${f}`})}return g}async updateCart({body:e,id:t,i:r,b:u,areaCode:d,buyNow:p,cartType:g,orderType:m,requestHeaders:f}={requestHeaders:{}},{responseHeaders:w}={responseHeaders:!1}){const{error:y}=i.updateCart().validate({body:e,id:t,i:r,b:u,areaCode:d,buyNow:p,cartType:g,orderType:m},{abortEarly:!1,allowUnknown:!0});if(y)return Promise.reject(new n(y));const{error:b}=i.updateCart().validate({body:e,id:t,i:r,b:u,areaCode:d,buyNow:p,cartType:g,orderType:m},{abortEarly:!1,allowUnknown:!1});b&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > updateCart \n ${b}`});const h={};h.id=t,h.i=r,h.b=u,h.area_code=d,h.buy_now=p,h.cart_type=g,h.order_type=m;const _=await a.execute(this._conf,"put",s({url:this._urls.updateCart,params:{}}),h,e,{...f},{responseHeaders:w});let v=_;w&&(v=_[0]);const{error:R}=l.UpdateCartDetailResponse().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 > updateCart \n ${R}`})}return _}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 f=await a.execute(this._conf,"put",s({url:this._urls.updateCartMeta,params:{}}),m,e,{...u},{responseHeaders:d});let w=f;d&&(w=f[0]);const{error:y}=l.CartMetaResponse().validate(w,{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 f}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:f}=l.SharedCartResponse().validate(m,{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 > updateCartWithSharedItems \n ${f}`})}return g}async validateCouponForPayment({id:e,buyNow:t,addressId:r,paymentMode:u,paymentIdentifier:d,aggregatorName:p,merchantCode:g,iin:m,network:f,type:w,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:f,type:w,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:f,type:w,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=f,k.type=w,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}}},7785:(e,t,r)=>{const a=r(6075);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 AppliedFreeArticles(){return a.object({free_gift_item_details:n.FreeGiftItems(),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(),custom_cart_meta: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(""),offer_text:a.string().allow(""),is_bank_offer:a.boolean()})}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(""),custom_cart_meta:a.any()})}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 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_meta:a.any()})}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(""),custom_cart_meta: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 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(),custom_cart_meta:a.any()})}static SharedCartResponse(){return a.object({error:a.string().allow(""),cart:n.SharedCart()})}static PriceMinMax(){return a.object({min:a.number(),max:a.number()})}static ItemPriceDetails(){return a.object({marked:n.PriceMinMax(),effective:n.PriceMinMax(),currency:a.string().allow("")})}static FreeGiftItems(){return a.object({item_slug:a.string().allow(""),item_name:a.string().allow(""),item_price_details:n.ItemPriceDetails(),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_type:a.string().allow(""),promotion_name: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 PromotionPaymentOffer(){return a.object({application_id:a.string().allow(""),buy_rules:a.array().items(a.any()),calculate_on:a.string().allow(""),description:a.string().allow(""),discount_rules:a.array().items(a.any()),id:a.string().allow(""),offer_text:a.string().allow(""),promotion_group:a.string().allow(""),promotion_type:a.string().allow(""),promotion_name:a.string().allow("")})}static PromotionPaymentOffersResponse(){return a.object({success:a.boolean(),promotions:a.array().items(n.PromotionPaymentOffer())})}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},3206:(e,t,r)=>{const a=r(6075),n=r(7785);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(""),orderType: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(),body:n.RewardPointRequest().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("")})}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(),orderType:a.string().allow("")})}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(),cartType:a.string().allow("")})}static getPromotionPaymentOffers(){return a.object({id:a.string().allow(""),uid: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(),cartType:a.string().allow(""),orderType: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("")})}}},2099:(e,t,r)=>{const a=r(7534),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(1235),s=r(1205),i=r(1121),l=r(700),c=r(103),{Logger:u}=r(8572);r(6075),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:f}=c.FollowPostResponse().validate(m,{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 > followById \n ${f}`})}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 f=await a.execute(this._conf,"get",s({url:this._urls.getBrands,params:{}}),m,void 0,{...i},{responseHeaders:d});let w=f;d&&(w=f[0]);const{error:y}=c.BrandListingResponse().validate(w,{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 f}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:f}=c.CategoryListingResponse().validate(m,{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 > getCategories \n ${f}`})}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:f,requestHeaders:w}={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:f},{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:f},{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=f;const v=await a.execute(this._conf,"get",s({url:this._urls.getCollectionItemsBySlug,params:{slug:e}}),_,void 0,{...w},{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 f={};f.page_no=e,f.page_size=t,f.tag=r,f.q=i;const w=await a.execute(this._conf,"get",s({url:this._urls.getCollections,params:{}}),f,void 0,{...d},{responseHeaders:p});let y=w;p&&(y=w[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 w}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:f}=c.FollowIdsResponse().validate(m,{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 > getFollowIds \n ${f}`})}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 f=await a.execute(this._conf,"get",s({url:this._urls.getFollowedListing,params:{collectionType:e}}),m,void 0,{...i},{responseHeaders:d});let w=f;d&&(w=f[0]);const{error:y}=c.GetFollowListingResponse().validate(w,{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 f}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:f}=c.FollowerCountResponse().validate(m,{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 > getFollowerCountById \n ${f}`})}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 f=await a.execute(this._conf,"get",s({url:this._urls.getHomeProducts,params:{}}),m,void 0,{...i},{responseHeaders:d});let w=f;d&&(w=f[0]);const{error:y}=c.HomeListingResponse().validate(w,{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 f}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:f}={responseHeaders:!1}){const{error:w}=l.getInStockLocations().validate({pageNo:e,pageSize:t,q:r,city:i,range:d,latitude:p,longitude:g},{abortEarly:!1,allowUnknown:!0});if(w)return Promise.reject(new n(w));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:f});let _=h;f&&(_=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 f=m;i&&(f=m[0]);const{error:w}=c.ProductBundle().validate(f,{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 > getProductBundlesBySlug \n ${w}`})}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:f}=c.ProductsComparisonResponse().validate(m,{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 > getProductComparisonBySlugs \n ${f}`})}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 f={};f.store_id=r,f.moq=i;const w=await a.execute(this._conf,"get",s({url:this._urls.getProductPriceBySlug,params:{slug:e,size:t}}),f,void 0,{...d},{responseHeaders:p});let y=w;p&&(y=w[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 w}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:f}=l.getProductSellersBySlug().validate({slug:e,size:t,strategy:r,pageNo:i,pageSize:d},{abortEarly:!1,allowUnknown:!1});f&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getProductSellersBySlug \n ${f}`});const w={};w.strategy=r,w.page_no=i,w.page_size=d;const y=await a.execute(this._conf,"get",s({url:this._urls.getProductSellersBySlug,params:{slug:e,size:t}}),w,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 f=m;i&&(f=m[0]);const{error:w}=c.ProductSizes().validate(f,{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 > getProductSizesBySlug \n ${w}`})}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:f}=l.getProductStockByIds().validate({itemId:e,alu:t,skuCode:r,ean:i,upc:d},{abortEarly:!1,allowUnknown:!1});f&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getProductStockByIds \n ${f}`});const w={};w.item_id=e,w.alu=t,w.sku_code=r,w.ean=i,w.upc=d;const y=await a.execute(this._conf,"get",s({url:this._urls.getProductStockByIds,params:{}}),w,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 f=await a.execute(this._conf,"get",s({url:this._urls.getProductStockForTimeByIds,params:{}}),m,void 0,{...i},{responseHeaders:d});let w=f;d&&(w=f[0]);const{error:y}=c.ProductStockPolling().validate(w,{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 f}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:f}={requestHeaders:{}},{responseHeaders:w}={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,{...f},{responseHeaders:w});let v=_;w&&(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,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:f}=c.AutoCompleteResponse().validate(m,{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 > getSearchResults \n ${f}`})}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:f}={requestHeaders:{}},{responseHeaders:w}={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,{...f},{responseHeaders:w});let v=_;w&&(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:f}=c.FollowPostResponse().validate(m,{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 > unfollowById \n ${f}`})}return g}}},103:(e,t,r)=>{const a=r(6075);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(),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(),price_per_piece: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(""),_custom_json:a.object().pattern(/\S/,a.any()),action:n.ProductListingAction()})}static ProductVariantResponse(){return a.object({display_type:a.string().allow(""),header:a.string().allow(""),group_id:a.string().allow(""),items:a.array().items(n.ProductVariantItemResponse()),key:a.string().allow(""),logo: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},700:(e,t,r)=>{const a=r(6075);r(103),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()}}},3727:(e,t,r)=>{const a=r(7534),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(1235),s=r(1205),i=(r(1121),r(6152)),l=r(5443),{Logger:c}=r(8572);r(6075),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 f=m;u&&(f=m[0]);const{error:w}=l.Locations().validate(f,{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 > Common > getLocations \n ${w}`})}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 f=await a.execute(this._conf,"get",s({url:this._urls.searchApplication,params:{}}),g,void 0,{...m,...r},{responseHeaders:u});let w=f;u&&(w=f[0]);const{error:y}=l.ApplicationResponse().validate(w,{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 f}}},5443:(e,t,r)=>{const a=r(6075);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},6152:(e,t,r)=>{const a=r(6075);r(5443),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("")})}}},8979:(e,t,r)=>{const a=r(7534),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(1235),s=r(1205),i=(r(1121),r(7052)),l=r(8007),{Logger:c}=r(8572);r(6075),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}}},8007:(e,t,r)=>{const a=r(6075);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},7052:(e,t,r)=>{const a=r(6075),n=r(8007);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()}}},7307:(e,t,r)=>{const a=r(7534),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(1235),s=r(1205),i=(r(1121),r(8436)),l=r(1775),{Logger:c}=r(8572);r(6075),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}=i.getAppCurrencies().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:u}=i.getAppCurrencies().validate({},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getAppCurrencies \n ${u}`});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}=l.AppCurrencyResponse().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 > Configuration > getAppCurrencies \n ${g}`})}return d}async getAppStaffList({pageNo:e,pageSize:t,orderIncent:r,orderingStore:u,user:d,userName:p,requestHeaders:g}={requestHeaders:{}},{responseHeaders:m}={responseHeaders:!1}){const{error:f}=i.getAppStaffList().validate({pageNo:e,pageSize:t,orderIncent:r,orderingStore:u,user:d,userName:p},{abortEarly:!1,allowUnknown:!0});if(f)return Promise.reject(new n(f));const{error:w}=i.getAppStaffList().validate({pageNo:e,pageSize:t,orderIncent:r,orderingStore:u,user:d,userName:p},{abortEarly:!1,allowUnknown:!1});w&&c({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getAppStaffList \n ${w}`});const y={};y.page_no=e,y.page_size=t,y.order_incent=r,y.ordering_store=u,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:_}=l.AppStaffListResponse().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 > Configuration > getAppStaffList \n ${_}`})}return b}async getAppStaffs({orderIncent:e,orderingStore:t,user:r,requestHeaders:u}={requestHeaders:{}},{responseHeaders:d}={responseHeaders:!1}){const{error:p}=i.getAppStaffs().validate({orderIncent:e,orderingStore:t,user:r},{abortEarly:!1,allowUnknown:!0});if(p)return Promise.reject(new n(p));const{error:g}=i.getAppStaffs().validate({orderIncent:e,orderingStore:t,user:r},{abortEarly:!1,allowUnknown:!1});g&&c({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 f=await a.execute(this._conf,"get",s({url:this._urls.getAppStaffs,params:{}}),m,void 0,{...u},{responseHeaders:d});let w=f;d&&(w=f[0]);const{error:y}=l.AppStaffResponse().validate(w,{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 > Configuration > getAppStaffs \n ${y}`})}return f}async getApplication({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getApplication().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:u}=i.getApplication().validate({},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getApplication \n ${u}`});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}=l.Application().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 > Configuration > getApplication \n ${g}`})}return d}async getBasicDetails({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getBasicDetails().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:u}=i.getBasicDetails().validate({},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getBasicDetails \n ${u}`});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}=l.ApplicationDetail().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 > Configuration > getBasicDetails \n ${g}`})}return d}async getContactInfo({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getContactInfo().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:u}=i.getContactInfo().validate({},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getContactInfo \n ${u}`});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}=l.ApplicationInformation().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 > Configuration > getContactInfo \n ${g}`})}return d}async getCurrencies({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getCurrencies().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:u}=i.getCurrencies().validate({},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getCurrencies \n ${u}`});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}=l.CurrenciesResponse().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 > Configuration > getCurrencies \n ${g}`})}return d}async getCurrencyById({id:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getCurrencyById().validate({id:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getCurrencyById().validate({id:e},{abortEarly:!1,allowUnknown:!1});d&&c({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}=l.Currency().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 > Configuration > getCurrencyById \n ${m}`})}return p}async getFeatures({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getFeatures().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:u}=i.getFeatures().validate({},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getFeatures \n ${u}`});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}=l.AppFeatureResponse().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 > Configuration > getFeatures \n ${g}`})}return d}async getIntegrationTokens({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getIntegrationTokens().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:u}=i.getIntegrationTokens().validate({},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getIntegrationTokens \n ${u}`});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}=l.AppTokenResponse().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 > Configuration > getIntegrationTokens \n ${g}`})}return d}async getLanguages({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getLanguages().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:u}=i.getLanguages().validate({},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getLanguages \n ${u}`});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}=l.LanguageResponse().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 > Configuration > getLanguages \n ${g}`})}return d}async getOrderingStoreCookie({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getOrderingStoreCookie().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getOrderingStoreCookie().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({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}=l.SuccessMessageResponse().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 > Configuration > getOrderingStoreCookie \n ${m}`})}return p}async getOrderingStores({pageNo:e,pageSize:t,q:r,requestHeaders:u}={requestHeaders:{}},{responseHeaders:d}={responseHeaders:!1}){const{error:p}=i.getOrderingStores().validate({pageNo:e,pageSize:t,q:r},{abortEarly:!1,allowUnknown:!0});if(p)return Promise.reject(new n(p));const{error:g}=i.getOrderingStores().validate({pageNo:e,pageSize:t,q:r},{abortEarly:!1,allowUnknown:!1});g&&c({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 f=await a.execute(this._conf,"get",s({url:this._urls.getOrderingStores,params:{}}),m,void 0,{...u},{responseHeaders:d});let w=f;d&&(w=f[0]);const{error:y}=l.OrderingStores().validate(w,{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 > Configuration > getOrderingStores \n ${y}`})}return f}async getOwnerInfo({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getOwnerInfo().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:u}=i.getOwnerInfo().validate({},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getOwnerInfo \n ${u}`});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}=l.ApplicationAboutResponse().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 > Configuration > getOwnerInfo \n ${g}`})}return d}async getStoreDetailById({storeId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getStoreDetailById().validate({storeId:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getStoreDetailById().validate({storeId:e},{abortEarly:!1,allowUnknown:!1});d&&c({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}=l.OrderingStore().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 > Configuration > getStoreDetailById \n ${m}`})}return p}async removeOrderingStoreCookie({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.removeOrderingStoreCookie().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:u}=i.removeOrderingStoreCookie().validate({},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > removeOrderingStoreCookie \n ${u}`});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}=l.SuccessMessageResponse().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 > Configuration > removeOrderingStoreCookie \n ${g}`})}return d}}},1775:(e,t,r)=>{const a=r(6075);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({enabled:a.boolean(),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},8436:(e,t,r)=>{const a=r(6075),n=r(1775);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({})}}},7507:(e,t,r)=>{const a=r(7534),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(1235),s=r(1205),i=r(1121),l=r(4092),c=r(9079),{Logger:u}=r(8572);r(6075),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 f=m;i&&(f=m[0]);const{error:w}=c.BlogSchema().validate(f,{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 > getBlog \n ${w}`})}return m}async getBlogs({pageNo:e,pageSize:t,tags:r,search:i,requestHeaders:d}={requestHeaders:{}},{responseHeaders:p}={responseHeaders:!1}){const{error:g}=l.getBlogs().validate({pageNo:e,pageSize:t,tags:r,search:i},{abortEarly:!1,allowUnknown:!0});if(g)return Promise.reject(new n(g));const{error:m}=l.getBlogs().validate({pageNo:e,pageSize:t,tags:r,search:i},{abortEarly:!1,allowUnknown:!1});m&&u({level:"WARN",message:`Parameter Validation warrnings for application > Content > getBlogs \n ${m}`});const f={};f.page_no=e,f.page_size=t,f.tags=r,f.search=i;const w=await a.execute(this._conf,"get",s({url:this._urls.getBlogs,params:{}}),f,void 0,{...d},{responseHeaders:p});let y=w;p&&(y=w[0]);const{error:b}=c.BlogGetResponse().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 > Content > getBlogs \n ${b}`})}return w}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:f}=c.CustomFieldsResponseByResourceIdSchema().validate(m,{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 > getCustomFields \n ${f}`})}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 f=m;i&&(f=m[0]);const{error:w}=c.NavigationGetResponse().validate(f,{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 > getNavigations \n ${w}`})}return m}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 f=m;i&&(f=m[0]);const{error:w}=c.PageSchema().validate(f,{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 > getPage \n ${w}`})}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 f=m;i&&(f=m[0]);const{error:w}=c.PageGetResponse().validate(f,{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 > getPages \n ${w}`})}return m}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 f=m;i&&(f=m[0]);const{error:w}=c.SeoSchemaComponent().validate(f,{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 > getSEOMarkupSchemas \n ${w}`})}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 f=m;i&&(f=m[0]);const{error:w}=c.SlideshowGetResponse().validate(f,{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 > getSlideshows \n ${w}`})}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}}},9079:(e,t,r)=>{const a=r(6075);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(),filters:n.BlogFilters()})}static BlogFilters(){return a.object({tags:a.array().items(a.string().allow(""))})}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("")),publish_date:a.string().allow(""),seo:n.SEO(),title:a.string().allow(""),date_meta:n.DateMeta(),summary:a.string().allow("")})}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({type:a.string().allow(""),page:n.ActionPage(),popup:n.ActionPage()})}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 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(""),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(""),phone_type: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 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 PageType(){return a.string().valid("about-us","addresses","blog","brands","cards","cart","categories","brand","category","collection","collections","custom","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","locate-us")}}e.exports=n},4092:(e,t,r)=>{const a=r(6075);r(9079),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(),tags:a.string().allow(""),search:a.string().allow("")})}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({})}}},5259:(e,t,r)=>{const a=r(7534),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(1235),s=r(1205),i=(r(1121),r(7636)),l=r(6751),{Logger:c}=r(8572),{fdkAxios:u}=(r(6075),r(128));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:f}=l.CompleteResponse().validate(m,{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 > FileStorage > completeUpload \n ${f}`})}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:f}=l.StartResponse().validate(m,{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 > FileStorage > startUpload \n ${f}`})}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}});if(l.upload&&l.upload.url){let t={method:"PUT",url:l.upload.url,data:e,headers:{"Content-Type":r},withCredentials:!1};await u.request(t)}else i({message:"Failed to upload file"});delete l.tags,s(await this.completeUpload({namespace:a,body:l}))}catch(e){i(e)}}))},e.exports=d},6751:(e,t,r)=>{const a=r(6075);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},7636:(e,t,r)=>{const a=r(6075),n=r(6751);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()}}},133:(e,t,r)=>{const a=r(7534),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(1235),s=r(1205),i=(r(1121),r(7926)),l=r(2201),{Logger:c}=r(8572);r(6075),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}",getTicket:"/service/application/lead/v1.0/ticket/{id}",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:f}=l.TicketHistory().validate(m,{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 > Lead > createHistory \n ${f}`})}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 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 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:f}=l.SubmitCustomFormResponse().validate(m,{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 > Lead > submitCustomForm \n ${f}`})}return g}}},2201:(e,t,r)=>{const a=r(6075);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 SubmitCustomFormResponse(){return a.object({message:a.string().allow("").required(),ticket:n.Ticket(),response:n.FormFieldResponse()})}static FormFieldResponse(){return a.object({_id:a.string().allow(""),__v:a.number(),application_id:a.string().allow(""),form_slug:a.string().allow(""),created_on:n.CreatedOn(),response:a.array().items(n.FormFieldResponseValues())})}static FormFieldResponseValues(){return a.object({key:a.string().allow("")})}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()}).id("TicketCategory")}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},7926:(e,t,r)=>{const a=r(6075),n=r(2201);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 getTicket(){return a.object({id:a.string().allow("").required()}).required()}static submitCustomForm(){return a.object({slug:a.string().allow("").required(),body:n.CustomFormSubmissionPayload().required()}).required()}}},469:(e,t,r)=>{const a=r(7534),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(1235),s=r(1205),i=(r(1121),r(2230)),l=r(8297),{Logger:c}=r(8572);r(6075),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={getAllCountries:"/service/application/logistics/v1.0/country-list",getCountries:"/service/application/logistics/v2.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 f={};f.onboarding=e,f.page_no=t,f.page_size=r,f.q=u;const w=await a.execute(this._conf,"get",s({url:this._urls.getCountries,params:{}}),f,void 0,{...d},{responseHeaders:p});let y=w;p&&(y=w[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 w}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:f}={responseHeaders:!1}){const{error:w}=i.getLocalities().validate({localityType:e,country:t,state:r,city:u,pageNo:d,pageSize:p,q:g},{abortEarly:!1,allowUnknown:!0});if(w)return Promise.reject(new n(w));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:f});let _=h;f&&(_=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:f}=i.getLocality().validate({localityType:e,localityValue:t,country:r,state:u,city:d},{abortEarly:!1,allowUnknown:!1});f&&c({level:"WARN",message:`Parameter Validation warrnings for application > Logistic > getLocality \n ${f}`});const w={};w.country=r,w.state=u,w.city=d;const y=await a.execute(this._conf,"get",s({url:this._urls.getLocality,params:{localityType:e,localityValue:t}}),w,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:f,requestHeaders:w}={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:f},{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:f},{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=f;const v=await a.execute(this._conf,"get",s({url:this._urls.getLocations,params:{}}),_,void 0,{...w},{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 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 f=m;d&&(f=m[0]);const{error:w}=l.ValidateAddressRequest().validate(f,{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 > Logistic > validateAddress \n ${w}`})}return m}}},8297:(e,t,r)=>{const a=r(6075);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("")).allow(null,""),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()}).allow(null)}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()}).allow(null)}static GetCountryFieldsAddressValues(){return a.object({get_one:n.GetOneOrAll(),get_all:n.GetOneOrAll()}).allow(null)}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("")).allow(null,""),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(""),localities:a.array().items(n.LocalityParent())})}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(""),message:a.string().allow("")})}}e.exports=n},2230:(e,t,r)=>{const a=r(6075),n=r(8297);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()}}},7611:(e,t,r)=>{const a=r(7534),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(1235),s=r(1205),i=(r(1121),r(4420)),l=r(4079),{Logger:c}=r(8572);r(6075),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",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:f}=l.CustomerDetailsResponse().validate(m,{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 > getCustomerDetailsByShipmentId \n ${f}`})}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 f=m;u&&(f=m[0]);const{error:w}=l.OrderById().validate(f,{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 > getOrderById \n ${w}`})}return m}async getOrders({status:e,pageNo:t,pageSize:r,fromDate:u,toDate:d,startDate:p,endDate:g,customMeta:m,allowInactive:f,requestHeaders:w}={requestHeaders:{}},{responseHeaders:y}={responseHeaders:!1}){const{error:b}=i.getOrders().validate({status:e,pageNo:t,pageSize:r,fromDate:u,toDate:d,startDate:p,endDate:g,customMeta:m,allowInactive:f},{abortEarly:!1,allowUnknown:!0});if(b)return Promise.reject(new n(b));const{error:h}=i.getOrders().validate({status:e,pageNo:t,pageSize:r,fromDate:u,toDate:d,startDate:p,endDate:g,customMeta:m,allowInactive:f},{abortEarly:!1,allowUnknown:!1});h&&c({level:"WARN",message:`Parameter Validation warrnings for application > Order > getOrders \n ${h}`});const _={};_.status=e,_.page_no=t,_.page_size=r,_.from_date=u,_.to_date=d,_.start_date=p,_.end_date=g,_.custom_meta=m,_.allow_inactive=f;const v=await a.execute(this._conf,"get",s({url:this._urls.getOrders,params:{}}),_,void 0,{...w},{responseHeaders:y});let R=v;y&&(R=v[0]);const{error:k}=l.OrderList().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 > Order > getOrders \n ${k}`})}return v}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:f}=l.ShipmentBagReasons().validate(m,{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 > getShipmentBagReasons \n ${f}`})}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 f=m;u&&(f=m[0]);const{error:w}=l.ShipmentById().validate(f,{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 > getShipmentById \n ${w}`})}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:f}=l.SendOtpToCustomerResponse().validate(m,{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 > sendOtpToShipmentCustomer \n ${f}`})}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:f}=l.ShipmentApplicationStatusResponse().validate(m,{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 > updateShipmentStatus \n ${f}`})}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 f=m;d&&(f=m[0]);const{error:w}=l.VerifyOtpResponse().validate(f,{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 > verifyOtpShipmentCustomer \n ${w}`})}return m}}},4079:(e,t,r)=>{const a=r(6075);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 ShipmentPaymentInfo(){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(""),amount:a.number()})}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(""))}).allow(null)}static Address(){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.ShipmentPaymentInfo()),order_type:a.string().allow("").allow(null),gstin_code:a.string().allow(""),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.Address(),billing_address:n.Address(),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(),gstin_code:a.string().allow(""),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()),meta:a.object().pattern(/\S/,a.any())})}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},4420:(e,t,r)=>{const a=r(6075),n=r(4079);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(""),allowInactive:a.boolean()})}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()}}},603:(e,t,r)=>{const a=r(7534),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(1235),s=r(1205),i=(r(1121),r(292)),l=r(9887),{Logger:c}=r(8572);r(6075),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 f=m;u&&(f=m[0]);const{error:w}=l.CardDetailsResponse().validate(f,{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 > cardDetails \n ${w}`})}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:f}=l.CheckCreditResponse().validate(m,{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 > checkCredit \n ${f}`})}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:f}=l.CustomerCreditSummaryResponse().validate(m,{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 > customerCreditSummary \n ${f}`})}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:f}=l.ActiveCardPaymentGatewayResponse().validate(m,{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 > getActiveCardAggregator \n ${f}`})}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:f}=l.ListCardsResponse().validate(m,{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 > getActiveUserCards \n ${f}`})}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 f=await a.execute(this._conf,"get",s({url:this._urls.getAggregatorsConfig,params:{}}),g,void 0,{...m,...r},{responseHeaders:u});let w=f;u&&(w=f[0]);const{error:y}=l.AggregatorsConfigDetailResponse().validate(w,{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 f}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:f}=l.OrderBeneficiaryResponse().validate(m,{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 > getOrderBeneficiariesDetail \n ${f}`})}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:f}=l.GetPaymentLinkResponse().validate(m,{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 > getPaymentLink \n ${f}`})}return g}async getPaymentModeRoutes({amount:e,cartId:t,checkoutMode:r,refresh:u,orderId:d,cardReference:p,userDetails:g,displaySplit:m,advancePayment:f,shipmentId:w,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:f,shipmentId:w},{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:f,shipmentId:w},{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=f,v.shipment_id=w;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:f}=l.PaymentModeRouteResponse().validate(m,{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 > getPaymentModeRoutesPaymentLink \n ${f}`})}return g}async getPosPaymentModeRoutes({amount:e,pincode:t,orderType:r,cartId:u,checkoutMode:d,refresh:p,cardReference:g,userDetails:m,requestHeaders:f}={requestHeaders:{}},{responseHeaders:w}={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,{...f},{responseHeaders:w});let v=_;w&&(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 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:f}=l.OrderBeneficiaryResponse().validate(m,{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 > getUserBeneficiariesDetail \n ${f}`})}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:f}=l.OutstandingOrderDetailsResponse().validate(m,{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 > outstandingOrderDetails \n ${f}`})}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:f}=l.PaidOrderDetailsResponse().validate(m,{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 > paidOrderDetails \n ${f}`})}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:f}=l.PollingPaymentLinkResponse().validate(m,{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 > pollingPaymentLink \n ${f}`})}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 f=m;u&&(f=m[0]);const{error:w}=l.RedirectToAggregatorResponse().validate(f,{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 > redirectToAggregator \n ${w}`})}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:f}=l.IfscCodeResponse().validate(m,{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 > verifyIfscCode \n ${f}`})}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}}},9887:(e,t,r)=>{const a=r(6075);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(),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(""),merchant_transaction_id:a.string().allow(""),method:a.string().allow("").required(),device_id:a.string().allow("").allow(null),aggregator:a.string().allow("").required(),customer_id:a.string().allow(""),contact:a.string().allow(""),merchant_order_id:a.string().allow("").required(),vpa:a.string().allow(""),order_id:a.string().allow(""),currency:a.string().allow(""),amount:a.number().allow(null),email:a.string().allow("")})}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()).allow(null,""),aggregator_name:a.string().allow("").required(),card_fingerprint:a.string().allow("").allow(null),intent_app_error_list:a.array().items(a.string().allow("")).allow(null,""),intent_app:a.array().items(n.IntentApp()).allow(null,""),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.any().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:a.array().items(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(null,""),allow_custom_advance_amount:a.boolean().allow(null)}).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)}).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()).allow(null,""),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()).allow(null,"")})}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.string().allow("").required(),message:a.string().allow("").required(),is_payment_done:a.boolean()})}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()).allow(null,"")})}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()).allow(null,""),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()).allow(null,""),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},292:(e,t,r)=>{const a=r(6075),n=r(9887);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()}}},3715:(e,t,r)=>{const a=r(7534),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(1235),s=r(1205),i=(r(1121),r(876)),l=r(231),{Logger:c}=r(8572);r(6075),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:u}=i.catalogueOrder().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.catalogueOrder().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({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}=l.CatalogueOrderResponse().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 > Rewards > catalogueOrder \n ${m}`})}return p}async getOfferByName({name:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getOfferByName().validate({name:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getOfferByName().validate({name:e},{abortEarly:!1,allowUnknown:!1});d&&c({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}=l.Offer().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 > Rewards > getOfferByName \n ${m}`})}return p}async getOrderDiscount({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getOrderDiscount().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getOrderDiscount().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({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}=l.OrderDiscountResponse().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 > Rewards > getOrderDiscount \n ${m}`})}return p}async getUserPoints({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getUserPoints().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:u}=i.getUserPoints().validate({},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Rewards > getUserPoints \n ${u}`});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}=l.PointsResponse().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 > Rewards > getUserPoints \n ${g}`})}return d}async getUserPointsHistory({pageId:e,pageSize:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.getUserPointsHistory().validate({pageId:e,pageSize:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.getUserPointsHistory().validate({pageId:e,pageSize:t},{abortEarly:!1,allowUnknown:!1});p&&c({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:u});let f=m;u&&(f=m[0]);const{error:w}=l.PointsHistoryResponse().validate(f,{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 > Rewards > getUserPointsHistory \n ${w}`})}return m}async getUserReferralDetails({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getUserReferralDetails().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:u}=i.getUserReferralDetails().validate({},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Rewards > getUserReferralDetails \n ${u}`});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}=l.ReferralDetailsResponse().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 > Rewards > getUserReferralDetails \n ${g}`})}return d}async redeemReferralCode({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.redeemReferralCode().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.redeemReferralCode().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({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}=l.RedeemReferralCodeResponse().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 > Rewards > redeemReferralCode \n ${m}`})}return p}}},231:(e,t,r)=>{const a=r(6075);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},876:(e,t,r)=>{const a=r(6075),n=r(231);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()}}},8651:(e,t,r)=>{const a=r(7534),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(1235),s=r(1205),i=(r(1121),r(4708)),l=r(7167),{Logger:c}=r(8572);r(6075),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:f}=l.QRCodeResp().validate(m,{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 > Share > getUrlQRCode \n ${f}`})}return g}}},7167:(e,t,r)=>{const a=r(6075);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(""),hash:a.string().allow(""),short_url: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},4708:(e,t,r)=>{const a=r(6075),n=r(7167);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()}}},7803:(e,t,r)=>{const a=r(7534),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(1235),s=r(1205),i=(r(1121),r(7620)),l=r(5423),{Logger:c}=r(8572);r(6075),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,sectionPreviewHash:u,company:d,requestHeaders:p}={requestHeaders:{}},{responseHeaders:g}={responseHeaders:!1}){const{error:m}=i.getPage().validate({themeId:e,pageValue:t,filters:r,sectionPreviewHash:u,company:d},{abortEarly:!1,allowUnknown:!0});if(m)return Promise.reject(new n(m));const{error:f}=i.getPage().validate({themeId:e,pageValue:t,filters:r,sectionPreviewHash:u,company:d},{abortEarly:!1,allowUnknown:!1});f&&c({level:"WARN",message:`Parameter Validation warrnings for application > Theme > getPage \n ${f}`});const w={};w.filters=r,w.section_preview_hash=u,w.company=d;const y=await a.execute(this._conf,"get",s({url:this._urls.getPage,params:{themeId:e,pageValue:t}}),w,void 0,{...p},{responseHeaders:g});let b=y;g&&(b=y[0]);const{error:h}=l.AvailablePageSchema().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 > Theme > getPage \n ${h}`})}return y}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}}},5423:(e,t,r)=>{const a=r(6075);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({type:a.string().allow(""),page:n.ActionPage(),popup:n.ActionPage()})}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(""),source: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({sections:a.array().items(n.Section()),value:a.string().allow("")})}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 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 PageType(){return a.string().valid("about-us","addresses","blog","brands","cards","cart","categories","brand","category","collection","collections","custom","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","locate-us")}}e.exports=n},7620:(e,t,r)=>{const a=r(6075);r(5423),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(""),sectionPreviewHash:a.string().allow(""),company:a.number()}).required()}static getThemeForPreview(){return a.object({themeId:a.string().allow("").required()}).required()}}},8363:(e,t,r)=>{const a=r(7534),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(1235),s=r(1205),i=(r(1121),r(1092)),l=r(9231),{Logger:c}=r(8572),u=r(6075);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 f=m;u&&(f=m[0]);const{error:w}=l.VerifyEmailOTPSuccess().validate(f,{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 > addEmail \n ${w}`})}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 f=m;u&&(f=m[0]);const{error:w}=l.VerifyMobileOTPSuccess().validate(f,{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 > addMobileNumber \n ${w}`})}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:f}=i.deleteEmail().validate({active:e,primary:t,verified:r,email:u,platform:d},{abortEarly:!1,allowUnknown:!1});f&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > deleteEmail \n ${f}`});const w={};w.platform=d,w.active=e,w.primary=t,w.verified=r,w.email=u;const y=await a.execute(this._conf,"delete",s({url:this._urls.deleteEmail,params:{}}),w,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:f}=i.deleteMobileNumber().validate({active:e,primary:t,verified:r,countryCode:u,phone:d,platform:p},{abortEarly:!1,allowUnknown:!0});if(f)return Promise.reject(new n(f));const{error:w}=i.deleteMobileNumber().validate({active:e,primary:t,verified:r,countryCode:u,phone:d,platform:p},{abortEarly:!1,allowUnknown:!1});w&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > deleteMobileNumber \n ${w}`});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:f}=l.PlatformSchema().validate(m,{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 > getPlatformConfig \n ${f}`})}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:f}=l.UserAttributes().validate(m,{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 > getUserAttributes \n ${f}`})}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 f=m;u&&(f=m[0]);const{error:w}=l.AuthSuccess().validate(f,{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 > loginWithAppleIOS \n ${w}`})}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 f=m;u&&(f=m[0]);const{error:w}=l.AuthSuccess().validate(f,{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 > loginWithFacebook \n ${w}`})}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 f=m;u&&(f=m[0]);const{error:w}=l.AuthSuccess().validate(f,{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 > loginWithGoogle \n ${w}`})}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 f=m;u&&(f=m[0]);const{error:w}=l.AuthSuccess().validate(f,{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 > loginWithGoogleAndroid \n ${w}`})}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 f=m;u&&(f=m[0]);const{error:w}=l.AuthSuccess().validate(f,{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 > loginWithGoogleIOS \n ${w}`})}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 f=m;u&&(f=m[0]);const{error:w}=l.SendOtpResponse().validate(f,{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 > loginWithOTP \n ${w}`})}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 f=m;u&&(f=m[0]);const{error:w}=l.RegisterFormSuccess().validate(f,{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 > registerWithForm \n ${w}`})}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 f=m;u&&(f=m[0]);const{error:w}=l.EmailOtpSuccess().validate(f,{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 > sendForgotOTPOnEmail \n ${w}`})}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 f=m;u&&(f=m[0]);const{error:w}=l.OtpSuccess().validate(f,{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 > sendForgotOTPOnMobile \n ${w}`})}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 f=m;u&&(f=m[0]);const{error:w}=l.EmailOtpSuccess().validate(f,{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 > sendOTPOnEmail \n ${w}`})}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 f=m;u&&(f=m[0]);const{error:w}=l.OtpSuccess().validate(f,{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 > sendOTPOnMobile \n ${w}`})}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 f=m;u&&(f=m[0]);const{error:w}=l.ResetPasswordSuccess().validate(f,{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 > sendResetPasswordEmail \n ${w}`})}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 f=m;l&&(f=m[0]);const{error:w}=u.string().allow("").validate(f,{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 > sendResetPasswordMobile \n ${w}`})}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 f=m;u&&(f=m[0]);const{error:w}=l.SendEmailVerifyLinkSuccess().validate(f,{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 > sendVerificationLinkToEmail \n ${w}`})}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 f=m;u&&(f=m[0]);const{error:w}=l.SendMobileVerifyLinkSuccess().validate(f,{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 > sendVerificationLinkToMobile \n ${w}`})}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 f=m;u&&(f=m[0]);const{error:w}=l.ProfileEditSuccess().validate(f,{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 > updateProfile \n ${w}`})}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:f}=l.UserExistsResponse().validate(m,{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 > userExists \n ${f}`})}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 f=m;u&&(f=m[0]);const{error:w}=l.VerifyForgotOtpSuccess().validate(f,{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 > verifyEmailForgotOTP \n ${w}`})}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 f=m;u&&(f=m[0]);const{error:w}=l.VerifyOtpSuccess().validate(f,{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 > verifyEmailOTP \n ${w}`})}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 f=m;u&&(f=m[0]);const{error:w}=l.VerifyForgotOtpSuccess().validate(f,{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 > verifyMobileForgotOTP \n ${w}`})}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 f=m;u&&(f=m[0]);const{error:w}=l.VerifyOtpSuccess().validate(f,{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 > verifyMobileOTP \n ${w}`})}return m}}},9231:(e,t,r)=>{const a=r(6075);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(""),external_id:a.string().allow(""),rr_id:a.string().allow("")})}static PhoneNumber(){return a.object({phone:a.string().allow(""),country_code:a.number(),active:a.boolean(),primary:a.boolean(),verified:a.boolean()})}static Email(){return a.object({email:a.string().allow(""),active:a.boolean(),primary:a.boolean(),verified:a.boolean()})}}e.exports=n},1092:(e,t,r)=>{const a=r(6075),n=r(9231);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()}}},3567:(e,t,r)=>{const a=r(7534),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(1235),s=r(1205),i=(r(1121),r(7496)),l=r(7379),{Logger:c}=r(8572);r(6075),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={saveClickEvent:"/service/application/webhook/v1.0/click-analytics/events"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async saveClickEvent({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.saveClickEvent().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.saveClickEvent().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Webhook > saveClickEvent \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.saveClickEvent,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.ClickEventResponse().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 > Webhook > saveClickEvent \n ${m}`})}return p}}},7379:(e,t,r)=>{const a=r(6075);class n{static ClickEventBatch(){return a.object({event_name:a.string().allow("")})}static ClickEventRequest(){return a.object({batch:a.array().items(n.ClickEventBatch())})}static ClickEventResponse(){return a.object({success_count:a.number(),failed_count:a.number(),failed_events:a.array().items(n.ClickEventBatch())})}}e.exports=n},7496:(e,t,r)=>{const a=r(6075),n=r(7379);e.exports=class{static saveClickEvent(){return a.object({body:n.ClickEventRequest().required()}).required()}}},1205:(e,t,r)=>{const a=r(2729);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("/")},3775:(e,t,r)=>{e.exports={ApplicationConfig:r(8163),ApplicationClient:r(9418),ApplicationModel:{CartApplicationModel:r(7785),CatalogApplicationModel:r(103),CommonApplicationModel:r(5443),CommunicationApplicationModel:r(8007),ConfigurationApplicationModel:r(1775),ContentApplicationModel:r(9079),FileStorageApplicationModel:r(6751),LeadApplicationModel:r(2201),LogisticApplicationModel:r(8297),OrderApplicationModel:r(4079),PaymentApplicationModel:r(9887),RewardsApplicationModel:r(231),ShareApplicationModel:r(7167),ThemeApplicationModel:r(5423),UserApplicationModel:r(9231),WebhookApplicationModel:r(7379)}}},128:(e,t,r)=>{const{isAbsoluteURL:a,combineURLs:n}=r(8879),o=r(6425).default,s=r(6663),{sign:i}=r(1331),{FDKServerResponseError:l}=r(1235),{log:c,Logger:u,getLoggerLevel:d}=r(8572),p=r(4790),{version:g}=r(8330),m=o.create({withCredentials:!0,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&&!a(e.url)&&(t=n(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 f,w="";if(m&&Object.keys(m).length&&""!==s.stringify(m).trim()&&(w=`?${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);f=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+w,body:f,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){if(e.response){const t=e.response.data;throw u({level:"ERROR",message:t&&t.message?t.message:e.message,stack:t&&t.stack?t.stack:e.stack,request:{method:e.config&&e.config.url?e.config.url:void 0,url:e.config&&e.config.method?e.config.method:void 0,headers:e.config&&e.config.headers?e.config.headers:void 0}}),new l(t&&t.message?t.message:e.message,"",e.response.statusText,e.response.status,t)}throw e.request?(u({level:"ERROR",message:e.message,stack:e.stack,request:{method:e.config&&e.config.url?e.config.url:void 0,url:e.config&&e.config.method?e.config.method:void 0,headers:e.config&&e.config.headers?e.config.headers:void 0}}),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}},3010:(e,t,r)=>{const a=r(5379),{Logger:n}=r(8572),o=function(e,t=null){try{return e()}catch(e){return t}},s=function(e){if(!e||!Object.keys(e).length)return{query:null,position:null,utm_medium:null,utm_source:null,utm_campaign:null};const{utm_medium:t=null,utm_source:r=null,utm_campaign:a=null}=e,n={query:null,position:null,utm_medium:t,utm_source:r,utm_campaign:a};if("search"===t)try{const t=e.utm_content?atob(e.utm_content):null;if(t){const e=t.split(":::");n.query=e[0]||null,n.position=e[1]||null}}catch(e){return n}return n},i=function(){const e=(new Date).toISOString(),t=o((()=>window.config.application),null);return t&&Object.keys(t).length?{company_id:o((()=>t.company_id),0),company_mode:o((()=>t.mode),"live"),company_created_on:o((()=>t.company_created_on),e)}:{company_id:0,company_mode:"live",company_created_on:e}};"undefined"!=typeof window&&(window.FPI.event.on("user.login",(e=>{n({level:"DEBUG",message:e}),a.identify(e.user_id,{event_type:"identity",email:o((()=>e.email)),phone:o((()=>e.phone_number)),login_value:o((()=>e.login_value)),method:o((()=>e.method)),...i()}).catch((e=>{n({level:"ERROR",message:e})}))})),window.FPI.event.on("user.update",(e=>{n({level:"DEBUG",message:e}),a.identify(e.used_id,{event_type:"identity",email:o((()=>e.email)),phone:o((()=>e.phone_number)),method:o((()=>e.method)),...i()}).catch((e=>{n({level:"ERROR",message:e})}))})),window.FPI.event.on("user.logout",(e=>{n({level:"DEBUG",message:e}),a.sendEvent("user_logout",{event_type:"identity",...i()}).catch((e=>{n({level:"ERROR",message:e})})),a.reset().catch((e=>{n({level:"ERROR",message:e})}))})),window.FPI.event.on("wishlist.add",(e=>{n({level:"DEBUG",message:e});const t={wishlist_name:"TODO",wishlist_id:"TODO",event_type:"engagement",product_id:o((()=>e.item.uid)),brand:o((()=>e.item.brand.name)),l3_category:o((()=>e.item.categories[0].name)),mrp:o((()=>e.item.price.marked.max)),quantity:"TODO",esp:o((()=>e.item.price.effective.min)),currency:o((()=>e.item.price.effective.currency_code)),value:"TODO",source_url:"TODO",...i()},r=s(e.utm_params);a.sendEvent("product_wishlist_add",{...t,...r}).then((e=>{n({level:"DEBUG",message:"Click event sent"})})).catch((e=>{n({level:"ERROR",message:e})}))})),window.FPI.event.on("wishlist.remove",(e=>{n({level:"DEBUG",message:e}),a.sendEvent("product_wishlist_remove",{wishlist_name:"TODO",wishlist_id:"TODO",event_type:"engagement",product_id:o((()=>e.item.uid)),brand:o((()=>e.item.brand.name)),l3_category:o((()=>e.item.categories[0].name)),mrp:o((()=>e.item.price.marked.max)),quantity:"TODO",esp:o((()=>e.item.price.effective.min)),currency:o((()=>e.item.price.effective.currency_code)),value:"TODO",source_url:"TODO",...i()}).then((e=>{n({level:"DEBUG",message:"Click event sent"})})).catch((e=>{n({level:"ERROR",message:e})}))})),window.FPI.event.on("cart.newProduct",(e=>{n({level:"DEBUG",message:e});const t={cart_id:e.cart_id,event_type:"engagement",product_id:o((()=>e.products[0].uid)),article_id:o((()=>e.products[0].article.uid)),brand:o((()=>e.products[0].brand.name)),l3_category:o((()=>e.products[0].category.name)),l1_category:"TODO",currency:o((()=>e.products[0].price.currency_code)),price:o((()=>e.products[0].price.selling)),quantity:o((()=>e.products[0].quantity.current)),source_url:"TODO",position:null,query:null,value:"TODO",...i()},r=s(e.utm_params);a.sendEvent("add_to_cart",{...t,...r}).then((e=>{n({level:"DEBUG",message:"Click event sent"})})).catch((e=>{n({level:"ERROR",message:e})}))})),window.FPI.event.on("cart.remove",(e=>{n({level:"DEBUG",message:e}),a.sendEvent("remove_from_cart",{cart_id:e.cart_id,event_type:"engagement",product_id:o((()=>e.products[0].uid)),brand:o((()=>e.products[0].brand.name)),l3_category:o((()=>e.products[0].category.name)),l1_category:"TODO",currency:o((()=>e.products[0].price.currency_code)),price:o((()=>e.products[0].price.selling)),quantity:o((()=>e.products[0].quantity.current)),source_url:"TODO",position:null,value:"TODO",...i()}).then((e=>{n({level:"DEBUG",message:"Click event sent"})})).catch((e=>{n({level:"ERROR",message:e})}))})),window.FPI.event.on("order.processed",(e=>{n({level:"DEBUG",message:e}),a.sendEvent("order_complete",{event_type:"conversion",...e,...i()}).then((e=>{n({level:"DEBUG",message:"Click event sent"})})).catch((e=>{n({level:"ERROR",message:e})}))})),window.FPI.event.on("refund.success",(e=>{n({level:"DEBUG",message:e}),a.sendEvent("order_refunded",{event_type:"conversion",...e,...i()}).then((e=>{n({level:"DEBUG",message:"Click event sent"})})).catch((e=>{n({level:"ERROR",message:e})}))})),window.FPI.event.on("order.checkout",(e=>{n({level:"DEBUG",message:e}),a.sendEvent("order_checkout",{event_type:"conversion",cart_id:e.cart_id,cart_total:o((()=>e.breakup_values_raw.mrp_total)),items:o((()=>e.products.lenght)),shipping:o((()=>e.breakup_values_raw.delivery_charge)),tax:o((()=>e.breakup_values_raw.gst_charges)),order_total:o((()=>e.breakup_values_raw.total)),currency:o((()=>e.products[0].price.currency_code)),products:e.products.map((e=>({product_id:e.uid,l3_category:o((()=>e.category.name)),l1_category:"TODO",quantity:o((()=>e.quantity.current)),price:o((()=>e.price.marked)),value:o((()=>e.price.effective)),currency:o((()=>e.price.currency_code)),article_id:o((()=>e.article.uid))}))),...i()}).then((e=>{n({level:"DEBUG",message:"Click event sent"})})).catch((e=>{n({level:"ERROR",message:e})}))})),window.FPI.event.on("order.checkedout",(e=>{n({level:"DEBUG",message:e}),a.sendEvent("order_checkedout",{event_type:"conversion",cart_id:e.cart_id,cart_total:o((()=>e.breakup_values_raw.mrp_total)),item_total:o((()=>e.products.length)),shipping:o((()=>e.breakup_values_raw.delivery_charge)),tax:o((()=>e.breakup_values_raw.gst_charges)),order_total:o((()=>e.breakup_values_raw.total)),currency:o((()=>e.products[0].price.currency_code)),order_id:o((()=>e.order_id)),products:e.products.map((e=>({product_id:e.uid,l3_category:o((()=>e.category.name)),l1_category:"TODO",quantity:o((()=>e.quantity.current)),price:o((()=>e.price.marked)),value:o((()=>e.price.effective)),currency:o((()=>e.price.currency_code)),article_id:o((()=>e.article.uid))}))),...i()}).then((e=>{n({level:"DEBUG",message:"Click event sent"})})).catch((e=>{n({level:"ERROR",message:e})}))})),window.FPI.event.on("product_list.view",(e=>{n({level:"DEBUG",message:e}),e.user&&e.user.user_id&&a.identify(e.user.user_id,{},!1),a.sendEvent("product_listing",{event_type:"impression",query:o((()=>e.slug.q)),products:e.items.map((e=>({product_id:e.uid,name:e.name,currency:o((()=>e.price.effective.currency_code)),mrp:o((()=>e.price.effective.max)),esp:o((()=>e.price.effective.min)),source_url:e.url,brand:o((()=>e.brand.name))}))),item_total:o((()=>e.page.item_total)),...i()})})),window.FPI.event.on("product.view",(e=>{n({level:"DEBUG",message:e}),e.user&&e.user.user_id&&a.identify(e.user.user_id,{},!1);const t={event_type:"click",product_id:o((()=>e.product.uid)),currency:o((()=>e.product.price.currency_code)),brand:o((()=>e.product.brand.name)),l3_category:o((()=>e.product.l3_category)),mrp:o((()=>e.product.price.max)),esp:o((()=>e.product.price.min)),l1_category:o((()=>e.product.l1_category)),source_url:o((()=>e.product.source_url)),quantity:o((()=>e.product.sizes[0].quantity)),position:null,query:null},r=s(e.utm_params);a.sendEvent("product_view",{...t,...r,...i()}).then((e=>{n({level:"DEBUG",message:"Click event sent"})})).catch((e=>{n({level:"ERROR",message:e})}))})),window.FPI.event.on("search.products",(e=>{n({level:"DEBUG",message:e});const t={event_type:"search",query:e.search_text,products:[],item_total:null};let r=[];e.user&&e.user.user_id&&a.identify(e.user.user_id,{},!1),e.data&&e.data.length>0&&(r=e.data.filter((e=>{if("product"===e.type&&e.categories||e.product)return!0})).map((e=>e.display||e.name)));const s=o((()=>e.page.item_total?e.page.item_total:0));t.query&&a.sendEvent("product_search",{...t,products:r,item_total:s,...i()}).then((e=>{n({level:"DEBUG",message:"Click event sent"})})).catch((e=>{n({level:"ERROR",message:e})}))})),window.FPI.event.on("product_list.filter",(e=>{n({level:"DEBUG",message:e})})))},1235: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}},8572:(e,t,r)=>{const a=r(3065),n=r(8330).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()}}},1121: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()}}},4790:(e,t,r)=>{const a=r(6663),{combineURLs:n,isAbsoluteURL:o}=r(8879);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()}},8879:(e,t,r)=>{const{FDKException:a}=r(1235),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"},combineURLs:function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e},isAbsoluteURL:function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}}},6425:(e,t,r)=>{"use strict";function a(e,t){return function(){return e.apply(t,arguments)}}const{toString:n}=Object.prototype,{getPrototypeOf:o}=Object,s=(i=Object.create(null),e=>{const t=n.call(e);return i[t]||(i[t]=t.slice(8,-1).toLowerCase())});var i;const l=e=>(e=e.toLowerCase(),t=>s(t)===e),c=e=>t=>typeof t===e,{isArray:u}=Array,d=c("undefined"),p=l("ArrayBuffer"),g=c("string"),m=c("function"),f=c("number"),w=e=>null!==e&&"object"==typeof e,y=e=>{if("object"!==s(e))return!1;const t=o(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},b=l("Date"),h=l("File"),_=l("Blob"),v=l("FileList"),R=l("URLSearchParams"),[k,P,j,C]=["ReadableStream","Request","Response","Headers"].map(l);function q(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let a,n;if("object"!=typeof e&&(e=[e]),u(e))for(a=0,n=e.length;a0;)if(a=r[n],t===a.toLowerCase())return a;return null}const A="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:r.g,E=e=>!d(e)&&e!==A,U=(H="undefined"!=typeof Uint8Array&&o(Uint8Array),e=>H&&e instanceof H);var H;const x=l("HTMLFormElement"),O=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),I=l("RegExp"),$=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),a={};q(r,((r,n)=>{let o;!1!==(o=t(r,n,e))&&(a[n]=o||r)})),Object.defineProperties(e,a)},N="abcdefghijklmnopqrstuvwxyz",D="0123456789",W={DIGIT:D,ALPHA:N,ALPHA_DIGIT:N+N.toUpperCase()+D},L=l("AsyncFunction"),T=(V="function"==typeof setImmediate,B=m(A.postMessage),V?setImmediate:B?(F=`axios@${Math.random()}`,M=[],A.addEventListener("message",(({source:e,data:t})=>{e===A&&t===F&&M.length&&M.shift()()}),!1),e=>{M.push(e),A.postMessage(F,"*")}):e=>setTimeout(e));var V,B,F,M;const z="undefined"!=typeof queueMicrotask?queueMicrotask.bind(A):"undefined"!=typeof process&&process.nextTick||T;var G={isArray:u,isArrayBuffer:p,isBuffer:function(e){return null!==e&&!d(e)&&null!==e.constructor&&!d(e.constructor)&&m(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||m(e.append)&&("formdata"===(t=s(e))||"object"===t&&m(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&p(e.buffer),t},isString:g,isNumber:f,isBoolean:e=>!0===e||!1===e,isObject:w,isPlainObject:y,isReadableStream:k,isRequest:P,isResponse:j,isHeaders:C,isUndefined:d,isDate:b,isFile:h,isBlob:_,isRegExp:I,isFunction:m,isStream:e=>w(e)&&m(e.pipe),isURLSearchParams:R,isTypedArray:U,isFileList:v,forEach:q,merge:function e(){const{caseless:t}=E(this)&&this||{},r={},a=(a,n)=>{const o=t&&S(r,n)||n;y(r[o])&&y(a)?r[o]=e(r[o],a):y(a)?r[o]=e({},a):u(a)?r[o]=a.slice():r[o]=a};for(let e=0,t=arguments.length;e(q(t,((t,n)=>{r&&m(t)?e[n]=a(t,r):e[n]=t}),{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,a)=>{e.prototype=Object.create(t.prototype,a),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,a)=>{let n,s,i;const l={};if(t=t||{},null==e)return t;do{for(n=Object.getOwnPropertyNames(e),s=n.length;s-- >0;)i=n[s],a&&!a(i,e,t)||l[i]||(t[i]=e[i],l[i]=!0);e=!1!==r&&o(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:l,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const a=e.indexOf(t,r);return-1!==a&&a===r},toArray:e=>{if(!e)return null;if(u(e))return e;let t=e.length;if(!f(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=r.next())&&!a.done;){const r=a.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const a=[];for(;null!==(r=e.exec(t));)a.push(r);return a},isHTMLForm:x,hasOwnProperty:O,hasOwnProp:O,reduceDescriptors:$,freezeMethods:e=>{$(e,((t,r)=>{if(m(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const a=e[r];m(a)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(e,t)=>{const r={},a=e=>{e.forEach((e=>{r[e]=!0}))};return u(e)?a(e):a(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:S,global:A,isContextDefined:E,ALPHABET:W,generateString:(e=16,t=W.ALPHA_DIGIT)=>{let r="";const{length:a}=t;for(;e--;)r+=t[Math.random()*a|0];return r},isSpecCompliantForm:function(e){return!!(e&&m(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),r=(e,a)=>{if(w(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[a]=e;const n=u(e)?[]:{};return q(e,((e,t)=>{const o=r(e,a+1);!d(o)&&(n[t]=o)})),t[a]=void 0,n}}return e};return r(e,0)},isAsyncFn:L,isThenable:e=>e&&(w(e)||m(e))&&m(e.then)&&m(e.catch),setImmediate:T,asap:z};function K(e,t,r,a,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),a&&(this.request=a),n&&(this.response=n,this.status=n.status?n.status:null)}G.inherits(K,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:G.toJSONObject(this.config),code:this.code,status:this.status}}});const Q=K.prototype,J={};function Z(e){return G.isPlainObject(e)||G.isArray(e)}function Y(e){return G.endsWith(e,"[]")?e.slice(0,-2):e}function X(e,t,r){return e?e.concat(t).map((function(e,t){return e=Y(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}["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","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{J[e]={value:e}})),Object.defineProperties(K,J),Object.defineProperty(Q,"isAxiosError",{value:!0}),K.from=(e,t,r,a,n,o)=>{const s=Object.create(Q);return G.toFlatObject(e,s,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),K.call(s,e.message,t,r,a,n),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const ee=G.toFlatObject(G,{},null,(function(e){return/^is[A-Z]/.test(e)}));function te(e,t,r){if(!G.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const a=(r=G.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!G.isUndefined(t[e])}))).metaTokens,n=r.visitor||c,o=r.dots,s=r.indexes,i=(r.Blob||"undefined"!=typeof Blob&&Blob)&&G.isSpecCompliantForm(t);if(!G.isFunction(n))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(G.isDate(e))return e.toISOString();if(!i&&G.isBlob(e))throw new K("Blob is not supported. Use a Buffer instead.");return G.isArrayBuffer(e)||G.isTypedArray(e)?i&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,r,n){let i=e;if(e&&!n&&"object"==typeof e)if(G.endsWith(r,"{}"))r=a?r:r.slice(0,-2),e=JSON.stringify(e);else if(G.isArray(e)&&function(e){return G.isArray(e)&&!e.some(Z)}(e)||(G.isFileList(e)||G.endsWith(r,"[]"))&&(i=G.toArray(e)))return r=Y(r),i.forEach((function(e,a){!G.isUndefined(e)&&null!==e&&t.append(!0===s?X([r],a,o):null===s?r:r+"[]",l(e))})),!1;return!!Z(e)||(t.append(X(n,r,o),l(e)),!1)}const u=[],d=Object.assign(ee,{defaultVisitor:c,convertValue:l,isVisitable:Z});if(!G.isObject(e))throw new TypeError("data must be an object");return function e(r,a){if(!G.isUndefined(r)){if(-1!==u.indexOf(r))throw Error("Circular reference detected in "+a.join("."));u.push(r),G.forEach(r,(function(r,o){!0===(!(G.isUndefined(r)||null===r)&&n.call(t,r,G.isString(o)?o.trim():o,a,d))&&e(r,a?a.concat(o):[o])})),u.pop()}}(e),t}function re(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function ae(e,t){this._pairs=[],e&&te(e,this,t)}const ne=ae.prototype;function oe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function se(e,t,r){if(!t)return e;const a=r&&r.encode||oe,n=r&&r.serialize;let o;if(o=n?n(t,r):G.isURLSearchParams(t)?t.toString():new ae(t,r).toString(a),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}ne.append=function(e,t){this._pairs.push([e,t])},ne.toString=function(e){const t=e?function(t){return e.call(this,t,re)}:re;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var ie=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){G.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},le={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ce={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ae,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const ue="undefined"!=typeof window&&"undefined"!=typeof document,de="object"==typeof navigator&&navigator||void 0,pe=ue&&(!de||["ReactNative","NativeScript","NS"].indexOf(de.product)<0),ge="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,me=ue&&window.location.href||"http://localhost";var fe={...Object.freeze({__proto__:null,hasBrowserEnv:ue,hasStandardBrowserWebWorkerEnv:ge,hasStandardBrowserEnv:pe,navigator:de,origin:me}),...ce};function we(e){function t(e,r,a,n){let o=e[n++];if("__proto__"===o)return!0;const s=Number.isFinite(+o),i=n>=e.length;return o=!o&&G.isArray(a)?a.length:o,i?(G.hasOwnProp(a,o)?a[o]=[a[o],r]:a[o]=r,!s):(a[o]&&G.isObject(a[o])||(a[o]=[]),t(e,r,a[o],n)&&G.isArray(a[o])&&(a[o]=function(e){const t={},r=Object.keys(e);let a;const n=r.length;let o;for(a=0;a{t(function(e){return G.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),a,r,0)})),r}return null}const ye={transitional:le,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",a=r.indexOf("application/json")>-1,n=G.isObject(e);if(n&&G.isHTMLForm(e)&&(e=new FormData(e)),G.isFormData(e))return a?JSON.stringify(we(e)):e;if(G.isArrayBuffer(e)||G.isBuffer(e)||G.isStream(e)||G.isFile(e)||G.isBlob(e)||G.isReadableStream(e))return e;if(G.isArrayBufferView(e))return e.buffer;if(G.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(n){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return te(e,new fe.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,a){return fe.isNode&&G.isBuffer(e)?(this.append(t,e.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=G.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return te(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return n||a?(t.setContentType("application/json",!1),function(e){if(G.isString(e))try{return(0,JSON.parse)(e),G.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ye.transitional,r=t&&t.forcedJSONParsing,a="json"===this.responseType;if(G.isResponse(e)||G.isReadableStream(e))return e;if(e&&G.isString(e)&&(r&&!this.responseType||a)){const r=!(t&&t.silentJSONParsing)&&a;try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw K.from(e,K.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:fe.classes.FormData,Blob:fe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};G.forEach(["delete","get","head","post","put","patch"],(e=>{ye.headers[e]={}}));var be=ye;const he=G.toObjectSet(["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=Symbol("internals");function ve(e){return e&&String(e).trim().toLowerCase()}function Re(e){return!1===e||null==e?e:G.isArray(e)?e.map(Re):String(e)}function ke(e,t,r,a,n){return G.isFunction(a)?a.call(this,t,r):(n&&(t=r),G.isString(t)?G.isString(a)?-1!==t.indexOf(a):G.isRegExp(a)?a.test(t):void 0:void 0)}class Pe{constructor(e){e&&this.set(e)}set(e,t,r){const a=this;function n(e,t,r){const n=ve(t);if(!n)throw new Error("header name must be a non-empty string");const o=G.findKey(a,n);(!o||void 0===a[o]||!0===r||void 0===r&&!1!==a[o])&&(a[o||t]=Re(e))}const o=(e,t)=>G.forEach(e,((e,r)=>n(e,r,t)));if(G.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(G.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))o((e=>{const t={};let r,a,n;return e&&e.split("\n").forEach((function(e){n=e.indexOf(":"),r=e.substring(0,n).trim().toLowerCase(),a=e.substring(n+1).trim(),!r||t[r]&&he[r]||("set-cookie"===r?t[r]?t[r].push(a):t[r]=[a]:t[r]=t[r]?t[r]+", "+a:a)})),t})(e),t);else if(G.isHeaders(e))for(const[t,a]of e.entries())n(a,t,r);else null!=e&&n(t,e,r);return this}get(e,t){if(e=ve(e)){const r=G.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=r.exec(e);)t[a[1]]=a[2];return t}(e);if(G.isFunction(t))return t.call(this,e,r);if(G.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ve(e)){const r=G.findKey(this,e);return!(!r||void 0===this[r]||t&&!ke(0,this[r],r,t))}return!1}delete(e,t){const r=this;let a=!1;function n(e){if(e=ve(e)){const n=G.findKey(r,e);!n||t&&!ke(0,r[n],n,t)||(delete r[n],a=!0)}}return G.isArray(e)?e.forEach(n):n(e),a}clear(e){const t=Object.keys(this);let r=t.length,a=!1;for(;r--;){const n=t[r];e&&!ke(0,this[n],n,e,!0)||(delete this[n],a=!0)}return a}normalize(e){const t=this,r={};return G.forEach(this,((a,n)=>{const o=G.findKey(r,n);if(o)return t[o]=Re(a),void delete t[n];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(n):String(n).trim();s!==n&&delete t[n],t[s]=Re(a),r[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return G.forEach(this,((r,a)=>{null!=r&&!1!==r&&(t[a]=e&&G.isArray(r)?r.join(", "):r)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach((e=>r.set(e))),r}static accessor(e){const t=(this[_e]=this[_e]={accessors:{}}).accessors,r=this.prototype;function a(e){const a=ve(e);t[a]||(function(e,t){const r=G.toCamelCase(" "+t);["get","set","has"].forEach((a=>{Object.defineProperty(e,a+r,{value:function(e,r,n){return this[a].call(this,t,e,r,n)},configurable:!0})}))}(r,e),t[a]=!0)}return G.isArray(e)?e.forEach(a):a(e),this}}Pe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),G.reduceDescriptors(Pe.prototype,(({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}})),G.freezeMethods(Pe);var je=Pe;function Ce(e,t){const r=this||be,a=t||r,n=je.from(a.headers);let o=a.data;return G.forEach(e,(function(e){o=e.call(r,o,n.normalize(),t?t.status:void 0)})),n.normalize(),o}function qe(e){return!(!e||!e.__CANCEL__)}function Se(e,t,r){K.call(this,null==e?"canceled":e,K.ERR_CANCELED,t,r),this.name="CanceledError"}function Ae(e,t,r){const a=r.config.validateStatus;r.status&&a&&!a(r.status)?t(new K("Request failed with status code "+r.status,[K.ERR_BAD_REQUEST,K.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}G.inherits(Se,K,{__CANCEL__:!0});const Ee=(e,t,r=3)=>{let a=0;const n=function(e,t){e=e||10;const r=new Array(e),a=new Array(e);let n,o=0,s=0;return t=void 0!==t?t:1e3,function(i){const l=Date.now(),c=a[s];n||(n=l),r[o]=i,a[o]=l;let u=s,d=0;for(;u!==o;)d+=r[u++],u%=e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),l-n{n=o,r=null,a&&(clearTimeout(a),a=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),i=t-n;i>=o?s(e,t):(r=e,a||(a=setTimeout((()=>{a=null,s(r)}),o-i)))},()=>r&&s(r)]}((r=>{const o=r.loaded,s=r.lengthComputable?r.total:void 0,i=o-a,l=n(i);a=o,e({loaded:o,total:s,progress:s?o/s:void 0,bytes:i,rate:l||void 0,estimated:l&&s&&o<=s?(s-o)/l:void 0,event:r,lengthComputable:null!=s,[t?"download":"upload"]:!0})}),r)},Ue=(e,t)=>{const r=null!=e;return[a=>t[0]({lengthComputable:r,total:e,loaded:a}),t[1]]},He=e=>(...t)=>G.asap((()=>e(...t)));var xe=fe.hasStandardBrowserEnv?function(){const e=fe.navigator&&/(msie|trident)/i.test(fe.navigator.userAgent),t=document.createElement("a");let r;function a(r){let a=r;return e&&(t.setAttribute("href",a),a=t.href),t.setAttribute("href",a),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return r=a(window.location.href),function(e){const t=G.isString(e)?a(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function(){return!0},Oe=fe.hasStandardBrowserEnv?{write(e,t,r,a,n,o){const s=[e+"="+encodeURIComponent(t)];G.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),G.isString(a)&&s.push("path="+a),G.isString(n)&&s.push("domain="+n),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Ie(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const $e=e=>e instanceof je?{...e}:e;function Ne(e,t){t=t||{};const r={};function a(e,t,r){return G.isPlainObject(e)&&G.isPlainObject(t)?G.merge.call({caseless:r},e,t):G.isPlainObject(t)?G.merge({},t):G.isArray(t)?t.slice():t}function n(e,t,r){return G.isUndefined(t)?G.isUndefined(e)?void 0:a(void 0,e,r):a(e,t,r)}function o(e,t){if(!G.isUndefined(t))return a(void 0,t)}function s(e,t){return G.isUndefined(t)?G.isUndefined(e)?void 0:a(void 0,e):a(void 0,t)}function i(r,n,o){return o in t?a(r,n):o in e?a(void 0,r):void 0}const l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:i,headers:(e,t)=>n($e(e),$e(t),!0)};return G.forEach(Object.keys(Object.assign({},e,t)),(function(a){const o=l[a]||n,s=o(e[a],t[a],a);G.isUndefined(s)&&o!==i||(r[a]=s)})),r}var De=e=>{const t=Ne({},e);let r,{data:a,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:s,headers:i,auth:l}=t;if(t.headers=i=je.from(i),t.url=se(Ie(t.baseURL,t.url),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),G.isFormData(a))if(fe.hasStandardBrowserEnv||fe.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(!1!==(r=i.getContentType())){const[e,...t]=r?r.split(";").map((e=>e.trim())).filter(Boolean):[];i.setContentType([e||"multipart/form-data",...t].join("; "))}if(fe.hasStandardBrowserEnv&&(n&&G.isFunction(n)&&(n=n(t)),n||!1!==n&&xe(t.url))){const e=o&&s&&Oe.read(s);e&&i.set(o,e)}return t},We="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){const a=De(e);let n=a.data;const o=je.from(a.headers).normalize();let s,i,l,c,u,{responseType:d,onUploadProgress:p,onDownloadProgress:g}=a;function m(){c&&c(),u&&u(),a.cancelToken&&a.cancelToken.unsubscribe(s),a.signal&&a.signal.removeEventListener("abort",s)}let f=new XMLHttpRequest;function w(){if(!f)return;const a=je.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders());Ae((function(e){t(e),m()}),(function(e){r(e),m()}),{data:d&&"text"!==d&&"json"!==d?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:a,config:e,request:f}),f=null}f.open(a.method.toUpperCase(),a.url,!0),f.timeout=a.timeout,"onloadend"in f?f.onloadend=w:f.onreadystatechange=function(){f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))&&setTimeout(w)},f.onabort=function(){f&&(r(new K("Request aborted",K.ECONNABORTED,e,f)),f=null)},f.onerror=function(){r(new K("Network Error",K.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let t=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const n=a.transitional||le;a.timeoutErrorMessage&&(t=a.timeoutErrorMessage),r(new K(t,n.clarifyTimeoutError?K.ETIMEDOUT:K.ECONNABORTED,e,f)),f=null},void 0===n&&o.setContentType(null),"setRequestHeader"in f&&G.forEach(o.toJSON(),(function(e,t){f.setRequestHeader(t,e)})),G.isUndefined(a.withCredentials)||(f.withCredentials=!!a.withCredentials),d&&"json"!==d&&(f.responseType=a.responseType),g&&([l,u]=Ee(g,!0),f.addEventListener("progress",l)),p&&f.upload&&([i,c]=Ee(p),f.upload.addEventListener("progress",i),f.upload.addEventListener("loadend",c)),(a.cancelToken||a.signal)&&(s=t=>{f&&(r(!t||t.type?new Se(null,e,f):t),f.abort(),f=null)},a.cancelToken&&a.cancelToken.subscribe(s),a.signal&&(a.signal.aborted?s():a.signal.addEventListener("abort",s)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(a.url);y&&-1===fe.protocols.indexOf(y)?r(new K("Unsupported protocol "+y+":",K.ERR_BAD_REQUEST,e)):f.send(n||null)}))},Le=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,a=new AbortController;const n=function(e){if(!r){r=!0,s();const t=e instanceof Error?e:this.reason;a.abort(t instanceof K?t:new Se(t instanceof Error?t.message:t))}};let o=t&&setTimeout((()=>{o=null,n(new K(`timeout ${t} of ms exceeded`,K.ETIMEDOUT))}),t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(n):e.removeEventListener("abort",n)})),e=null)};e.forEach((e=>e.addEventListener("abort",n)));const{signal:i}=a;return i.unsubscribe=()=>G.asap(s),i}};const Te=function*(e,t){let r=e.byteLength;if(!t||r{const n=async function*(e,t){for await(const r of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}}(e))yield*Te(r,t)}(e,t);let o,s=0,i=e=>{o||(o=!0,a&&a(e))};return new ReadableStream({async pull(e){try{const{done:t,value:a}=await n.next();if(t)return i(),void e.close();let o=a.byteLength;if(r){let e=s+=o;r(e)}e.enqueue(new Uint8Array(a))}catch(e){throw i(e),e}},cancel:e=>(i(e),n.return())},{highWaterMark:2})},Be="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Fe=Be&&"function"==typeof ReadableStream,Me=Be&&("function"==typeof TextEncoder?(ze=new TextEncoder,e=>ze.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var ze;const Ge=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Ke=Fe&&Ge((()=>{let e=!1;const t=new Request(fe.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Qe=Fe&&Ge((()=>G.isReadableStream(new Response("").body))),Je={stream:Qe&&(e=>e.body)};var Ze;Be&&(Ze=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Je[e]&&(Je[e]=G.isFunction(Ze[e])?t=>t[e]():(t,r)=>{throw new K(`Response type '${e}' is not supported`,K.ERR_NOT_SUPPORT,r)})})));const Ye={http:null,xhr:We,fetch:Be&&(async e=>{let{url:t,method:r,data:a,signal:n,cancelToken:o,timeout:s,onDownloadProgress:i,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:p}=De(e);c=c?(c+"").toLowerCase():"text";let g,m=Le([n,o&&o.toAbortSignal()],s);const f=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let w;try{if(l&&Ke&&"get"!==r&&"head"!==r&&0!==(w=await(async(e,t)=>{const r=G.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(G.isBlob(e))return e.size;if(G.isSpecCompliantForm(e)){const t=new Request(fe.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return G.isArrayBufferView(e)||G.isArrayBuffer(e)?e.byteLength:(G.isURLSearchParams(e)&&(e+=""),G.isString(e)?(await Me(e)).byteLength:void 0)})(t):r})(u,a))){let e,r=new Request(t,{method:"POST",body:a,duplex:"half"});if(G.isFormData(a)&&(e=r.headers.get("content-type"))&&u.setContentType(e),r.body){const[e,t]=Ue(w,Ee(He(l)));a=Ve(r.body,65536,e,t)}}G.isString(d)||(d=d?"include":"omit");const n="credentials"in Request.prototype;g=new Request(t,{...p,signal:m,method:r.toUpperCase(),headers:u.normalize().toJSON(),body:a,duplex:"half",credentials:n?d:void 0});let o=await fetch(g);const s=Qe&&("stream"===c||"response"===c);if(Qe&&(i||s&&f)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=G.toFiniteNumber(o.headers.get("content-length")),[r,a]=i&&Ue(t,Ee(He(i),!0))||[];o=new Response(Ve(o.body,65536,r,(()=>{a&&a(),f&&f()})),e)}c=c||"text";let y=await Je[G.findKey(Je,c)||"text"](o,e);return!s&&f&&f(),await new Promise(((t,r)=>{Ae(t,r,{data:y,headers:je.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:g})}))}catch(t){if(f&&f(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new K("Network Error",K.ERR_NETWORK,e,g),{cause:t.cause||t});throw K.from(t,t&&t.code,e,g)}})};G.forEach(Ye,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Xe=e=>`- ${e}`,et=e=>G.isFunction(e)||null===e||!1===e;var tt=e=>{e=G.isArray(e)?e:[e];const{length:t}=e;let r,a;const n={};for(let o=0;o`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new K("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Xe).join("\n"):" "+Xe(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return a};function rt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Se(null,e)}function at(e){return rt(e),e.headers=je.from(e.headers),e.data=Ce.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),tt(e.adapter||be.adapter)(e).then((function(t){return rt(e),t.data=Ce.call(e,e.transformResponse,t),t.headers=je.from(t.headers),t}),(function(t){return qe(t)||(rt(e),t&&t.response&&(t.response.data=Ce.call(e,e.transformResponse,t.response),t.response.headers=je.from(t.response.headers))),Promise.reject(t)}))}const nt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{nt[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const ot={};nt.transitional=function(e,t,r){function a(e,t){return"[Axios v1.7.7] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,n,o)=>{if(!1===e)throw new K(a(n," has been removed"+(t?" in "+t:"")),K.ERR_DEPRECATED);return t&&!ot[n]&&(ot[n]=!0,console.warn(a(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,o)}};var st={assertOptions:function(e,t,r){if("object"!=typeof e)throw new K("options must be an object",K.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let n=a.length;for(;n-- >0;){const o=a[n],s=t[o];if(s){const t=e[o],r=void 0===t||s(t,o,e);if(!0!==r)throw new K("option "+o+" must be "+r,K.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new K("Unknown option "+o,K.ERR_BAD_OPTION)}},validators:nt};const it=st.validators;class lt{constructor(e){this.defaults=e,this.interceptors={request:new ie,response:new ie}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ne(this.defaults,t);const{transitional:r,paramsSerializer:a,headers:n}=t;void 0!==r&&st.assertOptions(r,{silentJSONParsing:it.transitional(it.boolean),forcedJSONParsing:it.transitional(it.boolean),clarifyTimeoutError:it.transitional(it.boolean)},!1),null!=a&&(G.isFunction(a)?t.paramsSerializer={serialize:a}:st.assertOptions(a,{encode:it.function,serialize:it.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=n&&G.merge(n.common,n[t.method]);n&&G.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete n[e]})),t.headers=je.concat(o,n);const s=[];let i=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!i){const e=[at.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null})),this.promise.then=e=>{let t;const a=new Promise((e=>{r.subscribe(e),t=e})).then(e);return a.cancel=function(){r.unsubscribe(t)},a},e((function(e,a,n){r.reason||(r.reason=new Se(e,a,n),t(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new ut((function(t){e=t})),cancel:e}}}var dt=ut;const pt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(pt).forEach((([e,t])=>{pt[t]=e}));var gt=pt;const mt=function e(t){const r=new ct(t),n=a(ct.prototype.request,r);return G.extend(n,ct.prototype,r,{allOwnKeys:!0}),G.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(Ne(t,r))},n}(be);mt.Axios=ct,mt.CanceledError=Se,mt.CancelToken=dt,mt.isCancel=qe,mt.VERSION="1.7.7",mt.toFormData=te,mt.AxiosError=K,mt.Cancel=mt.CanceledError,mt.all=function(e){return Promise.all(e)},mt.spread=function(e){return function(t){return e.apply(null,t)}},mt.isAxiosError=function(e){return G.isObject(e)&&!0===e.isAxiosError},mt.mergeConfig=Ne,mt.AxiosHeaders=je,mt.formToJSON=e=>we(G.isHTMLForm(e)?new FormData(e):e),mt.getAdapter=tt,mt.HttpStatusCode=gt,mt.default=mt,e.exports=mt},8330:e=>{"use strict";e.exports=JSON.parse('{"name":"@gofynd/fdk-client-javascript","version":"1.4.12-beta.1","description":"","main":"index.js","scripts":{"test":"jest --coverage","lint":"eslint","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":"^1.6.4","camelcase":"^6.3.0","joi":"^17.7.0","loglevel":"^1.8.1","query-string":"^7.1.3","@gofynd/fp-signature":"^1.0.1","@gofynd/flick":"^1.0.9"},"devDependencies":{"axios-cookiejar-support":"^4.0.6","axios-mock-adapter":"^1.21.2","clean-webpack-plugin":"^4.0.0","coveralls":"^3.1.1","eslint":"^8.57.0","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={};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}r.amdO={},r.d=(e,t)=>{for(var a in t)r.o(t,a)&&!r.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},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.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a=r(2675),n=window;for(var o in a)n[o]=a[o];a.__esModule&&Object.defineProperty(n,"__esModule",{value:!0})})(); \ No newline at end of file +(()=>{var e={2675:(e,t,r)=>{const{ApplicationConfig:a,ApplicationClient:n,ApplicationModel:o}=r(3775);e.exports={ApplicationConfig:a,ApplicationClient:n,ApplicationModel:o}},768:(e,t,r)=>{"use strict";r.r(t),r.d(t,{apiKey:()=>Ft,axiosRequest:()=>Lt,batchExecutorID:()=>Mt,client:()=>Bt,eventProcessor:()=>Wt,identify:()=>zt,initialize:()=>Kt,reset:()=>Gt,sendEvent:()=>Jt,stelioLocal:()=>Vt,validateClient:()=>Qt});var a={};function n(e,t){return function(){return e.apply(t,arguments)}}r.r(a),r.d(a,{hasBrowserEnv:()=>ge,hasStandardBrowserEnv:()=>fe,hasStandardBrowserWebWorkerEnv:()=>we,navigator:()=>me,origin:()=>ye});const{toString:o}=Object.prototype,{getPrototypeOf:s}=Object,i=(l=Object.create(null),e=>{const t=o.call(e);return l[t]||(l[t]=t.slice(8,-1).toLowerCase())});var l;const c=e=>(e=e.toLowerCase(),t=>i(t)===e),u=e=>t=>typeof t===e,{isArray:d}=Array,p=u("undefined"),g=c("ArrayBuffer"),m=u("string"),f=u("function"),w=u("number"),y=e=>null!==e&&"object"==typeof e,h=e=>{if("object"!==i(e))return!1;const t=s(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},b=c("Date"),_=c("File"),v=c("Blob"),R=c("FileList"),k=c("URLSearchParams"),[P,j,S,C]=["ReadableStream","Request","Response","Headers"].map(c);function q(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let a,n;if("object"!=typeof e&&(e=[e]),d(e))for(a=0,n=e.length;a0;)if(a=r[n],t===a.toLowerCase())return a;return null}const E="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,O=e=>!p(e)&&e!==E,U=(x="undefined"!=typeof Uint8Array&&s(Uint8Array),e=>x&&e instanceof x);var x;const H=c("HTMLFormElement"),I=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),N=c("RegExp"),$=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),a={};q(r,((r,n)=>{let o;!1!==(o=t(r,n,e))&&(a[n]=o||r)})),Object.defineProperties(e,a)},T="abcdefghijklmnopqrstuvwxyz",D="0123456789",L={DIGIT:D,ALPHA:T,ALPHA_DIGIT:T+T.toUpperCase()+D},W=c("AsyncFunction"),B=(F="function"==typeof setImmediate,V=f(E.postMessage),F?setImmediate:V?(M=`axios@${Math.random()}`,z=[],E.addEventListener("message",(({source:e,data:t})=>{e===E&&t===M&&z.length&&z.shift()()}),!1),e=>{z.push(e),E.postMessage(M,"*")}):e=>setTimeout(e));var F,V,M,z;const G="undefined"!=typeof queueMicrotask?queueMicrotask.bind(E):"undefined"!=typeof process&&process.nextTick||B,K={isArray:d,isArrayBuffer:g,isBuffer:function(e){return null!==e&&!p(e)&&null!==e.constructor&&!p(e.constructor)&&f(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||f(e.append)&&("formdata"===(t=i(e))||"object"===t&&f(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&g(e.buffer),t},isString:m,isNumber:w,isBoolean:e=>!0===e||!1===e,isObject:y,isPlainObject:h,isReadableStream:P,isRequest:j,isResponse:S,isHeaders:C,isUndefined:p,isDate:b,isFile:_,isBlob:v,isRegExp:N,isFunction:f,isStream:e=>y(e)&&f(e.pipe),isURLSearchParams:k,isTypedArray:U,isFileList:R,forEach:q,merge:function e(){const{caseless:t}=O(this)&&this||{},r={},a=(a,n)=>{const o=t&&A(r,n)||n;h(r[o])&&h(a)?r[o]=e(r[o],a):h(a)?r[o]=e({},a):d(a)?r[o]=a.slice():r[o]=a};for(let e=0,t=arguments.length;e(q(t,((t,a)=>{r&&f(t)?e[a]=n(t,r):e[a]=t}),{allOwnKeys:a}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,a)=>{e.prototype=Object.create(t.prototype,a),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,a)=>{let n,o,i;const l={};if(t=t||{},null==e)return t;do{for(n=Object.getOwnPropertyNames(e),o=n.length;o-- >0;)i=n[o],a&&!a(i,e,t)||l[i]||(t[i]=e[i],l[i]=!0);e=!1!==r&&s(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:i,kindOfTest:c,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const a=e.indexOf(t,r);return-1!==a&&a===r},toArray:e=>{if(!e)return null;if(d(e))return e;let t=e.length;if(!w(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=r.next())&&!a.done;){const r=a.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const a=[];for(;null!==(r=e.exec(t));)a.push(r);return a},isHTMLForm:H,hasOwnProperty:I,hasOwnProp:I,reduceDescriptors:$,freezeMethods:e=>{$(e,((t,r)=>{if(f(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const a=e[r];f(a)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(e,t)=>{const r={},a=e=>{e.forEach((e=>{r[e]=!0}))};return d(e)?a(e):a(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:A,global:E,isContextDefined:O,ALPHABET:L,generateString:(e=16,t=L.ALPHA_DIGIT)=>{let r="";const{length:a}=t;for(;e--;)r+=t[Math.random()*a|0];return r},isSpecCompliantForm:function(e){return!!(e&&f(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),r=(e,a)=>{if(y(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[a]=e;const n=d(e)?[]:{};return q(e,((e,t)=>{const o=r(e,a+1);!p(o)&&(n[t]=o)})),t[a]=void 0,n}}return e};return r(e,0)},isAsyncFn:W,isThenable:e=>e&&(y(e)||f(e))&&f(e.then)&&f(e.catch),setImmediate:B,asap:G};function Q(e,t,r,a,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),a&&(this.request=a),n&&(this.response=n,this.status=n.status?n.status:null)}K.inherits(Q,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:K.toJSONObject(this.config),code:this.code,status:this.status}}});const J=Q.prototype,Z={};["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","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{Z[e]={value:e}})),Object.defineProperties(Q,Z),Object.defineProperty(J,"isAxiosError",{value:!0}),Q.from=(e,t,r,a,n,o)=>{const s=Object.create(J);return K.toFlatObject(e,s,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Q.call(s,e.message,t,r,a,n),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const X=Q;function Y(e){return K.isPlainObject(e)||K.isArray(e)}function ee(e){return K.endsWith(e,"[]")?e.slice(0,-2):e}function te(e,t,r){return e?e.concat(t).map((function(e,t){return e=ee(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}const re=K.toFlatObject(K,{},null,(function(e){return/^is[A-Z]/.test(e)})),ae=function(e,t,r){if(!K.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const a=(r=K.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!K.isUndefined(t[e])}))).metaTokens,n=r.visitor||c,o=r.dots,s=r.indexes,i=(r.Blob||"undefined"!=typeof Blob&&Blob)&&K.isSpecCompliantForm(t);if(!K.isFunction(n))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(K.isDate(e))return e.toISOString();if(!i&&K.isBlob(e))throw new X("Blob is not supported. Use a Buffer instead.");return K.isArrayBuffer(e)||K.isTypedArray(e)?i&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,r,n){let i=e;if(e&&!n&&"object"==typeof e)if(K.endsWith(r,"{}"))r=a?r:r.slice(0,-2),e=JSON.stringify(e);else if(K.isArray(e)&&function(e){return K.isArray(e)&&!e.some(Y)}(e)||(K.isFileList(e)||K.endsWith(r,"[]"))&&(i=K.toArray(e)))return r=ee(r),i.forEach((function(e,a){!K.isUndefined(e)&&null!==e&&t.append(!0===s?te([r],a,o):null===s?r:r+"[]",l(e))})),!1;return!!Y(e)||(t.append(te(n,r,o),l(e)),!1)}const u=[],d=Object.assign(re,{defaultVisitor:c,convertValue:l,isVisitable:Y});if(!K.isObject(e))throw new TypeError("data must be an object");return function e(r,a){if(!K.isUndefined(r)){if(-1!==u.indexOf(r))throw Error("Circular reference detected in "+a.join("."));u.push(r),K.forEach(r,(function(r,o){!0===(!(K.isUndefined(r)||null===r)&&n.call(t,r,K.isString(o)?o.trim():o,a,d))&&e(r,a?a.concat(o):[o])})),u.pop()}}(e),t};function ne(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function oe(e,t){this._pairs=[],e&&ae(e,this,t)}const se=oe.prototype;se.append=function(e,t){this._pairs.push([e,t])},se.toString=function(e){const t=e?function(t){return e.call(this,t,ne)}:ne;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const ie=oe;function le(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ce(e,t,r){if(!t)return e;const a=r&&r.encode||le,n=r&&r.serialize;let o;if(o=n?n(t,r):K.isURLSearchParams(t)?t.toString():new ie(t,r).toString(a),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}const ue=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){K.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},de={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},pe={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ie,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},ge="undefined"!=typeof window&&"undefined"!=typeof document,me="object"==typeof navigator&&navigator||void 0,fe=ge&&(!me||["ReactNative","NativeScript","NS"].indexOf(me.product)<0),we="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ye=ge&&window.location.href||"http://localhost",he={...a,...pe},be=function(e){function t(e,r,a,n){let o=e[n++];if("__proto__"===o)return!0;const s=Number.isFinite(+o),i=n>=e.length;return o=!o&&K.isArray(a)?a.length:o,i?(K.hasOwnProp(a,o)?a[o]=[a[o],r]:a[o]=r,!s):(a[o]&&K.isObject(a[o])||(a[o]=[]),t(e,r,a[o],n)&&K.isArray(a[o])&&(a[o]=function(e){const t={},r=Object.keys(e);let a;const n=r.length;let o;for(a=0;a{t(function(e){return K.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),a,r,0)})),r}return null},_e={transitional:de,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",a=r.indexOf("application/json")>-1,n=K.isObject(e);if(n&&K.isHTMLForm(e)&&(e=new FormData(e)),K.isFormData(e))return a?JSON.stringify(be(e)):e;if(K.isArrayBuffer(e)||K.isBuffer(e)||K.isStream(e)||K.isFile(e)||K.isBlob(e)||K.isReadableStream(e))return e;if(K.isArrayBufferView(e))return e.buffer;if(K.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(n){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return ae(e,new he.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,a){return he.isNode&&K.isBuffer(e)?(this.append(t,e.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=K.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return ae(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return n||a?(t.setContentType("application/json",!1),function(e){if(K.isString(e))try{return(0,JSON.parse)(e),K.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||_e.transitional,r=t&&t.forcedJSONParsing,a="json"===this.responseType;if(K.isResponse(e)||K.isReadableStream(e))return e;if(e&&K.isString(e)&&(r&&!this.responseType||a)){const r=!(t&&t.silentJSONParsing)&&a;try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw X.from(e,X.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:he.classes.FormData,Blob:he.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};K.forEach(["delete","get","head","post","put","patch"],(e=>{_e.headers[e]={}}));const ve=_e,Re=K.toObjectSet(["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"]),ke=Symbol("internals");function Pe(e){return e&&String(e).trim().toLowerCase()}function je(e){return!1===e||null==e?e:K.isArray(e)?e.map(je):String(e)}function Se(e,t,r,a,n){return K.isFunction(a)?a.call(this,t,r):(n&&(t=r),K.isString(t)?K.isString(a)?-1!==t.indexOf(a):K.isRegExp(a)?a.test(t):void 0:void 0)}class Ce{constructor(e){e&&this.set(e)}set(e,t,r){const a=this;function n(e,t,r){const n=Pe(t);if(!n)throw new Error("header name must be a non-empty string");const o=K.findKey(a,n);(!o||void 0===a[o]||!0===r||void 0===r&&!1!==a[o])&&(a[o||t]=je(e))}const o=(e,t)=>K.forEach(e,((e,r)=>n(e,r,t)));if(K.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(K.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))o((e=>{const t={};let r,a,n;return e&&e.split("\n").forEach((function(e){n=e.indexOf(":"),r=e.substring(0,n).trim().toLowerCase(),a=e.substring(n+1).trim(),!r||t[r]&&Re[r]||("set-cookie"===r?t[r]?t[r].push(a):t[r]=[a]:t[r]=t[r]?t[r]+", "+a:a)})),t})(e),t);else if(K.isHeaders(e))for(const[t,a]of e.entries())n(a,t,r);else null!=e&&n(t,e,r);return this}get(e,t){if(e=Pe(e)){const r=K.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=r.exec(e);)t[a[1]]=a[2];return t}(e);if(K.isFunction(t))return t.call(this,e,r);if(K.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Pe(e)){const r=K.findKey(this,e);return!(!r||void 0===this[r]||t&&!Se(0,this[r],r,t))}return!1}delete(e,t){const r=this;let a=!1;function n(e){if(e=Pe(e)){const n=K.findKey(r,e);!n||t&&!Se(0,r[n],n,t)||(delete r[n],a=!0)}}return K.isArray(e)?e.forEach(n):n(e),a}clear(e){const t=Object.keys(this);let r=t.length,a=!1;for(;r--;){const n=t[r];e&&!Se(0,this[n],n,e,!0)||(delete this[n],a=!0)}return a}normalize(e){const t=this,r={};return K.forEach(this,((a,n)=>{const o=K.findKey(r,n);if(o)return t[o]=je(a),void delete t[n];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(n):String(n).trim();s!==n&&delete t[n],t[s]=je(a),r[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return K.forEach(this,((r,a)=>{null!=r&&!1!==r&&(t[a]=e&&K.isArray(r)?r.join(", "):r)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach((e=>r.set(e))),r}static accessor(e){const t=(this[ke]=this[ke]={accessors:{}}).accessors,r=this.prototype;function a(e){const a=Pe(e);t[a]||(function(e,t){const r=K.toCamelCase(" "+t);["get","set","has"].forEach((a=>{Object.defineProperty(e,a+r,{value:function(e,r,n){return this[a].call(this,t,e,r,n)},configurable:!0})}))}(r,e),t[a]=!0)}return K.isArray(e)?e.forEach(a):a(e),this}}Ce.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),K.reduceDescriptors(Ce.prototype,(({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}})),K.freezeMethods(Ce);const qe=Ce;function Ae(e,t){const r=this||ve,a=t||r,n=qe.from(a.headers);let o=a.data;return K.forEach(e,(function(e){o=e.call(r,o,n.normalize(),t?t.status:void 0)})),n.normalize(),o}function Ee(e){return!(!e||!e.__CANCEL__)}function Oe(e,t,r){X.call(this,null==e?"canceled":e,X.ERR_CANCELED,t,r),this.name="CanceledError"}K.inherits(Oe,X,{__CANCEL__:!0});const Ue=Oe;function xe(e,t,r){const a=r.config.validateStatus;r.status&&a&&!a(r.status)?t(new X("Request failed with status code "+r.status,[X.ERR_BAD_REQUEST,X.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}const He=(e,t,r=3)=>{let a=0;const n=function(e,t){e=e||10;const r=new Array(e),a=new Array(e);let n,o=0,s=0;return t=void 0!==t?t:1e3,function(i){const l=Date.now(),c=a[s];n||(n=l),r[o]=i,a[o]=l;let u=s,d=0;for(;u!==o;)d+=r[u++],u%=e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),l-n{n=o,r=null,a&&(clearTimeout(a),a=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),i=t-n;i>=o?s(e,t):(r=e,a||(a=setTimeout((()=>{a=null,s(r)}),o-i)))},()=>r&&s(r)]}((r=>{const o=r.loaded,s=r.lengthComputable?r.total:void 0,i=o-a,l=n(i);a=o,e({loaded:o,total:s,progress:s?o/s:void 0,bytes:i,rate:l||void 0,estimated:l&&s&&o<=s?(s-o)/l:void 0,event:r,lengthComputable:null!=s,[t?"download":"upload"]:!0})}),r)},Ie=(e,t)=>{const r=null!=e;return[a=>t[0]({lengthComputable:r,total:e,loaded:a}),t[1]]},Ne=e=>(...t)=>K.asap((()=>e(...t))),$e=he.hasStandardBrowserEnv?function(){const e=he.navigator&&/(msie|trident)/i.test(he.navigator.userAgent),t=document.createElement("a");let r;function a(r){let a=r;return e&&(t.setAttribute("href",a),a=t.href),t.setAttribute("href",a),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return r=a(window.location.href),function(e){const t=K.isString(e)?a(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function(){return!0},Te=he.hasStandardBrowserEnv?{write(e,t,r,a,n,o){const s=[e+"="+encodeURIComponent(t)];K.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),K.isString(a)&&s.push("path="+a),K.isString(n)&&s.push("domain="+n),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function De(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Le=e=>e instanceof qe?{...e}:e;function We(e,t){t=t||{};const r={};function a(e,t,r){return K.isPlainObject(e)&&K.isPlainObject(t)?K.merge.call({caseless:r},e,t):K.isPlainObject(t)?K.merge({},t):K.isArray(t)?t.slice():t}function n(e,t,r){return K.isUndefined(t)?K.isUndefined(e)?void 0:a(void 0,e,r):a(e,t,r)}function o(e,t){if(!K.isUndefined(t))return a(void 0,t)}function s(e,t){return K.isUndefined(t)?K.isUndefined(e)?void 0:a(void 0,e):a(void 0,t)}function i(r,n,o){return o in t?a(r,n):o in e?a(void 0,r):void 0}const l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:i,headers:(e,t)=>n(Le(e),Le(t),!0)};return K.forEach(Object.keys(Object.assign({},e,t)),(function(a){const o=l[a]||n,s=o(e[a],t[a],a);K.isUndefined(s)&&o!==i||(r[a]=s)})),r}const Be=e=>{const t=We({},e);let r,{data:a,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:s,headers:i,auth:l}=t;if(t.headers=i=qe.from(i),t.url=ce(De(t.baseURL,t.url),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),K.isFormData(a))if(he.hasStandardBrowserEnv||he.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(!1!==(r=i.getContentType())){const[e,...t]=r?r.split(";").map((e=>e.trim())).filter(Boolean):[];i.setContentType([e||"multipart/form-data",...t].join("; "))}if(he.hasStandardBrowserEnv&&(n&&K.isFunction(n)&&(n=n(t)),n||!1!==n&&$e(t.url))){const e=o&&s&&Te.read(s);e&&i.set(o,e)}return t},Fe="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){const a=Be(e);let n=a.data;const o=qe.from(a.headers).normalize();let s,i,l,c,u,{responseType:d,onUploadProgress:p,onDownloadProgress:g}=a;function m(){c&&c(),u&&u(),a.cancelToken&&a.cancelToken.unsubscribe(s),a.signal&&a.signal.removeEventListener("abort",s)}let f=new XMLHttpRequest;function w(){if(!f)return;const a=qe.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders());xe((function(e){t(e),m()}),(function(e){r(e),m()}),{data:d&&"text"!==d&&"json"!==d?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:a,config:e,request:f}),f=null}f.open(a.method.toUpperCase(),a.url,!0),f.timeout=a.timeout,"onloadend"in f?f.onloadend=w:f.onreadystatechange=function(){f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))&&setTimeout(w)},f.onabort=function(){f&&(r(new X("Request aborted",X.ECONNABORTED,e,f)),f=null)},f.onerror=function(){r(new X("Network Error",X.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let t=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const n=a.transitional||de;a.timeoutErrorMessage&&(t=a.timeoutErrorMessage),r(new X(t,n.clarifyTimeoutError?X.ETIMEDOUT:X.ECONNABORTED,e,f)),f=null},void 0===n&&o.setContentType(null),"setRequestHeader"in f&&K.forEach(o.toJSON(),(function(e,t){f.setRequestHeader(t,e)})),K.isUndefined(a.withCredentials)||(f.withCredentials=!!a.withCredentials),d&&"json"!==d&&(f.responseType=a.responseType),g&&([l,u]=He(g,!0),f.addEventListener("progress",l)),p&&f.upload&&([i,c]=He(p),f.upload.addEventListener("progress",i),f.upload.addEventListener("loadend",c)),(a.cancelToken||a.signal)&&(s=t=>{f&&(r(!t||t.type?new Ue(null,e,f):t),f.abort(),f=null)},a.cancelToken&&a.cancelToken.subscribe(s),a.signal&&(a.signal.aborted?s():a.signal.addEventListener("abort",s)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(a.url);y&&-1===he.protocols.indexOf(y)?r(new X("Unsupported protocol "+y+":",X.ERR_BAD_REQUEST,e)):f.send(n||null)}))},Ve=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,a=new AbortController;const n=function(e){if(!r){r=!0,s();const t=e instanceof Error?e:this.reason;a.abort(t instanceof X?t:new Ue(t instanceof Error?t.message:t))}};let o=t&&setTimeout((()=>{o=null,n(new X(`timeout ${t} of ms exceeded`,X.ETIMEDOUT))}),t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(n):e.removeEventListener("abort",n)})),e=null)};e.forEach((e=>e.addEventListener("abort",n)));const{signal:i}=a;return i.unsubscribe=()=>K.asap(s),i}},Me=function*(e,t){let r=e.byteLength;if(!t||r{const n=async function*(e,t){for await(const r of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}}(e))yield*Me(r,t)}(e,t);let o,s=0,i=e=>{o||(o=!0,a&&a(e))};return new ReadableStream({async pull(e){try{const{done:t,value:a}=await n.next();if(t)return i(),void e.close();let o=a.byteLength;if(r){let e=s+=o;r(e)}e.enqueue(new Uint8Array(a))}catch(e){throw i(e),e}},cancel:e=>(i(e),n.return())},{highWaterMark:2})},Ge="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Ke=Ge&&"function"==typeof ReadableStream,Qe=Ge&&("function"==typeof TextEncoder?(Je=new TextEncoder,e=>Je.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var Je;const Ze=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Xe=Ke&&Ze((()=>{let e=!1;const t=new Request(he.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Ye=Ke&&Ze((()=>K.isReadableStream(new Response("").body))),et={stream:Ye&&(e=>e.body)};var tt;Ge&&(tt=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!et[e]&&(et[e]=K.isFunction(tt[e])?t=>t[e]():(t,r)=>{throw new X(`Response type '${e}' is not supported`,X.ERR_NOT_SUPPORT,r)})})));const rt={http:null,xhr:Fe,fetch:Ge&&(async e=>{let{url:t,method:r,data:a,signal:n,cancelToken:o,timeout:s,onDownloadProgress:i,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:p}=Be(e);c=c?(c+"").toLowerCase():"text";let g,m=Ve([n,o&&o.toAbortSignal()],s);const f=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let w;try{if(l&&Xe&&"get"!==r&&"head"!==r&&0!==(w=await(async(e,t)=>{const r=K.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(K.isBlob(e))return e.size;if(K.isSpecCompliantForm(e)){const t=new Request(he.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return K.isArrayBufferView(e)||K.isArrayBuffer(e)?e.byteLength:(K.isURLSearchParams(e)&&(e+=""),K.isString(e)?(await Qe(e)).byteLength:void 0)})(t):r})(u,a))){let e,r=new Request(t,{method:"POST",body:a,duplex:"half"});if(K.isFormData(a)&&(e=r.headers.get("content-type"))&&u.setContentType(e),r.body){const[e,t]=Ie(w,He(Ne(l)));a=ze(r.body,65536,e,t)}}K.isString(d)||(d=d?"include":"omit");const n="credentials"in Request.prototype;g=new Request(t,{...p,signal:m,method:r.toUpperCase(),headers:u.normalize().toJSON(),body:a,duplex:"half",credentials:n?d:void 0});let o=await fetch(g);const s=Ye&&("stream"===c||"response"===c);if(Ye&&(i||s&&f)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=K.toFiniteNumber(o.headers.get("content-length")),[r,a]=i&&Ie(t,He(Ne(i),!0))||[];o=new Response(ze(o.body,65536,r,(()=>{a&&a(),f&&f()})),e)}c=c||"text";let y=await et[K.findKey(et,c)||"text"](o,e);return!s&&f&&f(),await new Promise(((t,r)=>{xe(t,r,{data:y,headers:qe.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:g})}))}catch(t){if(f&&f(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new X("Network Error",X.ERR_NETWORK,e,g),{cause:t.cause||t});throw X.from(t,t&&t.code,e,g)}})};K.forEach(rt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const at=e=>`- ${e}`,nt=e=>K.isFunction(e)||null===e||!1===e,ot=e=>{e=K.isArray(e)?e:[e];const{length:t}=e;let r,a;const n={};for(let o=0;o`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let r=t?e.length>1?"since :\n"+e.map(at).join("\n"):" "+at(e[0]):"as no adapter specified";throw new X("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return a};function st(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ue(null,e)}function it(e){return st(e),e.headers=qe.from(e.headers),e.data=Ae.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ot(e.adapter||ve.adapter)(e).then((function(t){return st(e),t.data=Ae.call(e,e.transformResponse,t),t.headers=qe.from(t.headers),t}),(function(t){return Ee(t)||(st(e),t&&t.response&&(t.response.data=Ae.call(e,e.transformResponse,t.response),t.response.headers=qe.from(t.response.headers))),Promise.reject(t)}))}const lt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{lt[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const ct={};lt.transitional=function(e,t,r){function a(e,t){return"[Axios v1.7.7] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,n,o)=>{if(!1===e)throw new X(a(n," has been removed"+(t?" in "+t:"")),X.ERR_DEPRECATED);return t&&!ct[n]&&(ct[n]=!0,console.warn(a(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,o)}};const ut={assertOptions:function(e,t,r){if("object"!=typeof e)throw new X("options must be an object",X.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let n=a.length;for(;n-- >0;){const o=a[n],s=t[o];if(s){const t=e[o],r=void 0===t||s(t,o,e);if(!0!==r)throw new X("option "+o+" must be "+r,X.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new X("Unknown option "+o,X.ERR_BAD_OPTION)}},validators:lt},dt=ut.validators;class pt{constructor(e){this.defaults=e,this.interceptors={request:new ue,response:new ue}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=We(this.defaults,t);const{transitional:r,paramsSerializer:a,headers:n}=t;void 0!==r&&ut.assertOptions(r,{silentJSONParsing:dt.transitional(dt.boolean),forcedJSONParsing:dt.transitional(dt.boolean),clarifyTimeoutError:dt.transitional(dt.boolean)},!1),null!=a&&(K.isFunction(a)?t.paramsSerializer={serialize:a}:ut.assertOptions(a,{encode:dt.function,serialize:dt.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=n&&K.merge(n.common,n[t.method]);n&&K.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete n[e]})),t.headers=qe.concat(o,n);const s=[];let i=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!i){const e=[it.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null})),this.promise.then=e=>{let t;const a=new Promise((e=>{r.subscribe(e),t=e})).then(e);return a.cancel=function(){r.unsubscribe(t)},a},e((function(e,a,n){r.reason||(r.reason=new Ue(e,a,n),t(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new mt((function(t){e=t})),cancel:e}}}const ft=mt,wt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(wt).forEach((([e,t])=>{wt[t]=e}));const yt=wt,ht=function e(t){const r=new gt(t),a=n(gt.prototype.request,r);return K.extend(a,gt.prototype,r,{allOwnKeys:!0}),K.extend(a,r,null,{allOwnKeys:!0}),a.create=function(r){return e(We(t,r))},a}(ve);ht.Axios=gt,ht.CanceledError=Ue,ht.CancelToken=ft,ht.isCancel=Ee,ht.VERSION="1.7.7",ht.toFormData=ae,ht.AxiosError=X,ht.Cancel=ht.CanceledError,ht.all=function(e){return Promise.all(e)},ht.spread=function(e){return function(t){return e.apply(null,t)}},ht.isAxiosError=function(e){return K.isObject(e)&&!0===e.isAxiosError},ht.mergeConfig=We,ht.AxiosHeaders=qe,ht.formToJSON=e=>be(K.isHTMLForm(e)?new FormData(e):e),ht.getAdapter=ot,ht.HttpStatusCode=yt,ht.default=ht;const bt=ht;var _t,vt,Rt=r(6663),kt=r(1331);var Pt=new Uint8Array(16);function jt(){if(!vt&&!(vt="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return vt(Pt)}const St=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var Ct=[],qt=0;qt<256;++qt)Ct.push((qt+256).toString(16).substr(1));const At=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(Ct[e[t+0]]+Ct[e[t+1]]+Ct[e[t+2]]+Ct[e[t+3]]+"-"+Ct[e[t+4]]+Ct[e[t+5]]+"-"+Ct[e[t+6]]+Ct[e[t+7]]+"-"+Ct[e[t+8]]+Ct[e[t+9]]+"-"+Ct[e[t+10]]+Ct[e[t+11]]+Ct[e[t+12]]+Ct[e[t+13]]+Ct[e[t+14]]+Ct[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&St.test(e)}(r))throw TypeError("Stringified UUID is invalid");return r},Et=function(e,t,r){var a=(e=e||{}).random||(e.rng||jt)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t){r=r||0;for(var n=0;n<16;++n)t[r+n]=a[n];return t}return At(a)};var Ot,Ut=r(7232);let xt={};const Ht={getItem:e=>xt[e],setItem:(e,t)=>{xt[e]=t},removeItem:e=>{delete xt[e]}};function It(e,t){try{if(!e||0==e.length||!t)return;Ot.setItem(e,JSON.stringify(t))}catch(e){return e}}function Nt(e){return!!Ot.getItem(e)}function $t(e){try{return e&&0!=e.length?Ot.getItem(e)?JSON.parse(Ot.getItem(e)):{}:"null"}catch(e){return e}}function Tt(e,t){if(!t||0==t.length||!Nt(t))return;let r=JSON.parse(Ot.getItem(t));return e=e>r.length?r.length:e,r.splice(0,e),r&&r.length>0?(Dt(t),It(t,r)):Dt(t)}function Dt(e){if(!e||0==e.length||!Nt(e))return;const t=Ot.removeItem(e);return console.info(`key ${e} deleted from localStorage`),t}var Lt=null,Wt=null,Bt=null,Ft=null,Vt=null,Mt=null;async function zt(e,t,r=!0){const a=$t("userIdentity");let n={};n=a&&Object.keys(a).length>0?a.userID&&a.userID!==e?{anonymousID:Et(),userID:e}:{...a,userID:e}:{anonymousID:Et(),userID:e},It("userIdentity",n),r&&Jt("user_login",{event_type:"identity",...t})}async function Gt(){Dt("userIdentity"),Dt("apiKey"),It("userIdentity",{anonymousID:Et()})}async function Kt(e,t,r=15e3){!function(){console.log("############ inside initStorage ##############");var e="undefined"!=typeof window;Ot=e?window.localStorage:Ht}(),function(e,t){const r=bt.create({baseURL:e,headers:{"Content-type":"application/json",Authorization:`Bearer ${t}`},withCredentials:!0});r.interceptors.request.use((console.log("########### inside response interceptor #############"),e=>{if(!e.url)throw new Error("No URL present in request config, unable to sign request");let t=e.url;var r,a;e.baseURL&&!function(e){return/^https?:\/\/|^\/\//i.test(e)}(e.url)&&(r=e.baseURL,a=e.url,t=r?a?`${r.replace(/\/+$/,"")}/${a.replace(/^\/+/,"")}`:r:a);const{host:n,pathname:o,search:s}=new URL(t),{data:i,headers:l,method:c,params:u}=e;let d=Rt.parse(s);d={...d,...u};let p,g="";if(d&&Object.keys(d).length&&""!==Rt.stringify(d).trim()&&(g=`?${Rt.stringify(d)}`),"get"!=c){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);p=t(i,l)}const{common:m,delete:f,get:w,head:y,post:h,put:b,patch:_,...v}=l,R={method:c&&c.toUpperCase(),host:n,path:o+s+g,body:p,headers:v},k=(0,kt.sign)(R);return e.headers["x-fp-date"]=k["x-fp-date"],e.headers["x-fp-signature"]=k["x-fp-signature"],e})),_t=r}(e,t),Mt||(Mt=setInterval(Zt,r))}async function Qt(e){return{data:{isTokenValid:"true"}}}async function Jt(e,t){if(Nt("userIdentity")||It("userIdentity",{anonymousID:Et()}),!e||!t)throw new Error("Please provide eventName and properties of the user");let r=function(e,t){return{context:{library:{name:"flick",version:"1.0.4"},os:new Ut.UAParser(navigator.userAgent).getOS(),timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,screen:{width:window.screen.availWidth,height:window.screen.availHeight},user_agent:navigator.userAgent||"",locale:navigator.languages&&navigator.languages.length?navigator.languages[0]:navigator.language,device:{is_mobile:/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)}},event_id:Et(),event_name:e,properties:t,event_timestamp:new Date,user_id:"",anonymous_id:""}}(e,t);if(r.user_id=$t("userIdentity").userID||null,r.anonymous_id=$t("userIdentity").anonymousID,Nt("flickEvents"))return function(e,t){try{if(!t)return;if(!Ot.getItem(e))return It(e,t);var r=JSON.parse(Ot.getItem(e));return r.push(t),Ot.setItem(e,JSON.stringify(r))}catch(e){return e}}("flickEvents",r);It("flickEvents",new Array(r))}async function Zt(){if(!Nt("flickEvents")||!Nt("userIdentity")||0==$t("flickEvents").length)return;let e={batch:$t("flickEvents"),sent_at:(new Date).toISOString()},t=$t("flickEvents").length||0;(function(e,t){let r=async function(e,t,r={}){let a={...r};return _t.post(e,t,{headers:a})}("service/application/webhook/v1.0/click-analytics/events",e,t);return r})(e,{}).then((e=>{Tt(t,"flickEvents")})).catch((e=>{console.error("error while sending api request ",e),t>1e3&&Tt(t-1e3,"flickEvents")}))}},1331:function(e){var t;"undefined"!=typeof self&&self,t=()=>(()=>{var e={249:function(e,t,r){var a;e.exports=(a=a||function(e){var t;if("undefined"!=typeof window&&window.crypto&&(t=window.crypto),"undefined"!=typeof self&&self.crypto&&(t=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(t=globalThis.crypto),!t&&"undefined"!=typeof window&&window.msCrypto&&(t=window.msCrypto),!t&&void 0!==r.g&&r.g.crypto&&(t=r.g.crypto),!t)try{t=r(480)}catch(e){}var a=function(){if(t){if("function"==typeof t.getRandomValues)try{return t.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof t.randomBytes)try{return t.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},n=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),o={},s=o.lib={},i=s.Base={extend:function(e){var t=n(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)}},l=s.WordArray=i.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||u).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=i.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 l.init(r,t/2)}},d=c.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 l.init(r,t)}},p=c.Utf8={stringify:function(e){try{return decodeURIComponent(escape(d.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return d.parse(unescape(encodeURIComponent(e)))}},g=s.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.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),c=(i=t?e.ceil(i):e.max((0|i)-this._minBufferSize,0))*s,u=e.min(4*c,o);if(c){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,w=c[g-2],y=(w<<15|w>>>17)^(w<<13|w>>>19)^w>>>10;c[g]=f+c[g-7]+y+c[g-16]}var h=a&n^a&o^n&o,b=(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=_+(b+h)|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=f.substr(0,w),p=f.substr(w+1)):(d=f,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()},2729: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},454: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),f=r(6133),w=r(1152),y=r(8863),h=r(2036),b={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 f.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,f.toSibling),t._preferences=t._preferences?l.preferences(t._preferences,e._preferences):e._preferences,t._valids=h.merge(t._valids,e._valids,e._invalids),t._invalids=h.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 w.location?w.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(!a.errors.label)return"";if(e.label)return e.label;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 f=Object.assign({},d.manifest,u.manifest);return f.build=i.build(u.manifest&&u.manifest.build,d.manifest&&d.manifest.build),u.manifest=f,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 f={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(f.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"),f.generate(this,f.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,f.methods);for(const t in f.aliases){const r=f.aliases[t];e[t]=e[r]}return e.x=e.expression,g.setup&&g.setup(e),e}};f.methods={ValidationError:l.ValidationError,version:s.version,cache:o.provider,assert(e,t,...r){f.assert(e,t,!0,r)},attempt:(e,t,...r)=>f.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 f.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=f.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 f.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 f.aliases)e[t]=this[t]();return e}},f.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},f.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},f.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=f.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?n.push({type:s.type,report:i}):"object.base"===i.code?a.add(i.local.type):a.add(c)}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:void 0}},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","encodeUri"]),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");let i=a.exec(e);if(!i&&t.prefs.convert&&r.encodeUri){const t=encodeURI(e);i=a.exec(t),i&&(e=t)}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,f=t;const w=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],w.unshift(e);m=w[0],f=m[g]}try{const e=(e,t)=>(p||n.schema).$_createError(e,f,t,n.state,a),s=await n.method(f,{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,f,t,n.state,a)),message:(e,t)=>(p||n.schema).$_createError("external",f,t,n.state,a,{messages:e})});if(void 0===s||s===f)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",f,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 f=l.process(m.errors,e,a);return{value:m.value,error:f,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,f="(?:(?:"+c+":){0,2}"+c+")?::(?:"+c+":){2}"+u,w="(?:(?:"+c+":){0,3}"+c+")?::"+c+":"+u,y="(?:(?:"+c+":){0,4}"+c+")?::"+u,h="(?:(?:"+c+":){0,5}"+c+")?::"+c,b="(?:(?:"+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+"|"+f+"|"+w+"|"+y+"|"+h+"|"+b+")",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+"*",S=i+"+",C="(?:\\/"+j+")*",q="\\/(?:"+S+C+")?",A=S+C,E="["+a+o+n+"@]+"+C,O="(?:\\/\\/\\/"+j+C+")";return e.hierPart="(?:(?:\\/\\/"+k+C+")|"+q+"|"+A+"|"+O+")",e.hierPartCapture="(?:(?:\\/\\/"+P+C+")|"+q+"|"+A+")",e.relativeRef="(?:(?:\\/\\/"+k+C+")|"+q+"|"+E+"|)",e.relativeRefCapture="(?:(?:\\/\\/"+P+C+")|"+q+"|"+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.13.3"}')}},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()},3065:function(e,t,r){var a,n;!function(){"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 f=g();null!=f&&(c=m(f)),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)}()},6663:(e,t,r)=>{"use strict";const a=r(4280),n=r(454),o=r(528),s=r(3055),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 f(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=f,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:f(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)}},528: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)]}},4280:e=>{"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},7232:function(e,t,r){var a;!function(n,o){"use strict";var s="function",i="undefined",l="object",c="string",u="major",d="model",p="name",g="type",m="vendor",f="version",w="architecture",y="console",h="mobile",b="tablet",_="smarttv",v="wearable",R="embedded",k="Amazon",P="Apple",j="ASUS",S="BlackBerry",C="Browser",q="Chrome",A="Firefox",E="Google",O="Huawei",U="LG",x="Microsoft",H="Motorola",I="Opera",N="Samsung",$="Sharp",T="Sony",D="Xiaomi",L="Zebra",W="Facebook",B="Chromium OS",F="Mac OS",V=" Browser",M=function(e){for(var t={},r=0;r0?2===i.length?typeof i[1]==s?this[i[0]]=i[1].call(this,u):this[i[0]]=i[1]:3===i.length?typeof i[1]!==s||i[1].exec&&i[1].test?this[i[0]]=u?u.replace(i[1],i[2]):o:this[i[0]]=u?i[1].call(this,u,i[2]):o:4===i.length&&(this[i[0]]=u?i[3].call(this,u.replace(i[1],i[2])):o):this[i]=u||o;d+=2}},J=function(e,t){for(var r in t)if(typeof t[r]===l&&t[r].length>0){for(var a=0;a2&&(e[d]="iPad",e[g]=b),e},this.getEngine=function(){var e={};return e[p]=o,e[f]=o,Q.call(e,a,_.engine),e},this.getOS=function(){var e={};return e[p]=o,e[f]=o,Q.call(e,a,_.os),v&&!e[p]&&y&&y.platform&&"Unknown"!=y.platform&&(e[p]=y.platform.replace(/chrome os/i,B).replace(/macos/i,F)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return a},this.setUA=function(e){return a=typeof e===c&&e.length>500?K(e,500):e,this},this.setUA(a),this};Y.VERSION="1.0.39",Y.BROWSER=M([p,f,u]),Y.CPU=M([w]),Y.DEVICE=M([d,m,g,y,h,_,b,v,R]),Y.ENGINE=Y.OS=M([p,f]),typeof t!==i?(e.exports&&(t=e.exports=Y),t.UAParser=Y):r.amdO?(a=function(){return Y}.call(t,r,t,e))===o||(e.exports=a):typeof n!==i&&(n.UAParser=Y);var ee=typeof n!==i&&(n.jQuery||n.Zepto);if(ee&&!ee.ua){var te=new Y;ee.ua=te.getResult(),ee.ua.get=function(){return te.getUA()},ee.ua.set=function(e){te.setUA(e);var t=te.getResult();for(var r in t)ee.ua[r]=t[r]}}}("object"==typeof window?window:this)},7534:(e,t,r)=>{const{fdkAxios:a}=r(128),{convertStringToBase64:n}=r(8879);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 a.request(d)}}},9418:(e,t,r)=>{const a=r(869),n=r(2099),o=r(3727),s=r(8979),i=r(7307),l=r(7507),c=r(5259),u=r(133),d=r(469),p=r(7611),g=r(603),m=r(3715),f=r(8651),w=r(7803),y=r(8363),h=r(3567),{FDKClientValidationError:b}=r(1235),{Logger:_}=r(8572),{convertStringToBase64:v}=r(8879),{execute:R}=r(7534);e.exports=class{constructor(e){if(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.rewards=new m(e),this.share=new f(e),this.theme=new w(e),this.user=new y(e),this.webhook=new h(e),"undefined"!=typeof window&&e.options&&e.options.enable_clickstream){const t=r(768);_({level:"DEBUG",message:`initializing clickstream with base url ${e.domain}`}),t.initialize(e.domain,v(e.applicationID+":"+e.applicationToken)),r(3010)}}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 b("Currency code should be string only");this.config.currencyCode=e}setExtraHeaders(e){if("object"!=typeof e)throw new b("Context value should be an object");this.config.extraHeaders.push(e)}async request({method:e,url:t,query:r,body:a,headers:n,responseHeaders:o=!1}){return await R(this.config,e,t,r,a,n,{responseHeaders:o})}}},8163:(e,t,r)=>{const{FDKInvalidCredentialError:a}=r(1235),{Logger:n,setLoggerLevel:o}=r(8572);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")}}},869:(e,t,r)=>{const a=r(7534),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(1235),s=r(1205),i=(r(1121),r(3206)),l=r(7785),{Logger:c}=r(8572),u=r(6075);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/",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",getPromotionPaymentOffers:"/service/application/cart/v1.0/available-payment-offers",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,orderType:g,requestHeaders:m}={requestHeaders:{}},{responseHeaders:f}={responseHeaders:!1}){const{error:w}=i.addItems().validate({body:e,i:t,b:r,areaCode:u,buyNow:d,id:p,orderType:g},{abortEarly:!1,allowUnknown:!0});if(w)return Promise.reject(new n(w));const{error:y}=i.addItems().validate({body:e,i:t,b:r,areaCode:u,buyNow:d,id:p,orderType:g},{abortEarly:!1,allowUnknown:!1});y&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > addItems \n ${y}`});const h={};h.i=t,h.b=r,h.area_code=u,h.buy_now=d,h.id=p,h.order_type=g;const b=await a.execute(this._conf,"post",s({url:this._urls.addItems,params:{}}),h,e,{...m},{responseHeaders:f});let _=b;f&&(_=b[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 b}async applyCoupon({body:e,i:t,b:r,p:u,id:d,buyNow:p,cartType:g,requestHeaders:m}={requestHeaders:{}},{responseHeaders:f}={responseHeaders:!1}){const{error:w}=i.applyCoupon().validate({body:e,i:t,b:r,p:u,id:d,buyNow:p,cartType:g},{abortEarly:!1,allowUnknown:!0});if(w)return Promise.reject(new n(w));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 h={};h.i=t,h.b=r,h.p=u,h.id=d,h.buy_now=p,h.cart_type=g;const b=await a.execute(this._conf,"post",s({url:this._urls.applyCoupon,params:{}}),h,e,{...m},{responseHeaders:f});let _=b;f&&(_=b[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 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:f}=i.applyRewardPoints().validate({body:e,id:t,i:r,b:u,buyNow:d},{abortEarly:!1,allowUnknown:!1});f&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > applyRewardPoints \n ${f}`});const w={};w.id=t,w.i=r,w.b=u,w.buy_now=d;const y=await a.execute(this._conf,"post",s({url:this._urls.applyRewardPoints,params:{}}),w,e,{...p},{responseHeaders:g});let h=y;g&&(h=y[0]);const{error:b}=l.CartDetailResponse().validate(h,{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 > applyRewardPoints \n ${b}`})}return y}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 f=await a.execute(this._conf,"post",s({url:this._urls.checkoutCartV2,params:{}}),m,e,{...u},{responseHeaders:d});let w=f;d&&(w=f[0]);const{error:y}=l.CartCheckoutResponse().validate(w,{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 f}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:f}=l.DeleteCartDetailResponse().validate(m,{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 g}async getAddressById({id:e,cartId:t,buyNow:r,mobileNo:u,checkoutMode:d,tags:p,isDefault:g,requestHeaders:m}={requestHeaders:{}},{responseHeaders:f}={responseHeaders:!1}){const{error:w}=i.getAddressById().validate({id:e,cartId:t,buyNow:r,mobileNo:u,checkoutMode:d,tags:p,isDefault:g},{abortEarly:!1,allowUnknown:!0});if(w)return Promise.reject(new n(w));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 h={};h.cart_id=t,h.buy_now=r,h.mobile_no=u,h.checkout_mode=d,h.tags=p,h.is_default=g;const b=await a.execute(this._conf,"get",s({url:this._urls.getAddressById,params:{id:e}}),h,void 0,{...m},{responseHeaders:f});let _=b;f&&(_=b[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 b}async getAddresses({cartId:e,buyNow:t,mobileNo:r,checkoutMode:u,tags:d,isDefault:p,requestHeaders:g}={requestHeaders:{}},{responseHeaders:m}={responseHeaders:!1}){const{error:f}=i.getAddresses().validate({cartId:e,buyNow:t,mobileNo:r,checkoutMode:u,tags:d,isDefault:p},{abortEarly:!1,allowUnknown:!0});if(f)return Promise.reject(new n(f));const{error:w}=i.getAddresses().validate({cartId:e,buyNow:t,mobileNo:r,checkoutMode:u,tags:d,isDefault:p},{abortEarly:!1,allowUnknown:!1});w&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getAddresses \n ${w}`});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 h=await a.execute(this._conf,"get",s({url:this._urls.getAddresses,params:{}}),y,void 0,{...g},{responseHeaders:m});let b=h;m&&(b=h[0]);const{error:_}=l.GetAddressesResponse().validate(b,{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 h}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 f={};f.item_id=e,f.article_id=t,f.uid=r,f.slug=u;const w=await a.execute(this._conf,"get",s({url:this._urls.getBulkDiscountOffers,params:{}}),f,void 0,{...d},{responseHeaders:p});let y=w;p&&(y=w[0]);const{error:h}=l.BulkPriceResponse().validate(y,{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 w}async getCart({id:e,i:t,b:r,c:u,assignCardId:d,areaCode:p,buyNow:g,orderType:m,requestHeaders:f}={requestHeaders:{}},{responseHeaders:w}={responseHeaders:!1}){const{error:y}=i.getCart().validate({id:e,i:t,b:r,c:u,assignCardId:d,areaCode:p,buyNow:g,orderType:m},{abortEarly:!1,allowUnknown:!0});if(y)return Promise.reject(new n(y));const{error:h}=i.getCart().validate({id:e,i:t,b:r,c:u,assignCardId:d,areaCode:p,buyNow:g,orderType:m},{abortEarly:!1,allowUnknown:!1});h&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getCart \n ${h}`});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,b.order_type=m;const _=await a.execute(this._conf,"get",s({url:this._urls.getCart,params:{}}),b,void 0,{...f},{responseHeaders:w});let v=_;w&&(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:f}=u.string().allow("").validate(m,{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 > getCartLastModified \n ${f}`})}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 f={};f.id=e,f.buy_now=t,f.slug=r,f.store_id=u;const w=await a.execute(this._conf,"get",s({url:this._urls.getCoupons,params:{}}),f,void 0,{...d},{responseHeaders:p});let y=w;p&&(y=w[0]);const{error:h}=l.GetCouponResponse().validate(y,{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 > getCoupons \n ${h}`})}return w}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 f=m;u&&(f=m[0]);const{error:w}=l.CartItemCountResponse().validate(f,{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 > getItemCount \n ${w}`})}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 f={};f.slug=e,f.store_id=t,f.promotion_id=r,f.page_size=u;const w=await a.execute(this._conf,"get",s({url:this._urls.getLadderOffers,params:{}}),f,void 0,{...d},{responseHeaders:p});let y=w;p&&(y=w[0]);const{error:h}=l.LadderPriceOffers().validate(y,{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 > getLadderOffers \n ${h}`})}return w}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:f}=i.getPromotionOffers().validate({slug:e,pageSize:t,promotionGroup:r,storeId:u,cartType:d},{abortEarly:!1,allowUnknown:!1});f&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getPromotionOffers \n ${f}`});const w={};w.slug=e,w.page_size=t,w.promotion_group=r,w.store_id=u,w.cart_type=d;const y=await a.execute(this._conf,"get",s({url:this._urls.getPromotionOffers,params:{}}),w,void 0,{...p},{responseHeaders:g});let h=y;g&&(h=y[0]);const{error:b}=l.PromotionOffersResponse().validate(h,{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 y}async getPromotionPaymentOffers({id:e,uid:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.getPromotionPaymentOffers().validate({id:e,uid:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.getPromotionPaymentOffers().validate({id:e,uid:t},{abortEarly:!1,allowUnknown:!1});p&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getPromotionPaymentOffers \n ${p}`});const g={};g.id=e,g.uid=t;const m=await a.execute(this._conf,"get",s({url:this._urls.getPromotionPaymentOffers,params:{}}),g,void 0,{...r},{responseHeaders:u});let f=m;u&&(f=m[0]);const{error:w}=l.PromotionPaymentOffersResponse().validate(f,{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 > getPromotionPaymentOffers \n ${w}`})}return m}async getShipments({p:e,id:t,buyNow:r,addressId:u,areaCode:d,orderType:p,requestHeaders:g}={requestHeaders:{}},{responseHeaders:m}={responseHeaders:!1}){const{error:f}=i.getShipments().validate({p:e,id:t,buyNow:r,addressId:u,areaCode:d,orderType:p},{abortEarly:!1,allowUnknown:!0});if(f)return Promise.reject(new n(f));const{error:w}=i.getShipments().validate({p:e,id:t,buyNow:r,addressId:u,areaCode:d,orderType:p},{abortEarly:!1,allowUnknown:!1});w&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > getShipments \n ${w}`});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 h=await a.execute(this._conf,"get",s({url:this._urls.getShipments,params:{}}),y,void 0,{...g},{responseHeaders:m});let b=h;m&&(b=h[0]);const{error:_}=l.CartShipmentsResponse().validate(b,{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 h}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 f=m;u&&(f=m[0]);const{error:w}=l.CartDetailResponse().validate(f,{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 > removeCoupon \n ${w}`})}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:f}=i.selectAddress().validate({body:e,cartId:t,buyNow:r,i:u,b:d},{abortEarly:!1,allowUnknown:!1});f&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > selectAddress \n ${f}`});const w={};w.cart_id=t,w.buy_now=r,w.i=u,w.b=d;const y=await a.execute(this._conf,"post",s({url:this._urls.selectAddress,params:{}}),w,e,{...p},{responseHeaders:g});let h=y;g&&(h=y[0]);const{error:b}=l.CartDetailResponse().validate(h,{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 > selectAddress \n ${b}`})}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 f=await a.execute(this._conf,"put",s({url:this._urls.selectPaymentMode,params:{}}),m,e,{...u},{responseHeaders:d});let w=f;d&&(w=f[0]);const{error:y}=l.CartDetailResponse().validate(w,{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 f}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:f}=l.UpdateAddressResponse().validate(m,{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 > updateAddress \n ${f}`})}return g}async updateCart({body:e,id:t,i:r,b:u,areaCode:d,buyNow:p,cartType:g,orderType:m,requestHeaders:f}={requestHeaders:{}},{responseHeaders:w}={responseHeaders:!1}){const{error:y}=i.updateCart().validate({body:e,id:t,i:r,b:u,areaCode:d,buyNow:p,cartType:g,orderType:m},{abortEarly:!1,allowUnknown:!0});if(y)return Promise.reject(new n(y));const{error:h}=i.updateCart().validate({body:e,id:t,i:r,b:u,areaCode:d,buyNow:p,cartType:g,orderType:m},{abortEarly:!1,allowUnknown:!1});h&&c({level:"WARN",message:`Parameter Validation warrnings for application > Cart > updateCart \n ${h}`});const b={};b.id=t,b.i=r,b.b=u,b.area_code=d,b.buy_now=p,b.cart_type=g,b.order_type=m;const _=await a.execute(this._conf,"put",s({url:this._urls.updateCart,params:{}}),b,e,{...f},{responseHeaders:w});let v=_;w&&(v=_[0]);const{error:R}=l.UpdateCartDetailResponse().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 > updateCart \n ${R}`})}return _}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 f=await a.execute(this._conf,"put",s({url:this._urls.updateCartMeta,params:{}}),m,e,{...u},{responseHeaders:d});let w=f;d&&(w=f[0]);const{error:y}=l.CartMetaResponse().validate(w,{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 f}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:f}=l.SharedCartResponse().validate(m,{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 > updateCartWithSharedItems \n ${f}`})}return g}async validateCouponForPayment({id:e,buyNow:t,addressId:r,paymentMode:u,paymentIdentifier:d,aggregatorName:p,merchantCode:g,iin:m,network:f,type:w,cardId:y,cartType:h,requestHeaders:b}={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:f,type:w,cardId:y,cartType:h},{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:f,type:w,cardId:y,cartType:h},{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=f,k.type=w,k.card_id=y,k.cart_type=h;const P=await a.execute(this._conf,"get",s({url:this._urls.validateCouponForPayment,params:{}}),k,void 0,{...b},{responseHeaders:_});let j=P;_&&(j=P[0]);const{error:S}=l.PaymentCouponValidate().validate(j,{abortEarly:!1,allowUnknown:!0});if(S){if(!0===this._conf.options.strictResponseCheck)return Promise.reject(new o(S));c({level:"WARN",message:`Response Validation Warnings for application > Cart > validateCouponForPayment \n ${S}`})}return P}}},7785:(e,t,r)=>{const a=r(6075);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 AppliedFreeArticles(){return a.object({free_gift_item_details:n.FreeGiftItems(),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(),custom_cart_meta: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(""),offer_text:a.string().allow(""),is_bank_offer:a.boolean()})}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(""),custom_cart_meta:a.any()})}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 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_meta:a.any()})}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(""),custom_cart_meta: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 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(),custom_cart_meta:a.any()})}static SharedCartResponse(){return a.object({error:a.string().allow(""),cart:n.SharedCart()})}static PriceMinMax(){return a.object({min:a.number(),max:a.number()})}static ItemPriceDetails(){return a.object({marked:n.PriceMinMax(),effective:n.PriceMinMax(),currency:a.string().allow("")})}static FreeGiftItems(){return a.object({item_slug:a.string().allow(""),item_name:a.string().allow(""),item_price_details:n.ItemPriceDetails(),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_type:a.string().allow(""),promotion_name: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 PromotionPaymentOffer(){return a.object({application_id:a.string().allow(""),buy_rules:a.array().items(a.any()),calculate_on:a.string().allow(""),description:a.string().allow(""),discount_rules:a.array().items(a.any()),id:a.string().allow(""),offer_text:a.string().allow(""),promotion_group:a.string().allow(""),promotion_type:a.string().allow(""),promotion_name:a.string().allow("")})}static PromotionPaymentOffersResponse(){return a.object({success:a.boolean(),promotions:a.array().items(n.PromotionPaymentOffer())})}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},3206:(e,t,r)=>{const a=r(6075),n=r(7785);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(""),orderType: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(),body:n.RewardPointRequest().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("")})}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(),orderType:a.string().allow("")})}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(),cartType:a.string().allow("")})}static getPromotionPaymentOffers(){return a.object({id:a.string().allow(""),uid: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(),cartType:a.string().allow(""),orderType: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("")})}}},2099:(e,t,r)=>{const a=r(7534),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(1235),s=r(1205),i=r(1121),l=r(700),c=r(103),{Logger:u}=r(8572);r(6075),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:f}=c.FollowPostResponse().validate(m,{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 > followById \n ${f}`})}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 f=await a.execute(this._conf,"get",s({url:this._urls.getBrands,params:{}}),m,void 0,{...i},{responseHeaders:d});let w=f;d&&(w=f[0]);const{error:y}=c.BrandListingResponse().validate(w,{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 f}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:f}=c.CategoryListingResponse().validate(m,{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 > getCategories \n ${f}`})}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:f,requestHeaders:w}={requestHeaders:{}},{responseHeaders:y}={responseHeaders:!1}){const{error:h}=l.getCollectionItemsBySlug().validate({slug:e,f:t,q:r,filters:i,sortOn:d,pageId:p,pageSize:g,pageNo:m,pageType:f},{abortEarly:!1,allowUnknown:!0});if(h)return Promise.reject(new n(h));const{error:b}=l.getCollectionItemsBySlug().validate({slug:e,f:t,q:r,filters:i,sortOn:d,pageId:p,pageSize:g,pageNo:m,pageType:f},{abortEarly:!1,allowUnknown:!1});b&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getCollectionItemsBySlug \n ${b}`});const _={};_.f=t,_.q=r,_.filters=i,_.sort_on=d,_.page_id=p,_.page_size=g,_.page_no=m,_.page_type=f;const v=await a.execute(this._conf,"get",s({url:this._urls.getCollectionItemsBySlug,params:{slug:e}}),_,void 0,{...w},{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 f={};f.page_no=e,f.page_size=t,f.tag=r,f.q=i;const w=await a.execute(this._conf,"get",s({url:this._urls.getCollections,params:{}}),f,void 0,{...d},{responseHeaders:p});let y=w;p&&(y=w[0]);const{error:h}=c.GetCollectionListingResponse().validate(y,{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 > getCollections \n ${h}`})}return w}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:f}=c.FollowIdsResponse().validate(m,{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 > getFollowIds \n ${f}`})}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 f=await a.execute(this._conf,"get",s({url:this._urls.getFollowedListing,params:{collectionType:e}}),m,void 0,{...i},{responseHeaders:d});let w=f;d&&(w=f[0]);const{error:y}=c.GetFollowListingResponse().validate(w,{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 f}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:f}=c.FollowerCountResponse().validate(m,{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 > getFollowerCountById \n ${f}`})}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 f=await a.execute(this._conf,"get",s({url:this._urls.getHomeProducts,params:{}}),m,void 0,{...i},{responseHeaders:d});let w=f;d&&(w=f[0]);const{error:y}=c.HomeListingResponse().validate(w,{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 f}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:f}={responseHeaders:!1}){const{error:w}=l.getInStockLocations().validate({pageNo:e,pageSize:t,q:r,city:i,range:d,latitude:p,longitude:g},{abortEarly:!1,allowUnknown:!0});if(w)return Promise.reject(new n(w));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 h={};h.page_no=e,h.page_size=t,h.q=r,h.city=i,h.range=d,h.latitude=p,h.longitude=g;const b=await a.execute(this._conf,"get",s({url:this._urls.getInStockLocations,params:{}}),h,void 0,{...m},{responseHeaders:f});let _=b;f&&(_=b[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 b}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 f=m;i&&(f=m[0]);const{error:w}=c.ProductBundle().validate(f,{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 > getProductBundlesBySlug \n ${w}`})}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:f}=c.ProductsComparisonResponse().validate(m,{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 > getProductComparisonBySlugs \n ${f}`})}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 f={};f.store_id=r,f.moq=i;const w=await a.execute(this._conf,"get",s({url:this._urls.getProductPriceBySlug,params:{slug:e,size:t}}),f,void 0,{...d},{responseHeaders:p});let y=w;p&&(y=w[0]);const{error:h}=c.ProductSizePriceResponseV3().validate(y,{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 > getProductPriceBySlug \n ${h}`})}return w}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:f}=l.getProductSellersBySlug().validate({slug:e,size:t,strategy:r,pageNo:i,pageSize:d},{abortEarly:!1,allowUnknown:!1});f&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getProductSellersBySlug \n ${f}`});const w={};w.strategy=r,w.page_no=i,w.page_size=d;const y=await a.execute(this._conf,"get",s({url:this._urls.getProductSellersBySlug,params:{slug:e,size:t}}),w,void 0,{...p},{responseHeaders:g});let h=y;g&&(h=y[0]);const{error:b}=c.ProductSizeSellersResponseV3().validate(h,{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 > getProductSellersBySlug \n ${b}`})}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 f=m;i&&(f=m[0]);const{error:w}=c.ProductSizes().validate(f,{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 > getProductSizesBySlug \n ${w}`})}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:f}=l.getProductStockByIds().validate({itemId:e,alu:t,skuCode:r,ean:i,upc:d},{abortEarly:!1,allowUnknown:!1});f&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getProductStockByIds \n ${f}`});const w={};w.item_id=e,w.alu=t,w.sku_code=r,w.ean=i,w.upc=d;const y=await a.execute(this._conf,"get",s({url:this._urls.getProductStockByIds,params:{}}),w,void 0,{...p},{responseHeaders:g});let h=y;g&&(h=y[0]);const{error:b}=c.ProductStockStatusResponse().validate(h,{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 > getProductStockByIds \n ${b}`})}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 f=await a.execute(this._conf,"get",s({url:this._urls.getProductStockForTimeByIds,params:{}}),m,void 0,{...i},{responseHeaders:d});let w=f;d&&(w=f[0]);const{error:y}=c.ProductStockPolling().validate(w,{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 f}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:f}={requestHeaders:{}},{responseHeaders:w}={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:h}=l.getProducts().validate({q:e,f:t,filters:r,sortOn:i,pageId:d,pageSize:p,pageNo:g,pageType:m},{abortEarly:!1,allowUnknown:!1});h&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getProducts \n ${h}`});const b={};b.q=e,b.f=t,b.filters=r,b.sort_on=i,b.page_id=d,b.page_size=p,b.page_no=g,b.page_type=m;const _=await a.execute(this._conf,"get",s({url:this._urls.getProducts,params:{}}),b,void 0,{...f},{responseHeaders:w});let v=_;w&&(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,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:f}=c.AutoCompleteResponse().validate(m,{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 > getSearchResults \n ${f}`})}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:f}={requestHeaders:{}},{responseHeaders:w}={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:h}=l.getStores().validate({pageNo:e,pageSize:t,q:r,city:i,range:d,latitude:p,longitude:g,tags:m},{abortEarly:!1,allowUnknown:!1});h&&u({level:"WARN",message:`Parameter Validation warrnings for application > Catalog > getStores \n ${h}`});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,b.tags=m;const _=await a.execute(this._conf,"get",s({url:this._urls.getStores,params:{}}),b,void 0,{...f},{responseHeaders:w});let v=_;w&&(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:f}=c.FollowPostResponse().validate(m,{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 > unfollowById \n ${f}`})}return g}}},103:(e,t,r)=>{const a=r(6075);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(),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(),price_per_piece: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(""),_custom_json:a.object().pattern(/\S/,a.any()),action:n.ProductListingAction()})}static ProductVariantResponse(){return a.object({display_type:a.string().allow(""),header:a.string().allow(""),group_id:a.string().allow(""),items:a.array().items(n.ProductVariantItemResponse()),key:a.string().allow(""),logo: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},700:(e,t,r)=>{const a=r(6075);r(103),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()}}},3727:(e,t,r)=>{const a=r(7534),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(1235),s=r(1205),i=(r(1121),r(6152)),l=r(5443),{Logger:c}=r(8572);r(6075),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 f=m;u&&(f=m[0]);const{error:w}=l.Locations().validate(f,{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 > Common > getLocations \n ${w}`})}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 f=await a.execute(this._conf,"get",s({url:this._urls.searchApplication,params:{}}),g,void 0,{...m,...r},{responseHeaders:u});let w=f;u&&(w=f[0]);const{error:y}=l.ApplicationResponse().validate(w,{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 f}}},5443:(e,t,r)=>{const a=r(6075);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},6152:(e,t,r)=>{const a=r(6075);r(5443),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("")})}}},8979:(e,t,r)=>{const a=r(7534),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(1235),s=r(1205),i=(r(1121),r(7052)),l=r(8007),{Logger:c}=r(8572);r(6075),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}}},8007:(e,t,r)=>{const a=r(6075);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},7052:(e,t,r)=>{const a=r(6075),n=r(8007);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()}}},7307:(e,t,r)=>{const a=r(7534),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(1235),s=r(1205),i=(r(1121),r(8436)),l=r(1775),{Logger:c}=r(8572);r(6075),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}=i.getAppCurrencies().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:u}=i.getAppCurrencies().validate({},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getAppCurrencies \n ${u}`});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}=l.AppCurrencyResponse().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 > Configuration > getAppCurrencies \n ${g}`})}return d}async getAppStaffList({pageNo:e,pageSize:t,orderIncent:r,orderingStore:u,user:d,userName:p,requestHeaders:g}={requestHeaders:{}},{responseHeaders:m}={responseHeaders:!1}){const{error:f}=i.getAppStaffList().validate({pageNo:e,pageSize:t,orderIncent:r,orderingStore:u,user:d,userName:p},{abortEarly:!1,allowUnknown:!0});if(f)return Promise.reject(new n(f));const{error:w}=i.getAppStaffList().validate({pageNo:e,pageSize:t,orderIncent:r,orderingStore:u,user:d,userName:p},{abortEarly:!1,allowUnknown:!1});w&&c({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getAppStaffList \n ${w}`});const y={};y.page_no=e,y.page_size=t,y.order_incent=r,y.ordering_store=u,y.user=d,y.user_name=p;const h=await a.execute(this._conf,"get",s({url:this._urls.getAppStaffList,params:{}}),y,void 0,{...g},{responseHeaders:m});let b=h;m&&(b=h[0]);const{error:_}=l.AppStaffListResponse().validate(b,{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 > Configuration > getAppStaffList \n ${_}`})}return h}async getAppStaffs({orderIncent:e,orderingStore:t,user:r,requestHeaders:u}={requestHeaders:{}},{responseHeaders:d}={responseHeaders:!1}){const{error:p}=i.getAppStaffs().validate({orderIncent:e,orderingStore:t,user:r},{abortEarly:!1,allowUnknown:!0});if(p)return Promise.reject(new n(p));const{error:g}=i.getAppStaffs().validate({orderIncent:e,orderingStore:t,user:r},{abortEarly:!1,allowUnknown:!1});g&&c({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 f=await a.execute(this._conf,"get",s({url:this._urls.getAppStaffs,params:{}}),m,void 0,{...u},{responseHeaders:d});let w=f;d&&(w=f[0]);const{error:y}=l.AppStaffResponse().validate(w,{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 > Configuration > getAppStaffs \n ${y}`})}return f}async getApplication({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getApplication().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:u}=i.getApplication().validate({},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getApplication \n ${u}`});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}=l.Application().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 > Configuration > getApplication \n ${g}`})}return d}async getBasicDetails({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getBasicDetails().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:u}=i.getBasicDetails().validate({},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getBasicDetails \n ${u}`});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}=l.ApplicationDetail().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 > Configuration > getBasicDetails \n ${g}`})}return d}async getContactInfo({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getContactInfo().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:u}=i.getContactInfo().validate({},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getContactInfo \n ${u}`});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}=l.ApplicationInformation().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 > Configuration > getContactInfo \n ${g}`})}return d}async getCurrencies({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getCurrencies().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:u}=i.getCurrencies().validate({},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getCurrencies \n ${u}`});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}=l.CurrenciesResponse().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 > Configuration > getCurrencies \n ${g}`})}return d}async getCurrencyById({id:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getCurrencyById().validate({id:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getCurrencyById().validate({id:e},{abortEarly:!1,allowUnknown:!1});d&&c({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}=l.Currency().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 > Configuration > getCurrencyById \n ${m}`})}return p}async getFeatures({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getFeatures().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:u}=i.getFeatures().validate({},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getFeatures \n ${u}`});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}=l.AppFeatureResponse().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 > Configuration > getFeatures \n ${g}`})}return d}async getIntegrationTokens({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getIntegrationTokens().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:u}=i.getIntegrationTokens().validate({},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getIntegrationTokens \n ${u}`});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}=l.AppTokenResponse().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 > Configuration > getIntegrationTokens \n ${g}`})}return d}async getLanguages({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getLanguages().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:u}=i.getLanguages().validate({},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getLanguages \n ${u}`});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}=l.LanguageResponse().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 > Configuration > getLanguages \n ${g}`})}return d}async getOrderingStoreCookie({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getOrderingStoreCookie().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getOrderingStoreCookie().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({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}=l.SuccessMessageResponse().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 > Configuration > getOrderingStoreCookie \n ${m}`})}return p}async getOrderingStores({pageNo:e,pageSize:t,q:r,requestHeaders:u}={requestHeaders:{}},{responseHeaders:d}={responseHeaders:!1}){const{error:p}=i.getOrderingStores().validate({pageNo:e,pageSize:t,q:r},{abortEarly:!1,allowUnknown:!0});if(p)return Promise.reject(new n(p));const{error:g}=i.getOrderingStores().validate({pageNo:e,pageSize:t,q:r},{abortEarly:!1,allowUnknown:!1});g&&c({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 f=await a.execute(this._conf,"get",s({url:this._urls.getOrderingStores,params:{}}),m,void 0,{...u},{responseHeaders:d});let w=f;d&&(w=f[0]);const{error:y}=l.OrderingStores().validate(w,{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 > Configuration > getOrderingStores \n ${y}`})}return f}async getOwnerInfo({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getOwnerInfo().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:u}=i.getOwnerInfo().validate({},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > getOwnerInfo \n ${u}`});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}=l.ApplicationAboutResponse().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 > Configuration > getOwnerInfo \n ${g}`})}return d}async getStoreDetailById({storeId:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getStoreDetailById().validate({storeId:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getStoreDetailById().validate({storeId:e},{abortEarly:!1,allowUnknown:!1});d&&c({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}=l.OrderingStore().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 > Configuration > getStoreDetailById \n ${m}`})}return p}async removeOrderingStoreCookie({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.removeOrderingStoreCookie().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:u}=i.removeOrderingStoreCookie().validate({},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Configuration > removeOrderingStoreCookie \n ${u}`});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}=l.SuccessMessageResponse().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 > Configuration > removeOrderingStoreCookie \n ${g}`})}return d}}},1775:(e,t,r)=>{const a=r(6075);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({enabled:a.boolean(),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},8436:(e,t,r)=>{const a=r(6075),n=r(1775);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({})}}},7507:(e,t,r)=>{const a=r(7534),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(1235),s=r(1205),i=r(1121),l=r(4092),c=r(9079),{Logger:u}=r(8572);r(6075),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 f=m;i&&(f=m[0]);const{error:w}=c.BlogSchema().validate(f,{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 > getBlog \n ${w}`})}return m}async getBlogs({pageNo:e,pageSize:t,tags:r,search:i,requestHeaders:d}={requestHeaders:{}},{responseHeaders:p}={responseHeaders:!1}){const{error:g}=l.getBlogs().validate({pageNo:e,pageSize:t,tags:r,search:i},{abortEarly:!1,allowUnknown:!0});if(g)return Promise.reject(new n(g));const{error:m}=l.getBlogs().validate({pageNo:e,pageSize:t,tags:r,search:i},{abortEarly:!1,allowUnknown:!1});m&&u({level:"WARN",message:`Parameter Validation warrnings for application > Content > getBlogs \n ${m}`});const f={};f.page_no=e,f.page_size=t,f.tags=r,f.search=i;const w=await a.execute(this._conf,"get",s({url:this._urls.getBlogs,params:{}}),f,void 0,{...d},{responseHeaders:p});let y=w;p&&(y=w[0]);const{error:h}=c.BlogGetResponse().validate(y,{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 > Content > getBlogs \n ${h}`})}return w}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:f}=c.CustomFieldsResponseByResourceIdSchema().validate(m,{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 > getCustomFields \n ${f}`})}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 f=m;i&&(f=m[0]);const{error:w}=c.NavigationGetResponse().validate(f,{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 > getNavigations \n ${w}`})}return m}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 f=m;i&&(f=m[0]);const{error:w}=c.PageSchema().validate(f,{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 > getPage \n ${w}`})}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 f=m;i&&(f=m[0]);const{error:w}=c.PageGetResponse().validate(f,{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 > getPages \n ${w}`})}return m}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 f=m;i&&(f=m[0]);const{error:w}=c.SeoSchemaComponent().validate(f,{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 > getSEOMarkupSchemas \n ${w}`})}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 f=m;i&&(f=m[0]);const{error:w}=c.SlideshowGetResponse().validate(f,{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 > getSlideshows \n ${w}`})}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}}},9079:(e,t,r)=>{const a=r(6075);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(),filters:n.BlogFilters()})}static BlogFilters(){return a.object({tags:a.array().items(a.string().allow(""))})}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("")),publish_date:a.string().allow(""),seo:n.SEO(),title:a.string().allow(""),date_meta:n.DateMeta(),summary:a.string().allow("")})}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({type:a.string().allow(""),page:n.ActionPage(),popup:n.ActionPage()})}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 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(""),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(""),phone_type: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 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 PageType(){return a.string().valid("about-us","addresses","blog","brands","cards","cart","categories","brand","category","collection","collections","custom","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","locate-us")}}e.exports=n},4092:(e,t,r)=>{const a=r(6075);r(9079),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(),tags:a.string().allow(""),search:a.string().allow("")})}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({})}}},5259:(e,t,r)=>{const a=r(7534),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(1235),s=r(1205),i=(r(1121),r(7636)),l=r(6751),{Logger:c}=r(8572),{fdkAxios:u}=(r(6075),r(128));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:f}=l.CompleteResponse().validate(m,{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 > FileStorage > completeUpload \n ${f}`})}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:f}=l.StartResponse().validate(m,{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 > FileStorage > startUpload \n ${f}`})}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}});if(l.upload&&l.upload.url){let t={method:"PUT",url:l.upload.url,data:e,headers:{"Content-Type":r},withCredentials:!1};await u.request(t)}else i({message:"Failed to upload file"});delete l.tags,s(await this.completeUpload({namespace:a,body:l}))}catch(e){i(e)}}))},e.exports=d},6751:(e,t,r)=>{const a=r(6075);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},7636:(e,t,r)=>{const a=r(6075),n=r(6751);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()}}},133:(e,t,r)=>{const a=r(7534),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(1235),s=r(1205),i=(r(1121),r(7926)),l=r(2201),{Logger:c}=r(8572);r(6075),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}",getTicket:"/service/application/lead/v1.0/ticket/{id}",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:f}=l.TicketHistory().validate(m,{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 > Lead > createHistory \n ${f}`})}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 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 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:f}=l.SubmitCustomFormResponse().validate(m,{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 > Lead > submitCustomForm \n ${f}`})}return g}}},2201:(e,t,r)=>{const a=r(6075);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 SubmitCustomFormResponse(){return a.object({message:a.string().allow("").required(),ticket:n.Ticket(),response:n.FormFieldResponse()})}static FormFieldResponse(){return a.object({_id:a.string().allow(""),__v:a.number(),application_id:a.string().allow(""),form_slug:a.string().allow(""),created_on:n.CreatedOn(),response:a.array().items(n.FormFieldResponseValues())})}static FormFieldResponseValues(){return a.object({key:a.string().allow("")})}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()}).id("TicketCategory")}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},7926:(e,t,r)=>{const a=r(6075),n=r(2201);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 getTicket(){return a.object({id:a.string().allow("").required()}).required()}static submitCustomForm(){return a.object({slug:a.string().allow("").required(),body:n.CustomFormSubmissionPayload().required()}).required()}}},469:(e,t,r)=>{const a=r(7534),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(1235),s=r(1205),i=(r(1121),r(2230)),l=r(8297),{Logger:c}=r(8572);r(6075),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={getAllCountries:"/service/application/logistics/v1.0/country-list",getCountries:"/service/application/logistics/v2.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 f={};f.onboarding=e,f.page_no=t,f.page_size=r,f.q=u;const w=await a.execute(this._conf,"get",s({url:this._urls.getCountries,params:{}}),f,void 0,{...d},{responseHeaders:p});let y=w;p&&(y=w[0]);const{error:h}=l.GetCountries().validate(y,{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 > getCountries \n ${h}`})}return w}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:f}={responseHeaders:!1}){const{error:w}=i.getLocalities().validate({localityType:e,country:t,state:r,city:u,pageNo:d,pageSize:p,q:g},{abortEarly:!1,allowUnknown:!0});if(w)return Promise.reject(new n(w));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 h={};h.country=t,h.state=r,h.city=u,h.page_no=d,h.page_size=p,h.q=g;const b=await a.execute(this._conf,"get",s({url:this._urls.getLocalities,params:{localityType:e}}),h,void 0,{...m},{responseHeaders:f});let _=b;f&&(_=b[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 b}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:f}=i.getLocality().validate({localityType:e,localityValue:t,country:r,state:u,city:d},{abortEarly:!1,allowUnknown:!1});f&&c({level:"WARN",message:`Parameter Validation warrnings for application > Logistic > getLocality \n ${f}`});const w={};w.country=r,w.state=u,w.city=d;const y=await a.execute(this._conf,"get",s({url:this._urls.getLocality,params:{localityType:e,localityValue:t}}),w,void 0,{...p},{responseHeaders:g});let h=y;g&&(h=y[0]);const{error:b}=l.GetLocality().validate(h,{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 > getLocality \n ${b}`})}return y}async getLocations({xApplicationId:e,xApplicationData:t,country:r,state:u,city:d,pincode:p,sector:g,pageNo:m,pageSize:f,requestHeaders:w}={requestHeaders:{}},{responseHeaders:y}={responseHeaders:!1}){const{error:h}=i.getLocations().validate({xApplicationId:e,xApplicationData:t,country:r,state:u,city:d,pincode:p,sector:g,pageNo:m,pageSize:f},{abortEarly:!1,allowUnknown:!0});if(h)return Promise.reject(new n(h));const{error:b}=i.getLocations().validate({xApplicationId:e,xApplicationData:t,country:r,state:u,city:d,pincode:p,sector:g,pageNo:m,pageSize:f},{abortEarly:!1,allowUnknown:!1});b&&c({level:"WARN",message:`Parameter Validation warrnings for application > Logistic > getLocations \n ${b}`});const _={};_["x-application-id"]=e,_["x-application-data"]=t,_.country=r,_.state=u,_.city=d,_.pincode=p,_.sector=g,_.page_no=m,_.page_size=f;const v=await a.execute(this._conf,"get",s({url:this._urls.getLocations,params:{}}),_,void 0,{...w},{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 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 f=m;d&&(f=m[0]);const{error:w}=l.ValidateAddressRequest().validate(f,{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 > Logistic > validateAddress \n ${w}`})}return m}}},8297:(e,t,r)=>{const a=r(6075);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("")).allow(null,""),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()}).allow(null)}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()}).allow(null)}static GetCountryFieldsAddressValues(){return a.object({get_one:n.GetOneOrAll(),get_all:n.GetOneOrAll()}).allow(null)}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("")).allow(null,""),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(""),localities:a.array().items(n.LocalityParent())})}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(""),message:a.string().allow("")})}}e.exports=n},2230:(e,t,r)=>{const a=r(6075),n=r(8297);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()}}},7611:(e,t,r)=>{const a=r(7534),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(1235),s=r(1205),i=(r(1121),r(4420)),l=r(4079),{Logger:c}=r(8572);r(6075),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",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:f}=l.CustomerDetailsResponse().validate(m,{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 > getCustomerDetailsByShipmentId \n ${f}`})}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 f=m;u&&(f=m[0]);const{error:w}=l.OrderById().validate(f,{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 > getOrderById \n ${w}`})}return m}async getOrders({status:e,pageNo:t,pageSize:r,fromDate:u,toDate:d,startDate:p,endDate:g,customMeta:m,allowInactive:f,requestHeaders:w}={requestHeaders:{}},{responseHeaders:y}={responseHeaders:!1}){const{error:h}=i.getOrders().validate({status:e,pageNo:t,pageSize:r,fromDate:u,toDate:d,startDate:p,endDate:g,customMeta:m,allowInactive:f},{abortEarly:!1,allowUnknown:!0});if(h)return Promise.reject(new n(h));const{error:b}=i.getOrders().validate({status:e,pageNo:t,pageSize:r,fromDate:u,toDate:d,startDate:p,endDate:g,customMeta:m,allowInactive:f},{abortEarly:!1,allowUnknown:!1});b&&c({level:"WARN",message:`Parameter Validation warrnings for application > Order > getOrders \n ${b}`});const _={};_.status=e,_.page_no=t,_.page_size=r,_.from_date=u,_.to_date=d,_.start_date=p,_.end_date=g,_.custom_meta=m,_.allow_inactive=f;const v=await a.execute(this._conf,"get",s({url:this._urls.getOrders,params:{}}),_,void 0,{...w},{responseHeaders:y});let R=v;y&&(R=v[0]);const{error:k}=l.OrderList().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 > Order > getOrders \n ${k}`})}return v}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:f}=l.ShipmentBagReasons().validate(m,{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 > getShipmentBagReasons \n ${f}`})}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 f=m;u&&(f=m[0]);const{error:w}=l.ShipmentById().validate(f,{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 > getShipmentById \n ${w}`})}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:f}=l.SendOtpToCustomerResponse().validate(m,{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 > sendOtpToShipmentCustomer \n ${f}`})}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:f}=l.ShipmentApplicationStatusResponse().validate(m,{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 > updateShipmentStatus \n ${f}`})}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 f=m;d&&(f=m[0]);const{error:w}=l.VerifyOtpResponse().validate(f,{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 > verifyOtpShipmentCustomer \n ${w}`})}return m}}},4079:(e,t,r)=>{const a=r(6075);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 ShipmentPaymentInfo(){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(""),amount:a.number()})}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("")),l2_category:a.array().items(a.string().allow("")),l2_category_id:a.number(),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(""))}).allow(null)}static Address(){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.ShipmentPaymentInfo()),order_type:a.string().allow("").allow(null),gstin_code:a.string().allow(""),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.Address(),billing_address:n.Address(),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(),gstin_code:a.string().allow(""),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()),meta:a.object().pattern(/\S/,a.any())})}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},4420:(e,t,r)=>{const a=r(6075),n=r(4079);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(""),allowInactive:a.boolean()})}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()}}},603:(e,t,r)=>{const a=r(7534),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(1235),s=r(1205),i=(r(1121),r(292)),l=r(9887),{Logger:c}=r(8572);r(6075),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 f=m;u&&(f=m[0]);const{error:w}=l.CardDetailsResponse().validate(f,{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 > cardDetails \n ${w}`})}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:f}=l.CheckCreditResponse().validate(m,{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 > checkCredit \n ${f}`})}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:f}=l.CustomerCreditSummaryResponse().validate(m,{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 > customerCreditSummary \n ${f}`})}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:f}=l.ActiveCardPaymentGatewayResponse().validate(m,{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 > getActiveCardAggregator \n ${f}`})}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:f}=l.ListCardsResponse().validate(m,{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 > getActiveUserCards \n ${f}`})}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 f=await a.execute(this._conf,"get",s({url:this._urls.getAggregatorsConfig,params:{}}),g,void 0,{...m,...r},{responseHeaders:u});let w=f;u&&(w=f[0]);const{error:y}=l.AggregatorsConfigDetailResponse().validate(w,{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 f}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:f}=l.OrderBeneficiaryResponse().validate(m,{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 > getOrderBeneficiariesDetail \n ${f}`})}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:f}=l.GetPaymentLinkResponse().validate(m,{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 > getPaymentLink \n ${f}`})}return g}async getPaymentModeRoutes({amount:e,cartId:t,checkoutMode:r,refresh:u,orderId:d,cardReference:p,userDetails:g,displaySplit:m,advancePayment:f,shipmentId:w,requestHeaders:y}={requestHeaders:{}},{responseHeaders:h}={responseHeaders:!1}){const{error:b}=i.getPaymentModeRoutes().validate({amount:e,cartId:t,checkoutMode:r,refresh:u,orderId:d,cardReference:p,userDetails:g,displaySplit:m,advancePayment:f,shipmentId:w},{abortEarly:!1,allowUnknown:!0});if(b)return Promise.reject(new n(b));const{error:_}=i.getPaymentModeRoutes().validate({amount:e,cartId:t,checkoutMode:r,refresh:u,orderId:d,cardReference:p,userDetails:g,displaySplit:m,advancePayment:f,shipmentId:w},{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=f,v.shipment_id=w;const R=await a.execute(this._conf,"get",s({url:this._urls.getPaymentModeRoutes,params:{}}),v,void 0,{...y},{responseHeaders:h});let k=R;h&&(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:f}=l.PaymentModeRouteResponse().validate(m,{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 > getPaymentModeRoutesPaymentLink \n ${f}`})}return g}async getPosPaymentModeRoutes({amount:e,pincode:t,orderType:r,cartId:u,checkoutMode:d,refresh:p,cardReference:g,userDetails:m,requestHeaders:f}={requestHeaders:{}},{responseHeaders:w}={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:h}=i.getPosPaymentModeRoutes().validate({amount:e,pincode:t,orderType:r,cartId:u,checkoutMode:d,refresh:p,cardReference:g,userDetails:m},{abortEarly:!1,allowUnknown:!1});h&&c({level:"WARN",message:`Parameter Validation warrnings for application > Payment > getPosPaymentModeRoutes \n ${h}`});const b={};b.amount=e,b.cart_id=u,b.pincode=t,b.checkout_mode=d,b.refresh=p,b.card_reference=g,b.order_type=r,b.user_details=m;const _=await a.execute(this._conf,"get",s({url:this._urls.getPosPaymentModeRoutes,params:{}}),b,void 0,{...f},{responseHeaders:w});let v=_;w&&(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 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:f}=l.OrderBeneficiaryResponse().validate(m,{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 > getUserBeneficiariesDetail \n ${f}`})}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:f}=l.OutstandingOrderDetailsResponse().validate(m,{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 > outstandingOrderDetails \n ${f}`})}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:f}=l.PaidOrderDetailsResponse().validate(m,{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 > paidOrderDetails \n ${f}`})}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:f}=l.PollingPaymentLinkResponse().validate(m,{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 > pollingPaymentLink \n ${f}`})}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 f=m;u&&(f=m[0]);const{error:w}=l.RedirectToAggregatorResponse().validate(f,{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 > redirectToAggregator \n ${w}`})}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:f}=l.IfscCodeResponse().validate(m,{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 > verifyIfscCode \n ${f}`})}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}}},9887:(e,t,r)=>{const a=r(6075);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(),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(""),merchant_transaction_id:a.string().allow(""),method:a.string().allow("").required(),device_id:a.string().allow("").allow(null),aggregator:a.string().allow("").required(),customer_id:a.string().allow(""),contact:a.string().allow(""),merchant_order_id:a.string().allow("").required(),vpa:a.string().allow(""),order_id:a.string().allow(""),currency:a.string().allow(""),amount:a.number().allow(null),email:a.string().allow("")})}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()).allow(null,""),aggregator_name:a.string().allow("").required(),card_fingerprint:a.string().allow("").allow(null),intent_app_error_list:a.array().items(a.string().allow("")).allow(null,""),intent_app:a.array().items(n.IntentApp()).allow(null,""),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.any().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:a.array().items(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(null,""),allow_custom_advance_amount:a.boolean().allow(null)}).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)}).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()).allow(null,""),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()).allow(null,"")})}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.string().allow("").required(),message:a.string().allow("").required(),is_payment_done:a.boolean()})}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()).allow(null,"")})}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()).allow(null,""),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()).allow(null,""),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},292:(e,t,r)=>{const a=r(6075),n=r(9887);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()}}},3715:(e,t,r)=>{const a=r(7534),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(1235),s=r(1205),i=(r(1121),r(876)),l=r(231),{Logger:c}=r(8572);r(6075),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:u}=i.catalogueOrder().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.catalogueOrder().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({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}=l.CatalogueOrderResponse().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 > Rewards > catalogueOrder \n ${m}`})}return p}async getOfferByName({name:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getOfferByName().validate({name:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getOfferByName().validate({name:e},{abortEarly:!1,allowUnknown:!1});d&&c({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}=l.Offer().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 > Rewards > getOfferByName \n ${m}`})}return p}async getOrderDiscount({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.getOrderDiscount().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.getOrderDiscount().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({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}=l.OrderDiscountResponse().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 > Rewards > getOrderDiscount \n ${m}`})}return p}async getUserPoints({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getUserPoints().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:u}=i.getUserPoints().validate({},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Rewards > getUserPoints \n ${u}`});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}=l.PointsResponse().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 > Rewards > getUserPoints \n ${g}`})}return d}async getUserPointsHistory({pageId:e,pageSize:t,requestHeaders:r}={requestHeaders:{}},{responseHeaders:u}={responseHeaders:!1}){const{error:d}=i.getUserPointsHistory().validate({pageId:e,pageSize:t},{abortEarly:!1,allowUnknown:!0});if(d)return Promise.reject(new n(d));const{error:p}=i.getUserPointsHistory().validate({pageId:e,pageSize:t},{abortEarly:!1,allowUnknown:!1});p&&c({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:u});let f=m;u&&(f=m[0]);const{error:w}=l.PointsHistoryResponse().validate(f,{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 > Rewards > getUserPointsHistory \n ${w}`})}return m}async getUserReferralDetails({requestHeaders:e}={requestHeaders:{}},{responseHeaders:t}={responseHeaders:!1}){const{error:r}=i.getUserReferralDetails().validate({},{abortEarly:!1,allowUnknown:!0});if(r)return Promise.reject(new n(r));const{error:u}=i.getUserReferralDetails().validate({},{abortEarly:!1,allowUnknown:!1});u&&c({level:"WARN",message:`Parameter Validation warrnings for application > Rewards > getUserReferralDetails \n ${u}`});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}=l.ReferralDetailsResponse().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 > Rewards > getUserReferralDetails \n ${g}`})}return d}async redeemReferralCode({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.redeemReferralCode().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.redeemReferralCode().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({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}=l.RedeemReferralCodeResponse().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 > Rewards > redeemReferralCode \n ${m}`})}return p}}},231:(e,t,r)=>{const a=r(6075);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},876:(e,t,r)=>{const a=r(6075),n=r(231);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()}}},8651:(e,t,r)=>{const a=r(7534),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(1235),s=r(1205),i=(r(1121),r(4708)),l=r(7167),{Logger:c}=r(8572);r(6075),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:f}=l.QRCodeResp().validate(m,{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 > Share > getUrlQRCode \n ${f}`})}return g}}},7167:(e,t,r)=>{const a=r(6075);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(""),hash:a.string().allow(""),short_url: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},4708:(e,t,r)=>{const a=r(6075),n=r(7167);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()}}},7803:(e,t,r)=>{const a=r(7534),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(1235),s=r(1205),i=(r(1121),r(7620)),l=r(5423),{Logger:c}=r(8572);r(6075),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,sectionPreviewHash:u,company:d,requestHeaders:p}={requestHeaders:{}},{responseHeaders:g}={responseHeaders:!1}){const{error:m}=i.getPage().validate({themeId:e,pageValue:t,filters:r,sectionPreviewHash:u,company:d},{abortEarly:!1,allowUnknown:!0});if(m)return Promise.reject(new n(m));const{error:f}=i.getPage().validate({themeId:e,pageValue:t,filters:r,sectionPreviewHash:u,company:d},{abortEarly:!1,allowUnknown:!1});f&&c({level:"WARN",message:`Parameter Validation warrnings for application > Theme > getPage \n ${f}`});const w={};w.filters=r,w.section_preview_hash=u,w.company=d;const y=await a.execute(this._conf,"get",s({url:this._urls.getPage,params:{themeId:e,pageValue:t}}),w,void 0,{...p},{responseHeaders:g});let h=y;g&&(h=y[0]);const{error:b}=l.AvailablePageSchema().validate(h,{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 y}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}}},5423:(e,t,r)=>{const a=r(6075);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({type:a.string().allow(""),page:n.ActionPage(),popup:n.ActionPage()})}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(""),source: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({sections:a.array().items(n.Section()),value:a.string().allow("")})}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 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 PageType(){return a.string().valid("about-us","addresses","blog","brands","cards","cart","categories","brand","category","collection","collections","custom","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","locate-us")}}e.exports=n},7620:(e,t,r)=>{const a=r(6075);r(5423),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(""),sectionPreviewHash:a.string().allow(""),company:a.number()}).required()}static getThemeForPreview(){return a.object({themeId:a.string().allow("").required()}).required()}}},8363:(e,t,r)=>{const a=r(7534),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(1235),s=r(1205),i=(r(1121),r(1092)),l=r(9231),{Logger:c}=r(8572),u=r(6075);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 f=m;u&&(f=m[0]);const{error:w}=l.VerifyEmailOTPSuccess().validate(f,{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 > addEmail \n ${w}`})}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 f=m;u&&(f=m[0]);const{error:w}=l.VerifyMobileOTPSuccess().validate(f,{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 > addMobileNumber \n ${w}`})}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:f}=i.deleteEmail().validate({active:e,primary:t,verified:r,email:u,platform:d},{abortEarly:!1,allowUnknown:!1});f&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > deleteEmail \n ${f}`});const w={};w.platform=d,w.active=e,w.primary=t,w.verified=r,w.email=u;const y=await a.execute(this._conf,"delete",s({url:this._urls.deleteEmail,params:{}}),w,void 0,{...p},{responseHeaders:g});let h=y;g&&(h=y[0]);const{error:b}=l.LoginSuccess().validate(h,{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 > User > deleteEmail \n ${b}`})}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:f}=i.deleteMobileNumber().validate({active:e,primary:t,verified:r,countryCode:u,phone:d,platform:p},{abortEarly:!1,allowUnknown:!0});if(f)return Promise.reject(new n(f));const{error:w}=i.deleteMobileNumber().validate({active:e,primary:t,verified:r,countryCode:u,phone:d,platform:p},{abortEarly:!1,allowUnknown:!1});w&&c({level:"WARN",message:`Parameter Validation warrnings for application > User > deleteMobileNumber \n ${w}`});const y={};y.platform=p,y.active=e,y.primary=t,y.verified=r,y.country_code=u,y.phone=d;const h=await a.execute(this._conf,"delete",s({url:this._urls.deleteMobileNumber,params:{}}),y,void 0,{...g},{responseHeaders:m});let b=h;m&&(b=h[0]);const{error:_}=l.LoginSuccess().validate(b,{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 h}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:f}=l.PlatformSchema().validate(m,{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 > getPlatformConfig \n ${f}`})}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:f}=l.UserAttributes().validate(m,{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 > getUserAttributes \n ${f}`})}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 f=m;u&&(f=m[0]);const{error:w}=l.AuthSuccess().validate(f,{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 > loginWithAppleIOS \n ${w}`})}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 f=m;u&&(f=m[0]);const{error:w}=l.AuthSuccess().validate(f,{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 > loginWithFacebook \n ${w}`})}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 f=m;u&&(f=m[0]);const{error:w}=l.AuthSuccess().validate(f,{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 > loginWithGoogle \n ${w}`})}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 f=m;u&&(f=m[0]);const{error:w}=l.AuthSuccess().validate(f,{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 > loginWithGoogleAndroid \n ${w}`})}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 f=m;u&&(f=m[0]);const{error:w}=l.AuthSuccess().validate(f,{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 > loginWithGoogleIOS \n ${w}`})}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 f=m;u&&(f=m[0]);const{error:w}=l.SendOtpResponse().validate(f,{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 > loginWithOTP \n ${w}`})}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 f=m;u&&(f=m[0]);const{error:w}=l.RegisterFormSuccess().validate(f,{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 > registerWithForm \n ${w}`})}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 f=m;u&&(f=m[0]);const{error:w}=l.EmailOtpSuccess().validate(f,{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 > sendForgotOTPOnEmail \n ${w}`})}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 f=m;u&&(f=m[0]);const{error:w}=l.OtpSuccess().validate(f,{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 > sendForgotOTPOnMobile \n ${w}`})}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 f=m;u&&(f=m[0]);const{error:w}=l.EmailOtpSuccess().validate(f,{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 > sendOTPOnEmail \n ${w}`})}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 f=m;u&&(f=m[0]);const{error:w}=l.OtpSuccess().validate(f,{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 > sendOTPOnMobile \n ${w}`})}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 f=m;u&&(f=m[0]);const{error:w}=l.ResetPasswordSuccess().validate(f,{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 > sendResetPasswordEmail \n ${w}`})}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 f=m;l&&(f=m[0]);const{error:w}=u.string().allow("").validate(f,{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 > sendResetPasswordMobile \n ${w}`})}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 f=m;u&&(f=m[0]);const{error:w}=l.SendEmailVerifyLinkSuccess().validate(f,{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 > sendVerificationLinkToEmail \n ${w}`})}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 f=m;u&&(f=m[0]);const{error:w}=l.SendMobileVerifyLinkSuccess().validate(f,{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 > sendVerificationLinkToMobile \n ${w}`})}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 f=m;u&&(f=m[0]);const{error:w}=l.ProfileEditSuccess().validate(f,{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 > updateProfile \n ${w}`})}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:f}=l.UserExistsResponse().validate(m,{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 > userExists \n ${f}`})}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 f=m;u&&(f=m[0]);const{error:w}=l.VerifyForgotOtpSuccess().validate(f,{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 > verifyEmailForgotOTP \n ${w}`})}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 f=m;u&&(f=m[0]);const{error:w}=l.VerifyOtpSuccess().validate(f,{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 > verifyEmailOTP \n ${w}`})}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 f=m;u&&(f=m[0]);const{error:w}=l.VerifyForgotOtpSuccess().validate(f,{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 > verifyMobileForgotOTP \n ${w}`})}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 f=m;u&&(f=m[0]);const{error:w}=l.VerifyOtpSuccess().validate(f,{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 > verifyMobileOTP \n ${w}`})}return m}}},9231:(e,t,r)=>{const a=r(6075);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(""),external_id:a.string().allow(""),rr_id:a.string().allow("")})}static PhoneNumber(){return a.object({phone:a.string().allow(""),country_code:a.number(),active:a.boolean(),primary:a.boolean(),verified:a.boolean()})}static Email(){return a.object({email:a.string().allow(""),active:a.boolean(),primary:a.boolean(),verified:a.boolean()})}}e.exports=n},1092:(e,t,r)=>{const a=r(6075),n=r(9231);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()}}},3567:(e,t,r)=>{const a=r(7534),{FDKClientValidationError:n,FDKResponseValidationError:o}=r(1235),s=r(1205),i=(r(1121),r(7496)),l=r(7379),{Logger:c}=r(8572);r(6075),e.exports=class{constructor(e){this._conf=e,this._relativeUrls={saveClickEvent:"/service/application/webhook/v1.0/click-analytics/events"},this._urls=Object.entries(this._relativeUrls).reduce(((t,[r,a])=>(t[r]=`${e.domain}${a}`,t)),{})}updateUrls(e){this._urls={...this._urls,...e}}async saveClickEvent({body:e,requestHeaders:t}={requestHeaders:{}},{responseHeaders:r}={responseHeaders:!1}){const{error:u}=i.saveClickEvent().validate({body:e},{abortEarly:!1,allowUnknown:!0});if(u)return Promise.reject(new n(u));const{error:d}=i.saveClickEvent().validate({body:e},{abortEarly:!1,allowUnknown:!1});d&&c({level:"WARN",message:`Parameter Validation warrnings for application > Webhook > saveClickEvent \n ${d}`});const p=await a.execute(this._conf,"post",s({url:this._urls.saveClickEvent,params:{}}),{},e,{...t},{responseHeaders:r});let g=p;r&&(g=p[0]);const{error:m}=l.ClickEventResponse().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 > Webhook > saveClickEvent \n ${m}`})}return p}}},7379:(e,t,r)=>{const a=r(6075);class n{static ClickEventBatch(){return a.object({event_name:a.string().allow("")})}static ClickEventRequest(){return a.object({batch:a.array().items(n.ClickEventBatch())})}static ClickEventResponse(){return a.object({success_count:a.number(),failed_count:a.number(),failed_events:a.array().items(n.ClickEventBatch())})}}e.exports=n},7496:(e,t,r)=>{const a=r(6075),n=r(7379);e.exports=class{static saveClickEvent(){return a.object({body:n.ClickEventRequest().required()}).required()}}},1205:(e,t,r)=>{const a=r(2729);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("/")},3775:(e,t,r)=>{e.exports={ApplicationConfig:r(8163),ApplicationClient:r(9418),ApplicationModel:{CartApplicationModel:r(7785),CatalogApplicationModel:r(103),CommonApplicationModel:r(5443),CommunicationApplicationModel:r(8007),ConfigurationApplicationModel:r(1775),ContentApplicationModel:r(9079),FileStorageApplicationModel:r(6751),LeadApplicationModel:r(2201),LogisticApplicationModel:r(8297),OrderApplicationModel:r(4079),PaymentApplicationModel:r(9887),RewardsApplicationModel:r(231),ShareApplicationModel:r(7167),ThemeApplicationModel:r(5423),UserApplicationModel:r(9231),WebhookApplicationModel:r(7379)}}},128:(e,t,r)=>{const{isAbsoluteURL:a,combineURLs:n}=r(8879),o=r(6425).default,s=r(6663),{sign:i}=r(1331),{FDKServerResponseError:l}=r(1235),{log:c,Logger:u,getLoggerLevel:d}=r(8572),p=r(4790),{version:g}=r(8330),m=o.create({withCredentials:!0,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&&!a(e.url)&&(t=n(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 f,w="";if(m&&Object.keys(m).length&&""!==s.stringify(m).trim()&&(w=`?${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);f=t(c,u)}const{common:y,delete:h,get:b,head:_,post:v,put:R,patch:k,...P}=u,j={method:d&&d.toUpperCase(),host:r,path:o+l+w,body:f,headers:P},S=i(j);return e.headers["x-fp-date"]=S["x-fp-date"],e.headers["x-fp-signature"]=S["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){if(e.response){const t=e.response.data;throw u({level:"ERROR",message:t&&t.message?t.message:e.message,stack:t&&t.stack?t.stack:e.stack,request:{method:e.config&&e.config.url?e.config.url:void 0,url:e.config&&e.config.method?e.config.method:void 0,headers:e.config&&e.config.headers?e.config.headers:void 0}}),new l(t&&t.message?t.message:e.message,"",e.response.statusText,e.response.status,t)}throw e.request?(u({level:"ERROR",message:e.message,stack:e.stack,request:{method:e.config&&e.config.url?e.config.url:void 0,url:e.config&&e.config.method?e.config.method:void 0,headers:e.config&&e.config.headers?e.config.headers:void 0}}),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}},3010:(e,t,r)=>{const a=r(768),{Logger:n}=r(8572),o=function(e,t=null){try{return e()}catch(e){return t}},s=function(e){if(!e||!Object.keys(e).length)return{query:null,position:null,utm_medium:null,utm_source:null,utm_campaign:null};const{utm_medium:t=null,utm_source:r=null,utm_campaign:a=null}=e,n={query:null,position:null,utm_medium:t,utm_source:r,utm_campaign:a};if("search"===t)try{const t=e.utm_content?atob(e.utm_content):null;if(t){const e=t.split(":::");n.query=e[0]||null,n.position=e[1]||null}}catch(e){return n}return n},i=function(){const e=(new Date).toISOString(),t=o((()=>window.config.application),null);return t&&Object.keys(t).length?{company_id:o((()=>t.company_id),0),company_mode:o((()=>t.mode),"live"),company_created_on:o((()=>t.company_created_on),e)}:{company_id:0,company_mode:"live",company_created_on:e}};"undefined"!=typeof window&&(window.FPI.event.on("user.login",(e=>{n({level:"DEBUG",message:e}),a.identify(e.user_id,{event_type:"identity",email:o((()=>e.email)),phone:o((()=>e.phone_number)),login_value:o((()=>e.login_value)),method:o((()=>e.method)),...i()}).catch((e=>{n({level:"ERROR",message:e})}))})),window.FPI.event.on("user.update",(e=>{n({level:"DEBUG",message:e}),a.identify(e.used_id,{event_type:"identity",email:o((()=>e.email)),phone:o((()=>e.phone_number)),method:o((()=>e.method)),...i()}).catch((e=>{n({level:"ERROR",message:e})}))})),window.FPI.event.on("user.logout",(e=>{n({level:"DEBUG",message:e}),a.sendEvent("user_logout",{event_type:"identity",...i()}).catch((e=>{n({level:"ERROR",message:e})})),a.reset().catch((e=>{n({level:"ERROR",message:e})}))})),window.FPI.event.on("wishlist.add",(e=>{n({level:"DEBUG",message:e});const t={wishlist_name:"TODO",wishlist_id:"TODO",event_type:"engagement",product_id:o((()=>e.item.uid)),brand:o((()=>e.item.brand.name)),l3_category:o((()=>e.item.categories[0].name)),mrp:o((()=>e.item.price.marked.max)),quantity:"TODO",esp:o((()=>e.item.price.effective.min)),currency:o((()=>e.item.price.effective.currency_code)),value:"TODO",source_url:"TODO",...i()},r=s(e.utm_params);a.sendEvent("product_wishlist_add",{...t,...r}).then((e=>{n({level:"DEBUG",message:"Click event sent"})})).catch((e=>{n({level:"ERROR",message:e})}))})),window.FPI.event.on("wishlist.remove",(e=>{n({level:"DEBUG",message:e}),a.sendEvent("product_wishlist_remove",{wishlist_name:"TODO",wishlist_id:"TODO",event_type:"engagement",product_id:o((()=>e.item.uid)),brand:o((()=>e.item.brand.name)),l3_category:o((()=>e.item.categories[0].name)),mrp:o((()=>e.item.price.marked.max)),quantity:"TODO",esp:o((()=>e.item.price.effective.min)),currency:o((()=>e.item.price.effective.currency_code)),value:"TODO",source_url:"TODO",...i()}).then((e=>{n({level:"DEBUG",message:"Click event sent"})})).catch((e=>{n({level:"ERROR",message:e})}))})),window.FPI.event.on("cart.newProduct",(e=>{n({level:"DEBUG",message:e});const t={cart_id:e.cart_id,event_type:"engagement",product_id:o((()=>e.products[0].uid)),article_id:o((()=>e.products[0].article.uid)),brand:o((()=>e.products[0].brand.name)),l3_category:o((()=>e.products[0].category.name)),l1_category:"TODO",currency:o((()=>e.products[0].price.currency_code)),price:o((()=>e.products[0].price.selling)),quantity:o((()=>e.products[0].quantity.current)),source_url:"TODO",position:null,query:null,value:"TODO",...i()},r=s(e.utm_params);a.sendEvent("add_to_cart",{...t,...r}).then((e=>{n({level:"DEBUG",message:"Click event sent"})})).catch((e=>{n({level:"ERROR",message:e})}))})),window.FPI.event.on("cart.remove",(e=>{n({level:"DEBUG",message:e}),a.sendEvent("remove_from_cart",{cart_id:e.cart_id,event_type:"engagement",product_id:o((()=>e.products[0].uid)),brand:o((()=>e.products[0].brand.name)),l3_category:o((()=>e.products[0].category.name)),l1_category:"TODO",currency:o((()=>e.products[0].price.currency_code)),price:o((()=>e.products[0].price.selling)),quantity:o((()=>e.products[0].quantity.current)),source_url:"TODO",position:null,value:"TODO",...i()}).then((e=>{n({level:"DEBUG",message:"Click event sent"})})).catch((e=>{n({level:"ERROR",message:e})}))})),window.FPI.event.on("order.processed",(e=>{n({level:"DEBUG",message:e}),a.sendEvent("order_complete",{event_type:"conversion",...e,...i()}).then((e=>{n({level:"DEBUG",message:"Click event sent"})})).catch((e=>{n({level:"ERROR",message:e})}))})),window.FPI.event.on("refund.success",(e=>{n({level:"DEBUG",message:e}),a.sendEvent("order_refunded",{event_type:"conversion",...e,...i()}).then((e=>{n({level:"DEBUG",message:"Click event sent"})})).catch((e=>{n({level:"ERROR",message:e})}))})),window.FPI.event.on("order.checkout",(e=>{n({level:"DEBUG",message:e}),a.sendEvent("order_checkout",{event_type:"conversion",cart_id:e.cart_id,cart_total:o((()=>e.breakup_values_raw.mrp_total)),items:o((()=>e.products.lenght)),shipping:o((()=>e.breakup_values_raw.delivery_charge)),tax:o((()=>e.breakup_values_raw.gst_charges)),order_total:o((()=>e.breakup_values_raw.total)),currency:o((()=>e.products[0].price.currency_code)),products:e.products.map((e=>({product_id:e.uid,l3_category:o((()=>e.category.name)),l1_category:"TODO",quantity:o((()=>e.quantity.current)),price:o((()=>e.price.marked)),value:o((()=>e.price.effective)),currency:o((()=>e.price.currency_code)),article_id:o((()=>e.article.uid))}))),...i()}).then((e=>{n({level:"DEBUG",message:"Click event sent"})})).catch((e=>{n({level:"ERROR",message:e})}))})),window.FPI.event.on("order.checkedout",(e=>{n({level:"DEBUG",message:e}),a.sendEvent("order_checkedout",{event_type:"conversion",cart_id:e.cart_id,cart_total:o((()=>e.breakup_values_raw.mrp_total)),item_total:o((()=>e.products.length)),shipping:o((()=>e.breakup_values_raw.delivery_charge)),tax:o((()=>e.breakup_values_raw.gst_charges)),order_total:o((()=>e.breakup_values_raw.total)),currency:o((()=>e.products[0].price.currency_code)),order_id:o((()=>e.order_id)),products:e.products.map((e=>({product_id:e.uid,l3_category:o((()=>e.category.name)),l1_category:"TODO",quantity:o((()=>e.quantity.current)),price:o((()=>e.price.marked)),value:o((()=>e.price.effective)),currency:o((()=>e.price.currency_code)),article_id:o((()=>e.article.uid))}))),...i()}).then((e=>{n({level:"DEBUG",message:"Click event sent"})})).catch((e=>{n({level:"ERROR",message:e})}))})),window.FPI.event.on("product_list.view",(e=>{n({level:"DEBUG",message:e}),e.user&&e.user.user_id&&a.identify(e.user.user_id,{},!1),a.sendEvent("product_listing",{event_type:"impression",query:o((()=>e.slug.q)),products:e.items.map((e=>({product_id:e.uid,name:e.name,currency:o((()=>e.price.effective.currency_code)),mrp:o((()=>e.price.effective.max)),esp:o((()=>e.price.effective.min)),source_url:e.url,brand:o((()=>e.brand.name))}))),item_total:o((()=>e.page.item_total)),...i()})})),window.FPI.event.on("product.view",(e=>{n({level:"DEBUG",message:e}),e.user&&e.user.user_id&&a.identify(e.user.user_id,{},!1);const t={event_type:"click",product_id:o((()=>e.product.uid)),currency:o((()=>e.product.price.currency_code)),brand:o((()=>e.product.brand.name)),l3_category:o((()=>e.product.l3_category)),mrp:o((()=>e.product.price.max)),esp:o((()=>e.product.price.min)),l1_category:o((()=>e.product.l1_category)),source_url:o((()=>e.product.source_url)),quantity:o((()=>e.product.sizes[0].quantity)),position:null,query:null},r=s(e.utm_params);a.sendEvent("product_view",{...t,...r,...i()}).then((e=>{n({level:"DEBUG",message:"Click event sent"})})).catch((e=>{n({level:"ERROR",message:e})}))})),window.FPI.event.on("search.products",(e=>{n({level:"DEBUG",message:e});const t={event_type:"search",query:e.search_text,products:[],item_total:null};let r=[];e.user&&e.user.user_id&&a.identify(e.user.user_id,{},!1),e.data&&e.data.length>0&&(r=e.data.filter((e=>{if("product"===e.type&&e.categories||e.product)return!0})).map((e=>e.display||e.name)));const s=o((()=>e.page.item_total?e.page.item_total:0));t.query&&a.sendEvent("product_search",{...t,products:r,item_total:s,...i()}).then((e=>{n({level:"DEBUG",message:"Click event sent"})})).catch((e=>{n({level:"ERROR",message:e})}))})),window.FPI.event.on("product_list.filter",(e=>{n({level:"DEBUG",message:e})})))},1235: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}},8572:(e,t,r)=>{const a=r(3065),n=r(8330).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()}}},1121: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()}}},4790:(e,t,r)=>{const a=r(6663),{combineURLs:n,isAbsoluteURL:o}=r(8879);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()}},8879:(e,t,r)=>{const{FDKException:a}=r(1235),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"},combineURLs:function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e},isAbsoluteURL:function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}}},6425:(e,t,r)=>{"use strict";function a(e,t){return function(){return e.apply(t,arguments)}}const{toString:n}=Object.prototype,{getPrototypeOf:o}=Object,s=(i=Object.create(null),e=>{const t=n.call(e);return i[t]||(i[t]=t.slice(8,-1).toLowerCase())});var i;const l=e=>(e=e.toLowerCase(),t=>s(t)===e),c=e=>t=>typeof t===e,{isArray:u}=Array,d=c("undefined"),p=l("ArrayBuffer"),g=c("string"),m=c("function"),f=c("number"),w=e=>null!==e&&"object"==typeof e,y=e=>{if("object"!==s(e))return!1;const t=o(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},h=l("Date"),b=l("File"),_=l("Blob"),v=l("FileList"),R=l("URLSearchParams"),[k,P,j,S]=["ReadableStream","Request","Response","Headers"].map(l);function C(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let a,n;if("object"!=typeof e&&(e=[e]),u(e))for(a=0,n=e.length;a0;)if(a=r[n],t===a.toLowerCase())return a;return null}const A="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:r.g,E=e=>!d(e)&&e!==A,O=(U="undefined"!=typeof Uint8Array&&o(Uint8Array),e=>U&&e instanceof U);var U;const x=l("HTMLFormElement"),H=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),I=l("RegExp"),N=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),a={};C(r,((r,n)=>{let o;!1!==(o=t(r,n,e))&&(a[n]=o||r)})),Object.defineProperties(e,a)},$="abcdefghijklmnopqrstuvwxyz",T="0123456789",D={DIGIT:T,ALPHA:$,ALPHA_DIGIT:$+$.toUpperCase()+T},L=l("AsyncFunction"),W=(B="function"==typeof setImmediate,F=m(A.postMessage),B?setImmediate:F?(V=`axios@${Math.random()}`,M=[],A.addEventListener("message",(({source:e,data:t})=>{e===A&&t===V&&M.length&&M.shift()()}),!1),e=>{M.push(e),A.postMessage(V,"*")}):e=>setTimeout(e));var B,F,V,M;const z="undefined"!=typeof queueMicrotask?queueMicrotask.bind(A):"undefined"!=typeof process&&process.nextTick||W;var G={isArray:u,isArrayBuffer:p,isBuffer:function(e){return null!==e&&!d(e)&&null!==e.constructor&&!d(e.constructor)&&m(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||m(e.append)&&("formdata"===(t=s(e))||"object"===t&&m(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&p(e.buffer),t},isString:g,isNumber:f,isBoolean:e=>!0===e||!1===e,isObject:w,isPlainObject:y,isReadableStream:k,isRequest:P,isResponse:j,isHeaders:S,isUndefined:d,isDate:h,isFile:b,isBlob:_,isRegExp:I,isFunction:m,isStream:e=>w(e)&&m(e.pipe),isURLSearchParams:R,isTypedArray:O,isFileList:v,forEach:C,merge:function e(){const{caseless:t}=E(this)&&this||{},r={},a=(a,n)=>{const o=t&&q(r,n)||n;y(r[o])&&y(a)?r[o]=e(r[o],a):y(a)?r[o]=e({},a):u(a)?r[o]=a.slice():r[o]=a};for(let e=0,t=arguments.length;e(C(t,((t,n)=>{r&&m(t)?e[n]=a(t,r):e[n]=t}),{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,a)=>{e.prototype=Object.create(t.prototype,a),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,a)=>{let n,s,i;const l={};if(t=t||{},null==e)return t;do{for(n=Object.getOwnPropertyNames(e),s=n.length;s-- >0;)i=n[s],a&&!a(i,e,t)||l[i]||(t[i]=e[i],l[i]=!0);e=!1!==r&&o(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:l,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const a=e.indexOf(t,r);return-1!==a&&a===r},toArray:e=>{if(!e)return null;if(u(e))return e;let t=e.length;if(!f(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=r.next())&&!a.done;){const r=a.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const a=[];for(;null!==(r=e.exec(t));)a.push(r);return a},isHTMLForm:x,hasOwnProperty:H,hasOwnProp:H,reduceDescriptors:N,freezeMethods:e=>{N(e,((t,r)=>{if(m(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const a=e[r];m(a)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(e,t)=>{const r={},a=e=>{e.forEach((e=>{r[e]=!0}))};return u(e)?a(e):a(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:q,global:A,isContextDefined:E,ALPHABET:D,generateString:(e=16,t=D.ALPHA_DIGIT)=>{let r="";const{length:a}=t;for(;e--;)r+=t[Math.random()*a|0];return r},isSpecCompliantForm:function(e){return!!(e&&m(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),r=(e,a)=>{if(w(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[a]=e;const n=u(e)?[]:{};return C(e,((e,t)=>{const o=r(e,a+1);!d(o)&&(n[t]=o)})),t[a]=void 0,n}}return e};return r(e,0)},isAsyncFn:L,isThenable:e=>e&&(w(e)||m(e))&&m(e.then)&&m(e.catch),setImmediate:W,asap:z};function K(e,t,r,a,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),a&&(this.request=a),n&&(this.response=n,this.status=n.status?n.status:null)}G.inherits(K,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:G.toJSONObject(this.config),code:this.code,status:this.status}}});const Q=K.prototype,J={};function Z(e){return G.isPlainObject(e)||G.isArray(e)}function X(e){return G.endsWith(e,"[]")?e.slice(0,-2):e}function Y(e,t,r){return e?e.concat(t).map((function(e,t){return e=X(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}["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","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{J[e]={value:e}})),Object.defineProperties(K,J),Object.defineProperty(Q,"isAxiosError",{value:!0}),K.from=(e,t,r,a,n,o)=>{const s=Object.create(Q);return G.toFlatObject(e,s,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),K.call(s,e.message,t,r,a,n),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const ee=G.toFlatObject(G,{},null,(function(e){return/^is[A-Z]/.test(e)}));function te(e,t,r){if(!G.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const a=(r=G.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!G.isUndefined(t[e])}))).metaTokens,n=r.visitor||c,o=r.dots,s=r.indexes,i=(r.Blob||"undefined"!=typeof Blob&&Blob)&&G.isSpecCompliantForm(t);if(!G.isFunction(n))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(G.isDate(e))return e.toISOString();if(!i&&G.isBlob(e))throw new K("Blob is not supported. Use a Buffer instead.");return G.isArrayBuffer(e)||G.isTypedArray(e)?i&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,r,n){let i=e;if(e&&!n&&"object"==typeof e)if(G.endsWith(r,"{}"))r=a?r:r.slice(0,-2),e=JSON.stringify(e);else if(G.isArray(e)&&function(e){return G.isArray(e)&&!e.some(Z)}(e)||(G.isFileList(e)||G.endsWith(r,"[]"))&&(i=G.toArray(e)))return r=X(r),i.forEach((function(e,a){!G.isUndefined(e)&&null!==e&&t.append(!0===s?Y([r],a,o):null===s?r:r+"[]",l(e))})),!1;return!!Z(e)||(t.append(Y(n,r,o),l(e)),!1)}const u=[],d=Object.assign(ee,{defaultVisitor:c,convertValue:l,isVisitable:Z});if(!G.isObject(e))throw new TypeError("data must be an object");return function e(r,a){if(!G.isUndefined(r)){if(-1!==u.indexOf(r))throw Error("Circular reference detected in "+a.join("."));u.push(r),G.forEach(r,(function(r,o){!0===(!(G.isUndefined(r)||null===r)&&n.call(t,r,G.isString(o)?o.trim():o,a,d))&&e(r,a?a.concat(o):[o])})),u.pop()}}(e),t}function re(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function ae(e,t){this._pairs=[],e&&te(e,this,t)}const ne=ae.prototype;function oe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function se(e,t,r){if(!t)return e;const a=r&&r.encode||oe,n=r&&r.serialize;let o;if(o=n?n(t,r):G.isURLSearchParams(t)?t.toString():new ae(t,r).toString(a),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}ne.append=function(e,t){this._pairs.push([e,t])},ne.toString=function(e){const t=e?function(t){return e.call(this,t,re)}:re;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var ie=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){G.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},le={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ce={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ae,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const ue="undefined"!=typeof window&&"undefined"!=typeof document,de="object"==typeof navigator&&navigator||void 0,pe=ue&&(!de||["ReactNative","NativeScript","NS"].indexOf(de.product)<0),ge="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,me=ue&&window.location.href||"http://localhost";var fe={...Object.freeze({__proto__:null,hasBrowserEnv:ue,hasStandardBrowserWebWorkerEnv:ge,hasStandardBrowserEnv:pe,navigator:de,origin:me}),...ce};function we(e){function t(e,r,a,n){let o=e[n++];if("__proto__"===o)return!0;const s=Number.isFinite(+o),i=n>=e.length;return o=!o&&G.isArray(a)?a.length:o,i?(G.hasOwnProp(a,o)?a[o]=[a[o],r]:a[o]=r,!s):(a[o]&&G.isObject(a[o])||(a[o]=[]),t(e,r,a[o],n)&&G.isArray(a[o])&&(a[o]=function(e){const t={},r=Object.keys(e);let a;const n=r.length;let o;for(a=0;a{t(function(e){return G.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),a,r,0)})),r}return null}const ye={transitional:le,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",a=r.indexOf("application/json")>-1,n=G.isObject(e);if(n&&G.isHTMLForm(e)&&(e=new FormData(e)),G.isFormData(e))return a?JSON.stringify(we(e)):e;if(G.isArrayBuffer(e)||G.isBuffer(e)||G.isStream(e)||G.isFile(e)||G.isBlob(e)||G.isReadableStream(e))return e;if(G.isArrayBufferView(e))return e.buffer;if(G.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(n){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return te(e,new fe.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,a){return fe.isNode&&G.isBuffer(e)?(this.append(t,e.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=G.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return te(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return n||a?(t.setContentType("application/json",!1),function(e){if(G.isString(e))try{return(0,JSON.parse)(e),G.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ye.transitional,r=t&&t.forcedJSONParsing,a="json"===this.responseType;if(G.isResponse(e)||G.isReadableStream(e))return e;if(e&&G.isString(e)&&(r&&!this.responseType||a)){const r=!(t&&t.silentJSONParsing)&&a;try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw K.from(e,K.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:fe.classes.FormData,Blob:fe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};G.forEach(["delete","get","head","post","put","patch"],(e=>{ye.headers[e]={}}));var he=ye;const be=G.toObjectSet(["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=Symbol("internals");function ve(e){return e&&String(e).trim().toLowerCase()}function Re(e){return!1===e||null==e?e:G.isArray(e)?e.map(Re):String(e)}function ke(e,t,r,a,n){return G.isFunction(a)?a.call(this,t,r):(n&&(t=r),G.isString(t)?G.isString(a)?-1!==t.indexOf(a):G.isRegExp(a)?a.test(t):void 0:void 0)}class Pe{constructor(e){e&&this.set(e)}set(e,t,r){const a=this;function n(e,t,r){const n=ve(t);if(!n)throw new Error("header name must be a non-empty string");const o=G.findKey(a,n);(!o||void 0===a[o]||!0===r||void 0===r&&!1!==a[o])&&(a[o||t]=Re(e))}const o=(e,t)=>G.forEach(e,((e,r)=>n(e,r,t)));if(G.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(G.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))o((e=>{const t={};let r,a,n;return e&&e.split("\n").forEach((function(e){n=e.indexOf(":"),r=e.substring(0,n).trim().toLowerCase(),a=e.substring(n+1).trim(),!r||t[r]&&be[r]||("set-cookie"===r?t[r]?t[r].push(a):t[r]=[a]:t[r]=t[r]?t[r]+", "+a:a)})),t})(e),t);else if(G.isHeaders(e))for(const[t,a]of e.entries())n(a,t,r);else null!=e&&n(t,e,r);return this}get(e,t){if(e=ve(e)){const r=G.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=r.exec(e);)t[a[1]]=a[2];return t}(e);if(G.isFunction(t))return t.call(this,e,r);if(G.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ve(e)){const r=G.findKey(this,e);return!(!r||void 0===this[r]||t&&!ke(0,this[r],r,t))}return!1}delete(e,t){const r=this;let a=!1;function n(e){if(e=ve(e)){const n=G.findKey(r,e);!n||t&&!ke(0,r[n],n,t)||(delete r[n],a=!0)}}return G.isArray(e)?e.forEach(n):n(e),a}clear(e){const t=Object.keys(this);let r=t.length,a=!1;for(;r--;){const n=t[r];e&&!ke(0,this[n],n,e,!0)||(delete this[n],a=!0)}return a}normalize(e){const t=this,r={};return G.forEach(this,((a,n)=>{const o=G.findKey(r,n);if(o)return t[o]=Re(a),void delete t[n];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(n):String(n).trim();s!==n&&delete t[n],t[s]=Re(a),r[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return G.forEach(this,((r,a)=>{null!=r&&!1!==r&&(t[a]=e&&G.isArray(r)?r.join(", "):r)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach((e=>r.set(e))),r}static accessor(e){const t=(this[_e]=this[_e]={accessors:{}}).accessors,r=this.prototype;function a(e){const a=ve(e);t[a]||(function(e,t){const r=G.toCamelCase(" "+t);["get","set","has"].forEach((a=>{Object.defineProperty(e,a+r,{value:function(e,r,n){return this[a].call(this,t,e,r,n)},configurable:!0})}))}(r,e),t[a]=!0)}return G.isArray(e)?e.forEach(a):a(e),this}}Pe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),G.reduceDescriptors(Pe.prototype,(({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}})),G.freezeMethods(Pe);var je=Pe;function Se(e,t){const r=this||he,a=t||r,n=je.from(a.headers);let o=a.data;return G.forEach(e,(function(e){o=e.call(r,o,n.normalize(),t?t.status:void 0)})),n.normalize(),o}function Ce(e){return!(!e||!e.__CANCEL__)}function qe(e,t,r){K.call(this,null==e?"canceled":e,K.ERR_CANCELED,t,r),this.name="CanceledError"}function Ae(e,t,r){const a=r.config.validateStatus;r.status&&a&&!a(r.status)?t(new K("Request failed with status code "+r.status,[K.ERR_BAD_REQUEST,K.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}G.inherits(qe,K,{__CANCEL__:!0});const Ee=(e,t,r=3)=>{let a=0;const n=function(e,t){e=e||10;const r=new Array(e),a=new Array(e);let n,o=0,s=0;return t=void 0!==t?t:1e3,function(i){const l=Date.now(),c=a[s];n||(n=l),r[o]=i,a[o]=l;let u=s,d=0;for(;u!==o;)d+=r[u++],u%=e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),l-n{n=o,r=null,a&&(clearTimeout(a),a=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),i=t-n;i>=o?s(e,t):(r=e,a||(a=setTimeout((()=>{a=null,s(r)}),o-i)))},()=>r&&s(r)]}((r=>{const o=r.loaded,s=r.lengthComputable?r.total:void 0,i=o-a,l=n(i);a=o,e({loaded:o,total:s,progress:s?o/s:void 0,bytes:i,rate:l||void 0,estimated:l&&s&&o<=s?(s-o)/l:void 0,event:r,lengthComputable:null!=s,[t?"download":"upload"]:!0})}),r)},Oe=(e,t)=>{const r=null!=e;return[a=>t[0]({lengthComputable:r,total:e,loaded:a}),t[1]]},Ue=e=>(...t)=>G.asap((()=>e(...t)));var xe=fe.hasStandardBrowserEnv?function(){const e=fe.navigator&&/(msie|trident)/i.test(fe.navigator.userAgent),t=document.createElement("a");let r;function a(r){let a=r;return e&&(t.setAttribute("href",a),a=t.href),t.setAttribute("href",a),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return r=a(window.location.href),function(e){const t=G.isString(e)?a(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function(){return!0},He=fe.hasStandardBrowserEnv?{write(e,t,r,a,n,o){const s=[e+"="+encodeURIComponent(t)];G.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),G.isString(a)&&s.push("path="+a),G.isString(n)&&s.push("domain="+n),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Ie(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Ne=e=>e instanceof je?{...e}:e;function $e(e,t){t=t||{};const r={};function a(e,t,r){return G.isPlainObject(e)&&G.isPlainObject(t)?G.merge.call({caseless:r},e,t):G.isPlainObject(t)?G.merge({},t):G.isArray(t)?t.slice():t}function n(e,t,r){return G.isUndefined(t)?G.isUndefined(e)?void 0:a(void 0,e,r):a(e,t,r)}function o(e,t){if(!G.isUndefined(t))return a(void 0,t)}function s(e,t){return G.isUndefined(t)?G.isUndefined(e)?void 0:a(void 0,e):a(void 0,t)}function i(r,n,o){return o in t?a(r,n):o in e?a(void 0,r):void 0}const l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:i,headers:(e,t)=>n(Ne(e),Ne(t),!0)};return G.forEach(Object.keys(Object.assign({},e,t)),(function(a){const o=l[a]||n,s=o(e[a],t[a],a);G.isUndefined(s)&&o!==i||(r[a]=s)})),r}var Te=e=>{const t=$e({},e);let r,{data:a,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:s,headers:i,auth:l}=t;if(t.headers=i=je.from(i),t.url=se(Ie(t.baseURL,t.url),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),G.isFormData(a))if(fe.hasStandardBrowserEnv||fe.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(!1!==(r=i.getContentType())){const[e,...t]=r?r.split(";").map((e=>e.trim())).filter(Boolean):[];i.setContentType([e||"multipart/form-data",...t].join("; "))}if(fe.hasStandardBrowserEnv&&(n&&G.isFunction(n)&&(n=n(t)),n||!1!==n&&xe(t.url))){const e=o&&s&&He.read(s);e&&i.set(o,e)}return t},De="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){const a=Te(e);let n=a.data;const o=je.from(a.headers).normalize();let s,i,l,c,u,{responseType:d,onUploadProgress:p,onDownloadProgress:g}=a;function m(){c&&c(),u&&u(),a.cancelToken&&a.cancelToken.unsubscribe(s),a.signal&&a.signal.removeEventListener("abort",s)}let f=new XMLHttpRequest;function w(){if(!f)return;const a=je.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders());Ae((function(e){t(e),m()}),(function(e){r(e),m()}),{data:d&&"text"!==d&&"json"!==d?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:a,config:e,request:f}),f=null}f.open(a.method.toUpperCase(),a.url,!0),f.timeout=a.timeout,"onloadend"in f?f.onloadend=w:f.onreadystatechange=function(){f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))&&setTimeout(w)},f.onabort=function(){f&&(r(new K("Request aborted",K.ECONNABORTED,e,f)),f=null)},f.onerror=function(){r(new K("Network Error",K.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let t=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const n=a.transitional||le;a.timeoutErrorMessage&&(t=a.timeoutErrorMessage),r(new K(t,n.clarifyTimeoutError?K.ETIMEDOUT:K.ECONNABORTED,e,f)),f=null},void 0===n&&o.setContentType(null),"setRequestHeader"in f&&G.forEach(o.toJSON(),(function(e,t){f.setRequestHeader(t,e)})),G.isUndefined(a.withCredentials)||(f.withCredentials=!!a.withCredentials),d&&"json"!==d&&(f.responseType=a.responseType),g&&([l,u]=Ee(g,!0),f.addEventListener("progress",l)),p&&f.upload&&([i,c]=Ee(p),f.upload.addEventListener("progress",i),f.upload.addEventListener("loadend",c)),(a.cancelToken||a.signal)&&(s=t=>{f&&(r(!t||t.type?new qe(null,e,f):t),f.abort(),f=null)},a.cancelToken&&a.cancelToken.subscribe(s),a.signal&&(a.signal.aborted?s():a.signal.addEventListener("abort",s)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(a.url);y&&-1===fe.protocols.indexOf(y)?r(new K("Unsupported protocol "+y+":",K.ERR_BAD_REQUEST,e)):f.send(n||null)}))},Le=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,a=new AbortController;const n=function(e){if(!r){r=!0,s();const t=e instanceof Error?e:this.reason;a.abort(t instanceof K?t:new qe(t instanceof Error?t.message:t))}};let o=t&&setTimeout((()=>{o=null,n(new K(`timeout ${t} of ms exceeded`,K.ETIMEDOUT))}),t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(n):e.removeEventListener("abort",n)})),e=null)};e.forEach((e=>e.addEventListener("abort",n)));const{signal:i}=a;return i.unsubscribe=()=>G.asap(s),i}};const We=function*(e,t){let r=e.byteLength;if(!t||r{const n=async function*(e,t){for await(const r of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}}(e))yield*We(r,t)}(e,t);let o,s=0,i=e=>{o||(o=!0,a&&a(e))};return new ReadableStream({async pull(e){try{const{done:t,value:a}=await n.next();if(t)return i(),void e.close();let o=a.byteLength;if(r){let e=s+=o;r(e)}e.enqueue(new Uint8Array(a))}catch(e){throw i(e),e}},cancel:e=>(i(e),n.return())},{highWaterMark:2})},Fe="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Ve=Fe&&"function"==typeof ReadableStream,Me=Fe&&("function"==typeof TextEncoder?(ze=new TextEncoder,e=>ze.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var ze;const Ge=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Ke=Ve&&Ge((()=>{let e=!1;const t=new Request(fe.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Qe=Ve&&Ge((()=>G.isReadableStream(new Response("").body))),Je={stream:Qe&&(e=>e.body)};var Ze;Fe&&(Ze=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Je[e]&&(Je[e]=G.isFunction(Ze[e])?t=>t[e]():(t,r)=>{throw new K(`Response type '${e}' is not supported`,K.ERR_NOT_SUPPORT,r)})})));const Xe={http:null,xhr:De,fetch:Fe&&(async e=>{let{url:t,method:r,data:a,signal:n,cancelToken:o,timeout:s,onDownloadProgress:i,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:p}=Te(e);c=c?(c+"").toLowerCase():"text";let g,m=Le([n,o&&o.toAbortSignal()],s);const f=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let w;try{if(l&&Ke&&"get"!==r&&"head"!==r&&0!==(w=await(async(e,t)=>{const r=G.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(G.isBlob(e))return e.size;if(G.isSpecCompliantForm(e)){const t=new Request(fe.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return G.isArrayBufferView(e)||G.isArrayBuffer(e)?e.byteLength:(G.isURLSearchParams(e)&&(e+=""),G.isString(e)?(await Me(e)).byteLength:void 0)})(t):r})(u,a))){let e,r=new Request(t,{method:"POST",body:a,duplex:"half"});if(G.isFormData(a)&&(e=r.headers.get("content-type"))&&u.setContentType(e),r.body){const[e,t]=Oe(w,Ee(Ue(l)));a=Be(r.body,65536,e,t)}}G.isString(d)||(d=d?"include":"omit");const n="credentials"in Request.prototype;g=new Request(t,{...p,signal:m,method:r.toUpperCase(),headers:u.normalize().toJSON(),body:a,duplex:"half",credentials:n?d:void 0});let o=await fetch(g);const s=Qe&&("stream"===c||"response"===c);if(Qe&&(i||s&&f)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=G.toFiniteNumber(o.headers.get("content-length")),[r,a]=i&&Oe(t,Ee(Ue(i),!0))||[];o=new Response(Be(o.body,65536,r,(()=>{a&&a(),f&&f()})),e)}c=c||"text";let y=await Je[G.findKey(Je,c)||"text"](o,e);return!s&&f&&f(),await new Promise(((t,r)=>{Ae(t,r,{data:y,headers:je.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:g})}))}catch(t){if(f&&f(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new K("Network Error",K.ERR_NETWORK,e,g),{cause:t.cause||t});throw K.from(t,t&&t.code,e,g)}})};G.forEach(Xe,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Ye=e=>`- ${e}`,et=e=>G.isFunction(e)||null===e||!1===e;var tt=e=>{e=G.isArray(e)?e:[e];const{length:t}=e;let r,a;const n={};for(let o=0;o`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new K("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Ye).join("\n"):" "+Ye(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return a};function rt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new qe(null,e)}function at(e){return rt(e),e.headers=je.from(e.headers),e.data=Se.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),tt(e.adapter||he.adapter)(e).then((function(t){return rt(e),t.data=Se.call(e,e.transformResponse,t),t.headers=je.from(t.headers),t}),(function(t){return Ce(t)||(rt(e),t&&t.response&&(t.response.data=Se.call(e,e.transformResponse,t.response),t.response.headers=je.from(t.response.headers))),Promise.reject(t)}))}const nt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{nt[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const ot={};nt.transitional=function(e,t,r){function a(e,t){return"[Axios v1.7.7] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,n,o)=>{if(!1===e)throw new K(a(n," has been removed"+(t?" in "+t:"")),K.ERR_DEPRECATED);return t&&!ot[n]&&(ot[n]=!0,console.warn(a(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,o)}};var st={assertOptions:function(e,t,r){if("object"!=typeof e)throw new K("options must be an object",K.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let n=a.length;for(;n-- >0;){const o=a[n],s=t[o];if(s){const t=e[o],r=void 0===t||s(t,o,e);if(!0!==r)throw new K("option "+o+" must be "+r,K.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new K("Unknown option "+o,K.ERR_BAD_OPTION)}},validators:nt};const it=st.validators;class lt{constructor(e){this.defaults=e,this.interceptors={request:new ie,response:new ie}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=$e(this.defaults,t);const{transitional:r,paramsSerializer:a,headers:n}=t;void 0!==r&&st.assertOptions(r,{silentJSONParsing:it.transitional(it.boolean),forcedJSONParsing:it.transitional(it.boolean),clarifyTimeoutError:it.transitional(it.boolean)},!1),null!=a&&(G.isFunction(a)?t.paramsSerializer={serialize:a}:st.assertOptions(a,{encode:it.function,serialize:it.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=n&&G.merge(n.common,n[t.method]);n&&G.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete n[e]})),t.headers=je.concat(o,n);const s=[];let i=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!i){const e=[at.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null})),this.promise.then=e=>{let t;const a=new Promise((e=>{r.subscribe(e),t=e})).then(e);return a.cancel=function(){r.unsubscribe(t)},a},e((function(e,a,n){r.reason||(r.reason=new qe(e,a,n),t(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new ut((function(t){e=t})),cancel:e}}}var dt=ut;const pt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(pt).forEach((([e,t])=>{pt[t]=e}));var gt=pt;const mt=function e(t){const r=new ct(t),n=a(ct.prototype.request,r);return G.extend(n,ct.prototype,r,{allOwnKeys:!0}),G.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e($e(t,r))},n}(he);mt.Axios=ct,mt.CanceledError=qe,mt.CancelToken=dt,mt.isCancel=Ce,mt.VERSION="1.7.7",mt.toFormData=te,mt.AxiosError=K,mt.Cancel=mt.CanceledError,mt.all=function(e){return Promise.all(e)},mt.spread=function(e){return function(t){return e.apply(null,t)}},mt.isAxiosError=function(e){return G.isObject(e)&&!0===e.isAxiosError},mt.mergeConfig=$e,mt.AxiosHeaders=je,mt.formToJSON=e=>we(G.isHTMLForm(e)?new FormData(e):e),mt.getAdapter=tt,mt.HttpStatusCode=gt,mt.default=mt,e.exports=mt},8330:e=>{"use strict";e.exports=JSON.parse('{"name":"@gofynd/fdk-client-javascript","version":"v1.4.15-beta.1","description":"","main":"index.js","scripts":{"test":"jest --coverage","lint":"eslint","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":"^1.6.4","camelcase":"^6.3.0","joi":"^17.7.0","loglevel":"^1.8.1","query-string":"^7.1.3","@gofynd/fp-signature":"^1.0.1","@gofynd/flick":"^1.0.9"},"devDependencies":{"axios-cookiejar-support":"^4.0.6","axios-mock-adapter":"^1.21.2","clean-webpack-plugin":"^4.0.0","coveralls":"^3.1.1","eslint":"^8.57.0","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={};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}r.amdO={},r.d=(e,t)=>{for(var a in t)r.o(t,a)&&!r.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},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.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a=r(2675),n=window;for(var o in a)n[o]=a[o];a.__esModule&&Object.defineProperty(n,"__esModule",{value:!0})})(); \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 0b992cc43..afcd1e596 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@gofynd/fdk-client-javascript", - "version": "1.4.12-beta.1", + "version": "v1.4.15-beta.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@gofynd/fdk-client-javascript", - "version": "1.4.12-beta.1", + "version": "v1.4.15-beta.1", "license": "ISC", "dependencies": { "@gofynd/flick": "^1.0.9", @@ -45,12 +45,12 @@ } }, "node_modules/@babel/code-frame": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.24.7.tgz", - "integrity": "sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA==", + "version": "7.25.7", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.25.7.tgz", + "integrity": "sha512-0xZJFNE5XMpENsgfHYTw8FbX4kv53mFLn2i3XPoq69LyhYSCBJtitaHx9QnsVTrsogI4Z3+HtEfZ2/GFPOtf5g==", "dev": true, "dependencies": { - "@babel/highlight": "^7.24.7", + "@babel/highlight": "^7.25.7", "picocolors": "^1.0.0" }, "engines": { @@ -58,30 +58,30 @@ } }, "node_modules/@babel/compat-data": { - "version": "7.25.4", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.25.4.tgz", - "integrity": "sha512-+LGRog6RAsCJrrrg/IO6LGmpphNe5DiK30dGjCoxxeGv49B10/3XYGxPsAwrDlMFcFEvdAUavDT8r9k/hSyQqQ==", + "version": "7.25.8", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.25.8.tgz", + "integrity": "sha512-ZsysZyXY4Tlx+Q53XdnOFmqwfB9QDTHYxaZYajWRoBLuLEAwI2UIbtxOjWh/cFaa9IKUlcB+DDuoskLuKu56JA==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/core": { - "version": "7.25.2", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.25.2.tgz", - "integrity": "sha512-BBt3opiCOxUr9euZ5/ro/Xv8/V7yJ5bjYMqG/C1YAo8MIKAnumZalCN+msbci3Pigy4lIQfPUpfMM27HMGaYEA==", + "version": "7.25.8", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.25.8.tgz", + "integrity": "sha512-Oixnb+DzmRT30qu9d3tJSQkxuygWm32DFykT4bRoORPa9hZ/L4KhVB/XiRm6KG+roIEM7DBQlmg27kw2HZkdZg==", "dev": true, "dependencies": { "@ampproject/remapping": "^2.2.0", - "@babel/code-frame": "^7.24.7", - "@babel/generator": "^7.25.0", - "@babel/helper-compilation-targets": "^7.25.2", - "@babel/helper-module-transforms": "^7.25.2", - "@babel/helpers": "^7.25.0", - "@babel/parser": "^7.25.0", - "@babel/template": "^7.25.0", - "@babel/traverse": "^7.25.2", - "@babel/types": "^7.25.2", + "@babel/code-frame": "^7.25.7", + "@babel/generator": "^7.25.7", + "@babel/helper-compilation-targets": "^7.25.7", + "@babel/helper-module-transforms": "^7.25.7", + "@babel/helpers": "^7.25.7", + "@babel/parser": "^7.25.8", + "@babel/template": "^7.25.7", + "@babel/traverse": "^7.25.7", + "@babel/types": "^7.25.8", "convert-source-map": "^2.0.0", "debug": "^4.1.0", "gensync": "^1.0.0-beta.2", @@ -106,29 +106,29 @@ } }, "node_modules/@babel/generator": { - "version": "7.25.6", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.25.6.tgz", - "integrity": "sha512-VPC82gr1seXOpkjAAKoLhP50vx4vGNlF4msF64dSFq1P8RfB+QAuJWGHPXXPc8QyfVWwwB/TNNU4+ayZmHNbZw==", + "version": "7.25.7", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.25.7.tgz", + "integrity": "sha512-5Dqpl5fyV9pIAD62yK9P7fcA768uVPUyrQmqpqstHWgMma4feF1x/oFysBCVZLY5wJ2GkMUCdsNDnGZrPoR6rA==", "dev": true, "dependencies": { - "@babel/types": "^7.25.6", + "@babel/types": "^7.25.7", "@jridgewell/gen-mapping": "^0.3.5", "@jridgewell/trace-mapping": "^0.3.25", - "jsesc": "^2.5.1" + "jsesc": "^3.0.2" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-compilation-targets": { - "version": "7.25.2", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.25.2.tgz", - "integrity": "sha512-U2U5LsSaZ7TAt3cfaymQ8WHh0pxvdHoEk6HVpaexxixjyEquMh0L0YNJNM6CTGKMXV1iksi0iZkGw4AcFkPaaw==", + "version": "7.25.7", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.25.7.tgz", + "integrity": "sha512-DniTEax0sv6isaw6qSQSfV4gVRNtw2rte8HHM45t9ZR0xILaufBRNkpMifCRiAPyvL4ACD6v0gfCwCmtOQaV4A==", "dev": true, "dependencies": { - "@babel/compat-data": "^7.25.2", - "@babel/helper-validator-option": "^7.24.8", - "browserslist": "^4.23.1", + "@babel/compat-data": "^7.25.7", + "@babel/helper-validator-option": "^7.25.7", + "browserslist": "^4.24.0", "lru-cache": "^5.1.1", "semver": "^6.3.1" }, @@ -146,28 +146,28 @@ } }, "node_modules/@babel/helper-module-imports": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.24.7.tgz", - "integrity": "sha512-8AyH3C+74cgCVVXow/myrynrAGv+nTVg5vKu2nZph9x7RcRwzmh0VFallJuFTZ9mx6u4eSdXZfcOzSqTUm0HCA==", + "version": "7.25.7", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.25.7.tgz", + "integrity": "sha512-o0xCgpNmRohmnoWKQ0Ij8IdddjyBFE4T2kagL/x6M3+4zUgc+4qTOUBoNe4XxDskt1HPKO007ZPiMgLDq2s7Kw==", "dev": true, "dependencies": { - "@babel/traverse": "^7.24.7", - "@babel/types": "^7.24.7" + "@babel/traverse": "^7.25.7", + "@babel/types": "^7.25.7" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-module-transforms": { - "version": "7.25.2", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.25.2.tgz", - "integrity": "sha512-BjyRAbix6j/wv83ftcVJmBt72QtHI56C7JXZoG2xATiLpmoC7dpd8WnkikExHDVPpi/3qCmO6WY1EaXOluiecQ==", + "version": "7.25.7", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.25.7.tgz", + "integrity": "sha512-k/6f8dKG3yDz/qCwSM+RKovjMix563SLxQFo0UhRNo239SP6n9u5/eLtKD6EAjwta2JHJ49CsD8pms2HdNiMMQ==", "dev": true, "dependencies": { - "@babel/helper-module-imports": "^7.24.7", - "@babel/helper-simple-access": "^7.24.7", - "@babel/helper-validator-identifier": "^7.24.7", - "@babel/traverse": "^7.25.2" + "@babel/helper-module-imports": "^7.25.7", + "@babel/helper-simple-access": "^7.25.7", + "@babel/helper-validator-identifier": "^7.25.7", + "@babel/traverse": "^7.25.7" }, "engines": { "node": ">=6.9.0" @@ -177,74 +177,74 @@ } }, "node_modules/@babel/helper-plugin-utils": { - "version": "7.24.8", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.8.tgz", - "integrity": "sha512-FFWx5142D8h2Mgr/iPVGH5G7w6jDn4jUSpZTyDnQO0Yn7Ks2Kuz6Pci8H6MPCoUJegd/UZQ3tAvfLCxQSnWWwg==", + "version": "7.25.7", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.25.7.tgz", + "integrity": "sha512-eaPZai0PiqCi09pPs3pAFfl/zYgGaE6IdXtYvmf0qlcDTd3WCtO7JWCcRd64e0EQrcYgiHibEZnOGsSY4QSgaw==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-simple-access": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.24.7.tgz", - "integrity": "sha512-zBAIvbCMh5Ts+b86r/CjU+4XGYIs+R1j951gxI3KmmxBMhCg4oQMsv6ZXQ64XOm/cvzfU1FmoCyt6+owc5QMYg==", + "version": "7.25.7", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.25.7.tgz", + "integrity": "sha512-FPGAkJmyoChQeM+ruBGIDyrT2tKfZJO8NcxdC+CWNJi7N8/rZpSxK7yvBJ5O/nF1gfu5KzN7VKG3YVSLFfRSxQ==", "dev": true, "dependencies": { - "@babel/traverse": "^7.24.7", - "@babel/types": "^7.24.7" + "@babel/traverse": "^7.25.7", + "@babel/types": "^7.25.7" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-string-parser": { - "version": "7.24.8", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.24.8.tgz", - "integrity": "sha512-pO9KhhRcuUyGnJWwyEgnRJTSIZHiT+vMD0kPeD+so0l7mxkMT19g3pjY9GTnHySck/hDzq+dtW/4VgnMkippsQ==", + "version": "7.25.7", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.25.7.tgz", + "integrity": "sha512-CbkjYdsJNHFk8uqpEkpCvRs3YRp9tY6FmFY7wLMSYuGYkrdUi7r2lc4/wqsvlHoMznX3WJ9IP8giGPq68T/Y6g==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-validator-identifier": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.7.tgz", - "integrity": "sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w==", + "version": "7.25.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.7.tgz", + "integrity": "sha512-AM6TzwYqGChO45oiuPqwL2t20/HdMC1rTPAesnBCgPCSF1x3oN9MVUwQV2iyz4xqWrctwK5RNC8LV22kaQCNYg==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-validator-option": { - "version": "7.24.8", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.24.8.tgz", - "integrity": "sha512-xb8t9tD1MHLungh/AIoWYN+gVHaB9kwlu8gffXGSt3FFEIT7RjS+xWbc2vUD1UTZdIpKj/ab3rdqJ7ufngyi2Q==", + "version": "7.25.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.25.7.tgz", + "integrity": "sha512-ytbPLsm+GjArDYXJ8Ydr1c/KJuutjF2besPNbIZnZ6MKUxi/uTA22t2ymmA4WFjZFpjiAMO0xuuJPqK2nvDVfQ==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helpers": { - "version": "7.25.6", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.25.6.tgz", - "integrity": "sha512-Xg0tn4HcfTijTwfDwYlvVCl43V6h4KyVVX2aEm4qdO/PC6L2YvzLHFdmxhoeSA3eslcE6+ZVXHgWwopXYLNq4Q==", + "version": "7.25.7", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.25.7.tgz", + "integrity": "sha512-Sv6pASx7Esm38KQpF/U/OXLwPPrdGHNKoeblRxgZRLXnAtnkEe4ptJPDtAZM7fBLadbc1Q07kQpSiGQ0Jg6tRA==", "dev": true, "dependencies": { - "@babel/template": "^7.25.0", - "@babel/types": "^7.25.6" + "@babel/template": "^7.25.7", + "@babel/types": "^7.25.7" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/highlight": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.24.7.tgz", - "integrity": "sha512-EStJpq4OuY8xYfhGVXngigBJRWxftKX9ksiGDnmlY3o7B/V7KIAc9X4oiK87uPJSc/vs5L869bem5fhZa8caZw==", + "version": "7.25.7", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.25.7.tgz", + "integrity": "sha512-iYyACpW3iW8Fw+ZybQK+drQre+ns/tKpXbNESfrhNnPLIklLbXr7MYJ6gPEd0iETGLOK+SxMjVvKb/ffmk+FEw==", "dev": true, "dependencies": { - "@babel/helper-validator-identifier": "^7.24.7", + "@babel/helper-validator-identifier": "^7.25.7", "chalk": "^2.4.2", "js-tokens": "^4.0.0", "picocolors": "^1.0.0" @@ -325,12 +325,12 @@ } }, "node_modules/@babel/parser": { - "version": "7.25.6", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.25.6.tgz", - "integrity": "sha512-trGdfBdbD0l1ZPmcJ83eNxB9rbEax4ALFTF7fN386TMYbeCQbyme5cOEXQhbGXKebwGaB/J52w1mrklMcbgy6Q==", + "version": "7.25.8", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.25.8.tgz", + "integrity": "sha512-HcttkxzdPucv3nNFmfOOMfFf64KgdJVqm1KaCm25dPGMLElo9nsLvXeJECQg8UzPuBGLyTSA0ZzqCtDSzKTEoQ==", "dev": true, "dependencies": { - "@babel/types": "^7.25.6" + "@babel/types": "^7.25.8" }, "bin": { "parser": "bin/babel-parser.js" @@ -391,12 +391,12 @@ } }, "node_modules/@babel/plugin-syntax-import-attributes": { - "version": "7.25.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.25.6.tgz", - "integrity": "sha512-sXaDXaJN9SNLymBdlWFA+bjzBhFD617ZaFiY13dGt7TVslVvVgA6fkZOP7Ki3IGElC45lwHdOTrCtKZGVAWeLQ==", + "version": "7.25.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.25.7.tgz", + "integrity": "sha512-AqVo+dguCgmpi/3mYBdu9lkngOBlQ2w2vnNpa6gfiCxQZLzV4ZbhsXitJ2Yblkoe1VQwtHSaNmIaGll/26YWRw==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.24.8" + "@babel/helper-plugin-utils": "^7.25.7" }, "engines": { "node": ">=6.9.0" @@ -430,12 +430,12 @@ } }, "node_modules/@babel/plugin-syntax-jsx": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.24.7.tgz", - "integrity": "sha512-6ddciUPe/mpMnOKv/U+RSd2vvVy+Yw/JfBB0ZHYjEZt9NLHmCUylNYlsbqCCS1Bffjlb0fCwC9Vqz+sBz6PsiQ==", + "version": "7.25.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.25.7.tgz", + "integrity": "sha512-ruZOnKO+ajVL/MVx+PwNBPOkrnXTXoWMtte1MBpegfCArhqOe3Bj52avVj1huLLxNKYKXYaSxZ2F+woK1ekXfw==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7" + "@babel/helper-plugin-utils": "^7.25.7" }, "engines": { "node": ">=6.9.0" @@ -547,12 +547,12 @@ } }, "node_modules/@babel/plugin-syntax-typescript": { - "version": "7.25.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.25.4.tgz", - "integrity": "sha512-uMOCoHVU52BsSWxPOMVv5qKRdeSlPuImUCB2dlPuBSU+W2/ROE7/Zg8F2Kepbk+8yBa68LlRKxO+xgEVWorsDg==", + "version": "7.25.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.25.7.tgz", + "integrity": "sha512-rR+5FDjpCHqqZN2bzZm18bVYGaejGq5ZkpVCJLXor/+zlSrSoc4KWcHI0URVWjl/68Dyr1uwZUz/1njycEAv9g==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.24.8" + "@babel/helper-plugin-utils": "^7.25.7" }, "engines": { "node": ">=6.9.0" @@ -562,30 +562,30 @@ } }, "node_modules/@babel/template": { - "version": "7.25.0", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.25.0.tgz", - "integrity": "sha512-aOOgh1/5XzKvg1jvVz7AVrx2piJ2XBi227DHmbY6y+bM9H2FlN+IfecYu4Xl0cNiiVejlsCri89LUsbj8vJD9Q==", + "version": "7.25.7", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.25.7.tgz", + "integrity": "sha512-wRwtAgI3bAS+JGU2upWNL9lSlDcRCqD05BZ1n3X2ONLH1WilFP6O1otQjeMK/1g0pvYcXC7b/qVUB1keofjtZA==", "dev": true, "dependencies": { - "@babel/code-frame": "^7.24.7", - "@babel/parser": "^7.25.0", - "@babel/types": "^7.25.0" + "@babel/code-frame": "^7.25.7", + "@babel/parser": "^7.25.7", + "@babel/types": "^7.25.7" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/traverse": { - "version": "7.25.6", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.25.6.tgz", - "integrity": "sha512-9Vrcx5ZW6UwK5tvqsj0nGpp/XzqthkT0dqIc9g1AdtygFToNtTF67XzYS//dm+SAK9cp3B9R4ZO/46p63SCjlQ==", + "version": "7.25.7", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.25.7.tgz", + "integrity": "sha512-jatJPT1Zjqvh/1FyJs6qAHL+Dzb7sTb+xr7Q+gM1b+1oBsMsQQ4FkVKb6dFlJvLlVssqkRzV05Jzervt9yhnzg==", "dev": true, "dependencies": { - "@babel/code-frame": "^7.24.7", - "@babel/generator": "^7.25.6", - "@babel/parser": "^7.25.6", - "@babel/template": "^7.25.0", - "@babel/types": "^7.25.6", + "@babel/code-frame": "^7.25.7", + "@babel/generator": "^7.25.7", + "@babel/parser": "^7.25.7", + "@babel/template": "^7.25.7", + "@babel/types": "^7.25.7", "debug": "^4.3.1", "globals": "^11.1.0" }, @@ -603,13 +603,13 @@ } }, "node_modules/@babel/types": { - "version": "7.25.6", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.25.6.tgz", - "integrity": "sha512-/l42B1qxpG6RdfYf343Uw1vmDjeNhneUXtzhojE7pDgfpEypmRhI6j1kr17XCVv4Cgl9HdAiQY2x0GwKm7rWCw==", + "version": "7.25.8", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.25.8.tgz", + "integrity": "sha512-JWtuCu8VQsMladxVz/P4HzHUGCAwpuqacmowgXFs5XjxIgKuNjnLokQzuVjlTvIzODaDmpjT3oxcC48vyk9EWg==", "dev": true, "dependencies": { - "@babel/helper-string-parser": "^7.24.8", - "@babel/helper-validator-identifier": "^7.24.7", + "@babel/helper-string-parser": "^7.25.7", + "@babel/helper-validator-identifier": "^7.25.7", "to-fast-properties": "^2.0.0" }, "engines": { @@ -778,9 +778,9 @@ } }, "node_modules/@gofynd/flick": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/@gofynd/flick/-/flick-1.0.9.tgz", - "integrity": "sha512-Zchegy3yjX+MN9gMEWKH/wbPqDbCWTvqxYShD1V5Jj436bPyHHwnCEC9jUBrl0+zlEClPruqF0yRGwV/vmcGIQ==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@gofynd/flick/-/flick-1.1.0.tgz", + "integrity": "sha512-aUvFCaCPrDjH+NIn3v2XXDWiaeC6KjWnD8Bt/IBjxO7Bz2lH4383vX9FlfGW99X0OBAa5TbcDe4o5yZ/zDfLNg==", "dependencies": { "@gofynd/fp-signature": "^1.0.1", "@types/es6-promise": "^3.3.0", @@ -1735,9 +1735,9 @@ "dev": true }, "node_modules/acorn": { - "version": "8.12.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.12.1.tgz", - "integrity": "sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg==", + "version": "8.13.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.13.0.tgz", + "integrity": "sha512-8zSiw54Oxrdym50NlZ9sUusyO1Z1ZchgRLWRaK6c86XJFClyCgFKetdowBg5bKxyp/u+CDBJG4Mpp0m3HLZl9w==", "dev": true, "bin": { "acorn": "bin/acorn" @@ -2358,9 +2358,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001664", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001664.tgz", - "integrity": "sha512-AmE7k4dXiNKQipgn7a2xg558IRqPN3jMQY/rOsbxDhrd0tyChwbITBfiwtnqz8bi2M5mIWbxAYBvk7W7QBUS2g==", + "version": "1.0.30001669", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001669.tgz", + "integrity": "sha512-DlWzFDJqstqtIVx1zeSpIMLjunf5SmwOw0N2Ck/QSQdS8PLS4+9HrLaYei4w8BIAL7IB/UEDu889d8vhCTPA0w==", "dev": true, "funding": [ { @@ -2931,9 +2931,9 @@ } }, "node_modules/electron-to-chromium": { - "version": "1.5.29", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.29.tgz", - "integrity": "sha512-PF8n2AlIhCKXQ+gTpiJi0VhcHDb69kYX4MtCiivctc2QD3XuNZ/XIOlbGzt7WAjjEev0TtaH6Cu3arZExm5DOw==", + "version": "1.5.41", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.41.tgz", + "integrity": "sha512-dfdv/2xNjX0P8Vzme4cfzHqnPm5xsZXwsolTYr0eyW18IUmNyG08vL+fttvinTfhKfIKdRoqkDIC9e9iWQCNYQ==", "dev": true }, "node_modules/emittery": { @@ -3067,6 +3067,7 @@ "version": "8.57.1", "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.1.tgz", "integrity": "sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==", + "deprecated": "This version is no longer supported. Please see https://eslint.org/version-support for other options.", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", @@ -3555,9 +3556,9 @@ } }, "node_modules/form-data": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", - "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.1.tgz", + "integrity": "sha512-tzN8e4TX8+kkxGPK8D5u0FNmjPUjw3lwC9lSLxxoB/+GtsJG91CO8bSWy73APlgAZzZbXEYZJuxjkHH2w+Ezhw==", "dependencies": { "asynckit": "^0.4.0", "combined-stream": "^1.0.8", @@ -4975,15 +4976,15 @@ "dev": true }, "node_modules/jsesc": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", - "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.0.2.tgz", + "integrity": "sha512-xKqzzWXDttJuOcawBt4KnKHHIf5oQ/Cxax+0PWFG+DFDgHNAdi+TXECADI+RYiFUMmx8792xsMbbgXj4CwnP4g==", "dev": true, "bin": { "jsesc": "bin/jsesc" }, "engines": { - "node": ">=4" + "node": ">=6" } }, "node_modules/json-buffer": { @@ -5663,9 +5664,9 @@ "dev": true }, "node_modules/picocolors": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.0.tgz", - "integrity": "sha512-TQ92mBOW0l3LeMeyLV6mzy/kWr8lkd/hp3mTg7wYK7zJhuBStmGMBG0BdeDZS/dZx1IukaX6Bk11zcln25o1Aw==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", "dev": true }, "node_modules/picomatch": { @@ -6597,9 +6598,9 @@ } }, "node_modules/terser": { - "version": "5.34.0", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.34.0.tgz", - "integrity": "sha512-y5NUX+U9HhVsK/zihZwoq4r9dICLyV2jXGOriDAVOeKhq3LKVjgJbGO90FisozXLlJfvjHqgckGmJFBb9KYoWQ==", + "version": "5.36.0", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.36.0.tgz", + "integrity": "sha512-IYV9eNMuFAV4THUspIRXkLakHnV6XO7FEdtKjf/mDyrnqUg9LnlOn6/RwRvM9SZjR4GUq8Nk8zj67FzVARr74w==", "dev": true, "dependencies": { "@jridgewell/source-map": "^0.3.3", @@ -6774,9 +6775,9 @@ } }, "node_modules/tslib": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.7.0.tgz", - "integrity": "sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA==", + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.0.tgz", + "integrity": "sha512-jWVzBLplnCmoaTr13V9dYbiQ99wvZRd0vNWaDRg+aVYRcjDF3nDksxFDE/+fkXnKhpnUUkmx5pK/v8mCtLVqZA==", "dev": true }, "node_modules/tunnel-agent": { diff --git a/package.json b/package.json index c9f19001e..227bf0521 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@gofynd/fdk-client-javascript", - "version": "1.4.12-beta.1", + "version": "v1.4.15-beta.1", "description": "", "main": "index.js", "scripts": { diff --git a/sdk/application/Order/OrderApplicationModel.d.ts b/sdk/application/Order/OrderApplicationModel.d.ts index 48c495134..48df5a257 100644 --- a/sdk/application/Order/OrderApplicationModel.d.ts +++ b/sdk/application/Order/OrderApplicationModel.d.ts @@ -168,7 +168,12 @@ export = OrderApplicationModel; /** * @typedef Item * @property {string[]} [image] - An array of URLs pointing to images of the item. - * @property {string[]} [l1_categories] - An array of level 1 categories the item belongs. + * @property {string[]} [l1_categories] - An array of level 1 categories to + * which the item belongs. + * @property {string[]} [l2_category] - An array of level 2 categories to which + * the item belongs. + * @property {number} [l2_category_id] - ID representing the level 2 category + * classification of the item * @property {ItemBrand} [brand] * @property {string} [seller_identifier] - The identifier for the seller . * @property {string} [code] - The code or SKU of the item. @@ -1086,9 +1091,20 @@ type Item = { */ image?: string[]; /** - * - An array of level 1 categories the item belongs. + * - An array of level 1 categories to + * which the item belongs. */ l1_categories?: string[]; + /** + * - An array of level 2 categories to which + * the item belongs. + */ + l2_category?: string[]; + /** + * - ID representing the level 2 category + * classification of the item + */ + l2_category_id?: number; brand?: ItemBrand; /** * - The identifier for the seller . diff --git a/sdk/application/Order/OrderApplicationModel.js b/sdk/application/Order/OrderApplicationModel.js index b69fbf50f..8352c4ff0 100644 --- a/sdk/application/Order/OrderApplicationModel.js +++ b/sdk/application/Order/OrderApplicationModel.js @@ -185,7 +185,12 @@ const Joi = require("joi"); /** * @typedef Item * @property {string[]} [image] - An array of URLs pointing to images of the item. - * @property {string[]} [l1_categories] - An array of level 1 categories the item belongs. + * @property {string[]} [l1_categories] - An array of level 1 categories to + * which the item belongs. + * @property {string[]} [l2_category] - An array of level 2 categories to which + * the item belongs. + * @property {number} [l2_category_id] - ID representing the level 2 category + * classification of the item * @property {ItemBrand} [brand] * @property {string} [seller_identifier] - The identifier for the seller . * @property {string} [code] - The code or SKU of the item. @@ -888,6 +893,8 @@ class OrderApplicationModel { return Joi.object({ image: Joi.array().items(Joi.string().allow("")), l1_categories: Joi.array().items(Joi.string().allow("")), + l2_category: Joi.array().items(Joi.string().allow("")), + l2_category_id: Joi.number(), brand: OrderApplicationModel.ItemBrand(), seller_identifier: Joi.string().allow(""), code: Joi.string().allow(""), diff --git a/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts b/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts index c135fd222..7f02e5d53 100644 --- a/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +++ b/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts @@ -23,24 +23,24 @@ 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 createAppCategoryReturnConfiguration * @summary: Create return configuration * @description: Create Category level sales channel 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; + createAppCategoryReturnConfiguration({ body, requestHeaders }?: CatalogPlatformApplicationValidator.CreateAppCategoryReturnConfigurationParam, { responseHeaders }?: object): Promise; /** * @param {CatalogPlatformApplicationValidator.CreateAppReturnConfigurationParam} 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 createAppReturnConfiguration * @summary: Create product return configuration * @description: This allows you to configure all return-related settings, such as is_returnable and return window etc. for sales channel level - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createAppReturnConfiguration/). */ - createAppReturnConfiguration({ body, requestHeaders }?: CatalogPlatformApplicationValidator.CreateAppReturnConfigurationParam, { responseHeaders }?: object): Promise; + createAppReturnConfiguration({ body, requestHeaders }?: CatalogPlatformApplicationValidator.CreateAppReturnConfigurationParam, { responseHeaders }?: object): Promise; /** * @param {CatalogPlatformApplicationValidator.CreateCollectionParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -473,12 +473,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 getApplicationBrandListing * @summary: List sales channel brands * @description: Retrieve brand listings related to the sales channel. A brand is the name under which a product is being sold - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getApplicationBrandListing/). */ - getApplicationBrandListing({ pageNo, pageSize, q, requestHeaders }?: CatalogPlatformApplicationValidator.GetApplicationBrandListingParam, { responseHeaders }?: object): Promise; + getApplicationBrandListing({ pageNo, pageSize, q, requestHeaders }?: CatalogPlatformApplicationValidator.GetApplicationBrandListingParam, { responseHeaders }?: object): Promise; /** * @param {Object} arg - Arg object. * @param {string} arg.companyId - A `company_id` is a unique identifier for @@ -487,9 +488,9 @@ declare class Catalog { * 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} + * @param {string} [arg.q] - Search query with brand name. Use this + * parameter to search brands by brand name. + * @returns {Paginator} * @summary: List sales channel brands * @description: Retrieve brand listings related to the sales channel. A brand is the name under which a product is being sold */ @@ -498,7 +499,7 @@ declare class Catalog { applicationId: string; pageSize?: number; q?: string; - }): Paginator; + }): Paginator; /** * @param {CatalogPlatformApplicationValidator.GetApplicationBrandsParam} arg * - Arg object @@ -508,7 +509,7 @@ declare class Catalog { * @returns {Promise} - Success response * @name getApplicationBrands * @summary: List brands - * @description: List all the brands, and have search capabilities on brand uid, name etc - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getApplicationBrands/). + * @description: List all the brands. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getApplicationBrands/). */ getApplicationBrands({ department, pageNo, pageSize, q, brandId, requestHeaders }?: CatalogPlatformApplicationValidator.GetApplicationBrandsParam, { responseHeaders }?: object): Promise; /** @@ -520,16 +521,16 @@ declare class Catalog { * @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 + * 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 {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 brands - * @description: List all the brands, and have search capabilities on brand uid, name etc + * @description: List all the brands. */ getApplicationBrandsPaginator({ companyId, applicationId, department, pageSize, q, brandId, }?: { companyId: string; @@ -545,12 +546,14 @@ 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 getApplicationCategoryListing * @summary: List sales channel categories * @description: Retrieve category listings related to the sales channel , with the ability to filter results based on department ,category names etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getApplicationCategoryListing/). */ - getApplicationCategoryListing({ departmentId, pageNo, pageSize, q, requestHeaders }?: CatalogPlatformApplicationValidator.GetApplicationCategoryListingParam, { responseHeaders }?: object): Promise; + getApplicationCategoryListing({ departmentId, pageNo, pageSize, q, requestHeaders }?: CatalogPlatformApplicationValidator.GetApplicationCategoryListingParam, { responseHeaders }?: object): Promise; /** * @param {Object} arg - Arg object. * @param {string} arg.companyId - A `company_id` is a unique identifier for @@ -561,9 +564,9 @@ declare class Catalog { * 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} + * @param {string} [arg.q] - A search query string. Use this parameter to + * filter results based on a keyword or specific value. + * @returns {Paginator} * @summary: List sales channel categories * @description: Retrieve category listings related to the sales channel , with the ability to filter results based on department ,category names etc. */ @@ -573,7 +576,7 @@ declare class Catalog { departmentId?: number; pageSize?: number; q?: string; - }): Paginator; + }): Paginator; /** * @param {CatalogPlatformApplicationValidator.GetApplicationDepartmentListingParam} arg * - Arg object @@ -596,8 +599,8 @@ declare class Catalog { * 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. + * @param {string} [arg.q] - A search query string. Use this parameter to + * filter results based on a keyword or specific value. * @returns {Paginator} * @summary: List sales channel departments * @description: Retrieve department listings related to the sales channel. Departments are used to categorize similar products, and you can filter the results based on department names @@ -901,24 +904,24 @@ declare class Catalog { * @param {CatalogPlatformApplicationValidator.UpdateAppBrandParam} 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 updateAppBrand * @summary: Update sales channel brand * @description: Modify data associated to the brand for that particular sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateAppBrand/). */ - updateAppBrand({ brandUid, body, requestHeaders }?: CatalogPlatformApplicationValidator.UpdateAppBrandParam, { responseHeaders }?: object): Promise; + updateAppBrand({ brandUid, body, requestHeaders }?: CatalogPlatformApplicationValidator.UpdateAppBrandParam, { responseHeaders }?: object): Promise; /** * @param {CatalogPlatformApplicationValidator.UpdateAppCategoryParam} 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 updateAppCategory * @summary: Update sales channel category * @description: Modify category data related to the sales channel . - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateAppCategory/). */ - updateAppCategory({ categoryUid, body, requestHeaders }?: CatalogPlatformApplicationValidator.UpdateAppCategoryParam, { responseHeaders }?: object): Promise; + updateAppCategory({ categoryUid, body, requestHeaders }?: CatalogPlatformApplicationValidator.UpdateAppCategoryParam, { responseHeaders }?: object): Promise; /** * @param {CatalogPlatformApplicationValidator.UpdateAppCategoryReturnConfigurationParam} arg * - Arg object @@ -937,46 +940,46 @@ 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 updateAppDepartment * @summary: Update sales channel department * @description: Modify department data associated to the sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateAppDepartment/). */ - updateAppDepartment({ departmentUid, body, requestHeaders }?: CatalogPlatformApplicationValidator.UpdateAppDepartmentParam, { responseHeaders }?: object): Promise; + updateAppDepartment({ departmentUid, body, requestHeaders }?: CatalogPlatformApplicationValidator.UpdateAppDepartmentParam, { responseHeaders }?: object): Promise; /** * @param {CatalogPlatformApplicationValidator.UpdateAppLocationParam} 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 updateAppLocation * @summary: Update sales channel location * @description: Modify location data related to the sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateAppLocation/). */ - updateAppLocation({ storeUid, body, requestHeaders }?: CatalogPlatformApplicationValidator.UpdateAppLocationParam, { responseHeaders }?: object): Promise; + updateAppLocation({ storeUid, body, requestHeaders }?: CatalogPlatformApplicationValidator.UpdateAppLocationParam, { responseHeaders }?: object): Promise; /** * @param {CatalogPlatformApplicationValidator.UpdateAppProductParam} 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 updateAppProduct * @summary: Update sales channel product * @description: Allows to update data associated to a item by its item_id for an sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateAppProduct/). */ - updateAppProduct({ itemId, body, requestHeaders }?: CatalogPlatformApplicationValidator.UpdateAppProductParam, { responseHeaders }?: object): Promise; + updateAppProduct({ itemId, body, requestHeaders }?: CatalogPlatformApplicationValidator.UpdateAppProductParam, { responseHeaders }?: object): Promise; /** * @param {CatalogPlatformApplicationValidator.UpdateAppReturnConfigurationParam} 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 updateAppReturnConfiguration * @summary: Update product return configuration * @description: Update Return configuration level set for an sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateAppReturnConfiguration/). */ - updateAppReturnConfiguration({ body, requestHeaders }?: CatalogPlatformApplicationValidator.UpdateAppReturnConfigurationParam, { responseHeaders }?: object): Promise; + updateAppReturnConfiguration({ body, requestHeaders }?: CatalogPlatformApplicationValidator.UpdateAppReturnConfigurationParam, { responseHeaders }?: object): Promise; /** * @param {CatalogPlatformApplicationValidator.UpdateAutocompleteKeywordParam} arg * - Arg object diff --git a/sdk/platform/Catalog/CatalogPlatformApplicationClient.js b/sdk/platform/Catalog/CatalogPlatformApplicationClient.js index 0a4dd02a5..7fe35317f 100644 --- a/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +++ b/sdk/platform/Catalog/CatalogPlatformApplicationClient.js @@ -106,7 +106,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 createAppCategoryReturnConfiguration * @summary: Create return configuration * @description: Create Category level sales channel Return Configuration setttings - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createAppCategoryReturnConfiguration/). @@ -162,7 +162,7 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.SuccessResponse1().validate(responseData, { + } = CatalogPlatformModel.SuccessResponseObject().validate(responseData, { abortEarly: false, allowUnknown: true, }); @@ -187,7 +187,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 createAppReturnConfiguration * @summary: Create product return configuration * @description: This allows you to configure all return-related settings, such as is_returnable and return window etc. for sales channel level - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createAppReturnConfiguration/). @@ -243,7 +243,7 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.SuccessResponse1().validate(responseData, { + } = CatalogPlatformModel.SuccessResponseObject().validate(responseData, { abortEarly: false, allowUnknown: true, }); @@ -2649,7 +2649,8 @@ class Catalog { * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response + * @returns {Promise} - + * Success response * @name getApplicationBrandListing * @summary: List sales channel brands * @description: Retrieve brand listings related to the sales channel. A brand is the name under which a product is being sold - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getApplicationBrandListing/). @@ -2712,10 +2713,10 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.BrandListingResponse().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); + } = CatalogPlatformModel.ApplicationBrandListingSchema().validate( + responseData, + { abortEarly: false, allowUnknown: true } + ); if (res_error) { if (this.config.options.strictResponseCheck === true) { @@ -2739,9 +2740,9 @@ class Catalog { * 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} + * @param {string} [arg.q] - Search query with brand name. Use this + * parameter to search brands by brand name. + * @returns {Paginator} * @summary: List sales channel brands * @description: Retrieve brand listings related to the sales channel. A brand is the name under which a product is being sold */ @@ -2782,7 +2783,7 @@ class Catalog { * @returns {Promise} - Success response * @name getApplicationBrands * @summary: List brands - * @description: List all the brands, and have search capabilities on brand uid, name etc - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getApplicationBrands/). + * @description: List all the brands. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getApplicationBrands/). */ async getApplicationBrands( { department, pageNo, pageSize, q, brandId, requestHeaders } = { @@ -2878,16 +2879,16 @@ class Catalog { * @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 + * 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 {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 brands - * @description: List all the brands, and have search capabilities on brand uid, name etc + * @description: List all the brands. */ getApplicationBrandsPaginator({ companyId, @@ -2927,7 +2928,9 @@ class Catalog { * * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response + * @returns {Promise} + * - Success response + * * @name getApplicationCategoryListing * @summary: List sales channel categories * @description: Retrieve category listings related to the sales channel , with the ability to filter results based on department ,category names etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getApplicationCategoryListing/). @@ -2995,10 +2998,10 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.BrandListingResponse().validate(responseData, { - abortEarly: false, - allowUnknown: true, - }); + } = CatalogPlatformModel.ApplicationCategoryListingSchema().validate( + responseData, + { abortEarly: false, allowUnknown: true } + ); if (res_error) { if (this.config.options.strictResponseCheck === true) { @@ -3024,9 +3027,9 @@ class Catalog { * 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} + * @param {string} [arg.q] - A search query string. Use this parameter to + * filter results based on a keyword or specific value. + * @returns {Paginator} * @summary: List sales channel categories * @description: Retrieve category listings related to the sales channel , with the ability to filter results based on department ,category names etc. */ @@ -3158,8 +3161,8 @@ class Catalog { * 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. + * @param {string} [arg.q] - A search query string. Use this parameter to + * filter results based on a keyword or specific value. * @returns {Paginator} * @summary: List sales channel departments * @description: Retrieve department listings related to the sales channel. Departments are used to categorize similar products, and you can filter the results based on department names @@ -5025,7 +5028,7 @@ class Catalog { * @param {CatalogPlatformApplicationValidator.UpdateAppBrandParam} 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 updateAppBrand * @summary: Update sales channel brand * @description: Modify data associated to the brand for that particular sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateAppBrand/). @@ -5083,7 +5086,7 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.SuccessResponse1().validate(responseData, { + } = CatalogPlatformModel.SuccessResponseObject().validate(responseData, { abortEarly: false, allowUnknown: true, }); @@ -5108,7 +5111,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 updateAppCategory * @summary: Update sales channel category * @description: Modify category data related to the sales channel . - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateAppCategory/). @@ -5166,7 +5169,7 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.SuccessResponse1().validate(responseData, { + } = CatalogPlatformModel.SuccessResponseObject().validate(responseData, { abortEarly: false, allowUnknown: true, }); @@ -5272,7 +5275,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 updateAppDepartment * @summary: Update sales channel department * @description: Modify department data associated to the sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateAppDepartment/). @@ -5330,7 +5333,7 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.SuccessResponse1().validate(responseData, { + } = CatalogPlatformModel.SuccessResponseObject().validate(responseData, { abortEarly: false, allowUnknown: true, }); @@ -5355,7 +5358,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 updateAppLocation * @summary: Update sales channel location * @description: Modify location data related to the sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateAppLocation/). @@ -5413,7 +5416,7 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.SuccessResponse1().validate(responseData, { + } = CatalogPlatformModel.SuccessResponseObject().validate(responseData, { abortEarly: false, allowUnknown: true, }); @@ -5436,7 +5439,7 @@ class Catalog { * @param {CatalogPlatformApplicationValidator.UpdateAppProductParam} 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 updateAppProduct * @summary: Update sales channel product * @description: Allows to update data associated to a item by its item_id for an sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateAppProduct/). @@ -5494,7 +5497,7 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.SuccessResponse1().validate(responseData, { + } = CatalogPlatformModel.SuccessResponseObject().validate(responseData, { abortEarly: false, allowUnknown: true, }); @@ -5519,7 +5522,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 updateAppReturnConfiguration * @summary: Update product return configuration * @description: Update Return configuration level set for an sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateAppReturnConfiguration/). @@ -5575,7 +5578,7 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.SuccessResponse1().validate(responseData, { + } = CatalogPlatformModel.SuccessResponseObject().validate(responseData, { abortEarly: false, allowUnknown: true, }); diff --git a/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts b/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts index ddfe5ff5a..6734d84fe 100644 --- a/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +++ b/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts @@ -193,7 +193,7 @@ export = CatalogPlatformApplicationValidator; * set of results * @property {number} [pageSize] - Number of items to retrieve in each page. * Default is 12. - * @property {string} [q] - Search query with brand name.Use this parameter to + * @property {string} [q] - Search query with brand name. Use this parameter to * search brands by brand name. */ /** @@ -201,12 +201,12 @@ export = CatalogPlatformApplicationValidator; * @property {string} [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 + * "v1.0/departments/" API * @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 brand name.Use this parameter to + * @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. @@ -219,8 +219,8 @@ export = CatalogPlatformApplicationValidator; * set of results * @property {number} [pageSize] - Number of items to retrieve in each page. * Default is 12. - * @property {string} [q] - Search query with brand name.Use this parameter to - * search brands by brand name. + * @property {string} [q] - A search query string. Use this parameter to filter + * results based on a keyword or specific value. */ /** * @typedef GetApplicationDepartmentListingParam @@ -228,8 +228,8 @@ export = CatalogPlatformApplicationValidator; * set of results * @property {number} [pageSize] - Number of items to retrieve in each page. * Default is 12. - * @property {string} [q] - Search query with brand name.Use this parameter to - * search department by name. + * @property {string} [q] - A search query string. Use this parameter to filter + * results based on a keyword or specific value. */ /** * @typedef GetApplicationFilterKeysParam @@ -263,14 +263,14 @@ export = CatalogPlatformApplicationValidator; /** @typedef GetCatalogConfigurationParam */ /** * @typedef GetCatalogInsightsParam - * @property {string} [brand] - Brand slug + * @property {string} [brand] - Brand slug that is to be searched. */ /** * @typedef GetCategoriesParam * @property {string} [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 + * "v1.0/departments/" API */ /** * @typedef GetCollectionDetailParam @@ -358,12 +358,14 @@ export = CatalogPlatformApplicationValidator; */ /** * @typedef UpdateAppBrandParam - * @property {string} brandUid - Brand id for which the custom_json is associated. + * @property {number} brandUid - A `brand id` is a unique identifier for a + * particular brand. * @property {CatalogPlatformModel.ApplicationBrandJson} body */ /** * @typedef UpdateAppCategoryParam - * @property {string} categoryUid - Category id for which the custom_json is associated. + * @property {string} categoryUid - A `category id` is a unique identifier for a + * particular category. * @property {CatalogPlatformModel.ApplicationCategoryJson} body */ /** @@ -924,7 +926,7 @@ type GetApplicationBrandListingParam = { */ pageSize?: number; /** - * - Search query with brand name.Use this parameter to + * - Search query with brand name. Use this parameter to * search brands by brand name. */ q?: string; @@ -934,7 +936,7 @@ type GetApplicationBrandsParam = { * - 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 + * "v1.0/departments/" API */ department?: string; /** @@ -948,7 +950,7 @@ type GetApplicationBrandsParam = { */ pageSize?: number; /** - * - Search query with brand name.Use this parameter to + * - Search query with brand name. Use this parameter to * search brands by brand name. */ q?: string; @@ -975,8 +977,8 @@ type GetApplicationCategoryListingParam = { */ pageSize?: number; /** - * - Search query with brand name.Use this parameter to - * search brands by brand name. + * - A search query string. Use this parameter to filter + * results based on a keyword or specific value. */ q?: string; }; @@ -992,8 +994,8 @@ type GetApplicationDepartmentListingParam = { */ pageSize?: number; /** - * - Search query with brand name.Use this parameter to - * search department by name. + * - A search query string. Use this parameter to filter + * results based on a keyword or specific value. */ q?: string; }; @@ -1048,7 +1050,7 @@ type GetAutocompleteKeywordDetailParam = { }; type GetCatalogInsightsParam = { /** - * - Brand slug + * - Brand slug that is to be searched. */ brand?: string; }; @@ -1057,7 +1059,7 @@ type GetCategoriesParam = { * - 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 + * "v1.0/departments/" API */ department?: string; }; @@ -1217,14 +1219,16 @@ type UpdateAllowSingleParam = { }; type UpdateAppBrandParam = { /** - * - Brand id for which the custom_json is associated. + * - A `brand id` is a unique identifier for a + * particular brand. */ - brandUid: string; + brandUid: number; body: CatalogPlatformModel.ApplicationBrandJson; }; type UpdateAppCategoryParam = { /** - * - Category id for which the custom_json is associated. + * - A `category id` is a unique identifier for a + * particular category. */ categoryUid: string; body: CatalogPlatformModel.ApplicationCategoryJson; diff --git a/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js b/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js index e4a8d5936..a70b49526 100644 --- a/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +++ b/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js @@ -223,7 +223,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel"); * set of results * @property {number} [pageSize] - Number of items to retrieve in each page. * Default is 12. - * @property {string} [q] - Search query with brand name.Use this parameter to + * @property {string} [q] - Search query with brand name. Use this parameter to * search brands by brand name. */ @@ -232,12 +232,12 @@ const CatalogPlatformModel = require("./CatalogPlatformModel"); * @property {string} [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 + * "v1.0/departments/" API * @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 brand name.Use this parameter to + * @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. @@ -251,8 +251,8 @@ const CatalogPlatformModel = require("./CatalogPlatformModel"); * set of results * @property {number} [pageSize] - Number of items to retrieve in each page. * Default is 12. - * @property {string} [q] - Search query with brand name.Use this parameter to - * search brands by brand name. + * @property {string} [q] - A search query string. Use this parameter to filter + * results based on a keyword or specific value. */ /** @@ -261,8 +261,8 @@ const CatalogPlatformModel = require("./CatalogPlatformModel"); * set of results * @property {number} [pageSize] - Number of items to retrieve in each page. * Default is 12. - * @property {string} [q] - Search query with brand name.Use this parameter to - * search department by name. + * @property {string} [q] - A search query string. Use this parameter to filter + * results based on a keyword or specific value. */ /** @@ -302,7 +302,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel"); /** * @typedef GetCatalogInsightsParam - * @property {string} [brand] - Brand slug + * @property {string} [brand] - Brand slug that is to be searched. */ /** @@ -310,7 +310,7 @@ const CatalogPlatformModel = require("./CatalogPlatformModel"); * @property {string} [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 + * "v1.0/departments/" API */ /** @@ -413,13 +413,15 @@ const CatalogPlatformModel = require("./CatalogPlatformModel"); /** * @typedef UpdateAppBrandParam - * @property {string} brandUid - Brand id for which the custom_json is associated. + * @property {number} brandUid - A `brand id` is a unique identifier for a + * particular brand. * @property {CatalogPlatformModel.ApplicationBrandJson} body */ /** * @typedef UpdateAppCategoryParam - * @property {string} categoryUid - Category id for which the custom_json is associated. + * @property {string} categoryUid - A `category id` is a unique identifier for a + * particular category. * @property {CatalogPlatformModel.ApplicationCategoryJson} body */ @@ -934,7 +936,7 @@ class CatalogPlatformApplicationValidator { /** @returns {UpdateAppBrandParam} */ static updateAppBrand() { return Joi.object({ - brandUid: Joi.string().allow("").required(), + brandUid: Joi.number().required(), body: CatalogPlatformModel.ApplicationBrandJson().required(), }).required(); } diff --git a/sdk/platform/Catalog/CatalogPlatformClient.d.ts b/sdk/platform/Catalog/CatalogPlatformClient.d.ts index 7ddd6f1ea..23c8466f3 100644 --- a/sdk/platform/Catalog/CatalogPlatformClient.d.ts +++ b/sdk/platform/Catalog/CatalogPlatformClient.d.ts @@ -98,12 +98,12 @@ declare class Catalog { * @param {CatalogPlatformValidator.CreateProductParam} 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 createProduct * @summary: Create product * @description: Users can create a product using this API, associating it with the provided company ID - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createProduct/). */ - createProduct({ body, requestHeaders }?: CatalogPlatformValidator.CreateProductParam, { responseHeaders }?: object): Promise; + createProduct({ body, requestHeaders }?: CatalogPlatformValidator.CreateProductParam, { responseHeaders }?: object): Promise; /** * @param {CatalogPlatformValidator.CreateProductAssetsInBulkParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` diff --git a/sdk/platform/Catalog/CatalogPlatformClient.js b/sdk/platform/Catalog/CatalogPlatformClient.js index 8ee9aad75..b3bfe230f 100644 --- a/sdk/platform/Catalog/CatalogPlatformClient.js +++ b/sdk/platform/Catalog/CatalogPlatformClient.js @@ -743,7 +743,7 @@ class Catalog { * @param {CatalogPlatformValidator.CreateProductParam} 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 createProduct * @summary: Create product * @description: Users can create a product using this API, associating it with the provided company ID - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createProduct/). @@ -799,7 +799,7 @@ class Catalog { const { error: res_error, - } = CatalogPlatformModel.SuccessResponse1().validate(responseData, { + } = CatalogPlatformModel.SuccessResponseObject().validate(responseData, { abortEarly: false, allowUnknown: true, }); diff --git a/sdk/platform/Catalog/CatalogPlatformModel.d.ts b/sdk/platform/Catalog/CatalogPlatformModel.d.ts index b26817cc5..2650e1076 100644 --- a/sdk/platform/Catalog/CatalogPlatformModel.d.ts +++ b/sdk/platform/Catalog/CatalogPlatformModel.d.ts @@ -86,11 +86,14 @@ export = CatalogPlatformModel; */ /** * @typedef ApplicationBrandJson - * @property {Object} _custom_json + * @property {Object} _custom_json - A custom JSON object containing additional + * brand-specific configurations or data. The structure is flexible and may + * vary based on application needs. */ /** * @typedef ApplicationCategoryJson - * @property {Object} _custom_json + * @property {Object} _custom_json - A custom JSON object containing additional + * details or configurations specific to the application category. */ /** * @typedef ApplicationDepartment @@ -304,9 +307,12 @@ export = CatalogPlatformModel; */ /** * @typedef BannerImage - * @property {string} [aspect_ratio] - * @property {string} [type] - * @property {string} [url] + * @property {string} [aspect_ratio] - The aspect ratio of the banner image, + * typically represented as a ratio (e.g., '16:9' or '4:3'). + * @property {string} [type] - The type of media, such as 'image' or 'banner', + * indicating the format of the banner. + * @property {string} [url] - The URL where the banner image is located, + * typically a web address pointing to the image resource. */ /** * @typedef BaseAppCategoryReturnConfig @@ -329,25 +335,80 @@ export = CatalogPlatformModel; * @typedef BrandItem * @property {Action} [action] * @property {ImageUrls} [banners] - * @property {string[]} [departments] - * @property {string} [discount] - * @property {Media2} [logo] - * @property {string} [name] - * @property {string} [slug] - * @property {number} [uid] + * @property {string[]} [departments] - An array of department names or + * categories that the brand belongs to, represented as strings. + * @property {string} [discount] - A string representing the discount offered by + * the brand, such as percentage or amount off. + * @property {BrandMedia} [logo] + * @property {string} [name] - The name of the brand. + * @property {string} [slug] - A URL-friendly identifier for the brand, often + * used in website routing. + * @property {number} [uid] - A unique identifier for the brand, typically used + * for internal reference. */ /** * @typedef BrandListingResponse - * @property {BrandItem[]} [items] + * @property {BrandItem[]} [items] - An array of brand items, each containing + * detailed information about the brand, such as action, banners, departments, + * discount, logo, and other related fields. * @property {Page} page */ +/** + * @typedef ApplicationBrandListingItemSchema + * @property {Object} [_custom_json] - Custom JSON object for additional data. + * @property {Object} [_locale_language] - Custom object for locale-specific + * language data. + * @property {string} [brand_banner_portrait_url] - URL of the brand's portrait banner. + * @property {string} [brand_banner_url] - URL of the brand's landscape banner. + * @property {string} [brand_logo_url] - URL of the brand's logo. + * @property {string} [description] - Description of the brand. + * @property {string} [name] - Name of the brand. + * @property {string} [slug_key] - Unique slug key for the brand. + * @property {number} [priority] - Priority of the brand in listing. + * @property {number} [uid] - Unique identifier of the brand. + * @property {string} [created_on] - Timestamp when the category was created. + * @property {string} [last_updated] - Timestamp when the category was created. + * @property {boolean} [is_active] - Indicates if the brand is active. + * @property {number[]} [departments] - List of department IDs associated with the brand. + * @property {string} [modified_on] - Timestamp when the brand was last modified. + * @property {boolean} [active] - Boolean indicating whether the brand is + * currently active or not. + */ +/** + * @typedef ApplicationBrandListingSchema + * @property {ApplicationBrandListingItemSchema[]} [items] + * @property {Page} [page] + */ +/** + * @typedef ApplicationCategoryListingSchema + * @property {ApplicationCategoryListingItemSchema[]} [items] + * @property {Page} [page] + */ +/** + * @typedef ApplicationCategoryListingItemSchema + * @property {string} [name] - Name of the category. + * @property {string} [logo] - URL of the category's logo. + * @property {number[]} [departments] - List of department IDs. + * @property {string} [attr_name] - Attribute name of the category. + * @property {string} [landscape_url] - URL of the landscape banner. + * @property {string} [portrait_url] - URL of the portrait banner. + * @property {Object} [_custom_json] - Custom JSON object for additional data. + * @property {number} [priority] - Priority of the category. + * @property {CreatedBy} [created_by] + * @property {string} [created_on] - Timestamp when the category was created. + * @property {CreatedBy} [modified_by] + * @property {string} [modified_on] - Timestamp when the category was last modified. + * @property {string} [app_id] - Application ID associated with the category. + * @property {boolean} [is_active] - Indicates whether the category is active. + * @property {number} [uid] - Unique identifier of the category. + */ /** * @typedef BrandMeta * @property {number} id * @property {string} name */ /** - * @typedef BrandMeta1 + * @typedef InventoryBrandMeta * @property {number} [id] * @property {string} [name] */ @@ -439,18 +500,25 @@ export = CatalogPlatformModel; */ /** * @typedef CatalogInsightBrand - * @property {number} [article_freshness] - * @property {number} [available_articles] - * @property {number} [available_sizes] - * @property {string} [name] - * @property {number} [total_articles] - * @property {number} [total_sizes] + * @property {number} [article_freshness] - The average freshness of the + * articles based on the time since they were added to the catalog. + * @property {number} [available_articles] - The number of articles that are + * currently available for purchase. + * @property {number} [available_sizes] - The total number of unique sizes + * available across all articles. + * @property {string} [name] - The name of the brand. + * @property {number} [total_articles] - The total number of articles listed + * under the brand. + * @property {number} [total_sizes] - The total number of sizes offered across + * all articles for the brand. */ /** * @typedef CatalogInsightItem - * @property {number} [count] - * @property {number} [out_of_stock_count] - * @property {number} [sellable_count] + * @property {number} [count] - The total number of catalog items available. + * @property {number} [out_of_stock_count] - The number of items that are + * currently out of stock. + * @property {number} [sellable_count] - The number of items that are currently + * sellable (in stock). */ /** * @typedef CatalogInsightResponse @@ -493,6 +561,7 @@ export = CatalogPlatformModel; */ /** * @typedef CategoryItems + * @property {Object} [_custom_json] * @property {Action} [action] * @property {ImageUrls} [banners] * @property {Child[]} [childs] @@ -502,8 +571,12 @@ export = CatalogPlatformModel; */ /** * @typedef CategoryListingResponse - * @property {DepartmentCategoryTree[]} [data] - * @property {DepartmentIdentifier[]} [departments] + * @property {DepartmentCategoryTree[]} [data] - An array containing the + * department category trees, which provide hierarchical information about + * categories and their associated departments. + * @property {DepartmentIdentifier[]} [departments] - An array of department + * identifiers, each providing basic information like name, slug, and unique + * ID for departments within the catalog. */ /** * @typedef CategoryMapping @@ -527,18 +600,22 @@ export = CatalogPlatformModel; */ /** * @typedef Child - * @property {Object} [_custom_json] + * @property {Object} [_custom_json] - Custom JSON object to store additional + * data for the child. * @property {Action} [action] * @property {ImageUrls} [banners] - * @property {SecondLevelChild[]} [childs] - * @property {string} [name] - * @property {string} [slug] - * @property {number} [uid] + * @property {SecondLevelChild[]} [childs] - A list of second-level child + * elements under the current child. + * @property {string} [name] - Name of the child element. + * @property {string} [slug] - Slug or URL-friendly identifier for the child element. + * @property {number} [uid] - Unique identifier for the child element. */ /** * @typedef CollectionBadge - * @property {string} [color] - * @property {string} [text] + * @property {string} [color] - The color of the badge displayed with the + * collection, typically represented as a string (e.g., a hex code or color name). + * @property {string} [text] - The text displayed on the badge, which may + * indicate a label or promotion related to the collection. */ /** * @typedef CollectionBanner @@ -547,26 +624,41 @@ export = CatalogPlatformModel; */ /** * @typedef CollectionCreateResponse - * @property {string} [uid] - * @property {Object} [_schedule] - * @property {boolean} [allow_facets] - * @property {boolean} [allow_sort] - * @property {string} [app_id] - * @property {Object} [badge] + * @property {string} [uid] - Unique identifier for the collection. + * @property {CollectionSchedule} [_schedule] + * @property {boolean} [allow_facets] - Indicates whether facet-based filtering + * is allowed for the collection. + * @property {boolean} [allow_sort] - Indicates whether sorting options are + * allowed for the collection. + * @property {string} [app_id] - The application ID associated with the collection. + * @property {Object} [badge] - Details of the badge associated with the collection. * @property {ImageUrls} [banners] - * @property {Object} [cron] - * @property {string} [description] - * @property {boolean} [is_active] + * @property {string} [description] - A description of the collection. + * @property {boolean} [is_active] - Indicates whether the collection is currently active. * @property {BannerImage} [logo] - * @property {Object} [meta] - * @property {string} [name] - * @property {number} [priority] - * @property {CollectionQuery[]} [query] - * @property {string} [slug] - * @property {string} [sort_on] - * @property {string[]} [tag] - * @property {string} [type] - * @property {string[]} [visible_facets_keys] + * @property {Object} [meta] - Additional metadata related to the collection. + * @property {string} [name] - The name of the collection. + * @property {number} [priority] - The priority level of the collection, used to + * determine its display order. + * @property {CollectionQuery[]} [query] - Query objects that define how the + * collection's items are retrieved or filtered. + * @property {string} [slug] - The URL-friendly identifier for the collection. + * @property {string} [sort_on] - The default sorting order for items in the + * collection, e.g., 'popular'. + * @property {string[]} [tag] - Array of tags associated with the collection for + * categorization and filtering. + * @property {string} [type] - The type of collection, such as 'items' for + * manually added items or 'query' for dynamically fetched items. + * @property {string[]} [visible_facets_keys] - Keys of the facets that are + * visible and can be used for filtering the collection. + * @property {boolean} [published] - Indicates whether the collection is published. + * @property {string[]} [tags] - List of tags associated with the collection. + * @property {Action} [action] + * @property {Object} [_custom_json] - Custom JSON data for additional information. + * @property {Object} [_locale_language] - Locale language settings for the collection. + * @property {SeoDetail} [seo] + * @property {boolean} [is_visible] - Indicates if the collection is visible to users. + * @property {string} [id] - Unique identifier for the collection. */ /** * @typedef CollectionDetailResponse @@ -592,8 +684,11 @@ export = CatalogPlatformModel; */ /** * @typedef CollectionImage - * @property {string} aspect_ratio - * @property {string} url + * @property {string} aspect_ratio - The aspect ratio of the image, typically + * represented as a string (e.g., "16:9" or "4:3") to indicate the + * proportional relationship between the image's width and height. + * @property {string} url - The URL of the image, which provides the location + * where the image is hosted and can be accessed. */ /** * @typedef CollectionItem @@ -612,20 +707,22 @@ export = CatalogPlatformModel; */ /** * @typedef CollectionListingFilter - * @property {CollectionListingFilterTag[]} [tags] - * @property {CollectionListingFilterType[]} [type] + * @property {CollectionListingFilterTag[]} [tags] - A list of tags used to + * filter the collection listing. + * @property {CollectionListingFilterType[]} [type] - A list of types used to + * filter the collection listing. */ /** * @typedef CollectionListingFilterTag - * @property {string} [display] - * @property {boolean} [is_selected] - * @property {string} [name] + * @property {string} [display] - The display name of the tag for the collection listing. + * @property {boolean} [is_selected] - Indicates whether the tag is currently selected. + * @property {string} [name] - The name of the tag. */ /** * @typedef CollectionListingFilterType - * @property {string} [display] - * @property {boolean} [is_selected] - * @property {string} [name] + * @property {string} [display] - The display name of the type for the collection listing. + * @property {boolean} [is_selected] - Indicates whether the type is currently selected. + * @property {string} [name] - The internal name of the type. */ /** * @typedef CollectionQuery @@ -636,11 +733,17 @@ export = CatalogPlatformModel; */ /** * @typedef CollectionSchedule - * @property {string} [cron] - * @property {number} [duration] - * @property {string} [end] - * @property {NextSchedule[]} [next_schedule] - * @property {string} [start] + * @property {string} [cron] - The cron expression that defines the scheduling + * pattern, allowing for tasks or events to be repeated at specific intervals + * (e.g., daily, weekly). + * @property {number} [duration] - The duration in seconds for which the + * collection is active or valid. + * @property {string} [end] - The end date and time for the collection's + * schedule, formatted as a date-time string. + * @property {NextSchedule[]} [next_schedule] - The next set of scheduled times + * when the collection will become active, based on the cron expression. + * @property {string} [start] - The start date and time for the collection's + * schedule, formatted as a date-time string. */ /** * @typedef CompanyBrandDetail @@ -654,7 +757,7 @@ export = CatalogPlatformModel; * @property {number} id */ /** - * @typedef CompanyMeta1 + * @typedef InventoryCompanyMeta * @property {number} [id] */ /** @@ -778,31 +881,45 @@ export = CatalogPlatformModel; */ /** * @typedef CreateCollection - * @property {Object} [_custom_json] - * @property {Object} [_locale_language] + * @property {Object} [_custom_json] - Custom JSON data for the collection, used + * for any additional information. + * @property {Object} [_locale_language] - Locale-specific data for supporting + * multiple languages. * @property {CollectionSchedule} [_schedule] - * @property {boolean} [allow_facets] - * @property {boolean} [allow_sort] - * @property {string} app_id + * @property {boolean} [allow_facets] - Indicates whether facet-based filtering + * is allowed for the collection. + * @property {boolean} [allow_sort] - Indicates whether sorting options are + * allowed for the collection. + * @property {string} app_id - The application ID associated with the collection. * @property {CollectionBadge} [badge] * @property {CollectionBanner} banners - * @property {UserInfo} [created_by] - * @property {string} [description] - * @property {boolean} [is_active] - * @property {boolean} [is_visible] + * @property {UserInfo} [created_by] - Information about the user who created + * the collection. + * @property {string} [description] - A description of the collection. + * @property {boolean} [is_active] - Indicates whether the collection is currently active. + * @property {boolean} [is_visible] - Indicates whether the collection is + * visible to users. * @property {CollectionImage} logo - * @property {Object} [meta] - * @property {UserInfo} [modified_by] - * @property {string} name - * @property {number} [priority] - * @property {boolean} [published] - * @property {CollectionQuery[]} [query] + * @property {Object} [meta] - Additional metadata related to the collection. + * @property {UserInfo} [modified_by] - Information about the user who last + * modified the collection. + * @property {string} name - The name of the collection. + * @property {number} [priority] - The priority level of the collection, used to + * determine its display order. + * @property {boolean} [published] - Indicates whether the collection is + * published and available to users. + * @property {CollectionQuery[]} [query] - Query objects that define how the + * collection's items are retrieved or filtered. * @property {SeoDetail} [seo] - * @property {string} slug - * @property {string} [sort_on] - * @property {string[]} [tags] - * @property {string} type - * @property {string[]} [visible_facets_keys] + * @property {string} slug - The URL-friendly identifier for the collection. + * @property {string} [sort_on] - The default sorting order for items in the + * collection, e.g., 'popular'. + * @property {string[]} [tags] - Array of tags associated with the collection + * for categorization and filtering. + * @property {string} type - The type of collection, either 'items' for manually + * added items or 'query' for dynamically fetched items. + * @property {string[]} [visible_facets_keys] - Keys of the facets that are + * visible and can be used for filtering the collection. */ /** * @typedef CreateSearchConfigurationRequest @@ -893,8 +1010,10 @@ export = CatalogPlatformModel; */ /** * @typedef DepartmentCategoryTree - * @property {string} [department] - * @property {CategoryItems[]} [items] + * @property {string} [department] - The name of the department that this + * category tree belongs to, such as 'Men', 'Women', or 'Electronics'. + * @property {CategoryItems[]} [items] - An array of categories that fall under + * the specified department, each containing details about category items. */ /** * @typedef DepartmentErrorResponse @@ -906,8 +1025,12 @@ export = CatalogPlatformModel; */ /** * @typedef DepartmentIdentifier - * @property {string} [slug] - * @property {number} [uid] + * @property {string} [name] - The name of the department, such as + * 'Electronics', 'Apparel', or 'Home Appliances'. + * @property {string} [slug] - A URL-friendly identifier for the department, + * often used in creating department-specific links or routes. + * @property {number} [uid] - A unique identifier for the department, used to + * distinguish it from other departments in the system. */ /** * @typedef DepartmentResponse @@ -927,7 +1050,7 @@ export = CatalogPlatformModel; * @property {number} width - The width dimension. */ /** - * @typedef DimensionResponse1 + * @typedef InventoryDimensionResponse * @property {number} [height] * @property {number} [length] * @property {string} [unit] @@ -952,11 +1075,12 @@ export = CatalogPlatformModel; */ /** * @typedef ErrorResponse - * @property {string} [code] - * @property {string} [error] - * @property {string} [message] - * @property {Object} [meta] - * @property {number} [status] + * @property {string} [code] - A string representing the specific error code. + * @property {string} [error] - A brief description of the error type. + * @property {string} [message] - A detailed message explaining the error. + * @property {Object} [meta] - Additional metadata or context about the error, + * if available. + * @property {number} [status] - The HTTP status code associated with the error. */ /** * @typedef FilerList @@ -1115,38 +1239,52 @@ export = CatalogPlatformModel; */ /** * @typedef GetCollectionDetailNest - * @property {Object} [_schedule] + * @property {CollectionSchedule} [_schedule] * @property {Action} [action] - * @property {boolean} [allow_facets] - * @property {boolean} [allow_sort] - * @property {string} [app_id] - * @property {Object} [badge] + * @property {boolean} [allow_facets] - Indicates whether facets are allowed for + * filtering the collection. + * @property {boolean} [allow_sort] - Indicates whether sorting options are + * allowed for the collection. + * @property {string} [app_id] - The application ID associated with the collection. + * @property {CollectionBadge} [badge] * @property {ImageUrls} [banners] - * @property {Object} [cron] - * @property {string} [description] - * @property {boolean} [is_active] + * @property {string} [description] - A description of the collection. + * @property {boolean} [is_active] - Indicates whether the collection is currently active. * @property {Media} [logo] - * @property {Object} [meta] - * @property {string} [name] - * @property {number} [priority] - * @property {CollectionQuery[]} [query] - * @property {string} [slug] - * @property {string[]} [tag] - * @property {string} [type] - * @property {string} [uid] - * @property {string[]} [visible_facets_keys] + * @property {Object} [meta] - Additional metadata related to the collection. + * @property {string} [name] - The name of the collection. + * @property {number} [priority] - The priority level of the collection in the + * display list. + * @property {CollectionQuery[]} [query] - Array of queries that define how the + * collection is fetched or filtered. + * @property {string} [slug] - The URL-friendly identifier of the collection. + * @property {string[]} [tag] - Array of tags associated with the collection. + * @property {string} [type] - The type of collection, such as manual or automated. + * @property {string} [uid] - The unique identifier for the collection. + * @property {string[]} [visible_facets_keys] - List of facet keys that are + * visible for filtering the collection. + * @property {string} [_id] - Internal identifier for the collection. + * @property {boolean} [published] - Indicates if the collection is published. + * @property {string[]} [tags] - Tags associated with the collection. + * @property {string} [sort_on] - Sort criteria for the collection. + * @property {Object} [_custom_json] - Custom JSON data for the collection. + * @property {Object} [_locale_language] - Locale-specific language settings. + * @property {SeoDetail} [seo] + * @property {boolean} [is_visible] - Indicates if the collection is visible. */ /** * @typedef GetCollectionItemsResponse - * @property {ProductFilters[]} [filters] - * @property {ProductListingDetail[]} [items] + * @property {ProductFilters[]} [filters] - An array of filters applicable to + * the products in the collection. + * @property {ProductListingDetail[]} [items] - List of product details in the collection. * @property {Page} [page] - * @property {ProductSortOn[]} [sort_on] + * @property {ProductSortOn[]} [sort_on] - Sorting options available for the + * products in the collection. */ /** * @typedef GetCollectionListingResponse * @property {CollectionListingFilter} [filters] - * @property {GetCollectionDetailNest[]} [items] + * @property {GetCollectionDetailNest[]} [items] - Array of nested collection details. * @property {Page} [page] */ /** @@ -1212,12 +1350,12 @@ export = CatalogPlatformModel; */ /** * @typedef GetDepartment - * @property {UserSerializer1} [created_by] + * @property {RequestUserSerializer} [created_by] * @property {string} [created_on] * @property {boolean} [is_active] * @property {string} [item_type] * @property {string} [logo] - * @property {UserSerializer1} [modified_by] + * @property {RequestUserSerializer} [modified_by] * @property {string} [modified_on] * @property {string} [name] * @property {number} [page_no] @@ -1230,24 +1368,24 @@ export = CatalogPlatformModel; */ /** * @typedef GetInventories - * @property {BrandMeta1} [brand] - * @property {CompanyMeta1} [company] + * @property {InventoryBrandMeta} [brand] + * @property {InventoryCompanyMeta} [company] * @property {string} [country_of_origin] - * @property {UserSerializer1} [created_by] + * @property {RequestUserSerializer} [created_by] * @property {DateMeta} [date_meta] - * @property {DimensionResponse1} [dimension] + * @property {InventoryDimensionResponse} [dimension] * @property {string} [expiration_date] * @property {string} [id] * @property {Object} [identifier] * @property {string} [inventory_updated_on] * @property {boolean} [is_set] * @property {number} [item_id] - * @property {ManufacturerResponse1} [manufacturer] - * @property {UserSerializer1} [modified_by] + * @property {InventoryManufacturerResponse} [manufacturer] + * @property {RequestUserSerializer} [modified_by] * @property {Object} [platforms] * @property {PriceArticle} [price] * @property {QuantitiesArticle} [quantities] - * @property {ReturnConfig2} [return_config] + * @property {ReturnConfig} [return_config] * @property {string} [seller_identifier] * @property {string} [size] * @property {string} [stage] @@ -1257,9 +1395,9 @@ export = CatalogPlatformModel; * @property {number} [total_quantity] * @property {string} [trace_id] * @property {boolean} [track_inventory] - * @property {Trader2[]} [trader] + * @property {TraderResponse[]} [trader] * @property {string} [uid] - * @property {WeightResponse1} [weight] + * @property {InventoryWeightResponse} [weight] */ /** * @typedef GetInventoriesResponse @@ -1970,7 +2108,7 @@ export = CatalogPlatformModel; * @property {string} name - The name of the manufacturer. */ /** - * @typedef ManufacturerResponse1 + * @typedef InventoryManufacturerResponse * @property {string} [address] * @property {boolean} [is_default] * @property {string} [name] @@ -1993,6 +2131,15 @@ export = CatalogPlatformModel; * @property {string} [type] * @property {string} [url] */ +/** + * @typedef BrandMedia + * @property {string} [aspect_ratio] - The aspect ratio of the media, typically + * represented as a string like '16:9' or '4:3'. + * @property {string} [type] - The type of media, such as 'image', 'video', or + * 'audio', describing the content format. + * @property {string} [url] - The URL where the media file is hosted, typically + * a link to an image or video resource. + */ /** * @typedef Meta * @property {Object} [headers] @@ -2044,8 +2191,8 @@ export = CatalogPlatformModel; */ /** * @typedef NextSchedule - * @property {string} [end] - * @property {string} [start] + * @property {string} [end] - The end time of the schedule. + * @property {string} [start] - The start time of the schedule. */ /** * @typedef OptInPostRequest @@ -2117,15 +2264,6 @@ export = CatalogPlatformModel; * the filter. * @property {number} [size] - It is the size of each page. */ -/** - * @typedef PageResponse1 - * @property {number} [current] - * @property {boolean} [has_next] - * @property {boolean} [has_previous] - * @property {number} [item_total] - * @property {number} [size] - * @property {string} [type] - */ /** * @typedef PageResponseType * @property {number} current @@ -2755,33 +2893,39 @@ export = CatalogPlatformModel; */ /** * @typedef Sitemap - * @property {number} [priority] - * @property {string} [frequency] + * @property {number} [priority] - Indicates the priority of this URL relative + * to other URLs on the site. A value between 0.0 and 1.0, where 1.0 is the + * highest priority. + * @property {string} [frequency] - How frequently the content at the URL is + * likely to change. */ /** * @typedef ApplicationItemSeoAction - * @property {Object} [page] - * @property {string} type + * @property {Object} [page] - Details of the page associated with this SEO action. + * @property {string} type - Type of action, such as navigation or redirection. */ /** * @typedef ApplicationItemSeoBreadcrumbs - * @property {string} [url] - * @property {ApplicationItemSeoAction[]} [action] + * @property {string} [url] - The URL that this breadcrumb points to. + * @property {ApplicationItemSeoAction[]} [action] - The actions available for + * this breadcrumb, defining what happens when it's clicked or interacted with. */ /** * @typedef ApplicationItemSeoMetaTagItem - * @property {string} key - * @property {string} value + * @property {string} key - The name of the meta tag. + * @property {string} value - The value associated with the meta tag. */ /** * @typedef ApplicationItemSeoMetaTags - * @property {string} title - * @property {ApplicationItemSeoMetaTagItem[]} [items] + * @property {string} title - The title for this set of meta tags. + * @property {ApplicationItemSeoMetaTagItem[]} [items] - A list of meta tag + * items, each defined by key-value pairs. */ /** * @typedef Metatags - * @property {string} [title] - * @property {ApplicationItemSeoMetaTagItem[]} [items] + * @property {string} [title] - The title or heading for the meta tags section. + * @property {ApplicationItemSeoMetaTagItem[]} [items] - An array of meta tag + * items, each consisting of key-value pairs. */ /** * @typedef SizePromotionThreshold @@ -2813,13 +2957,16 @@ export = CatalogPlatformModel; */ /** * @typedef SecondLevelChild - * @property {Object} [_custom_json] + * @property {Object} [_custom_json] - Custom JSON object to store additional + * data for the second-level child. * @property {Action} [action] * @property {ImageUrls} [banners] - * @property {ThirdLevelChild[]} [childs] - * @property {string} [name] - * @property {string} [slug] - * @property {number} [uid] + * @property {ThirdLevelChild[]} [childs] - A list of third-level child elements + * under the second-level child. + * @property {string} [name] - Name of the second-level child element. + * @property {string} [slug] - Slug or URL-friendly identifier for the + * second-level child element. + * @property {number} [uid] - Unique identifier for the second-level child element. */ /** * @typedef SellerPhoneNumber @@ -2828,12 +2975,20 @@ export = CatalogPlatformModel; */ /** * @typedef SeoDetail - * @property {string} [description] - * @property {string} [title] - * @property {Object} [sitemap] - * @property {ApplicationItemSeoBreadcrumbs[]} [breadcrumbs] - * @property {Metatags[]} [meta_tags] - * @property {string} [canonical_url] + * @property {string} [description] - SEO meta description for the item or + * collection. This is used to describe the content for search engines. + * @property {string} [title] - SEO meta title for the item or collection. It is + * used as the title that appears in search results. + * @property {Object} [sitemap] - Information regarding the sitemap + * configuration for the item or collection. + * @property {ApplicationItemSeoBreadcrumbs[]} [breadcrumbs] - List of + * breadcrumbs for navigation, showing the hierarchy of pages leading to the + * current page. + * @property {Metatags[]} [meta_tags] - An array of meta tags, each containing + * key-value pairs for various SEO meta tags used to enhance search visibility. + * @property {string} [canonical_url] - The canonical URL for the item or + * collection, which tells search engines the preferred version of the URL to + * avoid duplicate content issues. */ /** * @typedef SetSize @@ -2920,9 +3075,10 @@ export = CatalogPlatformModel; * @property {boolean} [success] */ /** - * @typedef SuccessResponse1 - * @property {boolean} [success] - * @property {number} [uid] + * @typedef SuccessResponseObject + * @property {boolean} [success] - Indicates whether the operation was successful or not. + * @property {number} [uid] - A unique identifier associated with the successful + * operation. */ /** * @typedef TaxIdentifier @@ -2975,13 +3131,16 @@ export = CatalogPlatformModel; */ /** * @typedef ThirdLevelChild - * @property {Object} [_custom_json] + * @property {Object} [_custom_json] - Custom JSON object to store additional + * data for the third-level child. * @property {Action} [action] * @property {ImageUrls} [banners] - * @property {Object[]} [childs] - * @property {string} [name] - * @property {string} [slug] - * @property {number} [uid] + * @property {Object[]} [childs] - A list of further nested child elements under + * the third-level child (if applicable). + * @property {string} [name] - Name of the third-level child element. + * @property {string} [slug] - Slug or URL-friendly identifier for the + * third-level child element. + * @property {number} [uid] - Unique identifier for the third-level child element. */ /** * @typedef Trader @@ -2996,7 +3155,7 @@ export = CatalogPlatformModel; * @property {string} type */ /** - * @typedef Trader2 + * @typedef TraderResponse * @property {string[]} [address] * @property {string} [name] * @property {string} [type] @@ -3015,7 +3174,7 @@ export = CatalogPlatformModel; * @property {boolean} [is_visible] * @property {CollectionImage} [logo] * @property {Object} [meta] - * @property {string} [modified_by] - User info. + * @property {UserInfo} [modified_by] * @property {string} [name] * @property {number} [priority] * @property {boolean} [published] @@ -3102,7 +3261,7 @@ export = CatalogPlatformModel; * @property {string} [username] - The username of the user. */ /** - * @typedef UserSerializer1 + * @typedef RequestUserSerializer * @property {string} [_id] * @property {string} [contact] * @property {string} [uid] @@ -3161,7 +3320,7 @@ export = CatalogPlatformModel; * @property {string} unit - The unit of weight. */ /** - * @typedef WeightResponse1 + * @typedef InventoryWeightResponse * @property {number} [shipping] * @property {string} [unit] */ @@ -3271,7 +3430,7 @@ export = CatalogPlatformModel; declare class CatalogPlatformModel { } declare namespace CatalogPlatformModel { - export { Action, AllSizes, AllowSingleRequest, AppCatalogConfiguration, AppCategoryReturnConfig, AppCategoryReturnConfigResponse, AppConfiguration, AppConfigurationDetail, AppConfigurationsSort, ApplicationBrandJson, ApplicationCategoryJson, ApplicationDepartment, ApplicationDepartmentJson, ApplicationDepartmentListingResponse, ApplicationItemMOQ, ApplicationItemMeta, ApplicationItemSeoSitemap, 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, FailedRecord, BulkInventoryGetItems, BulkProductJob, BulkJob, BulkProductRequest, BulkResponse, CatalogInsightBrand, CatalogInsightItem, CatalogInsightResponse, CategoriesResponse, Category, CategoryItems, CategoryListingResponse, CategoryMapping, CategoryMappingValues, CategoryResponse, 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, DepartmentErrorResponse, DepartmentIdentifier, DepartmentResponse, DepartmentsResponse, DimensionResponse, DimensionResponse1, Document, EntityConfiguration, ErrorResponse, FilerList, RawProduct, RawProductListingResponse, GTIN, AttributeDetail, GetAddressSerializer, GetAllSizes, GetAppCatalogConfiguration, GetAppCatalogEntityConfiguration, GetAutocompleteWordsData, GetAutocompleteWordsResponse, GetCatalogConfigurationDetailsProduct, GetCatalogConfigurationDetailsSchemaListing, GetCatalogConfigurationMetaData, GetCollectionDetailNest, GetCollectionItemsResponse, GetCollectionListingResponse, GetCollectionQueryOptionResponse, GetCompanySerializer, ConditionItem, DataItem, ValueTypeItem, SortTypeItem, GetConfigMetadataResponse, GetConfigMetadataValues, GetConfigResponse, GetDepartment, GetInventories, GetInventoriesResponse, GetLocationSerializer, GetOptInPlatform, GetProductBundleCreateResponse, GetProductBundleListingResponse, GetProductBundleResponse, GetProducts, GetCollectionDetailResponse, CommonResponseSchemaCollection, GetQueryFiltersKeysResponse, GetQueryFiltersResponse, GetCollectionItemsResponseSchemaV2, Page1, CollectionItemSchemaV2, CollectionItemUpdateSchema, 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, CreateMarketplaceOptinResponse, UserCommon, UserDetail, UserDetail1, UserInfo, UserInfo1, UserSerializer, UserSerializer1, UserSerializer2, UserSerializer3, ValidateIdentifier, ValidateProduct, ValidateSizeGuide, VerifiedBy, WeightResponse, WeightResponse1, CreatedBy, Marketplaces, GetAllMarketplaces, UpdateMarketplaceOptinRequest, UpdateMarketplaceOptinResponse, ActionPage, PageType }; + export { Action, AllSizes, AllowSingleRequest, AppCatalogConfiguration, AppCategoryReturnConfig, AppCategoryReturnConfigResponse, AppConfiguration, AppConfigurationDetail, AppConfigurationsSort, ApplicationBrandJson, ApplicationCategoryJson, ApplicationDepartment, ApplicationDepartmentJson, ApplicationDepartmentListingResponse, ApplicationItemMOQ, ApplicationItemMeta, ApplicationItemSeoSitemap, 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, ApplicationBrandListingItemSchema, ApplicationBrandListingSchema, ApplicationCategoryListingSchema, ApplicationCategoryListingItemSchema, BrandMeta, InventoryBrandMeta, BulkAssetResponse, BulkHsnResponse, BulkHsnUpsert, BulkInventoryGet, FailedRecord, BulkInventoryGetItems, BulkProductJob, BulkJob, BulkProductRequest, BulkResponse, CatalogInsightBrand, CatalogInsightItem, CatalogInsightResponse, CategoriesResponse, Category, CategoryItems, CategoryListingResponse, CategoryMapping, CategoryMappingValues, CategoryResponse, Child, CollectionBadge, CollectionBanner, CollectionCreateResponse, CollectionDetailResponse, CollectionImage, CollectionItem, CollectionItemUpdate, CollectionListingFilter, CollectionListingFilterTag, CollectionListingFilterType, CollectionQuery, CollectionSchedule, CompanyBrandDetail, CompanyMeta, InventoryCompanyMeta, 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, DepartmentErrorResponse, DepartmentIdentifier, DepartmentResponse, DepartmentsResponse, DimensionResponse, InventoryDimensionResponse, Document, EntityConfiguration, ErrorResponse, FilerList, RawProduct, RawProductListingResponse, GTIN, AttributeDetail, GetAddressSerializer, GetAllSizes, GetAppCatalogConfiguration, GetAppCatalogEntityConfiguration, GetAutocompleteWordsData, GetAutocompleteWordsResponse, GetCatalogConfigurationDetailsProduct, GetCatalogConfigurationDetailsSchemaListing, GetCatalogConfigurationMetaData, GetCollectionDetailNest, GetCollectionItemsResponse, GetCollectionListingResponse, GetCollectionQueryOptionResponse, GetCompanySerializer, ConditionItem, DataItem, ValueTypeItem, SortTypeItem, GetConfigMetadataResponse, GetConfigMetadataValues, GetConfigResponse, GetDepartment, GetInventories, GetInventoriesResponse, GetLocationSerializer, GetOptInPlatform, GetProductBundleCreateResponse, GetProductBundleListingResponse, GetProductBundleResponse, GetProducts, GetCollectionDetailResponse, CommonResponseSchemaCollection, GetQueryFiltersKeysResponse, GetQueryFiltersResponse, GetCollectionItemsResponseSchemaV2, Page1, CollectionItemSchemaV2, CollectionItemUpdateSchema, 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, InventoryManufacturerResponse, Media, Media1, Media2, BrandMedia, Meta, MetaDataListingFilterMetaResponse, MetaDataListingFilterResponse, MetaDataListingResponse, MetaDataListingSortMetaResponse, MetaDataListingSortResponse, MetaFields, NetQuantity, NetQuantityResponse, NextSchedule, OptInPostRequest, OptinCompanyBrandDetailsView, OptinCompanyDetail, OptinCompanyMetrics, OptinStoreDetails, OwnerAppItemResponse, PTErrorResponse, Page, PageResponse, 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, SuccessResponseObject, TaxIdentifier, TaxSlab, TeaserTag, TemplateDetails, TemplateValidationData, TemplatesResponse, TemplatesValidationResponse, ThirdLevelChild, Trader, Trader1, TraderResponse, UpdateCollection, UpdateSearchConfigurationRequest, UpdateSearchConfigurationResponse, CreateMarketplaceOptinResponse, UserCommon, UserDetail, UserDetail1, UserInfo, UserInfo1, UserSerializer, RequestUserSerializer, UserSerializer2, UserSerializer3, ValidateIdentifier, ValidateProduct, ValidateSizeGuide, VerifiedBy, WeightResponse, InventoryWeightResponse, CreatedBy, Marketplaces, GetAllMarketplaces, UpdateMarketplaceOptinRequest, UpdateMarketplaceOptinResponse, ActionPage, PageType }; } /** @returns {Action} */ declare function Action(): Action; @@ -3388,11 +3547,20 @@ type AppConfigurationsSort = { /** @returns {ApplicationBrandJson} */ declare function ApplicationBrandJson(): ApplicationBrandJson; type ApplicationBrandJson = { + /** + * - A custom JSON object containing additional + * brand-specific configurations or data. The structure is flexible and may + * vary based on application needs. + */ _custom_json: any; }; /** @returns {ApplicationCategoryJson} */ declare function ApplicationCategoryJson(): ApplicationCategoryJson; type ApplicationCategoryJson = { + /** + * - A custom JSON object containing additional + * details or configurations specific to the application category. + */ _custom_json: any; }; /** @returns {ApplicationDepartment} */ @@ -3702,8 +3870,20 @@ type AutocompleteResult = { /** @returns {BannerImage} */ declare function BannerImage(): BannerImage; type BannerImage = { + /** + * - The aspect ratio of the banner image, + * typically represented as a ratio (e.g., '16:9' or '4:3'). + */ aspect_ratio?: string; + /** + * - The type of media, such as 'image' or 'banner', + * indicating the format of the banner. + */ type?: string; + /** + * - The URL where the banner image is located, + * typically a web address pointing to the image resource. + */ url?: string; }; /** @returns {BaseAppCategoryReturnConfig} */ @@ -3740,28 +3920,192 @@ declare function BrandItem(): BrandItem; type BrandItem = { action?: Action; banners?: ImageUrls; + /** + * - An array of department names or + * categories that the brand belongs to, represented as strings. + */ departments?: string[]; + /** + * - A string representing the discount offered by + * the brand, such as percentage or amount off. + */ discount?: string; - logo?: Media2; + logo?: BrandMedia; + /** + * - The name of the brand. + */ name?: string; + /** + * - A URL-friendly identifier for the brand, often + * used in website routing. + */ slug?: string; + /** + * - A unique identifier for the brand, typically used + * for internal reference. + */ uid?: number; }; /** @returns {BrandListingResponse} */ declare function BrandListingResponse(): BrandListingResponse; type BrandListingResponse = { + /** + * - An array of brand items, each containing + * detailed information about the brand, such as action, banners, departments, + * discount, logo, and other related fields. + */ items?: BrandItem[]; page: Page; }; +/** @returns {ApplicationBrandListingItemSchema} */ +declare function ApplicationBrandListingItemSchema(): ApplicationBrandListingItemSchema; +type ApplicationBrandListingItemSchema = { + /** + * - Custom JSON object for additional data. + */ + _custom_json?: any; + /** + * - Custom object for locale-specific + * language data. + */ + _locale_language?: any; + /** + * - URL of the brand's portrait banner. + */ + brand_banner_portrait_url?: string; + /** + * - URL of the brand's landscape banner. + */ + brand_banner_url?: string; + /** + * - URL of the brand's logo. + */ + brand_logo_url?: string; + /** + * - Description of the brand. + */ + description?: string; + /** + * - Name of the brand. + */ + name?: string; + /** + * - Unique slug key for the brand. + */ + slug_key?: string; + /** + * - Priority of the brand in listing. + */ + priority?: number; + /** + * - Unique identifier of the brand. + */ + uid?: number; + /** + * - Timestamp when the category was created. + */ + created_on?: string; + /** + * - Timestamp when the category was created. + */ + last_updated?: string; + /** + * - Indicates if the brand is active. + */ + is_active?: boolean; + /** + * - List of department IDs associated with the brand. + */ + departments?: number[]; + /** + * - Timestamp when the brand was last modified. + */ + modified_on?: string; + /** + * - Boolean indicating whether the brand is + * currently active or not. + */ + active?: boolean; +}; +/** @returns {ApplicationBrandListingSchema} */ +declare function ApplicationBrandListingSchema(): ApplicationBrandListingSchema; +type ApplicationBrandListingSchema = { + items?: ApplicationBrandListingItemSchema[]; + page?: Page; +}; +/** @returns {ApplicationCategoryListingSchema} */ +declare function ApplicationCategoryListingSchema(): ApplicationCategoryListingSchema; +type ApplicationCategoryListingSchema = { + items?: ApplicationCategoryListingItemSchema[]; + page?: Page; +}; +/** @returns {ApplicationCategoryListingItemSchema} */ +declare function ApplicationCategoryListingItemSchema(): ApplicationCategoryListingItemSchema; +type ApplicationCategoryListingItemSchema = { + /** + * - Name of the category. + */ + name?: string; + /** + * - URL of the category's logo. + */ + logo?: string; + /** + * - List of department IDs. + */ + departments?: number[]; + /** + * - Attribute name of the category. + */ + attr_name?: string; + /** + * - URL of the landscape banner. + */ + landscape_url?: string; + /** + * - URL of the portrait banner. + */ + portrait_url?: string; + /** + * - Custom JSON object for additional data. + */ + _custom_json?: any; + /** + * - Priority of the category. + */ + priority?: number; + created_by?: CreatedBy; + /** + * - Timestamp when the category was created. + */ + created_on?: string; + modified_by?: CreatedBy; + /** + * - Timestamp when the category was last modified. + */ + modified_on?: string; + /** + * - Application ID associated with the category. + */ + app_id?: string; + /** + * - Indicates whether the category is active. + */ + is_active?: boolean; + /** + * - Unique identifier of the category. + */ + uid?: number; +}; /** @returns {BrandMeta} */ declare function BrandMeta(): BrandMeta; type BrandMeta = { id: number; name: string; }; -/** @returns {BrandMeta1} */ -declare function BrandMeta1(): BrandMeta1; -type BrandMeta1 = { +/** @returns {InventoryBrandMeta} */ +declare function InventoryBrandMeta(): InventoryBrandMeta; +type InventoryBrandMeta = { id?: number; name?: string; }; @@ -3897,18 +4241,52 @@ type BulkResponse = { /** @returns {CatalogInsightBrand} */ declare function CatalogInsightBrand(): CatalogInsightBrand; type CatalogInsightBrand = { + /** + * - The average freshness of the + * articles based on the time since they were added to the catalog. + */ article_freshness?: number; + /** + * - The number of articles that are + * currently available for purchase. + */ available_articles?: number; + /** + * - The total number of unique sizes + * available across all articles. + */ available_sizes?: number; + /** + * - The name of the brand. + */ name?: string; + /** + * - The total number of articles listed + * under the brand. + */ total_articles?: number; + /** + * - The total number of sizes offered across + * all articles for the brand. + */ total_sizes?: number; }; /** @returns {CatalogInsightItem} */ declare function CatalogInsightItem(): CatalogInsightItem; type CatalogInsightItem = { + /** + * - The total number of catalog items available. + */ count?: number; + /** + * - The number of items that are + * currently out of stock. + */ out_of_stock_count?: number; + /** + * - The number of items that are currently + * sellable (in stock). + */ sellable_count?: number; }; /** @returns {CatalogInsightResponse} */ @@ -4007,6 +4385,7 @@ type Category = { /** @returns {CategoryItems} */ declare function CategoryItems(): CategoryItems; type CategoryItems = { + _custom_json?: any; action?: Action; banners?: ImageUrls; childs?: Child[]; @@ -4017,7 +4396,17 @@ type CategoryItems = { /** @returns {CategoryListingResponse} */ declare function CategoryListingResponse(): CategoryListingResponse; type CategoryListingResponse = { + /** + * - An array containing the + * department category trees, which provide hierarchical information about + * categories and their associated departments. + */ data?: DepartmentCategoryTree[]; + /** + * - An array of department + * identifiers, each providing basic information like name, slug, and unique + * ID for departments within the catalog. + */ departments?: DepartmentIdentifier[]; }; /** @returns {CategoryMapping} */ @@ -4061,18 +4450,43 @@ type CategoryResponse = { /** @returns {Child} */ declare function Child(): Child; type Child = { + /** + * - Custom JSON object to store additional + * data for the child. + */ _custom_json?: any; action?: Action; banners?: ImageUrls; + /** + * - A list of second-level child + * elements under the current child. + */ childs?: SecondLevelChild[]; + /** + * - Name of the child element. + */ name?: string; + /** + * - Slug or URL-friendly identifier for the child element. + */ slug?: string; + /** + * - Unique identifier for the child element. + */ uid?: number; }; /** @returns {CollectionBadge} */ declare function CollectionBadge(): CollectionBadge; type CollectionBadge = { + /** + * - The color of the badge displayed with the + * collection, typically represented as a string (e.g., a hex code or color name). + */ color?: string; + /** + * - The text displayed on the badge, which may + * indicate a label or promotion related to the collection. + */ text?: string; }; /** @returns {CollectionBanner} */ @@ -4084,26 +4498,107 @@ type CollectionBanner = { /** @returns {CollectionCreateResponse} */ declare function CollectionCreateResponse(): CollectionCreateResponse; type CollectionCreateResponse = { + /** + * - Unique identifier for the collection. + */ uid?: string; - _schedule?: any; + _schedule?: CollectionSchedule; + /** + * - Indicates whether facet-based filtering + * is allowed for the collection. + */ allow_facets?: boolean; + /** + * - Indicates whether sorting options are + * allowed for the collection. + */ allow_sort?: boolean; + /** + * - The application ID associated with the collection. + */ app_id?: string; + /** + * - Details of the badge associated with the collection. + */ badge?: any; banners?: ImageUrls; - cron?: any; + /** + * - A description of the collection. + */ description?: string; + /** + * - Indicates whether the collection is currently active. + */ is_active?: boolean; logo?: BannerImage; + /** + * - Additional metadata related to the collection. + */ meta?: any; + /** + * - The name of the collection. + */ name?: string; + /** + * - The priority level of the collection, used to + * determine its display order. + */ priority?: number; + /** + * - Query objects that define how the + * collection's items are retrieved or filtered. + */ query?: CollectionQuery[]; + /** + * - The URL-friendly identifier for the collection. + */ slug?: string; + /** + * - The default sorting order for items in the + * collection, e.g., 'popular'. + */ sort_on?: string; + /** + * - Array of tags associated with the collection for + * categorization and filtering. + */ tag?: string[]; + /** + * - The type of collection, such as 'items' for + * manually added items or 'query' for dynamically fetched items. + */ type?: string; + /** + * - Keys of the facets that are + * visible and can be used for filtering the collection. + */ visible_facets_keys?: string[]; + /** + * - Indicates whether the collection is published. + */ + published?: boolean; + /** + * - List of tags associated with the collection. + */ + tags?: string[]; + action?: Action; + /** + * - Custom JSON data for additional information. + */ + _custom_json?: any; + /** + * - Locale language settings for the collection. + */ + _locale_language?: any; + seo?: SeoDetail; + /** + * - Indicates if the collection is visible to users. + */ + is_visible?: boolean; + /** + * - Unique identifier for the collection. + */ + id?: string; }; /** @returns {CollectionDetailResponse} */ declare function CollectionDetailResponse(): CollectionDetailResponse; @@ -4131,7 +4626,16 @@ type CollectionDetailResponse = { /** @returns {CollectionImage} */ declare function CollectionImage(): CollectionImage; type CollectionImage = { + /** + * - The aspect ratio of the image, typically + * represented as a string (e.g., "16:9" or "4:3") to indicate the + * proportional relationship between the image's width and height. + */ aspect_ratio: string; + /** + * - The URL of the image, which provides the location + * where the image is hosted and can be accessed. + */ url: string; }; /** @returns {CollectionItem} */ @@ -4154,21 +4658,47 @@ type CollectionItemUpdate = { /** @returns {CollectionListingFilter} */ declare function CollectionListingFilter(): CollectionListingFilter; type CollectionListingFilter = { + /** + * - A list of tags used to + * filter the collection listing. + */ tags?: CollectionListingFilterTag[]; + /** + * - A list of types used to + * filter the collection listing. + */ type?: CollectionListingFilterType[]; }; /** @returns {CollectionListingFilterTag} */ declare function CollectionListingFilterTag(): CollectionListingFilterTag; type CollectionListingFilterTag = { + /** + * - The display name of the tag for the collection listing. + */ display?: string; + /** + * - Indicates whether the tag is currently selected. + */ is_selected?: boolean; + /** + * - The name of the tag. + */ name?: string; }; /** @returns {CollectionListingFilterType} */ declare function CollectionListingFilterType(): CollectionListingFilterType; type CollectionListingFilterType = { + /** + * - The display name of the type for the collection listing. + */ display?: string; + /** + * - Indicates whether the type is currently selected. + */ is_selected?: boolean; + /** + * - The internal name of the type. + */ name?: string; }; /** @returns {CollectionQuery} */ @@ -4191,10 +4721,31 @@ type CollectionQuery = { /** @returns {CollectionSchedule} */ declare function CollectionSchedule(): CollectionSchedule; type CollectionSchedule = { + /** + * - The cron expression that defines the scheduling + * pattern, allowing for tasks or events to be repeated at specific intervals + * (e.g., daily, weekly). + */ cron?: string; + /** + * - The duration in seconds for which the + * collection is active or valid. + */ duration?: number; + /** + * - The end date and time for the collection's + * schedule, formatted as a date-time string. + */ end?: string; + /** + * - The next set of scheduled times + * when the collection will become active, based on the cron expression. + */ next_schedule?: NextSchedule[]; + /** + * - The start date and time for the collection's + * schedule, formatted as a date-time string. + */ start?: string; }; /** @returns {CompanyBrandDetail} */ @@ -4210,9 +4761,9 @@ declare function CompanyMeta(): CompanyMeta; type CompanyMeta = { id: number; }; -/** @returns {CompanyMeta1} */ -declare function CompanyMeta1(): CompanyMeta1; -type CompanyMeta1 = { +/** @returns {InventoryCompanyMeta} */ +declare function InventoryCompanyMeta(): InventoryCompanyMeta; +type InventoryCompanyMeta = { id?: number; }; /** @returns {CompanyOptIn} */ @@ -4354,30 +4905,104 @@ type CreateAutocompleteWordsResponse = { /** @returns {CreateCollection} */ declare function CreateCollection(): CreateCollection; type CreateCollection = { + /** + * - Custom JSON data for the collection, used + * for any additional information. + */ _custom_json?: any; + /** + * - Locale-specific data for supporting + * multiple languages. + */ _locale_language?: any; _schedule?: CollectionSchedule; + /** + * - Indicates whether facet-based filtering + * is allowed for the collection. + */ allow_facets?: boolean; + /** + * - Indicates whether sorting options are + * allowed for the collection. + */ allow_sort?: boolean; + /** + * - The application ID associated with the collection. + */ app_id: string; badge?: CollectionBadge; banners: CollectionBanner; + /** + * - Information about the user who created + * the collection. + */ created_by?: UserInfo; + /** + * - A description of the collection. + */ description?: string; + /** + * - Indicates whether the collection is currently active. + */ is_active?: boolean; + /** + * - Indicates whether the collection is + * visible to users. + */ is_visible?: boolean; logo: CollectionImage; + /** + * - Additional metadata related to the collection. + */ meta?: any; + /** + * - Information about the user who last + * modified the collection. + */ modified_by?: UserInfo; + /** + * - The name of the collection. + */ name: string; + /** + * - The priority level of the collection, used to + * determine its display order. + */ priority?: number; + /** + * - Indicates whether the collection is + * published and available to users. + */ published?: boolean; + /** + * - Query objects that define how the + * collection's items are retrieved or filtered. + */ query?: CollectionQuery[]; seo?: SeoDetail; + /** + * - The URL-friendly identifier for the collection. + */ slug: string; + /** + * - The default sorting order for items in the + * collection, e.g., 'popular'. + */ sort_on?: string; + /** + * - Array of tags associated with the collection + * for categorization and filtering. + */ tags?: string[]; + /** + * - The type of collection, either 'items' for manually + * added items or 'query' for dynamically fetched items. + */ type: string; + /** + * - Keys of the facets that are + * visible and can be used for filtering the collection. + */ visible_facets_keys?: string[]; }; /** @returns {CreateSearchConfigurationRequest} */ @@ -4528,7 +5153,15 @@ type Department = { /** @returns {DepartmentCategoryTree} */ declare function DepartmentCategoryTree(): DepartmentCategoryTree; type DepartmentCategoryTree = { + /** + * - The name of the department that this + * category tree belongs to, such as 'Men', 'Women', or 'Electronics'. + */ department?: string; + /** + * - An array of categories that fall under + * the specified department, each containing details about category items. + */ items?: CategoryItems[]; }; /** @returns {DepartmentErrorResponse} */ @@ -4543,7 +5176,20 @@ type DepartmentErrorResponse = { /** @returns {DepartmentIdentifier} */ declare function DepartmentIdentifier(): DepartmentIdentifier; type DepartmentIdentifier = { + /** + * - The name of the department, such as + * 'Electronics', 'Apparel', or 'Home Appliances'. + */ + name?: string; + /** + * - A URL-friendly identifier for the department, + * often used in creating department-specific links or routes. + */ slug?: string; + /** + * - A unique identifier for the department, used to + * distinguish it from other departments in the system. + */ uid?: number; }; /** @returns {DepartmentResponse} */ @@ -4581,9 +5227,9 @@ type DimensionResponse = { */ width: number; }; -/** @returns {DimensionResponse1} */ -declare function DimensionResponse1(): DimensionResponse1; -type DimensionResponse1 = { +/** @returns {InventoryDimensionResponse} */ +declare function InventoryDimensionResponse(): InventoryDimensionResponse; +type InventoryDimensionResponse = { height?: number; length?: number; unit?: string; @@ -4611,10 +5257,26 @@ type EntityConfiguration = { /** @returns {ErrorResponse} */ declare function ErrorResponse(): ErrorResponse; type ErrorResponse = { + /** + * - A string representing the specific error code. + */ code?: string; + /** + * - A brief description of the error type. + */ error?: string; + /** + * - A detailed message explaining the error. + */ message?: string; + /** + * - Additional metadata or context about the error, + * if available. + */ meta?: any; + /** + * - The HTTP status code associated with the error. + */ status?: number; }; /** @returns {FilerList} */ @@ -4789,39 +5451,128 @@ type GetCatalogConfigurationMetaData = { /** @returns {GetCollectionDetailNest} */ declare function GetCollectionDetailNest(): GetCollectionDetailNest; type GetCollectionDetailNest = { - _schedule?: any; + _schedule?: CollectionSchedule; action?: Action; + /** + * - Indicates whether facets are allowed for + * filtering the collection. + */ allow_facets?: boolean; + /** + * - Indicates whether sorting options are + * allowed for the collection. + */ allow_sort?: boolean; + /** + * - The application ID associated with the collection. + */ app_id?: string; - badge?: any; + badge?: CollectionBadge; banners?: ImageUrls; - cron?: any; + /** + * - A description of the collection. + */ description?: string; + /** + * - Indicates whether the collection is currently active. + */ is_active?: boolean; logo?: Media; + /** + * - Additional metadata related to the collection. + */ meta?: any; + /** + * - The name of the collection. + */ name?: string; + /** + * - The priority level of the collection in the + * display list. + */ priority?: number; + /** + * - Array of queries that define how the + * collection is fetched or filtered. + */ query?: CollectionQuery[]; + /** + * - The URL-friendly identifier of the collection. + */ slug?: string; + /** + * - Array of tags associated with the collection. + */ tag?: string[]; + /** + * - The type of collection, such as manual or automated. + */ type?: string; + /** + * - The unique identifier for the collection. + */ uid?: string; + /** + * - List of facet keys that are + * visible for filtering the collection. + */ visible_facets_keys?: string[]; + /** + * - Internal identifier for the collection. + */ + _id?: string; + /** + * - Indicates if the collection is published. + */ + published?: boolean; + /** + * - Tags associated with the collection. + */ + tags?: string[]; + /** + * - Sort criteria for the collection. + */ + sort_on?: string; + /** + * - Custom JSON data for the collection. + */ + _custom_json?: any; + /** + * - Locale-specific language settings. + */ + _locale_language?: any; + seo?: SeoDetail; + /** + * - Indicates if the collection is visible. + */ + is_visible?: boolean; }; /** @returns {GetCollectionItemsResponse} */ declare function GetCollectionItemsResponse(): GetCollectionItemsResponse; type GetCollectionItemsResponse = { + /** + * - An array of filters applicable to + * the products in the collection. + */ filters?: ProductFilters[]; + /** + * - List of product details in the collection. + */ items?: ProductListingDetail[]; page?: Page; + /** + * - Sorting options available for the + * products in the collection. + */ sort_on?: ProductSortOn[]; }; /** @returns {GetCollectionListingResponse} */ declare function GetCollectionListingResponse(): GetCollectionListingResponse; type GetCollectionListingResponse = { filters?: CollectionListingFilter; + /** + * - Array of nested collection details. + */ items?: GetCollectionDetailNest[]; page?: Page; }; @@ -4898,12 +5649,12 @@ type GetConfigResponse = { /** @returns {GetDepartment} */ declare function GetDepartment(): GetDepartment; type GetDepartment = { - created_by?: UserSerializer1; + created_by?: RequestUserSerializer; created_on?: string; is_active?: boolean; item_type?: string; logo?: string; - modified_by?: UserSerializer1; + modified_by?: RequestUserSerializer; modified_on?: string; name?: string; page_no?: number; @@ -4917,24 +5668,24 @@ type GetDepartment = { /** @returns {GetInventories} */ declare function GetInventories(): GetInventories; type GetInventories = { - brand?: BrandMeta1; - company?: CompanyMeta1; + brand?: InventoryBrandMeta; + company?: InventoryCompanyMeta; country_of_origin?: string; - created_by?: UserSerializer1; + created_by?: RequestUserSerializer; date_meta?: DateMeta; - dimension?: DimensionResponse1; + dimension?: InventoryDimensionResponse; expiration_date?: string; id?: string; identifier?: any; inventory_updated_on?: string; is_set?: boolean; item_id?: number; - manufacturer?: ManufacturerResponse1; - modified_by?: UserSerializer1; + manufacturer?: InventoryManufacturerResponse; + modified_by?: RequestUserSerializer; platforms?: any; price?: PriceArticle; quantities?: QuantitiesArticle; - return_config?: ReturnConfig2; + return_config?: ReturnConfig; seller_identifier?: string; size?: string; stage?: string; @@ -4944,9 +5695,9 @@ type GetInventories = { total_quantity?: number; trace_id?: string; track_inventory?: boolean; - trader?: Trader2[]; + trader?: TraderResponse[]; uid?: string; - weight?: WeightResponse1; + weight?: InventoryWeightResponse; }; /** @returns {GetInventoriesResponse} */ declare function GetInventoriesResponse(): GetInventoriesResponse; @@ -6235,9 +6986,9 @@ type ManufacturerResponse = { */ name: string; }; -/** @returns {ManufacturerResponse1} */ -declare function ManufacturerResponse1(): ManufacturerResponse1; -type ManufacturerResponse1 = { +/** @returns {InventoryManufacturerResponse} */ +declare function InventoryManufacturerResponse(): InventoryManufacturerResponse; +type InventoryManufacturerResponse = { address?: string; is_default?: boolean; name?: string; @@ -6272,6 +7023,25 @@ type Media2 = { type?: string; url?: string; }; +/** @returns {BrandMedia} */ +declare function BrandMedia(): BrandMedia; +type BrandMedia = { + /** + * - The aspect ratio of the media, typically + * represented as a string like '16:9' or '4:3'. + */ + aspect_ratio?: string; + /** + * - The type of media, such as 'image', 'video', or + * 'audio', describing the content format. + */ + type?: string; + /** + * - The URL where the media file is hosted, typically + * a link to an image or video resource. + */ + url?: string; +}; /** @returns {Meta} */ declare function Meta(): Meta; type Meta = { @@ -6345,7 +7115,13 @@ type NetQuantityResponse = { /** @returns {NextSchedule} */ declare function NextSchedule(): NextSchedule; type NextSchedule = { + /** + * - The end time of the schedule. + */ end?: string; + /** + * - The start time of the schedule. + */ start?: string; }; /** @returns {OptInPostRequest} */ @@ -6469,16 +7245,6 @@ type PageResponse = { */ size?: number; }; -/** @returns {PageResponse1} */ -declare function PageResponse1(): PageResponse1; -type PageResponse1 = { - current?: number; - has_next?: boolean; - has_previous?: boolean; - item_total?: number; - size?: number; - type?: string; -}; /** @returns {PageResponseType} */ declare function PageResponseType(): PageResponseType; type PageResponseType = { @@ -7258,37 +8024,79 @@ type ReturnConfigResponse = { /** @returns {Sitemap} */ declare function Sitemap(): Sitemap; type Sitemap = { + /** + * - Indicates the priority of this URL relative + * to other URLs on the site. A value between 0.0 and 1.0, where 1.0 is the + * highest priority. + */ priority?: number; + /** + * - How frequently the content at the URL is + * likely to change. + */ frequency?: string; }; /** @returns {ApplicationItemSeoAction} */ declare function ApplicationItemSeoAction(): ApplicationItemSeoAction; type ApplicationItemSeoAction = { + /** + * - Details of the page associated with this SEO action. + */ page?: any; + /** + * - Type of action, such as navigation or redirection. + */ type: string; }; /** @returns {ApplicationItemSeoBreadcrumbs} */ declare function ApplicationItemSeoBreadcrumbs(): ApplicationItemSeoBreadcrumbs; type ApplicationItemSeoBreadcrumbs = { + /** + * - The URL that this breadcrumb points to. + */ url?: string; + /** + * - The actions available for + * this breadcrumb, defining what happens when it's clicked or interacted with. + */ action?: ApplicationItemSeoAction[]; }; /** @returns {ApplicationItemSeoMetaTagItem} */ declare function ApplicationItemSeoMetaTagItem(): ApplicationItemSeoMetaTagItem; type ApplicationItemSeoMetaTagItem = { + /** + * - The name of the meta tag. + */ key: string; + /** + * - The value associated with the meta tag. + */ value: string; }; /** @returns {ApplicationItemSeoMetaTags} */ declare function ApplicationItemSeoMetaTags(): ApplicationItemSeoMetaTags; type ApplicationItemSeoMetaTags = { + /** + * - The title for this set of meta tags. + */ title: string; + /** + * - A list of meta tag + * items, each defined by key-value pairs. + */ items?: ApplicationItemSeoMetaTagItem[]; }; /** @returns {Metatags} */ declare function Metatags(): Metatags; type Metatags = { + /** + * - The title or heading for the meta tags section. + */ title?: string; + /** + * - An array of meta tag + * items, each consisting of key-value pairs. + */ items?: ApplicationItemSeoMetaTagItem[]; }; /** @returns {SizePromotionThreshold} */ @@ -7335,12 +8143,30 @@ type SearchableAttribute = { /** @returns {SecondLevelChild} */ declare function SecondLevelChild(): SecondLevelChild; type SecondLevelChild = { + /** + * - Custom JSON object to store additional + * data for the second-level child. + */ _custom_json?: any; action?: Action; banners?: ImageUrls; + /** + * - A list of third-level child elements + * under the second-level child. + */ childs?: ThirdLevelChild[]; + /** + * - Name of the second-level child element. + */ name?: string; + /** + * - Slug or URL-friendly identifier for the + * second-level child element. + */ slug?: string; + /** + * - Unique identifier for the second-level child element. + */ uid?: number; }; /** @returns {SellerPhoneNumber} */ @@ -7352,11 +8178,37 @@ type SellerPhoneNumber = { /** @returns {SeoDetail} */ declare function SeoDetail(): SeoDetail; type SeoDetail = { + /** + * - SEO meta description for the item or + * collection. This is used to describe the content for search engines. + */ description?: string; + /** + * - SEO meta title for the item or collection. It is + * used as the title that appears in search results. + */ title?: string; + /** + * - Information regarding the sitemap + * configuration for the item or collection. + */ sitemap?: any; + /** + * - List of + * breadcrumbs for navigation, showing the hierarchy of pages leading to the + * current page. + */ breadcrumbs?: ApplicationItemSeoBreadcrumbs[]; + /** + * - An array of meta tags, each containing + * key-value pairs for various SEO meta tags used to enhance search visibility. + */ meta_tags?: Metatags[]; + /** + * - The canonical URL for the item or + * collection, which tells search engines the preferred version of the URL to + * avoid duplicate content issues. + */ canonical_url?: string; }; /** @returns {SetSize} */ @@ -7453,10 +8305,17 @@ declare function SuccessResponse(): SuccessResponse; type SuccessResponse = { success?: boolean; }; -/** @returns {SuccessResponse1} */ -declare function SuccessResponse1(): SuccessResponse1; -type SuccessResponse1 = { +/** @returns {SuccessResponseObject} */ +declare function SuccessResponseObject(): SuccessResponseObject; +type SuccessResponseObject = { + /** + * - Indicates whether the operation was successful or not. + */ success?: boolean; + /** + * - A unique identifier associated with the successful + * operation. + */ uid?: number; }; /** @returns {TaxIdentifier} */ @@ -7518,12 +8377,30 @@ type TemplatesValidationResponse = { /** @returns {ThirdLevelChild} */ declare function ThirdLevelChild(): ThirdLevelChild; type ThirdLevelChild = { + /** + * - Custom JSON object to store additional + * data for the third-level child. + */ _custom_json?: any; action?: Action; banners?: ImageUrls; + /** + * - A list of further nested child elements under + * the third-level child (if applicable). + */ childs?: any[]; + /** + * - Name of the third-level child element. + */ name?: string; + /** + * - Slug or URL-friendly identifier for the + * third-level child element. + */ slug?: string; + /** + * - Unique identifier for the third-level child element. + */ uid?: number; }; /** @returns {Trader} */ @@ -7540,9 +8417,9 @@ type Trader1 = { name: string; type: string; }; -/** @returns {Trader2} */ -declare function Trader2(): Trader2; -type Trader2 = { +/** @returns {TraderResponse} */ +declare function TraderResponse(): TraderResponse; +type TraderResponse = { address?: string[]; name?: string; type?: string; @@ -7562,10 +8439,7 @@ type UpdateCollection = { is_visible?: boolean; logo?: CollectionImage; meta?: any; - /** - * - User info. - */ - modified_by?: string; + modified_by?: UserInfo; name?: string; priority?: number; published?: boolean; @@ -7720,9 +8594,9 @@ type UserSerializer = { */ username?: string; }; -/** @returns {UserSerializer1} */ -declare function UserSerializer1(): UserSerializer1; -type UserSerializer1 = { +/** @returns {RequestUserSerializer} */ +declare function RequestUserSerializer(): RequestUserSerializer; +type RequestUserSerializer = { _id?: string; contact?: string; uid?: string; @@ -7796,9 +8670,9 @@ type WeightResponse = { */ unit: string; }; -/** @returns {WeightResponse1} */ -declare function WeightResponse1(): WeightResponse1; -type WeightResponse1 = { +/** @returns {InventoryWeightResponse} */ +declare function InventoryWeightResponse(): InventoryWeightResponse; +type InventoryWeightResponse = { shipping?: number; unit?: string; }; diff --git a/sdk/platform/Catalog/CatalogPlatformModel.js b/sdk/platform/Catalog/CatalogPlatformModel.js index d6108cc9a..22e785c9f 100644 --- a/sdk/platform/Catalog/CatalogPlatformModel.js +++ b/sdk/platform/Catalog/CatalogPlatformModel.js @@ -96,12 +96,15 @@ const Joi = require("joi"); /** * @typedef ApplicationBrandJson - * @property {Object} _custom_json + * @property {Object} _custom_json - A custom JSON object containing additional + * brand-specific configurations or data. The structure is flexible and may + * vary based on application needs. */ /** * @typedef ApplicationCategoryJson - * @property {Object} _custom_json + * @property {Object} _custom_json - A custom JSON object containing additional + * details or configurations specific to the application category. */ /** @@ -344,9 +347,12 @@ const Joi = require("joi"); /** * @typedef BannerImage - * @property {string} [aspect_ratio] - * @property {string} [type] - * @property {string} [url] + * @property {string} [aspect_ratio] - The aspect ratio of the banner image, + * typically represented as a ratio (e.g., '16:9' or '4:3'). + * @property {string} [type] - The type of media, such as 'image' or 'banner', + * indicating the format of the banner. + * @property {string} [url] - The URL where the banner image is located, + * typically a web address pointing to the image resource. */ /** @@ -373,20 +379,79 @@ const Joi = require("joi"); * @typedef BrandItem * @property {Action} [action] * @property {ImageUrls} [banners] - * @property {string[]} [departments] - * @property {string} [discount] - * @property {Media2} [logo] - * @property {string} [name] - * @property {string} [slug] - * @property {number} [uid] + * @property {string[]} [departments] - An array of department names or + * categories that the brand belongs to, represented as strings. + * @property {string} [discount] - A string representing the discount offered by + * the brand, such as percentage or amount off. + * @property {BrandMedia} [logo] + * @property {string} [name] - The name of the brand. + * @property {string} [slug] - A URL-friendly identifier for the brand, often + * used in website routing. + * @property {number} [uid] - A unique identifier for the brand, typically used + * for internal reference. */ /** * @typedef BrandListingResponse - * @property {BrandItem[]} [items] + * @property {BrandItem[]} [items] - An array of brand items, each containing + * detailed information about the brand, such as action, banners, departments, + * discount, logo, and other related fields. * @property {Page} page */ +/** + * @typedef ApplicationBrandListingItemSchema + * @property {Object} [_custom_json] - Custom JSON object for additional data. + * @property {Object} [_locale_language] - Custom object for locale-specific + * language data. + * @property {string} [brand_banner_portrait_url] - URL of the brand's portrait banner. + * @property {string} [brand_banner_url] - URL of the brand's landscape banner. + * @property {string} [brand_logo_url] - URL of the brand's logo. + * @property {string} [description] - Description of the brand. + * @property {string} [name] - Name of the brand. + * @property {string} [slug_key] - Unique slug key for the brand. + * @property {number} [priority] - Priority of the brand in listing. + * @property {number} [uid] - Unique identifier of the brand. + * @property {string} [created_on] - Timestamp when the category was created. + * @property {string} [last_updated] - Timestamp when the category was created. + * @property {boolean} [is_active] - Indicates if the brand is active. + * @property {number[]} [departments] - List of department IDs associated with the brand. + * @property {string} [modified_on] - Timestamp when the brand was last modified. + * @property {boolean} [active] - Boolean indicating whether the brand is + * currently active or not. + */ + +/** + * @typedef ApplicationBrandListingSchema + * @property {ApplicationBrandListingItemSchema[]} [items] + * @property {Page} [page] + */ + +/** + * @typedef ApplicationCategoryListingSchema + * @property {ApplicationCategoryListingItemSchema[]} [items] + * @property {Page} [page] + */ + +/** + * @typedef ApplicationCategoryListingItemSchema + * @property {string} [name] - Name of the category. + * @property {string} [logo] - URL of the category's logo. + * @property {number[]} [departments] - List of department IDs. + * @property {string} [attr_name] - Attribute name of the category. + * @property {string} [landscape_url] - URL of the landscape banner. + * @property {string} [portrait_url] - URL of the portrait banner. + * @property {Object} [_custom_json] - Custom JSON object for additional data. + * @property {number} [priority] - Priority of the category. + * @property {CreatedBy} [created_by] + * @property {string} [created_on] - Timestamp when the category was created. + * @property {CreatedBy} [modified_by] + * @property {string} [modified_on] - Timestamp when the category was last modified. + * @property {string} [app_id] - Application ID associated with the category. + * @property {boolean} [is_active] - Indicates whether the category is active. + * @property {number} [uid] - Unique identifier of the category. + */ + /** * @typedef BrandMeta * @property {number} id @@ -394,7 +459,7 @@ const Joi = require("joi"); */ /** - * @typedef BrandMeta1 + * @typedef InventoryBrandMeta * @property {number} [id] * @property {string} [name] */ @@ -497,19 +562,26 @@ const Joi = require("joi"); /** * @typedef CatalogInsightBrand - * @property {number} [article_freshness] - * @property {number} [available_articles] - * @property {number} [available_sizes] - * @property {string} [name] - * @property {number} [total_articles] - * @property {number} [total_sizes] + * @property {number} [article_freshness] - The average freshness of the + * articles based on the time since they were added to the catalog. + * @property {number} [available_articles] - The number of articles that are + * currently available for purchase. + * @property {number} [available_sizes] - The total number of unique sizes + * available across all articles. + * @property {string} [name] - The name of the brand. + * @property {number} [total_articles] - The total number of articles listed + * under the brand. + * @property {number} [total_sizes] - The total number of sizes offered across + * all articles for the brand. */ /** * @typedef CatalogInsightItem - * @property {number} [count] - * @property {number} [out_of_stock_count] - * @property {number} [sellable_count] + * @property {number} [count] - The total number of catalog items available. + * @property {number} [out_of_stock_count] - The number of items that are + * currently out of stock. + * @property {number} [sellable_count] - The number of items that are currently + * sellable (in stock). */ /** @@ -556,6 +628,7 @@ const Joi = require("joi"); /** * @typedef CategoryItems + * @property {Object} [_custom_json] * @property {Action} [action] * @property {ImageUrls} [banners] * @property {Child[]} [childs] @@ -566,8 +639,12 @@ const Joi = require("joi"); /** * @typedef CategoryListingResponse - * @property {DepartmentCategoryTree[]} [data] - * @property {DepartmentIdentifier[]} [departments] + * @property {DepartmentCategoryTree[]} [data] - An array containing the + * department category trees, which provide hierarchical information about + * categories and their associated departments. + * @property {DepartmentIdentifier[]} [departments] - An array of department + * identifiers, each providing basic information like name, slug, and unique + * ID for departments within the catalog. */ /** @@ -595,19 +672,23 @@ const Joi = require("joi"); /** * @typedef Child - * @property {Object} [_custom_json] + * @property {Object} [_custom_json] - Custom JSON object to store additional + * data for the child. * @property {Action} [action] * @property {ImageUrls} [banners] - * @property {SecondLevelChild[]} [childs] - * @property {string} [name] - * @property {string} [slug] - * @property {number} [uid] + * @property {SecondLevelChild[]} [childs] - A list of second-level child + * elements under the current child. + * @property {string} [name] - Name of the child element. + * @property {string} [slug] - Slug or URL-friendly identifier for the child element. + * @property {number} [uid] - Unique identifier for the child element. */ /** * @typedef CollectionBadge - * @property {string} [color] - * @property {string} [text] + * @property {string} [color] - The color of the badge displayed with the + * collection, typically represented as a string (e.g., a hex code or color name). + * @property {string} [text] - The text displayed on the badge, which may + * indicate a label or promotion related to the collection. */ /** @@ -618,26 +699,41 @@ const Joi = require("joi"); /** * @typedef CollectionCreateResponse - * @property {string} [uid] - * @property {Object} [_schedule] - * @property {boolean} [allow_facets] - * @property {boolean} [allow_sort] - * @property {string} [app_id] - * @property {Object} [badge] + * @property {string} [uid] - Unique identifier for the collection. + * @property {CollectionSchedule} [_schedule] + * @property {boolean} [allow_facets] - Indicates whether facet-based filtering + * is allowed for the collection. + * @property {boolean} [allow_sort] - Indicates whether sorting options are + * allowed for the collection. + * @property {string} [app_id] - The application ID associated with the collection. + * @property {Object} [badge] - Details of the badge associated with the collection. * @property {ImageUrls} [banners] - * @property {Object} [cron] - * @property {string} [description] - * @property {boolean} [is_active] + * @property {string} [description] - A description of the collection. + * @property {boolean} [is_active] - Indicates whether the collection is currently active. * @property {BannerImage} [logo] - * @property {Object} [meta] - * @property {string} [name] - * @property {number} [priority] - * @property {CollectionQuery[]} [query] - * @property {string} [slug] - * @property {string} [sort_on] - * @property {string[]} [tag] - * @property {string} [type] - * @property {string[]} [visible_facets_keys] + * @property {Object} [meta] - Additional metadata related to the collection. + * @property {string} [name] - The name of the collection. + * @property {number} [priority] - The priority level of the collection, used to + * determine its display order. + * @property {CollectionQuery[]} [query] - Query objects that define how the + * collection's items are retrieved or filtered. + * @property {string} [slug] - The URL-friendly identifier for the collection. + * @property {string} [sort_on] - The default sorting order for items in the + * collection, e.g., 'popular'. + * @property {string[]} [tag] - Array of tags associated with the collection for + * categorization and filtering. + * @property {string} [type] - The type of collection, such as 'items' for + * manually added items or 'query' for dynamically fetched items. + * @property {string[]} [visible_facets_keys] - Keys of the facets that are + * visible and can be used for filtering the collection. + * @property {boolean} [published] - Indicates whether the collection is published. + * @property {string[]} [tags] - List of tags associated with the collection. + * @property {Action} [action] + * @property {Object} [_custom_json] - Custom JSON data for additional information. + * @property {Object} [_locale_language] - Locale language settings for the collection. + * @property {SeoDetail} [seo] + * @property {boolean} [is_visible] - Indicates if the collection is visible to users. + * @property {string} [id] - Unique identifier for the collection. */ /** @@ -665,8 +761,11 @@ const Joi = require("joi"); /** * @typedef CollectionImage - * @property {string} aspect_ratio - * @property {string} url + * @property {string} aspect_ratio - The aspect ratio of the image, typically + * represented as a string (e.g., "16:9" or "4:3") to indicate the + * proportional relationship between the image's width and height. + * @property {string} url - The URL of the image, which provides the location + * where the image is hosted and can be accessed. */ /** @@ -688,22 +787,24 @@ const Joi = require("joi"); /** * @typedef CollectionListingFilter - * @property {CollectionListingFilterTag[]} [tags] - * @property {CollectionListingFilterType[]} [type] + * @property {CollectionListingFilterTag[]} [tags] - A list of tags used to + * filter the collection listing. + * @property {CollectionListingFilterType[]} [type] - A list of types used to + * filter the collection listing. */ /** * @typedef CollectionListingFilterTag - * @property {string} [display] - * @property {boolean} [is_selected] - * @property {string} [name] + * @property {string} [display] - The display name of the tag for the collection listing. + * @property {boolean} [is_selected] - Indicates whether the tag is currently selected. + * @property {string} [name] - The name of the tag. */ /** * @typedef CollectionListingFilterType - * @property {string} [display] - * @property {boolean} [is_selected] - * @property {string} [name] + * @property {string} [display] - The display name of the type for the collection listing. + * @property {boolean} [is_selected] - Indicates whether the type is currently selected. + * @property {string} [name] - The internal name of the type. */ /** @@ -716,11 +817,17 @@ const Joi = require("joi"); /** * @typedef CollectionSchedule - * @property {string} [cron] - * @property {number} [duration] - * @property {string} [end] - * @property {NextSchedule[]} [next_schedule] - * @property {string} [start] + * @property {string} [cron] - The cron expression that defines the scheduling + * pattern, allowing for tasks or events to be repeated at specific intervals + * (e.g., daily, weekly). + * @property {number} [duration] - The duration in seconds for which the + * collection is active or valid. + * @property {string} [end] - The end date and time for the collection's + * schedule, formatted as a date-time string. + * @property {NextSchedule[]} [next_schedule] - The next set of scheduled times + * when the collection will become active, based on the cron expression. + * @property {string} [start] - The start date and time for the collection's + * schedule, formatted as a date-time string. */ /** @@ -737,7 +844,7 @@ const Joi = require("joi"); */ /** - * @typedef CompanyMeta1 + * @typedef InventoryCompanyMeta * @property {number} [id] */ @@ -879,31 +986,45 @@ const Joi = require("joi"); /** * @typedef CreateCollection - * @property {Object} [_custom_json] - * @property {Object} [_locale_language] + * @property {Object} [_custom_json] - Custom JSON data for the collection, used + * for any additional information. + * @property {Object} [_locale_language] - Locale-specific data for supporting + * multiple languages. * @property {CollectionSchedule} [_schedule] - * @property {boolean} [allow_facets] - * @property {boolean} [allow_sort] - * @property {string} app_id + * @property {boolean} [allow_facets] - Indicates whether facet-based filtering + * is allowed for the collection. + * @property {boolean} [allow_sort] - Indicates whether sorting options are + * allowed for the collection. + * @property {string} app_id - The application ID associated with the collection. * @property {CollectionBadge} [badge] * @property {CollectionBanner} banners - * @property {UserInfo} [created_by] - * @property {string} [description] - * @property {boolean} [is_active] - * @property {boolean} [is_visible] + * @property {UserInfo} [created_by] - Information about the user who created + * the collection. + * @property {string} [description] - A description of the collection. + * @property {boolean} [is_active] - Indicates whether the collection is currently active. + * @property {boolean} [is_visible] - Indicates whether the collection is + * visible to users. * @property {CollectionImage} logo - * @property {Object} [meta] - * @property {UserInfo} [modified_by] - * @property {string} name - * @property {number} [priority] - * @property {boolean} [published] - * @property {CollectionQuery[]} [query] + * @property {Object} [meta] - Additional metadata related to the collection. + * @property {UserInfo} [modified_by] - Information about the user who last + * modified the collection. + * @property {string} name - The name of the collection. + * @property {number} [priority] - The priority level of the collection, used to + * determine its display order. + * @property {boolean} [published] - Indicates whether the collection is + * published and available to users. + * @property {CollectionQuery[]} [query] - Query objects that define how the + * collection's items are retrieved or filtered. * @property {SeoDetail} [seo] - * @property {string} slug - * @property {string} [sort_on] - * @property {string[]} [tags] - * @property {string} type - * @property {string[]} [visible_facets_keys] + * @property {string} slug - The URL-friendly identifier for the collection. + * @property {string} [sort_on] - The default sorting order for items in the + * collection, e.g., 'popular'. + * @property {string[]} [tags] - Array of tags associated with the collection + * for categorization and filtering. + * @property {string} type - The type of collection, either 'items' for manually + * added items or 'query' for dynamically fetched items. + * @property {string[]} [visible_facets_keys] - Keys of the facets that are + * visible and can be used for filtering the collection. */ /** @@ -1008,8 +1129,10 @@ const Joi = require("joi"); /** * @typedef DepartmentCategoryTree - * @property {string} [department] - * @property {CategoryItems[]} [items] + * @property {string} [department] - The name of the department that this + * category tree belongs to, such as 'Men', 'Women', or 'Electronics'. + * @property {CategoryItems[]} [items] - An array of categories that fall under + * the specified department, each containing details about category items. */ /** @@ -1023,8 +1146,12 @@ const Joi = require("joi"); /** * @typedef DepartmentIdentifier - * @property {string} [slug] - * @property {number} [uid] + * @property {string} [name] - The name of the department, such as + * 'Electronics', 'Apparel', or 'Home Appliances'. + * @property {string} [slug] - A URL-friendly identifier for the department, + * often used in creating department-specific links or routes. + * @property {number} [uid] - A unique identifier for the department, used to + * distinguish it from other departments in the system. */ /** @@ -1048,7 +1175,7 @@ const Joi = require("joi"); */ /** - * @typedef DimensionResponse1 + * @typedef InventoryDimensionResponse * @property {number} [height] * @property {number} [length] * @property {string} [unit] @@ -1076,11 +1203,12 @@ const Joi = require("joi"); /** * @typedef ErrorResponse - * @property {string} [code] - * @property {string} [error] - * @property {string} [message] - * @property {Object} [meta] - * @property {number} [status] + * @property {string} [code] - A string representing the specific error code. + * @property {string} [error] - A brief description of the error type. + * @property {string} [message] - A detailed message explaining the error. + * @property {Object} [meta] - Additional metadata or context about the error, + * if available. + * @property {number} [status] - The HTTP status code associated with the error. */ /** @@ -1254,40 +1382,54 @@ const Joi = require("joi"); /** * @typedef GetCollectionDetailNest - * @property {Object} [_schedule] + * @property {CollectionSchedule} [_schedule] * @property {Action} [action] - * @property {boolean} [allow_facets] - * @property {boolean} [allow_sort] - * @property {string} [app_id] - * @property {Object} [badge] + * @property {boolean} [allow_facets] - Indicates whether facets are allowed for + * filtering the collection. + * @property {boolean} [allow_sort] - Indicates whether sorting options are + * allowed for the collection. + * @property {string} [app_id] - The application ID associated with the collection. + * @property {CollectionBadge} [badge] * @property {ImageUrls} [banners] - * @property {Object} [cron] - * @property {string} [description] - * @property {boolean} [is_active] + * @property {string} [description] - A description of the collection. + * @property {boolean} [is_active] - Indicates whether the collection is currently active. * @property {Media} [logo] - * @property {Object} [meta] - * @property {string} [name] - * @property {number} [priority] - * @property {CollectionQuery[]} [query] - * @property {string} [slug] - * @property {string[]} [tag] - * @property {string} [type] - * @property {string} [uid] - * @property {string[]} [visible_facets_keys] + * @property {Object} [meta] - Additional metadata related to the collection. + * @property {string} [name] - The name of the collection. + * @property {number} [priority] - The priority level of the collection in the + * display list. + * @property {CollectionQuery[]} [query] - Array of queries that define how the + * collection is fetched or filtered. + * @property {string} [slug] - The URL-friendly identifier of the collection. + * @property {string[]} [tag] - Array of tags associated with the collection. + * @property {string} [type] - The type of collection, such as manual or automated. + * @property {string} [uid] - The unique identifier for the collection. + * @property {string[]} [visible_facets_keys] - List of facet keys that are + * visible for filtering the collection. + * @property {string} [_id] - Internal identifier for the collection. + * @property {boolean} [published] - Indicates if the collection is published. + * @property {string[]} [tags] - Tags associated with the collection. + * @property {string} [sort_on] - Sort criteria for the collection. + * @property {Object} [_custom_json] - Custom JSON data for the collection. + * @property {Object} [_locale_language] - Locale-specific language settings. + * @property {SeoDetail} [seo] + * @property {boolean} [is_visible] - Indicates if the collection is visible. */ /** * @typedef GetCollectionItemsResponse - * @property {ProductFilters[]} [filters] - * @property {ProductListingDetail[]} [items] + * @property {ProductFilters[]} [filters] - An array of filters applicable to + * the products in the collection. + * @property {ProductListingDetail[]} [items] - List of product details in the collection. * @property {Page} [page] - * @property {ProductSortOn[]} [sort_on] + * @property {ProductSortOn[]} [sort_on] - Sorting options available for the + * products in the collection. */ /** * @typedef GetCollectionListingResponse * @property {CollectionListingFilter} [filters] - * @property {GetCollectionDetailNest[]} [items] + * @property {GetCollectionDetailNest[]} [items] - Array of nested collection details. * @property {Page} [page] */ @@ -1363,12 +1505,12 @@ const Joi = require("joi"); /** * @typedef GetDepartment - * @property {UserSerializer1} [created_by] + * @property {RequestUserSerializer} [created_by] * @property {string} [created_on] * @property {boolean} [is_active] * @property {string} [item_type] * @property {string} [logo] - * @property {UserSerializer1} [modified_by] + * @property {RequestUserSerializer} [modified_by] * @property {string} [modified_on] * @property {string} [name] * @property {number} [page_no] @@ -1382,24 +1524,24 @@ const Joi = require("joi"); /** * @typedef GetInventories - * @property {BrandMeta1} [brand] - * @property {CompanyMeta1} [company] + * @property {InventoryBrandMeta} [brand] + * @property {InventoryCompanyMeta} [company] * @property {string} [country_of_origin] - * @property {UserSerializer1} [created_by] + * @property {RequestUserSerializer} [created_by] * @property {DateMeta} [date_meta] - * @property {DimensionResponse1} [dimension] + * @property {InventoryDimensionResponse} [dimension] * @property {string} [expiration_date] * @property {string} [id] * @property {Object} [identifier] * @property {string} [inventory_updated_on] * @property {boolean} [is_set] * @property {number} [item_id] - * @property {ManufacturerResponse1} [manufacturer] - * @property {UserSerializer1} [modified_by] + * @property {InventoryManufacturerResponse} [manufacturer] + * @property {RequestUserSerializer} [modified_by] * @property {Object} [platforms] * @property {PriceArticle} [price] * @property {QuantitiesArticle} [quantities] - * @property {ReturnConfig2} [return_config] + * @property {ReturnConfig} [return_config] * @property {string} [seller_identifier] * @property {string} [size] * @property {string} [stage] @@ -1409,9 +1551,9 @@ const Joi = require("joi"); * @property {number} [total_quantity] * @property {string} [trace_id] * @property {boolean} [track_inventory] - * @property {Trader2[]} [trader] + * @property {TraderResponse[]} [trader] * @property {string} [uid] - * @property {WeightResponse1} [weight] + * @property {InventoryWeightResponse} [weight] */ /** @@ -2198,7 +2340,7 @@ const Joi = require("joi"); */ /** - * @typedef ManufacturerResponse1 + * @typedef InventoryManufacturerResponse * @property {string} [address] * @property {boolean} [is_default] * @property {string} [name] @@ -2225,6 +2367,16 @@ const Joi = require("joi"); * @property {string} [url] */ +/** + * @typedef BrandMedia + * @property {string} [aspect_ratio] - The aspect ratio of the media, typically + * represented as a string like '16:9' or '4:3'. + * @property {string} [type] - The type of media, such as 'image', 'video', or + * 'audio', describing the content format. + * @property {string} [url] - The URL where the media file is hosted, typically + * a link to an image or video resource. + */ + /** * @typedef Meta * @property {Object} [headers] @@ -2285,8 +2437,8 @@ const Joi = require("joi"); /** * @typedef NextSchedule - * @property {string} [end] - * @property {string} [start] + * @property {string} [end] - The end time of the schedule. + * @property {string} [start] - The start time of the schedule. */ /** @@ -2368,16 +2520,6 @@ const Joi = require("joi"); * @property {number} [size] - It is the size of each page. */ -/** - * @typedef PageResponse1 - * @property {number} [current] - * @property {boolean} [has_next] - * @property {boolean} [has_previous] - * @property {number} [item_total] - * @property {number} [size] - * @property {string} [type] - */ - /** * @typedef PageResponseType * @property {number} current @@ -3063,38 +3205,44 @@ const Joi = require("joi"); /** * @typedef Sitemap - * @property {number} [priority] - * @property {string} [frequency] + * @property {number} [priority] - Indicates the priority of this URL relative + * to other URLs on the site. A value between 0.0 and 1.0, where 1.0 is the + * highest priority. + * @property {string} [frequency] - How frequently the content at the URL is + * likely to change. */ /** * @typedef ApplicationItemSeoAction - * @property {Object} [page] - * @property {string} type + * @property {Object} [page] - Details of the page associated with this SEO action. + * @property {string} type - Type of action, such as navigation or redirection. */ /** * @typedef ApplicationItemSeoBreadcrumbs - * @property {string} [url] - * @property {ApplicationItemSeoAction[]} [action] + * @property {string} [url] - The URL that this breadcrumb points to. + * @property {ApplicationItemSeoAction[]} [action] - The actions available for + * this breadcrumb, defining what happens when it's clicked or interacted with. */ /** * @typedef ApplicationItemSeoMetaTagItem - * @property {string} key - * @property {string} value + * @property {string} key - The name of the meta tag. + * @property {string} value - The value associated with the meta tag. */ /** * @typedef ApplicationItemSeoMetaTags - * @property {string} title - * @property {ApplicationItemSeoMetaTagItem[]} [items] + * @property {string} title - The title for this set of meta tags. + * @property {ApplicationItemSeoMetaTagItem[]} [items] - A list of meta tag + * items, each defined by key-value pairs. */ /** * @typedef Metatags - * @property {string} [title] - * @property {ApplicationItemSeoMetaTagItem[]} [items] + * @property {string} [title] - The title or heading for the meta tags section. + * @property {ApplicationItemSeoMetaTagItem[]} [items] - An array of meta tag + * items, each consisting of key-value pairs. */ /** @@ -3131,13 +3279,16 @@ const Joi = require("joi"); /** * @typedef SecondLevelChild - * @property {Object} [_custom_json] + * @property {Object} [_custom_json] - Custom JSON object to store additional + * data for the second-level child. * @property {Action} [action] * @property {ImageUrls} [banners] - * @property {ThirdLevelChild[]} [childs] - * @property {string} [name] - * @property {string} [slug] - * @property {number} [uid] + * @property {ThirdLevelChild[]} [childs] - A list of third-level child elements + * under the second-level child. + * @property {string} [name] - Name of the second-level child element. + * @property {string} [slug] - Slug or URL-friendly identifier for the + * second-level child element. + * @property {number} [uid] - Unique identifier for the second-level child element. */ /** @@ -3148,12 +3299,20 @@ const Joi = require("joi"); /** * @typedef SeoDetail - * @property {string} [description] - * @property {string} [title] - * @property {Object} [sitemap] - * @property {ApplicationItemSeoBreadcrumbs[]} [breadcrumbs] - * @property {Metatags[]} [meta_tags] - * @property {string} [canonical_url] + * @property {string} [description] - SEO meta description for the item or + * collection. This is used to describe the content for search engines. + * @property {string} [title] - SEO meta title for the item or collection. It is + * used as the title that appears in search results. + * @property {Object} [sitemap] - Information regarding the sitemap + * configuration for the item or collection. + * @property {ApplicationItemSeoBreadcrumbs[]} [breadcrumbs] - List of + * breadcrumbs for navigation, showing the hierarchy of pages leading to the + * current page. + * @property {Metatags[]} [meta_tags] - An array of meta tags, each containing + * key-value pairs for various SEO meta tags used to enhance search visibility. + * @property {string} [canonical_url] - The canonical URL for the item or + * collection, which tells search engines the preferred version of the URL to + * avoid duplicate content issues. */ /** @@ -3251,9 +3410,10 @@ const Joi = require("joi"); */ /** - * @typedef SuccessResponse1 - * @property {boolean} [success] - * @property {number} [uid] + * @typedef SuccessResponseObject + * @property {boolean} [success] - Indicates whether the operation was successful or not. + * @property {number} [uid] - A unique identifier associated with the successful + * operation. */ /** @@ -3314,13 +3474,16 @@ const Joi = require("joi"); /** * @typedef ThirdLevelChild - * @property {Object} [_custom_json] + * @property {Object} [_custom_json] - Custom JSON object to store additional + * data for the third-level child. * @property {Action} [action] * @property {ImageUrls} [banners] - * @property {Object[]} [childs] - * @property {string} [name] - * @property {string} [slug] - * @property {number} [uid] + * @property {Object[]} [childs] - A list of further nested child elements under + * the third-level child (if applicable). + * @property {string} [name] - Name of the third-level child element. + * @property {string} [slug] - Slug or URL-friendly identifier for the + * third-level child element. + * @property {number} [uid] - Unique identifier for the third-level child element. */ /** @@ -3338,7 +3501,7 @@ const Joi = require("joi"); */ /** - * @typedef Trader2 + * @typedef TraderResponse * @property {string[]} [address] * @property {string} [name] * @property {string} [type] @@ -3358,7 +3521,7 @@ const Joi = require("joi"); * @property {boolean} [is_visible] * @property {CollectionImage} [logo] * @property {Object} [meta] - * @property {string} [modified_by] - User info. + * @property {UserInfo} [modified_by] * @property {string} [name] * @property {number} [priority] * @property {boolean} [published] @@ -3455,7 +3618,7 @@ const Joi = require("joi"); */ /** - * @typedef UserSerializer1 + * @typedef RequestUserSerializer * @property {string} [_id] * @property {string} [contact] * @property {string} [uid] @@ -3522,7 +3685,7 @@ const Joi = require("joi"); */ /** - * @typedef WeightResponse1 + * @typedef InventoryWeightResponse * @property {number} [shipping] * @property {string} [unit] */ @@ -4105,7 +4268,7 @@ class CatalogPlatformModel { banners: CatalogPlatformModel.ImageUrls(), departments: Joi.array().items(Joi.string().allow("")), discount: Joi.string().allow(""), - logo: CatalogPlatformModel.Media2(), + logo: CatalogPlatformModel.BrandMedia(), name: Joi.string().allow(""), slug: Joi.string().allow(""), uid: Joi.number(), @@ -4120,6 +4283,69 @@ class CatalogPlatformModel { }); } + /** @returns {ApplicationBrandListingItemSchema} */ + static ApplicationBrandListingItemSchema() { + return Joi.object({ + _custom_json: Joi.object().pattern(/\S/, Joi.any()), + _locale_language: Joi.object().pattern(/\S/, Joi.any()), + brand_banner_portrait_url: Joi.string().allow(""), + brand_banner_url: Joi.string().allow(""), + brand_logo_url: Joi.string().allow(""), + description: Joi.string().allow(""), + name: Joi.string().allow(""), + slug_key: Joi.string().allow(""), + priority: Joi.number(), + uid: Joi.number(), + created_on: Joi.string().allow(""), + last_updated: Joi.string().allow(""), + is_active: Joi.boolean(), + departments: Joi.array().items(Joi.number()), + modified_on: Joi.string().allow(""), + active: Joi.boolean(), + }); + } + + /** @returns {ApplicationBrandListingSchema} */ + static ApplicationBrandListingSchema() { + return Joi.object({ + items: Joi.array().items( + CatalogPlatformModel.ApplicationBrandListingItemSchema() + ), + page: CatalogPlatformModel.Page(), + }); + } + + /** @returns {ApplicationCategoryListingSchema} */ + static ApplicationCategoryListingSchema() { + return Joi.object({ + items: Joi.array().items( + CatalogPlatformModel.ApplicationCategoryListingItemSchema() + ), + page: CatalogPlatformModel.Page(), + }); + } + + /** @returns {ApplicationCategoryListingItemSchema} */ + static ApplicationCategoryListingItemSchema() { + return Joi.object({ + name: Joi.string().allow(""), + logo: Joi.string().allow(""), + departments: Joi.array().items(Joi.number()), + attr_name: Joi.string().allow(""), + landscape_url: Joi.string().allow(""), + portrait_url: Joi.string().allow(""), + _custom_json: Joi.object().pattern(/\S/, Joi.any()), + priority: Joi.number(), + created_by: CatalogPlatformModel.CreatedBy(), + created_on: Joi.string().allow(""), + modified_by: CatalogPlatformModel.CreatedBy(), + modified_on: Joi.string().allow(""), + app_id: Joi.string().allow(""), + is_active: Joi.boolean(), + uid: Joi.number(), + }); + } + /** @returns {BrandMeta} */ static BrandMeta() { return Joi.object({ @@ -4128,8 +4354,8 @@ class CatalogPlatformModel { }); } - /** @returns {BrandMeta1} */ - static BrandMeta1() { + /** @returns {InventoryBrandMeta} */ + static InventoryBrandMeta() { return Joi.object({ id: Joi.number(), name: Joi.string().allow(""), @@ -4317,6 +4543,7 @@ class CatalogPlatformModel { /** @returns {CategoryItems} */ static CategoryItems() { return Joi.object({ + _custom_json: Joi.any().allow(null), action: CatalogPlatformModel.Action(), banners: CatalogPlatformModel.ImageUrls(), childs: Joi.array().items(CatalogPlatformModel.Child()), @@ -4394,13 +4621,12 @@ class CatalogPlatformModel { static CollectionCreateResponse() { return Joi.object({ uid: Joi.string().allow(""), - _schedule: Joi.any(), + _schedule: CatalogPlatformModel.CollectionSchedule(), 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(), logo: CatalogPlatformModel.BannerImage(), @@ -4413,6 +4639,14 @@ class CatalogPlatformModel { tag: Joi.array().items(Joi.string().allow("")), type: Joi.string().allow(""), visible_facets_keys: Joi.array().items(Joi.string().allow("")), + published: Joi.boolean(), + tags: Joi.array().items(Joi.string().allow("")), + action: CatalogPlatformModel.Action(), + _custom_json: Joi.object().pattern(/\S/, Joi.any()), + _locale_language: Joi.object().pattern(/\S/, Joi.any()), + seo: CatalogPlatformModel.SeoDetail(), + is_visible: Joi.boolean(), + id: Joi.string().allow(""), }); } @@ -4537,8 +4771,8 @@ class CatalogPlatformModel { }); } - /** @returns {CompanyMeta1} */ - static CompanyMeta1() { + /** @returns {InventoryCompanyMeta} */ + static InventoryCompanyMeta() { return Joi.object({ id: Joi.number(), }); @@ -4728,7 +4962,7 @@ class CatalogPlatformModel { static CreateCollection() { return Joi.object({ _custom_json: Joi.any(), - _locale_language: Joi.any(), + _locale_language: Joi.object().pattern(/\S/, Joi.any()), _schedule: CatalogPlatformModel.CollectionSchedule(), allow_facets: Joi.boolean(), allow_sort: Joi.boolean(), @@ -4897,6 +5131,7 @@ class CatalogPlatformModel { /** @returns {DepartmentIdentifier} */ static DepartmentIdentifier() { return Joi.object({ + name: Joi.string().allow(""), slug: Joi.string().allow(""), uid: Joi.number(), }); @@ -4928,8 +5163,8 @@ class CatalogPlatformModel { }); } - /** @returns {DimensionResponse1} */ - static DimensionResponse1() { + /** @returns {InventoryDimensionResponse} */ + static InventoryDimensionResponse() { return Joi.object({ height: Joi.number(), length: Joi.number(), @@ -5172,14 +5407,13 @@ class CatalogPlatformModel { /** @returns {GetCollectionDetailNest} */ static GetCollectionDetailNest() { return Joi.object({ - _schedule: Joi.any(), + _schedule: CatalogPlatformModel.CollectionSchedule(), action: CatalogPlatformModel.Action(), allow_facets: Joi.boolean(), allow_sort: Joi.boolean(), app_id: Joi.string().allow(""), - badge: Joi.any(), + badge: CatalogPlatformModel.CollectionBadge(), banners: CatalogPlatformModel.ImageUrls(), - cron: Joi.any(), description: Joi.string().allow(""), is_active: Joi.boolean(), logo: CatalogPlatformModel.Media(), @@ -5192,6 +5426,14 @@ class CatalogPlatformModel { type: Joi.string().allow(""), uid: Joi.string().allow(""), visible_facets_keys: Joi.array().items(Joi.string().allow("")), + _id: Joi.string().allow(""), + published: Joi.boolean(), + tags: Joi.array().items(Joi.string().allow("")), + sort_on: Joi.string().allow(""), + _custom_json: Joi.any(), + _locale_language: Joi.any(), + seo: CatalogPlatformModel.SeoDetail(), + is_visible: Joi.boolean(), }); } @@ -5305,12 +5547,12 @@ class CatalogPlatformModel { /** @returns {GetDepartment} */ static GetDepartment() { return Joi.object({ - created_by: CatalogPlatformModel.UserSerializer1(), + created_by: CatalogPlatformModel.RequestUserSerializer(), created_on: Joi.string().allow(""), is_active: Joi.boolean(), item_type: Joi.string().allow(""), logo: Joi.string().allow(""), - modified_by: CatalogPlatformModel.UserSerializer1(), + modified_by: CatalogPlatformModel.RequestUserSerializer(), modified_on: Joi.string().allow(""), name: Joi.string().allow(""), page_no: Joi.number(), @@ -5326,24 +5568,24 @@ class CatalogPlatformModel { /** @returns {GetInventories} */ static GetInventories() { return Joi.object({ - brand: CatalogPlatformModel.BrandMeta1(), - company: CatalogPlatformModel.CompanyMeta1(), + brand: CatalogPlatformModel.InventoryBrandMeta(), + company: CatalogPlatformModel.InventoryCompanyMeta(), country_of_origin: Joi.string().allow(""), - created_by: CatalogPlatformModel.UserSerializer1(), + created_by: CatalogPlatformModel.RequestUserSerializer(), date_meta: CatalogPlatformModel.DateMeta(), - dimension: CatalogPlatformModel.DimensionResponse1(), + dimension: CatalogPlatformModel.InventoryDimensionResponse(), expiration_date: Joi.string().allow(""), id: Joi.string().allow(""), identifier: Joi.any(), inventory_updated_on: Joi.string().allow(""), is_set: Joi.boolean(), item_id: Joi.number(), - manufacturer: CatalogPlatformModel.ManufacturerResponse1(), - modified_by: CatalogPlatformModel.UserSerializer1(), + manufacturer: CatalogPlatformModel.InventoryManufacturerResponse(), + modified_by: CatalogPlatformModel.RequestUserSerializer(), platforms: Joi.any(), price: CatalogPlatformModel.PriceArticle(), quantities: CatalogPlatformModel.QuantitiesArticle(), - return_config: CatalogPlatformModel.ReturnConfig2(), + return_config: CatalogPlatformModel.ReturnConfig(), seller_identifier: Joi.string().allow(""), size: Joi.string().allow(""), stage: Joi.string().allow(""), @@ -5353,9 +5595,9 @@ class CatalogPlatformModel { total_quantity: Joi.number(), trace_id: Joi.string().allow(""), track_inventory: Joi.boolean(), - trader: Joi.array().items(CatalogPlatformModel.Trader2()), + trader: Joi.array().items(CatalogPlatformModel.TraderResponse()), uid: Joi.string().allow(""), - weight: CatalogPlatformModel.WeightResponse1(), + weight: CatalogPlatformModel.InventoryWeightResponse(), }); } @@ -6268,8 +6510,8 @@ class CatalogPlatformModel { }); } - /** @returns {ManufacturerResponse1} */ - static ManufacturerResponse1() { + /** @returns {InventoryManufacturerResponse} */ + static InventoryManufacturerResponse() { return Joi.object({ address: Joi.string().allow(""), is_default: Joi.boolean(), @@ -6304,6 +6546,15 @@ class CatalogPlatformModel { }); } + /** @returns {BrandMedia} */ + static BrandMedia() { + return Joi.object({ + aspect_ratio: Joi.string().allow(""), + type: Joi.string().allow(""), + url: Joi.string().allow(""), + }); + } + /** @returns {Meta} */ static Meta() { return Joi.object({ @@ -6484,18 +6735,6 @@ class CatalogPlatformModel { }); } - /** @returns {PageResponse1} */ - static PageResponse1() { - return Joi.object({ - current: Joi.number(), - has_next: Joi.boolean(), - has_previous: Joi.boolean(), - item_total: Joi.number(), - size: Joi.number(), - type: Joi.string().allow(""), - }); - } - /** @returns {PageResponseType} */ static PageResponseType() { return Joi.object({ @@ -7546,8 +7785,8 @@ class CatalogPlatformModel { }); } - /** @returns {SuccessResponse1} */ - static SuccessResponse1() { + /** @returns {SuccessResponseObject} */ + static SuccessResponseObject() { return Joi.object({ success: Joi.boolean(), uid: Joi.number(), @@ -7655,8 +7894,8 @@ class CatalogPlatformModel { }); } - /** @returns {Trader2} */ - static Trader2() { + /** @returns {TraderResponse} */ + static TraderResponse() { return Joi.object({ address: Joi.array().items(Joi.string().allow("")), name: Joi.string().allow(""), @@ -7679,7 +7918,7 @@ class CatalogPlatformModel { is_visible: Joi.boolean(), logo: CatalogPlatformModel.CollectionImage(), meta: Joi.any(), - modified_by: Joi.string().allow("").allow(null), + modified_by: CatalogPlatformModel.UserInfo(), name: Joi.string().allow(""), priority: Joi.number(), published: Joi.boolean(), @@ -7789,8 +8028,8 @@ class CatalogPlatformModel { }); } - /** @returns {UserSerializer1} */ - static UserSerializer1() { + /** @returns {RequestUserSerializer} */ + static RequestUserSerializer() { return Joi.object({ _id: Joi.string().allow(""), contact: Joi.string().allow(""), @@ -7872,8 +8111,8 @@ class CatalogPlatformModel { }); } - /** @returns {WeightResponse1} */ - static WeightResponse1() { + /** @returns {InventoryWeightResponse} */ + static InventoryWeightResponse() { return Joi.object({ shipping: Joi.number(), unit: Joi.string().allow(""), diff --git a/sdk/platform/Order/OrderPlatformClient.d.ts b/sdk/platform/Order/OrderPlatformClient.d.ts index 0439172c2..01a5dda6c 100644 --- a/sdk/platform/Order/OrderPlatformClient.d.ts +++ b/sdk/platform/Order/OrderPlatformClient.d.ts @@ -53,17 +53,6 @@ declare class Order { * @description: Used to verify the status of order. It queries error logs, resyncs the shipments if there was an issue with sync etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/checkOrderStatus/). */ checkOrderStatus({ body, requestHeaders }?: OrderPlatformValidator.CheckOrderStatusParam, { responseHeaders }?: object): Promise; - /** - * @param {OrderPlatformValidator.CreateChannelConfigParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name createChannelConfig - * @summary: Create channel configuration - * @description: Set up configuration for a channel specific to orders which has implications over how the order fulfilment happens in a channel - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/createChannelConfig/). - */ - createChannelConfig({ body, requestHeaders }?: OrderPlatformValidator.CreateChannelConfigParam, { responseHeaders }?: object): Promise; /** * @param {OrderPlatformValidator.CreateOrderParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -125,18 +114,6 @@ declare class Order { * @description: Get the exact error trace from the log Id provided in the failed order list API response - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/failedOrderLogDetails/). */ failedOrderLogDetails({ logId, requestHeaders }?: OrderPlatformValidator.FailedOrderLogDetailsParam, { responseHeaders }?: object): Promise; - /** - * @param {OrderPlatformValidator.FetchCreditBalanceDetailParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name fetchCreditBalanceDetail - * @summary: Get credit balance detail - * @description: Retrieve details about credit balance on the basis of customer mobile number - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/fetchCreditBalanceDetail/). - */ - fetchCreditBalanceDetail({ body, requestHeaders }?: OrderPlatformValidator.FetchCreditBalanceDetailParam, { responseHeaders }?: object): Promise; /** * @param {OrderPlatformValidator.FetchRefundModeConfigParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -252,16 +229,6 @@ declare class Order { * @description: Generates the report which can be filled and uploaded to perform the bulk operation based on the filters provided - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getBulkShipmentExcelFile/). */ getBulkShipmentExcelFile({ salesChannels, dpIds, startDate, endDate, stores, tags, bagStatus, paymentMethods, fileType, timeToDispatch, pageNo, pageSize, requestHeaders, }?: OrderPlatformValidator.GetBulkShipmentExcelFileParam, { responseHeaders }?: object): Promise; - /** - * @param {OrderPlatformValidator.GetChannelConfigParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getChannelConfig - * @summary: Get channel configuration - * @description: Retrieve configuration settings specific to orders for a channel - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getChannelConfig/). - */ - getChannelConfig({ requestHeaders }?: any, { responseHeaders }?: object): Promise; /** * @param {OrderPlatformValidator.GetFileByStatusParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -291,7 +258,7 @@ declare class Order { * @summary: Get a manifest * @description: Get details regarding a manifest which can be used to perform further actions on it - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getManifestDetails/). */ - getManifestDetails({ manifestId, requestHeaders }?: OrderPlatformValidator.GetManifestDetailsParam, { responseHeaders }?: object): Promise; + getManifestDetails({ manifestId, dpIds, endDate, startDate, pageNo, pageSize, requestHeaders, }?: OrderPlatformValidator.GetManifestDetailsParam, { responseHeaders }?: object): Promise; /** * @param {OrderPlatformValidator.GetManifestShipmentsParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -341,7 +308,7 @@ declare class Order { * @summary: List orders * @description: Get a list of orders based on the filters provided - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getOrders/). */ - getOrders({ lane, searchType, bagStatus, timeToDispatch, paymentMethods, tags, searchValue, fromDate, toDate, startDate, endDate, dpIds, stores, salesChannels, pageNo, pageSize, isPrioritySort, customMeta, myOrders, showCrossCompanyData, customerId, orderType, allowInactive, requestHeaders, }?: OrderPlatformValidator.GetOrdersParam, { responseHeaders }?: object): Promise; + getOrders({ lane, searchType, bagStatus, timeToDispatch, paymentMethods, tags, searchValue, fromDate, toDate, startDate, endDate, dpIds, stores, salesChannels, pageNo, pageSize, isPrioritySort, customMeta, myOrders, showCrossCompanyData, customerId, orderType, allowInactive, enforceDateFilter, requestHeaders, }?: OrderPlatformValidator.GetOrdersParam, { responseHeaders }?: object): Promise; /** * @param {OrderPlatformValidator.GetRoleBasedActionsParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -394,7 +361,7 @@ declare class Order { * @summary: List shipments * @description: Get a list of shipments based on the filters provided - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getShipments/). */ - getShipments({ lane, bagStatus, statusOverrideLane, timeToDispatch, searchType, searchValue, fromDate, toDate, startDate, endDate, dpIds, stores, salesChannels, pageNo, pageSize, fetchActiveShipment, allowInactive, excludeLockedShipments, paymentMethods, channelShipmentId, channelOrderId, customMeta, orderingChannel, companyAffiliateTag, myOrders, platformUserId, sortType, showCrossCompanyData, tags, customerId, orderType, requestHeaders, }?: OrderPlatformValidator.GetShipmentsParam, { responseHeaders }?: object): Promise; + getShipments({ lane, bagStatus, statusOverrideLane, timeToDispatch, searchType, searchValue, fromDate, toDate, startDate, endDate, dpIds, stores, salesChannels, pageNo, pageSize, fetchActiveShipment, allowInactive, excludeLockedShipments, paymentMethods, channelShipmentId, channelOrderId, customMeta, orderingChannel, companyAffiliateTag, myOrders, platformUserId, sortType, showCrossCompanyData, tags, customerId, orderType, enforceDateFilter, requestHeaders, }?: OrderPlatformValidator.GetShipmentsParam, { responseHeaders }?: object): Promise; /** * @param {OrderPlatformValidator.GetStateManagerConfigParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -478,17 +445,6 @@ declare class Order { * @description: Used to add logs in history for a bag for the provided Shipment ID - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/postShipmentHistory/). */ postShipmentHistory({ body, requestHeaders }?: OrderPlatformValidator.PostShipmentHistoryParam, { responseHeaders }?: object): Promise; - /** - * @param {OrderPlatformValidator.ProcessManifestsParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name processManifests - * @summary: Generate manifest - * @description: Generate manifest Id and PDF and tags the shipments with that manifest Id - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/processManifests/). - */ - processManifests({ body, requestHeaders }?: OrderPlatformValidator.ProcessManifestsParam, { responseHeaders }?: object): Promise; /** * @param {OrderPlatformValidator.ReassignLocationParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -503,12 +459,12 @@ declare class Order { * @param {OrderPlatformValidator.SendSmsNinjaParam} 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 sendSmsNinja * @summary: Send SMS * @description: Send SMS to customer based on the template that is selected - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/sendSmsNinja/). */ - sendSmsNinja({ body, requestHeaders }?: OrderPlatformValidator.SendSmsNinjaParam, { responseHeaders }?: object): Promise; + sendSmsNinja({ body, requestHeaders }?: OrderPlatformValidator.SendSmsNinjaParam, { responseHeaders }?: object): Promise; /** * @param {OrderPlatformValidator.SendUserMobileOTPParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -560,7 +516,7 @@ declare class Order { * Success response * @name updateShipmentLock * @summary: Update a shipment lock - * @description: Modify shipment/bag lock and check status. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/updateShipmentLock/). + * @description: Modify shipment/bag lock status and update lock/unlock messages. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/updateShipmentLock/). */ updateShipmentLock({ body, requestHeaders }?: OrderPlatformValidator.UpdateShipmentLockParam, { responseHeaders }?: object): Promise; /** @@ -595,7 +551,7 @@ declare class Order { * @summary: Upload consent * @description: Uploads the consent signed by courier partner and seller to keep records - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/uploadConsents/). */ - uploadConsents({ manifestId, body, requestHeaders }?: OrderPlatformValidator.UploadConsentsParam, { responseHeaders }?: object): Promise; + uploadConsents({ body, requestHeaders }?: OrderPlatformValidator.UploadConsentsParam, { responseHeaders }?: object): Promise; /** * @param {OrderPlatformValidator.VerifyMobileOTPParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` diff --git a/sdk/platform/Order/OrderPlatformClient.js b/sdk/platform/Order/OrderPlatformClient.js index 6c0ba706a..235361718 100644 --- a/sdk/platform/Order/OrderPlatformClient.js +++ b/sdk/platform/Order/OrderPlatformClient.js @@ -436,86 +436,6 @@ class Order { return response; } - /** - * @param {OrderPlatformValidator.CreateChannelConfigParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name createChannelConfig - * @summary: Create channel configuration - * @description: Set up configuration for a channel specific to orders which has implications over how the order fulfilment happens in a channel - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/createChannelConfig/). - */ - async createChannelConfig( - { body, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { error } = OrderPlatformValidator.createChannelConfig().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.createChannelConfig().validate( - { - body, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Order > createChannelConfig \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}/order-config`, - query_params, - body, - { ...xHeaders, ...requestHeaders }, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = OrderPlatformModel.CreateChannelConfigResponse().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 > createChannelConfig \n ${res_error}`, - }); - } - } - - return response; - } - /** * @param {OrderPlatformValidator.CreateOrderParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -990,89 +910,6 @@ class Order { return response; } - /** - * @param {OrderPlatformValidator.FetchCreditBalanceDetailParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - * - Success response - * - * @name fetchCreditBalanceDetail - * @summary: Get credit balance detail - * @description: Retrieve details about credit balance on the basis of customer mobile number - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/fetchCreditBalanceDetail/). - */ - async fetchCreditBalanceDetail( - { body, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { - error, - } = OrderPlatformValidator.fetchCreditBalanceDetail().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.fetchCreditBalanceDetail().validate( - { - body, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Order > fetchCreditBalanceDetail \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}/customer-credit-balance`, - query_params, - body, - { ...xHeaders, ...requestHeaders }, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = OrderPlatformModel.FetchCreditBalanceResponsePayload().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 > fetchCreditBalanceDetail \n ${res_error}`, - }); - } - } - - return response; - } - /** * @param {OrderPlatformValidator.FetchRefundModeConfigParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -2049,81 +1886,6 @@ class Order { return response; } - /** - * @param {OrderPlatformValidator.GetChannelConfigParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - Success response - * @name getChannelConfig - * @summary: Get channel configuration - * @description: Retrieve configuration settings specific to orders for a channel - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getChannelConfig/). - */ - async getChannelConfig( - { requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { error } = OrderPlatformValidator.getChannelConfig().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.getChannelConfig().validate( - {}, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Order > getChannelConfig \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}/order-config`, - query_params, - undefined, - { ...xHeaders, ...requestHeaders }, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = OrderPlatformModel.CreateChannelConfigData().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 > getChannelConfig \n ${res_error}`, - }); - } - } - - return response; - } - /** * @param {OrderPlatformValidator.GetFileByStatusParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -2377,12 +2139,25 @@ class Order { * @description: Get details regarding a manifest which can be used to perform further actions on it - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getManifestDetails/). */ async getManifestDetails( - { manifestId, requestHeaders } = { requestHeaders: {} }, + { + manifestId, + dpIds, + endDate, + startDate, + pageNo, + pageSize, + requestHeaders, + } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error } = OrderPlatformValidator.getManifestDetails().validate( { manifestId, + dpIds, + endDate, + startDate, + pageNo, + pageSize, }, { abortEarly: false, allowUnknown: true } ); @@ -2396,6 +2171,11 @@ class Order { } = OrderPlatformValidator.getManifestDetails().validate( { manifestId, + dpIds, + endDate, + startDate, + pageNo, + pageSize, }, { abortEarly: false, allowUnknown: false } ); @@ -2407,13 +2187,19 @@ class Order { } const query_params = {}; + query_params["manifest_id"] = manifestId; + query_params["dp_ids"] = dpIds; + query_params["end_date"] = endDate; + query_params["start_date"] = startDate; + query_params["page_no"] = pageNo; + query_params["page_size"] = pageSize; const xHeaders = {}; const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/order-manage/v1.0/company/${this.config.companyId}/manifests/${manifestId}`, + `/service/platform/order-manage/v1.0/company/${this.config.companyId}/manifest/details`, query_params, undefined, { ...xHeaders, ...requestHeaders }, @@ -2725,7 +2511,7 @@ class Order { const response = await PlatformAPIClient.execute( this.config, "get", - `/service/platform/order-manage/v1.0/company/${this.config.companyId}/manifests`, + `/service/platform/order-manage/v1.0/company/${this.config.companyId}/manifest/listing`, query_params, undefined, { ...xHeaders, ...requestHeaders }, @@ -2878,6 +2664,7 @@ class Order { customerId, orderType, allowInactive, + enforceDateFilter, requestHeaders, } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } @@ -2907,6 +2694,7 @@ class Order { customerId, orderType, allowInactive, + enforceDateFilter, }, { abortEarly: false, allowUnknown: true } ); @@ -2940,6 +2728,7 @@ class Order { customerId, orderType, allowInactive, + enforceDateFilter, }, { abortEarly: false, allowUnknown: false } ); @@ -2974,6 +2763,7 @@ class Order { query_params["customer_id"] = customerId; query_params["order_type"] = orderType; query_params["allow_inactive"] = allowInactive; + query_params["enforce_date_filter"] = enforceDateFilter; const xHeaders = {}; @@ -3394,6 +3184,7 @@ class Order { tags, customerId, orderType, + enforceDateFilter, requestHeaders, } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } @@ -3431,6 +3222,7 @@ class Order { tags, customerId, orderType, + enforceDateFilter, }, { abortEarly: false, allowUnknown: true } ); @@ -3472,6 +3264,7 @@ class Order { tags, customerId, orderType, + enforceDateFilter, }, { abortEarly: false, allowUnknown: false } ); @@ -3514,6 +3307,7 @@ class Order { query_params["tags"] = tags; query_params["customer_id"] = customerId; query_params["order_type"] = orderType; + query_params["enforce_date_filter"] = enforceDateFilter; const xHeaders = {}; @@ -4185,86 +3979,6 @@ class Order { return response; } - /** - * @param {OrderPlatformValidator.ProcessManifestsParam} arg - Arg object - * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` - * @param {import("../PlatformAPIClient").Options} - Options - * @returns {Promise} - - * Success response - * @name processManifests - * @summary: Generate manifest - * @description: Generate manifest Id and PDF and tags the shipments with that manifest Id - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/processManifests/). - */ - async processManifests( - { body, requestHeaders } = { requestHeaders: {} }, - { responseHeaders } = { responseHeaders: false } - ) { - const { error } = OrderPlatformValidator.processManifests().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.processManifests().validate( - { - body, - }, - { abortEarly: false, allowUnknown: false } - ); - if (warrning) { - Logger({ - level: "WARN", - message: `Parameter Validation warrnings for platform > Order > processManifests \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}/manifests`, - query_params, - body, - { ...xHeaders, ...requestHeaders }, - { responseHeaders } - ); - - let responseData = response; - if (responseHeaders) { - responseData = response[0]; - } - - const { - error: res_error, - } = OrderPlatformModel.ProcessManifestItemResponse().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 > processManifests \n ${res_error}`, - }); - } - } - - return response; - } - /** * @param {OrderPlatformValidator.ReassignLocationParam} arg - Arg object * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}` @@ -4348,7 +4062,7 @@ class Order { * @param {OrderPlatformValidator.SendSmsNinjaParam} 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 sendSmsNinja * @summary: Send SMS * @description: Send SMS to customer based on the template that is selected - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/sendSmsNinja/). @@ -4402,7 +4116,7 @@ class Order { const { error: res_error, - } = OrderPlatformModel.OrderStatusResult().validate(responseData, { + } = OrderPlatformModel.BaseResponse().validate(responseData, { abortEarly: false, allowUnknown: true, }); @@ -4808,7 +4522,7 @@ class Order { * Success response * @name updateShipmentLock * @summary: Update a shipment lock - * @description: Modify shipment/bag lock and check status. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/updateShipmentLock/). + * @description: Modify shipment/bag lock status and update lock/unlock messages. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/updateShipmentLock/). */ async updateShipmentLock( { body, requestHeaders } = { requestHeaders: {} }, @@ -5051,12 +4765,11 @@ class Order { * @description: Uploads the consent signed by courier partner and seller to keep records - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/uploadConsents/). */ async uploadConsents( - { manifestId, body, requestHeaders } = { requestHeaders: {} }, + { body, requestHeaders } = { requestHeaders: {} }, { responseHeaders } = { responseHeaders: false } ) { const { error } = OrderPlatformValidator.uploadConsents().validate( { - manifestId, body, }, { abortEarly: false, allowUnknown: true } @@ -5070,7 +4783,6 @@ class Order { error: warrning, } = OrderPlatformValidator.uploadConsents().validate( { - manifestId, body, }, { abortEarly: false, allowUnknown: false } @@ -5089,7 +4801,7 @@ class Order { const response = await PlatformAPIClient.execute( this.config, "post", - `/service/platform/order-manage/v1.0/company/${this.config.companyId}/manifest/${manifestId}/upload-consent`, + `/service/platform/order-manage/v1.0/company/${this.config.companyId}/manifest/uploadConsent`, query_params, body, { ...xHeaders, ...requestHeaders }, diff --git a/sdk/platform/Order/OrderPlatformModel.d.ts b/sdk/platform/Order/OrderPlatformModel.d.ts index 7949bb6a5..2764398a5 100644 --- a/sdk/platform/Order/OrderPlatformModel.d.ts +++ b/sdk/platform/Order/OrderPlatformModel.d.ts @@ -17,57 +17,75 @@ export = OrderPlatformModel; * @typedef InvalidateShipmentCacheResponse * @property {InvalidateShipmentCacheNestedResponse[]} [response] */ +/** + * @typedef UpdatePackingErrorResponse + * @property {number} [status] - Represents the HTTP status code of the API response. + * @property {string} [error] - Descriptive error message that occurred. + */ /** * @typedef ErrorResponse - * @property {number} [status] - The HTTP status code corresponding to the error. - * @property {boolean} [success] - Indicates whether the operation was - * successful. Always false in the case of an error. + * @property {number} [status] - Represents the HTTP status code of the API response. + * @property {boolean} [success] - Indicates whether the API call was successful + * (true) or not (false). * @property {string} message - A message describing the error that occurred. * @property {string} [error_trace] - Error trace of the error that occurred. * @property {string} [error] */ /** * @typedef StoreReassign - * @property {number} store_id - * @property {number} [bag_id] - * @property {string} [affiliate_order_id] - * @property {string} [affiliate_id] - * @property {string} [item_id] - * @property {string} [fynd_order_id] - * @property {string} [set_id] - * @property {string} [affiliate_bag_id] - * @property {number[]} [reason_ids] - * @property {string} [mongo_article_id] + * @property {number} store_id - Unique id of the store. + * @property {number} [bag_id] - Identifier for the bag associated with the reassignment. + * @property {string} [affiliate_order_id] - Identifier for the affiliate order + * id associated with the reassignment. + * @property {string} [affiliate_id] - Identifier for the affiliate id + * associated with the reassignment. + * @property {string} [item_id] - Identifier for the item associated with the + * reassignment. + * @property {string} [fynd_order_id] - Identifier for the fynd order id + * associated with the reassignment. + * @property {string} [set_id] - Identifier for the set of items associated with + * the reassignment. + * @property {string} [affiliate_bag_id] - Identifiers for bags associated with + * the reassignment. + * @property {number[]} [reason_ids] - List of reason ids for the reassignment. + * @property {string} [mongo_article_id] - Identifier for the article id + * associated with the reassignment. */ /** * @typedef StoreReassignResponse - * @property {boolean} [success] - * @property {string} [message] + * @property {boolean} [success] - Indicates whether the API call was successful + * (true) or not (false). + * @property {string} [message] - A descriptive message providing additional + * information about the API response. */ /** - * @typedef Entities + * @typedef LockManagerEntities * @property {string} [id] - Shipment ID if 'entity_type': shipments | Bag Id if * 'entity_type': bags - * @property {string} [affiliate_order_id] - Application/Affiliate Order ID, - * Required if the ID is missing - * @property {string} [affiliate_id] - Application/Affiliate ID, Required if the - * ID is missing - * @property {string} reason_text - Reason For Shipment/Bag Action - * @property {string} [affiliate_bag_id] - Application/Affiliate Bag ID, - * Required if the ID is missing - * @property {string} [affiliate_shipment_id] - Application/Affiliate Shipment - * ID, Required if the ID is missing + * @property {string} [affiliate_order_id] - External identifier for the order + * id associated with shipment. + * @property {string} [affiliate_id] - Identifier for application associated + * with the shipment. + * @property {string} reason_text - A descriptive reason text for lock/unlock + * action of a shipment/bag. + * @property {string} [affiliate_bag_id] - External identifier for the bag id + * associated with orders/shipment. + * @property {string} [affiliate_shipment_id] - External identifier for the + * shipment id associated with orders/shipment. */ /** * @typedef UpdateShipmentLockPayload - * @property {string} entity_type - Expected entity_type: [bags, shipments] - * @property {string} action - Expected Actions: [lock, unlock, check] - * @property {string} action_type - Expected action_type: [complete, - * operational, financial] - * @property {Entities[]} entities - Shipment/Entity - * @property {boolean} [resume_tasks_after_unlock] - * @property {boolean} [lock_after_transition] - Lock Shipment After Transition - * @property {boolean} [unlock_before_transition] - Unlock Shipment After Transition + * @property {string} entity_type - Specifies the type of entity being locked or unlocked. + * @property {string} action - Indicates the action to be performed on the entity. + * @property {string} action_type - Specifies the type of action being taken. + * @property {LockManagerEntities[]} entities - List of entities to be locked or unlocked + * @property {boolean} [resume_tasks_after_unlock] - Indicates whether tasks + * should resume automatically after unlocking, such as DP assignment task and + * invoicing task. + * @property {boolean} [lock_after_transition] - Specifies whether the shipment + * should be locked automatically after a transition occurs. + * @property {boolean} [unlock_before_transition] - Specifies whether the + * shipment should be unlocked before a transition occurs. */ /** * @typedef OriginalFilter @@ -98,133 +116,174 @@ export = OrderPlatformModel; */ /** * @typedef UpdateShipmentLockResponse - * @property {boolean} [success] - * @property {string} [message] - * @property {CheckResponse[]} [check_response] - Entity Lock Status, If the - * action input as 'check' + * @property {boolean} [success] - Indicates whether the API call was successful + * (true) or not (false). + * @property {string} [message] - A descriptive message providing additional + * information about the API response, such as success confirmation or error details. + * @property {CheckResponse[]} [check_response] - An array containing the lock + * status of entities if the action performed was a 'check'. Each item in the + * array represents the status of a specific entity. */ /** * @typedef AnnouncementResponse - * @property {string} [to_datetime] - * @property {number} id - * @property {string} [description] - * @property {string} [platform_name] - * @property {string} [from_datetime] - * @property {string} [platform_id] - * @property {string} [title] - * @property {number} [company_id] - * @property {string} [logo_url] - * @property {string} [created_at] + * @property {string} [to_datetime] - The end date and time for the event, + * indicating when the issue is expected to be resolved. + * @property {number} id - A unique identifier for the announcement. + * @property {string} [description] - A brief description providing additional + * context about the announcement. + * @property {string} [platform_name] - The name of the platform associated with + * this announcement. + * @property {string} [from_datetime] - The start date and time of the + * announcement going live. + * @property {string} [platform_id] - The unique identifier associated with the + * platform. In this case, it appears to be the same as the platform name, + * which might indicate a specific category or type. + * @property {string} [title] - The title summarizing the nature of the announcement. + * @property {number} [company_id] - A unique identifier for the company related + * to this announcement. + * @property {string} [logo_url] - A URL linking to the logo image associated + * with the platform or company. + * @property {string} [created_at] - The timestamp of when this announcement was + * created, providing context for its age and relevance. */ /** * @typedef AnnouncementsResponse * @property {AnnouncementResponse[]} [announcements] - * @property {boolean} [success] - * @property {string} [message] + * @property {boolean} [success] - Indicates whether the API call was successful + * (true) or not (false). + * @property {number} [status] - Represents the HTTP status code of the API response */ /** * @typedef BaseResponse - * @property {boolean} [success] - * @property {string} [message] - */ -/** - * @typedef Click2CallResponse - * @property {string} call_id - Call ID from the provider - * @property {boolean} success - Success + * @property {boolean} [success] - Indicates whether the API call was successful + * (true) or not (false). + * @property {string} [message] - A descriptive message providing additional + * information about the API response. */ /** * @typedef ErrorDetail - * @property {boolean} [success] - * @property {string} [message] + * @property {boolean} [success] - Indicates whether the API call was successful + * (true) or not (false). + * @property {string} [message] - A descriptive message providing additional + * information about the API response. */ /** * @typedef ProductsReasonsFilters - * @property {number} [line_number] - Product/Bag Line number for the - * Product/Bag Identifier - * @property {string} [identifier] - Product/Bag Article/Item Identifier - * @property {number} [quantity] + * @property {number} [line_number] - The line number for the product or bag, + * which helps identify the specific item in a list or order. + * @property {string} [identifier] - The unique article or item identifier for + * the product or bag. + * @property {number} [quantity] - The quantity of the product or bag being referenced. */ /** * @typedef ProductsReasonsData - * @property {string} [reason_text] - * @property {number} [reason_id] + * @property {string} [reason_text] - A descriptive text providing the reason + * for the action or status associated with the product or bag. + * @property {number} [reason_id] - A unique identifier for the reason, used to + * reference specific reasons in the system. */ /** * @typedef ProductsReasons - * @property {ProductsReasonsFilters[]} [filters] + * @property {ProductsReasonsFilters[]} [filters] - A list of filters applied to + * specify which products the reasons pertain to. * @property {ProductsReasonsData} [data] */ /** * @typedef EntityReasonData - * @property {string} [reason_text] - * @property {number} [reason_id] + * @property {string} [reason_text] - A descriptive text providing the reason + * for the action or status associated with the product or bag. + * @property {number} [reason_id] - A unique identifier for the reason, used to + * reference specific reasons in the system. */ /** * @typedef EntitiesReasons - * @property {Object[]} [filters] + * @property {Object[]} [filters] - A list of filters applied to specify which + * entities the reasons pertain to. * @property {EntityReasonData} [data] */ /** * @typedef ReasonsData - * @property {ProductsReasons[]} [products] - * @property {EntitiesReasons[]} [entities] + * @property {ProductsReasons[]} [products] - A list of reasons specifically + * related to products involved in the shipment. + * @property {EntitiesReasons[]} [entities] - A list of reasons specifically + * related to shipment. */ /** * @typedef Products - * @property {number} [line_number] - Product/Bag Line number for the - * Product/Bag Identifier - * @property {string} [identifier] - Product/Bag Article/Item Identifier - * @property {number} [quantity] + * @property {number} [line_number] - The line number for the product or bag, + * which helps identify the specific item in a list or order. + * @property {string} [identifier] - The unique article or item identifier for + * the product or bag. + * @property {number} [quantity] - The quantity of the product or bag being referenced. */ /** * @typedef OrderItemDataUpdates - * @property {Object} [data] + * @property {Object} [data] - Contains the specific data for updating shipment bags data. */ /** * @typedef ProductsDataUpdatesFilters - * @property {number} [line_number] - Product/Bag Line number for the - * Product/Bag Identifier - * @property {string} [identifier] - Product/Bag Article/Item Identifier + * @property {number} [line_number] - The line number for the product or bag. + * @property {string} [identifier] - The unique article or item identifier for + * the product or bag. */ /** * @typedef ProductsDataUpdates - * @property {ProductsDataUpdatesFilters[]} [filters] - Filter for the Product/Bag - * @property {Object} [data] + * @property {ProductsDataUpdatesFilters[]} [filters] - A list of filters + * applied to specify which products or bags are targeted for updates. + * @property {Object} [data] - Contains the specific data for updating the + * products or bags. */ /** * @typedef EntitiesDataUpdates - * @property {Object[]} [filters] - * @property {Object} [data] + * @property {Object[]} [filters] - A list of filters used to specify which + * shipments are targeted for updates. + * @property {Object} [data] - Contains the specific data for updating the shipment. */ /** * @typedef DataUpdates - * @property {OrderItemDataUpdates[]} [order_item_status] - * @property {ProductsDataUpdates[]} [products] - * @property {EntitiesDataUpdates[]} [entities] + * @property {OrderItemDataUpdates[]} [order_item_status] - A list of updates + * related to the status of order items. + * @property {ProductsDataUpdates[]} [products] - A list of updates related to + * the properties of products or bags. + * @property {EntitiesDataUpdates[]} [entities] - A list of updates related to + * the properties of any relevant entities. */ /** * @typedef ShipmentsRequest - * @property {string} identifier - Shipment ID + * @property {string} identifier - Unique identifier for the shipment. * @property {ReasonsData} [reasons] - * @property {Products[]} [products] - Product/Bag to be updated + * @property {Products[]} [products] - A list of products or bags that need to + * be updated as part of the shipment status change. * @property {DataUpdates} [data_updates] */ /** * @typedef StatuesRequest - * @property {string} [status] - * @property {ShipmentsRequest[]} [shipments] - * @property {string} [exclude_bags_next_state] - State to be change for - * Remaining Bag/Products - * @property {boolean} [split_shipment] - Flag to split shipment - */ -/** - * @typedef UpdateShipmentStatusRequest - * @property {boolean} [force_transition] - Force Transition - * @property {StatuesRequest[]} [statuses] - * @property {boolean} [lock_after_transition] - Lock Shipment After Transition - * @property {boolean} [unlock_before_transition] - Unlock Shipment After Transition - * @property {boolean} [task] - To Run Status Update as a background Task - * @property {boolean} [resume_tasks_after_unlock] - Resume Tasks After Unlock + * @property {string} [status] - The new status to be assigned to the shipment(s). + * @property {ShipmentsRequest[]} [shipments] - A list of shipments to which the + * new status will be applied. + * @property {string} [exclude_bags_next_state] - Specifies the state to which + * remaining bags or products should be changed, effectively excluding them + * from the current status update. + * @property {boolean} [split_shipment] - A flag indicating whether the shipment + * should be split into multiple parts. If set to true, the shipment will be + * divided according to the specified logic or criteria. + */ +/** + * @typedef UpdateShipmentStatusRequestSchema + * @property {boolean} [force_transition] - Indicates whether to force the + * status transition, overriding any restrictions or checks that may normally apply. + * @property {StatuesRequest[]} [statuses] - A list of status updates to be + * applied to the shipment. + * @property {boolean} [lock_after_transition] - Specifies whether the shipment + * should be locked automatically after a transition occurs. + * @property {boolean} [unlock_before_transition] - Specifies whether the + * shipment should be unlocked before a transition occurs. + * @property {boolean} [task] - Indicates whether to run the status update as a + * background task, allowing other processes to continue without waiting for + * this operation to complete. + * @property {boolean} [resume_tasks_after_unlock] - Indicates whether tasks + * should resume automatically after unlocking, such as DP assignment task and + * invoicing task. */ /** * @typedef ShipmentsResponse @@ -245,196 +304,6 @@ export = OrderPlatformModel; * @typedef UpdateShipmentStatusResponseBody * @property {StatuesResponse[]} [statuses] */ -/** - * @typedef OrderUser - * @property {number} phone - * @property {string} last_name - * @property {string} [address1] - * @property {string} state - * @property {string} pincode - * @property {string} first_name - * @property {number} mobile - * @property {string} [address2] - * @property {string} email - * @property {string} country - * @property {string} city - */ -/** - * @typedef OrderPriority - * @property {string} [fulfilment_priority_text] - * @property {string} [affiliate_priority_code] - * @property {number} [fulfilment_priority] - */ -/** - * @typedef ArticleDetails - * @property {string} _id - * @property {number} brand_id - * @property {Object} dimension - * @property {Object} category - * @property {Object} weight - * @property {Object} attributes - * @property {number} quantity - */ -/** - * @typedef LocationDetails - * @property {string} fulfillment_type - * @property {ArticleDetails[]} articles - * @property {number} fulfillment_id - */ -/** - * @typedef ShipmentDetails - * @property {string} [box_type] - * @property {number} shipments - * @property {number} fulfillment_id - * @property {ArticleDetails[]} articles - * @property {string} [dp_id] - * @property {Object} [meta] - * @property {string} affiliate_shipment_id - * @property {Object} [dp_options] - * @property {boolean} [lock_status] - * @property {Object} [action_to_status] - */ -/** - * @typedef ShipmentConfig - * @property {LocationDetails} [location_details] - * @property {string} source - * @property {string} to_pincode - * @property {ShipmentDetails[]} shipment - * @property {string} identifier - * @property {string} payment_mode - * @property {string} action - * @property {string} journey - */ -/** - * @typedef ShipmentData - * @property {ShipmentConfig} shipment_data - */ -/** - * @typedef MarketPlacePdf - * @property {string} [invoice] - * @property {string} [label] - */ -/** - * @typedef AffiliateBag - * @property {MarketPlacePdf} [pdf_links] - * @property {number} store_id - * @property {string} sku - * @property {number} discount - * @property {number} unit_price - * @property {number} price_effective - * @property {string} affiliate_store_id - * @property {Object} identifier - * @property {string} seller_identifier - * @property {string} item_size - * @property {number} amount_paid - * @property {string} fynd_store_id - * @property {number} item_id - * @property {number} delivery_charge - * @property {number} avl_qty - * @property {number} price_marked - * @property {number} quantity - * @property {number} company_id - * @property {string} hsn_code_id - * @property {string} _id - * @property {Object} affiliate_meta - * @property {string} modified_on - * @property {number} transfer_price - */ -/** - * @typedef UserData - * @property {OrderUser} [shipping_user] - * @property {OrderUser} [billing_user] - */ -/** - * @typedef OrderInfo - * @property {string} [affiliate_order_id] - * @property {number} cod_charges - * @property {Object} items - * @property {number} discount - * @property {OrderUser} billing_address - * @property {Object} [payment] - * @property {OrderPriority} [order_priority] - * @property {ShipmentData} [shipment] - * @property {number} delivery_charges - * @property {OrderUser} shipping_address - * @property {number} order_value - * @property {string} payment_mode - * @property {AffiliateBag[]} bags - * @property {UserData} user - * @property {string} [coupon] - */ -/** - * @typedef AffiliateAppConfigMeta - * @property {string} value - * @property {string} name - */ -/** - * @typedef AffiliateAppConfig - * @property {string} id - * @property {string} [description] - * @property {string} updated_at - * @property {string} name - * @property {string} token - * @property {AffiliateAppConfigMeta[]} [meta] - * @property {string} owner - * @property {string} secret - * @property {string} created_at - */ -/** - * @typedef AffiliateInventoryArticleAssignmentConfig - * @property {boolean} [post_order_reassignment] - */ -/** - * @typedef AffiliateInventoryPaymentConfig - * @property {string} [source] - * @property {string} [mode_of_payment] - */ -/** - * @typedef AffiliateInventoryStoreConfig - * @property {Object} [store] - */ -/** - * @typedef AffiliateInventoryOrderConfig - * @property {boolean} [force_reassignment] - */ -/** - * @typedef AffiliateInventoryLogisticsConfig - * @property {boolean} [dp_assignment] - */ -/** - * @typedef AffiliateInventoryConfig - * @property {AffiliateInventoryArticleAssignmentConfig} [article_assignment] - * @property {AffiliateInventoryPaymentConfig} [payment] - * @property {AffiliateInventoryStoreConfig} [inventory] - * @property {AffiliateInventoryOrderConfig} [order] - * @property {AffiliateInventoryLogisticsConfig} [logistics] - */ -/** - * @typedef AffiliateConfig - * @property {AffiliateAppConfig} [app] - * @property {AffiliateInventoryConfig} [inventory] - * @property {number} [app_company_id] - */ -/** - * @typedef Affiliate - * @property {string} id - * @property {AffiliateConfig} [config] - * @property {string} token - */ -/** - * @typedef AffiliateStoreIdMapping - * @property {number} store_id - * @property {string} marketplace_store_id - */ -/** - * @typedef OrderConfig - * @property {boolean} [create_user] - * @property {string} [article_lookup] - * @property {string} [bag_end_state] - * @property {Affiliate} affiliate - * @property {string} [store_lookup] - * @property {AffiliateStoreIdMapping[]} affiliate_store_id_mapping - */ /** * @typedef DPConfiguration * @property {string} [shipping_by] - Shipping_by denotes dp assignment @@ -449,7 +318,7 @@ export = OrderPlatformModel; */ /** * @typedef CreateOrderConfig - * @property {DPConfiguration} [dp_configuration] + * @property {DPConfiguration} dp_configuration * @property {string} [integration_type] - Flag denotes integration type which * is used to retrieve specific configurations and application details * relevant to channel fulfillment. @@ -462,132 +331,161 @@ export = OrderPlatformModel; * dimensions by OMS .If false, shipment details, including location_id, must * be passed to FDK for processing. */ -/** - * @typedef CreateOrderPayload - * @property {string} affiliate_id - * @property {OrderInfo} order_info - * @property {OrderConfig} order_config - */ /** * @typedef CreateOrderResponse - * @property {string} fynd_order_id + * @property {string} fynd_order_id - A string that represents the unique + * identifier assigned to the order. */ /** * @typedef DispatchManifest - * @property {string} manifest_id - Id of the manifest. + * @property {string} manifest_id - The unique identifier for the manifest being + * dispatched. */ /** * @typedef SuccessResponse - * @property {boolean} [success] - * @property {string} [message] + * @property {boolean} [success] - Indicates whether the API call was successful + * (true) or not (false). + * @property {string} [message] - A descriptive message providing additional + * information about the API response. */ /** * @typedef ActionInfo - * @property {string} display_text - * @property {number} id - * @property {string} description - * @property {string} slug + * @property {string} display_text - A user-friendly text that represents the + * action associated with the permission. + * @property {number} id - A unique identifier for the permission, used for + * referencing within the system. + * @property {string} description - A detailed explanation of what the + * permission allows the user to do. + * @property {string} slug - A URL-friendly string that serves as a unique + * identifier for the permission, often used in routing or API calls. */ /** * @typedef GetActionsResponse - * @property {ActionInfo[]} [permissions] + * @property {ActionInfo[]} [permissions] - A response object that contains a + * list of permissions available to the user. */ /** * @typedef HistoryReason - * @property {string} [text] - * @property {string} [category] - * @property {string} [state] - * @property {string} [dislay_name] - * @property {number} [code] - * @property {number} [quantity] + * @property {string} [text] - A reason for the activity or change. + * @property {string} [category] - Category of the reason for the status change. + * @property {string} [state] - Current state related to the reason. + * @property {string} [dislay_name] - Display name of the reason for better user + * understanding. + * @property {number} [code] - Unique code identifying the reason. + * @property {number} [quantity] - Quantity related to the reason, if applicable. */ /** * @typedef HistoryMeta - * @property {number} [store_id] - * @property {string} [status] - * @property {string} [status1] - * @property {string} [call_id] - * @property {string} [starttime] + * @property {number} [store_id] - Unique identifier for the store involved in + * the activity. + * @property {string} [status] - Current status of the activity or item. + * @property {string} [status1] - Additional status information if necessary. + * @property {string} [call_id] - Identifier for any related calls, if applicable. + * @property {string} [starttime] - Start time of the activity. * @property {HistoryReason} [reason] - * @property {string} [short_link] - * @property {string} [endtime] - * @property {string} [store_name] - * @property {string} [caller] - * @property {string} [store_code] - * @property {string} [billsec] - * @property {string} [recordpath] - * @property {string} [status2] - * @property {string} [callerid] - * @property {string} [duration] - * @property {string} [channel_type] - * @property {string} [activity_comment] - * @property {string} [activity_type] - * @property {string} [receiver] - * @property {string} [recipient] - * @property {string} [slug] - * @property {string} [message] + * @property {string} [short_link] - A shortened link related to the activity, + * if available. + * @property {string} [endtime] - End time of the activity. + * @property {string} [store_name] - Name of the store involved in the activity. + * @property {string} [caller] - Name of the caller associated with the activity. + * @property {string} [store_code] - Code associated with the store. + * @property {string} [billsec] - Duration of the billable period, if applicable. + * @property {string} [recordpath] - Path to any related recordings, if applicable. + * @property {string} [status2] - Additional status information if necessary. + * @property {string} [callerid] - Caller ID associated with the activity, if applicable. + * @property {string} [duration] - Total duration of the activity. + * @property {string} [channel_type] - Type of channel used for the activity, if + * applicable. + * @property {string} [activity_comment] - Comments related to the activity, if + * applicable. + * @property {string} [activity_type] - Type of activity being recorded, if applicable. + * @property {string} [receiver] - Name of the receiver involved in the + * activity, if applicable. + * @property {string} [recipient] - Recipient of the activity, if applicable. + * @property {string} [slug] - Slug identifier for the activity. + * @property {string} [message] - Any additional messages related to the activity. */ /** * @typedef HistoryDict - * @property {string} [display_message] - Display Message - * @property {number} [bag_id] - Bag ID - * @property {string} [ticket_url] - Ticket URL - * @property {string} [l3_detail] - L3 details of bag - * @property {string} createdat - Create date - * @property {string} [ticket_id] - Ticket ID - * @property {string} type - Type of history, Expected Values: [ - * activity_status, activity_escalation, activity_comment, - * outbound_notification, outbound_voice ] - * @property {string} [l2_detail] - L2 details of bag - * @property {string} [assigned_agent] - Assigned Agent - * @property {HistoryMeta} [meta] - Meta - * @property {string} [l1_detail] - L1 details of bag - * @property {string} message - History Message or comment - * @property {string} user - User who created the history + * @property {string} [display_message] - User-friendly message displaying the + * activity or status change. + * @property {number} [bag_id] - Identifier for the bag associated with the activity. + * @property {string} [ticket_url] - URL for any related tickets. + * @property {string} [l3_detail] - L3 details regarding the bag or activity. + * @property {string} createdat - Date and time when the activity was created. + * @property {string} [created_ts] - Timestamp for when the activity was created + * in ISO format. + * @property {string} [ticket_id] - Unique identifier for the ticket associated + * with the activity. + * @property {string} type - Type of activity history + * @property {string} [l2_detail] - L2 details regarding the bag or activity. + * @property {string} [assigned_agent] - Name of the agent assigned to the activity. + * @property {HistoryMeta} [meta] - Metadata about the activity + * @property {string} [l1_detail] - L1 details regarding the bag or activity. + * @property {string} message - Message or comment regarding the history. + * @property {string} user - Name of the user who created the history record. */ /** * @typedef ShipmentHistoryResponse - * @property {boolean} [success] - * @property {HistoryDict[]} activity_history + * @property {boolean} [success] - Indicates whether the API call was successful + * (true) or not (false). + * @property {HistoryDict[]} activity_history - A list of activity records + * related to the shipment, providing details on actions taken, comments + * added, or notifications sent. */ /** * @typedef PostHistoryFilters - * @property {string} shipment_id - * @property {string} [line_number] - * @property {string} [identifier] + * @property {string} shipment_id - Unique identifier for the shipment + * @property {string} [line_number] - Optional field to specify a particular + * line item in the shipment. + * @property {string} [identifier] - Optional field for any additional + * identifier related to the shipment. */ /** * @typedef PostHistoryData - * @property {string} user_name - * @property {string} message + * @property {string} user_name - The name or email of the user who performed + * the action or recorded the entry. + * @property {string} message - A descriptive message detailing the action taken + * or the status related to the shipment. */ /** * @typedef PostHistoryDict - * @property {PostHistoryFilters[]} filters + * @property {PostHistoryFilters[]} filters - A list of filter objects, each + * following the PostHistoryFilters schema, used to identify which shipment + * history records are relevant. * @property {PostHistoryData} data */ /** * @typedef PostShipmentHistory - * @property {PostHistoryDict[]} [activity_history] + * @property {PostHistoryDict[]} [activity_history] - A list of activity history + * records, each adhering to the PostHistoryDict schema. */ /** * @typedef SmsDataPayload - * @property {number} shipment_id - ShipmentId - * @property {number} phone_number - Phone number for communication - * @property {number} [amount_paid] - Data mapped in Communication template: amount_paid - * @property {string} order_id - OrderId - * @property {string} [payment_mode] - Data mapped in Communication template: payment_mode - * @property {string} [customer_name] - Data mapped in Communication template: - * customer_name - * @property {string} [brand_name] - Data mapped in Communication template: brand_name - * @property {string} message - Message to be send in SMS - * @property {string} country_code - Country code for SMS + * @property {number} shipment_id - Unique identifier for the shipment + * associated with the SMS. + * @property {number} phone_number - The recipient's phone number for communication. + * @property {number} [amount_paid] - The amount that has been paid, as mapped + * in the communication template. + * @property {string} order_id - Unique identifier for the order associated with + * the shipment. + * @property {string} [payment_mode] - The mode of payment used for the order, + * as mapped in the communication template. + * @property {string} [customer_name] - The name of the customer, as mapped in + * the communication template. + * @property {string} [brand_name] - The name of the brand associated with the + * order, as mapped in the communication template. + * @property {string} message - The content of the SMS to be sent to the recipient. + * @property {string} country_code - The country code for the recipient's phone + * number, necessary for proper SMS delivery. */ /** * @typedef SendSmsPayload - * @property {number} bag_id - Bag_id for the activity history track - * @property {SmsDataPayload} [data] - SMS Data - * @property {string} slug - Slug name for the template mapped in pointblank + * @property {number} bag_id - Unique identifier for the bag, used for tracking + * activity history related to this SMS. + * @property {SmsDataPayload} [data] - Contains the SMS data necessary for communication. + * @property {string} slug - Slug name for the SMS template mapped in the + * communication system, used to identify the specific messaging format or content. */ /** * @typedef OrderDetails @@ -625,23 +523,32 @@ export = OrderPlatformModel; */ /** * @typedef Meta - * @property {number} [kafka_emission_status] - * @property {string} [state_manager_used] + * @property {number} [kafka_emission_status] - An integer representing the + * status of the message upon emission to Kafka. 0 indicates success, while 1 + * indicates failure. + * @property {string} [state_manager_used] - A string that specifies the state + * manager utilized for handling the order's state. */ /** * @typedef ShipmentDetail - * @property {string} [shipment_id] - * @property {string} [status] - * @property {number} id - * @property {number[]} [bag_list] + * @property {string} [shipment_id] - Unique identifier for the shipment + * associated with the order. + * @property {string} [status] - A string representing the current status of the shipment + * @property {number} id - An integer that serves as a unique identifier for the + * shipment detail + * @property {number[]} [bag_list] - A list of bag identifiers associated with + * the shipment. * @property {Meta} meta - * @property {string} [remarks] + * @property {string} [remarks] - A string for any additional comments or notes + * related to the shipment, */ /** * @typedef OrderStatusData * @property {OrderDetails} order_details - * @property {string[]} [errors] - * @property {ShipmentDetail[]} [shipment_details] + * @property {string[]} [errors] - A list of any errors that occurred while + * attempting to obtain the order's status. + * @property {ShipmentDetail[]} [shipment_details] - A list of the individual + * shipments associated with the order and their current statuses. * @property {string} [text] - A label or description of the delivery status, * such as 'Expected Delivery Date'. * @property {string} [value] - The detailed delivery status or time @@ -653,22 +560,25 @@ export = OrderPlatformModel; */ /** * @typedef OrderStatusResult - * @property {string} success - * @property {OrderStatusData[]} [result] + * @property {string} success - Indicates whether the API call was successful + * (true) or not (false). + * @property {OrderStatusData[]} [result] - The order's current status and + * related shipment details. */ /** * @typedef Dimension - * @property {string} [packaging_type] - * @property {string} [weight] - * @property {string} [height] - * @property {number} [length] - * @property {number} [width] + * @property {string} [packaging_type] - Describes the type of packaging used. + * @property {number} [weight] - The weight of the package in kilograms. + * @property {number} [height] - The height of the package in centimetres. + * @property {number} [length] - The length of the package in centimetres. + * @property {number} [width] - The width of the package in centimetres. */ /** * @typedef UpdatePackagingDimensionsPayload - * @property {string} shipment_id - * @property {string} current_status - * @property {Dimension[]} dimension + * @property {string} shipment_id - Unique identifier for the shipment for which + * the packaging dimensions are being updated. + * @property {string} current_status - The current status of the shipment. + * @property {Dimension[]} dimension - A list of dimensions for the packaging. */ /** * @typedef UpdatePackagingDimensionsResponse @@ -676,16 +586,24 @@ export = OrderPlatformModel; */ /** * @typedef Tax - * @property {string} name - * @property {number} rate - * @property {Object[]} [breakup] - * @property {Object} amount + * @property {string} name - The name of the tax, indicating its purpose (e.g., + * VAT, sales tax). + * @property {number} rate - The tax rate as a decimal, applied to the transaction amount. + * @property {Object[]} [breakup] - An array of objects detailing the components + * or breakdown of the tax applied. + * @property {Object} amount - An object representing the total tax amount + * calculated for the transaction. + */ +/** + * @typedef AmountSchema + * @property {string} [currency] - The value indicating the currency used for + * the transactions. + * @property {number} [value] - The final amount of the charge. */ /** * @typedef Charge - * @property {string} name - The name of the charge. - * @property {Object} amount - The monetary value of the charge, including value - * and currency details. + * @property {string} name - The name of the charge that indicates its purpose. + * @property {AmountSchema} amount * @property {Tax} [tax] * @property {string} [code] - An optional code associated with the charge for * internal tracking. @@ -693,40 +611,49 @@ export = OrderPlatformModel; */ /** * @typedef LineItem - * @property {Charge[]} [charges] - * @property {Object} [meta] - Meta data of the articles or line items. - * @property {string} [custom_message] - Meta data of the articles or line items. + * @property {Charge[]} [charges] - An array of Charge objects related to the line item. + * @property {Object} [meta] - An object containing metadata relevant to + * articles or line items. + * @property {string} [custom_message] - A string for any special instructions + * or messages related to the line item. * @property {number} [quantity] - Quantity of the articles or line items. - * @property {string} seller_identifier - Seller identifier of the articles or line items. + * @property {string} seller_identifier - Unique identifier of the articles or + * line items set by seller. * @property {string} [external_line_id] - External unique identifier of the * articles or line items. */ /** * @typedef ProcessingDates - * @property {Object} [dp_pickup_slot] - * @property {string} [dispatch_after_date] - * @property {string} [dispatch_by_date] - * @property {string} [confirm_by_date] - * @property {Object} [customer_pickup_slot] - * @property {string} [pack_by_date] + * @property {Object} [dp_pickup_slot] - An object that provides details about + * the designated pickup time slot for the order. + * @property {string} [dispatch_after_date] - A string indicating the date after + * which the order will be dispatched. + * @property {string} [dispatch_by_date] - A string representing the latest date + * by which the order must be dispatched to meet delivery expectations. + * @property {string} [confirm_by_date] - A string that indicates the deadline + * for the merchant to confirm the order. + * @property {Object} [customer_pickup_slot] - An object that provides details + * of the pick-up time slot set by the customer. + * @property {string} [pack_by_date] - A string indicating the date by which the + * order must be packaged for fulfillment. */ /** * @typedef Shipment - * @property {LineItem[]} line_items + * @property {LineItem[]} line_items - An array of LineItem objects that + * represent the items included in the shipment. * @property {string} [external_shipment_id] - External shipment identifier or * marketplace's unique shipment identifier. * @property {ProcessingDates} [processing_dates] - * @property {Object} [meta] - Meta data of the shipment. - * @property {number} [priority] - Integer value indicating high and low priority. + * @property {Object} [meta] - An object containing metadata related to the shipment. + * @property {number} [priority] - An integer indicating the priority level of + * the shipment. * @property {number} [location_id] - Location Identifier or Store/Fulfillment * Identifier of the shipment- This field is mandatory when * optimal_shipment_creation flag is set to false, indicating that shipments * must be associated with a specific location. When * `optimal_shipment_creation` is true, the optimal location for order * creation would be assigned, location_id becomes optional. - * @property {string} [order_type] - The order type of shipment HomeDelivery - - * If the customer wants the order home-delivered PickAtStore - If the - * customer wants the handover of an order at the store itself. + * @property {string} [order_type] - The order type of shipment. * @property {string} [parent_type] * @property {string} [store_invoice_id] * @property {string} [lock_status] @@ -756,187 +683,179 @@ export = OrderPlatformModel; * @property {ShipmentGstDetails} [gst] */ /** - * @typedef ShippingInfo - * @property {string} [alternate_mobile_number] - * @property {string} [state] - * @property {string} [customer_code] - * @property {string} [shipping_type] - * @property {string} [middle_name] - * @property {string} [primary_mobile_number] - * @property {string} [last_name] - * @property {Object} [geo_location] - * @property {string} [gender] - * @property {string} [house_no] - * @property {string} [first_name] - * @property {string} [title] - * @property {string} [landmark] - * @property {string} [country] - * @property {string} [address_type] - * @property {string} [state_code] - * @property {string} [city] - * @property {string} [external_customer_code] - * @property {string} [floor_no] - * @property {string} [alternate_email] - * @property {Object[]} [slot] - * @property {string} [address] - * @property {string} [area] - * @property {string} [address1] - * @property {string} [pincode] - * @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 GeoLocationSchema + * @property {number} [latitude] - A number representing the geographical + * latitude of the location. + * @property {number} [longitude] - A number representing the geographical + * longitude of the location */ /** - * @typedef BillingInfo - * @property {string} [alternate_mobile_number] - * @property {string} [state] - * @property {string} [customer_code] - * @property {string} [middle_name] - * @property {string} [primary_mobile_number] - * @property {string} [last_name] - * @property {string} [gender] - * @property {string} [house_no] - * @property {string} [first_name] - * @property {string} [title] - * @property {string} [country] - * @property {string} [state_code] - * @property {string} [city] - * @property {string} [external_customer_code] - * @property {string} [floor_no] - * @property {string} [alternate_email] - * @property {string} [address] - * @property {string} [area] - * @property {string} [address1] - * @property {string} [pincode] - * @property {string} [primary_email] - * @property {string} [address2] - * @property {string} [landmark] - * @property {string} [country_code] + * @typedef ShippingInfo + * @property {string} [alternate_mobile_number] - A string for an alternate + * mobile number to reach the customer, providing an additional contact method. + * @property {string} [state] - A string representing the name of the state for + * shipping purposes. + * @property {string} [customer_code] - A string representing the customer's + * unique identifier in the seller's system. + * @property {string} [shipping_type] - A string describing the shipping type. + * @property {string} [middle_name] - A string containing the customer's middle name. + * @property {string} [primary_mobile_number] - A string for the customer's + * primary mobile number. + * @property {string} [last_name] - A string containing the customer's last name. + * @property {GeoLocationSchema} [geo_location] + * @property {string} [gender] - A string representing the customer's gender. + * @property {string} [house_no] - A string representing the house or apartment + * number of the customer. + * @property {string} [first_name] - A string representing the customer's first name. + * @property {string} [title] - A string representing the customer's title or prefix. + * @property {string} [landmark] - A string representing a landmark or reference + * point near the customer's location. + * @property {string} [country] - A string representing the customer's country. + * @property {string} [address_type] - A string representing the address type in + * the seller's system. + * @property {string} [state_code] - A string representing the state code of the + * customer's location. + * @property {string} [city] - A string representing the city of the customer's location. + * @property {string} [external_customer_code] - A string representing an + * external customer code in the seller's system. + * @property {string} [floor_no] - A string representing the floor number of the + * customer's location. + * @property {string} [alternate_email] - A string representing an alternate + * email address for the customer. + * @property {Object[]} [slot] - A list of objects representing available time + * slot for delivery or pickup. + * @property {string} [address] - A comma-separated string representing the address. + * @property {string} [area] - A string representing the area of the customer's location. + * @property {string} [address1] - A string representing the first line of the address. + * @property {string} [pincode] - A string representing the pincode of the + * customer's location. + * @property {string} [primary_email] - A string representing the primary email + * address for the customer. + * @property {string} [address2] - A string representing the second line of the address. + * @property {string} [country_code] - A string representing the country code of + * the customer's location. * @property {string} [country_iso_code] - Country Code in ISO 2 format (e.g. US, IN) */ /** * @typedef UserInfo - * @property {string} [user_id] - * @property {string} [user_type] - * @property {string} [primary_email] - * @property {string} [gender] - * @property {string} first_name - * @property {string} [last_name] - * @property {string} primary_mobile_number + * @property {string} [user_id] - The unique identifier assigned to the user. + * @property {string} [user_type] - A string representing the type of the user. + * @property {string} [primary_email] - A string representing the primary email + * address for the user. + * @property {string} [gender] - A string specifying the gender of the user. + * @property {string} first_name - A string which specifies the user's first name. + * @property {string} [last_name] - A string which specifies the user's last name. + * @property {string} primary_mobile_number - A string representing the primary + * mobile number for the user. */ /** * @typedef TaxInfo - * @property {string} [b2b_gstin_number] - * @property {string} [gstin] - * @property {string} [pan_no] + * @property {string} [b2b_gstin_number] - A string representing the GSTIN + * (Goods and Services Tax Identification Number) for business-to-business + * transactions. + * @property {string} [gstin] - A string that specifies the GSTIN for the seller. + * @property {string} [pan_no] - A string representing the PAN assigned to + * individuals or entities for tax purposes in India. */ /** * @typedef PaymentMethod - * @property {string} collect_by - * @property {string} mode - * @property {string} refund_by - * @property {string} name - * @property {number} amount - * @property {Object} [meta] - * @property {Object} [transaction_data] + * @property {string} collect_by - A string indicating the entity responsible + * for collecting the payment. + * @property {string} mode - A string that specifies the mode of payment. + * @property {string} refund_by - A string that indicates the entity responsible + * for processing refunds. + * @property {string} name - A string representing the name of the payment method. + * @property {number} amount - A number representing the monetary value + * associated with the payment method. + * @property {Object} [meta] - An object for any additional metadata related to + * the payment method. + * @property {Object} [transaction_data] - An object that holds + * transaction-specific information. */ /** * @typedef PaymentInfo - * @property {string} primary_mode - * @property {PaymentMethod[]} [payment_methods] + * @property {string} primary_mode - A string that indicates the primary payment + * method used for the order. + * @property {string} [payment_mode] - A string that indicates the payment mode + * used for the order. + * @property {PaymentMethod[]} [payment_methods] - A lists all available payment + * methods used in the transaction. */ /** * @typedef CreateOrderAPI - * @property {Shipment[]} shipments + * @property {Shipment[]} shipments - An array of shipment objects that detail + * the items being shipped as part of the order. * @property {ShippingInfo} shipping_info - * @property {BillingInfo} billing_info - * @property {Object} [currency_info] - * @property {string} [external_order_id] - * @property {Charge[]} [charges] - * @property {string} [external_creation_date] - * @property {Object} [meta] + * @property {ShippingInfo} billing_info + * @property {Object} [currency_info] - An object that provides details about + * the currency in which the order is processed, including currency code and + * conversion rates if applicable. + * @property {string} [external_order_id] - A unique identifier for the order + * assigned by an external system. + * @property {Charge[]} [charges] - An array of charge objects that detail the + * various fees associated with the order. + * @property {string} [external_creation_date] - A string that specifies the + * date and time when the order was created in an external system + * @property {Object} [meta] - A generic object that can hold any additional + * metadata related to the order. * @property {TaxInfo} [tax_info] - * @property {CreateOrderConfig} [config] + * @property {CreateOrderConfig} config * @property {PaymentInfo} payment_info * @property {UserInfo} [user_info] - * @property {number} [ordering_store_id] - * @property {string} [order_platform] + * @property {number} [ordering_store_id] - Unique identifier for the store + * where the order was placed. + * @property {string} [order_platform] - The platform used to place the order. + * @property {string} [order_type] - A string that specifies the type of order + * being placed. + * @property {string} [fynd_order_id] - Unique identifier for the order. + * @property {string} [application_id] - A unique identifier for the application + * or system that is making the order request. + * @property {string} [external_shipment_id] - External shipment identifier or + * marketplace's unique shipment identifier. */ /** * @typedef CreateOrderErrorReponse - * @property {string} [request_id] - * @property {number} status - * @property {Object} [info] - * @property {string} [stack_trace] - * @property {string} [code] - * @property {string} [meta] - * @property {string} message - * @property {string} [exception] - */ -/** - * @typedef DpConfiguration - * @property {string} [shipping_by] - */ -/** - * @typedef PaymentMethods - * @property {string} [collect_by] - * @property {string} [refund_by] - * @property {string} [mode] - */ -/** - * @typedef CreateChannelPaymentInfo - * @property {string} [source] - * @property {PaymentMethods[]} [payment_methods] - * @property {string} [mode_of_payment] - */ -/** - * @typedef CreateChannelConfig - * @property {DpConfiguration} [dp_configuration] - * @property {string} [shipment_assignment] - * @property {boolean} [location_reassignment] - * @property {Object} [logo_url] - * @property {CreateChannelPaymentInfo} [payment_info] - * @property {string[]} [lock_states] - */ -/** - * @typedef CreateChannelConfigData - * @property {CreateChannelConfig} [config_data] - */ -/** - * @typedef CreateChannelConifgErrorResponse - * @property {string} [error] - */ -/** - * @typedef CreateChannelConfigResponse - * @property {boolean} [is_inserted] - * @property {boolean} [is_upserted] - * @property {boolean} [acknowledged] + * @property {boolean} [success] - Indicates whether the API call was successful + * (true) or not (false). + * @property {string} [errors] - Contains details about the error. + * @property {number} [status_code] - Represents the HTTP status code of the API response. + * @property {string} [fynd_order_id] - A string that represents the unique + * identifier assigned to the order. */ /** - * @typedef UploadConsent - * @property {string} consent_url - * @property {string} manifest_id + * @typedef UploadManifestConsent + * @property {string} consent_url - A URL that directs users to a consent page + * or document related to the upload of the manifest. + * @property {string} manifest_id - The unique identifier for the manifest being uploaded. */ /** * @typedef PlatformOrderUpdate - * @property {string} order_id + * @property {string} order_id - A string that represents the unique identifier + * assigned to the order. */ /** * @typedef ResponseDetail - * @property {boolean} [success] - * @property {string[]} [message] + * @property {boolean} [success] - Indicates whether the API call was successful + * (true) or not (false). + * @property {string} [message] - A descriptive message providing additional + * information about the API response. + * @property {number} [status] - Represents the HTTP status code of the API response. */ /** * @typedef FyndOrderIdList - * @property {string[]} [fynd_order_id] + * @property {string[]} [fynd_order_id] - An array of strings that represent + * unique identifiers assigned to an order. + * @property {string} [start_date] - A string representing the start date for + * the order status query. + * @property {string} [end_date] - A string representing the end date for the + * order status query. + * @property {number} [mobile] - An integer representing the mobile number + * associated with the order. */ /** * @typedef OrderStatus - * @property {FyndOrderIdList[]} [order_details] - * @property {string} start_date - * @property {string} end_date - * @property {number} mobile + * @property {FyndOrderIdList[]} [order_details] - An array of objects that + * provide details about the orders, including their respective order IDs. */ /** * @typedef BagStateTransitionMap @@ -945,151 +864,186 @@ export = OrderPlatformModel; */ /** * @typedef RoleBaseStateTransitionMapping - * @property {boolean} [success] - * @property {string[]} [next_statuses] - */ -/** - * @typedef FetchCreditBalanceRequestPayload - * @property {string} affiliate_id - * @property {string} seller_id - * @property {string} customer_mobile_number - */ -/** - * @typedef CreditBalanceInfo - * @property {string} [total_credited_balance] - * @property {string} [reason] - * @property {string} [customer_mobile_number] - */ -/** - * @typedef FetchCreditBalanceResponsePayload - * @property {boolean} success - * @property {CreditBalanceInfo} data + * @property {boolean} [success] - Indicates whether the API call was successful + * (true) or not (false). + * @property {string[]} [next_statuses] - A list of possible next statuses that + * can be transitioned to from the current status. */ /** * @typedef RefundModeConfigRequestPayload - * @property {string} fynd_order_id - * @property {number} seller_id - * @property {string} affiliate_id - * @property {string} [customer_mobile_number] + * @property {string} fynd_order_id - A unique identifier for the order placed + * through the Fynd platform. + * @property {number} seller_id - A unique identifier representing the seller + * associated with the order. + * @property {string} affiliate_id - An identifier for the affiliate partner + * associated with the order. + * @property {number} [customer_mobile_number] - The mobile phone number of the + * customer who placed the order. */ /** * @typedef RefundOption - * @property {string} [value] - * @property {string} [slug] - * @property {string} [name] - * @property {string} [type] + * @property {string} [value] - The actual value representing the refund option. + * @property {string} [slug] - A unique identifier for the refund mode + * @property {string} [name] - A user-friendly name for the refund option. + * @property {string} [type] - A string indicating the type of refund + * information provided. + */ +/** + * @typedef RefundModeFormat + * @property {string} [refund_to] - Specifies the destination or method for the refunds. */ /** * @typedef RefundModeInfo - * @property {boolean} [is_active] - * @property {string} [slug] - * @property {RefundOption[]} [options] - * @property {string} [display_name] + * @property {boolean} [is_active] - A flag indicating whether the refund mode + * is currently active or not. + * @property {string} [slug] - A unique identifier for the refund mode. + * @property {RefundOption[]} [options] - A list of available refund options + * associated with this refund mode. + * @property {string} [display_name] - A user-friendly name for the refund mode. + * @property {RefundModeFormat} [format] */ /** * @typedef RefundModeConfigResponsePayload - * @property {boolean} success - * @property {RefundModeInfo[]} data + * @property {boolean} success - Indicates whether the API call was successful + * (true) or not (false). + * @property {RefundModeInfo[]} data - An array of possible refund mode + * information objects. + * @property {number} [status] - Represents the HTTP status code of the API response. + * @property {string} [message] - A descriptive message providing additional + * information about the API response. */ /** * @typedef AttachUserOtpData - * @property {string} request_id + * @property {string} request_id - A string representing a unique identifier for + * the OTP request. */ /** * @typedef AttachUserInfo - * @property {string} first_name - * @property {string} last_name - * @property {string} mobile - * @property {string} [country_code] + * @property {string} first_name - A string representing the user's first name. + * @property {string} last_name - A string representing the user's last name. + * @property {string} mobile - A string representing the user's mobile number. + * @property {string} [country_code] - A string representing the user's country code. */ /** * @typedef AttachOrderUser * @property {AttachUserOtpData} otp_data - * @property {string} fynd_order_id + * @property {string} fynd_order_id - A unique identifier for the order + * associated with the user attach. * @property {AttachUserInfo} user_info */ /** * @typedef AttachOrderUserResponse - * @property {boolean} [success] - * @property {string} [message] + * @property {boolean} [success] - Indicates whether the API call was successful + * (true) or not (false). + * @property {string} [message] - A descriptive message providing additional + * information about the API response. */ /** * @typedef SendUserMobileOTP - * @property {string} mobile - * @property {string} [country_code] + * @property {number} mobile - The mobile phone number of the user to whom the + * OTP (One-Time Password) will be sent. + * @property {string} [country_code] - The country code associated with the + * user's mobile number. */ /** * @typedef PointBlankOtpData - * @property {string} [request_id] - * @property {number} [resend_timer] - * @property {string} [message] - * @property {number} [mobile] + * @property {string} [request_id] - A unique identifier for the OTP request. + * @property {number} [resend_timer] - The amount of time (in seconds) before + * the OTP can be resent to the user. + * @property {string} [message] - A message providing additional information + * about the OTP request. + * @property {number} [mobile] - The mobile number (in integer format) + * associated with the OTP request. */ /** * @typedef SendUserMobileOtpResponse - * @property {boolean} [success] - * @property {string} [message] + * @property {boolean} [success] - Indicates whether the API call was successful + * (true) or not (false). + * @property {number} [status] - The HTTP status code of the API response + * (200/400/500/503). + * @property {string} [message] - A descriptive message providing additional + * information about the API response. * @property {PointBlankOtpData} [data] */ /** * @typedef VerifyOtpData - * @property {string} request_id - * @property {string} mobile - * @property {number} otp_code + * @property {string} request_id - A unique identifier for the OTP verification request. + * @property {string} mobile - The mobile number associated with the OTP verification. + * @property {number} otp_code - The OTP code received by the user. */ /** * @typedef VerifyMobileOTP * @property {VerifyOtpData} otp_data - * @property {string} fynd_order_id + * @property {string} fynd_order_id - A unique identifier for the order + * associated with the OTP verification. */ /** * @typedef VerifyOtpResponseData - * @property {string} [mobile] - * @property {string} [message] - * @property {string} [fynd_order_id] - * @property {string} [country_code] + * @property {string} [mobile] - The mobile number associated with the verified OTP. + * @property {string} [message] - A string that provides a message about the + * outcome of the verification process. + * @property {string} [fynd_order_id] - Unique identifier for the order + * associated with the OTP verification. + * @property {string} [country_code] - A string indicating the country code + * associated with the mobile number. */ /** * @typedef VerifyOtpResponse - * @property {number} [status] - * @property {boolean} [success] - * @property {string} [message] + * @property {number} [status] - Represents the HTTP status code of the API response. + * @property {boolean} [success] - Indicates whether the API call was successful + * (true) or not (false). + * @property {string} [message] - A descriptive message providing additional + * information about the API response. * @property {VerifyOtpResponseData} [data] */ /** * @typedef BulkReportsDownloadRequest - * @property {string[]} [store_ids] - Download for specific store ids. - * @property {string} [lane_type] - * @property {string} [custom_headers] - Download report with specific headers - * @property {string} [report_type] - Type of report - * @property {string} [start_date] - UTC start date in ISO format - * @property {string} [end_date] - UTC end date in ISO format - * @property {string[]} [entities] - Download for specific enitites, entities - * can be bag, shipment or order_id, etc. - * @property {string} [filter_type] - * @property {boolean} [is_cross_company_enabled] - Download lanes for cross company. - * @property {Object} [custom_filters_for_lane] + * @property {string[]} [store_ids] - A list of specific store IDs for which the + * reports should be generated. + * @property {string} [lane_type] - Specifies the type of lane for which the + * report is being requested. + * @property {string[]} [custom_headers] - Allows users to specify custom + * headers for the downloaded report. + * @property {string} [report_type] - Indicates the type of report being requested. + * @property {string} [start_date] - UTC start date in ISO format, defines the + * beginning of the date range for which the report data should be collected. + * @property {string} [end_date] - UTC end date in ISO format, defines the end + * date range for which the report data should be collected. + * @property {string[]} [entities] - Download for specific enitites or for + * search filters applied, entities can be bag, shipment or order_id, etc. + * @property {string} [filter_type] - Specifies the type of filtering to be + * applied to the report data. + * @property {boolean} [is_cross_company_enabled] - Indicates whether the report + * should include data from cross-company operations. + * @property {Object} [custom_filters_for_lane] - A flexible object that allows + * users to define custom filters specific to the lanes being reported on. */ /** * @typedef BulkReportsDownloadResponse - * @property {boolean} [success] - * @property {string} [batch_id] + * @property {boolean} [success] - Indicates whether the API call was successful + * (true) or not (false). + * @property {string} [batch_id] - A unique identifier for the batch of reports generated. */ /** - * @typedef BulkFailedResponse - * @property {boolean} [status] - * @property {string} [error] + * @typedef APIFailedResponse + * @property {boolean} [status] - Indicates whether the API call was successful + * (true) or not (false). + * @property {string} [error] - A descriptive message detailing the error that + * occurred during the API call. */ /** - * @typedef BulkStateTransistionRequest - * @property {string} [url] - * @property {string} [file_name] + * @typedef BulkStateTransistionRequestSchema + * @property {string} [url] - Endpoint or resource URL where the bulk state + * transition request should be directed. + * @property {string} [file_name] - Name of the file associated with the bulk operation. */ /** * @typedef BulkStateTransistionResponse - * @property {boolean} [status] - * @property {string} [message] - * @property {string} [batch_id] + * @property {boolean} [status] - Indicates whether the API call was successful + * (true) or not (false). + * @property {string} [message] - A descriptive message providing additional + * information about the API response. + * @property {string} [batch_id] - A unique identifier for the batch of reports generated. */ /** * @typedef ShipmentActionInfo @@ -1105,149 +1059,221 @@ export = OrderPlatformModel; */ /** * @typedef BulkActionListingData - * @property {number} [store_id] - * @property {string} [uploaded_on] - * @property {number} [company_id] + * @property {number} [store_id] - The unique identifier for the store + * associated with the bulk action. + * @property {string} [uploaded_on] - A timestamp indicating when the bulk + * action was uploaded. + * @property {number} [company_id] - Unique identifier of a company on the platform. * @property {ShipmentActionInfo} [shipments_action_info] - * @property {boolean} [is_invoiceable] - * @property {string} [user_name] - * @property {string} [file_url] - * @property {Object} [meta] - * @property {string} [invoice_document_type] - * @property {string} [label_document_type] - * @property {string} [file_name] - * @property {string} [store_name] - * @property {number} [updated_ts] - * @property {boolean} [status] - * @property {string} [store_code] - * @property {string} [bulk_action_type] - * @property {string} [created_ts] - * @property {string} [invoice_status] - * @property {boolean} [do_invoice_label_generated] - * @property {number} [id] - * @property {string} [user_id] - * @property {string} [last_selected_invoice_label_type] - * @property {string} [batch_id] - * @property {string} [uploaded_by] + * @property {boolean} [is_invoiceable] - Indicates whether the bulk action is + * eligible for invoicing. + * @property {string} [user_name] - The name of the user who initiated or + * uploaded the bulk action. + * @property {string} [file_url] - The URL where the uploaded file can be accessed. + * @property {Object} [meta] - A flexible object that can contain additional + * metadata related to the bulk action. + * @property {string} [invoice_document_type] - The type of document that is + * used for invoicing this bulk action. + * @property {string} [label_document_type] - The type of document that is used + * for creating labels for this bulk action. + * @property {string} [file_name] - The name of the file that was uploaded as + * part of the bulk action. + * @property {string} [store_name] - The name of the store associated with the + * bulk action. + * @property {number} [updated_ts] - A timestamp (in Unix format) indicating + * when the bulk action was last updated. + * @property {boolean} [status] - Indicates the current status of the bulk action. + * @property {string} [store_code] - A code representing the store, which can be + * used for internal tracking or identification. + * @property {string} [bulk_action_type] - Specifies the type of bulk action + * being performed. + * @property {string} [created_ts] - A timestamp indicating when the bulk action + * was created. + * @property {string} [invoice_status] - Represents the current status of the + * invoice associated with the bulk action. + * @property {boolean} [do_invoice_label_generated] - Indicates whether an + * invoice label has been generated for the bulk action or not. + * @property {number} [id] - A unique identifier for the bulk action record. + * @property {string} [user_id] - The unique identifier for the user who + * initiated the bulk action. + * @property {string} [last_selected_invoice_label_type] - Indicates the last + * invoice label type selected for the bulk action. + * @property {string} [batch_id] - A unique identifier for the batch associated + * with this bulk action. + * @property {string} [uploaded_by] - The identifier or name of the individual + * or system that uploaded the bulk action. + * @property {string} [invoicelabel_document_type] - The type of document + * generated for invoice labels. + * @property {number} [failed_sh_count] - The number of failed shipments in this + * bulk action. + * @property {number} [successful_sh_count] - The number of successful shipments + * in this bulk action. + * @property {number} [total_count] - The total number of shipments processed in + * this bulk action. + * @property {string[]} [failed_shipments] - An array of shipment identifiers + * that failed during processing. + * @property {number} [successful_invoiced_count] - The number of shipments + * successfully invoiced. + * @property {number} [failed_invoiced_count] - The number of shipments that + * failed during invoicing. + * @property {number} [total_invoiced_count] - The total number of shipments + * that have been invoiced. */ /** * @typedef BulkListinPage - * @property {number} [current] - * @property {boolean} [has_previous] - * @property {boolean} [has_next] - * @property {number} [total] - * @property {number} [item_total] - * @property {string} [type] - * @property {number} [size] + * @property {number} [current] - Indicates the current page number being viewed + * in the pagination. + * @property {boolean} [has_previous] - A flag indicating whether there is a + * previous page available. + * @property {boolean} [has_next] - A flag indicating whether there is a next + * page available. + * @property {number} [total] - The total number of items available in the + * dataset, regardless of pagination. + * @property {number} [item_total] - The total number of items present on the + * current page. + * @property {string} [type] - A string that may indicate the type of pagination + * or the context of the data being paginated. + * @property {number} [size] - The number of items per page. */ /** * @typedef BulkListingResponse - * @property {boolean} [success] - * @property {BulkActionListingData[]} [data] + * @property {boolean} [success] - Indicates whether the API call was successful + * (true) or not (false). + * @property {BulkActionListingData[]} [data] - An array containing the details + * of the bulk actions listed. * @property {BulkListinPage} [page] - * @property {number} [total_count] + * @property {number} [total_count] - Total number of bulk actions available in + * the system, regardless of pagination. */ /** * @typedef JobDetailsData - * @property {string} [batch_id] - * @property {number} [total_shipments_count] - * @property {string[]} [successful_shipment_ids] - * @property {number} [successful_shipments_count] - * @property {number} [failed_shipments_count] - * @property {number} [processing_shipments_count] - * @property {string} [company_id] + * @property {string} [batch_id] - A unique identifier for the batch of bulk + * actions associated with this job. + * @property {number} [total_shipments_count] - The total number of shipments + * processed in this job. + * @property {string[]} [successful_shipment_ids] - An array of identifiers for + * shipments that were successfully processed. + * @property {number} [successful_shipments_count] - The number of successful + * shipments processed in this job. + * @property {number} [failed_shipments_count] - The number of shipments that + * failed to process in this job. + * @property {number} [processing_shipments_count] - The number of shipments + * currently being processed for this job. + * @property {string} [company_id] - Unique identifier of a company on the platform. */ /** * @typedef JobDetailsResponse - * @property {boolean} [success] - * @property {JobDetailsData[]} [data] - * @property {string} [file_url] - * @property {string} [message] - * @property {Object[]} [failed_records] - * @property {string} [uploaded_by] - * @property {string} [user_id] - * @property {string} [created_ts] - * @property {string} [uploaded_on] - * @property {string} [status] + * @property {boolean} [success] - Indicates whether the API call was successful + * (true) or not (false). + * @property {JobDetailsData[]} [data] - An array representing the details of a job. + * @property {string} [file_url] - An URL to download the submitted job file. + * @property {string} [message] - A message providing additional context about + * the request's outcome. + * @property {Object[]} [failed_records] - An array of records that failed + * during processing, with additional properties providing details about each failure. + * @property {string} [uploaded_by] - The name or identifier of the user who + * uploaded the job. + * @property {string} [user_id] - The unique identifier for the user who + * performed the upload. + * @property {string} [created_ts] - A timestamp indicating when the job was created. + * @property {string} [uploaded_on] - A timestamp indicating when the job was uploaded. + * @property {string} [status] - The current status of the job. */ /** * @typedef JobFailedResponse - * @property {string} [file_name] - * @property {string} [url] + * @property {string} [file_name] - The name of the file associated with the failed job. + * @property {string} [url] - The URL where the uploaded bulk file can be accessed. */ /** * @typedef ManifestPageInfo - * @property {number} current - * @property {number} total - * @property {boolean} has_next - * @property {number} size - * @property {boolean} has_previous - * @property {string} type + * @property {number} current - The current page number being viewed. + * @property {number} total - The total number of records available across all pages. + * @property {boolean} has_next - Indicates whether there is a next page available. + * @property {number} size - The size of the current page's results set. + * @property {boolean} has_previous - Indicates whether there is a previous page + * available. + * @property {string} type - Indicates whether there is a previous page available. */ /** * @typedef ManifestItemDetails - * @property {number} [quantity] - * @property {string} shipment_id - * @property {string} order_id - * @property {string} [awb_number] - * @property {string} [invoice_id] - * @property {string} [shipment_created_at] + * @property {number} [quantity] - The quantity of items in the shipment. + * @property {string} shipment_id - Unique identifier for the shipment. + * @property {string} order_id - Unique identifier for the order. + * @property {string} [awb_number] - Unique identifier for the shipment's air + * waybill number. + * @property {string} [invoice_id] - Unique identifier for the invoice + * associated with the shipment. + * @property {string} [shipment_created_at] - Timestamp indicating when the + * shipment was created. */ /** * @typedef ManifestShipmentListing - * @property {number} total_count - * @property {string} [lane] + * @property {number} total_count - Total number of shipment items in the manifest. + * @property {string} lane - Identifier or name for the lane associated with the + * shipments. * @property {ManifestPageInfo} page - * @property {boolean} success - * @property {number} status - * @property {ManifestItemDetails[]} [items] - * @property {string} [message] + * @property {boolean} success - Indicates whether the API call was successful + * (true) or not (false). + * @property {number} [status] - Represents the HTTP status code of the API response. + * @property {ManifestItemDetails[]} items - List of items in the manifest, each + * containing detailed shipment information. + * @property {string} [message] - Additional message or information regarding + * the response. */ /** * @typedef DateRange - * @property {string} [from_date] - * @property {string} [to_date] + * @property {string} [from_date] - The start date of the range. + * @property {string} [to_date] - The end date of the range. */ /** * @typedef Filters * @property {DateRange} [date_range] * @property {string} [logo] - CDN link of the logo displayed on the manifest page. - * @property {string} [from_date] - UTC start date in ISO format. - * @property {number} [stores] - Filter with the specific store. - * @property {string} [to_date] - UTC end date in ISO format. - * @property {string} [dp_name] - Filter with the specific courier partner name. + * @property {string} [from_date] - The start date for filtering records, + * provided in UTC and formatted in ISO format. + * @property {number} [stores] - Specifies a specific store ID for filtering the records. + * @property {string} [to_date] - The end date for filtering records, provided + * in UTC and formatted in ISO format. + * @property {string} [dp_name] - The name of the courier partner to filter records by. * @property {string} [dp_ids] - Combination of courier partner ids separated by - * byte operator. - * @property {string} [lane] - Criteria for lane on which shipments must be fetched. - * @property {string} [selected_shipments] - Selected shipments mapped to the manifest. - * @property {string} [store_name] - Filter with the specific store name. - * @property {string} [deselected_shipments] - Deselected shipments unmapped - * from the manifest. + * comma operator. + * @property {string} [lane] - Specifies criteria related to the shipment lanes. + * @property {string} [selected_shipments] - A list of selected shipments that + * are mapped to the manifest. + * @property {string} [store_name] - The name of the store for filtering records. + * @property {string} [deselected_shipments] - A list of shipments that have + * been unmapped from the manifest. */ /** * @typedef ManifestFile - * @property {string} [key] - * @property {string} [region] - * @property {string} [bucket] + * @property {string} [key] - This field represents the unique identifier for + * the file within the storage system. + * @property {string} [region] - Indicates the geographical region where the + * file is stored. + * @property {string} [bucket] - The name of the storage bucket where the file is stored. */ /** * @typedef ManifestMediaUpdate - * @property {string} [entity] - * @property {string} [link] - * @property {number} [code] - * @property {string} [media_type] - * @property {boolean} [status] + * @property {string} [entity] - The name or type of the media entity being updated. + * @property {string} [link] - A URL or link to the media resource. + * @property {number} [code] - A numerical code representing the media update + * status or type. + * @property {string} [media_type] - The type of media being updated. + * @property {boolean} [status] - Indicate the status of this media update. * @property {ManifestFile} [file] */ /** * @typedef PDFMeta - * @property {string} [consent] - * @property {ManifestMediaUpdate[]} [media_updates] + * @property {string} [consent] - This field contains information related to user consent. + * @property {ManifestMediaUpdate[]} [media_updates] - An array of media update + * entries associated with the manifest. */ /** * @typedef TotalShipmentPricesCount - * @property {number} [total_price] - * @property {number} [shipment_count] + * @property {number} [total_price] - This field represents the total monetary + * value of the shipments. + * @property {number} [shipment_count] - This field represents the number of + * shipments associated with the manifest. */ /** * @typedef ManifestMeta @@ -1256,80 +1282,65 @@ export = OrderPlatformModel; */ /** * @typedef Manifest - * @property {number} company_id + * @property {number} company_id - Unique identifier of a company on the platform. * @property {Filters} [filters] * @property {PDFMeta} [pdf_meta] * @property {ManifestMeta} [meta] - * @property {boolean} is_active - * @property {string} user_id - * @property {string} created_at - * @property {string} [created_ts] - * @property {string} manifest_id - * @property {string} status - * @property {number} id - * @property {string} uid - * @property {string} created_by + * @property {boolean} is_active - Indicates whether the manifest is currently + * active or has been completed/closed. + * @property {string} user_id - The unique identifier of the user who created or + * modified the manifest. + * @property {string} created_at - The date and time when the manifest was created. + * @property {string} [created_ts] - A timestamp representing when the manifest + * was created, typically in UTC. + * @property {string} manifest_id - The unique identifier assigned to the manifest. + * @property {string} status - The current status of the Manifest. + * @property {number} id - The unique identifier assigned to the manifest item. + * @property {string} uid - A universally unique identifier for the manifest. + * @property {string} created_by - The username or identifier of the individual + * who created the manifest. */ /** * @typedef ManifestList - * @property {Manifest[]} [items] + * @property {Manifest[]} [items] - A list of manifest records. * @property {ManifestPageInfo} [page] */ /** * @typedef ManifestDetails - * @property {ManifestItemDetails[]} [items] + * @property {ManifestItemDetails[]} [items] - An list of detailed information + * about individual shipments within the manifest. * @property {ManifestPageInfo} [page] - * @property {number} [additional_shipment_count] - * @property {Manifest[]} [manifest_details] - */ -/** - * @typedef FiltersRequest - * @property {DateRange} [date_range] - * @property {string} [logo] - * @property {number} stores - * @property {string} dp_name - * @property {number} dp_ids - * @property {string} lane - * @property {string} store_name - */ -/** - * @typedef ProcessManifest - * @property {FiltersRequest} filters - * @property {string} action - * @property {string} unique_id - * @property {string} [manifest_id] - */ -/** - * @typedef ProcessManifestResponse - * @property {number} [company_id] - Id of the company. - * @property {Filters} [filters] - * @property {string} [user_id] - Id of the user. - * @property {string} [manifest_id] - Id of the manifest. - * @property {string} [action] - * @property {string} [uid] - * @property {string} [created_by] - */ -/** - * @typedef ProcessManifestItemResponse - * @property {ProcessManifestResponse} [items] + * @property {number} [additional_shipment_count] - Represents the count of + * additional shipments associated with the manifest. + * @property {Manifest[]} [manifest_details] - An array of manifest objects that + * provide overarching details about the manifest itself. */ /** * @typedef FilterInfoOption - * @property {string} [text] - * @property {string} [name] - * @property {string} [placeholder_text] - * @property {string} [value] - * @property {number} [min_search_size] - * @property {boolean} [show_ui] + * @property {string} [text] - The option value or text set for the filter option. + * @property {string} [name] - The option name indicating the type of + * information the filter relates to. + * @property {string} [placeholder_text] - Represents the placeholder text that + * might appear in a UI element. + * @property {string} [value] - A unique value for the filter used in processing + * filter selections. + * @property {number} [min_search_size] - Indicates the minimum size for search + * criteria, potentially related to how many items to display or filter. + * @property {boolean} [show_ui] - Indicates whether this option should be + * visible in the user interface. */ /** * @typedef FiltersInfo * @property {FilterInfoOption[]} [options] - * @property {string} text - * @property {string} [placeholder_text] - * @property {string} value - * @property {boolean} [required] - * @property {string} type + * @property {string} text - The label or name for the filter, which indicates + * what the filter is related to. + * @property {string} [placeholder_text] - A placeholder text that provides + * guidance on how to use the filter. + * @property {string} value - A unique identifier for the filter, used for + * processing filter selections. + * @property {boolean} [required] - Indicates whether the filter is mandatory to + * fill out when applying the filter set. + * @property {string} type - Specifies the type of filter. */ /** * @typedef ManifestFiltersResponse @@ -1409,22 +1420,28 @@ export = OrderPlatformModel; */ /** * @typedef CourierPartnerTrackingDetails - * @property {string} awb - AWB Number - * @property {string} [dp_location] - Current location of Courier partner - * @property {string} dp_name - Courier Partner name - * @property {string} dp_status - Status at Courier partner end - * @property {string} dp_status_updated_at - Date Time at which status was - * updated at Courier partner - * @property {string} [estimated_delivery_date] - Estimated delivery date - * received from Courier partner - * @property {number} [id] - Id of Tracking history - * @property {string} journey - Journey type of the shipment - * @property {Object} [meta] - Meta field to store Courier partner's meta data - * @property {string} operational_status - Operational status of OMS - * @property {string} [promised_delivery_date] - Promised delivery date received - * from Courier partner - * @property {string} [remark] - Remark from courier partner - * @property {string} shipment_id - Shipment ID + * @property {string} awb - The Air Waybill (AWB) number associated with the + * shipment, used for tracking the parcel in transit. + * @property {string} [dp_location] - The current geographic location of the + * courier partner. + * @property {string} dp_name - The name of the courier partner responsible for + * the shipment. + * @property {string} dp_status - The current status of the shipment as updated + * by the courier partner. + * @property {string} dp_status_updated_at - The timestamp when the status was + * last updated by the courier partner. + * @property {string} [estimated_delivery_date] - The estimated date and time + * for delivery as provided by the courier partner. + * @property {number} [id] - A unique identifier for the tracking history entry. + * @property {string} journey - Indicates the type of journey the shipment. + * @property {Object} [meta] - A field to store additional metadata related to + * the courier partner's operations or the shipment. + * @property {string} operational_status - The operational status of the shipment. + * @property {string} [promised_delivery_date] - PThe promised date and time for + * delivery as provided by the courier partner. + * @property {string} [remark] - Any additional remarks or comments from the + * courier partner regarding the shipment. + * @property {string} shipment_id - The unique identifier for the shipment. */ /** * @typedef CourierPartnerTrackingResponse @@ -1480,7 +1497,7 @@ export = OrderPlatformModel; * @property {string} [error_message] */ /** - * @typedef GenerateInvoiceIDRequest + * @typedef GenerateInvoiceIDRequestSchema * @property {string[]} shipment_ids */ /** @@ -1497,29 +1514,33 @@ export = OrderPlatformModel; */ /** * @typedef ProcessManifestRequest - * @property {string} [action] - Expected Actions: [save, process, - * pdf_generated,invalidate,pdf_failed,complete] - * @property {string} [manifest_id] - Id of The Manifest. - * @property {Filters} [filters] - * @property {string} [unique_id] - Unique Id. + * @property {string} action - Represents the operation to be performed on the manifest. + * @property {string} [manifest_id] - Represents the identifier for a specific manifest. + * @property {Filters} filters + * @property {string} unique_id - A unique identifier for the request or the + * operation being performed. */ /** * @typedef ManifestItems * @property {Filters} [filters] - * @property {string} [manifest_id] - Id of the manifest. - * @property {string} [unique_id] - Unique Id. - * @property {number} [company_id] - Id of the company. - * @property {string} [dp_id] - Shipment with the specific courier partner Id. - * @property {string} [courier_partner_slug] - * @property {string} [action] - Expected Actions: [Save, Process, Pdf - * Generated, Invalidate, Pdf Failed, Complete] - * @property {string} [created_by] - Created date of the manifest. - * @property {string} [user_id] - Id of user. + * @property {string} [manifest_id] - The unique identifier for the manifest. + * @property {string} [unique_id] - A unique identifier for the request or + * operation involving the manifest items. + * @property {number} [company_id] - Unique identifier of a company on the platform. + * @property {string} [dp_id] - Unique identifier of the delivery partner. + * @property {string} [courier_partner_slug] - A slug or unique identifier for + * the courier partner. + * @property {string} [action] - Defines the expected action for the manifest items. + * @property {string} [created_by] - The identifier for the user or system that + * created the manifest. + * @property {string} [user_id] - The identifier for the user associated with + * the manifest items. */ /** * @typedef ManifestErrorResponse - * @property {boolean} [success] - Success State. - * @property {string} [error] - Error String. + * @property {boolean} [success] - Indicates whether the API call was successful + * (true) or not (false). + * @property {string} [error] - Provides a descriptive error message. */ /** * @typedef ConfigData @@ -1539,7 +1560,6 @@ export = OrderPlatformModel; */ /** * @typedef FlagData - * @property {Object} [value] * @property {Object} [filter] */ /** @@ -1725,6 +1745,17 @@ export = OrderPlatformModel; * @typedef TransitionConfigPayload * @property {TransitionConfigData} [data] */ +/** + * @typedef CommonErrorResponse + * @property {number} [status] - The HTTP status code corresponding to the error. + * @property {string} [message] - A message describing the error that occurred. + */ +/** + * @typedef ExceptionErrorResponse + * @property {string} [message] - A message describing the error that occurred. + * @property {string} [exception] - The class path of the exception that was thrown. + * @property {string} [stack_trace] - The stack trace from the server for the error. + */ /** * @typedef Page * @property {number} [item_total] - The total number of items on the page. @@ -2371,6 +2402,10 @@ export = OrderPlatformModel; * @property {string} [invoice_pos] * @property {string} [po_invoice] */ +/** + * @typedef AffiliateConfig + * @property {number} [app_company_id] + */ /** * @typedef AffiliateDetails * @property {ShipmentMeta} shipment_meta @@ -2967,6 +3002,13 @@ export = OrderPlatformModel; * @property {string} [invoice_url] * @property {string} [label_url] */ +/** + * @typedef ShipmentDetails + * @property {string} [dp_id] + * @property {Object} [dp_options] + * @property {boolean} [lock_status] + * @property {Object} [action_to_status] + */ /** * @typedef UserDetails * @property {string} [user_oid] @@ -2996,7 +3038,7 @@ export = OrderPlatformModel; * @property {Article} [article] * @property {ArticleStatusDetails} [article_details] * @property {BagStatusHistory[]} [bag_status] - * @property {BagStatusHistory} [bag_status_history] + * @property {BagStatusHistory[]} [bag_status_history] * @property {Brand} [brand] * @property {Company} [company] * @property {BagStatusHistory} [current_operational_status] @@ -3112,10 +3154,15 @@ export = OrderPlatformModel; * @property {string} [message] * @property {boolean} [success] */ +/** + * @typedef BulkFailedResponse + * @property {boolean} [status] + * @property {string} [error] + */ declare class OrderPlatformModel { } declare namespace OrderPlatformModel { - 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, DPConfiguration, PaymentConfig, CreateOrderConfig, 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, ManifestResponse, ProcessManifestRequest, ManifestItems, ManifestErrorResponse, ConfigData, ConfigUpdatedResponse, FlagData, Flags, Filter, PostHook, PreHook, Config, TransitionConfigCondition, TransitionConfigData, TransitionConfigPayload, 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, FiltersResponse, URL, FileResponse, BulkActionTemplate, BulkActionTemplateResponse, Reason, PlatformShipmentReasonsResponse, ShipmentResponseReasons, ShipmentReasonsResponse, StoreAddress, EInvoicePortalDetails, StoreEinvoice, StoreEwaybill, StoreGstCredentials, Document, StoreDocuments, StoreMeta, Store, Brand, Item, ArticleStatusDetails, Company, ShipmentGstDetails, DeliverySlotDetails, InvoiceDetails, UserDetails, WeightData, BagDetails, BagDetailsPlatformResponse, BagsPage, BagData, GetBagsPlatformResponse, GeneratePosOrderReceiptResponse, Templates, AllowedTemplatesResponse, TemplateDownloadResponse, Error }; + export { InvalidateShipmentCachePayload, InvalidateShipmentCacheNestedResponse, InvalidateShipmentCacheResponse, UpdatePackingErrorResponse, ErrorResponse, StoreReassign, StoreReassignResponse, LockManagerEntities, UpdateShipmentLockPayload, OriginalFilter, Bags, CheckResponse, UpdateShipmentLockResponse, AnnouncementResponse, AnnouncementsResponse, BaseResponse, ErrorDetail, ProductsReasonsFilters, ProductsReasonsData, ProductsReasons, EntityReasonData, EntitiesReasons, ReasonsData, Products, OrderItemDataUpdates, ProductsDataUpdatesFilters, ProductsDataUpdates, EntitiesDataUpdates, DataUpdates, ShipmentsRequest, StatuesRequest, UpdateShipmentStatusRequestSchema, ShipmentsResponse, StatuesResponse, UpdateShipmentStatusResponseBody, DPConfiguration, PaymentConfig, CreateOrderConfig, CreateOrderResponse, DispatchManifest, SuccessResponse, ActionInfo, GetActionsResponse, HistoryReason, HistoryMeta, HistoryDict, ShipmentHistoryResponse, PostHistoryFilters, PostHistoryData, PostHistoryDict, PostShipmentHistory, SmsDataPayload, SendSmsPayload, OrderDetails, Meta, ShipmentDetail, OrderStatusData, OrderStatusResult, Dimension, UpdatePackagingDimensionsPayload, UpdatePackagingDimensionsResponse, Tax, AmountSchema, Charge, LineItem, ProcessingDates, Shipment, GeoLocationSchema, ShippingInfo, UserInfo, TaxInfo, PaymentMethod, PaymentInfo, CreateOrderAPI, CreateOrderErrorReponse, UploadManifestConsent, PlatformOrderUpdate, ResponseDetail, FyndOrderIdList, OrderStatus, BagStateTransitionMap, RoleBaseStateTransitionMapping, RefundModeConfigRequestPayload, RefundOption, RefundModeFormat, RefundModeInfo, RefundModeConfigResponsePayload, AttachUserOtpData, AttachUserInfo, AttachOrderUser, AttachOrderUserResponse, SendUserMobileOTP, PointBlankOtpData, SendUserMobileOtpResponse, VerifyOtpData, VerifyMobileOTP, VerifyOtpResponseData, VerifyOtpResponse, BulkReportsDownloadRequest, BulkReportsDownloadResponse, APIFailedResponse, BulkStateTransistionRequestSchema, BulkStateTransistionResponse, ShipmentActionInfo, BulkActionListingData, BulkListinPage, BulkListingResponse, JobDetailsData, JobDetailsResponse, JobFailedResponse, ManifestPageInfo, ManifestItemDetails, ManifestShipmentListing, DateRange, Filters, ManifestFile, ManifestMediaUpdate, PDFMeta, TotalShipmentPricesCount, ManifestMeta, Manifest, ManifestList, ManifestDetails, FilterInfoOption, FiltersInfo, ManifestFiltersResponse, PageDetails, EInvoiceIrnDetails, EInvoiceErrorDetails, EInvoiceDetails, EInvoiceResponseData, EInvoiceRetry, EInvoiceRetryResponse, EInvoiceErrorInfo, EInvoiceErrorResponseData, EInvoiceErrorResponse, EInvoiceErrorResponseDetails, EInvoiceRetryShipmentData, CourierPartnerTrackingDetails, CourierPartnerTrackingResponse, LogsChannelDetails, LogPaymentDetails, FailedOrdersItem, FailedOrderLogs, FailedOrderLogDetails, GenerateInvoiceIDResponseData, GenerateInvoiceIDErrorResponseData, GenerateInvoiceIDRequestSchema, GenerateInvoiceIDResponse, GenerateInvoiceIDErrorResponse, ManifestResponse, ProcessManifestRequest, ManifestItems, ManifestErrorResponse, ConfigData, ConfigUpdatedResponse, FlagData, Flags, Filter, PostHook, PreHook, Config, TransitionConfigCondition, TransitionConfigData, TransitionConfigPayload, CommonErrorResponse, ExceptionErrorResponse, 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, AffiliateConfig, 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, FiltersResponse, URL, FileResponse, BulkActionTemplate, BulkActionTemplateResponse, Reason, PlatformShipmentReasonsResponse, ShipmentResponseReasons, ShipmentReasonsResponse, StoreAddress, EInvoicePortalDetails, StoreEinvoice, StoreEwaybill, StoreGstCredentials, Document, StoreDocuments, StoreMeta, Store, Brand, Item, ArticleStatusDetails, Company, ShipmentGstDetails, DeliverySlotDetails, InvoiceDetails, ShipmentDetails, UserDetails, WeightData, BagDetails, BagDetailsPlatformResponse, BagsPage, BagData, GetBagsPlatformResponse, GeneratePosOrderReceiptResponse, Templates, AllowedTemplatesResponse, TemplateDownloadResponse, Error, BulkFailedResponse }; } /** @returns {InvalidateShipmentCachePayload} */ declare function InvalidateShipmentCachePayload(): InvalidateShipmentCachePayload; @@ -3147,16 +3194,28 @@ declare function InvalidateShipmentCacheResponse(): InvalidateShipmentCacheRespo type InvalidateShipmentCacheResponse = { response?: InvalidateShipmentCacheNestedResponse[]; }; +/** @returns {UpdatePackingErrorResponse} */ +declare function UpdatePackingErrorResponse(): UpdatePackingErrorResponse; +type UpdatePackingErrorResponse = { + /** + * - Represents the HTTP status code of the API response. + */ + status?: number; + /** + * - Descriptive error message that occurred. + */ + error?: string; +}; /** @returns {ErrorResponse} */ declare function ErrorResponse(): ErrorResponse; type ErrorResponse = { /** - * - The HTTP status code corresponding to the error. + * - Represents the HTTP status code of the API response. */ status?: number; /** - * - Indicates whether the operation was - * successful. Always false in the case of an error. + * - Indicates whether the API call was successful + * (true) or not (false). */ success?: boolean; /** @@ -3172,53 +3231,99 @@ type ErrorResponse = { /** @returns {StoreReassign} */ declare function StoreReassign(): StoreReassign; type StoreReassign = { + /** + * - Unique id of the store. + */ store_id: number; + /** + * - Identifier for the bag associated with the reassignment. + */ bag_id?: number; + /** + * - Identifier for the affiliate order + * id associated with the reassignment. + */ affiliate_order_id?: string; + /** + * - Identifier for the affiliate id + * associated with the reassignment. + */ affiliate_id?: string; + /** + * - Identifier for the item associated with the + * reassignment. + */ item_id?: string; + /** + * - Identifier for the fynd order id + * associated with the reassignment. + */ fynd_order_id?: string; + /** + * - Identifier for the set of items associated with + * the reassignment. + */ set_id?: string; + /** + * - Identifiers for bags associated with + * the reassignment. + */ affiliate_bag_id?: string; + /** + * - List of reason ids for the reassignment. + */ reason_ids?: number[]; + /** + * - Identifier for the article id + * associated with the reassignment. + */ mongo_article_id?: string; }; /** @returns {StoreReassignResponse} */ declare function StoreReassignResponse(): StoreReassignResponse; type StoreReassignResponse = { + /** + * - Indicates whether the API call was successful + * (true) or not (false). + */ success?: boolean; + /** + * - A descriptive message providing additional + * information about the API response. + */ message?: string; }; -/** @returns {Entities} */ -declare function Entities(): Entities; -type Entities = { +/** @returns {LockManagerEntities} */ +declare function LockManagerEntities(): LockManagerEntities; +type LockManagerEntities = { /** * - Shipment ID if 'entity_type': shipments | Bag Id if * 'entity_type': bags */ id?: string; /** - * - Application/Affiliate Order ID, - * Required if the ID is missing + * - External identifier for the order + * id associated with shipment. */ affiliate_order_id?: string; /** - * - Application/Affiliate ID, Required if the - * ID is missing + * - Identifier for application associated + * with the shipment. */ affiliate_id?: string; /** - * - Reason For Shipment/Bag Action + * - A descriptive reason text for lock/unlock + * action of a shipment/bag. */ reason_text: string; /** - * - Application/Affiliate Bag ID, - * Required if the ID is missing + * - External identifier for the bag id + * associated with orders/shipment. */ affiliate_bag_id?: string; /** - * - Application/Affiliate Shipment - * ID, Required if the ID is missing + * - External identifier for the + * shipment id associated with orders/shipment. */ affiliate_shipment_id?: string; }; @@ -3226,29 +3331,35 @@ type Entities = { declare function UpdateShipmentLockPayload(): UpdateShipmentLockPayload; type UpdateShipmentLockPayload = { /** - * - Expected entity_type: [bags, shipments] + * - Specifies the type of entity being locked or unlocked. */ entity_type: string; /** - * - Expected Actions: [lock, unlock, check] + * - Indicates the action to be performed on the entity. */ action: string; /** - * - Expected action_type: [complete, - * operational, financial] + * - Specifies the type of action being taken. */ action_type: string; /** - * - Shipment/Entity + * - List of entities to be locked or unlocked + */ + entities: LockManagerEntities[]; + /** + * - Indicates whether tasks + * should resume automatically after unlocking, such as DP assignment task and + * invoicing task. */ - entities: Entities[]; resume_tasks_after_unlock?: boolean; /** - * - Lock Shipment After Transition + * - Specifies whether the shipment + * should be locked automatically after a transition occurs. */ lock_after_transition?: boolean; /** - * - Unlock Shipment After Transition + * - Specifies whether the + * shipment should be unlocked before a transition occurs. */ unlock_before_transition?: boolean; }; @@ -3327,132 +3438,234 @@ type CheckResponse = { /** @returns {UpdateShipmentLockResponse} */ declare function UpdateShipmentLockResponse(): UpdateShipmentLockResponse; type UpdateShipmentLockResponse = { + /** + * - Indicates whether the API call was successful + * (true) or not (false). + */ success?: boolean; + /** + * - A descriptive message providing additional + * information about the API response, such as success confirmation or error details. + */ message?: string; /** - * - Entity Lock Status, If the - * action input as 'check' + * - An array containing the lock + * status of entities if the action performed was a 'check'. Each item in the + * array represents the status of a specific entity. */ check_response?: CheckResponse[]; }; /** @returns {AnnouncementResponse} */ declare function AnnouncementResponse(): AnnouncementResponse; type AnnouncementResponse = { + /** + * - The end date and time for the event, + * indicating when the issue is expected to be resolved. + */ to_datetime?: string; + /** + * - A unique identifier for the announcement. + */ id: number; + /** + * - A brief description providing additional + * context about the announcement. + */ description?: string; + /** + * - The name of the platform associated with + * this announcement. + */ platform_name?: string; + /** + * - The start date and time of the + * announcement going live. + */ from_datetime?: string; + /** + * - The unique identifier associated with the + * platform. In this case, it appears to be the same as the platform name, + * which might indicate a specific category or type. + */ platform_id?: string; + /** + * - The title summarizing the nature of the announcement. + */ title?: string; + /** + * - A unique identifier for the company related + * to this announcement. + */ company_id?: number; + /** + * - A URL linking to the logo image associated + * with the platform or company. + */ logo_url?: string; + /** + * - The timestamp of when this announcement was + * created, providing context for its age and relevance. + */ created_at?: string; }; /** @returns {AnnouncementsResponse} */ declare function AnnouncementsResponse(): AnnouncementsResponse; type AnnouncementsResponse = { announcements?: AnnouncementResponse[]; + /** + * - Indicates whether the API call was successful + * (true) or not (false). + */ success?: boolean; - message?: string; + /** + * - Represents the HTTP status code of the API response + */ + status?: number; }; /** @returns {BaseResponse} */ declare function BaseResponse(): BaseResponse; type BaseResponse = { - success?: boolean; - message?: string; -}; -/** @returns {Click2CallResponse} */ -declare function Click2CallResponse(): Click2CallResponse; -type Click2CallResponse = { /** - * - Call ID from the provider + * - Indicates whether the API call was successful + * (true) or not (false). */ - call_id: string; + success?: boolean; /** - * - Success + * - A descriptive message providing additional + * information about the API response. */ - success: boolean; + message?: string; }; /** @returns {ErrorDetail} */ declare function ErrorDetail(): ErrorDetail; type ErrorDetail = { + /** + * - Indicates whether the API call was successful + * (true) or not (false). + */ success?: boolean; + /** + * - A descriptive message providing additional + * information about the API response. + */ message?: string; }; /** @returns {ProductsReasonsFilters} */ declare function ProductsReasonsFilters(): ProductsReasonsFilters; type ProductsReasonsFilters = { /** - * - Product/Bag Line number for the - * Product/Bag Identifier + * - The line number for the product or bag, + * which helps identify the specific item in a list or order. */ line_number?: number; /** - * - Product/Bag Article/Item Identifier + * - The unique article or item identifier for + * the product or bag. */ identifier?: string; + /** + * - The quantity of the product or bag being referenced. + */ quantity?: number; }; /** @returns {ProductsReasonsData} */ declare function ProductsReasonsData(): ProductsReasonsData; type ProductsReasonsData = { + /** + * - A descriptive text providing the reason + * for the action or status associated with the product or bag. + */ reason_text?: string; + /** + * - A unique identifier for the reason, used to + * reference specific reasons in the system. + */ reason_id?: number; }; /** @returns {ProductsReasons} */ declare function ProductsReasons(): ProductsReasons; type ProductsReasons = { + /** + * - A list of filters applied to + * specify which products the reasons pertain to. + */ filters?: ProductsReasonsFilters[]; data?: ProductsReasonsData; }; /** @returns {EntityReasonData} */ declare function EntityReasonData(): EntityReasonData; type EntityReasonData = { + /** + * - A descriptive text providing the reason + * for the action or status associated with the product or bag. + */ reason_text?: string; + /** + * - A unique identifier for the reason, used to + * reference specific reasons in the system. + */ reason_id?: number; }; /** @returns {EntitiesReasons} */ declare function EntitiesReasons(): EntitiesReasons; type EntitiesReasons = { + /** + * - A list of filters applied to specify which + * entities the reasons pertain to. + */ filters?: any[]; data?: EntityReasonData; }; /** @returns {ReasonsData} */ declare function ReasonsData(): ReasonsData; type ReasonsData = { + /** + * - A list of reasons specifically + * related to products involved in the shipment. + */ products?: ProductsReasons[]; + /** + * - A list of reasons specifically + * related to shipment. + */ entities?: EntitiesReasons[]; }; /** @returns {Products} */ declare function Products(): Products; type Products = { /** - * - Product/Bag Line number for the - * Product/Bag Identifier + * - The line number for the product or bag, + * which helps identify the specific item in a list or order. */ line_number?: number; /** - * - Product/Bag Article/Item Identifier + * - The unique article or item identifier for + * the product or bag. */ identifier?: string; + /** + * - The quantity of the product or bag being referenced. + */ quantity?: number; }; /** @returns {OrderItemDataUpdates} */ declare function OrderItemDataUpdates(): OrderItemDataUpdates; type OrderItemDataUpdates = { + /** + * - Contains the specific data for updating shipment bags data. + */ data?: any; }; /** @returns {ProductsDataUpdatesFilters} */ declare function ProductsDataUpdatesFilters(): ProductsDataUpdatesFilters; type ProductsDataUpdatesFilters = { /** - * - Product/Bag Line number for the - * Product/Bag Identifier + * - The line number for the product or bag. */ line_number?: number; /** - * - Product/Bag Article/Item Identifier + * - The unique article or item identifier for + * the product or bag. */ identifier?: string; }; @@ -3460,34 +3673,59 @@ type ProductsDataUpdatesFilters = { declare function ProductsDataUpdates(): ProductsDataUpdates; type ProductsDataUpdates = { /** - * - Filter for the Product/Bag + * - A list of filters + * applied to specify which products or bags are targeted for updates. */ filters?: ProductsDataUpdatesFilters[]; + /** + * - Contains the specific data for updating the + * products or bags. + */ data?: any; }; /** @returns {EntitiesDataUpdates} */ declare function EntitiesDataUpdates(): EntitiesDataUpdates; type EntitiesDataUpdates = { + /** + * - A list of filters used to specify which + * shipments are targeted for updates. + */ filters?: any[]; + /** + * - Contains the specific data for updating the shipment. + */ data?: any; }; /** @returns {DataUpdates} */ declare function DataUpdates(): DataUpdates; type DataUpdates = { + /** + * - A list of updates + * related to the status of order items. + */ order_item_status?: OrderItemDataUpdates[]; + /** + * - A list of updates related to + * the properties of products or bags. + */ products?: ProductsDataUpdates[]; + /** + * - A list of updates related to + * the properties of any relevant entities. + */ entities?: EntitiesDataUpdates[]; }; /** @returns {ShipmentsRequest} */ declare function ShipmentsRequest(): ShipmentsRequest; type ShipmentsRequest = { /** - * - Shipment ID + * - Unique identifier for the shipment. */ identifier: string; reasons?: ReasonsData; /** - * - Product/Bag to be updated + * - A list of products or bags that need to + * be updated as part of the shipment status change. */ products?: Products[]; data_updates?: DataUpdates; @@ -3495,40 +3733,61 @@ type ShipmentsRequest = { /** @returns {StatuesRequest} */ declare function StatuesRequest(): StatuesRequest; type StatuesRequest = { + /** + * - The new status to be assigned to the shipment(s). + */ status?: string; + /** + * - A list of shipments to which the + * new status will be applied. + */ shipments?: ShipmentsRequest[]; /** - * - State to be change for - * Remaining Bag/Products + * - Specifies the state to which + * remaining bags or products should be changed, effectively excluding them + * from the current status update. */ exclude_bags_next_state?: string; /** - * - Flag to split shipment + * - A flag indicating whether the shipment + * should be split into multiple parts. If set to true, the shipment will be + * divided according to the specified logic or criteria. */ split_shipment?: boolean; }; -/** @returns {UpdateShipmentStatusRequest} */ -declare function UpdateShipmentStatusRequest(): UpdateShipmentStatusRequest; -type UpdateShipmentStatusRequest = { +/** @returns {UpdateShipmentStatusRequestSchema} */ +declare function UpdateShipmentStatusRequestSchema(): UpdateShipmentStatusRequestSchema; +type UpdateShipmentStatusRequestSchema = { /** - * - Force Transition + * - Indicates whether to force the + * status transition, overriding any restrictions or checks that may normally apply. */ force_transition?: boolean; + /** + * - A list of status updates to be + * applied to the shipment. + */ statuses?: StatuesRequest[]; /** - * - Lock Shipment After Transition + * - Specifies whether the shipment + * should be locked automatically after a transition occurs. */ lock_after_transition?: boolean; /** - * - Unlock Shipment After Transition + * - Specifies whether the + * shipment should be unlocked before a transition occurs. */ unlock_before_transition?: boolean; /** - * - To Run Status Update as a background Task + * - Indicates whether to run the status update as a + * background task, allowing other processes to continue without waiting for + * this operation to complete. */ task?: boolean; /** - * - Resume Tasks After Unlock + * - Indicates whether tasks + * should resume automatically after unlocking, such as DP assignment task and + * invoicing task. */ resume_tasks_after_unlock?: boolean; }; @@ -3554,246 +3813,33 @@ declare function UpdateShipmentStatusResponseBody(): UpdateShipmentStatusRespons type UpdateShipmentStatusResponseBody = { statuses?: StatuesResponse[]; }; -/** @returns {OrderUser} */ -declare function OrderUser(): OrderUser; -type OrderUser = { - phone: number; - last_name: string; - address1?: string; - state: string; - pincode: string; - first_name: string; - mobile: number; - address2?: string; - email: string; - country: string; - city: string; +/** @returns {DPConfiguration} */ +declare function DPConfiguration(): DPConfiguration; +type DPConfiguration = { + /** + * - Shipping_by denotes dp assignment + * strategy- if shipping_by is fynd dp assignment would be handled by OMS + */ + shipping_by?: string; }; -/** @returns {OrderPriority} */ -declare function OrderPriority(): OrderPriority; -type OrderPriority = { - fulfilment_priority_text?: string; - affiliate_priority_code?: string; - fulfilment_priority?: number; -}; -/** @returns {ArticleDetails} */ -declare function ArticleDetails(): ArticleDetails; -type ArticleDetails = { - _id: string; - brand_id: number; - dimension: any; - category: any; - weight: any; - attributes: any; - quantity: number; -}; -/** @returns {LocationDetails} */ -declare function LocationDetails(): LocationDetails; -type LocationDetails = { - fulfillment_type: string; - articles: ArticleDetails[]; - fulfillment_id: number; -}; -/** @returns {ShipmentDetails} */ -declare function ShipmentDetails(): ShipmentDetails; -type ShipmentDetails = { - box_type?: string; - shipments: number; - fulfillment_id: number; - articles: ArticleDetails[]; - dp_id?: string; - meta?: any; - affiliate_shipment_id: string; - dp_options?: any; - lock_status?: boolean; - action_to_status?: any; -}; -/** @returns {ShipmentConfig} */ -declare function ShipmentConfig(): ShipmentConfig; -type ShipmentConfig = { - location_details?: LocationDetails; - source: string; - to_pincode: string; - shipment: ShipmentDetails[]; - identifier: string; - payment_mode: string; - action: string; - journey: string; -}; -/** @returns {ShipmentData} */ -declare function ShipmentData(): ShipmentData; -type ShipmentData = { - shipment_data: ShipmentConfig; -}; -/** @returns {MarketPlacePdf} */ -declare function MarketPlacePdf(): MarketPlacePdf; -type MarketPlacePdf = { - invoice?: string; - label?: string; -}; -/** @returns {AffiliateBag} */ -declare function AffiliateBag(): AffiliateBag; -type AffiliateBag = { - pdf_links?: MarketPlacePdf; - store_id: number; - sku: string; - discount: number; - unit_price: number; - price_effective: number; - affiliate_store_id: string; - identifier: any; - seller_identifier: string; - item_size: string; - amount_paid: number; - fynd_store_id: string; - item_id: number; - delivery_charge: number; - avl_qty: number; - price_marked: number; - quantity: number; - company_id: number; - hsn_code_id: string; - _id: string; - affiliate_meta: any; - modified_on: string; - transfer_price: number; -}; -/** @returns {UserData} */ -declare function UserData(): UserData; -type UserData = { - shipping_user?: OrderUser; - billing_user?: OrderUser; -}; -/** @returns {OrderInfo} */ -declare function OrderInfo(): OrderInfo; -type OrderInfo = { - affiliate_order_id?: string; - cod_charges: number; - items: any; - discount: number; - billing_address: OrderUser; - payment?: any; - order_priority?: OrderPriority; - shipment?: ShipmentData; - delivery_charges: number; - shipping_address: OrderUser; - order_value: number; - payment_mode: string; - bags: AffiliateBag[]; - user: UserData; - coupon?: string; -}; -/** @returns {AffiliateAppConfigMeta} */ -declare function AffiliateAppConfigMeta(): AffiliateAppConfigMeta; -type AffiliateAppConfigMeta = { - value: string; - name: string; -}; -/** @returns {AffiliateAppConfig} */ -declare function AffiliateAppConfig(): AffiliateAppConfig; -type AffiliateAppConfig = { - id: string; - description?: string; - updated_at: string; - name: string; - token: string; - meta?: AffiliateAppConfigMeta[]; - owner: string; - secret: string; - created_at: string; -}; -/** @returns {AffiliateInventoryArticleAssignmentConfig} */ -declare function AffiliateInventoryArticleAssignmentConfig(): AffiliateInventoryArticleAssignmentConfig; -type AffiliateInventoryArticleAssignmentConfig = { - post_order_reassignment?: boolean; -}; -/** @returns {AffiliateInventoryPaymentConfig} */ -declare function AffiliateInventoryPaymentConfig(): AffiliateInventoryPaymentConfig; -type AffiliateInventoryPaymentConfig = { - source?: string; - mode_of_payment?: string; -}; -/** @returns {AffiliateInventoryStoreConfig} */ -declare function AffiliateInventoryStoreConfig(): AffiliateInventoryStoreConfig; -type AffiliateInventoryStoreConfig = { - store?: any; -}; -/** @returns {AffiliateInventoryOrderConfig} */ -declare function AffiliateInventoryOrderConfig(): AffiliateInventoryOrderConfig; -type AffiliateInventoryOrderConfig = { - force_reassignment?: boolean; -}; -/** @returns {AffiliateInventoryLogisticsConfig} */ -declare function AffiliateInventoryLogisticsConfig(): AffiliateInventoryLogisticsConfig; -type AffiliateInventoryLogisticsConfig = { - dp_assignment?: boolean; -}; -/** @returns {AffiliateInventoryConfig} */ -declare function AffiliateInventoryConfig(): AffiliateInventoryConfig; -type AffiliateInventoryConfig = { - article_assignment?: AffiliateInventoryArticleAssignmentConfig; - payment?: AffiliateInventoryPaymentConfig; - inventory?: AffiliateInventoryStoreConfig; - order?: AffiliateInventoryOrderConfig; - logistics?: AffiliateInventoryLogisticsConfig; -}; -/** @returns {AffiliateConfig} */ -declare function AffiliateConfig(): AffiliateConfig; -type AffiliateConfig = { - app?: AffiliateAppConfig; - inventory?: AffiliateInventoryConfig; - app_company_id?: number; -}; -/** @returns {Affiliate} */ -declare function Affiliate(): Affiliate; -type Affiliate = { - id: string; - config?: AffiliateConfig; - token: string; -}; -/** @returns {AffiliateStoreIdMapping} */ -declare function AffiliateStoreIdMapping(): AffiliateStoreIdMapping; -type AffiliateStoreIdMapping = { - store_id: number; - marketplace_store_id: string; -}; -/** @returns {OrderConfig} */ -declare function OrderConfig(): OrderConfig; -type OrderConfig = { - create_user?: boolean; - article_lookup?: string; - bag_end_state?: string; - affiliate: Affiliate; - store_lookup?: string; - affiliate_store_id_mapping: AffiliateStoreIdMapping[]; -}; -/** @returns {DPConfiguration} */ -declare function DPConfiguration(): DPConfiguration; -type DPConfiguration = { - /** - * - Shipping_by denotes dp assignment - * strategy- if shipping_by is fynd dp assignment would be handled by OMS - */ - shipping_by?: string; -}; -/** @returns {PaymentConfig} */ -declare function PaymentConfig(): PaymentConfig; -type PaymentConfig = { - /** - * - Specifies the mode through which the - * payment was collected, serving as an identifier for the payment's origin. - */ - mode_of_payment?: string; - /** - * - The source field identifies the channel through - * which the order was placed, such as MARKETPLACE, ECOMM. - */ - source?: string; +/** @returns {PaymentConfig} */ +declare function PaymentConfig(): PaymentConfig; +type PaymentConfig = { + /** + * - Specifies the mode through which the + * payment was collected, serving as an identifier for the payment's origin. + */ + mode_of_payment?: string; + /** + * - The source field identifies the channel through + * which the order was placed, such as MARKETPLACE, ECOMM. + */ + source?: string; }; /** @returns {CreateOrderConfig} */ declare function CreateOrderConfig(): CreateOrderConfig; type CreateOrderConfig = { - dp_configuration?: DPConfiguration; + dp_configuration: DPConfiguration; /** * - Flag denotes integration type which * is used to retrieve specific configurations and application details @@ -3815,208 +3861,372 @@ type CreateOrderConfig = { */ optimal_shipment_creation?: boolean; }; -/** @returns {CreateOrderPayload} */ -declare function CreateOrderPayload(): CreateOrderPayload; -type CreateOrderPayload = { - affiliate_id: string; - order_info: OrderInfo; - order_config: OrderConfig; -}; /** @returns {CreateOrderResponse} */ declare function CreateOrderResponse(): CreateOrderResponse; type CreateOrderResponse = { + /** + * - A string that represents the unique + * identifier assigned to the order. + */ fynd_order_id: string; }; /** @returns {DispatchManifest} */ declare function DispatchManifest(): DispatchManifest; type DispatchManifest = { /** - * - Id of the manifest. + * - The unique identifier for the manifest being + * dispatched. */ manifest_id: string; }; /** @returns {SuccessResponse} */ declare function SuccessResponse(): SuccessResponse; type SuccessResponse = { + /** + * - Indicates whether the API call was successful + * (true) or not (false). + */ success?: boolean; + /** + * - A descriptive message providing additional + * information about the API response. + */ message?: string; }; /** @returns {ActionInfo} */ declare function ActionInfo(): ActionInfo; type ActionInfo = { + /** + * - A user-friendly text that represents the + * action associated with the permission. + */ display_text: string; + /** + * - A unique identifier for the permission, used for + * referencing within the system. + */ id: number; + /** + * - A detailed explanation of what the + * permission allows the user to do. + */ description: string; + /** + * - A URL-friendly string that serves as a unique + * identifier for the permission, often used in routing or API calls. + */ slug: string; }; /** @returns {GetActionsResponse} */ declare function GetActionsResponse(): GetActionsResponse; type GetActionsResponse = { + /** + * - A response object that contains a + * list of permissions available to the user. + */ permissions?: ActionInfo[]; }; /** @returns {HistoryReason} */ declare function HistoryReason(): HistoryReason; type HistoryReason = { + /** + * - A reason for the activity or change. + */ text?: string; + /** + * - Category of the reason for the status change. + */ category?: string; + /** + * - Current state related to the reason. + */ state?: string; + /** + * - Display name of the reason for better user + * understanding. + */ dislay_name?: string; + /** + * - Unique code identifying the reason. + */ code?: number; + /** + * - Quantity related to the reason, if applicable. + */ quantity?: number; }; /** @returns {HistoryMeta} */ declare function HistoryMeta(): HistoryMeta; type HistoryMeta = { + /** + * - Unique identifier for the store involved in + * the activity. + */ store_id?: number; + /** + * - Current status of the activity or item. + */ status?: string; + /** + * - Additional status information if necessary. + */ status1?: string; + /** + * - Identifier for any related calls, if applicable. + */ call_id?: string; + /** + * - Start time of the activity. + */ starttime?: string; reason?: HistoryReason; + /** + * - A shortened link related to the activity, + * if available. + */ short_link?: string; + /** + * - End time of the activity. + */ endtime?: string; + /** + * - Name of the store involved in the activity. + */ store_name?: string; + /** + * - Name of the caller associated with the activity. + */ caller?: string; + /** + * - Code associated with the store. + */ store_code?: string; + /** + * - Duration of the billable period, if applicable. + */ billsec?: string; + /** + * - Path to any related recordings, if applicable. + */ recordpath?: string; + /** + * - Additional status information if necessary. + */ status2?: string; + /** + * - Caller ID associated with the activity, if applicable. + */ callerid?: string; + /** + * - Total duration of the activity. + */ duration?: string; + /** + * - Type of channel used for the activity, if + * applicable. + */ channel_type?: string; + /** + * - Comments related to the activity, if + * applicable. + */ activity_comment?: string; + /** + * - Type of activity being recorded, if applicable. + */ activity_type?: string; + /** + * - Name of the receiver involved in the + * activity, if applicable. + */ receiver?: string; + /** + * - Recipient of the activity, if applicable. + */ recipient?: string; + /** + * - Slug identifier for the activity. + */ slug?: string; + /** + * - Any additional messages related to the activity. + */ message?: string; }; /** @returns {HistoryDict} */ declare function HistoryDict(): HistoryDict; type HistoryDict = { /** - * - Display Message + * - User-friendly message displaying the + * activity or status change. */ display_message?: string; /** - * - Bag ID + * - Identifier for the bag associated with the activity. */ bag_id?: number; /** - * - Ticket URL + * - URL for any related tickets. */ ticket_url?: string; /** - * - L3 details of bag + * - L3 details regarding the bag or activity. */ l3_detail?: string; /** - * - Create date + * - Date and time when the activity was created. */ createdat: string; /** - * - Ticket ID + * - Timestamp for when the activity was created + * in ISO format. + */ + created_ts?: string; + /** + * - Unique identifier for the ticket associated + * with the activity. */ ticket_id?: string; /** - * - Type of history, Expected Values: [ - * activity_status, activity_escalation, activity_comment, - * outbound_notification, outbound_voice ] + * - Type of activity history */ type: string; /** - * - L2 details of bag + * - L2 details regarding the bag or activity. */ l2_detail?: string; /** - * - Assigned Agent + * - Name of the agent assigned to the activity. */ assigned_agent?: string; /** - * - Meta + * - Metadata about the activity */ meta?: HistoryMeta; /** - * - L1 details of bag + * - L1 details regarding the bag or activity. */ l1_detail?: string; /** - * - History Message or comment + * - Message or comment regarding the history. */ message: string; /** - * - User who created the history + * - Name of the user who created the history record. */ user: string; }; /** @returns {ShipmentHistoryResponse} */ declare function ShipmentHistoryResponse(): ShipmentHistoryResponse; type ShipmentHistoryResponse = { + /** + * - Indicates whether the API call was successful + * (true) or not (false). + */ success?: boolean; + /** + * - A list of activity records + * related to the shipment, providing details on actions taken, comments + * added, or notifications sent. + */ activity_history: HistoryDict[]; }; /** @returns {PostHistoryFilters} */ declare function PostHistoryFilters(): PostHistoryFilters; type PostHistoryFilters = { + /** + * - Unique identifier for the shipment + */ shipment_id: string; + /** + * - Optional field to specify a particular + * line item in the shipment. + */ line_number?: string; + /** + * - Optional field for any additional + * identifier related to the shipment. + */ identifier?: string; }; /** @returns {PostHistoryData} */ declare function PostHistoryData(): PostHistoryData; type PostHistoryData = { + /** + * - The name or email of the user who performed + * the action or recorded the entry. + */ user_name: string; + /** + * - A descriptive message detailing the action taken + * or the status related to the shipment. + */ message: string; }; /** @returns {PostHistoryDict} */ declare function PostHistoryDict(): PostHistoryDict; type PostHistoryDict = { + /** + * - A list of filter objects, each + * following the PostHistoryFilters schema, used to identify which shipment + * history records are relevant. + */ filters: PostHistoryFilters[]; data: PostHistoryData; }; /** @returns {PostShipmentHistory} */ declare function PostShipmentHistory(): PostShipmentHistory; type PostShipmentHistory = { + /** + * - A list of activity history + * records, each adhering to the PostHistoryDict schema. + */ activity_history?: PostHistoryDict[]; }; /** @returns {SmsDataPayload} */ declare function SmsDataPayload(): SmsDataPayload; type SmsDataPayload = { /** - * - ShipmentId + * - Unique identifier for the shipment + * associated with the SMS. */ shipment_id: number; /** - * - Phone number for communication + * - The recipient's phone number for communication. */ phone_number: number; /** - * - Data mapped in Communication template: amount_paid + * - The amount that has been paid, as mapped + * in the communication template. */ amount_paid?: number; /** - * - OrderId + * - Unique identifier for the order associated with + * the shipment. */ order_id: string; /** - * - Data mapped in Communication template: payment_mode + * - The mode of payment used for the order, + * as mapped in the communication template. */ payment_mode?: string; /** - * - Data mapped in Communication template: - * customer_name + * - The name of the customer, as mapped in + * the communication template. */ customer_name?: string; /** - * - Data mapped in Communication template: brand_name + * - The name of the brand associated with the + * order, as mapped in the communication template. */ brand_name?: string; /** - * - Message to be send in SMS + * - The content of the SMS to be sent to the recipient. */ message: string; /** - * - Country code for SMS + * - The country code for the recipient's phone + * number, necessary for proper SMS delivery. */ country_code: string; }; @@ -4024,15 +4234,17 @@ type SmsDataPayload = { declare function SendSmsPayload(): SendSmsPayload; type SendSmsPayload = { /** - * - Bag_id for the activity history track + * - Unique identifier for the bag, used for tracking + * activity history related to this SMS. */ bag_id: number; /** - * - SMS Data + * - Contains the SMS data necessary for communication. */ data?: SmsDataPayload; /** - * - Slug name for the template mapped in pointblank + * - Slug name for the SMS template mapped in the + * communication system, used to identify the specific messaging format or content. */ slug: string; }; @@ -4074,24 +4286,60 @@ type OrderDetails = { /** @returns {Meta} */ declare function Meta(): Meta; type Meta = { + /** + * - An integer representing the + * status of the message upon emission to Kafka. 0 indicates success, while 1 + * indicates failure. + */ kafka_emission_status?: number; + /** + * - A string that specifies the state + * manager utilized for handling the order's state. + */ state_manager_used?: string; }; /** @returns {ShipmentDetail} */ declare function ShipmentDetail(): ShipmentDetail; type ShipmentDetail = { + /** + * - Unique identifier for the shipment + * associated with the order. + */ shipment_id?: string; + /** + * - A string representing the current status of the shipment + */ status?: string; + /** + * - An integer that serves as a unique identifier for the + * shipment detail + */ id: number; + /** + * - A list of bag identifiers associated with + * the shipment. + */ bag_list?: number[]; meta: Meta; + /** + * - A string for any additional comments or notes + * related to the shipment, + */ remarks?: string; }; /** @returns {OrderStatusData} */ declare function OrderStatusData(): OrderStatusData; type OrderStatusData = { order_details: OrderDetails; + /** + * - A list of any errors that occurred while + * attempting to obtain the order's status. + */ errors?: string[]; + /** + * - A list of the individual + * shipments associated with the order and their current statuses. + */ shipment_details?: ShipmentDetail[]; /** * - A label or description of the delivery status, @@ -4117,23 +4365,56 @@ type OrderStatusData = { /** @returns {OrderStatusResult} */ declare function OrderStatusResult(): OrderStatusResult; type OrderStatusResult = { + /** + * - Indicates whether the API call was successful + * (true) or not (false). + */ success: string; + /** + * - The order's current status and + * related shipment details. + */ result?: OrderStatusData[]; }; /** @returns {Dimension} */ declare function Dimension(): Dimension; type Dimension = { + /** + * - Describes the type of packaging used. + */ packaging_type?: string; - weight?: string; - height?: string; + /** + * - The weight of the package in kilograms. + */ + weight?: number; + /** + * - The height of the package in centimetres. + */ + height?: number; + /** + * - The length of the package in centimetres. + */ length?: number; + /** + * - The width of the package in centimetres. + */ width?: number; }; /** @returns {UpdatePackagingDimensionsPayload} */ declare function UpdatePackagingDimensionsPayload(): UpdatePackagingDimensionsPayload; type UpdatePackagingDimensionsPayload = { + /** + * - Unique identifier for the shipment for which + * the packaging dimensions are being updated. + */ shipment_id: string; + /** + * - The current status of the shipment. + */ current_status: string; + /** + * - A list of dimensions for the packaging. + */ dimension: Dimension[]; }; /** @returns {UpdatePackagingDimensionsResponse} */ @@ -4144,23 +4425,47 @@ type UpdatePackagingDimensionsResponse = { /** @returns {Tax} */ declare function Tax(): Tax; type Tax = { + /** + * - The name of the tax, indicating its purpose (e.g., + * VAT, sales tax). + */ name: string; + /** + * - The tax rate as a decimal, applied to the transaction amount. + */ rate: number; + /** + * - An array of objects detailing the components + * or breakdown of the tax applied. + */ breakup?: any[]; + /** + * - An object representing the total tax amount + * calculated for the transaction. + */ amount: any; }; +/** @returns {AmountSchema} */ +declare function AmountSchema(): AmountSchema; +type AmountSchema = { + /** + * - The value indicating the currency used for + * the transactions. + */ + currency?: string; + /** + * - The final amount of the charge. + */ + value?: number; +}; /** @returns {Charge} */ declare function Charge(): Charge; type Charge = { /** - * - The name of the charge. + * - The name of the charge that indicates its purpose. */ name: string; - /** - * - The monetary value of the charge, including value - * and currency details. - */ - amount: any; + amount: AmountSchema; tax?: Tax; /** * - An optional code associated with the charge for @@ -4175,13 +4480,18 @@ type Charge = { /** @returns {LineItem} */ declare function LineItem(): LineItem; type LineItem = { + /** + * - An array of Charge objects related to the line item. + */ charges?: Charge[]; /** - * - Meta data of the articles or line items. + * - An object containing metadata relevant to + * articles or line items. */ meta?: any; /** - * - Meta data of the articles or line items. + * - A string for any special instructions + * or messages related to the line item. */ custom_message?: string; /** @@ -4189,7 +4499,8 @@ type LineItem = { */ quantity?: number; /** - * - Seller identifier of the articles or line items. + * - Unique identifier of the articles or + * line items set by seller. */ seller_identifier: string; /** @@ -4201,16 +4512,44 @@ type LineItem = { /** @returns {ProcessingDates} */ declare function ProcessingDates(): ProcessingDates; type ProcessingDates = { + /** + * - An object that provides details about + * the designated pickup time slot for the order. + */ dp_pickup_slot?: any; + /** + * - A string indicating the date after + * which the order will be dispatched. + */ dispatch_after_date?: string; + /** + * - A string representing the latest date + * by which the order must be dispatched to meet delivery expectations. + */ dispatch_by_date?: string; + /** + * - A string that indicates the deadline + * for the merchant to confirm the order. + */ confirm_by_date?: string; - customer_pickup_slot?: any; + /** + * - An object that provides details + * of the pick-up time slot set by the customer. + */ + customer_pickup_slot?: any; + /** + * - A string indicating the date by which the + * order must be packaged for fulfillment. + */ pack_by_date?: string; }; /** @returns {Shipment} */ declare function Shipment(): Shipment; type Shipment = { + /** + * - An array of LineItem objects that + * represent the items included in the shipment. + */ line_items: LineItem[]; /** * - External shipment identifier or @@ -4219,11 +4558,12 @@ type Shipment = { external_shipment_id?: string; processing_dates?: ProcessingDates; /** - * - Meta data of the shipment. + * - An object containing metadata related to the shipment. */ meta?: any; /** - * - Integer value indicating high and low priority. + * - An integer indicating the priority level of + * the shipment. */ priority?: number; /** @@ -4236,9 +4576,7 @@ type Shipment = { */ location_id?: number; /** - * - The order type of shipment HomeDelivery - - * If the customer wants the order home-delivered PickAtStore - If the - * customer wants the handover of an order at the store itself. + * - The order type of shipment. */ order_type?: string; parent_type?: string; @@ -4269,68 +4607,146 @@ type Shipment = { price?: Prices; gst?: ShipmentGstDetails; }; +/** @returns {GeoLocationSchema} */ +declare function GeoLocationSchema(): GeoLocationSchema; +type GeoLocationSchema = { + /** + * - A number representing the geographical + * latitude of the location. + */ + latitude?: number; + /** + * - A number representing the geographical + * longitude of the location + */ + longitude?: number; +}; /** @returns {ShippingInfo} */ declare function ShippingInfo(): ShippingInfo; type ShippingInfo = { + /** + * - A string for an alternate + * mobile number to reach the customer, providing an additional contact method. + */ alternate_mobile_number?: string; + /** + * - A string representing the name of the state for + * shipping purposes. + */ state?: string; + /** + * - A string representing the customer's + * unique identifier in the seller's system. + */ customer_code?: string; + /** + * - A string describing the shipping type. + */ shipping_type?: string; + /** + * - A string containing the customer's middle name. + */ middle_name?: string; + /** + * - A string for the customer's + * primary mobile number. + */ primary_mobile_number?: string; + /** + * - A string containing the customer's last name. + */ last_name?: string; - geo_location?: any; + geo_location?: GeoLocationSchema; + /** + * - A string representing the customer's gender. + */ gender?: string; + /** + * - A string representing the house or apartment + * number of the customer. + */ house_no?: string; + /** + * - A string representing the customer's first name. + */ first_name?: string; + /** + * - A string representing the customer's title or prefix. + */ title?: string; + /** + * - A string representing a landmark or reference + * point near the customer's location. + */ landmark?: string; + /** + * - A string representing the customer's country. + */ country?: string; + /** + * - A string representing the address type in + * the seller's system. + */ address_type?: string; + /** + * - A string representing the state code of the + * customer's location. + */ state_code?: string; + /** + * - A string representing the city of the customer's location. + */ city?: string; + /** + * - A string representing an + * external customer code in the seller's system. + */ external_customer_code?: string; + /** + * - A string representing the floor number of the + * customer's location. + */ floor_no?: string; + /** + * - A string representing an alternate + * email address for the customer. + */ alternate_email?: string; + /** + * - A list of objects representing available time + * slot for delivery or pickup. + */ slot?: any[]; - address?: string; - area?: string; - address1?: string; - pincode?: string; - primary_email?: string; - address2?: string; - country_code?: string; /** - * - Country Code in ISO 2 format (e.g. US, IN) + * - A comma-separated string representing the address. */ - country_iso_code?: string; -}; -/** @returns {BillingInfo} */ -declare function BillingInfo(): BillingInfo; -type BillingInfo = { - alternate_mobile_number?: string; - state?: string; - customer_code?: string; - middle_name?: string; - primary_mobile_number?: string; - last_name?: string; - gender?: string; - house_no?: string; - first_name?: string; - title?: string; - country?: string; - state_code?: string; - city?: string; - external_customer_code?: string; - floor_no?: string; - alternate_email?: string; address?: string; + /** + * - A string representing the area of the customer's location. + */ area?: string; + /** + * - A string representing the first line of the address. + */ address1?: string; + /** + * - A string representing the pincode of the + * customer's location. + */ pincode?: string; + /** + * - A string representing the primary email + * address for the customer. + */ primary_email?: string; + /** + * - A string representing the second line of the address. + */ address2?: string; - landmark?: string; + /** + * - A string representing the country code of + * the customer's location. + */ country_code?: string; /** * - Country Code in ISO 2 format (e.g. US, IN) @@ -4340,143 +4756,275 @@ type BillingInfo = { /** @returns {UserInfo} */ declare function UserInfo(): UserInfo; type UserInfo = { + /** + * - The unique identifier assigned to the user. + */ user_id?: string; + /** + * - A string representing the type of the user. + */ user_type?: string; + /** + * - A string representing the primary email + * address for the user. + */ primary_email?: string; + /** + * - A string specifying the gender of the user. + */ gender?: string; + /** + * - A string which specifies the user's first name. + */ first_name: string; + /** + * - A string which specifies the user's last name. + */ last_name?: string; + /** + * - A string representing the primary + * mobile number for the user. + */ primary_mobile_number: string; }; /** @returns {TaxInfo} */ declare function TaxInfo(): TaxInfo; type TaxInfo = { + /** + * - A string representing the GSTIN + * (Goods and Services Tax Identification Number) for business-to-business + * transactions. + */ b2b_gstin_number?: string; + /** + * - A string that specifies the GSTIN for the seller. + */ gstin?: string; + /** + * - A string representing the PAN assigned to + * individuals or entities for tax purposes in India. + */ pan_no?: string; }; /** @returns {PaymentMethod} */ declare function PaymentMethod(): PaymentMethod; type PaymentMethod = { + /** + * - A string indicating the entity responsible + * for collecting the payment. + */ collect_by: string; + /** + * - A string that specifies the mode of payment. + */ mode: string; + /** + * - A string that indicates the entity responsible + * for processing refunds. + */ refund_by: string; + /** + * - A string representing the name of the payment method. + */ name: string; + /** + * - A number representing the monetary value + * associated with the payment method. + */ amount: number; + /** + * - An object for any additional metadata related to + * the payment method. + */ meta?: any; + /** + * - An object that holds + * transaction-specific information. + */ transaction_data?: any; }; /** @returns {PaymentInfo} */ declare function PaymentInfo(): PaymentInfo; type PaymentInfo = { + /** + * - A string that indicates the primary payment + * method used for the order. + */ primary_mode: string; + /** + * - A string that indicates the payment mode + * used for the order. + */ + payment_mode?: string; + /** + * - A lists all available payment + * methods used in the transaction. + */ payment_methods?: PaymentMethod[]; }; /** @returns {CreateOrderAPI} */ declare function CreateOrderAPI(): CreateOrderAPI; type CreateOrderAPI = { + /** + * - An array of shipment objects that detail + * the items being shipped as part of the order. + */ shipments: Shipment[]; shipping_info: ShippingInfo; - billing_info: BillingInfo; + billing_info: ShippingInfo; + /** + * - An object that provides details about + * the currency in which the order is processed, including currency code and + * conversion rates if applicable. + */ currency_info?: any; + /** + * - A unique identifier for the order + * assigned by an external system. + */ external_order_id?: string; + /** + * - An array of charge objects that detail the + * various fees associated with the order. + */ charges?: Charge[]; + /** + * - A string that specifies the + * date and time when the order was created in an external system + */ external_creation_date?: string; + /** + * - A generic object that can hold any additional + * metadata related to the order. + */ meta?: any; tax_info?: TaxInfo; - config?: CreateOrderConfig; + config: CreateOrderConfig; payment_info: PaymentInfo; user_info?: UserInfo; + /** + * - Unique identifier for the store + * where the order was placed. + */ ordering_store_id?: number; + /** + * - The platform used to place the order. + */ order_platform?: string; + /** + * - A string that specifies the type of order + * being placed. + */ + order_type?: string; + /** + * - Unique identifier for the order. + */ + fynd_order_id?: string; + /** + * - A unique identifier for the application + * or system that is making the order request. + */ + application_id?: string; + /** + * - External shipment identifier or + * marketplace's unique shipment identifier. + */ + external_shipment_id?: string; }; /** @returns {CreateOrderErrorReponse} */ declare function CreateOrderErrorReponse(): CreateOrderErrorReponse; type CreateOrderErrorReponse = { - request_id?: string; - status: number; - info?: any; - stack_trace?: string; - code?: string; - meta?: string; - message: string; - exception?: string; -}; -/** @returns {DpConfiguration} */ -declare function DpConfiguration(): DpConfiguration; -type DpConfiguration = { - shipping_by?: string; -}; -/** @returns {PaymentMethods} */ -declare function PaymentMethods(): PaymentMethods; -type PaymentMethods = { - collect_by?: string; - refund_by?: string; - mode?: string; -}; -/** @returns {CreateChannelPaymentInfo} */ -declare function CreateChannelPaymentInfo(): CreateChannelPaymentInfo; -type CreateChannelPaymentInfo = { - source?: string; - payment_methods?: PaymentMethods[]; - mode_of_payment?: string; -}; -/** @returns {CreateChannelConfig} */ -declare function CreateChannelConfig(): CreateChannelConfig; -type CreateChannelConfig = { - dp_configuration?: DpConfiguration; - shipment_assignment?: string; - location_reassignment?: boolean; - logo_url?: any; - payment_info?: CreateChannelPaymentInfo; - lock_states?: string[]; -}; -/** @returns {CreateChannelConfigData} */ -declare function CreateChannelConfigData(): CreateChannelConfigData; -type CreateChannelConfigData = { - config_data?: CreateChannelConfig; -}; -/** @returns {CreateChannelConifgErrorResponse} */ -declare function CreateChannelConifgErrorResponse(): CreateChannelConifgErrorResponse; -type CreateChannelConifgErrorResponse = { - error?: string; -}; -/** @returns {CreateChannelConfigResponse} */ -declare function CreateChannelConfigResponse(): CreateChannelConfigResponse; -type CreateChannelConfigResponse = { - is_inserted?: boolean; - is_upserted?: boolean; - acknowledged?: boolean; + /** + * - Indicates whether the API call was successful + * (true) or not (false). + */ + success?: boolean; + /** + * - Contains details about the error. + */ + errors?: string; + /** + * - Represents the HTTP status code of the API response. + */ + status_code?: number; + /** + * - A string that represents the unique + * identifier assigned to the order. + */ + fynd_order_id?: string; }; -/** @returns {UploadConsent} */ -declare function UploadConsent(): UploadConsent; -type UploadConsent = { +/** @returns {UploadManifestConsent} */ +declare function UploadManifestConsent(): UploadManifestConsent; +type UploadManifestConsent = { + /** + * - A URL that directs users to a consent page + * or document related to the upload of the manifest. + */ consent_url: string; + /** + * - The unique identifier for the manifest being uploaded. + */ manifest_id: string; }; /** @returns {PlatformOrderUpdate} */ declare function PlatformOrderUpdate(): PlatformOrderUpdate; type PlatformOrderUpdate = { + /** + * - A string that represents the unique identifier + * assigned to the order. + */ order_id: string; }; /** @returns {ResponseDetail} */ declare function ResponseDetail(): ResponseDetail; type ResponseDetail = { + /** + * - Indicates whether the API call was successful + * (true) or not (false). + */ success?: boolean; - message?: string[]; + /** + * - A descriptive message providing additional + * information about the API response. + */ + message?: string; + /** + * - Represents the HTTP status code of the API response. + */ + status?: number; }; /** @returns {FyndOrderIdList} */ declare function FyndOrderIdList(): FyndOrderIdList; type FyndOrderIdList = { + /** + * - An array of strings that represent + * unique identifiers assigned to an order. + */ fynd_order_id?: string[]; + /** + * - A string representing the start date for + * the order status query. + */ + start_date?: string; + /** + * - A string representing the end date for the + * order status query. + */ + end_date?: string; + /** + * - An integer representing the mobile number + * associated with the order. + */ + mobile?: number; }; /** @returns {OrderStatus} */ declare function OrderStatus(): OrderStatus; type OrderStatus = { + /** + * - An array of objects that + * provide details about the orders, including their respective order IDs. + */ order_details?: FyndOrderIdList[]; - start_date: string; - end_date: string; - mobile: number; }; /** @returns {BagStateTransitionMap} */ declare function BagStateTransitionMap(): BagStateTransitionMap; @@ -4487,132 +5035,292 @@ type BagStateTransitionMap = { /** @returns {RoleBaseStateTransitionMapping} */ declare function RoleBaseStateTransitionMapping(): RoleBaseStateTransitionMapping; type RoleBaseStateTransitionMapping = { + /** + * - Indicates whether the API call was successful + * (true) or not (false). + */ success?: boolean; + /** + * - A list of possible next statuses that + * can be transitioned to from the current status. + */ next_statuses?: string[]; }; -/** @returns {FetchCreditBalanceRequestPayload} */ -declare function FetchCreditBalanceRequestPayload(): FetchCreditBalanceRequestPayload; -type FetchCreditBalanceRequestPayload = { - affiliate_id: string; - seller_id: string; - customer_mobile_number: string; -}; -/** @returns {CreditBalanceInfo} */ -declare function CreditBalanceInfo(): CreditBalanceInfo; -type CreditBalanceInfo = { - total_credited_balance?: string; - reason?: string; - customer_mobile_number?: string; -}; -/** @returns {FetchCreditBalanceResponsePayload} */ -declare function FetchCreditBalanceResponsePayload(): FetchCreditBalanceResponsePayload; -type FetchCreditBalanceResponsePayload = { - success: boolean; - data: CreditBalanceInfo; -}; /** @returns {RefundModeConfigRequestPayload} */ declare function RefundModeConfigRequestPayload(): RefundModeConfigRequestPayload; type RefundModeConfigRequestPayload = { + /** + * - A unique identifier for the order placed + * through the Fynd platform. + */ fynd_order_id: string; + /** + * - A unique identifier representing the seller + * associated with the order. + */ seller_id: number; + /** + * - An identifier for the affiliate partner + * associated with the order. + */ affiliate_id: string; - customer_mobile_number?: string; + /** + * - The mobile phone number of the + * customer who placed the order. + */ + customer_mobile_number?: number; }; /** @returns {RefundOption} */ declare function RefundOption(): RefundOption; type RefundOption = { + /** + * - The actual value representing the refund option. + */ value?: string; + /** + * - A unique identifier for the refund mode + */ slug?: string; + /** + * - A user-friendly name for the refund option. + */ name?: string; + /** + * - A string indicating the type of refund + * information provided. + */ type?: string; }; +/** @returns {RefundModeFormat} */ +declare function RefundModeFormat(): RefundModeFormat; +type RefundModeFormat = { + /** + * - Specifies the destination or method for the refunds. + */ + refund_to?: string; +}; /** @returns {RefundModeInfo} */ declare function RefundModeInfo(): RefundModeInfo; type RefundModeInfo = { + /** + * - A flag indicating whether the refund mode + * is currently active or not. + */ is_active?: boolean; + /** + * - A unique identifier for the refund mode. + */ slug?: string; + /** + * - A list of available refund options + * associated with this refund mode. + */ options?: RefundOption[]; + /** + * - A user-friendly name for the refund mode. + */ display_name?: string; + format?: RefundModeFormat; }; /** @returns {RefundModeConfigResponsePayload} */ declare function RefundModeConfigResponsePayload(): RefundModeConfigResponsePayload; type RefundModeConfigResponsePayload = { + /** + * - Indicates whether the API call was successful + * (true) or not (false). + */ success: boolean; + /** + * - An array of possible refund mode + * information objects. + */ data: RefundModeInfo[]; + /** + * - Represents the HTTP status code of the API response. + */ + status?: number; + /** + * - A descriptive message providing additional + * information about the API response. + */ + message?: string; }; /** @returns {AttachUserOtpData} */ declare function AttachUserOtpData(): AttachUserOtpData; type AttachUserOtpData = { + /** + * - A string representing a unique identifier for + * the OTP request. + */ request_id: string; }; /** @returns {AttachUserInfo} */ declare function AttachUserInfo(): AttachUserInfo; type AttachUserInfo = { + /** + * - A string representing the user's first name. + */ first_name: string; + /** + * - A string representing the user's last name. + */ last_name: string; + /** + * - A string representing the user's mobile number. + */ mobile: string; + /** + * - A string representing the user's country code. + */ country_code?: string; }; /** @returns {AttachOrderUser} */ declare function AttachOrderUser(): AttachOrderUser; type AttachOrderUser = { otp_data: AttachUserOtpData; + /** + * - A unique identifier for the order + * associated with the user attach. + */ fynd_order_id: string; user_info: AttachUserInfo; }; /** @returns {AttachOrderUserResponse} */ declare function AttachOrderUserResponse(): AttachOrderUserResponse; type AttachOrderUserResponse = { + /** + * - Indicates whether the API call was successful + * (true) or not (false). + */ success?: boolean; + /** + * - A descriptive message providing additional + * information about the API response. + */ message?: string; }; /** @returns {SendUserMobileOTP} */ declare function SendUserMobileOTP(): SendUserMobileOTP; type SendUserMobileOTP = { - mobile: string; + /** + * - The mobile phone number of the user to whom the + * OTP (One-Time Password) will be sent. + */ + mobile: number; + /** + * - The country code associated with the + * user's mobile number. + */ country_code?: string; }; /** @returns {PointBlankOtpData} */ declare function PointBlankOtpData(): PointBlankOtpData; type PointBlankOtpData = { + /** + * - A unique identifier for the OTP request. + */ request_id?: string; + /** + * - The amount of time (in seconds) before + * the OTP can be resent to the user. + */ resend_timer?: number; + /** + * - A message providing additional information + * about the OTP request. + */ message?: string; + /** + * - The mobile number (in integer format) + * associated with the OTP request. + */ mobile?: number; }; /** @returns {SendUserMobileOtpResponse} */ declare function SendUserMobileOtpResponse(): SendUserMobileOtpResponse; type SendUserMobileOtpResponse = { + /** + * - Indicates whether the API call was successful + * (true) or not (false). + */ success?: boolean; + /** + * - The HTTP status code of the API response + * (200/400/500/503). + */ + status?: number; + /** + * - A descriptive message providing additional + * information about the API response. + */ message?: string; data?: PointBlankOtpData; }; /** @returns {VerifyOtpData} */ declare function VerifyOtpData(): VerifyOtpData; type VerifyOtpData = { + /** + * - A unique identifier for the OTP verification request. + */ request_id: string; + /** + * - The mobile number associated with the OTP verification. + */ mobile: string; + /** + * - The OTP code received by the user. + */ otp_code: number; }; /** @returns {VerifyMobileOTP} */ declare function VerifyMobileOTP(): VerifyMobileOTP; type VerifyMobileOTP = { otp_data: VerifyOtpData; + /** + * - A unique identifier for the order + * associated with the OTP verification. + */ fynd_order_id: string; }; /** @returns {VerifyOtpResponseData} */ declare function VerifyOtpResponseData(): VerifyOtpResponseData; type VerifyOtpResponseData = { + /** + * - The mobile number associated with the verified OTP. + */ mobile?: string; + /** + * - A string that provides a message about the + * outcome of the verification process. + */ message?: string; + /** + * - Unique identifier for the order + * associated with the OTP verification. + */ fynd_order_id?: string; + /** + * - A string indicating the country code + * associated with the mobile number. + */ country_code?: string; }; /** @returns {VerifyOtpResponse} */ declare function VerifyOtpResponse(): VerifyOtpResponse; type VerifyOtpResponse = { + /** + * - Represents the HTTP status code of the API response. + */ status?: number; + /** + * - Indicates whether the API call was successful + * (true) or not (false). + */ success?: boolean; + /** + * - A descriptive message providing additional + * information about the API response. + */ message?: string; data?: VerifyOtpResponseData; }; @@ -4620,61 +5328,111 @@ type VerifyOtpResponse = { declare function BulkReportsDownloadRequest(): BulkReportsDownloadRequest; type BulkReportsDownloadRequest = { /** - * - Download for specific store ids. + * - A list of specific store IDs for which the + * reports should be generated. */ store_ids?: string[]; + /** + * - Specifies the type of lane for which the + * report is being requested. + */ lane_type?: string; /** - * - Download report with specific headers + * - Allows users to specify custom + * headers for the downloaded report. */ - custom_headers?: string; + custom_headers?: string[]; /** - * - Type of report + * - Indicates the type of report being requested. */ report_type?: string; /** - * - UTC start date in ISO format + * - UTC start date in ISO format, defines the + * beginning of the date range for which the report data should be collected. */ start_date?: string; /** - * - UTC end date in ISO format + * - UTC end date in ISO format, defines the end + * date range for which the report data should be collected. */ end_date?: string; /** - * - Download for specific enitites, entities - * can be bag, shipment or order_id, etc. + * - Download for specific enitites or for + * search filters applied, entities can be bag, shipment or order_id, etc. */ entities?: string[]; + /** + * - Specifies the type of filtering to be + * applied to the report data. + */ filter_type?: string; /** - * - Download lanes for cross company. + * - Indicates whether the report + * should include data from cross-company operations. */ is_cross_company_enabled?: boolean; + /** + * - A flexible object that allows + * users to define custom filters specific to the lanes being reported on. + */ custom_filters_for_lane?: any; }; /** @returns {BulkReportsDownloadResponse} */ declare function BulkReportsDownloadResponse(): BulkReportsDownloadResponse; type BulkReportsDownloadResponse = { + /** + * - Indicates whether the API call was successful + * (true) or not (false). + */ success?: boolean; + /** + * - A unique identifier for the batch of reports generated. + */ batch_id?: string; }; -/** @returns {BulkFailedResponse} */ -declare function BulkFailedResponse(): BulkFailedResponse; -type BulkFailedResponse = { +/** @returns {APIFailedResponse} */ +declare function APIFailedResponse(): APIFailedResponse; +type APIFailedResponse = { + /** + * - Indicates whether the API call was successful + * (true) or not (false). + */ status?: boolean; + /** + * - A descriptive message detailing the error that + * occurred during the API call. + */ error?: string; }; -/** @returns {BulkStateTransistionRequest} */ -declare function BulkStateTransistionRequest(): BulkStateTransistionRequest; -type BulkStateTransistionRequest = { +/** @returns {BulkStateTransistionRequestSchema} */ +declare function BulkStateTransistionRequestSchema(): BulkStateTransistionRequestSchema; +type BulkStateTransistionRequestSchema = { + /** + * - Endpoint or resource URL where the bulk state + * transition request should be directed. + */ url?: string; + /** + * - Name of the file associated with the bulk operation. + */ file_name?: string; }; /** @returns {BulkStateTransistionResponse} */ declare function BulkStateTransistionResponse(): BulkStateTransistionResponse; type BulkStateTransistionResponse = { + /** + * - Indicates whether the API call was successful + * (true) or not (false). + */ status?: boolean; + /** + * - A descriptive message providing additional + * information about the API response. + */ message?: string; + /** + * - A unique identifier for the batch of reports generated. + */ batch_id?: string; }; /** @returns {ShipmentActionInfo} */ @@ -4693,116 +5451,419 @@ type ShipmentActionInfo = { /** @returns {BulkActionListingData} */ declare function BulkActionListingData(): BulkActionListingData; type BulkActionListingData = { + /** + * - The unique identifier for the store + * associated with the bulk action. + */ store_id?: number; + /** + * - A timestamp indicating when the bulk + * action was uploaded. + */ uploaded_on?: string; + /** + * - Unique identifier of a company on the platform. + */ company_id?: number; shipments_action_info?: ShipmentActionInfo; + /** + * - Indicates whether the bulk action is + * eligible for invoicing. + */ is_invoiceable?: boolean; + /** + * - The name of the user who initiated or + * uploaded the bulk action. + */ user_name?: string; + /** + * - The URL where the uploaded file can be accessed. + */ file_url?: string; + /** + * - A flexible object that can contain additional + * metadata related to the bulk action. + */ meta?: any; + /** + * - The type of document that is + * used for invoicing this bulk action. + */ invoice_document_type?: string; + /** + * - The type of document that is used + * for creating labels for this bulk action. + */ label_document_type?: string; + /** + * - The name of the file that was uploaded as + * part of the bulk action. + */ file_name?: string; + /** + * - The name of the store associated with the + * bulk action. + */ store_name?: string; + /** + * - A timestamp (in Unix format) indicating + * when the bulk action was last updated. + */ updated_ts?: number; + /** + * - Indicates the current status of the bulk action. + */ status?: boolean; + /** + * - A code representing the store, which can be + * used for internal tracking or identification. + */ store_code?: string; + /** + * - Specifies the type of bulk action + * being performed. + */ bulk_action_type?: string; + /** + * - A timestamp indicating when the bulk action + * was created. + */ created_ts?: string; + /** + * - Represents the current status of the + * invoice associated with the bulk action. + */ invoice_status?: string; + /** + * - Indicates whether an + * invoice label has been generated for the bulk action or not. + */ do_invoice_label_generated?: boolean; + /** + * - A unique identifier for the bulk action record. + */ id?: number; + /** + * - The unique identifier for the user who + * initiated the bulk action. + */ user_id?: string; + /** + * - Indicates the last + * invoice label type selected for the bulk action. + */ last_selected_invoice_label_type?: string; + /** + * - A unique identifier for the batch associated + * with this bulk action. + */ batch_id?: string; + /** + * - The identifier or name of the individual + * or system that uploaded the bulk action. + */ uploaded_by?: string; + /** + * - The type of document + * generated for invoice labels. + */ + invoicelabel_document_type?: string; + /** + * - The number of failed shipments in this + * bulk action. + */ + failed_sh_count?: number; + /** + * - The number of successful shipments + * in this bulk action. + */ + successful_sh_count?: number; + /** + * - The total number of shipments processed in + * this bulk action. + */ + total_count?: number; + /** + * - An array of shipment identifiers + * that failed during processing. + */ + failed_shipments?: string[]; + /** + * - The number of shipments + * successfully invoiced. + */ + successful_invoiced_count?: number; + /** + * - The number of shipments that + * failed during invoicing. + */ + failed_invoiced_count?: number; + /** + * - The total number of shipments + * that have been invoiced. + */ + total_invoiced_count?: number; }; /** @returns {BulkListinPage} */ declare function BulkListinPage(): BulkListinPage; type BulkListinPage = { + /** + * - Indicates the current page number being viewed + * in the pagination. + */ current?: number; + /** + * - A flag indicating whether there is a + * previous page available. + */ has_previous?: boolean; + /** + * - A flag indicating whether there is a next + * page available. + */ has_next?: boolean; + /** + * - The total number of items available in the + * dataset, regardless of pagination. + */ total?: number; + /** + * - The total number of items present on the + * current page. + */ item_total?: number; + /** + * - A string that may indicate the type of pagination + * or the context of the data being paginated. + */ type?: string; + /** + * - The number of items per page. + */ size?: number; }; /** @returns {BulkListingResponse} */ declare function BulkListingResponse(): BulkListingResponse; type BulkListingResponse = { + /** + * - Indicates whether the API call was successful + * (true) or not (false). + */ success?: boolean; + /** + * - An array containing the details + * of the bulk actions listed. + */ data?: BulkActionListingData[]; page?: BulkListinPage; + /** + * - Total number of bulk actions available in + * the system, regardless of pagination. + */ total_count?: number; }; /** @returns {JobDetailsData} */ declare function JobDetailsData(): JobDetailsData; type JobDetailsData = { + /** + * - A unique identifier for the batch of bulk + * actions associated with this job. + */ batch_id?: string; + /** + * - The total number of shipments + * processed in this job. + */ total_shipments_count?: number; + /** + * - An array of identifiers for + * shipments that were successfully processed. + */ successful_shipment_ids?: string[]; + /** + * - The number of successful + * shipments processed in this job. + */ successful_shipments_count?: number; + /** + * - The number of shipments that + * failed to process in this job. + */ failed_shipments_count?: number; + /** + * - The number of shipments + * currently being processed for this job. + */ processing_shipments_count?: number; + /** + * - Unique identifier of a company on the platform. + */ company_id?: string; }; /** @returns {JobDetailsResponse} */ declare function JobDetailsResponse(): JobDetailsResponse; type JobDetailsResponse = { + /** + * - Indicates whether the API call was successful + * (true) or not (false). + */ success?: boolean; + /** + * - An array representing the details of a job. + */ data?: JobDetailsData[]; + /** + * - An URL to download the submitted job file. + */ file_url?: string; + /** + * - A message providing additional context about + * the request's outcome. + */ message?: string; + /** + * - An array of records that failed + * during processing, with additional properties providing details about each failure. + */ failed_records?: any[]; + /** + * - The name or identifier of the user who + * uploaded the job. + */ uploaded_by?: string; + /** + * - The unique identifier for the user who + * performed the upload. + */ user_id?: string; + /** + * - A timestamp indicating when the job was created. + */ created_ts?: string; + /** + * - A timestamp indicating when the job was uploaded. + */ uploaded_on?: string; + /** + * - The current status of the job. + */ status?: string; }; /** @returns {JobFailedResponse} */ declare function JobFailedResponse(): JobFailedResponse; type JobFailedResponse = { + /** + * - The name of the file associated with the failed job. + */ file_name?: string; + /** + * - The URL where the uploaded bulk file can be accessed. + */ url?: string; }; /** @returns {ManifestPageInfo} */ declare function ManifestPageInfo(): ManifestPageInfo; type ManifestPageInfo = { + /** + * - The current page number being viewed. + */ current: number; + /** + * - The total number of records available across all pages. + */ total: number; + /** + * - Indicates whether there is a next page available. + */ has_next: boolean; + /** + * - The size of the current page's results set. + */ size: number; + /** + * - Indicates whether there is a previous page + * available. + */ has_previous: boolean; + /** + * - Indicates whether there is a previous page available. + */ type: string; }; /** @returns {ManifestItemDetails} */ declare function ManifestItemDetails(): ManifestItemDetails; type ManifestItemDetails = { + /** + * - The quantity of items in the shipment. + */ quantity?: number; + /** + * - Unique identifier for the shipment. + */ shipment_id: string; + /** + * - Unique identifier for the order. + */ order_id: string; + /** + * - Unique identifier for the shipment's air + * waybill number. + */ awb_number?: string; + /** + * - Unique identifier for the invoice + * associated with the shipment. + */ invoice_id?: string; + /** + * - Timestamp indicating when the + * shipment was created. + */ shipment_created_at?: string; }; /** @returns {ManifestShipmentListing} */ declare function ManifestShipmentListing(): ManifestShipmentListing; type ManifestShipmentListing = { + /** + * - Total number of shipment items in the manifest. + */ total_count: number; - lane?: string; + /** + * - Identifier or name for the lane associated with the + * shipments. + */ + lane: string; page: ManifestPageInfo; + /** + * - Indicates whether the API call was successful + * (true) or not (false). + */ success: boolean; - status: number; - items?: ManifestItemDetails[]; + /** + * - Represents the HTTP status code of the API response. + */ + status?: number; + /** + * - List of items in the manifest, each + * containing detailed shipment information. + */ + items: ManifestItemDetails[]; + /** + * - Additional message or information regarding + * the response. + */ message?: string; }; /** @returns {DateRange} */ declare function DateRange(): DateRange; type DateRange = { + /** + * - The start date of the range. + */ from_date?: string; + /** + * - The end date of the range. + */ to_date?: string; }; /** @returns {Filters} */ @@ -4814,71 +5875,116 @@ type Filters = { */ logo?: string; /** - * - UTC start date in ISO format. + * - The start date for filtering records, + * provided in UTC and formatted in ISO format. */ from_date?: string; /** - * - Filter with the specific store. + * - Specifies a specific store ID for filtering the records. */ stores?: number; /** - * - UTC end date in ISO format. + * - The end date for filtering records, provided + * in UTC and formatted in ISO format. */ to_date?: string; /** - * - Filter with the specific courier partner name. + * - The name of the courier partner to filter records by. */ dp_name?: string; /** * - Combination of courier partner ids separated by - * byte operator. + * comma operator. */ dp_ids?: string; /** - * - Criteria for lane on which shipments must be fetched. + * - Specifies criteria related to the shipment lanes. */ lane?: string; /** - * - Selected shipments mapped to the manifest. + * - A list of selected shipments that + * are mapped to the manifest. */ selected_shipments?: string; /** - * - Filter with the specific store name. + * - The name of the store for filtering records. */ store_name?: string; /** - * - Deselected shipments unmapped - * from the manifest. + * - A list of shipments that have + * been unmapped from the manifest. */ deselected_shipments?: string; }; /** @returns {ManifestFile} */ declare function ManifestFile(): ManifestFile; type ManifestFile = { + /** + * - This field represents the unique identifier for + * the file within the storage system. + */ key?: string; + /** + * - Indicates the geographical region where the + * file is stored. + */ region?: string; + /** + * - The name of the storage bucket where the file is stored. + */ bucket?: string; }; /** @returns {ManifestMediaUpdate} */ declare function ManifestMediaUpdate(): ManifestMediaUpdate; type ManifestMediaUpdate = { + /** + * - The name or type of the media entity being updated. + */ entity?: string; + /** + * - A URL or link to the media resource. + */ link?: string; + /** + * - A numerical code representing the media update + * status or type. + */ code?: number; + /** + * - The type of media being updated. + */ media_type?: string; + /** + * - Indicate the status of this media update. + */ status?: boolean; file?: ManifestFile; }; /** @returns {PDFMeta} */ declare function PDFMeta(): PDFMeta; type PDFMeta = { + /** + * - This field contains information related to user consent. + */ consent?: string; + /** + * - An array of media update + * entries associated with the manifest. + */ media_updates?: ManifestMediaUpdate[]; }; /** @returns {TotalShipmentPricesCount} */ declare function TotalShipmentPricesCount(): TotalShipmentPricesCount; type TotalShipmentPricesCount = { + /** + * - This field represents the total monetary + * value of the shipments. + */ total_price?: number; + /** + * - This field represents the number of + * shipments associated with the manifest. + */ shipment_count?: number; }; /** @returns {ManifestMeta} */ @@ -4890,96 +5996,143 @@ type ManifestMeta = { /** @returns {Manifest} */ declare function Manifest(): Manifest; type Manifest = { + /** + * - Unique identifier of a company on the platform. + */ company_id: number; filters?: Filters; pdf_meta?: PDFMeta; meta?: ManifestMeta; + /** + * - Indicates whether the manifest is currently + * active or has been completed/closed. + */ is_active: boolean; + /** + * - The unique identifier of the user who created or + * modified the manifest. + */ user_id: string; + /** + * - The date and time when the manifest was created. + */ created_at: string; + /** + * - A timestamp representing when the manifest + * was created, typically in UTC. + */ created_ts?: string; + /** + * - The unique identifier assigned to the manifest. + */ manifest_id: string; + /** + * - The current status of the Manifest. + */ status: string; + /** + * - The unique identifier assigned to the manifest item. + */ id: number; + /** + * - A universally unique identifier for the manifest. + */ uid: string; + /** + * - The username or identifier of the individual + * who created the manifest. + */ created_by: string; }; /** @returns {ManifestList} */ declare function ManifestList(): ManifestList; type ManifestList = { + /** + * - A list of manifest records. + */ items?: Manifest[]; page?: ManifestPageInfo; }; /** @returns {ManifestDetails} */ declare function ManifestDetails(): ManifestDetails; type ManifestDetails = { - items?: ManifestItemDetails[]; - page?: ManifestPageInfo; - additional_shipment_count?: number; - manifest_details?: Manifest[]; -}; -/** @returns {FiltersRequest} */ -declare function FiltersRequest(): FiltersRequest; -type FiltersRequest = { - date_range?: DateRange; - logo?: string; - stores: number; - dp_name: string; - dp_ids: number; - lane: string; - store_name: string; -}; -/** @returns {ProcessManifest} */ -declare function ProcessManifest(): ProcessManifest; -type ProcessManifest = { - filters: FiltersRequest; - action: string; - unique_id: string; - manifest_id?: string; -}; -/** @returns {ProcessManifestResponse} */ -declare function ProcessManifestResponse(): ProcessManifestResponse; -type ProcessManifestResponse = { /** - * - Id of the company. + * - An list of detailed information + * about individual shipments within the manifest. */ - company_id?: number; - filters?: Filters; + items?: ManifestItemDetails[]; + page?: ManifestPageInfo; /** - * - Id of the user. + * - Represents the count of + * additional shipments associated with the manifest. */ - user_id?: string; + additional_shipment_count?: number; /** - * - Id of the manifest. + * - An array of manifest objects that + * provide overarching details about the manifest itself. */ - manifest_id?: string; - action?: string; - uid?: string; - created_by?: string; -}; -/** @returns {ProcessManifestItemResponse} */ -declare function ProcessManifestItemResponse(): ProcessManifestItemResponse; -type ProcessManifestItemResponse = { - items?: ProcessManifestResponse; + manifest_details?: Manifest[]; }; /** @returns {FilterInfoOption} */ declare function FilterInfoOption(): FilterInfoOption; type FilterInfoOption = { + /** + * - The option value or text set for the filter option. + */ text?: string; + /** + * - The option name indicating the type of + * information the filter relates to. + */ name?: string; + /** + * - Represents the placeholder text that + * might appear in a UI element. + */ placeholder_text?: string; + /** + * - A unique value for the filter used in processing + * filter selections. + */ value?: string; + /** + * - Indicates the minimum size for search + * criteria, potentially related to how many items to display or filter. + */ min_search_size?: number; + /** + * - Indicates whether this option should be + * visible in the user interface. + */ show_ui?: boolean; }; /** @returns {FiltersInfo} */ declare function FiltersInfo(): FiltersInfo; type FiltersInfo = { options?: FilterInfoOption[]; + /** + * - The label or name for the filter, which indicates + * what the filter is related to. + */ text: string; + /** + * - A placeholder text that provides + * guidance on how to use the filter. + */ placeholder_text?: string; + /** + * - A unique identifier for the filter, used for + * processing filter selections. + */ value: string; + /** + * - Indicates whether the filter is mandatory to + * fill out when applying the filter set. + */ required?: boolean; + /** + * - Specifies the type of filter. + */ type: string; }; /** @returns {ManifestFiltersResponse} */ @@ -5093,58 +6246,64 @@ type EInvoiceRetryShipmentData = { declare function CourierPartnerTrackingDetails(): CourierPartnerTrackingDetails; type CourierPartnerTrackingDetails = { /** - * - AWB Number + * - The Air Waybill (AWB) number associated with the + * shipment, used for tracking the parcel in transit. */ awb: string; /** - * - Current location of Courier partner + * - The current geographic location of the + * courier partner. */ dp_location?: string; /** - * - Courier Partner name + * - The name of the courier partner responsible for + * the shipment. */ dp_name: string; /** - * - Status at Courier partner end + * - The current status of the shipment as updated + * by the courier partner. */ dp_status: string; /** - * - Date Time at which status was - * updated at Courier partner + * - The timestamp when the status was + * last updated by the courier partner. */ dp_status_updated_at: string; /** - * - Estimated delivery date - * received from Courier partner + * - The estimated date and time + * for delivery as provided by the courier partner. */ estimated_delivery_date?: string; /** - * - Id of Tracking history + * - A unique identifier for the tracking history entry. */ id?: number; /** - * - Journey type of the shipment + * - Indicates the type of journey the shipment. */ journey: string; /** - * - Meta field to store Courier partner's meta data + * - A field to store additional metadata related to + * the courier partner's operations or the shipment. */ meta?: any; /** - * - Operational status of OMS + * - The operational status of the shipment. */ operational_status: string; /** - * - Promised delivery date received - * from Courier partner + * - PThe promised date and time for + * delivery as provided by the courier partner. */ promised_delivery_date?: string; /** - * - Remark from courier partner + * - Any additional remarks or comments from the + * courier partner regarding the shipment. */ remark?: string; /** - * - Shipment ID + * - The unique identifier for the shipment. */ shipment_id: string; }; @@ -5209,9 +6368,9 @@ type GenerateInvoiceIDErrorResponseData = { invoice_id?: boolean; error_message?: string; }; -/** @returns {GenerateInvoiceIDRequest} */ -declare function GenerateInvoiceIDRequest(): GenerateInvoiceIDRequest; -type GenerateInvoiceIDRequest = { +/** @returns {GenerateInvoiceIDRequestSchema} */ +declare function GenerateInvoiceIDRequestSchema(): GenerateInvoiceIDRequestSchema; +type GenerateInvoiceIDRequestSchema = { shipment_ids: string[]; }; /** @returns {GenerateInvoiceIDResponse} */ @@ -5233,52 +6392,58 @@ type ManifestResponse = { declare function ProcessManifestRequest(): ProcessManifestRequest; type ProcessManifestRequest = { /** - * - Expected Actions: [save, process, - * pdf_generated,invalidate,pdf_failed,complete] + * - Represents the operation to be performed on the manifest. */ - action?: string; + action: string; /** - * - Id of The Manifest. + * - Represents the identifier for a specific manifest. */ manifest_id?: string; - filters?: Filters; + filters: Filters; /** - * - Unique Id. + * - A unique identifier for the request or the + * operation being performed. */ - unique_id?: string; + unique_id: string; }; /** @returns {ManifestItems} */ declare function ManifestItems(): ManifestItems; type ManifestItems = { filters?: Filters; /** - * - Id of the manifest. + * - The unique identifier for the manifest. */ manifest_id?: string; /** - * - Unique Id. + * - A unique identifier for the request or + * operation involving the manifest items. */ unique_id?: string; /** - * - Id of the company. + * - Unique identifier of a company on the platform. */ company_id?: number; /** - * - Shipment with the specific courier partner Id. + * - Unique identifier of the delivery partner. */ dp_id?: string; + /** + * - A slug or unique identifier for + * the courier partner. + */ courier_partner_slug?: string; /** - * - Expected Actions: [Save, Process, Pdf - * Generated, Invalidate, Pdf Failed, Complete] + * - Defines the expected action for the manifest items. */ action?: string; /** - * - Created date of the manifest. + * - The identifier for the user or system that + * created the manifest. */ created_by?: string; /** - * - Id of user. + * - The identifier for the user associated with + * the manifest items. */ user_id?: string; }; @@ -5286,11 +6451,12 @@ type ManifestItems = { declare function ManifestErrorResponse(): ManifestErrorResponse; type ManifestErrorResponse = { /** - * - Success State. + * - Indicates whether the API call was successful + * (true) or not (false). */ success?: boolean; /** - * - Error String. + * - Provides a descriptive error message. */ error?: string; }; @@ -5330,7 +6496,6 @@ type ConfigUpdatedResponse = { /** @returns {FlagData} */ declare function FlagData(): FlagData; type FlagData = { - value?: any; filter?: any; }; /** @returns {Flags} */ @@ -5651,6 +6816,34 @@ declare function TransitionConfigPayload(): TransitionConfigPayload; type TransitionConfigPayload = { data?: TransitionConfigData; }; +/** @returns {CommonErrorResponse} */ +declare function CommonErrorResponse(): CommonErrorResponse; +type CommonErrorResponse = { + /** + * - The HTTP status code corresponding to the error. + */ + status?: number; + /** + * - A message describing the error that occurred. + */ + message?: string; +}; +/** @returns {ExceptionErrorResponse} */ +declare function ExceptionErrorResponse(): ExceptionErrorResponse; +type ExceptionErrorResponse = { + /** + * - A message describing the error that occurred. + */ + message?: string; + /** + * - The class path of the exception that was thrown. + */ + exception?: string; + /** + * - The stack trace from the server for the error. + */ + stack_trace?: string; +}; /** @returns {Page} */ declare function Page(): Page; type Page = { @@ -6374,6 +7567,11 @@ type PDFLinks = { invoice_pos?: string; po_invoice?: string; }; +/** @returns {AffiliateConfig} */ +declare function AffiliateConfig(): AffiliateConfig; +type AffiliateConfig = { + app_company_id?: number; +}; /** @returns {AffiliateDetails} */ declare function AffiliateDetails(): AffiliateDetails; type AffiliateDetails = { @@ -7039,6 +8237,14 @@ type InvoiceDetails = { invoice_url?: string; label_url?: string; }; +/** @returns {ShipmentDetails} */ +declare function ShipmentDetails(): ShipmentDetails; +type ShipmentDetails = { + dp_id?: string; + dp_options?: any; + lock_status?: boolean; + action_to_status?: any; +}; /** @returns {UserDetails} */ declare function UserDetails(): UserDetails; type UserDetails = { @@ -7071,7 +8277,7 @@ type BagDetails = { article?: Article; article_details?: ArticleStatusDetails; bag_status?: BagStatusHistory[]; - bag_status_history?: BagStatusHistory; + bag_status_history?: BagStatusHistory[]; brand?: Brand; company?: Company; current_operational_status?: BagStatusHistory; @@ -7196,3 +8402,9 @@ type Error = { message?: string; success?: boolean; }; +/** @returns {BulkFailedResponse} */ +declare function BulkFailedResponse(): BulkFailedResponse; +type BulkFailedResponse = { + status?: boolean; + error?: string; +}; diff --git a/sdk/platform/Order/OrderPlatformModel.js b/sdk/platform/Order/OrderPlatformModel.js index 1c9dd1ad8..909c892b1 100644 --- a/sdk/platform/Order/OrderPlatformModel.js +++ b/sdk/platform/Order/OrderPlatformModel.js @@ -21,11 +21,17 @@ const Joi = require("joi"); * @property {InvalidateShipmentCacheNestedResponse[]} [response] */ +/** + * @typedef UpdatePackingErrorResponse + * @property {number} [status] - Represents the HTTP status code of the API response. + * @property {string} [error] - Descriptive error message that occurred. + */ + /** * @typedef ErrorResponse - * @property {number} [status] - The HTTP status code corresponding to the error. - * @property {boolean} [success] - Indicates whether the operation was - * successful. Always false in the case of an error. + * @property {number} [status] - Represents the HTTP status code of the API response. + * @property {boolean} [success] - Indicates whether the API call was successful + * (true) or not (false). * @property {string} message - A message describing the error that occurred. * @property {string} [error_trace] - Error trace of the error that occurred. * @property {string} [error] @@ -33,49 +39,62 @@ const Joi = require("joi"); /** * @typedef StoreReassign - * @property {number} store_id - * @property {number} [bag_id] - * @property {string} [affiliate_order_id] - * @property {string} [affiliate_id] - * @property {string} [item_id] - * @property {string} [fynd_order_id] - * @property {string} [set_id] - * @property {string} [affiliate_bag_id] - * @property {number[]} [reason_ids] - * @property {string} [mongo_article_id] + * @property {number} store_id - Unique id of the store. + * @property {number} [bag_id] - Identifier for the bag associated with the reassignment. + * @property {string} [affiliate_order_id] - Identifier for the affiliate order + * id associated with the reassignment. + * @property {string} [affiliate_id] - Identifier for the affiliate id + * associated with the reassignment. + * @property {string} [item_id] - Identifier for the item associated with the + * reassignment. + * @property {string} [fynd_order_id] - Identifier for the fynd order id + * associated with the reassignment. + * @property {string} [set_id] - Identifier for the set of items associated with + * the reassignment. + * @property {string} [affiliate_bag_id] - Identifiers for bags associated with + * the reassignment. + * @property {number[]} [reason_ids] - List of reason ids for the reassignment. + * @property {string} [mongo_article_id] - Identifier for the article id + * associated with the reassignment. */ /** * @typedef StoreReassignResponse - * @property {boolean} [success] - * @property {string} [message] + * @property {boolean} [success] - Indicates whether the API call was successful + * (true) or not (false). + * @property {string} [message] - A descriptive message providing additional + * information about the API response. */ /** - * @typedef Entities + * @typedef LockManagerEntities * @property {string} [id] - Shipment ID if 'entity_type': shipments | Bag Id if * 'entity_type': bags - * @property {string} [affiliate_order_id] - Application/Affiliate Order ID, - * Required if the ID is missing - * @property {string} [affiliate_id] - Application/Affiliate ID, Required if the - * ID is missing - * @property {string} reason_text - Reason For Shipment/Bag Action - * @property {string} [affiliate_bag_id] - Application/Affiliate Bag ID, - * Required if the ID is missing - * @property {string} [affiliate_shipment_id] - Application/Affiliate Shipment - * ID, Required if the ID is missing + * @property {string} [affiliate_order_id] - External identifier for the order + * id associated with shipment. + * @property {string} [affiliate_id] - Identifier for application associated + * with the shipment. + * @property {string} reason_text - A descriptive reason text for lock/unlock + * action of a shipment/bag. + * @property {string} [affiliate_bag_id] - External identifier for the bag id + * associated with orders/shipment. + * @property {string} [affiliate_shipment_id] - External identifier for the + * shipment id associated with orders/shipment. */ /** * @typedef UpdateShipmentLockPayload - * @property {string} entity_type - Expected entity_type: [bags, shipments] - * @property {string} action - Expected Actions: [lock, unlock, check] - * @property {string} action_type - Expected action_type: [complete, - * operational, financial] - * @property {Entities[]} entities - Shipment/Entity - * @property {boolean} [resume_tasks_after_unlock] - * @property {boolean} [lock_after_transition] - Lock Shipment After Transition - * @property {boolean} [unlock_before_transition] - Unlock Shipment After Transition + * @property {string} entity_type - Specifies the type of entity being locked or unlocked. + * @property {string} action - Indicates the action to be performed on the entity. + * @property {string} action_type - Specifies the type of action being taken. + * @property {LockManagerEntities[]} entities - List of entities to be locked or unlocked + * @property {boolean} [resume_tasks_after_unlock] - Indicates whether tasks + * should resume automatically after unlocking, such as DP assignment task and + * invoicing task. + * @property {boolean} [lock_after_transition] - Specifies whether the shipment + * should be locked automatically after a transition occurs. + * @property {boolean} [unlock_before_transition] - Specifies whether the + * shipment should be unlocked before a transition occurs. */ /** @@ -110,153 +129,193 @@ const Joi = require("joi"); /** * @typedef UpdateShipmentLockResponse - * @property {boolean} [success] - * @property {string} [message] - * @property {CheckResponse[]} [check_response] - Entity Lock Status, If the - * action input as 'check' + * @property {boolean} [success] - Indicates whether the API call was successful + * (true) or not (false). + * @property {string} [message] - A descriptive message providing additional + * information about the API response, such as success confirmation or error details. + * @property {CheckResponse[]} [check_response] - An array containing the lock + * status of entities if the action performed was a 'check'. Each item in the + * array represents the status of a specific entity. */ /** * @typedef AnnouncementResponse - * @property {string} [to_datetime] - * @property {number} id - * @property {string} [description] - * @property {string} [platform_name] - * @property {string} [from_datetime] - * @property {string} [platform_id] - * @property {string} [title] - * @property {number} [company_id] - * @property {string} [logo_url] - * @property {string} [created_at] + * @property {string} [to_datetime] - The end date and time for the event, + * indicating when the issue is expected to be resolved. + * @property {number} id - A unique identifier for the announcement. + * @property {string} [description] - A brief description providing additional + * context about the announcement. + * @property {string} [platform_name] - The name of the platform associated with + * this announcement. + * @property {string} [from_datetime] - The start date and time of the + * announcement going live. + * @property {string} [platform_id] - The unique identifier associated with the + * platform. In this case, it appears to be the same as the platform name, + * which might indicate a specific category or type. + * @property {string} [title] - The title summarizing the nature of the announcement. + * @property {number} [company_id] - A unique identifier for the company related + * to this announcement. + * @property {string} [logo_url] - A URL linking to the logo image associated + * with the platform or company. + * @property {string} [created_at] - The timestamp of when this announcement was + * created, providing context for its age and relevance. */ /** * @typedef AnnouncementsResponse * @property {AnnouncementResponse[]} [announcements] - * @property {boolean} [success] - * @property {string} [message] + * @property {boolean} [success] - Indicates whether the API call was successful + * (true) or not (false). + * @property {number} [status] - Represents the HTTP status code of the API response */ /** * @typedef BaseResponse - * @property {boolean} [success] - * @property {string} [message] - */ - -/** - * @typedef Click2CallResponse - * @property {string} call_id - Call ID from the provider - * @property {boolean} success - Success + * @property {boolean} [success] - Indicates whether the API call was successful + * (true) or not (false). + * @property {string} [message] - A descriptive message providing additional + * information about the API response. */ /** * @typedef ErrorDetail - * @property {boolean} [success] - * @property {string} [message] + * @property {boolean} [success] - Indicates whether the API call was successful + * (true) or not (false). + * @property {string} [message] - A descriptive message providing additional + * information about the API response. */ /** * @typedef ProductsReasonsFilters - * @property {number} [line_number] - Product/Bag Line number for the - * Product/Bag Identifier - * @property {string} [identifier] - Product/Bag Article/Item Identifier - * @property {number} [quantity] + * @property {number} [line_number] - The line number for the product or bag, + * which helps identify the specific item in a list or order. + * @property {string} [identifier] - The unique article or item identifier for + * the product or bag. + * @property {number} [quantity] - The quantity of the product or bag being referenced. */ /** * @typedef ProductsReasonsData - * @property {string} [reason_text] - * @property {number} [reason_id] + * @property {string} [reason_text] - A descriptive text providing the reason + * for the action or status associated with the product or bag. + * @property {number} [reason_id] - A unique identifier for the reason, used to + * reference specific reasons in the system. */ /** * @typedef ProductsReasons - * @property {ProductsReasonsFilters[]} [filters] + * @property {ProductsReasonsFilters[]} [filters] - A list of filters applied to + * specify which products the reasons pertain to. * @property {ProductsReasonsData} [data] */ /** * @typedef EntityReasonData - * @property {string} [reason_text] - * @property {number} [reason_id] + * @property {string} [reason_text] - A descriptive text providing the reason + * for the action or status associated with the product or bag. + * @property {number} [reason_id] - A unique identifier for the reason, used to + * reference specific reasons in the system. */ /** * @typedef EntitiesReasons - * @property {Object[]} [filters] + * @property {Object[]} [filters] - A list of filters applied to specify which + * entities the reasons pertain to. * @property {EntityReasonData} [data] */ /** * @typedef ReasonsData - * @property {ProductsReasons[]} [products] - * @property {EntitiesReasons[]} [entities] + * @property {ProductsReasons[]} [products] - A list of reasons specifically + * related to products involved in the shipment. + * @property {EntitiesReasons[]} [entities] - A list of reasons specifically + * related to shipment. */ /** * @typedef Products - * @property {number} [line_number] - Product/Bag Line number for the - * Product/Bag Identifier - * @property {string} [identifier] - Product/Bag Article/Item Identifier - * @property {number} [quantity] + * @property {number} [line_number] - The line number for the product or bag, + * which helps identify the specific item in a list or order. + * @property {string} [identifier] - The unique article or item identifier for + * the product or bag. + * @property {number} [quantity] - The quantity of the product or bag being referenced. */ /** * @typedef OrderItemDataUpdates - * @property {Object} [data] + * @property {Object} [data] - Contains the specific data for updating shipment bags data. */ /** * @typedef ProductsDataUpdatesFilters - * @property {number} [line_number] - Product/Bag Line number for the - * Product/Bag Identifier - * @property {string} [identifier] - Product/Bag Article/Item Identifier + * @property {number} [line_number] - The line number for the product or bag. + * @property {string} [identifier] - The unique article or item identifier for + * the product or bag. */ /** * @typedef ProductsDataUpdates - * @property {ProductsDataUpdatesFilters[]} [filters] - Filter for the Product/Bag - * @property {Object} [data] + * @property {ProductsDataUpdatesFilters[]} [filters] - A list of filters + * applied to specify which products or bags are targeted for updates. + * @property {Object} [data] - Contains the specific data for updating the + * products or bags. */ /** * @typedef EntitiesDataUpdates - * @property {Object[]} [filters] - * @property {Object} [data] + * @property {Object[]} [filters] - A list of filters used to specify which + * shipments are targeted for updates. + * @property {Object} [data] - Contains the specific data for updating the shipment. */ /** * @typedef DataUpdates - * @property {OrderItemDataUpdates[]} [order_item_status] - * @property {ProductsDataUpdates[]} [products] - * @property {EntitiesDataUpdates[]} [entities] + * @property {OrderItemDataUpdates[]} [order_item_status] - A list of updates + * related to the status of order items. + * @property {ProductsDataUpdates[]} [products] - A list of updates related to + * the properties of products or bags. + * @property {EntitiesDataUpdates[]} [entities] - A list of updates related to + * the properties of any relevant entities. */ /** * @typedef ShipmentsRequest - * @property {string} identifier - Shipment ID + * @property {string} identifier - Unique identifier for the shipment. * @property {ReasonsData} [reasons] - * @property {Products[]} [products] - Product/Bag to be updated + * @property {Products[]} [products] - A list of products or bags that need to + * be updated as part of the shipment status change. * @property {DataUpdates} [data_updates] */ /** * @typedef StatuesRequest - * @property {string} [status] - * @property {ShipmentsRequest[]} [shipments] - * @property {string} [exclude_bags_next_state] - State to be change for - * Remaining Bag/Products - * @property {boolean} [split_shipment] - Flag to split shipment - */ - -/** - * @typedef UpdateShipmentStatusRequest - * @property {boolean} [force_transition] - Force Transition - * @property {StatuesRequest[]} [statuses] - * @property {boolean} [lock_after_transition] - Lock Shipment After Transition - * @property {boolean} [unlock_before_transition] - Unlock Shipment After Transition - * @property {boolean} [task] - To Run Status Update as a background Task - * @property {boolean} [resume_tasks_after_unlock] - Resume Tasks After Unlock + * @property {string} [status] - The new status to be assigned to the shipment(s). + * @property {ShipmentsRequest[]} [shipments] - A list of shipments to which the + * new status will be applied. + * @property {string} [exclude_bags_next_state] - Specifies the state to which + * remaining bags or products should be changed, effectively excluding them + * from the current status update. + * @property {boolean} [split_shipment] - A flag indicating whether the shipment + * should be split into multiple parts. If set to true, the shipment will be + * divided according to the specified logic or criteria. + */ + +/** + * @typedef UpdateShipmentStatusRequestSchema + * @property {boolean} [force_transition] - Indicates whether to force the + * status transition, overriding any restrictions or checks that may normally apply. + * @property {StatuesRequest[]} [statuses] - A list of status updates to be + * applied to the shipment. + * @property {boolean} [lock_after_transition] - Specifies whether the shipment + * should be locked automatically after a transition occurs. + * @property {boolean} [unlock_before_transition] - Specifies whether the + * shipment should be unlocked before a transition occurs. + * @property {boolean} [task] - Indicates whether to run the status update as a + * background task, allowing other processes to continue without waiting for + * this operation to complete. + * @property {boolean} [resume_tasks_after_unlock] - Indicates whether tasks + * should resume automatically after unlocking, such as DP assignment task and + * invoicing task. */ /** @@ -281,219 +340,6 @@ const Joi = require("joi"); * @property {StatuesResponse[]} [statuses] */ -/** - * @typedef OrderUser - * @property {number} phone - * @property {string} last_name - * @property {string} [address1] - * @property {string} state - * @property {string} pincode - * @property {string} first_name - * @property {number} mobile - * @property {string} [address2] - * @property {string} email - * @property {string} country - * @property {string} city - */ - -/** - * @typedef OrderPriority - * @property {string} [fulfilment_priority_text] - * @property {string} [affiliate_priority_code] - * @property {number} [fulfilment_priority] - */ - -/** - * @typedef ArticleDetails - * @property {string} _id - * @property {number} brand_id - * @property {Object} dimension - * @property {Object} category - * @property {Object} weight - * @property {Object} attributes - * @property {number} quantity - */ - -/** - * @typedef LocationDetails - * @property {string} fulfillment_type - * @property {ArticleDetails[]} articles - * @property {number} fulfillment_id - */ - -/** - * @typedef ShipmentDetails - * @property {string} [box_type] - * @property {number} shipments - * @property {number} fulfillment_id - * @property {ArticleDetails[]} articles - * @property {string} [dp_id] - * @property {Object} [meta] - * @property {string} affiliate_shipment_id - * @property {Object} [dp_options] - * @property {boolean} [lock_status] - * @property {Object} [action_to_status] - */ - -/** - * @typedef ShipmentConfig - * @property {LocationDetails} [location_details] - * @property {string} source - * @property {string} to_pincode - * @property {ShipmentDetails[]} shipment - * @property {string} identifier - * @property {string} payment_mode - * @property {string} action - * @property {string} journey - */ - -/** - * @typedef ShipmentData - * @property {ShipmentConfig} shipment_data - */ - -/** - * @typedef MarketPlacePdf - * @property {string} [invoice] - * @property {string} [label] - */ - -/** - * @typedef AffiliateBag - * @property {MarketPlacePdf} [pdf_links] - * @property {number} store_id - * @property {string} sku - * @property {number} discount - * @property {number} unit_price - * @property {number} price_effective - * @property {string} affiliate_store_id - * @property {Object} identifier - * @property {string} seller_identifier - * @property {string} item_size - * @property {number} amount_paid - * @property {string} fynd_store_id - * @property {number} item_id - * @property {number} delivery_charge - * @property {number} avl_qty - * @property {number} price_marked - * @property {number} quantity - * @property {number} company_id - * @property {string} hsn_code_id - * @property {string} _id - * @property {Object} affiliate_meta - * @property {string} modified_on - * @property {number} transfer_price - */ - -/** - * @typedef UserData - * @property {OrderUser} [shipping_user] - * @property {OrderUser} [billing_user] - */ - -/** - * @typedef OrderInfo - * @property {string} [affiliate_order_id] - * @property {number} cod_charges - * @property {Object} items - * @property {number} discount - * @property {OrderUser} billing_address - * @property {Object} [payment] - * @property {OrderPriority} [order_priority] - * @property {ShipmentData} [shipment] - * @property {number} delivery_charges - * @property {OrderUser} shipping_address - * @property {number} order_value - * @property {string} payment_mode - * @property {AffiliateBag[]} bags - * @property {UserData} user - * @property {string} [coupon] - */ - -/** - * @typedef AffiliateAppConfigMeta - * @property {string} value - * @property {string} name - */ - -/** - * @typedef AffiliateAppConfig - * @property {string} id - * @property {string} [description] - * @property {string} updated_at - * @property {string} name - * @property {string} token - * @property {AffiliateAppConfigMeta[]} [meta] - * @property {string} owner - * @property {string} secret - * @property {string} created_at - */ - -/** - * @typedef AffiliateInventoryArticleAssignmentConfig - * @property {boolean} [post_order_reassignment] - */ - -/** - * @typedef AffiliateInventoryPaymentConfig - * @property {string} [source] - * @property {string} [mode_of_payment] - */ - -/** - * @typedef AffiliateInventoryStoreConfig - * @property {Object} [store] - */ - -/** - * @typedef AffiliateInventoryOrderConfig - * @property {boolean} [force_reassignment] - */ - -/** - * @typedef AffiliateInventoryLogisticsConfig - * @property {boolean} [dp_assignment] - */ - -/** - * @typedef AffiliateInventoryConfig - * @property {AffiliateInventoryArticleAssignmentConfig} [article_assignment] - * @property {AffiliateInventoryPaymentConfig} [payment] - * @property {AffiliateInventoryStoreConfig} [inventory] - * @property {AffiliateInventoryOrderConfig} [order] - * @property {AffiliateInventoryLogisticsConfig} [logistics] - */ - -/** - * @typedef AffiliateConfig - * @property {AffiliateAppConfig} [app] - * @property {AffiliateInventoryConfig} [inventory] - * @property {number} [app_company_id] - */ - -/** - * @typedef Affiliate - * @property {string} id - * @property {AffiliateConfig} [config] - * @property {string} token - */ - -/** - * @typedef AffiliateStoreIdMapping - * @property {number} store_id - * @property {string} marketplace_store_id - */ - -/** - * @typedef OrderConfig - * @property {boolean} [create_user] - * @property {string} [article_lookup] - * @property {string} [bag_end_state] - * @property {Affiliate} affiliate - * @property {string} [store_lookup] - * @property {AffiliateStoreIdMapping[]} affiliate_store_id_mapping - */ - /** * @typedef DPConfiguration * @property {string} [shipping_by] - Shipping_by denotes dp assignment @@ -510,7 +356,7 @@ const Joi = require("joi"); /** * @typedef CreateOrderConfig - * @property {DPConfiguration} [dp_configuration] + * @property {DPConfiguration} dp_configuration * @property {string} [integration_type] - Flag denotes integration type which * is used to retrieve specific configurations and application details * relevant to channel fulfillment. @@ -524,147 +370,175 @@ const Joi = require("joi"); * be passed to FDK for processing. */ -/** - * @typedef CreateOrderPayload - * @property {string} affiliate_id - * @property {OrderInfo} order_info - * @property {OrderConfig} order_config - */ - /** * @typedef CreateOrderResponse - * @property {string} fynd_order_id + * @property {string} fynd_order_id - A string that represents the unique + * identifier assigned to the order. */ /** * @typedef DispatchManifest - * @property {string} manifest_id - Id of the manifest. + * @property {string} manifest_id - The unique identifier for the manifest being + * dispatched. */ /** * @typedef SuccessResponse - * @property {boolean} [success] - * @property {string} [message] + * @property {boolean} [success] - Indicates whether the API call was successful + * (true) or not (false). + * @property {string} [message] - A descriptive message providing additional + * information about the API response. */ /** * @typedef ActionInfo - * @property {string} display_text - * @property {number} id - * @property {string} description - * @property {string} slug + * @property {string} display_text - A user-friendly text that represents the + * action associated with the permission. + * @property {number} id - A unique identifier for the permission, used for + * referencing within the system. + * @property {string} description - A detailed explanation of what the + * permission allows the user to do. + * @property {string} slug - A URL-friendly string that serves as a unique + * identifier for the permission, often used in routing or API calls. */ /** * @typedef GetActionsResponse - * @property {ActionInfo[]} [permissions] + * @property {ActionInfo[]} [permissions] - A response object that contains a + * list of permissions available to the user. */ /** * @typedef HistoryReason - * @property {string} [text] - * @property {string} [category] - * @property {string} [state] - * @property {string} [dislay_name] - * @property {number} [code] - * @property {number} [quantity] + * @property {string} [text] - A reason for the activity or change. + * @property {string} [category] - Category of the reason for the status change. + * @property {string} [state] - Current state related to the reason. + * @property {string} [dislay_name] - Display name of the reason for better user + * understanding. + * @property {number} [code] - Unique code identifying the reason. + * @property {number} [quantity] - Quantity related to the reason, if applicable. */ /** * @typedef HistoryMeta - * @property {number} [store_id] - * @property {string} [status] - * @property {string} [status1] - * @property {string} [call_id] - * @property {string} [starttime] + * @property {number} [store_id] - Unique identifier for the store involved in + * the activity. + * @property {string} [status] - Current status of the activity or item. + * @property {string} [status1] - Additional status information if necessary. + * @property {string} [call_id] - Identifier for any related calls, if applicable. + * @property {string} [starttime] - Start time of the activity. * @property {HistoryReason} [reason] - * @property {string} [short_link] - * @property {string} [endtime] - * @property {string} [store_name] - * @property {string} [caller] - * @property {string} [store_code] - * @property {string} [billsec] - * @property {string} [recordpath] - * @property {string} [status2] - * @property {string} [callerid] - * @property {string} [duration] - * @property {string} [channel_type] - * @property {string} [activity_comment] - * @property {string} [activity_type] - * @property {string} [receiver] - * @property {string} [recipient] - * @property {string} [slug] - * @property {string} [message] + * @property {string} [short_link] - A shortened link related to the activity, + * if available. + * @property {string} [endtime] - End time of the activity. + * @property {string} [store_name] - Name of the store involved in the activity. + * @property {string} [caller] - Name of the caller associated with the activity. + * @property {string} [store_code] - Code associated with the store. + * @property {string} [billsec] - Duration of the billable period, if applicable. + * @property {string} [recordpath] - Path to any related recordings, if applicable. + * @property {string} [status2] - Additional status information if necessary. + * @property {string} [callerid] - Caller ID associated with the activity, if applicable. + * @property {string} [duration] - Total duration of the activity. + * @property {string} [channel_type] - Type of channel used for the activity, if + * applicable. + * @property {string} [activity_comment] - Comments related to the activity, if + * applicable. + * @property {string} [activity_type] - Type of activity being recorded, if applicable. + * @property {string} [receiver] - Name of the receiver involved in the + * activity, if applicable. + * @property {string} [recipient] - Recipient of the activity, if applicable. + * @property {string} [slug] - Slug identifier for the activity. + * @property {string} [message] - Any additional messages related to the activity. */ /** * @typedef HistoryDict - * @property {string} [display_message] - Display Message - * @property {number} [bag_id] - Bag ID - * @property {string} [ticket_url] - Ticket URL - * @property {string} [l3_detail] - L3 details of bag - * @property {string} createdat - Create date - * @property {string} [ticket_id] - Ticket ID - * @property {string} type - Type of history, Expected Values: [ - * activity_status, activity_escalation, activity_comment, - * outbound_notification, outbound_voice ] - * @property {string} [l2_detail] - L2 details of bag - * @property {string} [assigned_agent] - Assigned Agent - * @property {HistoryMeta} [meta] - Meta - * @property {string} [l1_detail] - L1 details of bag - * @property {string} message - History Message or comment - * @property {string} user - User who created the history + * @property {string} [display_message] - User-friendly message displaying the + * activity or status change. + * @property {number} [bag_id] - Identifier for the bag associated with the activity. + * @property {string} [ticket_url] - URL for any related tickets. + * @property {string} [l3_detail] - L3 details regarding the bag or activity. + * @property {string} createdat - Date and time when the activity was created. + * @property {string} [created_ts] - Timestamp for when the activity was created + * in ISO format. + * @property {string} [ticket_id] - Unique identifier for the ticket associated + * with the activity. + * @property {string} type - Type of activity history + * @property {string} [l2_detail] - L2 details regarding the bag or activity. + * @property {string} [assigned_agent] - Name of the agent assigned to the activity. + * @property {HistoryMeta} [meta] - Metadata about the activity + * @property {string} [l1_detail] - L1 details regarding the bag or activity. + * @property {string} message - Message or comment regarding the history. + * @property {string} user - Name of the user who created the history record. */ /** * @typedef ShipmentHistoryResponse - * @property {boolean} [success] - * @property {HistoryDict[]} activity_history + * @property {boolean} [success] - Indicates whether the API call was successful + * (true) or not (false). + * @property {HistoryDict[]} activity_history - A list of activity records + * related to the shipment, providing details on actions taken, comments + * added, or notifications sent. */ /** * @typedef PostHistoryFilters - * @property {string} shipment_id - * @property {string} [line_number] - * @property {string} [identifier] + * @property {string} shipment_id - Unique identifier for the shipment + * @property {string} [line_number] - Optional field to specify a particular + * line item in the shipment. + * @property {string} [identifier] - Optional field for any additional + * identifier related to the shipment. */ /** * @typedef PostHistoryData - * @property {string} user_name - * @property {string} message + * @property {string} user_name - The name or email of the user who performed + * the action or recorded the entry. + * @property {string} message - A descriptive message detailing the action taken + * or the status related to the shipment. */ /** * @typedef PostHistoryDict - * @property {PostHistoryFilters[]} filters + * @property {PostHistoryFilters[]} filters - A list of filter objects, each + * following the PostHistoryFilters schema, used to identify which shipment + * history records are relevant. * @property {PostHistoryData} data */ /** * @typedef PostShipmentHistory - * @property {PostHistoryDict[]} [activity_history] + * @property {PostHistoryDict[]} [activity_history] - A list of activity history + * records, each adhering to the PostHistoryDict schema. */ /** * @typedef SmsDataPayload - * @property {number} shipment_id - ShipmentId - * @property {number} phone_number - Phone number for communication - * @property {number} [amount_paid] - Data mapped in Communication template: amount_paid - * @property {string} order_id - OrderId - * @property {string} [payment_mode] - Data mapped in Communication template: payment_mode - * @property {string} [customer_name] - Data mapped in Communication template: - * customer_name - * @property {string} [brand_name] - Data mapped in Communication template: brand_name - * @property {string} message - Message to be send in SMS - * @property {string} country_code - Country code for SMS + * @property {number} shipment_id - Unique identifier for the shipment + * associated with the SMS. + * @property {number} phone_number - The recipient's phone number for communication. + * @property {number} [amount_paid] - The amount that has been paid, as mapped + * in the communication template. + * @property {string} order_id - Unique identifier for the order associated with + * the shipment. + * @property {string} [payment_mode] - The mode of payment used for the order, + * as mapped in the communication template. + * @property {string} [customer_name] - The name of the customer, as mapped in + * the communication template. + * @property {string} [brand_name] - The name of the brand associated with the + * order, as mapped in the communication template. + * @property {string} message - The content of the SMS to be sent to the recipient. + * @property {string} country_code - The country code for the recipient's phone + * number, necessary for proper SMS delivery. */ /** * @typedef SendSmsPayload - * @property {number} bag_id - Bag_id for the activity history track - * @property {SmsDataPayload} [data] - SMS Data - * @property {string} slug - Slug name for the template mapped in pointblank + * @property {number} bag_id - Unique identifier for the bag, used for tracking + * activity history related to this SMS. + * @property {SmsDataPayload} [data] - Contains the SMS data necessary for communication. + * @property {string} slug - Slug name for the SMS template mapped in the + * communication system, used to identify the specific messaging format or content. */ /** @@ -704,25 +578,34 @@ const Joi = require("joi"); /** * @typedef Meta - * @property {number} [kafka_emission_status] - * @property {string} [state_manager_used] + * @property {number} [kafka_emission_status] - An integer representing the + * status of the message upon emission to Kafka. 0 indicates success, while 1 + * indicates failure. + * @property {string} [state_manager_used] - A string that specifies the state + * manager utilized for handling the order's state. */ /** * @typedef ShipmentDetail - * @property {string} [shipment_id] - * @property {string} [status] - * @property {number} id - * @property {number[]} [bag_list] + * @property {string} [shipment_id] - Unique identifier for the shipment + * associated with the order. + * @property {string} [status] - A string representing the current status of the shipment + * @property {number} id - An integer that serves as a unique identifier for the + * shipment detail + * @property {number[]} [bag_list] - A list of bag identifiers associated with + * the shipment. * @property {Meta} meta - * @property {string} [remarks] + * @property {string} [remarks] - A string for any additional comments or notes + * related to the shipment, */ /** * @typedef OrderStatusData * @property {OrderDetails} order_details - * @property {string[]} [errors] - * @property {ShipmentDetail[]} [shipment_details] + * @property {string[]} [errors] - A list of any errors that occurred while + * attempting to obtain the order's status. + * @property {ShipmentDetail[]} [shipment_details] - A list of the individual + * shipments associated with the order and their current statuses. * @property {string} [text] - A label or description of the delivery status, * such as 'Expected Delivery Date'. * @property {string} [value] - The detailed delivery status or time @@ -735,24 +618,27 @@ const Joi = require("joi"); /** * @typedef OrderStatusResult - * @property {string} success - * @property {OrderStatusData[]} [result] + * @property {string} success - Indicates whether the API call was successful + * (true) or not (false). + * @property {OrderStatusData[]} [result] - The order's current status and + * related shipment details. */ /** * @typedef Dimension - * @property {string} [packaging_type] - * @property {string} [weight] - * @property {string} [height] - * @property {number} [length] - * @property {number} [width] + * @property {string} [packaging_type] - Describes the type of packaging used. + * @property {number} [weight] - The weight of the package in kilograms. + * @property {number} [height] - The height of the package in centimetres. + * @property {number} [length] - The length of the package in centimetres. + * @property {number} [width] - The width of the package in centimetres. */ /** * @typedef UpdatePackagingDimensionsPayload - * @property {string} shipment_id - * @property {string} current_status - * @property {Dimension[]} dimension + * @property {string} shipment_id - Unique identifier for the shipment for which + * the packaging dimensions are being updated. + * @property {string} current_status - The current status of the shipment. + * @property {Dimension[]} dimension - A list of dimensions for the packaging. */ /** @@ -762,17 +648,26 @@ const Joi = require("joi"); /** * @typedef Tax - * @property {string} name - * @property {number} rate - * @property {Object[]} [breakup] - * @property {Object} amount + * @property {string} name - The name of the tax, indicating its purpose (e.g., + * VAT, sales tax). + * @property {number} rate - The tax rate as a decimal, applied to the transaction amount. + * @property {Object[]} [breakup] - An array of objects detailing the components + * or breakdown of the tax applied. + * @property {Object} amount - An object representing the total tax amount + * calculated for the transaction. + */ + +/** + * @typedef AmountSchema + * @property {string} [currency] - The value indicating the currency used for + * the transactions. + * @property {number} [value] - The final amount of the charge. */ /** * @typedef Charge - * @property {string} name - The name of the charge. - * @property {Object} amount - The monetary value of the charge, including value - * and currency details. + * @property {string} name - The name of the charge that indicates its purpose. + * @property {AmountSchema} amount * @property {Tax} [tax] * @property {string} [code] - An optional code associated with the charge for * internal tracking. @@ -781,42 +676,51 @@ const Joi = require("joi"); /** * @typedef LineItem - * @property {Charge[]} [charges] - * @property {Object} [meta] - Meta data of the articles or line items. - * @property {string} [custom_message] - Meta data of the articles or line items. + * @property {Charge[]} [charges] - An array of Charge objects related to the line item. + * @property {Object} [meta] - An object containing metadata relevant to + * articles or line items. + * @property {string} [custom_message] - A string for any special instructions + * or messages related to the line item. * @property {number} [quantity] - Quantity of the articles or line items. - * @property {string} seller_identifier - Seller identifier of the articles or line items. + * @property {string} seller_identifier - Unique identifier of the articles or + * line items set by seller. * @property {string} [external_line_id] - External unique identifier of the * articles or line items. */ /** * @typedef ProcessingDates - * @property {Object} [dp_pickup_slot] - * @property {string} [dispatch_after_date] - * @property {string} [dispatch_by_date] - * @property {string} [confirm_by_date] - * @property {Object} [customer_pickup_slot] - * @property {string} [pack_by_date] + * @property {Object} [dp_pickup_slot] - An object that provides details about + * the designated pickup time slot for the order. + * @property {string} [dispatch_after_date] - A string indicating the date after + * which the order will be dispatched. + * @property {string} [dispatch_by_date] - A string representing the latest date + * by which the order must be dispatched to meet delivery expectations. + * @property {string} [confirm_by_date] - A string that indicates the deadline + * for the merchant to confirm the order. + * @property {Object} [customer_pickup_slot] - An object that provides details + * of the pick-up time slot set by the customer. + * @property {string} [pack_by_date] - A string indicating the date by which the + * order must be packaged for fulfillment. */ /** * @typedef Shipment - * @property {LineItem[]} line_items + * @property {LineItem[]} line_items - An array of LineItem objects that + * represent the items included in the shipment. * @property {string} [external_shipment_id] - External shipment identifier or * marketplace's unique shipment identifier. * @property {ProcessingDates} [processing_dates] - * @property {Object} [meta] - Meta data of the shipment. - * @property {number} [priority] - Integer value indicating high and low priority. + * @property {Object} [meta] - An object containing metadata related to the shipment. + * @property {number} [priority] - An integer indicating the priority level of + * the shipment. * @property {number} [location_id] - Location Identifier or Store/Fulfillment * Identifier of the shipment- This field is mandatory when * optimal_shipment_creation flag is set to false, indicating that shipments * must be associated with a specific location. When * `optimal_shipment_creation` is true, the optimal location for order * creation would be assigned, location_id becomes optional. - * @property {string} [order_type] - The order type of shipment HomeDelivery - - * If the customer wants the order home-delivered PickAtStore - If the - * customer wants the handover of an order at the store itself. + * @property {string} [order_type] - The order type of shipment. * @property {string} [parent_type] * @property {string} [store_invoice_id] * @property {string} [lock_status] @@ -847,206 +751,191 @@ const Joi = require("joi"); */ /** - * @typedef ShippingInfo - * @property {string} [alternate_mobile_number] - * @property {string} [state] - * @property {string} [customer_code] - * @property {string} [shipping_type] - * @property {string} [middle_name] - * @property {string} [primary_mobile_number] - * @property {string} [last_name] - * @property {Object} [geo_location] - * @property {string} [gender] - * @property {string} [house_no] - * @property {string} [first_name] - * @property {string} [title] - * @property {string} [landmark] - * @property {string} [country] - * @property {string} [address_type] - * @property {string} [state_code] - * @property {string} [city] - * @property {string} [external_customer_code] - * @property {string} [floor_no] - * @property {string} [alternate_email] - * @property {Object[]} [slot] - * @property {string} [address] - * @property {string} [area] - * @property {string} [address1] - * @property {string} [pincode] - * @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 GeoLocationSchema + * @property {number} [latitude] - A number representing the geographical + * latitude of the location. + * @property {number} [longitude] - A number representing the geographical + * longitude of the location */ /** - * @typedef BillingInfo - * @property {string} [alternate_mobile_number] - * @property {string} [state] - * @property {string} [customer_code] - * @property {string} [middle_name] - * @property {string} [primary_mobile_number] - * @property {string} [last_name] - * @property {string} [gender] - * @property {string} [house_no] - * @property {string} [first_name] - * @property {string} [title] - * @property {string} [country] - * @property {string} [state_code] - * @property {string} [city] - * @property {string} [external_customer_code] - * @property {string} [floor_no] - * @property {string} [alternate_email] - * @property {string} [address] - * @property {string} [area] - * @property {string} [address1] - * @property {string} [pincode] - * @property {string} [primary_email] - * @property {string} [address2] - * @property {string} [landmark] - * @property {string} [country_code] + * @typedef ShippingInfo + * @property {string} [alternate_mobile_number] - A string for an alternate + * mobile number to reach the customer, providing an additional contact method. + * @property {string} [state] - A string representing the name of the state for + * shipping purposes. + * @property {string} [customer_code] - A string representing the customer's + * unique identifier in the seller's system. + * @property {string} [shipping_type] - A string describing the shipping type. + * @property {string} [middle_name] - A string containing the customer's middle name. + * @property {string} [primary_mobile_number] - A string for the customer's + * primary mobile number. + * @property {string} [last_name] - A string containing the customer's last name. + * @property {GeoLocationSchema} [geo_location] + * @property {string} [gender] - A string representing the customer's gender. + * @property {string} [house_no] - A string representing the house or apartment + * number of the customer. + * @property {string} [first_name] - A string representing the customer's first name. + * @property {string} [title] - A string representing the customer's title or prefix. + * @property {string} [landmark] - A string representing a landmark or reference + * point near the customer's location. + * @property {string} [country] - A string representing the customer's country. + * @property {string} [address_type] - A string representing the address type in + * the seller's system. + * @property {string} [state_code] - A string representing the state code of the + * customer's location. + * @property {string} [city] - A string representing the city of the customer's location. + * @property {string} [external_customer_code] - A string representing an + * external customer code in the seller's system. + * @property {string} [floor_no] - A string representing the floor number of the + * customer's location. + * @property {string} [alternate_email] - A string representing an alternate + * email address for the customer. + * @property {Object[]} [slot] - A list of objects representing available time + * slot for delivery or pickup. + * @property {string} [address] - A comma-separated string representing the address. + * @property {string} [area] - A string representing the area of the customer's location. + * @property {string} [address1] - A string representing the first line of the address. + * @property {string} [pincode] - A string representing the pincode of the + * customer's location. + * @property {string} [primary_email] - A string representing the primary email + * address for the customer. + * @property {string} [address2] - A string representing the second line of the address. + * @property {string} [country_code] - A string representing the country code of + * the customer's location. * @property {string} [country_iso_code] - Country Code in ISO 2 format (e.g. US, IN) */ /** * @typedef UserInfo - * @property {string} [user_id] - * @property {string} [user_type] - * @property {string} [primary_email] - * @property {string} [gender] - * @property {string} first_name - * @property {string} [last_name] - * @property {string} primary_mobile_number + * @property {string} [user_id] - The unique identifier assigned to the user. + * @property {string} [user_type] - A string representing the type of the user. + * @property {string} [primary_email] - A string representing the primary email + * address for the user. + * @property {string} [gender] - A string specifying the gender of the user. + * @property {string} first_name - A string which specifies the user's first name. + * @property {string} [last_name] - A string which specifies the user's last name. + * @property {string} primary_mobile_number - A string representing the primary + * mobile number for the user. */ /** * @typedef TaxInfo - * @property {string} [b2b_gstin_number] - * @property {string} [gstin] - * @property {string} [pan_no] + * @property {string} [b2b_gstin_number] - A string representing the GSTIN + * (Goods and Services Tax Identification Number) for business-to-business + * transactions. + * @property {string} [gstin] - A string that specifies the GSTIN for the seller. + * @property {string} [pan_no] - A string representing the PAN assigned to + * individuals or entities for tax purposes in India. */ /** * @typedef PaymentMethod - * @property {string} collect_by - * @property {string} mode - * @property {string} refund_by - * @property {string} name - * @property {number} amount - * @property {Object} [meta] - * @property {Object} [transaction_data] + * @property {string} collect_by - A string indicating the entity responsible + * for collecting the payment. + * @property {string} mode - A string that specifies the mode of payment. + * @property {string} refund_by - A string that indicates the entity responsible + * for processing refunds. + * @property {string} name - A string representing the name of the payment method. + * @property {number} amount - A number representing the monetary value + * associated with the payment method. + * @property {Object} [meta] - An object for any additional metadata related to + * the payment method. + * @property {Object} [transaction_data] - An object that holds + * transaction-specific information. */ /** * @typedef PaymentInfo - * @property {string} primary_mode - * @property {PaymentMethod[]} [payment_methods] + * @property {string} primary_mode - A string that indicates the primary payment + * method used for the order. + * @property {string} [payment_mode] - A string that indicates the payment mode + * used for the order. + * @property {PaymentMethod[]} [payment_methods] - A lists all available payment + * methods used in the transaction. */ /** * @typedef CreateOrderAPI - * @property {Shipment[]} shipments + * @property {Shipment[]} shipments - An array of shipment objects that detail + * the items being shipped as part of the order. * @property {ShippingInfo} shipping_info - * @property {BillingInfo} billing_info - * @property {Object} [currency_info] - * @property {string} [external_order_id] - * @property {Charge[]} [charges] - * @property {string} [external_creation_date] - * @property {Object} [meta] + * @property {ShippingInfo} billing_info + * @property {Object} [currency_info] - An object that provides details about + * the currency in which the order is processed, including currency code and + * conversion rates if applicable. + * @property {string} [external_order_id] - A unique identifier for the order + * assigned by an external system. + * @property {Charge[]} [charges] - An array of charge objects that detail the + * various fees associated with the order. + * @property {string} [external_creation_date] - A string that specifies the + * date and time when the order was created in an external system + * @property {Object} [meta] - A generic object that can hold any additional + * metadata related to the order. * @property {TaxInfo} [tax_info] - * @property {CreateOrderConfig} [config] + * @property {CreateOrderConfig} config * @property {PaymentInfo} payment_info * @property {UserInfo} [user_info] - * @property {number} [ordering_store_id] - * @property {string} [order_platform] + * @property {number} [ordering_store_id] - Unique identifier for the store + * where the order was placed. + * @property {string} [order_platform] - The platform used to place the order. + * @property {string} [order_type] - A string that specifies the type of order + * being placed. + * @property {string} [fynd_order_id] - Unique identifier for the order. + * @property {string} [application_id] - A unique identifier for the application + * or system that is making the order request. + * @property {string} [external_shipment_id] - External shipment identifier or + * marketplace's unique shipment identifier. */ /** * @typedef CreateOrderErrorReponse - * @property {string} [request_id] - * @property {number} status - * @property {Object} [info] - * @property {string} [stack_trace] - * @property {string} [code] - * @property {string} [meta] - * @property {string} message - * @property {string} [exception] - */ - -/** - * @typedef DpConfiguration - * @property {string} [shipping_by] - */ - -/** - * @typedef PaymentMethods - * @property {string} [collect_by] - * @property {string} [refund_by] - * @property {string} [mode] - */ - -/** - * @typedef CreateChannelPaymentInfo - * @property {string} [source] - * @property {PaymentMethods[]} [payment_methods] - * @property {string} [mode_of_payment] - */ - -/** - * @typedef CreateChannelConfig - * @property {DpConfiguration} [dp_configuration] - * @property {string} [shipment_assignment] - * @property {boolean} [location_reassignment] - * @property {Object} [logo_url] - * @property {CreateChannelPaymentInfo} [payment_info] - * @property {string[]} [lock_states] - */ - -/** - * @typedef CreateChannelConfigData - * @property {CreateChannelConfig} [config_data] - */ - -/** - * @typedef CreateChannelConifgErrorResponse - * @property {string} [error] - */ - -/** - * @typedef CreateChannelConfigResponse - * @property {boolean} [is_inserted] - * @property {boolean} [is_upserted] - * @property {boolean} [acknowledged] + * @property {boolean} [success] - Indicates whether the API call was successful + * (true) or not (false). + * @property {string} [errors] - Contains details about the error. + * @property {number} [status_code] - Represents the HTTP status code of the API response. + * @property {string} [fynd_order_id] - A string that represents the unique + * identifier assigned to the order. */ /** - * @typedef UploadConsent - * @property {string} consent_url - * @property {string} manifest_id + * @typedef UploadManifestConsent + * @property {string} consent_url - A URL that directs users to a consent page + * or document related to the upload of the manifest. + * @property {string} manifest_id - The unique identifier for the manifest being uploaded. */ /** * @typedef PlatformOrderUpdate - * @property {string} order_id + * @property {string} order_id - A string that represents the unique identifier + * assigned to the order. */ /** * @typedef ResponseDetail - * @property {boolean} [success] - * @property {string[]} [message] + * @property {boolean} [success] - Indicates whether the API call was successful + * (true) or not (false). + * @property {string} [message] - A descriptive message providing additional + * information about the API response. + * @property {number} [status] - Represents the HTTP status code of the API response. */ /** * @typedef FyndOrderIdList - * @property {string[]} [fynd_order_id] + * @property {string[]} [fynd_order_id] - An array of strings that represent + * unique identifiers assigned to an order. + * @property {string} [start_date] - A string representing the start date for + * the order status query. + * @property {string} [end_date] - A string representing the end date for the + * order status query. + * @property {number} [mobile] - An integer representing the mobile number + * associated with the order. */ /** * @typedef OrderStatus - * @property {FyndOrderIdList[]} [order_details] - * @property {string} start_date - * @property {string} end_date - * @property {number} mobile + * @property {FyndOrderIdList[]} [order_details] - An array of objects that + * provide details about the orders, including their respective order IDs. */ /** @@ -1057,174 +946,207 @@ const Joi = require("joi"); /** * @typedef RoleBaseStateTransitionMapping - * @property {boolean} [success] - * @property {string[]} [next_statuses] + * @property {boolean} [success] - Indicates whether the API call was successful + * (true) or not (false). + * @property {string[]} [next_statuses] - A list of possible next statuses that + * can be transitioned to from the current status. */ /** - * @typedef FetchCreditBalanceRequestPayload - * @property {string} affiliate_id - * @property {string} seller_id - * @property {string} customer_mobile_number - */ - -/** - * @typedef CreditBalanceInfo - * @property {string} [total_credited_balance] - * @property {string} [reason] - * @property {string} [customer_mobile_number] + * @typedef RefundModeConfigRequestPayload + * @property {string} fynd_order_id - A unique identifier for the order placed + * through the Fynd platform. + * @property {number} seller_id - A unique identifier representing the seller + * associated with the order. + * @property {string} affiliate_id - An identifier for the affiliate partner + * associated with the order. + * @property {number} [customer_mobile_number] - The mobile phone number of the + * customer who placed the order. */ /** - * @typedef FetchCreditBalanceResponsePayload - * @property {boolean} success - * @property {CreditBalanceInfo} data + * @typedef RefundOption + * @property {string} [value] - The actual value representing the refund option. + * @property {string} [slug] - A unique identifier for the refund mode + * @property {string} [name] - A user-friendly name for the refund option. + * @property {string} [type] - A string indicating the type of refund + * information provided. */ /** - * @typedef RefundModeConfigRequestPayload - * @property {string} fynd_order_id - * @property {number} seller_id - * @property {string} affiliate_id - * @property {string} [customer_mobile_number] - */ - -/** - * @typedef RefundOption - * @property {string} [value] - * @property {string} [slug] - * @property {string} [name] - * @property {string} [type] + * @typedef RefundModeFormat + * @property {string} [refund_to] - Specifies the destination or method for the refunds. */ /** * @typedef RefundModeInfo - * @property {boolean} [is_active] - * @property {string} [slug] - * @property {RefundOption[]} [options] - * @property {string} [display_name] + * @property {boolean} [is_active] - A flag indicating whether the refund mode + * is currently active or not. + * @property {string} [slug] - A unique identifier for the refund mode. + * @property {RefundOption[]} [options] - A list of available refund options + * associated with this refund mode. + * @property {string} [display_name] - A user-friendly name for the refund mode. + * @property {RefundModeFormat} [format] */ /** * @typedef RefundModeConfigResponsePayload - * @property {boolean} success - * @property {RefundModeInfo[]} data + * @property {boolean} success - Indicates whether the API call was successful + * (true) or not (false). + * @property {RefundModeInfo[]} data - An array of possible refund mode + * information objects. + * @property {number} [status] - Represents the HTTP status code of the API response. + * @property {string} [message] - A descriptive message providing additional + * information about the API response. */ /** * @typedef AttachUserOtpData - * @property {string} request_id + * @property {string} request_id - A string representing a unique identifier for + * the OTP request. */ /** * @typedef AttachUserInfo - * @property {string} first_name - * @property {string} last_name - * @property {string} mobile - * @property {string} [country_code] + * @property {string} first_name - A string representing the user's first name. + * @property {string} last_name - A string representing the user's last name. + * @property {string} mobile - A string representing the user's mobile number. + * @property {string} [country_code] - A string representing the user's country code. */ /** * @typedef AttachOrderUser * @property {AttachUserOtpData} otp_data - * @property {string} fynd_order_id + * @property {string} fynd_order_id - A unique identifier for the order + * associated with the user attach. * @property {AttachUserInfo} user_info */ /** * @typedef AttachOrderUserResponse - * @property {boolean} [success] - * @property {string} [message] + * @property {boolean} [success] - Indicates whether the API call was successful + * (true) or not (false). + * @property {string} [message] - A descriptive message providing additional + * information about the API response. */ /** * @typedef SendUserMobileOTP - * @property {string} mobile - * @property {string} [country_code] + * @property {number} mobile - The mobile phone number of the user to whom the + * OTP (One-Time Password) will be sent. + * @property {string} [country_code] - The country code associated with the + * user's mobile number. */ /** * @typedef PointBlankOtpData - * @property {string} [request_id] - * @property {number} [resend_timer] - * @property {string} [message] - * @property {number} [mobile] + * @property {string} [request_id] - A unique identifier for the OTP request. + * @property {number} [resend_timer] - The amount of time (in seconds) before + * the OTP can be resent to the user. + * @property {string} [message] - A message providing additional information + * about the OTP request. + * @property {number} [mobile] - The mobile number (in integer format) + * associated with the OTP request. */ /** * @typedef SendUserMobileOtpResponse - * @property {boolean} [success] - * @property {string} [message] + * @property {boolean} [success] - Indicates whether the API call was successful + * (true) or not (false). + * @property {number} [status] - The HTTP status code of the API response + * (200/400/500/503). + * @property {string} [message] - A descriptive message providing additional + * information about the API response. * @property {PointBlankOtpData} [data] */ /** * @typedef VerifyOtpData - * @property {string} request_id - * @property {string} mobile - * @property {number} otp_code + * @property {string} request_id - A unique identifier for the OTP verification request. + * @property {string} mobile - The mobile number associated with the OTP verification. + * @property {number} otp_code - The OTP code received by the user. */ /** * @typedef VerifyMobileOTP * @property {VerifyOtpData} otp_data - * @property {string} fynd_order_id + * @property {string} fynd_order_id - A unique identifier for the order + * associated with the OTP verification. */ /** * @typedef VerifyOtpResponseData - * @property {string} [mobile] - * @property {string} [message] - * @property {string} [fynd_order_id] - * @property {string} [country_code] + * @property {string} [mobile] - The mobile number associated with the verified OTP. + * @property {string} [message] - A string that provides a message about the + * outcome of the verification process. + * @property {string} [fynd_order_id] - Unique identifier for the order + * associated with the OTP verification. + * @property {string} [country_code] - A string indicating the country code + * associated with the mobile number. */ /** * @typedef VerifyOtpResponse - * @property {number} [status] - * @property {boolean} [success] - * @property {string} [message] + * @property {number} [status] - Represents the HTTP status code of the API response. + * @property {boolean} [success] - Indicates whether the API call was successful + * (true) or not (false). + * @property {string} [message] - A descriptive message providing additional + * information about the API response. * @property {VerifyOtpResponseData} [data] */ /** * @typedef BulkReportsDownloadRequest - * @property {string[]} [store_ids] - Download for specific store ids. - * @property {string} [lane_type] - * @property {string} [custom_headers] - Download report with specific headers - * @property {string} [report_type] - Type of report - * @property {string} [start_date] - UTC start date in ISO format - * @property {string} [end_date] - UTC end date in ISO format - * @property {string[]} [entities] - Download for specific enitites, entities - * can be bag, shipment or order_id, etc. - * @property {string} [filter_type] - * @property {boolean} [is_cross_company_enabled] - Download lanes for cross company. - * @property {Object} [custom_filters_for_lane] + * @property {string[]} [store_ids] - A list of specific store IDs for which the + * reports should be generated. + * @property {string} [lane_type] - Specifies the type of lane for which the + * report is being requested. + * @property {string[]} [custom_headers] - Allows users to specify custom + * headers for the downloaded report. + * @property {string} [report_type] - Indicates the type of report being requested. + * @property {string} [start_date] - UTC start date in ISO format, defines the + * beginning of the date range for which the report data should be collected. + * @property {string} [end_date] - UTC end date in ISO format, defines the end + * date range for which the report data should be collected. + * @property {string[]} [entities] - Download for specific enitites or for + * search filters applied, entities can be bag, shipment or order_id, etc. + * @property {string} [filter_type] - Specifies the type of filtering to be + * applied to the report data. + * @property {boolean} [is_cross_company_enabled] - Indicates whether the report + * should include data from cross-company operations. + * @property {Object} [custom_filters_for_lane] - A flexible object that allows + * users to define custom filters specific to the lanes being reported on. */ /** * @typedef BulkReportsDownloadResponse - * @property {boolean} [success] - * @property {string} [batch_id] + * @property {boolean} [success] - Indicates whether the API call was successful + * (true) or not (false). + * @property {string} [batch_id] - A unique identifier for the batch of reports generated. */ /** - * @typedef BulkFailedResponse - * @property {boolean} [status] - * @property {string} [error] + * @typedef APIFailedResponse + * @property {boolean} [status] - Indicates whether the API call was successful + * (true) or not (false). + * @property {string} [error] - A descriptive message detailing the error that + * occurred during the API call. */ /** - * @typedef BulkStateTransistionRequest - * @property {string} [url] - * @property {string} [file_name] + * @typedef BulkStateTransistionRequestSchema + * @property {string} [url] - Endpoint or resource URL where the bulk state + * transition request should be directed. + * @property {string} [file_name] - Name of the file associated with the bulk operation. */ /** * @typedef BulkStateTransistionResponse - * @property {boolean} [status] - * @property {string} [message] - * @property {string} [batch_id] + * @property {boolean} [status] - Indicates whether the API call was successful + * (true) or not (false). + * @property {string} [message] - A descriptive message providing additional + * information about the API response. + * @property {string} [batch_id] - A unique identifier for the batch of reports generated. */ /** @@ -1242,255 +1164,308 @@ const Joi = require("joi"); /** * @typedef BulkActionListingData - * @property {number} [store_id] - * @property {string} [uploaded_on] - * @property {number} [company_id] + * @property {number} [store_id] - The unique identifier for the store + * associated with the bulk action. + * @property {string} [uploaded_on] - A timestamp indicating when the bulk + * action was uploaded. + * @property {number} [company_id] - Unique identifier of a company on the platform. * @property {ShipmentActionInfo} [shipments_action_info] - * @property {boolean} [is_invoiceable] - * @property {string} [user_name] - * @property {string} [file_url] - * @property {Object} [meta] - * @property {string} [invoice_document_type] - * @property {string} [label_document_type] - * @property {string} [file_name] - * @property {string} [store_name] - * @property {number} [updated_ts] - * @property {boolean} [status] - * @property {string} [store_code] - * @property {string} [bulk_action_type] - * @property {string} [created_ts] - * @property {string} [invoice_status] - * @property {boolean} [do_invoice_label_generated] - * @property {number} [id] - * @property {string} [user_id] - * @property {string} [last_selected_invoice_label_type] - * @property {string} [batch_id] - * @property {string} [uploaded_by] + * @property {boolean} [is_invoiceable] - Indicates whether the bulk action is + * eligible for invoicing. + * @property {string} [user_name] - The name of the user who initiated or + * uploaded the bulk action. + * @property {string} [file_url] - The URL where the uploaded file can be accessed. + * @property {Object} [meta] - A flexible object that can contain additional + * metadata related to the bulk action. + * @property {string} [invoice_document_type] - The type of document that is + * used for invoicing this bulk action. + * @property {string} [label_document_type] - The type of document that is used + * for creating labels for this bulk action. + * @property {string} [file_name] - The name of the file that was uploaded as + * part of the bulk action. + * @property {string} [store_name] - The name of the store associated with the + * bulk action. + * @property {number} [updated_ts] - A timestamp (in Unix format) indicating + * when the bulk action was last updated. + * @property {boolean} [status] - Indicates the current status of the bulk action. + * @property {string} [store_code] - A code representing the store, which can be + * used for internal tracking or identification. + * @property {string} [bulk_action_type] - Specifies the type of bulk action + * being performed. + * @property {string} [created_ts] - A timestamp indicating when the bulk action + * was created. + * @property {string} [invoice_status] - Represents the current status of the + * invoice associated with the bulk action. + * @property {boolean} [do_invoice_label_generated] - Indicates whether an + * invoice label has been generated for the bulk action or not. + * @property {number} [id] - A unique identifier for the bulk action record. + * @property {string} [user_id] - The unique identifier for the user who + * initiated the bulk action. + * @property {string} [last_selected_invoice_label_type] - Indicates the last + * invoice label type selected for the bulk action. + * @property {string} [batch_id] - A unique identifier for the batch associated + * with this bulk action. + * @property {string} [uploaded_by] - The identifier or name of the individual + * or system that uploaded the bulk action. + * @property {string} [invoicelabel_document_type] - The type of document + * generated for invoice labels. + * @property {number} [failed_sh_count] - The number of failed shipments in this + * bulk action. + * @property {number} [successful_sh_count] - The number of successful shipments + * in this bulk action. + * @property {number} [total_count] - The total number of shipments processed in + * this bulk action. + * @property {string[]} [failed_shipments] - An array of shipment identifiers + * that failed during processing. + * @property {number} [successful_invoiced_count] - The number of shipments + * successfully invoiced. + * @property {number} [failed_invoiced_count] - The number of shipments that + * failed during invoicing. + * @property {number} [total_invoiced_count] - The total number of shipments + * that have been invoiced. */ /** * @typedef BulkListinPage - * @property {number} [current] - * @property {boolean} [has_previous] - * @property {boolean} [has_next] - * @property {number} [total] - * @property {number} [item_total] - * @property {string} [type] - * @property {number} [size] + * @property {number} [current] - Indicates the current page number being viewed + * in the pagination. + * @property {boolean} [has_previous] - A flag indicating whether there is a + * previous page available. + * @property {boolean} [has_next] - A flag indicating whether there is a next + * page available. + * @property {number} [total] - The total number of items available in the + * dataset, regardless of pagination. + * @property {number} [item_total] - The total number of items present on the + * current page. + * @property {string} [type] - A string that may indicate the type of pagination + * or the context of the data being paginated. + * @property {number} [size] - The number of items per page. */ /** * @typedef BulkListingResponse - * @property {boolean} [success] - * @property {BulkActionListingData[]} [data] + * @property {boolean} [success] - Indicates whether the API call was successful + * (true) or not (false). + * @property {BulkActionListingData[]} [data] - An array containing the details + * of the bulk actions listed. * @property {BulkListinPage} [page] - * @property {number} [total_count] + * @property {number} [total_count] - Total number of bulk actions available in + * the system, regardless of pagination. */ /** * @typedef JobDetailsData - * @property {string} [batch_id] - * @property {number} [total_shipments_count] - * @property {string[]} [successful_shipment_ids] - * @property {number} [successful_shipments_count] - * @property {number} [failed_shipments_count] - * @property {number} [processing_shipments_count] - * @property {string} [company_id] + * @property {string} [batch_id] - A unique identifier for the batch of bulk + * actions associated with this job. + * @property {number} [total_shipments_count] - The total number of shipments + * processed in this job. + * @property {string[]} [successful_shipment_ids] - An array of identifiers for + * shipments that were successfully processed. + * @property {number} [successful_shipments_count] - The number of successful + * shipments processed in this job. + * @property {number} [failed_shipments_count] - The number of shipments that + * failed to process in this job. + * @property {number} [processing_shipments_count] - The number of shipments + * currently being processed for this job. + * @property {string} [company_id] - Unique identifier of a company on the platform. */ /** * @typedef JobDetailsResponse - * @property {boolean} [success] - * @property {JobDetailsData[]} [data] - * @property {string} [file_url] - * @property {string} [message] - * @property {Object[]} [failed_records] - * @property {string} [uploaded_by] - * @property {string} [user_id] - * @property {string} [created_ts] - * @property {string} [uploaded_on] - * @property {string} [status] + * @property {boolean} [success] - Indicates whether the API call was successful + * (true) or not (false). + * @property {JobDetailsData[]} [data] - An array representing the details of a job. + * @property {string} [file_url] - An URL to download the submitted job file. + * @property {string} [message] - A message providing additional context about + * the request's outcome. + * @property {Object[]} [failed_records] - An array of records that failed + * during processing, with additional properties providing details about each failure. + * @property {string} [uploaded_by] - The name or identifier of the user who + * uploaded the job. + * @property {string} [user_id] - The unique identifier for the user who + * performed the upload. + * @property {string} [created_ts] - A timestamp indicating when the job was created. + * @property {string} [uploaded_on] - A timestamp indicating when the job was uploaded. + * @property {string} [status] - The current status of the job. */ /** * @typedef JobFailedResponse - * @property {string} [file_name] - * @property {string} [url] + * @property {string} [file_name] - The name of the file associated with the failed job. + * @property {string} [url] - The URL where the uploaded bulk file can be accessed. */ /** * @typedef ManifestPageInfo - * @property {number} current - * @property {number} total - * @property {boolean} has_next - * @property {number} size - * @property {boolean} has_previous - * @property {string} type + * @property {number} current - The current page number being viewed. + * @property {number} total - The total number of records available across all pages. + * @property {boolean} has_next - Indicates whether there is a next page available. + * @property {number} size - The size of the current page's results set. + * @property {boolean} has_previous - Indicates whether there is a previous page + * available. + * @property {string} type - Indicates whether there is a previous page available. */ /** * @typedef ManifestItemDetails - * @property {number} [quantity] - * @property {string} shipment_id - * @property {string} order_id - * @property {string} [awb_number] - * @property {string} [invoice_id] - * @property {string} [shipment_created_at] + * @property {number} [quantity] - The quantity of items in the shipment. + * @property {string} shipment_id - Unique identifier for the shipment. + * @property {string} order_id - Unique identifier for the order. + * @property {string} [awb_number] - Unique identifier for the shipment's air + * waybill number. + * @property {string} [invoice_id] - Unique identifier for the invoice + * associated with the shipment. + * @property {string} [shipment_created_at] - Timestamp indicating when the + * shipment was created. */ /** * @typedef ManifestShipmentListing - * @property {number} total_count - * @property {string} [lane] + * @property {number} total_count - Total number of shipment items in the manifest. + * @property {string} lane - Identifier or name for the lane associated with the + * shipments. * @property {ManifestPageInfo} page - * @property {boolean} success - * @property {number} status - * @property {ManifestItemDetails[]} [items] - * @property {string} [message] + * @property {boolean} success - Indicates whether the API call was successful + * (true) or not (false). + * @property {number} [status] - Represents the HTTP status code of the API response. + * @property {ManifestItemDetails[]} items - List of items in the manifest, each + * containing detailed shipment information. + * @property {string} [message] - Additional message or information regarding + * the response. */ /** * @typedef DateRange - * @property {string} [from_date] - * @property {string} [to_date] + * @property {string} [from_date] - The start date of the range. + * @property {string} [to_date] - The end date of the range. */ /** * @typedef Filters * @property {DateRange} [date_range] * @property {string} [logo] - CDN link of the logo displayed on the manifest page. - * @property {string} [from_date] - UTC start date in ISO format. - * @property {number} [stores] - Filter with the specific store. - * @property {string} [to_date] - UTC end date in ISO format. - * @property {string} [dp_name] - Filter with the specific courier partner name. + * @property {string} [from_date] - The start date for filtering records, + * provided in UTC and formatted in ISO format. + * @property {number} [stores] - Specifies a specific store ID for filtering the records. + * @property {string} [to_date] - The end date for filtering records, provided + * in UTC and formatted in ISO format. + * @property {string} [dp_name] - The name of the courier partner to filter records by. * @property {string} [dp_ids] - Combination of courier partner ids separated by - * byte operator. - * @property {string} [lane] - Criteria for lane on which shipments must be fetched. - * @property {string} [selected_shipments] - Selected shipments mapped to the manifest. - * @property {string} [store_name] - Filter with the specific store name. - * @property {string} [deselected_shipments] - Deselected shipments unmapped - * from the manifest. + * comma operator. + * @property {string} [lane] - Specifies criteria related to the shipment lanes. + * @property {string} [selected_shipments] - A list of selected shipments that + * are mapped to the manifest. + * @property {string} [store_name] - The name of the store for filtering records. + * @property {string} [deselected_shipments] - A list of shipments that have + * been unmapped from the manifest. */ /** * @typedef ManifestFile - * @property {string} [key] - * @property {string} [region] - * @property {string} [bucket] + * @property {string} [key] - This field represents the unique identifier for + * the file within the storage system. + * @property {string} [region] - Indicates the geographical region where the + * file is stored. + * @property {string} [bucket] - The name of the storage bucket where the file is stored. */ /** * @typedef ManifestMediaUpdate - * @property {string} [entity] - * @property {string} [link] - * @property {number} [code] - * @property {string} [media_type] - * @property {boolean} [status] + * @property {string} [entity] - The name or type of the media entity being updated. + * @property {string} [link] - A URL or link to the media resource. + * @property {number} [code] - A numerical code representing the media update + * status or type. + * @property {string} [media_type] - The type of media being updated. + * @property {boolean} [status] - Indicate the status of this media update. * @property {ManifestFile} [file] */ /** - * @typedef PDFMeta - * @property {string} [consent] - * @property {ManifestMediaUpdate[]} [media_updates] - */ - -/** - * @typedef TotalShipmentPricesCount - * @property {number} [total_price] - * @property {number} [shipment_count] - */ - -/** - * @typedef ManifestMeta - * @property {Filters} [filters] - * @property {TotalShipmentPricesCount} [total_shipment_prices_count] - */ - -/** - * @typedef Manifest - * @property {number} company_id - * @property {Filters} [filters] - * @property {PDFMeta} [pdf_meta] - * @property {ManifestMeta} [meta] - * @property {boolean} is_active - * @property {string} user_id - * @property {string} created_at - * @property {string} [created_ts] - * @property {string} manifest_id - * @property {string} status - * @property {number} id - * @property {string} uid - * @property {string} created_by - */ - -/** - * @typedef ManifestList - * @property {Manifest[]} [items] - * @property {ManifestPageInfo} [page] + * @typedef PDFMeta + * @property {string} [consent] - This field contains information related to user consent. + * @property {ManifestMediaUpdate[]} [media_updates] - An array of media update + * entries associated with the manifest. */ /** - * @typedef ManifestDetails - * @property {ManifestItemDetails[]} [items] - * @property {ManifestPageInfo} [page] - * @property {number} [additional_shipment_count] - * @property {Manifest[]} [manifest_details] + * @typedef TotalShipmentPricesCount + * @property {number} [total_price] - This field represents the total monetary + * value of the shipments. + * @property {number} [shipment_count] - This field represents the number of + * shipments associated with the manifest. */ /** - * @typedef FiltersRequest - * @property {DateRange} [date_range] - * @property {string} [logo] - * @property {number} stores - * @property {string} dp_name - * @property {number} dp_ids - * @property {string} lane - * @property {string} store_name + * @typedef ManifestMeta + * @property {Filters} [filters] + * @property {TotalShipmentPricesCount} [total_shipment_prices_count] */ /** - * @typedef ProcessManifest - * @property {FiltersRequest} filters - * @property {string} action - * @property {string} unique_id - * @property {string} [manifest_id] + * @typedef Manifest + * @property {number} company_id - Unique identifier of a company on the platform. + * @property {Filters} [filters] + * @property {PDFMeta} [pdf_meta] + * @property {ManifestMeta} [meta] + * @property {boolean} is_active - Indicates whether the manifest is currently + * active or has been completed/closed. + * @property {string} user_id - The unique identifier of the user who created or + * modified the manifest. + * @property {string} created_at - The date and time when the manifest was created. + * @property {string} [created_ts] - A timestamp representing when the manifest + * was created, typically in UTC. + * @property {string} manifest_id - The unique identifier assigned to the manifest. + * @property {string} status - The current status of the Manifest. + * @property {number} id - The unique identifier assigned to the manifest item. + * @property {string} uid - A universally unique identifier for the manifest. + * @property {string} created_by - The username or identifier of the individual + * who created the manifest. */ /** - * @typedef ProcessManifestResponse - * @property {number} [company_id] - Id of the company. - * @property {Filters} [filters] - * @property {string} [user_id] - Id of the user. - * @property {string} [manifest_id] - Id of the manifest. - * @property {string} [action] - * @property {string} [uid] - * @property {string} [created_by] + * @typedef ManifestList + * @property {Manifest[]} [items] - A list of manifest records. + * @property {ManifestPageInfo} [page] */ /** - * @typedef ProcessManifestItemResponse - * @property {ProcessManifestResponse} [items] + * @typedef ManifestDetails + * @property {ManifestItemDetails[]} [items] - An list of detailed information + * about individual shipments within the manifest. + * @property {ManifestPageInfo} [page] + * @property {number} [additional_shipment_count] - Represents the count of + * additional shipments associated with the manifest. + * @property {Manifest[]} [manifest_details] - An array of manifest objects that + * provide overarching details about the manifest itself. */ /** * @typedef FilterInfoOption - * @property {string} [text] - * @property {string} [name] - * @property {string} [placeholder_text] - * @property {string} [value] - * @property {number} [min_search_size] - * @property {boolean} [show_ui] + * @property {string} [text] - The option value or text set for the filter option. + * @property {string} [name] - The option name indicating the type of + * information the filter relates to. + * @property {string} [placeholder_text] - Represents the placeholder text that + * might appear in a UI element. + * @property {string} [value] - A unique value for the filter used in processing + * filter selections. + * @property {number} [min_search_size] - Indicates the minimum size for search + * criteria, potentially related to how many items to display or filter. + * @property {boolean} [show_ui] - Indicates whether this option should be + * visible in the user interface. */ /** * @typedef FiltersInfo * @property {FilterInfoOption[]} [options] - * @property {string} text - * @property {string} [placeholder_text] - * @property {string} value - * @property {boolean} [required] - * @property {string} type + * @property {string} text - The label or name for the filter, which indicates + * what the filter is related to. + * @property {string} [placeholder_text] - A placeholder text that provides + * guidance on how to use the filter. + * @property {string} value - A unique identifier for the filter, used for + * processing filter selections. + * @property {boolean} [required] - Indicates whether the filter is mandatory to + * fill out when applying the filter set. + * @property {string} type - Specifies the type of filter. */ /** @@ -1584,22 +1559,28 @@ const Joi = require("joi"); /** * @typedef CourierPartnerTrackingDetails - * @property {string} awb - AWB Number - * @property {string} [dp_location] - Current location of Courier partner - * @property {string} dp_name - Courier Partner name - * @property {string} dp_status - Status at Courier partner end - * @property {string} dp_status_updated_at - Date Time at which status was - * updated at Courier partner - * @property {string} [estimated_delivery_date] - Estimated delivery date - * received from Courier partner - * @property {number} [id] - Id of Tracking history - * @property {string} journey - Journey type of the shipment - * @property {Object} [meta] - Meta field to store Courier partner's meta data - * @property {string} operational_status - Operational status of OMS - * @property {string} [promised_delivery_date] - Promised delivery date received - * from Courier partner - * @property {string} [remark] - Remark from courier partner - * @property {string} shipment_id - Shipment ID + * @property {string} awb - The Air Waybill (AWB) number associated with the + * shipment, used for tracking the parcel in transit. + * @property {string} [dp_location] - The current geographic location of the + * courier partner. + * @property {string} dp_name - The name of the courier partner responsible for + * the shipment. + * @property {string} dp_status - The current status of the shipment as updated + * by the courier partner. + * @property {string} dp_status_updated_at - The timestamp when the status was + * last updated by the courier partner. + * @property {string} [estimated_delivery_date] - The estimated date and time + * for delivery as provided by the courier partner. + * @property {number} [id] - A unique identifier for the tracking history entry. + * @property {string} journey - Indicates the type of journey the shipment. + * @property {Object} [meta] - A field to store additional metadata related to + * the courier partner's operations or the shipment. + * @property {string} operational_status - The operational status of the shipment. + * @property {string} [promised_delivery_date] - PThe promised date and time for + * delivery as provided by the courier partner. + * @property {string} [remark] - Any additional remarks or comments from the + * courier partner regarding the shipment. + * @property {string} shipment_id - The unique identifier for the shipment. */ /** @@ -1664,7 +1645,7 @@ const Joi = require("joi"); */ /** - * @typedef GenerateInvoiceIDRequest + * @typedef GenerateInvoiceIDRequestSchema * @property {string[]} shipment_ids */ @@ -1685,31 +1666,35 @@ const Joi = require("joi"); /** * @typedef ProcessManifestRequest - * @property {string} [action] - Expected Actions: [save, process, - * pdf_generated,invalidate,pdf_failed,complete] - * @property {string} [manifest_id] - Id of The Manifest. - * @property {Filters} [filters] - * @property {string} [unique_id] - Unique Id. + * @property {string} action - Represents the operation to be performed on the manifest. + * @property {string} [manifest_id] - Represents the identifier for a specific manifest. + * @property {Filters} filters + * @property {string} unique_id - A unique identifier for the request or the + * operation being performed. */ /** * @typedef ManifestItems * @property {Filters} [filters] - * @property {string} [manifest_id] - Id of the manifest. - * @property {string} [unique_id] - Unique Id. - * @property {number} [company_id] - Id of the company. - * @property {string} [dp_id] - Shipment with the specific courier partner Id. - * @property {string} [courier_partner_slug] - * @property {string} [action] - Expected Actions: [Save, Process, Pdf - * Generated, Invalidate, Pdf Failed, Complete] - * @property {string} [created_by] - Created date of the manifest. - * @property {string} [user_id] - Id of user. + * @property {string} [manifest_id] - The unique identifier for the manifest. + * @property {string} [unique_id] - A unique identifier for the request or + * operation involving the manifest items. + * @property {number} [company_id] - Unique identifier of a company on the platform. + * @property {string} [dp_id] - Unique identifier of the delivery partner. + * @property {string} [courier_partner_slug] - A slug or unique identifier for + * the courier partner. + * @property {string} [action] - Defines the expected action for the manifest items. + * @property {string} [created_by] - The identifier for the user or system that + * created the manifest. + * @property {string} [user_id] - The identifier for the user associated with + * the manifest items. */ /** * @typedef ManifestErrorResponse - * @property {boolean} [success] - Success State. - * @property {string} [error] - Error String. + * @property {boolean} [success] - Indicates whether the API call was successful + * (true) or not (false). + * @property {string} [error] - Provides a descriptive error message. */ /** @@ -1732,7 +1717,6 @@ const Joi = require("joi"); /** * @typedef FlagData - * @property {Object} [value] * @property {Object} [filter] */ @@ -1927,6 +1911,19 @@ const Joi = require("joi"); * @property {TransitionConfigData} [data] */ +/** + * @typedef CommonErrorResponse + * @property {number} [status] - The HTTP status code corresponding to the error. + * @property {string} [message] - A message describing the error that occurred. + */ + +/** + * @typedef ExceptionErrorResponse + * @property {string} [message] - A message describing the error that occurred. + * @property {string} [exception] - The class path of the exception that was thrown. + * @property {string} [stack_trace] - The stack trace from the server for the error. + */ + /** * @typedef Page * @property {number} [item_total] - The total number of items on the page. @@ -2626,6 +2623,11 @@ const Joi = require("joi"); * @property {string} [po_invoice] */ +/** + * @typedef AffiliateConfig + * @property {number} [app_company_id] + */ + /** * @typedef AffiliateDetails * @property {ShipmentMeta} shipment_meta @@ -3279,6 +3281,14 @@ const Joi = require("joi"); * @property {string} [label_url] */ +/** + * @typedef ShipmentDetails + * @property {string} [dp_id] + * @property {Object} [dp_options] + * @property {boolean} [lock_status] + * @property {Object} [action_to_status] + */ + /** * @typedef UserDetails * @property {string} [user_oid] @@ -3310,7 +3320,7 @@ const Joi = require("joi"); * @property {Article} [article] * @property {ArticleStatusDetails} [article_details] * @property {BagStatusHistory[]} [bag_status] - * @property {BagStatusHistory} [bag_status_history] + * @property {BagStatusHistory[]} [bag_status_history] * @property {Brand} [brand] * @property {Company} [company] * @property {BagStatusHistory} [current_operational_status] @@ -3436,6 +3446,12 @@ const Joi = require("joi"); * @property {boolean} [success] */ +/** + * @typedef BulkFailedResponse + * @property {boolean} [status] + * @property {string} [error] + */ + class OrderPlatformModel { /** @returns {InvalidateShipmentCachePayload} */ static InvalidateShipmentCachePayload() { @@ -3465,6 +3481,14 @@ class OrderPlatformModel { }); } + /** @returns {UpdatePackingErrorResponse} */ + static UpdatePackingErrorResponse() { + return Joi.object({ + status: Joi.number().allow(null), + error: Joi.string().allow("").allow(null), + }); + } + /** @returns {ErrorResponse} */ static ErrorResponse() { return Joi.object({ @@ -3500,8 +3524,8 @@ class OrderPlatformModel { }); } - /** @returns {Entities} */ - static Entities() { + /** @returns {LockManagerEntities} */ + static LockManagerEntities() { return Joi.object({ id: Joi.string().allow(""), affiliate_order_id: Joi.string().allow(""), @@ -3518,7 +3542,9 @@ class OrderPlatformModel { entity_type: Joi.string().allow("").required(), action: Joi.string().allow("").required(), action_type: Joi.string().allow("").required(), - entities: Joi.array().items(OrderPlatformModel.Entities()).required(), + entities: Joi.array() + .items(OrderPlatformModel.LockManagerEntities()) + .required(), resume_tasks_after_unlock: Joi.boolean().allow(null), lock_after_transition: Joi.boolean(), unlock_before_transition: Joi.boolean(), @@ -3590,7 +3616,7 @@ class OrderPlatformModel { OrderPlatformModel.AnnouncementResponse() ), success: Joi.boolean(), - message: Joi.string().allow(""), + status: Joi.number(), }); } @@ -3602,14 +3628,6 @@ class OrderPlatformModel { }); } - /** @returns {Click2CallResponse} */ - static Click2CallResponse() { - return Joi.object({ - call_id: Joi.string().allow("").required(), - success: Joi.boolean().required(), - }); - } - /** @returns {ErrorDetail} */ static ErrorDetail() { return Joi.object({ @@ -3709,341 +3727,74 @@ class OrderPlatformModel { }); } - /** @returns {DataUpdates} */ - static DataUpdates() { - return Joi.object({ - order_item_status: Joi.array().items( - OrderPlatformModel.OrderItemDataUpdates() - ), - products: Joi.array().items(OrderPlatformModel.ProductsDataUpdates()), - entities: Joi.array().items(OrderPlatformModel.EntitiesDataUpdates()), - }); - } - - /** @returns {ShipmentsRequest} */ - static ShipmentsRequest() { - return Joi.object({ - identifier: Joi.string().allow("").required(), - reasons: OrderPlatformModel.ReasonsData(), - products: Joi.array().items(OrderPlatformModel.Products()), - data_updates: OrderPlatformModel.DataUpdates(), - }); - } - - /** @returns {StatuesRequest} */ - static StatuesRequest() { - return Joi.object({ - status: Joi.string().allow(""), - shipments: Joi.array().items(OrderPlatformModel.ShipmentsRequest()), - exclude_bags_next_state: Joi.string().allow(""), - split_shipment: Joi.boolean(), - }); - } - - /** @returns {UpdateShipmentStatusRequest} */ - static UpdateShipmentStatusRequest() { - return Joi.object({ - force_transition: Joi.boolean(), - statuses: Joi.array().items(OrderPlatformModel.StatuesRequest()), - lock_after_transition: Joi.boolean(), - unlock_before_transition: Joi.boolean(), - task: Joi.boolean(), - resume_tasks_after_unlock: Joi.boolean(), - }); - } - - /** @returns {ShipmentsResponse} */ - static ShipmentsResponse() { - return Joi.object({ - status: Joi.number().allow(null), - final_state: Joi.any().allow(null), - identifier: Joi.string().allow("").allow(null), - stack_trace: Joi.string().allow("").allow(null), - code: Joi.string().allow("").allow(null), - meta: Joi.any().allow(null), - message: Joi.string().allow("").allow(null), - exception: Joi.string().allow("").allow(null), - }); - } - - /** @returns {StatuesResponse} */ - static StatuesResponse() { - return Joi.object({ - shipments: Joi.array().items(OrderPlatformModel.ShipmentsResponse()), - }); - } - - /** @returns {UpdateShipmentStatusResponseBody} */ - static UpdateShipmentStatusResponseBody() { - return Joi.object({ - statuses: Joi.array().items(OrderPlatformModel.StatuesResponse()), - }); - } - - /** @returns {OrderUser} */ - static OrderUser() { - return Joi.object({ - phone: Joi.number().required(), - last_name: Joi.string().allow("").required(), - address1: Joi.string().allow("").allow(null), - state: Joi.string().allow("").required(), - pincode: Joi.string().allow("").required(), - first_name: Joi.string().allow("").required(), - mobile: Joi.number().required(), - address2: Joi.string().allow("").allow(null), - email: Joi.string().allow("").required(), - country: Joi.string().allow("").required(), - city: Joi.string().allow("").required(), - }); - } - - /** @returns {OrderPriority} */ - static OrderPriority() { - return Joi.object({ - fulfilment_priority_text: Joi.string().allow(""), - affiliate_priority_code: Joi.string().allow("").allow(null), - fulfilment_priority: Joi.number().allow(null), - }); - } - - /** @returns {ArticleDetails} */ - static ArticleDetails() { - return Joi.object({ - _id: Joi.string().allow("").required(), - brand_id: Joi.number().required(), - dimension: Joi.any().required(), - category: Joi.any().required(), - weight: Joi.any().required(), - attributes: Joi.any().required(), - quantity: Joi.number().required(), - }); - } - - /** @returns {LocationDetails} */ - static LocationDetails() { - return Joi.object({ - fulfillment_type: Joi.string().allow("").required(), - articles: Joi.array() - .items(OrderPlatformModel.ArticleDetails()) - .required(), - fulfillment_id: Joi.number().required(), - }); - } - - /** @returns {ShipmentDetails} */ - static ShipmentDetails() { - return Joi.object({ - box_type: Joi.string().allow("").allow(null), - shipments: Joi.number().required(), - fulfillment_id: Joi.number().required(), - articles: Joi.array() - .items(OrderPlatformModel.ArticleDetails()) - .required(), - dp_id: Joi.string().allow("").allow(null), - meta: Joi.any(), - affiliate_shipment_id: Joi.string().allow("").required(), - dp_options: Joi.any().allow(null), - lock_status: Joi.boolean().allow(null), - action_to_status: Joi.any().allow(null), - }).allow(null); - } - - /** @returns {ShipmentConfig} */ - static ShipmentConfig() { - return Joi.object({ - location_details: OrderPlatformModel.LocationDetails(), - source: Joi.string().allow("").required(), - to_pincode: Joi.string().allow("").required(), - shipment: Joi.array() - .items(OrderPlatformModel.ShipmentDetails()) - .required(), - identifier: Joi.string().allow("").required(), - payment_mode: Joi.string().allow("").required(), - action: Joi.string().allow("").required(), - journey: Joi.string().allow("").required(), - }); - } - - /** @returns {ShipmentData} */ - static ShipmentData() { - return Joi.object({ - shipment_data: OrderPlatformModel.ShipmentConfig().required(), - }); - } - - /** @returns {MarketPlacePdf} */ - static MarketPlacePdf() { - return Joi.object({ - invoice: Joi.string().allow("").allow(null), - label: Joi.string().allow("").allow(null), - }); - } - - /** @returns {AffiliateBag} */ - static AffiliateBag() { - return Joi.object({ - pdf_links: OrderPlatformModel.MarketPlacePdf(), - store_id: Joi.number().required(), - sku: Joi.string().allow("").required(), - discount: Joi.number().required(), - unit_price: Joi.number().required(), - price_effective: Joi.number().required(), - affiliate_store_id: Joi.string().allow("").required(), - identifier: Joi.any().required(), - seller_identifier: Joi.string().allow("").required(), - item_size: Joi.string().allow("").required(), - amount_paid: Joi.number().required(), - fynd_store_id: Joi.string().allow("").required(), - item_id: Joi.number().required(), - delivery_charge: Joi.number().required(), - avl_qty: Joi.number().required(), - price_marked: Joi.number().required(), - quantity: Joi.number().required(), - company_id: Joi.number().required(), - hsn_code_id: Joi.string().allow("").required(), - _id: Joi.string().allow("").required(), - affiliate_meta: Joi.any().required(), - modified_on: Joi.string().allow("").required(), - transfer_price: Joi.number().required(), - }); - } - - /** @returns {UserData} */ - static UserData() { - return Joi.object({ - shipping_user: OrderPlatformModel.OrderUser(), - billing_user: OrderPlatformModel.OrderUser(), - }); - } - - /** @returns {OrderInfo} */ - static OrderInfo() { - return Joi.object({ - affiliate_order_id: Joi.string().allow(""), - cod_charges: Joi.number().required(), - items: Joi.any().required(), - discount: Joi.number().required(), - billing_address: OrderPlatformModel.OrderUser().required(), - payment: Joi.any(), - order_priority: OrderPlatformModel.OrderPriority(), - shipment: OrderPlatformModel.ShipmentData(), - delivery_charges: Joi.number().required(), - shipping_address: OrderPlatformModel.OrderUser().required(), - order_value: Joi.number().required(), - payment_mode: Joi.string().allow("").required(), - bags: Joi.array().items(OrderPlatformModel.AffiliateBag()).required(), - user: OrderPlatformModel.UserData().required(), - coupon: Joi.string().allow("").allow(null), - }); - } - - /** @returns {AffiliateAppConfigMeta} */ - static AffiliateAppConfigMeta() { - return Joi.object({ - value: Joi.string().allow("").required(), - name: Joi.string().allow("").required(), - }); - } - - /** @returns {AffiliateAppConfig} */ - static AffiliateAppConfig() { - return Joi.object({ - id: Joi.string().allow("").required(), - description: Joi.string().allow(""), - updated_at: Joi.string().allow("").required(), - name: Joi.string().allow("").required(), - token: Joi.string().allow("").required(), - meta: Joi.array().items(OrderPlatformModel.AffiliateAppConfigMeta()), - owner: Joi.string().allow("").required(), - secret: Joi.string().allow("").required(), - created_at: Joi.string().allow("").required(), - }); - } - - /** @returns {AffiliateInventoryArticleAssignmentConfig} */ - static AffiliateInventoryArticleAssignmentConfig() { - return Joi.object({ - post_order_reassignment: Joi.boolean(), - }); - } - - /** @returns {AffiliateInventoryPaymentConfig} */ - static AffiliateInventoryPaymentConfig() { - return Joi.object({ - source: Joi.string().allow(""), - mode_of_payment: Joi.string().allow(""), - }); - } - - /** @returns {AffiliateInventoryStoreConfig} */ - static AffiliateInventoryStoreConfig() { - return Joi.object({ - store: Joi.any(), - }); - } - - /** @returns {AffiliateInventoryOrderConfig} */ - static AffiliateInventoryOrderConfig() { + /** @returns {DataUpdates} */ + static DataUpdates() { return Joi.object({ - force_reassignment: Joi.boolean(), + order_item_status: Joi.array().items( + OrderPlatformModel.OrderItemDataUpdates() + ), + products: Joi.array().items(OrderPlatformModel.ProductsDataUpdates()), + entities: Joi.array().items(OrderPlatformModel.EntitiesDataUpdates()), }); } - /** @returns {AffiliateInventoryLogisticsConfig} */ - static AffiliateInventoryLogisticsConfig() { + /** @returns {ShipmentsRequest} */ + static ShipmentsRequest() { return Joi.object({ - dp_assignment: Joi.boolean(), + identifier: Joi.string().allow("").required(), + reasons: OrderPlatformModel.ReasonsData(), + products: Joi.array().items(OrderPlatformModel.Products()), + data_updates: OrderPlatformModel.DataUpdates(), }); } - /** @returns {AffiliateInventoryConfig} */ - static AffiliateInventoryConfig() { + /** @returns {StatuesRequest} */ + static StatuesRequest() { return Joi.object({ - article_assignment: OrderPlatformModel.AffiliateInventoryArticleAssignmentConfig(), - payment: OrderPlatformModel.AffiliateInventoryPaymentConfig(), - inventory: OrderPlatformModel.AffiliateInventoryStoreConfig(), - order: OrderPlatformModel.AffiliateInventoryOrderConfig(), - logistics: OrderPlatformModel.AffiliateInventoryLogisticsConfig(), + status: Joi.string().allow(""), + shipments: Joi.array().items(OrderPlatformModel.ShipmentsRequest()), + exclude_bags_next_state: Joi.string().allow(""), + split_shipment: Joi.boolean(), }); } - /** @returns {AffiliateConfig} */ - static AffiliateConfig() { + /** @returns {UpdateShipmentStatusRequestSchema} */ + static UpdateShipmentStatusRequestSchema() { return Joi.object({ - app: OrderPlatformModel.AffiliateAppConfig(), - inventory: OrderPlatformModel.AffiliateInventoryConfig(), - app_company_id: Joi.number().allow(null), + force_transition: Joi.boolean(), + statuses: Joi.array().items(OrderPlatformModel.StatuesRequest()), + lock_after_transition: Joi.boolean(), + unlock_before_transition: Joi.boolean(), + task: Joi.boolean(), + resume_tasks_after_unlock: Joi.boolean(), }); } - /** @returns {Affiliate} */ - static Affiliate() { + /** @returns {ShipmentsResponse} */ + static ShipmentsResponse() { return Joi.object({ - id: Joi.string().allow("").required(), - config: OrderPlatformModel.AffiliateConfig(), - token: Joi.string().allow("").required(), + status: Joi.number().allow(null), + final_state: Joi.any().allow(null), + identifier: Joi.string().allow("").allow(null), + stack_trace: Joi.string().allow("").allow(null), + code: Joi.string().allow("").allow(null), + meta: Joi.any().allow(null), + message: Joi.string().allow("").allow(null), + exception: Joi.string().allow("").allow(null), }); } - /** @returns {AffiliateStoreIdMapping} */ - static AffiliateStoreIdMapping() { + /** @returns {StatuesResponse} */ + static StatuesResponse() { return Joi.object({ - store_id: Joi.number().required(), - marketplace_store_id: Joi.string().allow("").required(), + shipments: Joi.array().items(OrderPlatformModel.ShipmentsResponse()), }); } - /** @returns {OrderConfig} */ - static OrderConfig() { + /** @returns {UpdateShipmentStatusResponseBody} */ + static UpdateShipmentStatusResponseBody() { return Joi.object({ - create_user: Joi.boolean(), - article_lookup: Joi.string().allow(""), - bag_end_state: Joi.string().allow(""), - affiliate: OrderPlatformModel.Affiliate().required(), - store_lookup: Joi.string().allow(""), - affiliate_store_id_mapping: Joi.array() - .items(OrderPlatformModel.AffiliateStoreIdMapping()) - .required(), + statuses: Joi.array().items(OrderPlatformModel.StatuesResponse()), }); } @@ -4065,7 +3816,7 @@ class OrderPlatformModel { /** @returns {CreateOrderConfig} */ static CreateOrderConfig() { return Joi.object({ - dp_configuration: OrderPlatformModel.DPConfiguration(), + dp_configuration: OrderPlatformModel.DPConfiguration().required(), integration_type: Joi.string().allow(""), location_reassignment: Joi.boolean(), payment: OrderPlatformModel.PaymentConfig(), @@ -4073,15 +3824,6 @@ class OrderPlatformModel { }); } - /** @returns {CreateOrderPayload} */ - static CreateOrderPayload() { - return Joi.object({ - affiliate_id: Joi.string().allow("").required(), - order_info: OrderPlatformModel.OrderInfo().required(), - order_config: OrderPlatformModel.OrderConfig().required(), - }); - } - /** @returns {CreateOrderResponse} */ static CreateOrderResponse() { return Joi.object({ @@ -4170,6 +3912,7 @@ class OrderPlatformModel { ticket_url: Joi.string().allow(""), l3_detail: Joi.string().allow(""), createdat: Joi.string().allow("").required(), + created_ts: Joi.string().allow(""), ticket_id: Joi.string().allow(""), type: Joi.string().allow("").required(), l2_detail: Joi.string().allow(""), @@ -4331,8 +4074,8 @@ class OrderPlatformModel { static Dimension() { return Joi.object({ packaging_type: Joi.string().allow(""), - weight: Joi.string().allow(""), - height: Joi.string().allow(""), + weight: Joi.number(), + height: Joi.number(), length: Joi.number(), width: Joi.number(), }); @@ -4364,11 +4107,19 @@ class OrderPlatformModel { }); } + /** @returns {AmountSchema} */ + static AmountSchema() { + return Joi.object({ + currency: Joi.string().allow(""), + value: Joi.number(), + }); + } + /** @returns {Charge} */ static Charge() { return Joi.object({ name: Joi.string().allow("").required(), - amount: Joi.any().required(), + amount: OrderPlatformModel.AmountSchema().required(), tax: OrderPlatformModel.Tax(), code: Joi.string().allow(""), type: Joi.string().allow("").required(), @@ -4439,6 +4190,14 @@ class OrderPlatformModel { }); } + /** @returns {GeoLocationSchema} */ + static GeoLocationSchema() { + return Joi.object({ + latitude: Joi.number(), + longitude: Joi.number(), + }); + } + /** @returns {ShippingInfo} */ static ShippingInfo() { return Joi.object({ @@ -4449,7 +4208,7 @@ class OrderPlatformModel { middle_name: Joi.string().allow(""), primary_mobile_number: Joi.string().allow(""), last_name: Joi.string().allow(""), - geo_location: Joi.any(), + geo_location: OrderPlatformModel.GeoLocationSchema(), gender: Joi.string().allow(""), house_no: Joi.string().allow(""), first_name: Joi.string().allow(""), @@ -4474,37 +4233,6 @@ class OrderPlatformModel { }); } - /** @returns {BillingInfo} */ - static BillingInfo() { - return Joi.object({ - alternate_mobile_number: Joi.string().allow(""), - state: Joi.string().allow(""), - customer_code: Joi.string().allow(""), - middle_name: Joi.string().allow(""), - primary_mobile_number: Joi.string().allow(""), - last_name: Joi.string().allow(""), - gender: Joi.string().allow(""), - house_no: Joi.string().allow(""), - first_name: Joi.string().allow(""), - title: Joi.string().allow(""), - country: Joi.string().allow(""), - state_code: Joi.string().allow(""), - city: Joi.string().allow(""), - external_customer_code: Joi.string().allow(""), - floor_no: Joi.string().allow(""), - alternate_email: Joi.string().allow(""), - address: Joi.string().allow(""), - area: Joi.string().allow(""), - address1: Joi.string().allow(""), - pincode: Joi.string().allow(""), - primary_email: Joi.string().allow(""), - address2: Joi.string().allow(""), - landmark: Joi.string().allow(""), - country_code: Joi.string().allow(""), - country_iso_code: Joi.string().allow(""), - }); - } - /** @returns {UserInfo} */ static UserInfo() { return Joi.object({ @@ -4544,6 +4272,7 @@ class OrderPlatformModel { static PaymentInfo() { return Joi.object({ primary_mode: Joi.string().allow("").required(), + payment_mode: Joi.string().allow(""), payment_methods: Joi.array().items(OrderPlatformModel.PaymentMethod()), }); } @@ -4553,97 +4282,37 @@ class OrderPlatformModel { return Joi.object({ shipments: Joi.array().items(OrderPlatformModel.Shipment()).required(), shipping_info: OrderPlatformModel.ShippingInfo().required(), - billing_info: OrderPlatformModel.BillingInfo().required(), + billing_info: OrderPlatformModel.ShippingInfo().required(), currency_info: Joi.any(), external_order_id: Joi.string().allow(""), charges: Joi.array().items(OrderPlatformModel.Charge()), external_creation_date: Joi.string().allow(""), meta: Joi.any(), tax_info: OrderPlatformModel.TaxInfo(), - config: OrderPlatformModel.CreateOrderConfig(), + config: OrderPlatformModel.CreateOrderConfig().required(), payment_info: OrderPlatformModel.PaymentInfo().required(), user_info: OrderPlatformModel.UserInfo(), ordering_store_id: Joi.number(), order_platform: Joi.string().allow(""), + order_type: Joi.string().allow(""), + fynd_order_id: Joi.string().allow(""), + application_id: Joi.string().allow(""), + external_shipment_id: Joi.string().allow(""), }); } /** @returns {CreateOrderErrorReponse} */ static CreateOrderErrorReponse() { return Joi.object({ - request_id: Joi.string().allow("").allow(null), - status: Joi.number().required(), - info: Joi.any(), - stack_trace: Joi.string().allow("").allow(null), - code: Joi.string().allow("").allow(null), - meta: Joi.string().allow("").allow(null), - message: Joi.string().allow("").required(), - exception: Joi.string().allow("").allow(null), - }); - } - - /** @returns {DpConfiguration} */ - static DpConfiguration() { - return Joi.object({ - shipping_by: Joi.string().allow(""), - }); - } - - /** @returns {PaymentMethods} */ - static PaymentMethods() { - return Joi.object({ - collect_by: Joi.string().allow(""), - refund_by: Joi.string().allow(""), - mode: Joi.string().allow(""), - }); - } - - /** @returns {CreateChannelPaymentInfo} */ - static CreateChannelPaymentInfo() { - return Joi.object({ - source: Joi.string().allow(""), - payment_methods: Joi.array().items(OrderPlatformModel.PaymentMethods()), - mode_of_payment: Joi.string().allow(""), - }); - } - - /** @returns {CreateChannelConfig} */ - static CreateChannelConfig() { - return Joi.object({ - dp_configuration: OrderPlatformModel.DpConfiguration(), - shipment_assignment: Joi.string().allow(""), - location_reassignment: Joi.boolean(), - logo_url: Joi.any(), - payment_info: OrderPlatformModel.CreateChannelPaymentInfo(), - lock_states: Joi.array().items(Joi.string().allow("")), - }); - } - - /** @returns {CreateChannelConfigData} */ - static CreateChannelConfigData() { - return Joi.object({ - config_data: OrderPlatformModel.CreateChannelConfig(), - }); - } - - /** @returns {CreateChannelConifgErrorResponse} */ - static CreateChannelConifgErrorResponse() { - return Joi.object({ - error: Joi.string().allow(""), - }); - } - - /** @returns {CreateChannelConfigResponse} */ - static CreateChannelConfigResponse() { - return Joi.object({ - is_inserted: Joi.boolean(), - is_upserted: Joi.boolean(), - acknowledged: Joi.boolean(), + success: Joi.boolean(), + errors: Joi.string().allow(""), + status_code: Joi.number(), + fynd_order_id: Joi.string().allow(""), }); } - /** @returns {UploadConsent} */ - static UploadConsent() { + /** @returns {UploadManifestConsent} */ + static UploadManifestConsent() { return Joi.object({ consent_url: Joi.string().allow("").required(), manifest_id: Joi.string().allow("").required(), @@ -4661,7 +4330,8 @@ class OrderPlatformModel { static ResponseDetail() { return Joi.object({ success: Joi.boolean(), - message: Joi.array().items(Joi.string().allow("")), + message: Joi.string().allow(""), + status: Joi.number(), }); } @@ -4669,6 +4339,9 @@ class OrderPlatformModel { static FyndOrderIdList() { return Joi.object({ fynd_order_id: Joi.array().items(Joi.string().allow("")), + start_date: Joi.string().allow(""), + end_date: Joi.string().allow(""), + mobile: Joi.number(), }); } @@ -4676,9 +4349,6 @@ class OrderPlatformModel { static OrderStatus() { return Joi.object({ order_details: Joi.array().items(OrderPlatformModel.FyndOrderIdList()), - start_date: Joi.string().allow("").required(), - end_date: Joi.string().allow("").required(), - mobile: Joi.number().required(), }); } @@ -4698,39 +4368,13 @@ class OrderPlatformModel { }); } - /** @returns {FetchCreditBalanceRequestPayload} */ - static FetchCreditBalanceRequestPayload() { - return Joi.object({ - affiliate_id: Joi.string().allow("").required(), - seller_id: Joi.string().allow("").required(), - customer_mobile_number: Joi.string().allow("").required(), - }); - } - - /** @returns {CreditBalanceInfo} */ - static CreditBalanceInfo() { - return Joi.object({ - total_credited_balance: Joi.string().allow(""), - reason: Joi.string().allow(""), - customer_mobile_number: Joi.string().allow(""), - }); - } - - /** @returns {FetchCreditBalanceResponsePayload} */ - static FetchCreditBalanceResponsePayload() { - return Joi.object({ - success: Joi.boolean().required(), - data: OrderPlatformModel.CreditBalanceInfo().required(), - }); - } - /** @returns {RefundModeConfigRequestPayload} */ static RefundModeConfigRequestPayload() { return Joi.object({ fynd_order_id: Joi.string().allow("").required(), seller_id: Joi.number().required(), affiliate_id: Joi.string().allow("").required(), - customer_mobile_number: Joi.string().allow(""), + customer_mobile_number: Joi.number(), }); } @@ -4744,6 +4388,13 @@ class OrderPlatformModel { }); } + /** @returns {RefundModeFormat} */ + static RefundModeFormat() { + return Joi.object({ + refund_to: Joi.string().allow(""), + }); + } + /** @returns {RefundModeInfo} */ static RefundModeInfo() { return Joi.object({ @@ -4751,6 +4402,7 @@ class OrderPlatformModel { slug: Joi.string().allow(""), options: Joi.array().items(OrderPlatformModel.RefundOption()), display_name: Joi.string().allow(""), + format: OrderPlatformModel.RefundModeFormat(), }); } @@ -4759,6 +4411,8 @@ class OrderPlatformModel { return Joi.object({ success: Joi.boolean().required(), data: Joi.array().items(OrderPlatformModel.RefundModeInfo()).required(), + status: Joi.number(), + message: Joi.string().allow(""), }); } @@ -4799,7 +4453,7 @@ class OrderPlatformModel { /** @returns {SendUserMobileOTP} */ static SendUserMobileOTP() { return Joi.object({ - mobile: Joi.string().allow("").required(), + mobile: Joi.number().required(), country_code: Joi.string().allow(""), }); } @@ -4818,6 +4472,7 @@ class OrderPlatformModel { static SendUserMobileOtpResponse() { return Joi.object({ success: Joi.boolean(), + status: Joi.number(), message: Joi.string().allow(""), data: OrderPlatformModel.PointBlankOtpData(), }); @@ -4865,7 +4520,7 @@ class OrderPlatformModel { return Joi.object({ store_ids: Joi.array().items(Joi.string().allow("")), lane_type: Joi.string().allow(""), - custom_headers: Joi.string().allow(""), + custom_headers: Joi.array().items(Joi.string().allow("")), report_type: Joi.string().allow(""), start_date: Joi.string().allow(""), end_date: Joi.string().allow(""), @@ -4884,16 +4539,16 @@ class OrderPlatformModel { }); } - /** @returns {BulkFailedResponse} */ - static BulkFailedResponse() { + /** @returns {APIFailedResponse} */ + static APIFailedResponse() { return Joi.object({ status: Joi.boolean(), error: Joi.string().allow(""), }); } - /** @returns {BulkStateTransistionRequest} */ - static BulkStateTransistionRequest() { + /** @returns {BulkStateTransistionRequestSchema} */ + static BulkStateTransistionRequestSchema() { return Joi.object({ url: Joi.string().allow(""), file_name: Joi.string().allow(""), @@ -4956,6 +4611,14 @@ class OrderPlatformModel { last_selected_invoice_label_type: Joi.string().allow(""), batch_id: Joi.string().allow(""), uploaded_by: Joi.string().allow(""), + invoicelabel_document_type: Joi.string().allow(""), + failed_sh_count: Joi.number(), + successful_sh_count: Joi.number(), + total_count: Joi.number(), + failed_shipments: Joi.array().items(Joi.string().allow("")), + successful_invoiced_count: Joi.number(), + failed_invoiced_count: Joi.number(), + total_invoiced_count: Joi.number(), }); } @@ -5049,11 +4712,13 @@ class OrderPlatformModel { static ManifestShipmentListing() { return Joi.object({ total_count: Joi.number().required(), - lane: Joi.string().allow(""), + lane: Joi.string().allow("").required(), page: OrderPlatformModel.ManifestPageInfo().required(), success: Joi.boolean().required(), - status: Joi.number().required(), - items: Joi.array().items(OrderPlatformModel.ManifestItemDetails()), + status: Joi.number(), + items: Joi.array() + .items(OrderPlatformModel.ManifestItemDetails()) + .required(), message: Joi.string().allow(""), }); } @@ -5167,49 +4832,6 @@ class OrderPlatformModel { }); } - /** @returns {FiltersRequest} */ - static FiltersRequest() { - return Joi.object({ - date_range: OrderPlatformModel.DateRange(), - logo: Joi.string().allow(""), - stores: Joi.number().required(), - dp_name: Joi.string().allow("").required(), - dp_ids: Joi.number().required(), - lane: Joi.string().allow("").required(), - store_name: Joi.string().allow("").required(), - }); - } - - /** @returns {ProcessManifest} */ - static ProcessManifest() { - return Joi.object({ - filters: OrderPlatformModel.FiltersRequest().required(), - action: Joi.string().allow("").required(), - unique_id: Joi.string().allow("").required(), - manifest_id: Joi.string().allow(""), - }); - } - - /** @returns {ProcessManifestResponse} */ - static ProcessManifestResponse() { - return Joi.object({ - company_id: Joi.number(), - filters: OrderPlatformModel.Filters(), - user_id: Joi.string().allow(""), - manifest_id: Joi.string().allow(""), - action: Joi.string().allow(""), - uid: Joi.string().allow(""), - created_by: Joi.string().allow(""), - }); - } - - /** @returns {ProcessManifestItemResponse} */ - static ProcessManifestItemResponse() { - return Joi.object({ - items: OrderPlatformModel.ProcessManifestResponse(), - }); - } - /** @returns {FilterInfoOption} */ static FilterInfoOption() { return Joi.object({ @@ -5460,8 +5082,8 @@ class OrderPlatformModel { }); } - /** @returns {GenerateInvoiceIDRequest} */ - static GenerateInvoiceIDRequest() { + /** @returns {GenerateInvoiceIDRequestSchema} */ + static GenerateInvoiceIDRequestSchema() { return Joi.object({ shipment_ids: Joi.array().items(Joi.string().allow("")).required(), }); @@ -5495,10 +5117,10 @@ class OrderPlatformModel { /** @returns {ProcessManifestRequest} */ static ProcessManifestRequest() { return Joi.object({ - action: Joi.string().allow(""), + action: Joi.string().allow("").required(), manifest_id: Joi.string().allow(""), - filters: OrderPlatformModel.Filters(), - unique_id: Joi.string().allow(""), + filters: OrderPlatformModel.Filters().required(), + unique_id: Joi.string().allow("").required(), }); } @@ -5545,7 +5167,6 @@ class OrderPlatformModel { /** @returns {FlagData} */ static FlagData() { return Joi.object({ - value: Joi.any(), filter: Joi.any(), }); } @@ -5655,6 +5276,23 @@ class OrderPlatformModel { }); } + /** @returns {CommonErrorResponse} */ + static CommonErrorResponse() { + return Joi.object({ + status: Joi.number(), + message: Joi.string().allow(""), + }); + } + + /** @returns {ExceptionErrorResponse} */ + static ExceptionErrorResponse() { + return Joi.object({ + message: Joi.string().allow(""), + exception: Joi.string().allow(""), + stack_trace: Joi.string().allow(""), + }); + } + /** @returns {Page} */ static Page() { return Joi.object({ @@ -6464,6 +6102,13 @@ class OrderPlatformModel { }); } + /** @returns {AffiliateConfig} */ + static AffiliateConfig() { + return Joi.object({ + app_company_id: Joi.number().allow(null), + }); + } + /** @returns {AffiliateDetails} */ static AffiliateDetails() { return Joi.object({ @@ -7257,6 +6902,16 @@ class OrderPlatformModel { }).allow(null); } + /** @returns {ShipmentDetails} */ + static ShipmentDetails() { + return Joi.object({ + dp_id: Joi.string().allow("").allow(null), + dp_options: Joi.any().allow(null), + lock_status: Joi.boolean().allow(null), + action_to_status: Joi.any().allow(null), + }).allow(null); + } + /** @returns {UserDetails} */ static UserDetails() { return Joi.object({ @@ -7293,7 +6948,9 @@ class OrderPlatformModel { article: OrderPlatformModel.Article(), article_details: OrderPlatformModel.ArticleStatusDetails(), bag_status: Joi.array().items(OrderPlatformModel.BagStatusHistory()), - bag_status_history: OrderPlatformModel.BagStatusHistory(), + bag_status_history: Joi.array().items( + OrderPlatformModel.BagStatusHistory() + ), brand: OrderPlatformModel.Brand(), company: OrderPlatformModel.Company(), current_operational_status: OrderPlatformModel.BagStatusHistory(), @@ -7441,5 +7098,13 @@ class OrderPlatformModel { success: Joi.boolean(), }); } + + /** @returns {BulkFailedResponse} */ + static BulkFailedResponse() { + return Joi.object({ + status: Joi.boolean(), + error: Joi.string().allow(""), + }); + } } module.exports = OrderPlatformModel; diff --git a/sdk/platform/Order/OrderPlatformValidator.d.ts b/sdk/platform/Order/OrderPlatformValidator.d.ts index f0affdd52..ff4e511de 100644 --- a/sdk/platform/Order/OrderPlatformValidator.d.ts +++ b/sdk/platform/Order/OrderPlatformValidator.d.ts @@ -9,26 +9,24 @@ export = OrderPlatformValidator; */ /** * @typedef BulkListingParam - * @property {number} pageSize - Page size - * @property {number} pageNo - Page number - * @property {string} startDate - UTC start date in ISO format - * @property {string} endDate - UTC end date in ISO format - * @property {string} [status] - Status for which to fetch the jobs. - * @property {string} [bulkActionType] - Job type. - * @property {string} [searchKey] - Search_key. + * @property {number} pageSize - The number of records to return per page in the response. + * @property {number} pageNo - The page number to fetch from the paginated results. + * @property {string} startDate - The start date for filtering the jobs, + * expressed in UTC format + * @property {string} endDate - The end date for filtering the jobs, expressed + * in UTC format + * @property {string} [status] - The status of the jobs to filter the results. + * @property {string} [bulkActionType] - Pecifies the type of job action being requested. + * @property {string} [searchKey] - A key or keyword used to search for specific jobs. */ /** * @typedef BulkStateTransistionParam - * @property {OrderPlatformModel.BulkStateTransistionRequest} body + * @property {OrderPlatformModel.BulkStateTransistionRequestSchema} body */ /** * @typedef CheckOrderStatusParam * @property {OrderPlatformModel.OrderStatus} body */ -/** - * @typedef CreateChannelConfigParam - * @property {OrderPlatformModel.CreateChannelConfigData} body - */ /** * @typedef CreateOrderParam * @property {OrderPlatformModel.CreateOrderAPI} body @@ -53,10 +51,6 @@ export = OrderPlatformValidator; * @typedef FailedOrderLogDetailsParam * @property {string} logId - Log Error ID */ -/** - * @typedef FetchCreditBalanceDetailParam - * @property {OrderPlatformModel.FetchCreditBalanceRequestPayload} body - */ /** * @typedef FetchRefundModeConfigParam * @property {OrderPlatformModel.RefundModeConfigRequestPayload} body @@ -64,7 +58,7 @@ export = OrderPlatformValidator; /** * @typedef GenerateInvoiceIDParam * @property {string} invoiceType - Mention the type of invoice id to generate - * @property {OrderPlatformModel.GenerateInvoiceIDRequest} body + * @property {OrderPlatformModel.GenerateInvoiceIDRequestSchema} body */ /** * @typedef GeneratePOSReceiptByOrderIdParam @@ -78,14 +72,14 @@ export = OrderPlatformValidator; */ /** * @typedef GetAllowedStateTransitionParam - * @property {string} orderingChannel - Ordering channel - * @property {string} status - Current status of a shipment + * @property {string} orderingChannel - The channel through which orders are placed. + * @property {string} status - The status key indicates the current status for + * which the API will provide a list of possible next state transitions. */ /** @typedef GetAllowedTemplatesForBulkParam */ /** * @typedef GetAnnouncementsParam - * @property {string} [date] - Date On which the announcement is Active (Date - * should in ISO Datetime format IST Time) + * @property {string} [date] - Date On which the announcement is Active. */ /** * @typedef GetBagByIdParam @@ -121,13 +115,12 @@ export = OrderPlatformValidator; * @property {number} [pageNo] * @property {number} [pageSize] */ -/** @typedef GetChannelConfigParam */ /** * @typedef GetFileByStatusParam - * @property {string} batchId - * @property {string} status - * @property {string} fileType - * @property {string} [reportType] + * @property {string} batchId - Batch Id to identify the bulk operation request. + * @property {string} status - The status of the jobs to filter the results. + * @property {string} fileType - The type of file to be downloaded. + * @property {string} [reportType] - The type of report to be downloaded. */ /** * @typedef GetLaneConfigParam @@ -154,20 +147,26 @@ export = OrderPlatformValidator; */ /** * @typedef GetManifestDetailsParam - * @property {string} manifestId + * @property {string} manifestId - The unique identifier assigned to the manifest. + * @property {string} [dpIds] - Filter shipments with the specific Courier + * partner Ids which is a combination of courier partner extension and scheme Ids. + * @property {string} [endDate] - End date for the shipment search range in manifest. + * @property {string} [startDate] - Start date for the shipment search range in manifest. + * @property {number} [pageNo] - Page number for pagination. + * @property {number} [pageSize] - Number of records per page for pagination. */ /** * @typedef GetManifestShipmentsParam * @property {string} dpIds - Filter shipments with the specific Courier partner * Ids which is a combination of courier partner extension and scheme Ids. - * @property {number} stores - Filter with the specific store. + * @property {number} stores - Filter results based on specific store IDs. * @property {string} toDate - End date for the shipment search range. * @property {string} fromDate - Start date for the shipment search range. - * @property {string} [dpName] - Filter with the specific courier partner name. - * @property {string} [salesChannels] - Comma-separated list of sales channels. - * @property {string} [searchType] - Type of search (e.g., by shipment ID, order - * ID, AWB number). - * @property {string} [searchValue] - Value to search for based on the search type. + * @property {string} [dpName] - Filter results based on specific courier partner name. + * @property {string} [salesChannels] - Filter results based on comma-separated + * list of sales channels. + * @property {string} [searchType] - Filter results based on search type. + * @property {string} [searchValue] - Filter results based on the search value. * @property {number} [pageNo] - Page number for pagination. * @property {number} [pageSize] - Number of records per page for pagination. */ @@ -177,16 +176,20 @@ export = OrderPlatformValidator; */ /** * @typedef GetManifestsParam - * @property {string} [status] - Possible Status [ active, closed ] - * @property {string} [startDate] - UTC Start Date in ISO format - * @property {string} [endDate] - UTC End Date in ISO format - * @property {string} [searchType] - Search type options [ fynd_order_id, - * shipment_id, manifest_id, dp_name, awb_no ] - * @property {number} [storeId] - Fetch manifests for a Store. - * @property {string} [searchValue] - Search value for selected search type - * @property {string} [dpIds] - DP Ids separated by ',' (comma) - * @property {number} [pageNo] - * @property {number} [pageSize] + * @property {string} [status] - Filter for the status of manifests. + * @property {string} [startDate] - The starting date for filtering manifests in + * ISO format + * @property {string} [endDate] - The end date for filtering manifests in ISO format + * @property {string} [searchType] - Specifies the type of search to perform. + * @property {number} [storeId] - Filter to fetch manifests for a specific store + * by its ID. + * @property {string} [searchValue] - The value to search for based on the + * selected search type. + * @property {string} [dpIds] - A comma-separated list of courier partner IDs + * (DP IDs) to filter the manifests. + * @property {number} [pageNo] - The number of the page to fetch data. + * @property {number} [pageSize] - The number of records to return per page for + * pagination. */ /** * @typedef GetOrderByIdParam @@ -226,6 +229,9 @@ export = OrderPlatformValidator; * @property {string} [orderType] * @property {boolean} [allowInactive] - Flag indicating whether inactive * shipments are allowed + * @property {boolean} [enforceDateFilter] - Applies a date filter for listing + * orders. This is useful when fetching data for a specific date range while + * performing searches. */ /** @typedef GetRoleBasedActionsParam */ /** @@ -239,8 +245,8 @@ export = OrderPlatformValidator; */ /** * @typedef GetShipmentHistoryParam - * @property {string} [shipmentId] - Shipment Id - * @property {number} [bagId] - Bag/Product Id + * @property {string} [shipmentId] - Identifier for the shipment + * @property {number} [bagId] - Identifier for a bag or product. */ /** * @typedef GetShipmentReasonsParam @@ -286,6 +292,9 @@ export = OrderPlatformValidator; * @property {string} [tags] - Comma separated values of tags * @property {string} [customerId] * @property {string} [orderType] + * @property {boolean} [enforceDateFilter] - Applies a date filter for listing + * shipments. This is useful when fetching data for a specific date range + * while performing searches. */ /** * @typedef GetStateManagerConfigParam @@ -309,7 +318,8 @@ export = OrderPlatformValidator; */ /** * @typedef JobDetailsParam - * @property {string} batchId + * @property {string} batchId - A unique identifier for the batch associated + * with this bulk action. */ /** * @typedef OrderUpdateParam @@ -319,10 +329,6 @@ export = OrderPlatformValidator; * @typedef PostShipmentHistoryParam * @property {OrderPlatformModel.PostShipmentHistory} body */ -/** - * @typedef ProcessManifestsParam - * @property {OrderPlatformModel.ProcessManifest} body - */ /** * @typedef ReassignLocationParam * @property {OrderPlatformModel.StoreReassign} body @@ -337,10 +343,10 @@ export = OrderPlatformValidator; */ /** * @typedef TrackShipmentParam - * @property {string} [shipmentId] - Shipment ID + * @property {string} [shipmentId] - Unique identifier of a shipment on the platform. * @property {string} [awb] - AWB number - * @property {number} [pageNo] - Page number - * @property {number} [pageSize] - Page size + * @property {number} [pageNo] - Page number for pagination. + * @property {number} [pageSize] - Number of records per page for pagination. */ /** * @typedef UpdateAddressParam @@ -367,7 +373,7 @@ export = OrderPlatformValidator; */ /** * @typedef UpdateShipmentStatusParam - * @property {OrderPlatformModel.UpdateShipmentStatusRequest} body + * @property {OrderPlatformModel.UpdateShipmentStatusRequestSchema} body */ /** * @typedef UpdateShipmentTrackingParam @@ -375,8 +381,7 @@ export = OrderPlatformValidator; */ /** * @typedef UploadConsentsParam - * @property {string} manifestId - * @property {OrderPlatformModel.UploadConsent} body + * @property {OrderPlatformModel.UploadManifestConsent} body */ /** * @typedef VerifyMobileOTPParam @@ -393,8 +398,6 @@ declare class OrderPlatformValidator { static bulkStateTransistion(): BulkStateTransistionParam; /** @returns {CheckOrderStatusParam} */ static checkOrderStatus(): CheckOrderStatusParam; - /** @returns {CreateChannelConfigParam} */ - static createChannelConfig(): CreateChannelConfigParam; /** @returns {CreateOrderParam} */ static createOrder(): CreateOrderParam; /** @returns {DispatchManifestsParam} */ @@ -407,8 +410,6 @@ declare class OrderPlatformValidator { static eInvoiceRetry(): EInvoiceRetryParam; /** @returns {FailedOrderLogDetailsParam} */ static failedOrderLogDetails(): FailedOrderLogDetailsParam; - /** @returns {FetchCreditBalanceDetailParam} */ - static fetchCreditBalanceDetail(): FetchCreditBalanceDetailParam; /** @returns {FetchRefundModeConfigParam} */ static fetchRefundModeConfig(): FetchRefundModeConfigParam; /** @returns {GenerateInvoiceIDParam} */ @@ -431,8 +432,6 @@ declare class OrderPlatformValidator { static getBulkActionTemplate(): any; /** @returns {GetBulkShipmentExcelFileParam} */ static getBulkShipmentExcelFile(): GetBulkShipmentExcelFileParam; - /** @returns {GetChannelConfigParam} */ - static getChannelConfig(): any; /** @returns {GetFileByStatusParam} */ static getFileByStatus(): GetFileByStatusParam; /** @returns {GetLaneConfigParam} */ @@ -475,8 +474,6 @@ declare class OrderPlatformValidator { static orderUpdate(): OrderUpdateParam; /** @returns {PostShipmentHistoryParam} */ static postShipmentHistory(): PostShipmentHistoryParam; - /** @returns {ProcessManifestsParam} */ - static processManifests(): ProcessManifestsParam; /** @returns {ReassignLocationParam} */ static reassignLocation(): ReassignLocationParam; /** @returns {SendSmsNinjaParam} */ @@ -501,7 +498,7 @@ declare class OrderPlatformValidator { static verifyMobileOTP(): VerifyMobileOTPParam; } declare namespace OrderPlatformValidator { - export { AddStateManagerConfigParam, AttachOrderUserParam, BulkListingParam, BulkStateTransistionParam, CheckOrderStatusParam, CreateChannelConfigParam, CreateOrderParam, DispatchManifestsParam, DownloadBulkActionTemplateParam, DownloadLanesReportParam, EInvoiceRetryParam, FailedOrderLogDetailsParam, FetchCreditBalanceDetailParam, FetchRefundModeConfigParam, GenerateInvoiceIDParam, GeneratePOSReceiptByOrderIdParam, GenerateProcessManifestParam, GetAllowedStateTransitionParam, GetAllowedTemplatesForBulkParam, GetAnnouncementsParam, GetBagByIdParam, GetBagsParam, GetBulkActionTemplateParam, GetBulkShipmentExcelFileParam, GetChannelConfigParam, GetFileByStatusParam, GetLaneConfigParam, GetManifestDetailsParam, GetManifestShipmentsParam, GetManifestfiltersParam, GetManifestsParam, GetOrderByIdParam, GetOrdersParam, GetRoleBasedActionsParam, GetShipmentByIdParam, GetShipmentHistoryParam, GetShipmentReasonsParam, GetShipmentsParam, GetStateManagerConfigParam, GetStateTransitionMapParam, GetTemplateParam, GetfiltersParam, InvalidateShipmentCacheParam, JobDetailsParam, OrderUpdateParam, PostShipmentHistoryParam, ProcessManifestsParam, ReassignLocationParam, SendSmsNinjaParam, SendUserMobileOTPParam, TrackShipmentParam, UpdateAddressParam, UpdatePackagingDimensionsParam, UpdateShipmentLockParam, UpdateShipmentStatusParam, UpdateShipmentTrackingParam, UploadConsentsParam, VerifyMobileOTPParam }; + export { AddStateManagerConfigParam, AttachOrderUserParam, BulkListingParam, BulkStateTransistionParam, CheckOrderStatusParam, CreateOrderParam, DispatchManifestsParam, DownloadBulkActionTemplateParam, DownloadLanesReportParam, EInvoiceRetryParam, FailedOrderLogDetailsParam, FetchRefundModeConfigParam, GenerateInvoiceIDParam, GeneratePOSReceiptByOrderIdParam, GenerateProcessManifestParam, GetAllowedStateTransitionParam, GetAllowedTemplatesForBulkParam, GetAnnouncementsParam, GetBagByIdParam, GetBagsParam, GetBulkActionTemplateParam, GetBulkShipmentExcelFileParam, GetFileByStatusParam, GetLaneConfigParam, GetManifestDetailsParam, GetManifestShipmentsParam, GetManifestfiltersParam, GetManifestsParam, GetOrderByIdParam, GetOrdersParam, GetRoleBasedActionsParam, GetShipmentByIdParam, GetShipmentHistoryParam, GetShipmentReasonsParam, GetShipmentsParam, GetStateManagerConfigParam, GetStateTransitionMapParam, GetTemplateParam, GetfiltersParam, InvalidateShipmentCacheParam, JobDetailsParam, OrderUpdateParam, PostShipmentHistoryParam, ReassignLocationParam, SendSmsNinjaParam, SendUserMobileOTPParam, TrackShipmentParam, UpdateAddressParam, UpdatePackagingDimensionsParam, UpdateShipmentLockParam, UpdateShipmentStatusParam, UpdateShipmentTrackingParam, UploadConsentsParam, VerifyMobileOTPParam }; } type AddStateManagerConfigParam = { body: OrderPlatformModel.TransitionConfigPayload; @@ -511,43 +508,42 @@ type AttachOrderUserParam = { }; type BulkListingParam = { /** - * - Page size + * - The number of records to return per page in the response. */ pageSize: number; /** - * - Page number + * - The page number to fetch from the paginated results. */ pageNo: number; /** - * - UTC start date in ISO format + * - The start date for filtering the jobs, + * expressed in UTC format */ startDate: string; /** - * - UTC end date in ISO format + * - The end date for filtering the jobs, expressed + * in UTC format */ endDate: string; /** - * - Status for which to fetch the jobs. + * - The status of the jobs to filter the results. */ status?: string; /** - * - Job type. + * - Pecifies the type of job action being requested. */ bulkActionType?: string; /** - * - Search_key. + * - A key or keyword used to search for specific jobs. */ searchKey?: string; }; type BulkStateTransistionParam = { - body: OrderPlatformModel.BulkStateTransistionRequest; + body: OrderPlatformModel.BulkStateTransistionRequestSchema; }; type CheckOrderStatusParam = { body: OrderPlatformModel.OrderStatus; }; -type CreateChannelConfigParam = { - body: OrderPlatformModel.CreateChannelConfigData; -}; type CreateOrderParam = { body: OrderPlatformModel.CreateOrderAPI; }; @@ -572,9 +568,6 @@ type FailedOrderLogDetailsParam = { */ logId: string; }; -type FetchCreditBalanceDetailParam = { - body: OrderPlatformModel.FetchCreditBalanceRequestPayload; -}; type FetchRefundModeConfigParam = { body: OrderPlatformModel.RefundModeConfigRequestPayload; }; @@ -583,7 +576,7 @@ type GenerateInvoiceIDParam = { * - Mention the type of invoice id to generate */ invoiceType: string; - body: OrderPlatformModel.GenerateInvoiceIDRequest; + body: OrderPlatformModel.GenerateInvoiceIDRequestSchema; }; type GeneratePOSReceiptByOrderIdParam = { orderId: string; @@ -595,18 +588,18 @@ type GenerateProcessManifestParam = { }; type GetAllowedStateTransitionParam = { /** - * - Ordering channel + * - The channel through which orders are placed. */ orderingChannel: string; /** - * - Current status of a shipment + * - The status key indicates the current status for + * which the API will provide a list of possible next state transitions. */ status: string; }; type GetAnnouncementsParam = { /** - * - Date On which the announcement is Active (Date - * should in ISO Datetime format IST Time) + * - Date On which the announcement is Active. */ date?: string; }; @@ -707,9 +700,21 @@ type GetBulkShipmentExcelFileParam = { pageSize?: number; }; type GetFileByStatusParam = { + /** + * - Batch Id to identify the bulk operation request. + */ batchId: string; + /** + * - The status of the jobs to filter the results. + */ status: string; + /** + * - The type of file to be downloaded. + */ fileType: string; + /** + * - The type of report to be downloaded. + */ reportType?: string; }; type GetLaneConfigParam = { @@ -768,7 +773,31 @@ type GetLaneConfigParam = { orderType?: string; }; type GetManifestDetailsParam = { + /** + * - The unique identifier assigned to the manifest. + */ manifestId: string; + /** + * - Filter shipments with the specific Courier + * partner Ids which is a combination of courier partner extension and scheme Ids. + */ + dpIds?: string; + /** + * - End date for the shipment search range in manifest. + */ + endDate?: string; + /** + * - Start date for the shipment search range in manifest. + */ + startDate?: string; + /** + * - Page number for pagination. + */ + pageNo?: number; + /** + * - Number of records per page for pagination. + */ + pageSize?: number; }; type GetManifestShipmentsParam = { /** @@ -777,7 +806,7 @@ type GetManifestShipmentsParam = { */ dpIds: string; /** - * - Filter with the specific store. + * - Filter results based on specific store IDs. */ stores: number; /** @@ -789,20 +818,20 @@ type GetManifestShipmentsParam = { */ fromDate: string; /** - * - Filter with the specific courier partner name. + * - Filter results based on specific courier partner name. */ dpName?: string; /** - * - Comma-separated list of sales channels. + * - Filter results based on comma-separated + * list of sales channels. */ salesChannels?: string; /** - * - Type of search (e.g., by shipment ID, order - * ID, AWB number). + * - Filter results based on search type. */ searchType?: string; /** - * - Value to search for based on the search type. + * - Filter results based on the search value. */ searchValue?: string; /** @@ -822,35 +851,45 @@ type GetManifestfiltersParam = { }; type GetManifestsParam = { /** - * - Possible Status [ active, closed ] + * - Filter for the status of manifests. */ status?: string; /** - * - UTC Start Date in ISO format + * - The starting date for filtering manifests in + * ISO format */ startDate?: string; /** - * - UTC End Date in ISO format + * - The end date for filtering manifests in ISO format */ endDate?: string; /** - * - Search type options [ fynd_order_id, - * shipment_id, manifest_id, dp_name, awb_no ] + * - Specifies the type of search to perform. */ searchType?: string; /** - * - Fetch manifests for a Store. + * - Filter to fetch manifests for a specific store + * by its ID. */ storeId?: number; /** - * - Search value for selected search type + * - The value to search for based on the + * selected search type. */ searchValue?: string; /** - * - DP Ids separated by ',' (comma) + * - A comma-separated list of courier partner IDs + * (DP IDs) to filter the manifests. */ dpIds?: string; + /** + * - The number of the page to fetch data. + */ pageNo?: number; + /** + * - The number of records to return per page for + * pagination. + */ pageSize?: number; }; type GetOrderByIdParam = { @@ -919,6 +958,12 @@ type GetOrdersParam = { * shipments are allowed */ allowInactive?: boolean; + /** + * - Applies a date filter for listing + * orders. This is useful when fetching data for a specific date range while + * performing searches. + */ + enforceDateFilter?: boolean; }; type GetShipmentByIdParam = { /** @@ -942,11 +987,11 @@ type GetShipmentByIdParam = { }; type GetShipmentHistoryParam = { /** - * - Shipment Id + * - Identifier for the shipment */ shipmentId?: string; /** - * - Bag/Product Id + * - Identifier for a bag or product. */ bagId?: number; }; @@ -1070,6 +1115,12 @@ type GetShipmentsParam = { tags?: string; customerId?: string; orderType?: string; + /** + * - Applies a date filter for listing + * shipments. This is useful when fetching data for a specific date range + * while performing searches. + */ + enforceDateFilter?: boolean; }; type GetStateManagerConfigParam = { /** @@ -1102,6 +1153,10 @@ type InvalidateShipmentCacheParam = { body: OrderPlatformModel.InvalidateShipmentCachePayload; }; type JobDetailsParam = { + /** + * - A unique identifier for the batch associated + * with this bulk action. + */ batchId: string; }; type OrderUpdateParam = { @@ -1110,9 +1165,6 @@ type OrderUpdateParam = { type PostShipmentHistoryParam = { body: OrderPlatformModel.PostShipmentHistory; }; -type ProcessManifestsParam = { - body: OrderPlatformModel.ProcessManifest; -}; type ReassignLocationParam = { body: OrderPlatformModel.StoreReassign; }; @@ -1124,7 +1176,7 @@ type SendUserMobileOTPParam = { }; type TrackShipmentParam = { /** - * - Shipment ID + * - Unique identifier of a shipment on the platform. */ shipmentId?: string; /** @@ -1132,11 +1184,11 @@ type TrackShipmentParam = { */ awb?: string; /** - * - Page number + * - Page number for pagination. */ pageNo?: number; /** - * - Page size + * - Number of records per page for pagination. */ pageSize?: number; }; @@ -1161,21 +1213,19 @@ type UpdateShipmentLockParam = { body: OrderPlatformModel.UpdateShipmentLockPayload; }; type UpdateShipmentStatusParam = { - body: OrderPlatformModel.UpdateShipmentStatusRequest; + body: OrderPlatformModel.UpdateShipmentStatusRequestSchema; }; type UpdateShipmentTrackingParam = { body: OrderPlatformModel.CourierPartnerTrackingDetails; }; type UploadConsentsParam = { - manifestId: string; - body: OrderPlatformModel.UploadConsent; + body: OrderPlatformModel.UploadManifestConsent; }; type VerifyMobileOTPParam = { body: OrderPlatformModel.VerifyMobileOTP; }; type GetAllowedTemplatesForBulkParam = any; type GetBulkActionTemplateParam = any; -type GetChannelConfigParam = any; type GetRoleBasedActionsParam = any; type GetStateTransitionMapParam = any; import OrderPlatformModel = require("./OrderPlatformModel"); diff --git a/sdk/platform/Order/OrderPlatformValidator.js b/sdk/platform/Order/OrderPlatformValidator.js index ad60177d1..d09a1d50b 100644 --- a/sdk/platform/Order/OrderPlatformValidator.js +++ b/sdk/platform/Order/OrderPlatformValidator.js @@ -14,18 +14,20 @@ const OrderPlatformModel = require("./OrderPlatformModel"); /** * @typedef BulkListingParam - * @property {number} pageSize - Page size - * @property {number} pageNo - Page number - * @property {string} startDate - UTC start date in ISO format - * @property {string} endDate - UTC end date in ISO format - * @property {string} [status] - Status for which to fetch the jobs. - * @property {string} [bulkActionType] - Job type. - * @property {string} [searchKey] - Search_key. + * @property {number} pageSize - The number of records to return per page in the response. + * @property {number} pageNo - The page number to fetch from the paginated results. + * @property {string} startDate - The start date for filtering the jobs, + * expressed in UTC format + * @property {string} endDate - The end date for filtering the jobs, expressed + * in UTC format + * @property {string} [status] - The status of the jobs to filter the results. + * @property {string} [bulkActionType] - Pecifies the type of job action being requested. + * @property {string} [searchKey] - A key or keyword used to search for specific jobs. */ /** * @typedef BulkStateTransistionParam - * @property {OrderPlatformModel.BulkStateTransistionRequest} body + * @property {OrderPlatformModel.BulkStateTransistionRequestSchema} body */ /** @@ -33,11 +35,6 @@ const OrderPlatformModel = require("./OrderPlatformModel"); * @property {OrderPlatformModel.OrderStatus} body */ -/** - * @typedef CreateChannelConfigParam - * @property {OrderPlatformModel.CreateChannelConfigData} body - */ - /** * @typedef CreateOrderParam * @property {OrderPlatformModel.CreateOrderAPI} body @@ -68,11 +65,6 @@ const OrderPlatformModel = require("./OrderPlatformModel"); * @property {string} logId - Log Error ID */ -/** - * @typedef FetchCreditBalanceDetailParam - * @property {OrderPlatformModel.FetchCreditBalanceRequestPayload} body - */ - /** * @typedef FetchRefundModeConfigParam * @property {OrderPlatformModel.RefundModeConfigRequestPayload} body @@ -81,7 +73,7 @@ const OrderPlatformModel = require("./OrderPlatformModel"); /** * @typedef GenerateInvoiceIDParam * @property {string} invoiceType - Mention the type of invoice id to generate - * @property {OrderPlatformModel.GenerateInvoiceIDRequest} body + * @property {OrderPlatformModel.GenerateInvoiceIDRequestSchema} body */ /** @@ -98,16 +90,16 @@ const OrderPlatformModel = require("./OrderPlatformModel"); /** * @typedef GetAllowedStateTransitionParam - * @property {string} orderingChannel - Ordering channel - * @property {string} status - Current status of a shipment + * @property {string} orderingChannel - The channel through which orders are placed. + * @property {string} status - The status key indicates the current status for + * which the API will provide a list of possible next state transitions. */ /** @typedef GetAllowedTemplatesForBulkParam */ /** * @typedef GetAnnouncementsParam - * @property {string} [date] - Date On which the announcement is Active (Date - * should in ISO Datetime format IST Time) + * @property {string} [date] - Date On which the announcement is Active. */ /** @@ -148,14 +140,12 @@ const OrderPlatformModel = require("./OrderPlatformModel"); * @property {number} [pageSize] */ -/** @typedef GetChannelConfigParam */ - /** * @typedef GetFileByStatusParam - * @property {string} batchId - * @property {string} status - * @property {string} fileType - * @property {string} [reportType] + * @property {string} batchId - Batch Id to identify the bulk operation request. + * @property {string} status - The status of the jobs to filter the results. + * @property {string} fileType - The type of file to be downloaded. + * @property {string} [reportType] - The type of report to be downloaded. */ /** @@ -184,21 +174,27 @@ const OrderPlatformModel = require("./OrderPlatformModel"); /** * @typedef GetManifestDetailsParam - * @property {string} manifestId + * @property {string} manifestId - The unique identifier assigned to the manifest. + * @property {string} [dpIds] - Filter shipments with the specific Courier + * partner Ids which is a combination of courier partner extension and scheme Ids. + * @property {string} [endDate] - End date for the shipment search range in manifest. + * @property {string} [startDate] - Start date for the shipment search range in manifest. + * @property {number} [pageNo] - Page number for pagination. + * @property {number} [pageSize] - Number of records per page for pagination. */ /** * @typedef GetManifestShipmentsParam * @property {string} dpIds - Filter shipments with the specific Courier partner * Ids which is a combination of courier partner extension and scheme Ids. - * @property {number} stores - Filter with the specific store. + * @property {number} stores - Filter results based on specific store IDs. * @property {string} toDate - End date for the shipment search range. * @property {string} fromDate - Start date for the shipment search range. - * @property {string} [dpName] - Filter with the specific courier partner name. - * @property {string} [salesChannels] - Comma-separated list of sales channels. - * @property {string} [searchType] - Type of search (e.g., by shipment ID, order - * ID, AWB number). - * @property {string} [searchValue] - Value to search for based on the search type. + * @property {string} [dpName] - Filter results based on specific courier partner name. + * @property {string} [salesChannels] - Filter results based on comma-separated + * list of sales channels. + * @property {string} [searchType] - Filter results based on search type. + * @property {string} [searchValue] - Filter results based on the search value. * @property {number} [pageNo] - Page number for pagination. * @property {number} [pageSize] - Number of records per page for pagination. */ @@ -210,16 +206,20 @@ const OrderPlatformModel = require("./OrderPlatformModel"); /** * @typedef GetManifestsParam - * @property {string} [status] - Possible Status [ active, closed ] - * @property {string} [startDate] - UTC Start Date in ISO format - * @property {string} [endDate] - UTC End Date in ISO format - * @property {string} [searchType] - Search type options [ fynd_order_id, - * shipment_id, manifest_id, dp_name, awb_no ] - * @property {number} [storeId] - Fetch manifests for a Store. - * @property {string} [searchValue] - Search value for selected search type - * @property {string} [dpIds] - DP Ids separated by ',' (comma) - * @property {number} [pageNo] - * @property {number} [pageSize] + * @property {string} [status] - Filter for the status of manifests. + * @property {string} [startDate] - The starting date for filtering manifests in + * ISO format + * @property {string} [endDate] - The end date for filtering manifests in ISO format + * @property {string} [searchType] - Specifies the type of search to perform. + * @property {number} [storeId] - Filter to fetch manifests for a specific store + * by its ID. + * @property {string} [searchValue] - The value to search for based on the + * selected search type. + * @property {string} [dpIds] - A comma-separated list of courier partner IDs + * (DP IDs) to filter the manifests. + * @property {number} [pageNo] - The number of the page to fetch data. + * @property {number} [pageSize] - The number of records to return per page for + * pagination. */ /** @@ -261,6 +261,9 @@ const OrderPlatformModel = require("./OrderPlatformModel"); * @property {string} [orderType] * @property {boolean} [allowInactive] - Flag indicating whether inactive * shipments are allowed + * @property {boolean} [enforceDateFilter] - Applies a date filter for listing + * orders. This is useful when fetching data for a specific date range while + * performing searches. */ /** @typedef GetRoleBasedActionsParam */ @@ -277,8 +280,8 @@ const OrderPlatformModel = require("./OrderPlatformModel"); /** * @typedef GetShipmentHistoryParam - * @property {string} [shipmentId] - Shipment Id - * @property {number} [bagId] - Bag/Product Id + * @property {string} [shipmentId] - Identifier for the shipment + * @property {number} [bagId] - Identifier for a bag or product. */ /** @@ -326,6 +329,9 @@ const OrderPlatformModel = require("./OrderPlatformModel"); * @property {string} [tags] - Comma separated values of tags * @property {string} [customerId] * @property {string} [orderType] + * @property {boolean} [enforceDateFilter] - Applies a date filter for listing + * shipments. This is useful when fetching data for a specific date range + * while performing searches. */ /** @@ -355,7 +361,8 @@ const OrderPlatformModel = require("./OrderPlatformModel"); /** * @typedef JobDetailsParam - * @property {string} batchId + * @property {string} batchId - A unique identifier for the batch associated + * with this bulk action. */ /** @@ -368,11 +375,6 @@ const OrderPlatformModel = require("./OrderPlatformModel"); * @property {OrderPlatformModel.PostShipmentHistory} body */ -/** - * @typedef ProcessManifestsParam - * @property {OrderPlatformModel.ProcessManifest} body - */ - /** * @typedef ReassignLocationParam * @property {OrderPlatformModel.StoreReassign} body @@ -390,10 +392,10 @@ const OrderPlatformModel = require("./OrderPlatformModel"); /** * @typedef TrackShipmentParam - * @property {string} [shipmentId] - Shipment ID + * @property {string} [shipmentId] - Unique identifier of a shipment on the platform. * @property {string} [awb] - AWB number - * @property {number} [pageNo] - Page number - * @property {number} [pageSize] - Page size + * @property {number} [pageNo] - Page number for pagination. + * @property {number} [pageSize] - Number of records per page for pagination. */ /** @@ -424,7 +426,7 @@ const OrderPlatformModel = require("./OrderPlatformModel"); /** * @typedef UpdateShipmentStatusParam - * @property {OrderPlatformModel.UpdateShipmentStatusRequest} body + * @property {OrderPlatformModel.UpdateShipmentStatusRequestSchema} body */ /** @@ -434,8 +436,7 @@ const OrderPlatformModel = require("./OrderPlatformModel"); /** * @typedef UploadConsentsParam - * @property {string} manifestId - * @property {OrderPlatformModel.UploadConsent} body + * @property {OrderPlatformModel.UploadManifestConsent} body */ /** @@ -474,7 +475,7 @@ class OrderPlatformValidator { /** @returns {BulkStateTransistionParam} */ static bulkStateTransistion() { return Joi.object({ - body: OrderPlatformModel.BulkStateTransistionRequest().required(), + body: OrderPlatformModel.BulkStateTransistionRequestSchema().required(), }).required(); } @@ -485,13 +486,6 @@ class OrderPlatformValidator { }).required(); } - /** @returns {CreateChannelConfigParam} */ - static createChannelConfig() { - return Joi.object({ - body: OrderPlatformModel.CreateChannelConfigData().required(), - }).required(); - } - /** @returns {CreateOrderParam} */ static createOrder() { return Joi.object({ @@ -534,13 +528,6 @@ class OrderPlatformValidator { }).required(); } - /** @returns {FetchCreditBalanceDetailParam} */ - static fetchCreditBalanceDetail() { - return Joi.object({ - body: OrderPlatformModel.FetchCreditBalanceRequestPayload().required(), - }).required(); - } - /** @returns {FetchRefundModeConfigParam} */ static fetchRefundModeConfig() { return Joi.object({ @@ -552,7 +539,7 @@ class OrderPlatformValidator { static generateInvoiceID() { return Joi.object({ invoiceType: Joi.string().allow("").required(), - body: OrderPlatformModel.GenerateInvoiceIDRequest().required(), + body: OrderPlatformModel.GenerateInvoiceIDRequestSchema().required(), }).required(); } @@ -639,11 +626,6 @@ class OrderPlatformValidator { }).required(); } - /** @returns {GetChannelConfigParam} */ - static getChannelConfig() { - return Joi.object({}).required(); - } - /** @returns {GetFileByStatusParam} */ static getFileByStatus() { return Joi.object({ @@ -683,6 +665,11 @@ class OrderPlatformValidator { static getManifestDetails() { return Joi.object({ manifestId: Joi.string().allow("").required(), + dpIds: Joi.string().allow(""), + endDate: Joi.string().allow(""), + startDate: Joi.string().allow(""), + pageNo: Joi.number(), + pageSize: Joi.number(), }).required(); } @@ -759,6 +746,7 @@ class OrderPlatformValidator { customerId: Joi.string().allow(""), orderType: Joi.string().allow(""), allowInactive: Joi.boolean(), + enforceDateFilter: Joi.boolean(), }).required(); } @@ -828,6 +816,7 @@ class OrderPlatformValidator { tags: Joi.string().allow(""), customerId: Joi.string().allow(""), orderType: Joi.string().allow(""), + enforceDateFilter: Joi.boolean(), }).required(); } @@ -888,13 +877,6 @@ class OrderPlatformValidator { }).required(); } - /** @returns {ProcessManifestsParam} */ - static processManifests() { - return Joi.object({ - body: OrderPlatformModel.ProcessManifest().required(), - }).required(); - } - /** @returns {ReassignLocationParam} */ static reassignLocation() { return Joi.object({ @@ -961,7 +943,7 @@ class OrderPlatformValidator { /** @returns {UpdateShipmentStatusParam} */ static updateShipmentStatus() { return Joi.object({ - body: OrderPlatformModel.UpdateShipmentStatusRequest().required(), + body: OrderPlatformModel.UpdateShipmentStatusRequestSchema().required(), }).required(); } @@ -975,8 +957,7 @@ class OrderPlatformValidator { /** @returns {UploadConsentsParam} */ static uploadConsents() { return Joi.object({ - manifestId: Joi.string().allow("").required(), - body: OrderPlatformModel.UploadConsent().required(), + body: OrderPlatformModel.UploadManifestConsent().required(), }).required(); } diff --git a/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts b/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts index 0b5c2b83c..a8c6b394a 100644 --- a/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +++ b/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts @@ -295,9 +295,9 @@ declare class Payment { * @returns {Promise} - Success response * @name getPaymentModeRoutes * @summary: Get payment modes - * @description: Available payment methods on the payment page, specifying the aggregator for each option, such as 'Netbanking powered by Juspay' and 'Card powered by Razorpay'. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getPaymentModeRoutes/). + * @description: Get available payment methods on the payment page, specifying the aggregator for each option, such as 'Netbanking powered by Juspay' and 'Card powered by Razorpay'. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getPaymentModeRoutes/). */ - getPaymentModeRoutes({ refresh, requestType, orderId, shipmentId, requestHeaders }?: PaymentPlatformApplicationValidator.GetPaymentModeRoutesParam, { responseHeaders }?: object): Promise; + getPaymentModeRoutes({ refresh, requestType, orderId, shipmentId, amount, requestHeaders }?: PaymentPlatformApplicationValidator.GetPaymentModeRoutesParam, { responseHeaders }?: object): Promise; /** * @param {PaymentPlatformApplicationValidator.GetPaymentSessionParam} arg * - Arg object diff --git a/sdk/platform/Payment/PaymentPlatformApplicationClient.js b/sdk/platform/Payment/PaymentPlatformApplicationClient.js index 1de45f616..c12703274 100644 --- a/sdk/platform/Payment/PaymentPlatformApplicationClient.js +++ b/sdk/platform/Payment/PaymentPlatformApplicationClient.js @@ -1931,10 +1931,10 @@ class Payment { * @returns {Promise} - Success response * @name getPaymentModeRoutes * @summary: Get payment modes - * @description: Available payment methods on the payment page, specifying the aggregator for each option, such as 'Netbanking powered by Juspay' and 'Card powered by Razorpay'. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getPaymentModeRoutes/). + * @description: Get available payment methods on the payment page, specifying the aggregator for each option, such as 'Netbanking powered by Juspay' and 'Card powered by Razorpay'. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getPaymentModeRoutes/). */ async getPaymentModeRoutes( - { refresh, requestType, orderId, shipmentId, requestHeaders } = { + { refresh, requestType, orderId, shipmentId, amount, requestHeaders } = { requestHeaders: {}, }, { responseHeaders } = { responseHeaders: false } @@ -1947,6 +1947,7 @@ class Payment { requestType, orderId, shipmentId, + amount, }, { abortEarly: false, allowUnknown: true } ); @@ -1963,6 +1964,7 @@ class Payment { requestType, orderId, shipmentId, + amount, }, { abortEarly: false, allowUnknown: false } ); @@ -1978,6 +1980,7 @@ class Payment { query_params["request_type"] = requestType; query_params["order_id"] = orderId; query_params["shipment_id"] = shipmentId; + query_params["amount"] = amount; const response = await PlatformAPIClient.execute( this.config, diff --git a/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts b/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts index 9cc729fde..b8f7c25fe 100644 --- a/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +++ b/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts @@ -50,7 +50,7 @@ export = PaymentPlatformApplicationValidator; */ /** * @typedef GetBrandPaymentGatewayConfigParam - * @property {string} [aggregator] - Aggregator slug + * @property {string} aggregator - Aggregator slug * @property {string} [configType] */ /** @@ -80,7 +80,7 @@ export = PaymentPlatformApplicationValidator; /** @typedef GetPaymentCodeOptionParam */ /** * @typedef GetPaymentLinkParam - * @property {string} [paymentLinkId] + * @property {string} paymentLinkId */ /** * @typedef GetPaymentModeControlRoutesParam @@ -92,18 +92,25 @@ export = PaymentPlatformApplicationValidator; */ /** * @typedef GetPaymentModeRoutesParam - * @property {boolean} refresh - * @property {string} requestType - * @property {string} [orderId] - * @property {string} [shipmentId] + * @property {boolean} [refresh] - Flag to refresh the cache and retrieve the + * updated payment option + * @property {string} [requestType] - Type of payment request, i.e. self + * @property {string} [orderId] - Order id for the payment + * @property {string} [shipmentId] - Shipment id for the payment + * @property {number} [amount] - Amount for the payment */ /** * @typedef GetPaymentSessionParam * @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 {boolean} [lineItem] - Line-item to add extra data into response - * (e.g. cart details) + * @property {boolean} [lineItem] - A boolean flag to include detailed cart and + * line item information in the response. When set to true, the response will + * contain comprehensive details about the cart, including each line item's + * product or service descriptions, quantities, unit prices, applicable taxes, + * discounts, total cart value, and total quantity. This provides a clear + * breakdown of charges to the customer, helping to understand the total + * amount billed in a more granular way. */ /** * @typedef GetPosPaymentModeRoutesParam @@ -171,7 +178,7 @@ export = PaymentPlatformApplicationValidator; */ /** * @typedef PollingPaymentLinkParam - * @property {string} [paymentLinkId] + * @property {string} paymentLinkId */ /** * @typedef RepaymentDetailsParam @@ -388,7 +395,7 @@ type GetBrandPaymentGatewayConfigParam = { /** * - Aggregator slug */ - aggregator?: string; + aggregator: string; configType?: string; }; type GetEdcDeviceParam = { @@ -422,7 +429,7 @@ type GetMerchantRefundPriorityParam = { configType: string; }; type GetPaymentLinkParam = { - paymentLinkId?: string; + paymentLinkId: string; }; type GetPaymentModeControlRoutesParam = { /** @@ -437,10 +444,27 @@ type GetPaymentModeCustomConfigParam = { mode: string; }; type GetPaymentModeRoutesParam = { - refresh: boolean; - requestType: string; + /** + * - Flag to refresh the cache and retrieve the + * updated payment option + */ + refresh?: boolean; + /** + * - Type of payment request, i.e. self + */ + requestType?: string; + /** + * - Order id for the payment + */ orderId?: string; + /** + * - Shipment id for the payment + */ shipmentId?: string; + /** + * - Amount for the payment + */ + amount?: number; }; type GetPaymentSessionParam = { /** @@ -450,8 +474,13 @@ type GetPaymentSessionParam = { */ gid: string; /** - * - Line-item to add extra data into response - * (e.g. cart details) + * - A boolean flag to include detailed cart and + * line item information in the response. When set to true, the response will + * contain comprehensive details about the cart, including each line item's + * product or service descriptions, quantities, unit prices, applicable taxes, + * discounts, total cart value, and total quantity. This provides a clear + * breakdown of charges to the customer, helping to understand the total + * amount billed in a more granular way. */ lineItem?: boolean; }; @@ -548,7 +577,7 @@ type PaymentStatusBulkParam = { body: PaymentPlatformModel.PaymentStatusBulkHandlerRequest; }; type PollingPaymentLinkParam = { - paymentLinkId?: string; + paymentLinkId: string; }; type RepaymentDetailsParam = { body: PaymentPlatformModel.RepaymentDetailsSerialiserPayAll; diff --git a/sdk/platform/Payment/PaymentPlatformApplicationValidator.js b/sdk/platform/Payment/PaymentPlatformApplicationValidator.js index 6b61d7c4f..5bb365a55 100644 --- a/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +++ b/sdk/platform/Payment/PaymentPlatformApplicationValidator.js @@ -65,7 +65,7 @@ const PaymentPlatformModel = require("./PaymentPlatformModel"); /** * @typedef GetBrandPaymentGatewayConfigParam - * @property {string} [aggregator] - Aggregator slug + * @property {string} aggregator - Aggregator slug * @property {string} [configType] */ @@ -103,7 +103,7 @@ const PaymentPlatformModel = require("./PaymentPlatformModel"); /** * @typedef GetPaymentLinkParam - * @property {string} [paymentLinkId] + * @property {string} paymentLinkId */ /** @@ -118,10 +118,12 @@ const PaymentPlatformModel = require("./PaymentPlatformModel"); /** * @typedef GetPaymentModeRoutesParam - * @property {boolean} refresh - * @property {string} requestType - * @property {string} [orderId] - * @property {string} [shipmentId] + * @property {boolean} [refresh] - Flag to refresh the cache and retrieve the + * updated payment option + * @property {string} [requestType] - Type of payment request, i.e. self + * @property {string} [orderId] - Order id for the payment + * @property {string} [shipmentId] - Shipment id for the payment + * @property {number} [amount] - Amount for the payment */ /** @@ -129,8 +131,13 @@ const PaymentPlatformModel = require("./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 {boolean} [lineItem] - Line-item to add extra data into response - * (e.g. cart details) + * @property {boolean} [lineItem] - A boolean flag to include detailed cart and + * line item information in the response. When set to true, the response will + * contain comprehensive details about the cart, including each line item's + * product or service descriptions, quantities, unit prices, applicable taxes, + * discounts, total cart value, and total quantity. This provides a clear + * breakdown of charges to the customer, helping to understand the total + * amount billed in a more granular way. */ /** @@ -210,7 +217,7 @@ const PaymentPlatformModel = require("./PaymentPlatformModel"); /** * @typedef PollingPaymentLinkParam - * @property {string} [paymentLinkId] + * @property {string} paymentLinkId */ /** @@ -380,7 +387,7 @@ class PaymentPlatformApplicationValidator { /** @returns {GetBrandPaymentGatewayConfigParam} */ static getBrandPaymentGatewayConfig() { return Joi.object({ - aggregator: Joi.string().allow(""), + aggregator: Joi.string().allow("").required(), configType: Joi.string().allow(""), }).required(); } @@ -437,7 +444,7 @@ class PaymentPlatformApplicationValidator { /** @returns {GetPaymentLinkParam} */ static getPaymentLink() { return Joi.object({ - paymentLinkId: Joi.string().allow(""), + paymentLinkId: Joi.string().allow("").required(), }).required(); } @@ -458,10 +465,11 @@ class PaymentPlatformApplicationValidator { /** @returns {GetPaymentModeRoutesParam} */ static getPaymentModeRoutes() { return Joi.object({ - refresh: Joi.boolean().required(), - requestType: Joi.string().allow("").required(), + refresh: Joi.boolean(), + requestType: Joi.string().allow(""), orderId: Joi.string().allow(""), shipmentId: Joi.string().allow(""), + amount: Joi.number(), }).required(); } @@ -569,7 +577,7 @@ class PaymentPlatformApplicationValidator { /** @returns {PollingPaymentLinkParam} */ static pollingPaymentLink() { return Joi.object({ - paymentLinkId: Joi.string().allow(""), + paymentLinkId: Joi.string().allow("").required(), }).required(); } diff --git a/sdk/platform/Payment/PaymentPlatformModel.d.ts b/sdk/platform/Payment/PaymentPlatformModel.d.ts index cc389a48a..55e3a0ceb 100644 --- a/sdk/platform/Payment/PaymentPlatformModel.d.ts +++ b/sdk/platform/Payment/PaymentPlatformModel.d.ts @@ -1,13 +1,13 @@ export = PaymentPlatformModel; /** * @typedef PaymentGatewayConfigResponse - * @property {Object[]} [aggregators] - List of all speceific Payment options - * with their Details. + * @property {Object[]} [aggregators] - List of all config specific to the + * aggregator with their Details. * @property {string} app_id - Application Id to which Payment config Mapped - * @property {string[]} excluded_fields - List of all excluded options with their Details. + * @property {string[]} excluded_fields - List of all excluded config with their Details. * @property {boolean} success - Response is successful or not * @property {boolean} created - Response is created or not - * @property {string[]} display_fields - List of all included options with their Details. + * @property {string[]} display_fields - List of all display related configs, i.e. logo */ /** * @typedef ErrorCodeDescription @@ -21,7 +21,8 @@ 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 - The secret key or token provided by the + * payment aggregator for the merchant. */ /** * @typedef PaymentGatewayConfigRequest @@ -162,7 +163,7 @@ export = PaymentPlatformModel; /** * @typedef PaymentOptionAndFlow * @property {RootPaymentMode[]} payment_option - Payment options - * @property {PaymentFlow} payment_flows + * @property {PaymentFlow} [payment_flows] * @property {PaymentDefaultSelection} [payment_default_selection] */ /** @@ -327,9 +328,9 @@ export = PaymentPlatformModel; */ /** * @typedef RefundAccountResponse - * @property {boolean} [is_verified_flag] - * @property {string} message - Response message - * @property {Object} [data] - Refund account data. + * @property {boolean} [is_verified_flag] - Account is verified or not + * @property {string} [message] - Response message + * @property {Object} data - Refund account data. * @property {boolean} success - Success or failure flag. */ /** @@ -340,15 +341,15 @@ export = PaymentPlatformModel; */ /** * @typedef BankDetailsForOTP - * @property {string} ifsc_code - * @property {string} account_no - * @property {string} branch_name - * @property {string} bank_name - * @property {string} account_holder + * @property {string} ifsc_code - IFSC code of account + * @property {string} account_no - Account number + * @property {string} branch_name - Branch name of account + * @property {string} bank_name - Bank name of account + * @property {string} account_holder - Accountg holder name of account */ /** * @typedef AddBeneficiaryDetailsOTPRequest - * @property {string} order_id + * @property {string} order_id - Order_id for which account will be added * @property {BankDetailsForOTP} details */ /** @@ -369,11 +370,11 @@ export = PaymentPlatformModel; * @property {string} display_name - Display Name Of Account * @property {string} [delights_user_name] - User Id Who filled the Beneficiary * @property {string} transfer_mode - Transfer Mode Of Account - * @property {string} email - EMail of User + * @property {string} email - Email of User * @property {boolean} is_active - Boolean Flag whether Beneficiary set or not * @property {string} [branch_name] - Branch Name Of Account * @property {string} address - Address of User - * @property {string} modified_on - MOdification Date of Beneficiary + * @property {string} modified_on - Modification Date of Beneficiary * @property {string} beneficiary_id - Benenficiary Id * @property {string} account_no - Account Number * @property {string} bank_name - Bank Name Of Account @@ -386,7 +387,7 @@ export = PaymentPlatformModel; */ /** * @typedef MultiTenderPaymentMeta - * @property {Object} [extra_meta] + * @property {Object} [extra_meta] - Key value pair for extra data related to payment mode * @property {string} [order_id] - Fynd Platform order ID * @property {string} [payment_id] - A unique identifier associated with a * specific payment transaction @@ -403,7 +404,7 @@ export = PaymentPlatformModel; * @property {string} [name] - Payment mode name * @property {MultiTenderPaymentMeta} [meta] * @property {number} amount - Payment amount - * @property {string} mode + * @property {string} mode - Payment mode short code */ /** * @typedef PaymentConfirmationRequest @@ -424,10 +425,31 @@ export = PaymentPlatformModel; * @property {number} limit - Total Limit of user * @property {number} usages - Used COD limit from the user Limit */ +/** + * @typedef CODLimitConfig + * @property {number} storefront - Limit for storefront + * @property {number} pos - Limit for pos + */ +/** + * @typedef CODPaymentLimitConfig + * @property {boolean} is_active - Boolean flag to show the status + * @property {number} usages - Used cod limit + * @property {number} user_id - User_id + * @property {string} merchant_user_id - Merchant_user_id + * @property {number} remaining_limit - Remaining COD limit + * @property {CODLimitConfig} limit + */ +/** + * @typedef GetUserBULimitResponse + * @property {string} business_unit - COD limit business unit + * @property {string} display_name - Display name for cod limit + * @property {CODPaymentLimitConfig} config + */ /** * @typedef GetUserCODLimitResponse - * @property {CODdata} user_cod_data + * @property {GetUserBULimitResponse[]} items * @property {boolean} success - Response is successful or not + * @property {string} [message] - Message for cod limit */ /** * @typedef SetCODForUserRequest @@ -719,7 +741,8 @@ export = PaymentPlatformModel; * @property {string} [payment_link_url] - Url of payment link * @property {string} [payment_link_current_status] - Status of payment link * @property {string} [external_order_id] - Merchant order id - * @property {number} [polling_timeout] - Polling request timeout + * @property {number} [polling_timeout] - Polling request timeout, perform + * polling till timeout elapsed or payment status is success/failure * @property {boolean} success - Successful or failure */ /** @@ -742,10 +765,11 @@ export = PaymentPlatformModel; */ /** * @typedef CreatePaymentLinkMeta - * @property {string} cart_id - * @property {string} checkout_mode - * @property {string} amount - * @property {string} [assign_card_id] + * @property {string} cart_id - Cart id for which payment link needs to be generated. + * @property {string} checkout_mode - Checkout mode for the payment link i.e. self + * @property {string} amount - Payment link amount to be paid by the customer + * @property {string} [assign_card_id] - Assigned card id against which payment + * to be done via payment link */ /** * @typedef CreatePaymentLinkRequest @@ -876,7 +900,8 @@ export = PaymentPlatformModel; * @property {AddressDetail} [shipping_address] - Shipping address * @property {number} amount_captured - Amount which is captured or credited to * merchant account - * @property {number} [amount_refunded] + * @property {number} [amount_refunded] - Amount refunded or credited back to + * customer accout * @property {string} [aggregator_customer_id] - Unique customer id generated by * payment gateway, not required for standard checkout. * @property {string} cancel_url - Cancel url sent by Fynd platform at the time @@ -898,12 +923,12 @@ export = PaymentPlatformModel; * @property {AddressDetail} [billing_address] - Billing address * @property {boolean} [captured] - Whether the payment is captured (credited to * merchant account) by payment gateway. - * @property {Object} [meta] - Metadata - * @property {string} status - Stautus of the payment + * @property {Object} [meta] - Extra meta data specific to extension + * @property {string} status - Status of the payment */ /** * @typedef PaymentSessionRequestSerializer - * @property {Object} [meta] - Meta + * @property {Object} [meta] - Extra meta data specific to extensions * @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. @@ -914,6 +939,7 @@ export = PaymentPlatformModel; * the schema `PaymentSessionDetail`. * @property {number} total_amount - Amount paid. * @property {string} checksum - Checksum to verify the payload + * @property {string} [source] - Source of payment update session */ /** * @typedef PaymentSessionResponseSerializer @@ -971,33 +997,34 @@ export = PaymentPlatformModel; */ /** * @typedef PaymentDetailsSerializer - * @property {Object[]} payment_methods - Method of payment + * @property {Object[]} payment_methods - List of payment methods * @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 {number} [amount_refunded] + * @property {number} [amount_refunded] - Already refunded amount for the given + * gid (global identifier for the order). * @property {string} currency - Currency of the payment. * @property {string} mode - Test or live, test mode uses test credentials so * that actual payment is not created. - * @property {string} [merchant_locale] - Merchant's locale - * @property {Object} [meta] - Metadata + * @property {string} [merchant_locale] - Merchant's locale (language) i.e. en + * @property {Object} [meta] - Extra meta data related to the payment methods * @property {string} [kind] - Optional kind of purchase/payment - one time * payment (sale) or subcription. defaults to sale. * @property {string} [success_url] - Success url sent by Fynd platform at the * time of payment creation - * @property {string} status - Stautus of the payment + * @property {string} status - Status of the payment * @property {boolean} [captured] - Whether the payment is captured (credited to * merchant account) by payment gateway. * @property {string} [payment_id] - Unique transaction id generated by payment gateway * @property {string} g_user_id - Global user identifier - unique user id * generated by Fynd platform - * @property {string} [locale] - User's locale + * @property {string} [locale] - User's locale (language), i.e. en * @property {string} [cancel_url] - Cancel url sent by Fynd platform at the - * time of payment creation + * time of payment creation, redirect on payment cancellation * @property {string} [created] - Timestamp in epoch * @property {number} amount_captured - Amount which is captured or credited to * merchant account - * @property {number} amount - Amount paid. + * @property {number} amount - Amount paid for the order. * @property {string} [aggregator_customer_id] - Unique customer id generated by * payment gateway, not required for standard checkout. * @property {string} [aggregator_order_id] - Unique order id or payment request @@ -1190,14 +1217,14 @@ export = PaymentPlatformModel; declare class PaymentPlatformModel { } declare namespace PaymentPlatformModel { - 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 }; + 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, CODLimitConfig, CODPaymentLimitConfig, GetUserBULimitResponse, 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; type PaymentGatewayConfigResponse = { /** - * - List of all speceific Payment options - * with their Details. + * - List of all config specific to the + * aggregator with their Details. */ aggregators?: any[]; /** @@ -1205,7 +1232,7 @@ type PaymentGatewayConfigResponse = { */ app_id: string; /** - * - List of all excluded options with their Details. + * - List of all excluded config with their Details. */ excluded_fields: string[]; /** @@ -1217,7 +1244,7 @@ type PaymentGatewayConfigResponse = { */ created: boolean; /** - * - List of all included options with their Details. + * - List of all display related configs, i.e. logo */ display_fields: string[]; }; @@ -1257,7 +1284,8 @@ type PaymentGatewayConfig = { */ key: string; /** - * - Merchant key of the payment aggregator + * - The secret key or token provided by the + * payment aggregator for the merchant. */ merchant_salt: string; }; @@ -1623,7 +1651,7 @@ type PaymentOptionAndFlow = { * - Payment options */ payment_option: RootPaymentMode[]; - payment_flows: PaymentFlow; + payment_flows?: PaymentFlow; payment_default_selection?: PaymentDefaultSelection; }; /** @returns {AdvanceObject} */ @@ -2044,15 +2072,18 @@ type SaveSubscriptionSetupIntentResponse = { /** @returns {RefundAccountResponse} */ declare function RefundAccountResponse(): RefundAccountResponse; type RefundAccountResponse = { + /** + * - Account is verified or not + */ is_verified_flag?: boolean; /** * - Response message */ - message: string; + message?: string; /** * - Refund account data. */ - data?: any; + data: any; /** * - Success or failure flag. */ @@ -2077,15 +2108,33 @@ type NotFoundResourceError = { /** @returns {BankDetailsForOTP} */ declare function BankDetailsForOTP(): BankDetailsForOTP; type BankDetailsForOTP = { + /** + * - IFSC code of account + */ ifsc_code: string; + /** + * - Account number + */ account_no: string; + /** + * - Branch name of account + */ branch_name: string; + /** + * - Bank name of account + */ bank_name: string; + /** + * - Accountg holder name of account + */ account_holder: string; }; /** @returns {AddBeneficiaryDetailsOTPRequest} */ declare function AddBeneficiaryDetailsOTPRequest(): AddBeneficiaryDetailsOTPRequest; type AddBeneficiaryDetailsOTPRequest = { + /** + * - Order_id for which account will be added + */ order_id: string; details: BankDetailsForOTP; }; @@ -2149,7 +2198,7 @@ type OrderBeneficiaryDetails = { */ transfer_mode: string; /** - * - EMail of User + * - Email of User */ email: string; /** @@ -2165,7 +2214,7 @@ type OrderBeneficiaryDetails = { */ address: string; /** - * - MOdification Date of Beneficiary + * - Modification Date of Beneficiary */ modified_on: string; /** @@ -2200,6 +2249,9 @@ type OrderBeneficiaryResponse = { /** @returns {MultiTenderPaymentMeta} */ declare function MultiTenderPaymentMeta(): MultiTenderPaymentMeta; type MultiTenderPaymentMeta = { + /** + * - Key value pair for extra data related to payment mode + */ extra_meta?: any; /** * - Fynd Platform order ID @@ -2239,6 +2291,9 @@ type MultiTenderPaymentMethod = { * - Payment amount */ amount: number; + /** + * - Payment mode short code + */ mode: string; }; /** @returns {PaymentConfirmationRequest} */ @@ -2290,14 +2345,68 @@ type CODdata = { */ usages: number; }; +/** @returns {CODLimitConfig} */ +declare function CODLimitConfig(): CODLimitConfig; +type CODLimitConfig = { + /** + * - Limit for storefront + */ + storefront: number; + /** + * - Limit for pos + */ + pos: number; +}; +/** @returns {CODPaymentLimitConfig} */ +declare function CODPaymentLimitConfig(): CODPaymentLimitConfig; +type CODPaymentLimitConfig = { + /** + * - Boolean flag to show the status + */ + is_active: boolean; + /** + * - Used cod limit + */ + usages: number; + /** + * - User_id + */ + user_id: number; + /** + * - Merchant_user_id + */ + merchant_user_id: string; + /** + * - Remaining COD limit + */ + remaining_limit: number; + limit: CODLimitConfig; +}; +/** @returns {GetUserBULimitResponse} */ +declare function GetUserBULimitResponse(): GetUserBULimitResponse; +type GetUserBULimitResponse = { + /** + * - COD limit business unit + */ + business_unit: string; + /** + * - Display name for cod limit + */ + display_name: string; + config: CODPaymentLimitConfig; +}; /** @returns {GetUserCODLimitResponse} */ declare function GetUserCODLimitResponse(): GetUserCODLimitResponse; type GetUserCODLimitResponse = { - user_cod_data: CODdata; + items: GetUserBULimitResponse[]; /** * - Response is successful or not */ success: boolean; + /** + * - Message for cod limit + */ + message?: string; }; /** @returns {SetCODForUserRequest} */ declare function SetCODForUserRequest(): SetCODForUserRequest; @@ -3072,7 +3181,8 @@ type GetPaymentLinkResponse = { */ external_order_id?: string; /** - * - Polling request timeout + * - Polling request timeout, perform + * polling till timeout elapsed or payment status is success/failure */ polling_timeout?: number; /** @@ -3136,9 +3246,22 @@ type ErrorResponse = { /** @returns {CreatePaymentLinkMeta} */ declare function CreatePaymentLinkMeta(): CreatePaymentLinkMeta; type CreatePaymentLinkMeta = { + /** + * - Cart id for which payment link needs to be generated. + */ cart_id: string; + /** + * - Checkout mode for the payment link i.e. self + */ checkout_mode: string; + /** + * - Payment link amount to be paid by the customer + */ amount: string; + /** + * - Assigned card id against which payment + * to be done via payment link + */ assign_card_id?: string; }; /** @returns {CreatePaymentLinkRequest} */ @@ -3504,6 +3627,10 @@ type PaymentSessionDetail = { * merchant account */ amount_captured: number; + /** + * - Amount refunded or credited back to + * customer accout + */ amount_refunded?: number; /** * - Unique customer id generated by @@ -3566,11 +3693,11 @@ type PaymentSessionDetail = { */ captured?: boolean; /** - * - Metadata + * - Extra meta data specific to extension */ meta?: any; /** - * - Stautus of the payment + * - Status of the payment */ status: string; }; @@ -3578,7 +3705,7 @@ type PaymentSessionDetail = { declare function PaymentSessionRequestSerializer(): PaymentSessionRequestSerializer; type PaymentSessionRequestSerializer = { /** - * - Meta + * - Extra meta data specific to extensions */ meta?: any; /** @@ -3612,6 +3739,10 @@ type PaymentSessionRequestSerializer = { * - Checksum to verify the payload */ checksum: string; + /** + * - Source of payment update session + */ + source?: string; }; /** @returns {PaymentSessionResponseSerializer} */ declare function PaymentSessionResponseSerializer(): PaymentSessionResponseSerializer; @@ -3771,7 +3902,7 @@ type RefundSessionResponseSerializer = { declare function PaymentDetailsSerializer(): PaymentDetailsSerializer; type PaymentDetailsSerializer = { /** - * - Method of payment + * - List of payment methods */ payment_methods: any[]; /** @@ -3780,6 +3911,10 @@ type PaymentDetailsSerializer = { * Fynd payments platform and is unique. */ gid: string; + /** + * - Already refunded amount for the given + * gid (global identifier for the order). + */ amount_refunded?: number; /** * - Currency of the payment. @@ -3791,11 +3926,11 @@ type PaymentDetailsSerializer = { */ mode: string; /** - * - Merchant's locale + * - Merchant's locale (language) i.e. en */ merchant_locale?: string; /** - * - Metadata + * - Extra meta data related to the payment methods */ meta?: any; /** @@ -3809,7 +3944,7 @@ type PaymentDetailsSerializer = { */ success_url?: string; /** - * - Stautus of the payment + * - Status of the payment */ status: string; /** @@ -3827,12 +3962,12 @@ type PaymentDetailsSerializer = { */ g_user_id: string; /** - * - User's locale + * - User's locale (language), i.e. en */ locale?: string; /** * - Cancel url sent by Fynd platform at the - * time of payment creation + * time of payment creation, redirect on payment cancellation */ cancel_url?: string; /** @@ -3845,7 +3980,7 @@ type PaymentDetailsSerializer = { */ amount_captured: number; /** - * - Amount paid. + * - Amount paid for the order. */ amount: number; /** diff --git a/sdk/platform/Payment/PaymentPlatformModel.js b/sdk/platform/Payment/PaymentPlatformModel.js index 13df67797..d9fa95498 100644 --- a/sdk/platform/Payment/PaymentPlatformModel.js +++ b/sdk/platform/Payment/PaymentPlatformModel.js @@ -2,13 +2,13 @@ const Joi = require("joi"); /** * @typedef PaymentGatewayConfigResponse - * @property {Object[]} [aggregators] - List of all speceific Payment options - * with their Details. + * @property {Object[]} [aggregators] - List of all config specific to the + * aggregator with their Details. * @property {string} app_id - Application Id to which Payment config Mapped - * @property {string[]} excluded_fields - List of all excluded options with their Details. + * @property {string[]} excluded_fields - List of all excluded config with their Details. * @property {boolean} success - Response is successful or not * @property {boolean} created - Response is created or not - * @property {string[]} display_fields - List of all included options with their Details. + * @property {string[]} display_fields - List of all display related configs, i.e. logo */ /** @@ -24,7 +24,8 @@ 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 - The secret key or token provided by the + * payment aggregator for the merchant. */ /** @@ -181,7 +182,7 @@ const Joi = require("joi"); /** * @typedef PaymentOptionAndFlow * @property {RootPaymentMode[]} payment_option - Payment options - * @property {PaymentFlow} payment_flows + * @property {PaymentFlow} [payment_flows] * @property {PaymentDefaultSelection} [payment_default_selection] */ @@ -368,9 +369,9 @@ const Joi = require("joi"); /** * @typedef RefundAccountResponse - * @property {boolean} [is_verified_flag] - * @property {string} message - Response message - * @property {Object} [data] - Refund account data. + * @property {boolean} [is_verified_flag] - Account is verified or not + * @property {string} [message] - Response message + * @property {Object} data - Refund account data. * @property {boolean} success - Success or failure flag. */ @@ -383,16 +384,16 @@ const Joi = require("joi"); /** * @typedef BankDetailsForOTP - * @property {string} ifsc_code - * @property {string} account_no - * @property {string} branch_name - * @property {string} bank_name - * @property {string} account_holder + * @property {string} ifsc_code - IFSC code of account + * @property {string} account_no - Account number + * @property {string} branch_name - Branch name of account + * @property {string} bank_name - Bank name of account + * @property {string} account_holder - Accountg holder name of account */ /** * @typedef AddBeneficiaryDetailsOTPRequest - * @property {string} order_id + * @property {string} order_id - Order_id for which account will be added * @property {BankDetailsForOTP} details */ @@ -415,11 +416,11 @@ const Joi = require("joi"); * @property {string} display_name - Display Name Of Account * @property {string} [delights_user_name] - User Id Who filled the Beneficiary * @property {string} transfer_mode - Transfer Mode Of Account - * @property {string} email - EMail of User + * @property {string} email - Email of User * @property {boolean} is_active - Boolean Flag whether Beneficiary set or not * @property {string} [branch_name] - Branch Name Of Account * @property {string} address - Address of User - * @property {string} modified_on - MOdification Date of Beneficiary + * @property {string} modified_on - Modification Date of Beneficiary * @property {string} beneficiary_id - Benenficiary Id * @property {string} account_no - Account Number * @property {string} bank_name - Bank Name Of Account @@ -434,7 +435,7 @@ const Joi = require("joi"); /** * @typedef MultiTenderPaymentMeta - * @property {Object} [extra_meta] + * @property {Object} [extra_meta] - Key value pair for extra data related to payment mode * @property {string} [order_id] - Fynd Platform order ID * @property {string} [payment_id] - A unique identifier associated with a * specific payment transaction @@ -452,7 +453,7 @@ const Joi = require("joi"); * @property {string} [name] - Payment mode name * @property {MultiTenderPaymentMeta} [meta] * @property {number} amount - Payment amount - * @property {string} mode + * @property {string} mode - Payment mode short code */ /** @@ -477,10 +478,34 @@ const Joi = require("joi"); * @property {number} usages - Used COD limit from the user Limit */ +/** + * @typedef CODLimitConfig + * @property {number} storefront - Limit for storefront + * @property {number} pos - Limit for pos + */ + +/** + * @typedef CODPaymentLimitConfig + * @property {boolean} is_active - Boolean flag to show the status + * @property {number} usages - Used cod limit + * @property {number} user_id - User_id + * @property {string} merchant_user_id - Merchant_user_id + * @property {number} remaining_limit - Remaining COD limit + * @property {CODLimitConfig} limit + */ + +/** + * @typedef GetUserBULimitResponse + * @property {string} business_unit - COD limit business unit + * @property {string} display_name - Display name for cod limit + * @property {CODPaymentLimitConfig} config + */ + /** * @typedef GetUserCODLimitResponse - * @property {CODdata} user_cod_data + * @property {GetUserBULimitResponse[]} items * @property {boolean} success - Response is successful or not + * @property {string} [message] - Message for cod limit */ /** @@ -807,7 +832,8 @@ const Joi = require("joi"); * @property {string} [payment_link_url] - Url of payment link * @property {string} [payment_link_current_status] - Status of payment link * @property {string} [external_order_id] - Merchant order id - * @property {number} [polling_timeout] - Polling request timeout + * @property {number} [polling_timeout] - Polling request timeout, perform + * polling till timeout elapsed or payment status is success/failure * @property {boolean} success - Successful or failure */ @@ -833,10 +859,11 @@ const Joi = require("joi"); /** * @typedef CreatePaymentLinkMeta - * @property {string} cart_id - * @property {string} checkout_mode - * @property {string} amount - * @property {string} [assign_card_id] + * @property {string} cart_id - Cart id for which payment link needs to be generated. + * @property {string} checkout_mode - Checkout mode for the payment link i.e. self + * @property {string} amount - Payment link amount to be paid by the customer + * @property {string} [assign_card_id] - Assigned card id against which payment + * to be done via payment link */ /** @@ -982,7 +1009,8 @@ const Joi = require("joi"); * @property {AddressDetail} [shipping_address] - Shipping address * @property {number} amount_captured - Amount which is captured or credited to * merchant account - * @property {number} [amount_refunded] + * @property {number} [amount_refunded] - Amount refunded or credited back to + * customer accout * @property {string} [aggregator_customer_id] - Unique customer id generated by * payment gateway, not required for standard checkout. * @property {string} cancel_url - Cancel url sent by Fynd platform at the time @@ -1004,13 +1032,13 @@ const Joi = require("joi"); * @property {AddressDetail} [billing_address] - Billing address * @property {boolean} [captured] - Whether the payment is captured (credited to * merchant account) by payment gateway. - * @property {Object} [meta] - Metadata - * @property {string} status - Stautus of the payment + * @property {Object} [meta] - Extra meta data specific to extension + * @property {string} status - Status of the payment */ /** * @typedef PaymentSessionRequestSerializer - * @property {Object} [meta] - Meta + * @property {Object} [meta] - Extra meta data specific to extensions * @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. @@ -1021,6 +1049,7 @@ const Joi = require("joi"); * the schema `PaymentSessionDetail`. * @property {number} total_amount - Amount paid. * @property {string} checksum - Checksum to verify the payload + * @property {string} [source] - Source of payment update session */ /** @@ -1083,33 +1112,34 @@ const Joi = require("joi"); /** * @typedef PaymentDetailsSerializer - * @property {Object[]} payment_methods - Method of payment + * @property {Object[]} payment_methods - List of payment methods * @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 {number} [amount_refunded] + * @property {number} [amount_refunded] - Already refunded amount for the given + * gid (global identifier for the order). * @property {string} currency - Currency of the payment. * @property {string} mode - Test or live, test mode uses test credentials so * that actual payment is not created. - * @property {string} [merchant_locale] - Merchant's locale - * @property {Object} [meta] - Metadata + * @property {string} [merchant_locale] - Merchant's locale (language) i.e. en + * @property {Object} [meta] - Extra meta data related to the payment methods * @property {string} [kind] - Optional kind of purchase/payment - one time * payment (sale) or subcription. defaults to sale. * @property {string} [success_url] - Success url sent by Fynd platform at the * time of payment creation - * @property {string} status - Stautus of the payment + * @property {string} status - Status of the payment * @property {boolean} [captured] - Whether the payment is captured (credited to * merchant account) by payment gateway. * @property {string} [payment_id] - Unique transaction id generated by payment gateway * @property {string} g_user_id - Global user identifier - unique user id * generated by Fynd platform - * @property {string} [locale] - User's locale + * @property {string} [locale] - User's locale (language), i.e. en * @property {string} [cancel_url] - Cancel url sent by Fynd platform at the - * time of payment creation + * time of payment creation, redirect on payment cancellation * @property {string} [created] - Timestamp in epoch * @property {number} amount_captured - Amount which is captured or credited to * merchant account - * @property {number} amount - Amount paid. + * @property {number} amount - Amount paid for the order. * @property {string} [aggregator_customer_id] - Unique customer id generated by * payment gateway, not required for standard checkout. * @property {string} [aggregator_order_id] - Unique order id or payment request @@ -1551,7 +1581,7 @@ class PaymentPlatformModel { payment_option: Joi.array() .items(PaymentPlatformModel.RootPaymentMode()) .required(), - payment_flows: PaymentPlatformModel.PaymentFlow().required(), + payment_flows: PaymentPlatformModel.PaymentFlow(), payment_default_selection: PaymentPlatformModel.PaymentDefaultSelection(), }); } @@ -1790,8 +1820,8 @@ class PaymentPlatformModel { static RefundAccountResponse() { return Joi.object({ is_verified_flag: Joi.boolean(), - message: Joi.string().allow("").required(), - data: Joi.any(), + message: Joi.string().allow(""), + data: Joi.any().required(), success: Joi.boolean().required(), }); } @@ -1920,11 +1950,43 @@ class PaymentPlatformModel { }); } + /** @returns {CODLimitConfig} */ + static CODLimitConfig() { + return Joi.object({ + storefront: Joi.number().required(), + pos: Joi.number().required(), + }); + } + + /** @returns {CODPaymentLimitConfig} */ + static CODPaymentLimitConfig() { + return Joi.object({ + is_active: Joi.boolean().required(), + usages: Joi.number().required(), + user_id: Joi.number().required(), + merchant_user_id: Joi.string().allow("").required(), + remaining_limit: Joi.number().required(), + limit: PaymentPlatformModel.CODLimitConfig().required(), + }); + } + + /** @returns {GetUserBULimitResponse} */ + static GetUserBULimitResponse() { + return Joi.object({ + business_unit: Joi.string().allow("").required(), + display_name: Joi.string().allow("").required(), + config: PaymentPlatformModel.CODPaymentLimitConfig().required(), + }); + } + /** @returns {GetUserCODLimitResponse} */ static GetUserCODLimitResponse() { return Joi.object({ - user_cod_data: PaymentPlatformModel.CODdata().required(), + items: Joi.array() + .items(PaymentPlatformModel.GetUserBULimitResponse()) + .required(), success: Joi.boolean().required(), + message: Joi.string().allow(""), }); } @@ -2556,6 +2618,7 @@ class PaymentPlatformModel { .required(), total_amount: Joi.number().required(), checksum: Joi.string().allow("").required(), + source: Joi.string().allow(""), }); } diff --git a/sdk/platform/Payment/PaymentPlatformValidator.d.ts b/sdk/platform/Payment/PaymentPlatformValidator.d.ts index e3f345e1b..f984661f7 100644 --- a/sdk/platform/Payment/PaymentPlatformValidator.d.ts +++ b/sdk/platform/Payment/PaymentPlatformValidator.d.ts @@ -37,7 +37,7 @@ export = PaymentPlatformValidator; */ /** * @typedef VerifyIfscCodeParam - * @property {string} [ifscCode] + * @property {string} ifscCode */ declare class PaymentPlatformValidator { /** @returns {ActivateAndDectivatePayoutParam} */ @@ -107,7 +107,7 @@ type UpdatePayoutParam = { body: PaymentPlatformModel.PayoutRequest; }; type VerifyIfscCodeParam = { - ifscCode?: string; + ifscCode: string; }; type GetSubscriptionConfigParam = any; import PaymentPlatformModel = require("./PaymentPlatformModel"); diff --git a/sdk/platform/Payment/PaymentPlatformValidator.js b/sdk/platform/Payment/PaymentPlatformValidator.js index 05362f98c..fcadf75e5 100644 --- a/sdk/platform/Payment/PaymentPlatformValidator.js +++ b/sdk/platform/Payment/PaymentPlatformValidator.js @@ -49,7 +49,7 @@ const PaymentPlatformModel = require("./PaymentPlatformModel"); /** * @typedef VerifyIfscCodeParam - * @property {string} [ifscCode] + * @property {string} ifscCode */ class PaymentPlatformValidator { @@ -120,7 +120,7 @@ class PaymentPlatformValidator { /** @returns {VerifyIfscCodeParam} */ static verifyIfscCode() { return Joi.object({ - ifscCode: Joi.string().allow(""), + ifscCode: Joi.string().allow("").required(), }).required(); } }