@m1cro/server-sdk 1.0.0-beta.10 → 1.0.0-beta.12

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/globals.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { B as Bridge, L as LogLevel } from './log-CAh1biS4.js';
1
+ import { B as Bridge, L as LogLevel } from './log-C33YyziF.js';
2
2
  import * as console from 'node:console';
3
3
 
4
4
  declare global {
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { E as EntitySchema, G as GeneratedFields, C as CompiledSchema, F as Filter, a as FindQuery, H as HydratedDocument, b as FindOneQuery, I as InsertDocument, c as InsertQuery, d as InsertOneQuery, U as UpdateQuery, e as InferInterface, f as UpdateOneQuery, R as RemoveQuery, g as RemoveOneQuery, h as Router, i as HookEventMap, A as AppRole, j as EventHandler, J as JobHandler, k as JobOptions } from './log-CAh1biS4.js';
2
- export { l as AppId, m as Artifacts, n as Auth, B as Bridge, o as Entity, p as InferSchema, L as LogLevel, M as Method, q as Middleware, N as Namespace, P as Provider, r as Providers, s as Request, t as RequestBuilder, u as RequestHandler, v as Response, w as ResponseBuilder, x as RouteOptions, S as Sorting, y as StatusCode, z as Subject, T as Tenant, V as Visibility, D as entitySchema } from './log-CAh1biS4.js';
1
+ import { E as EntitySchema, G as GeneratedFields, C as CompiledSchema, F as Filter, a as FindQuery, H as HydratedDocument, b as FindOneQuery, I as InsertDocument, c as InsertQuery, d as InsertOneQuery, U as UpdateQuery, e as InferInterface, f as UpdateOneQuery, R as RemoveQuery, g as RemoveOneQuery, h as Router, i as HookEventMap, A as AppRole, j as EventHandler, J as JobHandler, k as JobOptions } from './log-C33YyziF.js';
2
+ export { l as AppId, m as Artifacts, n as Auth, B as Bridge, o as Entity, p as InferSchema, L as LogLevel, M as Method, q as Middleware, N as Namespace, P as Provider, r as Providers, s as Request, t as RequestBuilder, u as RequestHandler, v as Response, w as ResponseBuilder, x as RouteOptions, S as Sorting, y as StatusCode, z as Subject, T as Tenant, V as Visibility, D as entitySchema } from './log-C33YyziF.js';
3
3
  import util from 'node:util';
4
4
 
5
5
  declare function entityModel<S extends EntitySchema<any>>(name: string, schemaDef: S, options?: EntityModelOptions<S>): EntityModel<S>;
@@ -179,9 +179,9 @@ interface HookEventMap {
179
179
  install: [];
180
180
  }
181
181
 
182
- type EventHandler = <T>(event: string, data: T) => void | Promise<void>;
182
+ type EventHandler = <T>(event: string, data?: T) => void | Promise<void>;
183
183
  interface EventEmitter {
184
- publish<T extends object>(event: string, payload: T, visibility?: Visibility[]): Promise<void>;
184
+ publish<T extends object = Record<string, any>>(event: string, payload?: T, visibility?: Visibility[]): Promise<void>;
185
185
  }
186
186
 
187
187
  interface Artifacts {
@@ -336,6 +336,7 @@ type JobHandler = (data?: unknown) => void | Promise<void>;
336
336
  interface JobOptions {
337
337
  schedule?: string;
338
338
  timeoutMs?: number;
339
+ global?: boolean;
339
340
  }
340
341
 
341
342
  interface Crypto {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m1cro/server-sdk",
3
- "version": "1.0.0-beta.10",
3
+ "version": "1.0.0-beta.12",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"