mirror of
https://github.com/parnic/node-intellicenter.git
synced 2025-06-17 02:21:53 -05:00
No idea if this will be the best way to represent this stuff long-term, but it's working at the moment. I have some reservations about attempting to list all the possible ResponseParam keys, but I'm already this far in and it would be nice if it worked out...
22 lines
450 B
TypeScript
22 lines
450 B
TypeScript
import { v4 as uuidv4 } from "uuid";
|
|
|
|
export class ICRequestObj {
|
|
public objnam = "";
|
|
public keys: string[] = [];
|
|
}
|
|
|
|
export class ICRequest {
|
|
public condition?: string;
|
|
public objectList?: ICRequestObj[];
|
|
public queryName?: string;
|
|
public arguments?: string[] | string;
|
|
public command = "";
|
|
public messageID = "";
|
|
}
|
|
|
|
export function GetRequest(): ICRequest {
|
|
const req = new ICRequest();
|
|
req.messageID = uuidv4();
|
|
return req;
|
|
}
|