
#define MANTIS_SERVER_VERSION				30

// each error code should have a corresonding error message

													// ** WHICH API CALLS USE WHICH ERRORS
#define API_ERROR_UNSUPPORTED				100		// Only unsupported calls
#define API_ERROR_UNKNOWN					101		// createImageSignature, deleteImageSignature, getConfiguration, getInventorySummary, matchImage, uploadImage
#define API_ERROR_EXCEPTION					102		// createImageSignature, deleteImageSignature, getConfiguration, getInventorySummary, matchImage, uploadImage
#define API_ERROR_IMAGE_DOWNLOAD			103		// createImageSignature
#define API_ERROR_IMAGE_UP_MISSING			104		// matchImage
#define API_ERROR_CATEGORY_FOLDER			105		// createImageSignature
#define API_ERROR_FILE_DELETE				106		// deleteImageSignature
#define API_ERROR_INVENTORY_NOT_LOADED		107		// matchImage

#define API_ERROR_PARAM_ITEMID				110		// createImageSignature, deleteImageSignature
#define API_ERROR_PARAM_CATID				111		// createImageSignature
#define API_ERROR_PARAM_IMGPATH				112		// matchImage
#define API_ERROR_PARAM_SITEID				113		// createImageSignature, deleteImageSignature, matchImage, uploadImage

#define API_ERROR_UNSUPPORTED_SITEID		114		// createImageSignature, deleteImageSignature, matchImage, uploadImage


#define API_ERROR_HASH_CREATE				120		// createImageSignature
#define API_ERROR_CVLIBRARY					121		// createImageSignature, deleteImageSignature, matchImage, uploadImage
#define API_ERROR_ERL						122		// createImageSignature, matchImage, uploadImage
#define API_ERROR_IMAGE_UPLOAD			    123		// uploadImage

#define API_ERROR_SEARCH_NOT_SUPPORTED      141
#define API_ERROR_WRITE_NOT_SUPPORTED      142

#define API_MESSAGE_UNSUPPORTED				"Unsupported request."
#define API_MESSAGE_UNKNOWN					"Internal server error."
#define API_MESSAGE_INVENTORY_NOT_LOADED	"Server error: Inventory not yet loaded"
#define API_MESSAGE_EXCEPTION				"Internal server exception."
#define API_MESSAGE_IMAGE_DOWNLOAD			"Failed to download image."						// the URL of the image may be found in <errorInfo> tag
#define API_MESSAGE_IMAGE_UP_MISSING		"Failed to find uploaded file for match."		// the path of the file may be found in <errorInfo> tag
#define API_MESSAGE_CATEGORY_FOLDER			"Failed to create category sub directory."		// for createSignatureFile API only, path may be found in <errorInfo> tag
#define API_MESSAGE_FILE_DELETE				"Failed to delete signature file(s)."			// for deleteImageSignature API only

#define API_MESSAGE_PARAM_ITEMID			"Parameter itemID is mandatory and was not provided."
#define API_MESSAGE_PARAM_CATID				"Parameter catID is mandatory and was not provided."
#define API_MESSAGE_PARAM_IMGPATH			"Parameter imgPath is mandatory and was not provided."
#define API_MESSAGE_PARAM_SITEID			"Parameter siteID is mandatory and was not provided."

#define API_MESSAGE_UNSUPPORTED_SITEID		 "This siteID is not supported"
#define API_MESSAGE_SEARCH_NOT_SUPPORTED     "This server does not support search functionality - only add and delete."
#define API_MESSAGE_WRITE_NOT_SUPPORTED      "This server does not support create/delete functionality."

#define API_MESSAGE_HASH_CREATE				"Failed to create hash for image file."					// the path of the image may be found in <errorInfo> tag
#define API_MESSAGE_CVLIBRARY				"Failed to handle feature match or extraction (eRLCV)."	// a CV library exception was thrown, additional info may be found in <errorInfo> tag
#define API_MESSAGE_ERL						"Failed to handle feature match or extraction (eRL)."	// an eRL exception was thrown, additional info may be found in <errorInfo> tag
#define API_MESSAGE_IMAGE_UPLOAD			"Failed to upload image."						//  inline multipart image can't b efound



#define API_PARAM_CROP						"crop"
#define API_PARAM_CROPRECT      			"cropRect"
#define API_PARAM_WTCOLOR					"wtColor"
#define API_PARAM_CONTEXT					"context"
#define API_PARAM_PARTID					"partID"
#define API_PARAM_PAGE_SIZE					"pageSize"
#define API_PARAM_PAGE_NUMBER				"pageNumber"
#define API_PARAM_START_ENTRY				"startEntry"
#define API_PARAM_UNSORTED				    "unsorted"

#define API_PARAM_COMPLIMENTARY_MATCH       "compMatch"
#define API_PARAM_MAX_RESULTS               "maxResults"
#define API_PARAM_BUYING_FORMAT			    "format"
#define API_PARAM_ITEM_SIZE					"size"
#define API_PARAM_ITEM_SIZE_TYPE			"sizeType"
#define API_PARAM_ITEM_PRICE			    "price"

#define API_PARAM_ITEM_PRICE_MIN		    "priceMin"
#define API_PARAM_ITEM_PRICE_MAX			"priceMax"

#define API_PARAM_ITEM_BRAND				"brand"
#define API_PARAM_ITEM_CONDITION			"condition"

#define PAGE_SIZE_DEFAULT_SINGLE_CAT		25
#define PAGE_SIZE_DEFAULT_MULTI_CAT			5

#define CAL_CONFIG_FILENAME					"CALConfig.txt"


#define MANTIS_SITEID_US 0
#define MANTIS_SITEID_GB 3
#define MANTIS_SITEID_AU 15
#define MANTIS_SITEID_DE 77
#define MANTIS_SITEID_UNSUPPORTED -1

#define MANTIS_SITEID_STR_US "EBAY-US"
#define MANTIS_SITEID_STR_GB "EBAY-GB"
#define MANTIS_SITEID_STR_AU "EBAY-AU"
#define MANTIS_SITEID_STR_DE "EBAY-DE"

#define MANTIS_SITEID_STR_GB_LC "ebay-gb"
#define MANTIS_SITEID_STR_US_LC "ebay-us"


#define MANTIS_SITEID_NUMSTR_US "0"
#define MANTIS_SITEID_NUMSTR_GB "3"
#define MANTIS_SITEID_NUMSTR_AU "15"
#define MANTIS_SITEID_NUMSTR_DE "77"
