Possible bug in SiemplifyDataModel and SOAR API for closed cases?

Hi All,

I just got started with SOAR about a month ago and while fetching information about closed cases via "Siemplify.get_cases_by_filter" method, I observed the following:

siemplify.get_cases_by_filter(statuses=[2]) 

give me CLOSED cases and 

 

siemplify.get_cases_by_filter(statuses=[1]) 

 gives me OPEN cases

which is directly in contradiction with the 'SiemplifyDataModel.ApiSyncCaseStatusEnum' model which states:

ALL= 2

CLOSED= 1

CREATION_PENDING= 4

MERGED= 3

OPENED= 0
Am I doing something wrong. Any insight would be appreciated!

Regards,
Abhro Roy