powerplatform-review-tool
Version:
Evaluate Power Platform solution zip files based on best practice patterns
50 lines • 2.56 kB
TypeScript
import { MsApp, FailureInfo, PropertiesFormulaMap, NamedControlInstance } from "../interface/appInterface";
import { IPatternDetails } from "./pattern";
import { PatternResult } from "../interface/pattern";
export declare function createMsApp(): MsApp;
export declare function removeComments(code: string): string;
export declare function getExternalDataSources(msapp: MsApp): string[];
export declare function iterateThroughScreens(msapp: MsApp): FailureInfo[];
export declare function processControlProperties(screenName: string, controlName: string, properties: PropertiesFormulaMap, failures: FailureInfo[], msapp: MsApp, currentControlType: string, parentControlType: string, externalDataSources: string[]): void;
export declare function processSubControls(screenName: string, currentControlName: string, children: NamedControlInstance[], failures: FailureInfo[], msapp: MsApp, controlType: string, externalDataSources: string[]): void;
export declare function processFailures(failures: FailureInfo[], patternDetails?: IPatternDetails[], skipYamlBasedPatterns?: boolean): PatternResult[];
export declare function containsNestedIf(code: string): string | null;
export declare function tokenizeCode(code: string): string[];
export declare function findAPIFunctionOccurrences(code: string): {
functionName: string;
startIndex: number;
endIndex: number;
content: string;
}[];
export declare function findMatchingParenthesis(code: string, openParenIndex: number): {
endIndex: number;
};
export declare function getFirstParameter(content: string): string;
export declare function normalizeDataSourceName(dataSourceName: string): string;
export declare function findPatchOccurrences(code: string): {
functionName: string;
startIndex: number;
endIndex: number;
content: string;
}[];
export declare function getNthArgument(content: string, n: number): string | null;
export declare function isFunctionWrapped(code: string, functionStartIndex: number, wrapperFunctions: string[]): boolean;
export declare function findFirstLastOccurrences(code: string): {
functionName: string;
startIndex: number;
endIndex: number;
content: string;
}[];
export declare function findFilterSearchOccurrences(code: string): {
functionName: string;
startIndex: number;
endIndex: number;
content: string;
}[];
export declare function findFilterSearchLookUpOccurrences(code: string): {
functionName: string;
startIndex: number;
endIndex: number;
content: string;
}[];
//# sourceMappingURL=appHelper.d.ts.map