eregistrations-js
Version:
A JavaScript library that simplifies usage of eRegistrations APIs.
50 lines (49 loc) • 1.12 kB
TypeScript
export interface Credentials {
clientId: string;
clientSecret: string;
}
export interface Config {
baseApiUrl: string;
token: string;
serviceId?: string;
determinantName?: string;
targetFormFieldKey?: string;
operator?: string;
value?: any;
type?: string;
determinantId?: string;
formId?: string;
componentKey?: string;
}
/**
* Configuration interface specifically for GDB functions
*/
export interface GdbConfig {
baseApiUrl: string;
token: string;
databaseId?: number;
catalogName?: string;
code?: string;
version?: number;
page_size?: number;
isDraft?: boolean;
query?: string;
schema?: any;
schemaTags?: Array<{
name: string;
path: string;
is_fulltext?: boolean;
}>;
schemaFlags?: Array<{
name: string;
path: string;
}>;
numberFormat?: string;
indexNoByCode?: string;
indexNo?: string;
logo?: string | null;
fields_uniques?: Array<Array<any>>;
order_fields?: Array<any>;
indexes?: Record<string, any>;
group_name?: string | null;
}