@hiliosai/sdk 0.2.2 → 0.2.4

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +7 -4
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -46,7 +46,13 @@ interface AppMeta {
46
46
  requestId?: string;
47
47
  userAgent?: string;
48
48
  clientIP?: string;
49
- startTime?: Date;
49
+ /**
50
+ * Start time of the request in milliseconds
51
+ *
52
+ * @type {number}
53
+ * @memberof AppMeta
54
+ */
55
+ startTime?: number;
50
56
  [key: string]: unknown;
51
57
  }
52
58
  interface PermissionHelpers {
@@ -680,9 +686,6 @@ interface ServiceSchema<TSettings = unknown, TDatasources = unknown> extends Omi
680
686
  hooks?: ServiceHooks;
681
687
  dependencies?: string | string[];
682
688
  metadata?: Record<string, any>;
683
- created?: (this: ServiceSchema$1<TSettings>) => void | Promise<void>;
684
- started?: (this: ServiceSchema$1<TSettings>) => void | Promise<void>;
685
- stopped?: (this: ServiceSchema$1<TSettings>) => void | Promise<void>;
686
689
  }
687
690
  type ServiceConfig<TSettings = unknown, TDatasourceConstructors extends DatasourceConstructorRegistry = DatasourceConstructorRegistry> = ServiceSchema<TSettings, DatasourceInstanceTypes<TDatasourceConstructors>> & {
688
691
  datasources: TDatasourceConstructors;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hiliosai/sdk",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "type": "module",
5
5
  "license": "UNLICENSED",
6
6
  "main": "./dist/index.js",