diff --git a/packages/nocodb-sdk/src/lib/Api.ts b/packages/nocodb-sdk/src/lib/Api.ts index 06493d405c..948638e4ed 100644 --- a/packages/nocodb-sdk/src/lib/Api.ts +++ b/packages/nocodb-sdk/src/lib/Api.ts @@ -546,7 +546,39 @@ export interface FilterType { | 'notchecked' | 'notempty' | 'notnull' - | 'null'; + | 'null' + | null + | ( + | 'allof' + | 'anyof' + | 'blank' + | 'btw' + | 'checked' + | 'empty' + | 'eq' + | 'ge' + | 'gt' + | 'gte' + | 'in' + | 'is' + | 'isWithin' + | 'isnot' + | 'le' + | 'like' + | 'lt' + | 'lte' + | 'nallof' + | 'nanyof' + | 'nbtw' + | 'neq' + | 'nlike' + | 'not' + | 'notblank' + | 'notchecked' + | 'notempty' + | 'notnull' + | ('null' & null) + ); /** Comparison Sub-Operator */ comparison_sub_op?: | 'daysAgo' @@ -589,7 +621,7 @@ export interface FilterType { | ('yesterday' & null) ); /** Foreign Key to Column */ - fk_column_id?: IdType; + fk_column_id?: StringOrNullType; /** Foreign Key to Hook */ fk_hook_id?: StringOrNullType; /** Foreign Key to Model */ @@ -664,7 +696,39 @@ export interface FilterReqType { | 'notchecked' | 'notempty' | 'notnull' - | 'null'; + | 'null' + | null + | ( + | 'allof' + | 'anyof' + | 'blank' + | 'btw' + | 'checked' + | 'empty' + | 'eq' + | 'ge' + | 'gt' + | 'gte' + | 'in' + | 'is' + | 'isWithin' + | 'isnot' + | 'le' + | 'like' + | 'lt' + | 'lte' + | 'nallof' + | 'nanyof' + | 'nbtw' + | 'neq' + | 'nlike' + | 'not' + | 'notblank' + | 'notchecked' + | 'notempty' + | 'notnull' + | ('null' & null) + ); /** Comparison Sub-Operator */ comparison_sub_op?: | 'daysAgo' @@ -707,7 +771,7 @@ export interface FilterReqType { | ('yesterday' & null) ); /** Foreign Key to Column */ - fk_column_id?: IdType; + fk_column_id?: StringOrNullType; /** Belong to which filter ID */ fk_parent_id?: StringOrNullType; /** Is this filter grouped? */ diff --git a/packages/nocodb/src/schema/swagger.json b/packages/nocodb/src/schema/swagger.json index b7d5a6e102..57083b9061 100644 --- a/packages/nocodb/src/schema/swagger.json +++ b/packages/nocodb/src/schema/swagger.json @@ -15197,38 +15197,45 @@ }, "comparison_op": { "description": "Comparison Operator", - "enum": [ - "allof", - "anyof", - "blank", - "btw", - "checked", - "empty", - "eq", - "ge", - "gt", - "gte", - "in", - "is", - "isWithin", - "isnot", - "le", - "like", - "lt", - "lte", - "nallof", - "nanyof", - "nbtw", - "neq", - "nlike", - "not", - "notblank", - "notchecked", - "notempty", - "notnull", - "null" - ], - "type": "string" + "anyOf": [ + { + "enum": [ + "allof", + "anyof", + "blank", + "btw", + "checked", + "empty", + "eq", + "ge", + "gt", + "gte", + "in", + "is", + "isWithin", + "isnot", + "le", + "like", + "lt", + "lte", + "nallof", + "nanyof", + "nbtw", + "neq", + "nlike", + "not", + "notblank", + "notchecked", + "notempty", + "notnull", + "null" + ], + "type": "string" + }, + { + "type": "null" + } + ] }, "comparison_sub_op": { "anyOf": [ @@ -15262,7 +15269,7 @@ "description": "Comparison Sub-Operator" }, "fk_column_id": { - "$ref": "#/components/schemas/Id", + "$ref": "#/components/schemas/StringOrNull", "description": "Foreign Key to Column" }, "fk_hook_id": { @@ -15518,38 +15525,45 @@ "properties": { "comparison_op": { "description": "Comparison Operator", - "enum": [ - "allof", - "anyof", - "blank", - "btw", - "checked", - "empty", - "eq", - "ge", - "gt", - "gte", - "in", - "is", - "isWithin", - "isnot", - "le", - "like", - "lt", - "lte", - "nallof", - "nanyof", - "nbtw", - "neq", - "nlike", - "not", - "notblank", - "notchecked", - "notempty", - "notnull", - "null" - ], - "type": "string" + "anyOf": [ + { + "enum": [ + "allof", + "anyof", + "blank", + "btw", + "checked", + "empty", + "eq", + "ge", + "gt", + "gte", + "in", + "is", + "isWithin", + "isnot", + "le", + "like", + "lt", + "lte", + "nallof", + "nanyof", + "nbtw", + "neq", + "nlike", + "not", + "notblank", + "notchecked", + "notempty", + "notnull", + "null" + ], + "type": "string" + }, + { + "type": "null" + } + ] }, "comparison_sub_op": { "anyOf": [ @@ -15583,7 +15597,7 @@ "description": "Comparison Sub-Operator" }, "fk_column_id": { - "$ref": "#/components/schemas/Id", + "$ref": "#/components/schemas/StringOrNull", "description": "Foreign Key to Column" }, "fk_parent_id": {