Page MenuHomeSealhub

types.ts
No OneTemporary

types.ts

type AttachmentsResponse = {
[id: string]: SealiousItem;
};
export type Comparator = ">=" | "<=" | "from" | "to";
export type ComplexFilterParam<FieldType> = { [key in Comparator]?: FieldType };
export type SingleResourceParams<ItemFields> = {
filter?: {
[field in keyof ItemFields]?:
| ItemFields[field]
| ComplexFilterParam<ItemFields[field]>;
};
attachments?: { [field in keyof ItemFields]?: true };
sort?: any;
};
export interface SealiousItem {
_metadata: {
collection: string;
collection_name: string;
created_context: {};
};
calculated_fields: {};
id: string;
attachments: AttachmentsResponse;
}
export interface SealiousSingleResourceResponse<Fields> {
item: Fields & SealiousItem;
attachments: { [id: string]: SealiousItem };
fieldsWithAttachments: {};
}
export type SealiousUserRoleItem = SealiousItem & {
role: string;
user: string;
};
export type SealiousCollectionResponse<
T extends SealiousItem = SealiousItem
> = {
items: T[];
attachments: AttachmentsResponse;
fieldsWithAttachments: {};
};

File Metadata

Mime Type
text/plain
Expires
Tue, Jul 8, 07:50 (23 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
807665
Default Alt Text
types.ts (1 KB)

Event Timeline