types-nora-api 0.0.145 → 0.0.146

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/classes.d.ts CHANGED
@@ -734,18 +734,17 @@ type PaginaChave = keyof typeof PAGINAS;
734
734
  type PaginaObjeto = typeof PAGINAS[PaginaChave];
735
735
  type TelemetryConnectionInfo = {
736
736
  socketId: string;
737
- userId?: number;
738
737
  username?: string;
739
738
  ip: string;
740
739
  userAgent?: string;
741
740
  connectedAt: number;
742
741
  };
743
- type TelemetryEventLog<T = any> = {
742
+ type TelemetryEventLog<TPayload extends Record<string, unknown> = Record<string, unknown>> = {
744
743
  direction: 'in' | 'out';
745
744
  event: string;
746
745
  socketId: string;
747
- userId?: number;
748
- payload: T;
746
+ username?: string;
747
+ payload: TPayload;
749
748
  timestamp: number;
750
749
  };
751
750
  type TelemetrySnapshot = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "types-nora-api",
3
- "version": "0.0.145",
3
+ "version": "0.0.146",
4
4
  "description": "Tipagem da Nora-Api compartilhada com o universodomedo.com",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",