| 17 | import RequireByPlugin from './document.require-by'; |
| 18 | |
| 19 | export default class NavigationDirectives extends Plugin implements PluginInterface { |
| 20 | |
| 21 | plugins: PluginInterface[]; |
| 22 | |
| 23 | constructor(document: Schema, graphdocPackage: any, projectPackage: any) { |
| 24 | super(document, graphdocPackage, projectPackage); |
| 25 | this.plugins = [ |
| 26 | new NavigationSchema(document, graphdocPackage, projectPackage), |
| 27 | new NavigationScalar(document, graphdocPackage, projectPackage), |
| 28 | new NavigationEnum(document, graphdocPackage, projectPackage), |
| 29 | new NavigationInterfaces(document, graphdocPackage, projectPackage), |
| 30 | new NavigationUnion(document, graphdocPackage, projectPackage), |
| 31 | new NavigationObject(document, graphdocPackage, projectPackage), |
| 32 | new NavigationIput(document, graphdocPackage, projectPackage), |
| 33 | new NavigationDirective(document, graphdocPackage, projectPackage), |
| 34 | new DocumentSchema(document, graphdocPackage, projectPackage), |
| 35 | new RequireByPlugin(document, graphdocPackage, projectPackage), |
| 36 | ]; |
| 37 | } |
| 38 | |
| 39 | |
| 40 | getNavigations(buildForType?: string): Promise<NavigationSectionInterface[]> { |
| 41 | return Plugin.collectNavigations(this.plugins, buildForType); |
| 42 | }; |
| 43 | |
| 44 | getDocuments(buildForType?: string): Promise<DocumentSectionInterface[]> { |
| 45 | return Plugin.collectDocuments(this.plugins, buildForType); |
| 46 | }; |
| 47 | |
| 48 | getHeaders(buildForType?: string): Promise<string[]> { |
| 49 | return Plugin.collectHeaders(this.plugins, buildForType); |
| 50 | } |
| 51 | |
| 52 | getAssets(): Promise<string[]> { |
| 53 | return Plugin.collectAssets(this.plugins); |
| 54 | } |
| 55 | } |
nothing calls this directly
no outgoing calls
no test coverage detected