mi-auth-client
Version:
Use to MI product authorization and authentication
40 lines (39 loc) • 784 B
TypeScript
export declare type ID = number;
export declare type Token = string;
export interface StrapiUser {
username: string;
id: ID;
password: string;
email: string;
role: StrapiRole;
advertisers: StrapiUserAdvertiser[];
platforms: StrapiPlatform[];
}
export interface StrapiRole {
id: ID;
name: string;
}
export interface StrapiBrand {
id: ID;
name: string;
advertisers: ID[];
disabled: boolean;
}
export interface StrapiUserAdvertiser {
id: ID;
name: string;
users: StrapiUser[];
brand: ID;
disabled: boolean;
}
export interface StrapiAdvertiser {
id: ID;
name: string;
users: StrapiUser[];
brand: StrapiBrand;
disabled: boolean;
}
export interface StrapiPlatform {
id: ID;
name: string;
}