import { z } from 'zod'; export default class Network { prefix = `NETWORK` indices = null constructor(indices) { this.indices = indices } schema = z.object({ id: z.number(), name: z.string(), apps: z.array(z.string()), logo: z.string(), abbreviation: z.string(), created: z.string() }) .strict() get(stringID) { let id = stringID.split("-")[1] let index = this.indices[0] + (id - 1) return global.db.nodes[index] } getByAbbreviation(abbreviation) { for(let i=this.indices[0]; i