75 lines
3.3 KiB
TypeScript
75 lines
3.3 KiB
TypeScript
/* eslint-disable prettier/prettier */
|
|
import type { routes } from './index.ts'
|
|
|
|
export interface ApiDefinition {
|
|
cwmp: typeof routes['cwmp']
|
|
health: {
|
|
checklife: typeof routes['health.checklife']
|
|
checkservice: typeof routes['health.checkservice']
|
|
}
|
|
devices: {
|
|
index: typeof routes['devices.index']
|
|
criteriaValues: typeof routes['devices.criteria_values']
|
|
show: typeof routes['devices.show']
|
|
destroy: typeof routes['devices.destroy']
|
|
executeCommand: typeof routes['devices.execute_command']
|
|
refresh: typeof routes['devices.refresh']
|
|
}
|
|
commands: {
|
|
index: typeof routes['commands.index']
|
|
show: typeof routes['commands.show']
|
|
store: typeof routes['commands.store']
|
|
page: typeof routes['commands.page']
|
|
}
|
|
tr069Trace: {
|
|
index: typeof routes['tr_069_trace.index']
|
|
store: typeof routes['tr_069_trace.store']
|
|
rawConfig: typeof routes['tr_069_trace.raw_config']
|
|
saveRawConfig: typeof routes['tr_069_trace.save_raw_config']
|
|
destroy: typeof routes['tr_069_trace.destroy']
|
|
showLog: typeof routes['tr_069_trace.show_log']
|
|
}
|
|
configurationsV1: {
|
|
index: typeof routes['configurations_v_1.index']
|
|
listTags: typeof routes['configurations_v_1.list_tags']
|
|
store: typeof routes['configurations_v_1.store']
|
|
show: typeof routes['configurations_v_1.show']
|
|
update: typeof routes['configurations_v_1.update']
|
|
destroy: typeof routes['configurations_v_1.destroy']
|
|
toggleEnabled: typeof routes['configurations_v_1.toggle_enabled']
|
|
manageTags: typeof routes['configurations_v_1.manage_tags']
|
|
history: typeof routes['configurations_v_1.history']
|
|
dryRun: typeof routes['configurations_v_1.dry_run']
|
|
compliance: typeof routes['configurations_v_1.compliance']
|
|
}
|
|
firmwareCatalog: {
|
|
index: typeof routes['firmware_catalog.index']
|
|
listEntries: typeof routes['firmware_catalog.list_entries']
|
|
showEntry: typeof routes['firmware_catalog.show_entry']
|
|
listRoutes: typeof routes['firmware_catalog.list_routes']
|
|
createEntry: typeof routes['firmware_catalog.create_entry']
|
|
updateEntry: typeof routes['firmware_catalog.update_entry']
|
|
deleteEntry: typeof routes['firmware_catalog.delete_entry']
|
|
createRoute: typeof routes['firmware_catalog.create_route']
|
|
updateRoute: typeof routes['firmware_catalog.update_route']
|
|
deleteRoute: typeof routes['firmware_catalog.delete_route']
|
|
}
|
|
pages: {
|
|
home: typeof routes['pages.home']
|
|
deviceDetail: typeof routes['pages.device_detail']
|
|
refreshDevice: typeof routes['pages.refresh_device']
|
|
getModel: typeof routes['pages.get_model']
|
|
commandsFleet: typeof routes['pages.commands_fleet']
|
|
tr069Trace: typeof routes['pages.tr_069_trace']
|
|
storeFleetDevices: typeof routes['pages.store_fleet_devices']
|
|
storeFleetCommand: typeof routes['pages.store_fleet_command']
|
|
configurationsList: typeof routes['pages.configurations_list']
|
|
configurationCreate: typeof routes['pages.configuration_create']
|
|
configurationEdit: typeof routes['pages.configuration_edit']
|
|
configurationDetail: typeof routes['pages.configuration_detail']
|
|
firmwareCatalog: typeof routes['pages.firmware_catalog']
|
|
firmwareCatalogCreate: typeof routes['pages.firmware_catalog_create']
|
|
firmwareCatalogEdit: typeof routes['pages.firmware_catalog_edit']
|
|
}
|
|
}
|