@sourceloop/ctrl-plane-tenant-management-service
Version:
Tenant Management microservice for SaaS control plane
23 lines (22 loc) • 817 B
TypeScript
/**
* Returns the numeric values of an enum.
* @param enumType - The enum to get the numeric values from.
* @returns The numeric values of the enum.
*/
export declare function numericEnumValues(enumType: Object): number[];
/**
* The default header for the signature.
*/
export declare const DEFAULT_SIGNATURE_HEADER = "x-signature";
/**
* The default header for the timestamp.
*/
export declare const DEFAULT_TIMESTAMP_HEADER = "x-timestamp";
/**
* The default tolerance for the timestamp.
*/
export declare const DEFAULT_TIMESTAMP_TOLERANCE = 5000;
export declare const FIVE_SECONDS = 5;
export declare const ONE_HOUR: number;
export declare function weakEqual<T>(value1: T | null | undefined, value2: T | null | undefined): boolean;
export declare function hasAnyOf<T>(ob: T, keys: (keyof T)[]): boolean;