@kraveir0/webapi-proxy-interceptor
Version:
Drop-in replacement for PCF WebAPI that automatically routes calls to your local development proxy.
29 lines • 1.21 kB
TypeScript
/**
* This file provides fallback types when @types/powerapps-component-framework is not available.
* If the official types are installed, they will take precedence.
*/
declare global {
namespace ComponentFramework {
interface WebApiMethods {
createRecord(entityLogicalName: string, data: any): Promise<EntityReference>;
updateRecord(entityLogicalName: string, id: string, data: any): Promise<EntityReference>;
deleteRecord(entityLogicalName: string, id: string): Promise<EntityReference>;
retrieveRecord(entityLogicalName: string, id: string, options?: string | RetrieveRecordOptions): Promise<any>;
retrieveMultipleRecords(entityLogicalName: string, options?: string, maxPageSize?: number): Promise<RetrieveMultipleResponse>;
}
interface RetrieveRecordOptions {
select?: string[];
expand?: ExpandOption[];
}
interface ExpandOption {
property: string;
select?: string[];
}
interface RetrieveMultipleResponse {
entities: any[];
nextLink?: string;
}
}
}
export {};
//# sourceMappingURL=types.d.ts.map