{"openapi":"3.1.0","info":{"title":"Adsearchengine","description":"Adsearchengine API documentation","version":"0.1.0"},"paths":{"/api/v1/products/competitors/mappings":{"get":{"summary":"Get Mappings","operationId":"get_mappings_api_v1_products_competitors_mappings_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"competitor_type","in":"query","required":false,"schema":{"$ref":"#/components/schemas/CompetitorType","default":"ARCHITECTURAL_DESIGNS"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_ProductCompetitorMappingFullResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Create Mapping","operationId":"create_mapping_api_v1_products_competitors_mappings_put","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductCompetitorMappingCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Mapping","operationId":"delete_mapping_api_v1_products_competitors_mappings_delete","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductCompetitorMappingDeleteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/products/competitors":{"get":{"summary":"Get Competitors","operationId":"get_competitors_api_v1_products_competitors_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"filter","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/CompetitorSearchType"},{"type":"null"}],"title":"Filter"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"show_hidden","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Show Hidden"}},{"name":"competitor_type","in":"query","required":false,"schema":{"$ref":"#/components/schemas/CompetitorType","default":"ARCHITECTURAL_DESIGNS"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_ProductCompetitorResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/products/competitors/{product_id}/hide":{"post":{"summary":"Hide Competitor Product","operationId":"hide_competitor_product_api_v1_products_competitors__product_id__hide_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"integer","title":"Product Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductCompetitorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/products/shopify":{"get":{"summary":"Get Products","operationId":"get_products_api_v1_products_shopify_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"published_after","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published After"}},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ShopifyOrderByField"},{"type":"null"}],"title":"Order By"}},{"name":"order_dir","in":"query","required":false,"schema":{"$ref":"#/components/schemas/OrderDirection","default":"desc"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_ProductShopifyResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/products/shopify/bonus":{"put":{"summary":"Set Bonus Points","operationId":"set_bonus_points_api_v1_products_shopify_bonus_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BonusPointsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/products/summary":{"get":{"summary":"Get Summary","operationId":"get_summary_api_v1_products_summary_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_ProductWithPointsResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/products/mixpanel":{"get":{"summary":"Get Mixpanel Products","operationId":"get_mixpanel_products_api_v1_products_mixpanel_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/MixpanelOrderByField"},{"type":"null"}],"title":"Order By"}},{"name":"order_dir","in":"query","required":false,"schema":{"$ref":"#/components/schemas/OrderDirection","default":"desc"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_ProductMixpanelResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/products/reviews":{"get":{"summary":"Get Product Reviews","operationId":"get_product_reviews_api_v1_products_reviews_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ReviewOrderByField"},{"type":"null"}],"title":"Order By"}},{"name":"order_dir","in":"query","required":false,"schema":{"$ref":"#/components/schemas/ReviewOrderDirection","default":"desc"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_ProductReviewResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/execution_logs":{"get":{"tags":["execution_logs"],"summary":"Get Execution Logs","operationId":"get_execution_logs_api_v1_execution_logs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"execution_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ExecutionLogType"},{"type":"null"}],"title":"Execution Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ExecutionLogResponse"},"title":"Response Get Execution Logs Api V1 Execution Logs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/settings":{"get":{"tags":["Settings"],"summary":"Get Settings","operationId":"get_settings_api_v1_settings_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppSettingsResponse"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["Settings"],"summary":"Update Settings","operationId":"update_settings_api_v1_settings_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppSettings"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppSettingsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}}},"components":{"schemas":{"AppSettings":{"properties":{"competitor_initial_points":{"type":"integer","title":"Competitor Initial Points","description":"Points awarded for first place in the competitor ranking","default":0},"competitor_penalty_points":{"type":"integer","title":"Competitor Penalty Points","description":"Points to subtract for each subsequent place in the competitor ranking","default":0},"new_plan_initial_points":{"type":"integer","title":"New Plan Initial Points","description":"Points awarded for first place in the new plan ranking","default":0},"new_plan_penalty_points":{"type":"integer","title":"New Plan Penalty Points","description":"Points to subtract for each subsequent place in the new plan ranking","default":0},"add_to_cart_initial_points":{"type":"integer","title":"Add To Cart Initial Points","description":"Points awarded for first place in the add-to-cart ranking","default":0},"add_to_cart_penalty_points":{"type":"integer","title":"Add To Cart Penalty Points","description":"Points to subtract for each subsequent place in the add-to-cart ranking","default":0},"avg_time_initial_points":{"type":"integer","title":"Avg Time Initial Points","description":"Points awarded for first place in the average time ranking","default":0},"avg_time_penalty_points":{"type":"integer","title":"Avg Time Penalty Points","description":"Points to subtract for each subsequent place in the average time ranking","default":0},"costtobuild_initial_points":{"type":"integer","title":"Costtobuild Initial Points","description":"Points awarded for first place in the cost-to-build ranking","default":0},"costtobuild_penalty_points":{"type":"integer","title":"Costtobuild Penalty Points","description":"Points to subtract for each subsequent place in the cost-to-build ranking","default":0},"views_initial_points":{"type":"integer","title":"Views Initial Points","description":"Points awarded for first place in the views ranking","default":0},"views_penalty_points":{"type":"integer","title":"Views Penalty Points","description":"Points to subtract for each subsequent place in the views ranking","default":0},"wishlist_initial_points":{"type":"integer","title":"Wishlist Initial Points","description":"Points awarded for first place in the wishlist ranking","default":0},"wishlist_penalty_points":{"type":"integer","title":"Wishlist Penalty Points","description":"Points to subtract for each subsequent place in the wishlist ranking","default":0},"sold_quantity_initial_points":{"type":"integer","title":"Sold Quantity Initial Points","description":"Points awarded for first place in the sold quantity ranking","default":0},"sold_quantity_penalty_points":{"type":"integer","title":"Sold Quantity Penalty Points","description":"Points to subtract for each subsequent place in the sold quantity ranking","default":0},"modreq_initial_points":{"type":"integer","title":"Modreq Initial Points","description":"Points awarded for first place in the modification requests ranking","default":0},"modreq_penalty_points":{"type":"integer","title":"Modreq Penalty Points","description":"Points to subtract for each subsequent place in the modification requests ranking","default":0},"thumbnail_score_initial_points":{"type":"integer","title":"Thumbnail Score Initial Points","description":"Points awarded for first place in the thumbnail score ranking","default":0},"thumbnail_score_penalty_points":{"type":"integer","title":"Thumbnail Score Penalty Points","description":"Points to subtract for each subsequent place in the thumbnail score ranking","default":0},"floor_plan_score_initial_points":{"type":"integer","title":"Floor Plan Score Initial Points","description":"Points awarded for first place in the floor plan score ranking","default":0},"floor_plan_score_penalty_points":{"type":"integer","title":"Floor Plan Score Penalty Points","description":"Points to subtract for each subsequent place in the floor plan score ranking","default":0},"sale_score_initial_points":{"type":"integer","title":"Sale Score Initial Points","description":"Points awarded for first place in the sale score ranking","default":0},"sale_score_penalty_points":{"type":"integer","title":"Sale Score Penalty Points","description":"Points to subtract for each subsequent place in the sale score ranking","default":0},"tags_bonus_points":{"additionalProperties":{"type":"integer"},"type":"object","title":"Tags Bonus Points","default":{"Plan with Video":2000,"Plan with Photo":2500}}},"type":"object","title":"AppSettings"},"AppSettingsResponse":{"properties":{"data":{"$ref":"#/components/schemas/AppSettings"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["data","updated_at"],"title":"AppSettingsResponse"},"BonusPointsRequest":{"properties":{"product_handle":{"type":"string","title":"Product Handle"},"bonus_points":{"type":"integer","title":"Bonus Points"}},"type":"object","required":["product_handle","bonus_points"],"title":"BonusPointsRequest"},"CompetitorSearchType":{"type":"string","enum":["with_mapping","without_mapping"],"title":"CompetitorSearchType"},"CompetitorType":{"type":"string","enum":["ARCHITECTURAL_DESIGNS"],"title":"CompetitorType"},"ExecutionLogResponse":{"properties":{"status":{"$ref":"#/components/schemas/ExecutionLogStatus"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"execution_type":{"$ref":"#/components/schemas/ExecutionLogType"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"id":{"type":"integer","title":"Id"}},"type":"object","required":["status","reason","execution_type","created_at","updated_at","id"],"title":"ExecutionLogResponse"},"ExecutionLogStatus":{"type":"string","enum":["FINISHED","FAILED","IN_PROGRESS"],"title":"ExecutionLogStatus"},"ExecutionLogType":{"type":"string","enum":["SYNC_COMPETITOR","SYNC_SHOPIFY","BACKSYNC_SHOPIFY","SYNC_MIXPANEL","SYNC_REVIEWS"],"title":"ExecutionLogType"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"MixpanelOrderByField":{"type":"string","enum":["avg_duration","n_wishlist","n_cost_to_build","n_visits","n_add_to_checkout","n_modreq"],"title":"MixpanelOrderByField"},"OrderDirection":{"type":"string","enum":["asc","desc"],"title":"OrderDirection"},"Page_ProductCompetitorMappingFullResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ProductCompetitorMappingFullResponse"},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Total"},"page":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Page"},"size":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Size"},"pages":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Pages"}},"type":"object","required":["items","page","size"],"title":"Page[ProductCompetitorMappingFullResponse]"},"Page_ProductCompetitorResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ProductCompetitorResponse"},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Total"},"page":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Page"},"size":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Size"},"pages":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Pages"}},"type":"object","required":["items","page","size"],"title":"Page[ProductCompetitorResponse]"},"Page_ProductMixpanelResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ProductMixpanelResponse"},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Total"},"page":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Page"},"size":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Size"},"pages":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Pages"}},"type":"object","required":["items","page","size"],"title":"Page[ProductMixpanelResponse]"},"Page_ProductReviewResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ProductReviewResponse"},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Total"},"page":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Page"},"size":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Size"},"pages":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Pages"}},"type":"object","required":["items","page","size"],"title":"Page[ProductReviewResponse]"},"Page_ProductShopifyResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ProductShopifyResponse"},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Total"},"page":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Page"},"size":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Size"},"pages":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Pages"}},"type":"object","required":["items","page","size"],"title":"Page[ProductShopifyResponse]"},"Page_ProductWithPointsResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ProductWithPointsResponse"},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Total"},"page":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Page"},"size":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Size"},"pages":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Pages"}},"type":"object","required":["items","page","size"],"title":"Page[ProductWithPointsResponse]"},"ProductCompetitorMappingCreateRequest":{"properties":{"competitor_type":{"$ref":"#/components/schemas/CompetitorType","default":"ARCHITECTURAL_DESIGNS"},"competitor_identifier":{"type":"string","title":"Competitor Identifier"},"shopify_identifier":{"type":"string","title":"Shopify Identifier"}},"type":"object","required":["competitor_identifier","shopify_identifier"],"title":"ProductCompetitorMappingCreateRequest"},"ProductCompetitorMappingDeleteRequest":{"properties":{"competitor_type":{"$ref":"#/components/schemas/CompetitorType","default":"ARCHITECTURAL_DESIGNS"},"competitor_identifier":{"type":"string","title":"Competitor Identifier"},"shopify_identifier":{"type":"string","title":"Shopify Identifier"}},"type":"object","required":["competitor_identifier","shopify_identifier"],"title":"ProductCompetitorMappingDeleteRequest"},"ProductCompetitorMappingFullResponse":{"properties":{"competitor_type":{"$ref":"#/components/schemas/CompetitorType","default":"ARCHITECTURAL_DESIGNS"},"competitor_identifier":{"type":"string","title":"Competitor Identifier"},"shopify_identifier":{"type":"string","title":"Shopify Identifier"},"product_shopify":{"anyOf":[{"$ref":"#/components/schemas/ProductShopifyResponse"},{"type":"null"}]},"product_competitor":{"anyOf":[{"$ref":"#/components/schemas/ProductCompetitorResponse"},{"type":"null"}]}},"type":"object","required":["competitor_identifier","shopify_identifier","product_shopify","product_competitor"],"title":"ProductCompetitorMappingFullResponse"},"ProductCompetitorMappingWithADResponse":{"properties":{"competitor_identifier":{"type":"string","title":"Competitor Identifier"},"shopify_identifier":{"type":"string","title":"Shopify Identifier"},"product_shopify":{"anyOf":[{"$ref":"#/components/schemas/ProductShopifyResponse"},{"type":"null"}]}},"type":"object","required":["competitor_identifier","shopify_identifier","product_shopify"],"title":"ProductCompetitorMappingWithADResponse"},"ProductCompetitorResponse":{"properties":{"competitor_identifier":{"type":"string","title":"Competitor Identifier"},"ranking_position":{"type":"integer","title":"Ranking Position"},"name":{"type":"string","title":"Name"},"link":{"type":"string","title":"Link"},"image":{"type":"string","title":"Image"},"hidden":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Hidden"},"id":{"type":"integer","title":"Id"},"mapping":{"anyOf":[{"$ref":"#/components/schemas/ProductCompetitorMappingWithADResponse"},{"type":"null"}]}},"type":"object","required":["competitor_identifier","ranking_position","name","link","image","id","mapping"],"title":"ProductCompetitorResponse"},"ProductMixpanelResponse":{"properties":{"product_handle":{"type":"string","title":"Product Handle"},"avg_duration":{"type":"number","title":"Avg Duration"},"n_wishlist":{"type":"integer","title":"N Wishlist"},"n_cost_to_build":{"type":"integer","title":"N Cost To Build"},"n_visits":{"type":"integer","title":"N Visits"},"n_modreq":{"type":"integer","title":"N Modreq"},"n_add_to_checkout":{"type":"integer","title":"N Add To Checkout"}},"type":"object","required":["product_handle","avg_duration","n_wishlist","n_cost_to_build","n_visits","n_modreq","n_add_to_checkout"],"title":"ProductMixpanelResponse"},"ProductPointsBreakdown":{"properties":{"wishlist":{"type":"integer","title":"Wishlist","description":"Points from wishlist ranking","default":0},"wishlist_detail":{"type":"integer","title":"Wishlist Detail","description":"Exact wishlist value (mixpanel_product.n_wishlist)","default":0},"views":{"type":"integer","title":"Views","description":"Points from views ranking","default":0},"views_detail":{"type":"integer","title":"Views Detail","description":"Exact views value (mixpanel_product.n_visits)","default":0},"modreq":{"type":"integer","title":"Modreq","description":"Points from modification requests ranking","default":0},"modreq_detail":{"type":"integer","title":"Modreq Detail","description":"Exact modification requests value (mixpanel_product.n_modreq)","default":0},"cost_to_build":{"type":"integer","title":"Cost To Build","description":"Points from cost-to-build ranking","default":0},"cost_to_build_detail":{"type":"integer","title":"Cost To Build Detail","description":"Exact cost-to-build value (mixpanel_product.n_cost_to_build)","default":0},"add_to_cart":{"type":"integer","title":"Add To Cart","description":"Points from add-to-cart ranking","default":0},"add_to_cart_detail":{"type":"integer","title":"Add To Cart Detail","description":"Exact add-to-cart value (mixpanel_product.n_add_to_checkout)","default":0},"avg_time":{"type":"integer","title":"Avg Time","description":"Points from average time ranking","default":0},"avg_time_detail":{"type":"number","title":"Avg Time Detail","description":"Exact avg time value (mixpanel_product.avg_duration)","default":0},"new_plan":{"type":"integer","title":"New Plan","description":"Points from new plan ranking","default":0},"new_plan_detail":{"type":"string","title":"New Plan Detail","description":"Exact published_at value (shopify_product.published_at)","default":""},"competitor":{"type":"integer","title":"Competitor","description":"Points from competitor ranking","default":0},"competitor_detail":{"type":"integer","title":"Competitor Detail","description":"Exact competitor ranking position (shopify_product.mappings[0].product_competitor.ranking_position)","default":0},"bonus":{"type":"integer","title":"Bonus","description":"Points from bonus","default":0},"bonus_detail":{"type":"integer","title":"Bonus Detail","description":"Exact bonus value (shopify_product.bonus_points)","default":0},"sold_quantity":{"type":"integer","title":"Sold Quantity","description":"Sold Quantity Points","default":0},"sold_quantity_detail":{"type":"integer","title":"Sold Quantity Detail","description":"Number of sales","default":0},"tag":{"type":"integer","title":"Tag","description":"Points from tags","default":0},"tag_detail":{"type":"string","title":"Tag Detail","description":"Tag details","default":""},"thumbnail_score":{"type":"integer","title":"Thumbnail Score","description":"Points from thumbnail score ranking","default":0},"thumbnail_score_detail":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Thumbnail Score Detail","description":"Raw thumbnail score (0-100)"},"floor_plan_score":{"type":"integer","title":"Floor Plan Score","description":"Points from floor plan score ranking","default":0},"floor_plan_score_detail":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Floor Plan Score Detail","description":"Raw floor plan score (0-100)"},"sale_score":{"type":"integer","title":"Sale Score","description":"Points from sale score ranking","default":0},"sale_score_detail":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sale Score Detail","description":"Raw sale score (0-100)"}},"type":"object","title":"ProductPointsBreakdown"},"ProductReviewResponse":{"properties":{"product_handle":{"type":"string","title":"Product Handle"},"thumbnail_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Thumbnail Score"},"thumbnail_classification":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Classification"},"thumbnail_tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Tier"},"thumbnail_penalties_applied":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Penalties Applied"},"thumbnail_details":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Details"},"floor_plan_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Floor Plan Score"},"floor_plan_details":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Floor Plan Details"},"sale_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sale Score"},"sale_score_reasoning":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sale Score Reasoning"},"confidence":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Confidence"}},"type":"object","required":["product_handle"],"title":"ProductReviewResponse"},"ProductShopifyResponse":{"properties":{"identifier":{"type":"string","title":"Identifier"},"product_handle":{"type":"string","title":"Product Handle"},"image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image"},"name":{"type":"string","title":"Name"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"synced_points":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Synced Points"},"bonus_points":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Bonus Points"},"ad_plan_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ad Plan Id"},"sold_quantity":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sold Quantity"},"is_gs_sales":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Gs Sales","default":false},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags"}},"type":"object","required":["identifier","product_handle","image","name","published_at"],"title":"ProductShopifyResponse"},"ProductWithPointsResponse":{"properties":{"product":{"$ref":"#/components/schemas/ProductShopifyResponse"},"total_points":{"type":"integer","title":"Total Points","description":"Sum of all calculated points"},"points":{"$ref":"#/components/schemas/ProductPointsBreakdown"}},"type":"object","required":["product","total_points","points"],"title":"ProductWithPointsResponse"},"ReviewOrderByField":{"type":"string","enum":["thumbnail_score","floor_plan_score","sale_score"],"title":"ReviewOrderByField"},"ReviewOrderDirection":{"type":"string","enum":["asc","desc"],"title":"ReviewOrderDirection"},"ShopifyOrderByField":{"type":"string","enum":["sold_quantity"],"title":"ShopifyOrderByField"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}