@aep_dev/aep-lib-ts
Version:
Utility libraries for AEP TypeScript-based tools including case conversion, OpenAPI utilities, and API clients
39 lines • 1.09 kB
TypeScript
import { APISchema } from "./types.js";
export interface Resource {
singular: string;
plural: string;
parents: Resource[];
children: Resource[];
patternElems: string[];
schema: APISchema;
getMethod?: GetMethod;
listMethod?: ListMethod;
createMethod?: CreateMethod;
updateMethod?: UpdateMethod;
deleteMethod?: DeleteMethod;
customMethods: CustomMethod[];
}
export interface GetMethod {
}
export interface ListMethod {
hasUnreachableResources: boolean;
supportsFilter: boolean;
supportsSkip: boolean;
}
export interface CreateMethod {
supportsUserSettableCreate: boolean;
}
export interface UpdateMethod {
}
export interface DeleteMethod {
}
export interface CustomMethod {
name: string;
method: string;
request: APISchema | null;
response: APISchema | null;
}
export declare function getPattern(resource: Resource): string;
export declare function collectionName(resource: Resource): string;
export declare function generatePatternStrings(resource: Resource): string[];
//# sourceMappingURL=resource.d.ts.map