@terabits/grapi
Version:
Grapi Schema Generator For GraphQL Server
41 lines (40 loc) • 973 B
TypeScript
export declare const enum FilterListObject {
SOME = "some",
NONE = "none",
EVERY = "every",
ELEMENT_MATCH = "elementMatchObject"
}
export declare const enum FilterListScalar {
HAS = "has",
HASNOT = "hasNot",
EQ = "eq",
GT = "gt",
GTE = "gte",
LT = "lt",
LTE = "lte",
SIZE = "size",
ELEMENT_MATCH = "elementMatch"
}
export declare enum DirectiveModelAction {
Create = "Create",
Read = "Read",
Update = "Update",
Delete = "Delete"
}
export declare enum DataModelType {
STRING = "String",
BOOLEAN = "Boolean",
INT = "Int",
FLOAT = "Float",
ID = "ID",
ENUM = "ENUM",
OBJECT = "OBJECT",
RELATION = "RELATION",
CUSTOM_SCALAR = "CUSTOM_SCALAR",
JSON = "Json",
EMAIL = "Email",
URL = "Url",
DATE_TIME = "DateTime"
}
export declare const isScalarType: (type: DataModelType) => boolean;
export declare const isValidScalarFilter: (type: DataModelType) => boolean;