@hubs101/js-api-skd-client
Version:
Package for easy access to Event App API
75 lines (74 loc) • 1.49 kB
TypeScript
import { Event, GroupType } from "../event/types";
export type InviteType = "cm" | "fm";
export type RegisterManagerInput = {
first_name: string;
last_name: string;
email: string;
password: string;
expire: string;
type: InviteType;
access: string;
};
export type Pagination = {
total: number;
count: number;
per_page: number;
current_page: number;
total_pages: number;
links: {
previous?: string;
next?: string;
};
};
export type ResponseAccountEventsType = {
data: Event[];
meta: {
pagination: Pagination;
};
};
export type GroupResponseType = {
id: string;
name: string;
type: GroupType;
account: string;
style: string;
order: number;
slug: string;
list: string[];
event: string;
};
export type PublicGroupResponseType<T> = {
id: string;
name: string;
type: GroupType;
account: string;
style: string;
order: number;
slug: string;
list: T[];
event: string;
page_type: string;
};
export type GroupInputType = {
name: string;
type: GroupType;
event: string;
style?: string;
list?: string;
page_type?: string;
};
export type ColocatedEventsGroupInputType = {
name: string;
events: string;
};
export type ColocatedEventsGroupType = {
id: string;
name: string;
events: string[];
};
export type PackageType = {
name: string;
slug: string;
type: string;
value: string;
};