powerplatform-review-tool
Version:
Evaluate Power Platform solution zip files based on best practice patterns
36 lines • 3.58 kB
TypeScript
import { MsApp, FailureInfo, NamedControlInstance } from "../interface/appInterface";
import { PatternResult } from "../interface/pattern";
export declare function patternCheckMediaFileSize(msApp: MsApp): Promise<PatternResult>;
/**
+ * Checks if there are any "Unused Media Resources" issues reported by App Checker
+ * (i.e., ruleId === "app-UnsedMediaResources").
+ * Dynamically appends the media resource name from the `fullyQualifiedName` (issue.Location).
+ */
export declare function patternCheckUnusedMediaResources(msApp: MsApp): Promise<PatternResult>;
export declare function patternCheckDelayLoading(msApp: MsApp): Promise<PatternResult>;
export declare function patternCheckAppSettings(msApp: MsApp): Promise<PatternResult>;
export declare function patternCheckAppCheckerAccessibilityIssues(msApp: MsApp): Promise<PatternResult>;
export declare function patternCheckUnusedElements(msApp: MsApp): Promise<PatternResult>;
export declare const singleSetVariables: Record<string, FailureInfo>;
export declare const singleCollectCollections: Record<string, FailureInfo>;
/**
* patternCheckForNamedFormulas
*
* Called from `processControlProperties` for each property formula.
* We track single occurrence of `Set(X,...)` or `Collect(Y,...)` / `ClearCollect(Y,...)`
* plus see if there's any `Patch(Y,...)` to mark a collection as updated.
*
* We do NOT immediately push to `failures` here, because we only know an item is
* "never-updated" if we don't see a second occurrence or patch. Instead, we store
* the initial occurrence data in global maps.
*/
export declare function patternCheckForNamedFormulas(propertyValue: string | undefined, screenName: string, controlName: string, propertyName: string, controlType: string): void;
export declare function patternCheckForUxLayout(screenName: string, firstChildControl: NamedControlInstance, failures: FailureInfo[]): void;
export declare function patternCheckForCodeReadability(propertyName: string, propertyValue: string, failures: FailureInfo[], screenName: string, controlName: string, controlType: string): void;
export declare function patternCheckForNestedAPICalls(propertyName: string, propertyValue: string, failures: FailureInfo[], screenName: string, controlName: string, msapp: MsApp, externalDataSources: string[], controlType: string): void;
export declare function patternCheckForErrorHandling(propertyName: string, propertyValue: string, failures: FailureInfo[], screenName: string, controlName: string, msapp: MsApp, externalDataSources: string[], controlType: string): void;
export declare function patternCheckForNPlusOneQuery(propertyName: string, propertyValue: string, failures: FailureInfo[], screenName: string, controlName: string, msapp: MsApp, externalDataSources: string[], controlType: string): void;
export declare function patternCheckForInefficientDataRetrieval(propertyName: string, propertyValue: string, failures: FailureInfo[], screenName: string, controlName: string, msapp: MsApp, externalDataSources: string[], controlType: string): void;
export declare function patternCheckForNestedFilters(propertyName: string, propertyValue: string, failures: FailureInfo[], screenName: string, controlName: string, msapp: MsApp, externalDataSources: string[], controlType: string): void;
export declare function patternCheckForPatchFormulaOptimization(propertyName: string, propertyValue: string, failures: FailureInfo[], screenName: string, controlName: string, msapp: MsApp, externalDataSources: string[], controlType: string): void;
//# sourceMappingURL=powerappsPatterns.d.ts.map