kwikid-components
Version:
KwikID's Components Library
44 lines (43 loc) • 1.19 kB
TypeScript
export interface InstructionStep {
title: string;
detail: string;
img: string;
}
export interface PermissionInstructions {
title: string;
subInstruction: InstructionStep[];
}
export interface PermissionInstructionsData {
[key: string]: PermissionInstructions;
}
export interface DeviceInstructions {
androidPermission: PermissionInstructionsData;
iosPermission: PermissionInstructionsData;
windowsPermission: PermissionInstructionsData;
}
export interface Permission {
id: string;
title: string;
description: string;
granted: boolean;
status: "PENDING" | "GRANTED" | "DENIED" | "CURRENT";
icon?: string;
errorMessage?: string;
showInstructions?: boolean;
}
export interface PermissionCheckerConfig {
clientName: string;
footerConfig: any;
scheduleLaterConfig: any;
permissions: Permission[];
refreshButtonLabel: string;
denyButtonLabel: string;
image: string;
cameraCheck?: "CameraCheckBoth" | "CameraCheckSeparate";
html?: {
before?: string;
after?: string;
};
headerConfig?: any;
}
export declare const DEFAULT_PERMISSION_INSTRUCTIONS: PermissionInstructionsData;