@liquidcommerceteam/elements-sdk
Version:
LiquidCommerce Elements SDK
22 lines (21 loc) • 451 B
TypeScript
export interface IAuth {
token: string;
exp: number;
type: 'ACCESS_TOKEN';
}
export interface IResponseMetadata {
languages: string[];
timestamp: number;
timezone: string;
requestId: string;
path: string;
version: string;
}
export interface IApiResponseBase {
statusCode: number;
message: string;
metadata: IResponseMetadata;
}
export type IApiResponseWithData<T> = IApiResponseBase & {
data: T;
};