fix(core): update

This commit is contained in:
2024-04-20 12:21:41 +02:00
commit c24262f765
84 changed files with 14340 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
import * as plugins from '../cloudly.plugins.js';
import { Cloudly } from '../index.js';
/**
* external api manager manages external api requests
*/
export class ExternalApiManager {
public cloudlyRef: Cloudly;
public typedRouter = new plugins.typedrequest.TypedRouter();
constructor(cloudlyRef: Cloudly) {
this.cloudlyRef = cloudlyRef;
this.typedRouter.addTypedHandler<plugins.servezoneInterfaces.requests.network.IRequest_Any_Cloudly_GetNetworkNodes>(
new plugins.typedrequest.TypedHandler('getNetworkNodes', async (requestData) => {
const networkNodes = [];
return {
networkNodes,
};
})
);
}
}