@minimaltech/ra-infra
Version:
Minimal Technology ReactJS Infrastructure
53 lines (52 loc) • 1.95 kB
TypeScript
export declare class App {
static readonly TIMEZONE: string;
static readonly TIMEZONE_OFFSET: number;
static readonly DEFAULT_LOCALE = "en.UTF-8";
static readonly DEFAULT_DEBOUNCE_TIME = 500;
}
export declare class Authentication {
static readonly TYPE_BASIC = "Basic";
static readonly TYPE_BEARER = "Bearer";
static readonly STRATEGY_BASIC = "basic";
static readonly STRATEGY_JWT = "jwt";
}
export declare class RequestMethods {
static readonly HEAD = "HEAD";
static readonly OPTIONS = "OPTIONS";
static readonly GET = "GET";
static readonly POST = "POST";
static readonly PUT = "PUT";
static readonly PATCH = "PATCH";
static readonly DELETE = "DELETE";
static readonly SCHEME_SET: Set<string>;
static isValid(input: string): boolean;
}
export declare class RequestTypes {
static readonly SEND = "SEND";
static readonly GET_LIST = "GET_LIST";
static readonly GET_ONE = "GET_ONE";
static readonly GET_MANY = "GET_MANY";
static readonly GET_MANY_REFERENCE = "GET_MANY_REFERENCE";
static readonly CREATE = "CREATE";
static readonly UPDATE = "UPDATE";
static readonly UPDATE_MANY = "UPDATE_MANY";
static readonly DELETE = "DELETE";
static readonly DELETE_MANY = "DELETE_MANY";
static readonly SCHEME_SET: Set<string>;
static isValid(input: string): boolean;
}
export declare class RequestBodyTypes {
static readonly NONE = "none";
static readonly FORM_DATA = "form-data";
static readonly FORM_URL_ENCODED = "x-www-form-urlencoded";
static readonly JSON = "json";
static readonly BINARY = "binary";
static readonly SCHEME_SET: Set<string>;
static isValid(input: string): boolean;
}
export declare class Environments {
static readonly DEVELOPMENT = "development";
static readonly PRODUCTION = "production";
static readonly SCHEME_SET: Set<string>;
static isValid(input: string): boolean;
}